1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for orxonox 0.3.1_alpha. |
---|
4 | # |
---|
5 | # Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | ## --------------------- ## |
---|
11 | ## M4sh Initialization. ## |
---|
12 | ## --------------------- ## |
---|
13 | |
---|
14 | # Be Bourne compatible |
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
16 | emulate sh |
---|
17 | NULLCMD=: |
---|
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
19 | # is contrary to our usage. Disable this feature. |
---|
20 | alias -g '${1+"$@"}'='"$@"' |
---|
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
22 | set -o posix |
---|
23 | fi |
---|
24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
25 | |
---|
26 | # Support unset when possible. |
---|
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
28 | as_unset=unset |
---|
29 | else |
---|
30 | as_unset=false |
---|
31 | fi |
---|
32 | |
---|
33 | |
---|
34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
35 | $as_unset ENV MAIL MAILPATH |
---|
36 | PS1='$ ' |
---|
37 | PS2='> ' |
---|
38 | PS4='+ ' |
---|
39 | |
---|
40 | # NLS nuisances. |
---|
41 | for as_var in \ |
---|
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
44 | LC_TELEPHONE LC_TIME |
---|
45 | do |
---|
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
47 | eval $as_var=C; export $as_var |
---|
48 | else |
---|
49 | $as_unset $as_var |
---|
50 | fi |
---|
51 | done |
---|
52 | |
---|
53 | # Required to use basename. |
---|
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
55 | as_expr=expr |
---|
56 | else |
---|
57 | as_expr=false |
---|
58 | fi |
---|
59 | |
---|
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
61 | as_basename=basename |
---|
62 | else |
---|
63 | as_basename=false |
---|
64 | fi |
---|
65 | |
---|
66 | |
---|
67 | # Name of the executable. |
---|
68 | as_me=`$as_basename "$0" || |
---|
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
70 | X"$0" : 'X\(//\)$' \| \ |
---|
71 | X"$0" : 'X\(/\)$' \| \ |
---|
72 | . : '\(.\)' 2>/dev/null || |
---|
73 | echo X/"$0" | |
---|
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
77 | s/.*/./; q'` |
---|
78 | |
---|
79 | |
---|
80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
81 | # Avoid depending upon Character Ranges. |
---|
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
85 | as_cr_digits='0123456789' |
---|
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
87 | |
---|
88 | # The user is always right. |
---|
89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
90 | echo "#! /bin/sh" >conf$$.sh |
---|
91 | echo "exit 0" >>conf$$.sh |
---|
92 | chmod +x conf$$.sh |
---|
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
94 | PATH_SEPARATOR=';' |
---|
95 | else |
---|
96 | PATH_SEPARATOR=: |
---|
97 | fi |
---|
98 | rm -f conf$$.sh |
---|
99 | fi |
---|
100 | |
---|
101 | |
---|
102 | as_lineno_1=$LINENO |
---|
103 | as_lineno_2=$LINENO |
---|
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
107 | # Find who we are. Look in the path if we contain no path at all |
---|
108 | # relative or not. |
---|
109 | case $0 in |
---|
110 | *[\\/]* ) as_myself=$0 ;; |
---|
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
112 | for as_dir in $PATH |
---|
113 | do |
---|
114 | IFS=$as_save_IFS |
---|
115 | test -z "$as_dir" && as_dir=. |
---|
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
117 | done |
---|
118 | |
---|
119 | ;; |
---|
120 | esac |
---|
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
122 | # in which case we are not to be found in the path. |
---|
123 | if test "x$as_myself" = x; then |
---|
124 | as_myself=$0 |
---|
125 | fi |
---|
126 | if test ! -f "$as_myself"; then |
---|
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
128 | { (exit 1); exit 1; }; } |
---|
129 | fi |
---|
130 | case $CONFIG_SHELL in |
---|
131 | '') |
---|
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
134 | do |
---|
135 | IFS=$as_save_IFS |
---|
136 | test -z "$as_dir" && as_dir=. |
---|
137 | for as_base in sh bash ksh sh5; do |
---|
138 | case $as_dir in |
---|
139 | /*) |
---|
140 | if ("$as_dir/$as_base" -c ' |
---|
141 | as_lineno_1=$LINENO |
---|
142 | as_lineno_2=$LINENO |
---|
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
148 | CONFIG_SHELL=$as_dir/$as_base |
---|
149 | export CONFIG_SHELL |
---|
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
151 | fi;; |
---|
152 | esac |
---|
153 | done |
---|
154 | done |
---|
155 | ;; |
---|
156 | esac |
---|
157 | |
---|
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
160 | # line-number line before each line; the second 'sed' does the real |
---|
161 | # work. The second script uses 'N' to pair each line-number line |
---|
162 | # with the numbered line, and appends trailing '-' during |
---|
163 | # substitution so that $LINENO is not a special case at line end. |
---|
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
166 | sed '=' <$as_myself | |
---|
167 | sed ' |
---|
168 | N |
---|
169 | s,$,-, |
---|
170 | : loop |
---|
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
172 | t loop |
---|
173 | s,-$,, |
---|
174 | s,^['$as_cr_digits']*\n,, |
---|
175 | ' >$as_me.lineno && |
---|
176 | chmod +x $as_me.lineno || |
---|
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
178 | { (exit 1); exit 1; }; } |
---|
179 | |
---|
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
181 | # (the dirname of $[0] is not the place where we might find the |
---|
182 | # original and so on. Autoconf is especially sensible to this). |
---|
183 | . ./$as_me.lineno |
---|
184 | # Exit status is that of the last command. |
---|
185 | exit |
---|
186 | } |
---|
187 | |
---|
188 | |
---|
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
191 | ' ECHO_T=' ' ;; |
---|
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
194 | esac |
---|
195 | |
---|
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
197 | as_expr=expr |
---|
198 | else |
---|
199 | as_expr=false |
---|
200 | fi |
---|
201 | |
---|
202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
203 | echo >conf$$.file |
---|
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
207 | if test -f conf$$.exe; then |
---|
208 | # Don't use ln at all; we don't have any links |
---|
209 | as_ln_s='cp -p' |
---|
210 | else |
---|
211 | as_ln_s='ln -s' |
---|
212 | fi |
---|
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
214 | as_ln_s=ln |
---|
215 | else |
---|
216 | as_ln_s='cp -p' |
---|
217 | fi |
---|
218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
219 | |
---|
220 | if mkdir -p . 2>/dev/null; then |
---|
221 | as_mkdir_p=: |
---|
222 | else |
---|
223 | test -d ./-p && rmdir ./-p |
---|
224 | as_mkdir_p=false |
---|
225 | fi |
---|
226 | |
---|
227 | as_executable_p="test -f" |
---|
228 | |
---|
229 | # Sed expression to map a string onto a valid CPP name. |
---|
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
231 | |
---|
232 | # Sed expression to map a string onto a valid variable name. |
---|
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
234 | |
---|
235 | |
---|
236 | # IFS |
---|
237 | # We need space, tab and new line, in precisely that order. |
---|
238 | as_nl=' |
---|
239 | ' |
---|
240 | IFS=" $as_nl" |
---|
241 | |
---|
242 | # CDPATH. |
---|
243 | $as_unset CDPATH |
---|
244 | |
---|
245 | |
---|
246 | # Name of the host. |
---|
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
248 | # so uname gets run too. |
---|
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
250 | |
---|
251 | exec 6>&1 |
---|
252 | |
---|
253 | # |
---|
254 | # Initializations. |
---|
255 | # |
---|
256 | ac_default_prefix=/usr/local |
---|
257 | ac_config_libobj_dir=. |
---|
258 | cross_compiling=no |
---|
259 | subdirs= |
---|
260 | MFLAGS= |
---|
261 | MAKEFLAGS= |
---|
262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
263 | |
---|
264 | # Maximum number of lines to put in a shell here document. |
---|
265 | # This variable seems obsolete. It should probably be removed, and |
---|
266 | # only ac_max_sed_lines should be used. |
---|
267 | : ${ac_max_here_lines=38} |
---|
268 | |
---|
269 | # Identity of this package. |
---|
270 | PACKAGE_NAME='orxonox' |
---|
271 | PACKAGE_TARNAME='orxonox' |
---|
272 | PACKAGE_VERSION='0.3.1_alpha' |
---|
273 | PACKAGE_STRING='orxonox 0.3.1_alpha' |
---|
274 | PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch' |
---|
275 | |
---|
276 | ac_unique_file="." |
---|
277 | # Factoring default headers for most tests. |
---|
278 | ac_includes_default="\ |
---|
279 | #include <stdio.h> |
---|
280 | #if HAVE_SYS_TYPES_H |
---|
281 | # include <sys/types.h> |
---|
282 | #endif |
---|
283 | #if HAVE_SYS_STAT_H |
---|
284 | # include <sys/stat.h> |
---|
285 | #endif |
---|
286 | #if STDC_HEADERS |
---|
287 | # include <stdlib.h> |
---|
288 | # include <stddef.h> |
---|
289 | #else |
---|
290 | # if HAVE_STDLIB_H |
---|
291 | # include <stdlib.h> |
---|
292 | # endif |
---|
293 | #endif |
---|
294 | #if HAVE_STRING_H |
---|
295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
296 | # include <memory.h> |
---|
297 | # endif |
---|
298 | # include <string.h> |
---|
299 | #endif |
---|
300 | #if HAVE_STRINGS_H |
---|
301 | # include <strings.h> |
---|
302 | #endif |
---|
303 | #if HAVE_INTTYPES_H |
---|
304 | # include <inttypes.h> |
---|
305 | #else |
---|
306 | # if HAVE_STDINT_H |
---|
307 | # include <stdint.h> |
---|
308 | # endif |
---|
309 | #endif |
---|
310 | #if HAVE_UNISTD_H |
---|
311 | # include <unistd.h> |
---|
312 | #endif" |
---|
313 | |
---|
314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' |
---|
315 | ac_subst_files='' |
---|
316 | |
---|
317 | # Initialize some variables set by options. |
---|
318 | ac_init_help= |
---|
319 | ac_init_version=false |
---|
320 | # The variables have the same names as the options, with |
---|
321 | # dashes changed to underlines. |
---|
322 | cache_file=/dev/null |
---|
323 | exec_prefix=NONE |
---|
324 | no_create= |
---|
325 | no_recursion= |
---|
326 | prefix=NONE |
---|
327 | program_prefix=NONE |
---|
328 | program_suffix=NONE |
---|
329 | program_transform_name=s,x,x, |
---|
330 | silent= |
---|
331 | site= |
---|
332 | srcdir= |
---|
333 | verbose= |
---|
334 | x_includes=NONE |
---|
335 | x_libraries=NONE |
---|
336 | |
---|
337 | # Installation directory options. |
---|
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
339 | # and all the variables that are supposed to be based on exec_prefix |
---|
340 | # by default will actually change. |
---|
341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
342 | bindir='${exec_prefix}/bin' |
---|
343 | sbindir='${exec_prefix}/sbin' |
---|
344 | libexecdir='${exec_prefix}/libexec' |
---|
345 | datadir='${prefix}/share' |
---|
346 | sysconfdir='${prefix}/etc' |
---|
347 | sharedstatedir='${prefix}/com' |
---|
348 | localstatedir='${prefix}/var' |
---|
349 | libdir='${exec_prefix}/lib' |
---|
350 | includedir='${prefix}/include' |
---|
351 | oldincludedir='/usr/include' |
---|
352 | infodir='${prefix}/info' |
---|
353 | mandir='${prefix}/man' |
---|
354 | |
---|
355 | ac_prev= |
---|
356 | for ac_option |
---|
357 | do |
---|
358 | # If the previous option needs an argument, assign it. |
---|
359 | if test -n "$ac_prev"; then |
---|
360 | eval "$ac_prev=\$ac_option" |
---|
361 | ac_prev= |
---|
362 | continue |
---|
363 | fi |
---|
364 | |
---|
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
366 | |
---|
367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
368 | |
---|
369 | case $ac_option in |
---|
370 | |
---|
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
372 | ac_prev=bindir ;; |
---|
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
374 | bindir=$ac_optarg ;; |
---|
375 | |
---|
376 | -build | --build | --buil | --bui | --bu) |
---|
377 | ac_prev=build_alias ;; |
---|
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
379 | build_alias=$ac_optarg ;; |
---|
380 | |
---|
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
383 | ac_prev=cache_file ;; |
---|
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
386 | cache_file=$ac_optarg ;; |
---|
387 | |
---|
388 | --config-cache | -C) |
---|
389 | cache_file=config.cache ;; |
---|
390 | |
---|
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
392 | ac_prev=datadir ;; |
---|
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
394 | | --da=*) |
---|
395 | datadir=$ac_optarg ;; |
---|
396 | |
---|
397 | -disable-* | --disable-*) |
---|
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
399 | # Reject names that are not valid shell variable names. |
---|
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
402 | { (exit 1); exit 1; }; } |
---|
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
404 | eval "enable_$ac_feature=no" ;; |
---|
405 | |
---|
406 | -enable-* | --enable-*) |
---|
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
408 | # Reject names that are not valid shell variable names. |
---|
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
411 | { (exit 1); exit 1; }; } |
---|
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
413 | case $ac_option in |
---|
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
415 | *) ac_optarg=yes ;; |
---|
416 | esac |
---|
417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
418 | |
---|
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
421 | | --exec | --exe | --ex) |
---|
422 | ac_prev=exec_prefix ;; |
---|
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
425 | | --exec=* | --exe=* | --ex=*) |
---|
426 | exec_prefix=$ac_optarg ;; |
---|
427 | |
---|
428 | -gas | --gas | --ga | --g) |
---|
429 | # Obsolete; use --with-gas. |
---|
430 | with_gas=yes ;; |
---|
431 | |
---|
432 | -help | --help | --hel | --he | -h) |
---|
433 | ac_init_help=long ;; |
---|
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
435 | ac_init_help=recursive ;; |
---|
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
437 | ac_init_help=short ;; |
---|
438 | |
---|
439 | -host | --host | --hos | --ho) |
---|
440 | ac_prev=host_alias ;; |
---|
441 | -host=* | --host=* | --hos=* | --ho=*) |
---|
442 | host_alias=$ac_optarg ;; |
---|
443 | |
---|
444 | -includedir | --includedir | --includedi | --included | --include \ |
---|
445 | | --includ | --inclu | --incl | --inc) |
---|
446 | ac_prev=includedir ;; |
---|
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
449 | includedir=$ac_optarg ;; |
---|
450 | |
---|
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
452 | ac_prev=infodir ;; |
---|
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
454 | infodir=$ac_optarg ;; |
---|
455 | |
---|
456 | -libdir | --libdir | --libdi | --libd) |
---|
457 | ac_prev=libdir ;; |
---|
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
459 | libdir=$ac_optarg ;; |
---|
460 | |
---|
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
462 | | --libexe | --libex | --libe) |
---|
463 | ac_prev=libexecdir ;; |
---|
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
465 | | --libexe=* | --libex=* | --libe=*) |
---|
466 | libexecdir=$ac_optarg ;; |
---|
467 | |
---|
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
469 | | --localstate | --localstat | --localsta | --localst \ |
---|
470 | | --locals | --local | --loca | --loc | --lo) |
---|
471 | ac_prev=localstatedir ;; |
---|
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
475 | localstatedir=$ac_optarg ;; |
---|
476 | |
---|
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
478 | ac_prev=mandir ;; |
---|
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
480 | mandir=$ac_optarg ;; |
---|
481 | |
---|
482 | -nfp | --nfp | --nf) |
---|
483 | # Obsolete; use --without-fp. |
---|
484 | with_fp=no ;; |
---|
485 | |
---|
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
487 | | --no-cr | --no-c | -n) |
---|
488 | no_create=yes ;; |
---|
489 | |
---|
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
492 | no_recursion=yes ;; |
---|
493 | |
---|
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
496 | | --oldin | --oldi | --old | --ol | --o) |
---|
497 | ac_prev=oldincludedir ;; |
---|
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
501 | oldincludedir=$ac_optarg ;; |
---|
502 | |
---|
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
504 | ac_prev=prefix ;; |
---|
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
506 | prefix=$ac_optarg ;; |
---|
507 | |
---|
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
509 | | --program-pre | --program-pr | --program-p) |
---|
510 | ac_prev=program_prefix ;; |
---|
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
513 | program_prefix=$ac_optarg ;; |
---|
514 | |
---|
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
516 | | --program-suf | --program-su | --program-s) |
---|
517 | ac_prev=program_suffix ;; |
---|
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
520 | program_suffix=$ac_optarg ;; |
---|
521 | |
---|
522 | -program-transform-name | --program-transform-name \ |
---|
523 | | --program-transform-nam | --program-transform-na \ |
---|
524 | | --program-transform-n | --program-transform- \ |
---|
525 | | --program-transform | --program-transfor \ |
---|
526 | | --program-transfo | --program-transf \ |
---|
527 | | --program-trans | --program-tran \ |
---|
528 | | --progr-tra | --program-tr | --program-t) |
---|
529 | ac_prev=program_transform_name ;; |
---|
530 | -program-transform-name=* | --program-transform-name=* \ |
---|
531 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
532 | | --program-transform-n=* | --program-transform-=* \ |
---|
533 | | --program-transform=* | --program-transfor=* \ |
---|
534 | | --program-transfo=* | --program-transf=* \ |
---|
535 | | --program-trans=* | --program-tran=* \ |
---|
536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
537 | program_transform_name=$ac_optarg ;; |
---|
538 | |
---|
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
540 | | -silent | --silent | --silen | --sile | --sil) |
---|
541 | silent=yes ;; |
---|
542 | |
---|
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
544 | ac_prev=sbindir ;; |
---|
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
546 | | --sbi=* | --sb=*) |
---|
547 | sbindir=$ac_optarg ;; |
---|
548 | |
---|
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
551 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
552 | | --sha | --sh) |
---|
553 | ac_prev=sharedstatedir ;; |
---|
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
557 | | --sha=* | --sh=*) |
---|
558 | sharedstatedir=$ac_optarg ;; |
---|
559 | |
---|
560 | -site | --site | --sit) |
---|
561 | ac_prev=site ;; |
---|
562 | -site=* | --site=* | --sit=*) |
---|
563 | site=$ac_optarg ;; |
---|
564 | |
---|
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
566 | ac_prev=srcdir ;; |
---|
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
568 | srcdir=$ac_optarg ;; |
---|
569 | |
---|
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
571 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
572 | ac_prev=sysconfdir ;; |
---|
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
575 | sysconfdir=$ac_optarg ;; |
---|
576 | |
---|
577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
578 | ac_prev=target_alias ;; |
---|
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
580 | target_alias=$ac_optarg ;; |
---|
581 | |
---|
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
583 | verbose=yes ;; |
---|
584 | |
---|
585 | -version | --version | --versio | --versi | --vers | -V) |
---|
586 | ac_init_version=: ;; |
---|
587 | |
---|
588 | -with-* | --with-*) |
---|
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
590 | # Reject names that are not valid shell variable names. |
---|
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
593 | { (exit 1); exit 1; }; } |
---|
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
595 | case $ac_option in |
---|
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
597 | *) ac_optarg=yes ;; |
---|
598 | esac |
---|
599 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
600 | |
---|
601 | -without-* | --without-*) |
---|
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
603 | # Reject names that are not valid shell variable names. |
---|
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
606 | { (exit 1); exit 1; }; } |
---|
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
608 | eval "with_$ac_package=no" ;; |
---|
609 | |
---|
610 | --x) |
---|
611 | # Obsolete; use --with-x. |
---|
612 | with_x=yes ;; |
---|
613 | |
---|
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
615 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
616 | ac_prev=x_includes ;; |
---|
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
619 | x_includes=$ac_optarg ;; |
---|
620 | |
---|
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
623 | ac_prev=x_libraries ;; |
---|
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
626 | x_libraries=$ac_optarg ;; |
---|
627 | |
---|
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
629 | Try \`$0 --help' for more information." >&2 |
---|
630 | { (exit 1); exit 1; }; } |
---|
631 | ;; |
---|
632 | |
---|
633 | *=*) |
---|
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
635 | # Reject names that are not valid shell variable names. |
---|
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
638 | { (exit 1); exit 1; }; } |
---|
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
640 | eval "$ac_envvar='$ac_optarg'" |
---|
641 | export $ac_envvar ;; |
---|
642 | |
---|
643 | *) |
---|
644 | # FIXME: should be removed in autoconf 3.0. |
---|
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
649 | ;; |
---|
650 | |
---|
651 | esac |
---|
652 | done |
---|
653 | |
---|
654 | if test -n "$ac_prev"; then |
---|
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
657 | { (exit 1); exit 1; }; } |
---|
658 | fi |
---|
659 | |
---|
660 | # Be sure to have absolute paths. |
---|
661 | for ac_var in exec_prefix prefix |
---|
662 | do |
---|
663 | eval ac_val=$`echo $ac_var` |
---|
664 | case $ac_val in |
---|
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
667 | { (exit 1); exit 1; }; };; |
---|
668 | esac |
---|
669 | done |
---|
670 | |
---|
671 | # Be sure to have absolute paths. |
---|
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
673 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
674 | do |
---|
675 | eval ac_val=$`echo $ac_var` |
---|
676 | case $ac_val in |
---|
677 | [\\/$]* | ?:[\\/]* ) ;; |
---|
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
679 | { (exit 1); exit 1; }; };; |
---|
680 | esac |
---|
681 | done |
---|
682 | |
---|
683 | # There might be people who depend on the old broken behavior: `$host' |
---|
684 | # used to hold the argument of --host etc. |
---|
685 | # FIXME: To remove some day. |
---|
686 | build=$build_alias |
---|
687 | host=$host_alias |
---|
688 | target=$target_alias |
---|
689 | |
---|
690 | # FIXME: To remove some day. |
---|
691 | if test "x$host_alias" != x; then |
---|
692 | if test "x$build_alias" = x; then |
---|
693 | cross_compiling=maybe |
---|
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
696 | elif test "x$build_alias" != "x$host_alias"; then |
---|
697 | cross_compiling=yes |
---|
698 | fi |
---|
699 | fi |
---|
700 | |
---|
701 | ac_tool_prefix= |
---|
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
703 | |
---|
704 | test "$silent" = yes && exec 6>/dev/null |
---|
705 | |
---|
706 | |
---|
707 | # Find the source files, if location was not specified. |
---|
708 | if test -z "$srcdir"; then |
---|
709 | ac_srcdir_defaulted=yes |
---|
710 | # Try the directory containing this script, then its parent. |
---|
711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
713 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
714 | X"$0" : 'X\(//\)$' \| \ |
---|
715 | X"$0" : 'X\(/\)' \| \ |
---|
716 | . : '\(.\)' 2>/dev/null || |
---|
717 | echo X"$0" | |
---|
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
722 | s/.*/./; q'` |
---|
723 | srcdir=$ac_confdir |
---|
724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
725 | srcdir=.. |
---|
726 | fi |
---|
727 | else |
---|
728 | ac_srcdir_defaulted=no |
---|
729 | fi |
---|
730 | if test ! -r $srcdir/$ac_unique_file; then |
---|
731 | if test "$ac_srcdir_defaulted" = yes; then |
---|
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
733 | { (exit 1); exit 1; }; } |
---|
734 | else |
---|
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
736 | { (exit 1); exit 1; }; } |
---|
737 | fi |
---|
738 | fi |
---|
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
741 | { (exit 1); exit 1; }; } |
---|
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
743 | ac_env_build_alias_set=${build_alias+set} |
---|
744 | ac_env_build_alias_value=$build_alias |
---|
745 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
746 | ac_cv_env_build_alias_value=$build_alias |
---|
747 | ac_env_host_alias_set=${host_alias+set} |
---|
748 | ac_env_host_alias_value=$host_alias |
---|
749 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
750 | ac_cv_env_host_alias_value=$host_alias |
---|
751 | ac_env_target_alias_set=${target_alias+set} |
---|
752 | ac_env_target_alias_value=$target_alias |
---|
753 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
754 | ac_cv_env_target_alias_value=$target_alias |
---|
755 | ac_env_CXX_set=${CXX+set} |
---|
756 | ac_env_CXX_value=$CXX |
---|
757 | ac_cv_env_CXX_set=${CXX+set} |
---|
758 | ac_cv_env_CXX_value=$CXX |
---|
759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
760 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
764 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
771 | ac_env_CC_set=${CC+set} |
---|
772 | ac_env_CC_value=$CC |
---|
773 | ac_cv_env_CC_set=${CC+set} |
---|
774 | ac_cv_env_CC_value=$CC |
---|
775 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
776 | ac_env_CFLAGS_value=$CFLAGS |
---|
777 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
778 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
779 | ac_env_CPP_set=${CPP+set} |
---|
780 | ac_env_CPP_value=$CPP |
---|
781 | ac_cv_env_CPP_set=${CPP+set} |
---|
782 | ac_cv_env_CPP_value=$CPP |
---|
783 | |
---|
784 | # |
---|
785 | # Report the --help message. |
---|
786 | # |
---|
787 | if test "$ac_init_help" = "long"; then |
---|
788 | # Omit some internal or obsolete options to make the list less imposing. |
---|
789 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
790 | cat <<_ACEOF |
---|
791 | \`configure' configures orxonox 0.3.1_alpha to adapt to many kinds of systems. |
---|
792 | |
---|
793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
794 | |
---|
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
797 | |
---|
798 | Defaults for the options are specified in brackets. |
---|
799 | |
---|
800 | Configuration: |
---|
801 | -h, --help display this help and exit |
---|
802 | --help=short display options specific to this package |
---|
803 | --help=recursive display the short help of all the included packages |
---|
804 | -V, --version display version information and exit |
---|
805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
808 | -n, --no-create do not create output files |
---|
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
810 | |
---|
811 | _ACEOF |
---|
812 | |
---|
813 | cat <<_ACEOF |
---|
814 | Installation directories: |
---|
815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
816 | [$ac_default_prefix] |
---|
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
818 | [PREFIX] |
---|
819 | |
---|
820 | By default, \`make install' will install all the files in |
---|
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
823 | for instance \`--prefix=\$HOME'. |
---|
824 | |
---|
825 | For better control, use the options below. |
---|
826 | |
---|
827 | Fine tuning of the installation directories: |
---|
828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
836 | --includedir=DIR C header files [PREFIX/include] |
---|
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
838 | --infodir=DIR info documentation [PREFIX/info] |
---|
839 | --mandir=DIR man documentation [PREFIX/man] |
---|
840 | _ACEOF |
---|
841 | |
---|
842 | cat <<\_ACEOF |
---|
843 | |
---|
844 | Program names: |
---|
845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
848 | |
---|
849 | System types: |
---|
850 | --build=BUILD configure for building on BUILD [guessed] |
---|
851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
852 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
853 | _ACEOF |
---|
854 | fi |
---|
855 | |
---|
856 | if test -n "$ac_init_help"; then |
---|
857 | case $ac_init_help in |
---|
858 | short | recursive ) echo "Configuration of orxonox 0.3.1_alpha:";; |
---|
859 | esac |
---|
860 | cat <<\_ACEOF |
---|
861 | |
---|
862 | Optional Features: |
---|
863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
865 | --disable-dependency-tracking speeds up one-time build |
---|
866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
868 | game. |
---|
869 | --disable-modular-debug compiles in modular-debug mode, that logs |
---|
870 | differently on the many modules of orxonox. |
---|
871 | --disable-gtk Prevents GTK from being loaded |
---|
872 | --disable-curl Prevents libcURL from being loaded |
---|
873 | --enable-profile builds orxonox with profiling support |
---|
874 | --enable-efence builds orxonox with efence support |
---|
875 | --enable-documentation also builds the sDocumentation while make from |
---|
876 | srcdir |
---|
877 | |
---|
878 | Optional Packages: |
---|
879 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
880 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
881 | --with-shared-lib-path Tells the executable, where to look for the shared |
---|
882 | libraries. |
---|
883 | --with-sub-projects also builds the subProjects while make from srcdir |
---|
884 | --with-tardis sets all the necesary environment flags for |
---|
885 | linux-TARDIS boxes at the ETH Zurich |
---|
886 | |
---|
887 | Some influential environment variables: |
---|
888 | CXX C++ compiler command |
---|
889 | CXXFLAGS C++ compiler flags |
---|
890 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
891 | nonstandard directory <lib dir> |
---|
892 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
893 | headers in a nonstandard directory <include dir> |
---|
894 | CC C compiler command |
---|
895 | CFLAGS C compiler flags |
---|
896 | CPP C preprocessor |
---|
897 | |
---|
898 | Use these variables to override the choices made by `configure' or to help |
---|
899 | it to find libraries and programs with nonstandard names/locations. |
---|
900 | |
---|
901 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
902 | _ACEOF |
---|
903 | fi |
---|
904 | |
---|
905 | if test "$ac_init_help" = "recursive"; then |
---|
906 | # If there are subdirs, report their specific --help. |
---|
907 | ac_popdir=`pwd` |
---|
908 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
909 | test -d $ac_dir || continue |
---|
910 | ac_builddir=. |
---|
911 | |
---|
912 | if test "$ac_dir" != .; then |
---|
913 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
914 | # A "../" for each directory in $ac_dir_suffix. |
---|
915 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
916 | else |
---|
917 | ac_dir_suffix= ac_top_builddir= |
---|
918 | fi |
---|
919 | |
---|
920 | case $srcdir in |
---|
921 | .) # No --srcdir option. We are building in place. |
---|
922 | ac_srcdir=. |
---|
923 | if test -z "$ac_top_builddir"; then |
---|
924 | ac_top_srcdir=. |
---|
925 | else |
---|
926 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
927 | fi ;; |
---|
928 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
929 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
930 | ac_top_srcdir=$srcdir ;; |
---|
931 | *) # Relative path. |
---|
932 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
933 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
934 | esac |
---|
935 | |
---|
936 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
937 | # the directories may not exist. |
---|
938 | case `pwd` in |
---|
939 | .) ac_abs_builddir="$ac_dir";; |
---|
940 | *) |
---|
941 | case "$ac_dir" in |
---|
942 | .) ac_abs_builddir=`pwd`;; |
---|
943 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
944 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
945 | esac;; |
---|
946 | esac |
---|
947 | case $ac_abs_builddir in |
---|
948 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
949 | *) |
---|
950 | case ${ac_top_builddir}. in |
---|
951 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
952 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
953 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
954 | esac;; |
---|
955 | esac |
---|
956 | case $ac_abs_builddir in |
---|
957 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
958 | *) |
---|
959 | case $ac_srcdir in |
---|
960 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
961 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
962 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
963 | esac;; |
---|
964 | esac |
---|
965 | case $ac_abs_builddir in |
---|
966 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
967 | *) |
---|
968 | case $ac_top_srcdir in |
---|
969 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
970 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
971 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
972 | esac;; |
---|
973 | esac |
---|
974 | |
---|
975 | cd $ac_dir |
---|
976 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
977 | if test -f $ac_srcdir/configure.gnu; then |
---|
978 | echo |
---|
979 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
980 | elif test -f $ac_srcdir/configure; then |
---|
981 | echo |
---|
982 | $SHELL $ac_srcdir/configure --help=recursive |
---|
983 | elif test -f $ac_srcdir/configure.ac || |
---|
984 | test -f $ac_srcdir/configure.in; then |
---|
985 | echo |
---|
986 | $ac_configure --help |
---|
987 | else |
---|
988 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
989 | fi |
---|
990 | cd $ac_popdir |
---|
991 | done |
---|
992 | fi |
---|
993 | |
---|
994 | test -n "$ac_init_help" && exit 0 |
---|
995 | if $ac_init_version; then |
---|
996 | cat <<\_ACEOF |
---|
997 | orxonox configure 0.3.1_alpha |
---|
998 | generated by GNU Autoconf 2.59 |
---|
999 | |
---|
1000 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1001 | This configure script is free software; the Free Software Foundation |
---|
1002 | gives unlimited permission to copy, distribute and modify it. |
---|
1003 | _ACEOF |
---|
1004 | exit 0 |
---|
1005 | fi |
---|
1006 | exec 5>config.log |
---|
1007 | cat >&5 <<_ACEOF |
---|
1008 | This file contains any messages produced by compilers while |
---|
1009 | running configure, to aid debugging if configure makes a mistake. |
---|
1010 | |
---|
1011 | It was created by orxonox $as_me 0.3.1_alpha, which was |
---|
1012 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1013 | |
---|
1014 | $ $0 $@ |
---|
1015 | |
---|
1016 | _ACEOF |
---|
1017 | { |
---|
1018 | cat <<_ASUNAME |
---|
1019 | ## --------- ## |
---|
1020 | ## Platform. ## |
---|
1021 | ## --------- ## |
---|
1022 | |
---|
1023 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1024 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1025 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1026 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1027 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1028 | |
---|
1029 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1030 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1031 | |
---|
1032 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1033 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1034 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1035 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1036 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1037 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1038 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1039 | |
---|
1040 | _ASUNAME |
---|
1041 | |
---|
1042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1043 | for as_dir in $PATH |
---|
1044 | do |
---|
1045 | IFS=$as_save_IFS |
---|
1046 | test -z "$as_dir" && as_dir=. |
---|
1047 | echo "PATH: $as_dir" |
---|
1048 | done |
---|
1049 | |
---|
1050 | } >&5 |
---|
1051 | |
---|
1052 | cat >&5 <<_ACEOF |
---|
1053 | |
---|
1054 | |
---|
1055 | ## ----------- ## |
---|
1056 | ## Core tests. ## |
---|
1057 | ## ----------- ## |
---|
1058 | |
---|
1059 | _ACEOF |
---|
1060 | |
---|
1061 | |
---|
1062 | # Keep a trace of the command line. |
---|
1063 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1064 | # Strip out --silent because we don't want to record it for future runs. |
---|
1065 | # Also quote any args containing shell meta-characters. |
---|
1066 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1067 | ac_configure_args= |
---|
1068 | ac_configure_args0= |
---|
1069 | ac_configure_args1= |
---|
1070 | ac_sep= |
---|
1071 | ac_must_keep_next=false |
---|
1072 | for ac_pass in 1 2 |
---|
1073 | do |
---|
1074 | for ac_arg |
---|
1075 | do |
---|
1076 | case $ac_arg in |
---|
1077 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1078 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1079 | | -silent | --silent | --silen | --sile | --sil) |
---|
1080 | continue ;; |
---|
1081 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1082 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1083 | esac |
---|
1084 | case $ac_pass in |
---|
1085 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1086 | 2) |
---|
1087 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1088 | if test $ac_must_keep_next = true; then |
---|
1089 | ac_must_keep_next=false # Got value, back to normal. |
---|
1090 | else |
---|
1091 | case $ac_arg in |
---|
1092 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1093 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1094 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1095 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1096 | case "$ac_configure_args0 " in |
---|
1097 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1098 | esac |
---|
1099 | ;; |
---|
1100 | -* ) ac_must_keep_next=true ;; |
---|
1101 | esac |
---|
1102 | fi |
---|
1103 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1104 | # Get rid of the leading space. |
---|
1105 | ac_sep=" " |
---|
1106 | ;; |
---|
1107 | esac |
---|
1108 | done |
---|
1109 | done |
---|
1110 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1111 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1112 | |
---|
1113 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1114 | # config.log. We remove comments because anyway the quotes in there |
---|
1115 | # would cause problems or look ugly. |
---|
1116 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1117 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1118 | trap 'exit_status=$? |
---|
1119 | # Save into config.log some information that might help in debugging. |
---|
1120 | { |
---|
1121 | echo |
---|
1122 | |
---|
1123 | cat <<\_ASBOX |
---|
1124 | ## ---------------- ## |
---|
1125 | ## Cache variables. ## |
---|
1126 | ## ---------------- ## |
---|
1127 | _ASBOX |
---|
1128 | echo |
---|
1129 | # The following way of writing the cache mishandles newlines in values, |
---|
1130 | { |
---|
1131 | (set) 2>&1 | |
---|
1132 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1133 | *ac_space=\ *) |
---|
1134 | sed -n \ |
---|
1135 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1136 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1137 | ;; |
---|
1138 | *) |
---|
1139 | sed -n \ |
---|
1140 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1141 | ;; |
---|
1142 | esac; |
---|
1143 | } |
---|
1144 | echo |
---|
1145 | |
---|
1146 | cat <<\_ASBOX |
---|
1147 | ## ----------------- ## |
---|
1148 | ## Output variables. ## |
---|
1149 | ## ----------------- ## |
---|
1150 | _ASBOX |
---|
1151 | echo |
---|
1152 | for ac_var in $ac_subst_vars |
---|
1153 | do |
---|
1154 | eval ac_val=$`echo $ac_var` |
---|
1155 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1156 | done | sort |
---|
1157 | echo |
---|
1158 | |
---|
1159 | if test -n "$ac_subst_files"; then |
---|
1160 | cat <<\_ASBOX |
---|
1161 | ## ------------- ## |
---|
1162 | ## Output files. ## |
---|
1163 | ## ------------- ## |
---|
1164 | _ASBOX |
---|
1165 | echo |
---|
1166 | for ac_var in $ac_subst_files |
---|
1167 | do |
---|
1168 | eval ac_val=$`echo $ac_var` |
---|
1169 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1170 | done | sort |
---|
1171 | echo |
---|
1172 | fi |
---|
1173 | |
---|
1174 | if test -s confdefs.h; then |
---|
1175 | cat <<\_ASBOX |
---|
1176 | ## ----------- ## |
---|
1177 | ## confdefs.h. ## |
---|
1178 | ## ----------- ## |
---|
1179 | _ASBOX |
---|
1180 | echo |
---|
1181 | sed "/^$/d" confdefs.h | sort |
---|
1182 | echo |
---|
1183 | fi |
---|
1184 | test "$ac_signal" != 0 && |
---|
1185 | echo "$as_me: caught signal $ac_signal" |
---|
1186 | echo "$as_me: exit $exit_status" |
---|
1187 | } >&5 |
---|
1188 | rm -f core *.core && |
---|
1189 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1190 | exit $exit_status |
---|
1191 | ' 0 |
---|
1192 | for ac_signal in 1 2 13 15; do |
---|
1193 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1194 | done |
---|
1195 | ac_signal=0 |
---|
1196 | |
---|
1197 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1198 | rm -rf conftest* confdefs.h |
---|
1199 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1200 | echo >confdefs.h |
---|
1201 | |
---|
1202 | # Predefined preprocessor variables. |
---|
1203 | |
---|
1204 | cat >>confdefs.h <<_ACEOF |
---|
1205 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1206 | _ACEOF |
---|
1207 | |
---|
1208 | |
---|
1209 | cat >>confdefs.h <<_ACEOF |
---|
1210 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1211 | _ACEOF |
---|
1212 | |
---|
1213 | |
---|
1214 | cat >>confdefs.h <<_ACEOF |
---|
1215 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1216 | _ACEOF |
---|
1217 | |
---|
1218 | |
---|
1219 | cat >>confdefs.h <<_ACEOF |
---|
1220 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1221 | _ACEOF |
---|
1222 | |
---|
1223 | |
---|
1224 | cat >>confdefs.h <<_ACEOF |
---|
1225 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1226 | _ACEOF |
---|
1227 | |
---|
1228 | |
---|
1229 | # Let the site file select an alternate cache file if it wants to. |
---|
1230 | # Prefer explicitly selected file to automatically selected ones. |
---|
1231 | if test -z "$CONFIG_SITE"; then |
---|
1232 | if test "x$prefix" != xNONE; then |
---|
1233 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1234 | else |
---|
1235 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1236 | fi |
---|
1237 | fi |
---|
1238 | for ac_site_file in $CONFIG_SITE; do |
---|
1239 | if test -r "$ac_site_file"; then |
---|
1240 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1241 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1242 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1243 | . "$ac_site_file" |
---|
1244 | fi |
---|
1245 | done |
---|
1246 | |
---|
1247 | if test -r "$cache_file"; then |
---|
1248 | # Some versions of bash will fail to source /dev/null (special |
---|
1249 | # files actually), so we avoid doing that. |
---|
1250 | if test -f "$cache_file"; then |
---|
1251 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1252 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1253 | case $cache_file in |
---|
1254 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1255 | *) . ./$cache_file;; |
---|
1256 | esac |
---|
1257 | fi |
---|
1258 | else |
---|
1259 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1260 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1261 | >$cache_file |
---|
1262 | fi |
---|
1263 | |
---|
1264 | # Check that the precious variables saved in the cache have kept the same |
---|
1265 | # value. |
---|
1266 | ac_cache_corrupted=false |
---|
1267 | for ac_var in `(set) 2>&1 | |
---|
1268 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1269 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1270 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1271 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1272 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1273 | case $ac_old_set,$ac_new_set in |
---|
1274 | set,) |
---|
1275 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1276 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1277 | ac_cache_corrupted=: ;; |
---|
1278 | ,set) |
---|
1279 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1280 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1281 | ac_cache_corrupted=: ;; |
---|
1282 | ,);; |
---|
1283 | *) |
---|
1284 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1285 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1286 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1287 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1288 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1289 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1290 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1291 | ac_cache_corrupted=: |
---|
1292 | fi;; |
---|
1293 | esac |
---|
1294 | # Pass precious variables to config.status. |
---|
1295 | if test "$ac_new_set" = set; then |
---|
1296 | case $ac_new_val in |
---|
1297 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1298 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1299 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1300 | esac |
---|
1301 | case " $ac_configure_args " in |
---|
1302 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1303 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1304 | esac |
---|
1305 | fi |
---|
1306 | done |
---|
1307 | if $ac_cache_corrupted; then |
---|
1308 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1309 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1310 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1311 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1312 | { (exit 1); exit 1; }; } |
---|
1313 | fi |
---|
1314 | |
---|
1315 | ac_ext=c |
---|
1316 | ac_cpp='$CPP $CPPFLAGS' |
---|
1317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1319 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1320 | |
---|
1321 | |
---|
1322 | |
---|
1323 | |
---|
1324 | |
---|
1325 | |
---|
1326 | |
---|
1327 | |
---|
1328 | |
---|
1329 | |
---|
1330 | |
---|
1331 | |
---|
1332 | |
---|
1333 | |
---|
1334 | |
---|
1335 | |
---|
1336 | |
---|
1337 | |
---|
1338 | |
---|
1339 | |
---|
1340 | |
---|
1341 | |
---|
1342 | |
---|
1343 | |
---|
1344 | |
---|
1345 | |
---|
1346 | |
---|
1347 | |
---|
1348 | ## Detect the canonical host and target build environment. |
---|
1349 | ac_aux_dir= |
---|
1350 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1351 | if test -f $ac_dir/install-sh; then |
---|
1352 | ac_aux_dir=$ac_dir |
---|
1353 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1354 | break |
---|
1355 | elif test -f $ac_dir/install.sh; then |
---|
1356 | ac_aux_dir=$ac_dir |
---|
1357 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1358 | break |
---|
1359 | elif test -f $ac_dir/shtool; then |
---|
1360 | ac_aux_dir=$ac_dir |
---|
1361 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1362 | break |
---|
1363 | fi |
---|
1364 | done |
---|
1365 | if test -z "$ac_aux_dir"; then |
---|
1366 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1367 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1368 | { (exit 1); exit 1; }; } |
---|
1369 | fi |
---|
1370 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1371 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1372 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1373 | |
---|
1374 | # Make sure we can run config.sub. |
---|
1375 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1376 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1377 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1378 | { (exit 1); exit 1; }; } |
---|
1379 | |
---|
1380 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1381 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1382 | if test "${ac_cv_build+set}" = set; then |
---|
1383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1384 | else |
---|
1385 | ac_cv_build_alias=$build_alias |
---|
1386 | test -z "$ac_cv_build_alias" && |
---|
1387 | ac_cv_build_alias=`$ac_config_guess` |
---|
1388 | test -z "$ac_cv_build_alias" && |
---|
1389 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1390 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1391 | { (exit 1); exit 1; }; } |
---|
1392 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1393 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1394 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1395 | { (exit 1); exit 1; }; } |
---|
1396 | |
---|
1397 | fi |
---|
1398 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1399 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1400 | build=$ac_cv_build |
---|
1401 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1402 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1403 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1404 | |
---|
1405 | |
---|
1406 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1407 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1408 | if test "${ac_cv_host+set}" = set; then |
---|
1409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1410 | else |
---|
1411 | ac_cv_host_alias=$host_alias |
---|
1412 | test -z "$ac_cv_host_alias" && |
---|
1413 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1414 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1415 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1416 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1417 | { (exit 1); exit 1; }; } |
---|
1418 | |
---|
1419 | fi |
---|
1420 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1421 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1422 | host=$ac_cv_host |
---|
1423 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1424 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1425 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1426 | |
---|
1427 | |
---|
1428 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1429 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1430 | if test "${ac_cv_target+set}" = set; then |
---|
1431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1432 | else |
---|
1433 | ac_cv_target_alias=$target_alias |
---|
1434 | test "x$ac_cv_target_alias" = "x" && |
---|
1435 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1436 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1437 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1438 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1439 | { (exit 1); exit 1; }; } |
---|
1440 | |
---|
1441 | fi |
---|
1442 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1443 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1444 | target=$ac_cv_target |
---|
1445 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1446 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1447 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1448 | |
---|
1449 | |
---|
1450 | # The aliases save the names the user supplied, while $host etc. |
---|
1451 | # will get canonicalized. |
---|
1452 | test -n "$target_alias" && |
---|
1453 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1454 | NONENONEs,x,x, && |
---|
1455 | program_prefix=${target_alias}- |
---|
1456 | |
---|
1457 | am__api_version="1.8" |
---|
1458 | # Find a good install program. We prefer a C program (faster), |
---|
1459 | # so one script is as good as another. But avoid the broken or |
---|
1460 | # incompatible versions: |
---|
1461 | # SysV /etc/install, /usr/sbin/install |
---|
1462 | # SunOS /usr/etc/install |
---|
1463 | # IRIX /sbin/install |
---|
1464 | # AIX /bin/install |
---|
1465 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1466 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1467 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1468 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1469 | # OS/2's system install, which has a completely different semantic |
---|
1470 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1471 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1472 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1473 | if test -z "$INSTALL"; then |
---|
1474 | if test "${ac_cv_path_install+set}" = set; then |
---|
1475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1476 | else |
---|
1477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1478 | for as_dir in $PATH |
---|
1479 | do |
---|
1480 | IFS=$as_save_IFS |
---|
1481 | test -z "$as_dir" && as_dir=. |
---|
1482 | # Account for people who put trailing slashes in PATH elements. |
---|
1483 | case $as_dir/ in |
---|
1484 | ./ | .// | /cC/* | \ |
---|
1485 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1486 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1487 | /usr/ucb/* ) ;; |
---|
1488 | *) |
---|
1489 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1490 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1491 | # by default. |
---|
1492 | for ac_prog in ginstall scoinst install; do |
---|
1493 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1494 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1495 | if test $ac_prog = install && |
---|
1496 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1497 | # AIX install. It has an incompatible calling convention. |
---|
1498 | : |
---|
1499 | elif test $ac_prog = install && |
---|
1500 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1501 | # program-specific install script used by HP pwplus--don't use. |
---|
1502 | : |
---|
1503 | else |
---|
1504 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1505 | break 3 |
---|
1506 | fi |
---|
1507 | fi |
---|
1508 | done |
---|
1509 | done |
---|
1510 | ;; |
---|
1511 | esac |
---|
1512 | done |
---|
1513 | |
---|
1514 | |
---|
1515 | fi |
---|
1516 | if test "${ac_cv_path_install+set}" = set; then |
---|
1517 | INSTALL=$ac_cv_path_install |
---|
1518 | else |
---|
1519 | # As a last resort, use the slow shell script. We don't cache a |
---|
1520 | # path for INSTALL within a source directory, because that will |
---|
1521 | # break other packages using the cache if that directory is |
---|
1522 | # removed, or if the path is relative. |
---|
1523 | INSTALL=$ac_install_sh |
---|
1524 | fi |
---|
1525 | fi |
---|
1526 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1527 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1528 | |
---|
1529 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1530 | # It thinks the first close brace ends the variable substitution. |
---|
1531 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1532 | |
---|
1533 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1534 | |
---|
1535 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1536 | |
---|
1537 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1538 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1539 | # Just in case |
---|
1540 | sleep 1 |
---|
1541 | echo timestamp > conftest.file |
---|
1542 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1543 | # arguments. Must try -L first in case configure is actually a |
---|
1544 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1545 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1546 | # directory). |
---|
1547 | if ( |
---|
1548 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1549 | if test "$*" = "X"; then |
---|
1550 | # -L didn't work. |
---|
1551 | set X `ls -t $srcdir/configure conftest.file` |
---|
1552 | fi |
---|
1553 | rm -f conftest.file |
---|
1554 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1555 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1556 | |
---|
1557 | # If neither matched, then we have a broken ls. This can happen |
---|
1558 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1559 | # broken ls alias from the environment. This has actually |
---|
1560 | # happened. Such a system could not be considered "sane". |
---|
1561 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1562 | alias in your environment" >&5 |
---|
1563 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1564 | alias in your environment" >&2;} |
---|
1565 | { (exit 1); exit 1; }; } |
---|
1566 | fi |
---|
1567 | |
---|
1568 | test "$2" = conftest.file |
---|
1569 | ) |
---|
1570 | then |
---|
1571 | # Ok. |
---|
1572 | : |
---|
1573 | else |
---|
1574 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1575 | Check your system clock" >&5 |
---|
1576 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1577 | Check your system clock" >&2;} |
---|
1578 | { (exit 1); exit 1; }; } |
---|
1579 | fi |
---|
1580 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1581 | echo "${ECHO_T}yes" >&6 |
---|
1582 | test "$program_prefix" != NONE && |
---|
1583 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1584 | # Use a double $ so make ignores it. |
---|
1585 | test "$program_suffix" != NONE && |
---|
1586 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1587 | # Double any \ or $. echo might interpret backslashes. |
---|
1588 | # By default was `s,x,x', remove it if useless. |
---|
1589 | cat <<\_ACEOF >conftest.sed |
---|
1590 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1591 | _ACEOF |
---|
1592 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1593 | rm conftest.sed |
---|
1594 | |
---|
1595 | # expand $ac_aux_dir to an absolute path |
---|
1596 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1597 | |
---|
1598 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1599 | # Use eval to expand $SHELL |
---|
1600 | if eval "$MISSING --run true"; then |
---|
1601 | am_missing_run="$MISSING --run " |
---|
1602 | else |
---|
1603 | am_missing_run= |
---|
1604 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1605 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1606 | fi |
---|
1607 | |
---|
1608 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1609 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
1610 | # argument. Indeed, we sometimes output rules like |
---|
1611 | # $(mkdir_p) $(somedir) |
---|
1612 | # where $(somedir) is conditionally defined. |
---|
1613 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
1614 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
1615 | mkdir_p='mkdir -p -- .' |
---|
1616 | else |
---|
1617 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1618 | # recognize any option. It will interpret all options as |
---|
1619 | # directories to create, and then abort because `.' already |
---|
1620 | # exists. |
---|
1621 | for d in ./-p ./--version; |
---|
1622 | do |
---|
1623 | test -d $d && rmdir $d |
---|
1624 | done |
---|
1625 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1626 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1627 | mkdir_p='$(mkinstalldirs)' |
---|
1628 | else |
---|
1629 | mkdir_p='$(install_sh) -d' |
---|
1630 | fi |
---|
1631 | fi |
---|
1632 | |
---|
1633 | for ac_prog in gawk mawk nawk awk |
---|
1634 | do |
---|
1635 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1636 | set dummy $ac_prog; ac_word=$2 |
---|
1637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1639 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1641 | else |
---|
1642 | if test -n "$AWK"; then |
---|
1643 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1644 | else |
---|
1645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1646 | for as_dir in $PATH |
---|
1647 | do |
---|
1648 | IFS=$as_save_IFS |
---|
1649 | test -z "$as_dir" && as_dir=. |
---|
1650 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1652 | ac_cv_prog_AWK="$ac_prog" |
---|
1653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1654 | break 2 |
---|
1655 | fi |
---|
1656 | done |
---|
1657 | done |
---|
1658 | |
---|
1659 | fi |
---|
1660 | fi |
---|
1661 | AWK=$ac_cv_prog_AWK |
---|
1662 | if test -n "$AWK"; then |
---|
1663 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1664 | echo "${ECHO_T}$AWK" >&6 |
---|
1665 | else |
---|
1666 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1667 | echo "${ECHO_T}no" >&6 |
---|
1668 | fi |
---|
1669 | |
---|
1670 | test -n "$AWK" && break |
---|
1671 | done |
---|
1672 | |
---|
1673 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1674 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1675 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1676 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1678 | else |
---|
1679 | cat >conftest.make <<\_ACEOF |
---|
1680 | all: |
---|
1681 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1682 | _ACEOF |
---|
1683 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1684 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1685 | if test -n "$ac_maketemp"; then |
---|
1686 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1687 | else |
---|
1688 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1689 | fi |
---|
1690 | rm -f conftest.make |
---|
1691 | fi |
---|
1692 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1693 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1694 | echo "${ECHO_T}yes" >&6 |
---|
1695 | SET_MAKE= |
---|
1696 | else |
---|
1697 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1698 | echo "${ECHO_T}no" >&6 |
---|
1699 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1700 | fi |
---|
1701 | |
---|
1702 | rm -rf .tst 2>/dev/null |
---|
1703 | mkdir .tst 2>/dev/null |
---|
1704 | if test -d .tst; then |
---|
1705 | am__leading_dot=. |
---|
1706 | else |
---|
1707 | am__leading_dot=_ |
---|
1708 | fi |
---|
1709 | rmdir .tst 2>/dev/null |
---|
1710 | |
---|
1711 | # test to see if srcdir already configured |
---|
1712 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1713 | test -f $srcdir/config.status; then |
---|
1714 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1715 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1716 | { (exit 1); exit 1; }; } |
---|
1717 | fi |
---|
1718 | |
---|
1719 | # test whether we have cygpath |
---|
1720 | if test -z "$CYGPATH_W"; then |
---|
1721 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1722 | CYGPATH_W='cygpath -w' |
---|
1723 | else |
---|
1724 | CYGPATH_W=echo |
---|
1725 | fi |
---|
1726 | fi |
---|
1727 | |
---|
1728 | |
---|
1729 | # Define the identity of the package. |
---|
1730 | PACKAGE='orxonox' |
---|
1731 | VERSION='0.3.1_alpha' |
---|
1732 | |
---|
1733 | |
---|
1734 | cat >>confdefs.h <<_ACEOF |
---|
1735 | #define PACKAGE "$PACKAGE" |
---|
1736 | _ACEOF |
---|
1737 | |
---|
1738 | |
---|
1739 | cat >>confdefs.h <<_ACEOF |
---|
1740 | #define VERSION "$VERSION" |
---|
1741 | _ACEOF |
---|
1742 | |
---|
1743 | # Some tools Automake needs. |
---|
1744 | |
---|
1745 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1746 | |
---|
1747 | |
---|
1748 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1749 | |
---|
1750 | |
---|
1751 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1752 | |
---|
1753 | |
---|
1754 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1755 | |
---|
1756 | |
---|
1757 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1758 | |
---|
1759 | |
---|
1760 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1761 | |
---|
1762 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1763 | |
---|
1764 | # Installed binaries are usually stripped using `strip' when the user |
---|
1765 | # run `make install-strip'. However `strip' might not be the right |
---|
1766 | # tool to use in cross-compilation environments, therefore Automake |
---|
1767 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1768 | if test "$cross_compiling" != no; then |
---|
1769 | if test -n "$ac_tool_prefix"; then |
---|
1770 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1771 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1772 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1774 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1776 | else |
---|
1777 | if test -n "$STRIP"; then |
---|
1778 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1779 | else |
---|
1780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1781 | for as_dir in $PATH |
---|
1782 | do |
---|
1783 | IFS=$as_save_IFS |
---|
1784 | test -z "$as_dir" && as_dir=. |
---|
1785 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1786 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1787 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1789 | break 2 |
---|
1790 | fi |
---|
1791 | done |
---|
1792 | done |
---|
1793 | |
---|
1794 | fi |
---|
1795 | fi |
---|
1796 | STRIP=$ac_cv_prog_STRIP |
---|
1797 | if test -n "$STRIP"; then |
---|
1798 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1799 | echo "${ECHO_T}$STRIP" >&6 |
---|
1800 | else |
---|
1801 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1802 | echo "${ECHO_T}no" >&6 |
---|
1803 | fi |
---|
1804 | |
---|
1805 | fi |
---|
1806 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1807 | ac_ct_STRIP=$STRIP |
---|
1808 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1809 | set dummy strip; ac_word=$2 |
---|
1810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1812 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1814 | else |
---|
1815 | if test -n "$ac_ct_STRIP"; then |
---|
1816 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1817 | else |
---|
1818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1819 | for as_dir in $PATH |
---|
1820 | do |
---|
1821 | IFS=$as_save_IFS |
---|
1822 | test -z "$as_dir" && as_dir=. |
---|
1823 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1824 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1825 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1827 | break 2 |
---|
1828 | fi |
---|
1829 | done |
---|
1830 | done |
---|
1831 | |
---|
1832 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1833 | fi |
---|
1834 | fi |
---|
1835 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1836 | if test -n "$ac_ct_STRIP"; then |
---|
1837 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1838 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1839 | else |
---|
1840 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1841 | echo "${ECHO_T}no" >&6 |
---|
1842 | fi |
---|
1843 | |
---|
1844 | STRIP=$ac_ct_STRIP |
---|
1845 | else |
---|
1846 | STRIP="$ac_cv_prog_STRIP" |
---|
1847 | fi |
---|
1848 | |
---|
1849 | fi |
---|
1850 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1851 | |
---|
1852 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1853 | # some platforms. |
---|
1854 | |
---|
1855 | |
---|
1856 | |
---|
1857 | |
---|
1858 | |
---|
1859 | ac_config_headers="$ac_config_headers config.h" |
---|
1860 | |
---|
1861 | |
---|
1862 | ######################### |
---|
1863 | ## Checks for programs ## |
---|
1864 | ######################### |
---|
1865 | ac_ext=cc |
---|
1866 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1867 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1868 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1869 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1870 | if test -n "$ac_tool_prefix"; then |
---|
1871 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1872 | do |
---|
1873 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1874 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1877 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1879 | else |
---|
1880 | if test -n "$CXX"; then |
---|
1881 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1882 | else |
---|
1883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1884 | for as_dir in $PATH |
---|
1885 | do |
---|
1886 | IFS=$as_save_IFS |
---|
1887 | test -z "$as_dir" && as_dir=. |
---|
1888 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1890 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1892 | break 2 |
---|
1893 | fi |
---|
1894 | done |
---|
1895 | done |
---|
1896 | |
---|
1897 | fi |
---|
1898 | fi |
---|
1899 | CXX=$ac_cv_prog_CXX |
---|
1900 | if test -n "$CXX"; then |
---|
1901 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1902 | echo "${ECHO_T}$CXX" >&6 |
---|
1903 | else |
---|
1904 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1905 | echo "${ECHO_T}no" >&6 |
---|
1906 | fi |
---|
1907 | |
---|
1908 | test -n "$CXX" && break |
---|
1909 | done |
---|
1910 | fi |
---|
1911 | if test -z "$CXX"; then |
---|
1912 | ac_ct_CXX=$CXX |
---|
1913 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1914 | do |
---|
1915 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1916 | set dummy $ac_prog; ac_word=$2 |
---|
1917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1919 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1921 | else |
---|
1922 | if test -n "$ac_ct_CXX"; then |
---|
1923 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1924 | else |
---|
1925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1926 | for as_dir in $PATH |
---|
1927 | do |
---|
1928 | IFS=$as_save_IFS |
---|
1929 | test -z "$as_dir" && as_dir=. |
---|
1930 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1932 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1934 | break 2 |
---|
1935 | fi |
---|
1936 | done |
---|
1937 | done |
---|
1938 | |
---|
1939 | fi |
---|
1940 | fi |
---|
1941 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1942 | if test -n "$ac_ct_CXX"; then |
---|
1943 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1944 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1945 | else |
---|
1946 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1947 | echo "${ECHO_T}no" >&6 |
---|
1948 | fi |
---|
1949 | |
---|
1950 | test -n "$ac_ct_CXX" && break |
---|
1951 | done |
---|
1952 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1953 | |
---|
1954 | CXX=$ac_ct_CXX |
---|
1955 | fi |
---|
1956 | |
---|
1957 | |
---|
1958 | # Provide some information about the compiler. |
---|
1959 | echo "$as_me:$LINENO:" \ |
---|
1960 | "checking for C++ compiler version" >&5 |
---|
1961 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1962 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1963 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1964 | ac_status=$? |
---|
1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1966 | (exit $ac_status); } |
---|
1967 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1968 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1969 | ac_status=$? |
---|
1970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1971 | (exit $ac_status); } |
---|
1972 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1973 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1974 | ac_status=$? |
---|
1975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1976 | (exit $ac_status); } |
---|
1977 | |
---|
1978 | cat >conftest.$ac_ext <<_ACEOF |
---|
1979 | /* confdefs.h. */ |
---|
1980 | _ACEOF |
---|
1981 | cat confdefs.h >>conftest.$ac_ext |
---|
1982 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1983 | /* end confdefs.h. */ |
---|
1984 | |
---|
1985 | int |
---|
1986 | main () |
---|
1987 | { |
---|
1988 | |
---|
1989 | ; |
---|
1990 | return 0; |
---|
1991 | } |
---|
1992 | _ACEOF |
---|
1993 | ac_clean_files_save=$ac_clean_files |
---|
1994 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1995 | # Try to create an executable without -o first, disregard a.out. |
---|
1996 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1997 | # of exeext. |
---|
1998 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1999 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
2000 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2001 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2002 | (eval $ac_link_default) 2>&5 |
---|
2003 | ac_status=$? |
---|
2004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2005 | (exit $ac_status); }; then |
---|
2006 | # Find the output, starting from the most likely. This scheme is |
---|
2007 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2008 | # resort. |
---|
2009 | |
---|
2010 | # Be careful to initialize this variable, since it used to be cached. |
---|
2011 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2012 | ac_cv_exeext= |
---|
2013 | # b.out is created by i960 compilers. |
---|
2014 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2015 | do |
---|
2016 | test -f "$ac_file" || continue |
---|
2017 | case $ac_file in |
---|
2018 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2019 | ;; |
---|
2020 | conftest.$ac_ext ) |
---|
2021 | # This is the source file. |
---|
2022 | ;; |
---|
2023 | [ab].out ) |
---|
2024 | # We found the default executable, but exeext='' is most |
---|
2025 | # certainly right. |
---|
2026 | break;; |
---|
2027 | *.* ) |
---|
2028 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2029 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2030 | # but it would be cool to find out if it's true. Does anybody |
---|
2031 | # maintain Libtool? --akim. |
---|
2032 | export ac_cv_exeext |
---|
2033 | break;; |
---|
2034 | * ) |
---|
2035 | break;; |
---|
2036 | esac |
---|
2037 | done |
---|
2038 | else |
---|
2039 | echo "$as_me: failed program was:" >&5 |
---|
2040 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2041 | |
---|
2042 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
2043 | See \`config.log' for more details." >&5 |
---|
2044 | echo "$as_me: error: C++ compiler cannot create executables |
---|
2045 | See \`config.log' for more details." >&2;} |
---|
2046 | { (exit 77); exit 77; }; } |
---|
2047 | fi |
---|
2048 | |
---|
2049 | ac_exeext=$ac_cv_exeext |
---|
2050 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2051 | echo "${ECHO_T}$ac_file" >&6 |
---|
2052 | |
---|
2053 | # Check the compiler produces executables we can run. If not, either |
---|
2054 | # the compiler is broken, or we cross compile. |
---|
2055 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
2056 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
2057 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2058 | # If not cross compiling, check that we can run a simple program. |
---|
2059 | if test "$cross_compiling" != yes; then |
---|
2060 | if { ac_try='./$ac_file' |
---|
2061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2062 | (eval $ac_try) 2>&5 |
---|
2063 | ac_status=$? |
---|
2064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2065 | (exit $ac_status); }; }; then |
---|
2066 | cross_compiling=no |
---|
2067 | else |
---|
2068 | if test "$cross_compiling" = maybe; then |
---|
2069 | cross_compiling=yes |
---|
2070 | else |
---|
2071 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2072 | If you meant to cross compile, use \`--host'. |
---|
2073 | See \`config.log' for more details." >&5 |
---|
2074 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2075 | If you meant to cross compile, use \`--host'. |
---|
2076 | See \`config.log' for more details." >&2;} |
---|
2077 | { (exit 1); exit 1; }; } |
---|
2078 | fi |
---|
2079 | fi |
---|
2080 | fi |
---|
2081 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2082 | echo "${ECHO_T}yes" >&6 |
---|
2083 | |
---|
2084 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2085 | ac_clean_files=$ac_clean_files_save |
---|
2086 | # Check the compiler produces executables we can run. If not, either |
---|
2087 | # the compiler is broken, or we cross compile. |
---|
2088 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2089 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2090 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2091 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2092 | |
---|
2093 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2094 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2096 | (eval $ac_link) 2>&5 |
---|
2097 | ac_status=$? |
---|
2098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2099 | (exit $ac_status); }; then |
---|
2100 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2101 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2102 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2103 | # `rm'. |
---|
2104 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2105 | test -f "$ac_file" || continue |
---|
2106 | case $ac_file in |
---|
2107 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2108 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2109 | export ac_cv_exeext |
---|
2110 | break;; |
---|
2111 | * ) break;; |
---|
2112 | esac |
---|
2113 | done |
---|
2114 | else |
---|
2115 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2116 | See \`config.log' for more details." >&5 |
---|
2117 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2118 | See \`config.log' for more details." >&2;} |
---|
2119 | { (exit 1); exit 1; }; } |
---|
2120 | fi |
---|
2121 | |
---|
2122 | rm -f conftest$ac_cv_exeext |
---|
2123 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2124 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2125 | |
---|
2126 | rm -f conftest.$ac_ext |
---|
2127 | EXEEXT=$ac_cv_exeext |
---|
2128 | ac_exeext=$EXEEXT |
---|
2129 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2130 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2131 | if test "${ac_cv_objext+set}" = set; then |
---|
2132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2133 | else |
---|
2134 | cat >conftest.$ac_ext <<_ACEOF |
---|
2135 | /* confdefs.h. */ |
---|
2136 | _ACEOF |
---|
2137 | cat confdefs.h >>conftest.$ac_ext |
---|
2138 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2139 | /* end confdefs.h. */ |
---|
2140 | |
---|
2141 | int |
---|
2142 | main () |
---|
2143 | { |
---|
2144 | |
---|
2145 | ; |
---|
2146 | return 0; |
---|
2147 | } |
---|
2148 | _ACEOF |
---|
2149 | rm -f conftest.o conftest.obj |
---|
2150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2151 | (eval $ac_compile) 2>&5 |
---|
2152 | ac_status=$? |
---|
2153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2154 | (exit $ac_status); }; then |
---|
2155 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2156 | case $ac_file in |
---|
2157 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2158 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2159 | break;; |
---|
2160 | esac |
---|
2161 | done |
---|
2162 | else |
---|
2163 | echo "$as_me: failed program was:" >&5 |
---|
2164 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2165 | |
---|
2166 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2167 | See \`config.log' for more details." >&5 |
---|
2168 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2169 | See \`config.log' for more details." >&2;} |
---|
2170 | { (exit 1); exit 1; }; } |
---|
2171 | fi |
---|
2172 | |
---|
2173 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2174 | fi |
---|
2175 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2176 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2177 | OBJEXT=$ac_cv_objext |
---|
2178 | ac_objext=$OBJEXT |
---|
2179 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2180 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2181 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2183 | else |
---|
2184 | cat >conftest.$ac_ext <<_ACEOF |
---|
2185 | /* confdefs.h. */ |
---|
2186 | _ACEOF |
---|
2187 | cat confdefs.h >>conftest.$ac_ext |
---|
2188 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2189 | /* end confdefs.h. */ |
---|
2190 | |
---|
2191 | int |
---|
2192 | main () |
---|
2193 | { |
---|
2194 | #ifndef __GNUC__ |
---|
2195 | choke me |
---|
2196 | #endif |
---|
2197 | |
---|
2198 | ; |
---|
2199 | return 0; |
---|
2200 | } |
---|
2201 | _ACEOF |
---|
2202 | rm -f conftest.$ac_objext |
---|
2203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2204 | (eval $ac_compile) 2>conftest.er1 |
---|
2205 | ac_status=$? |
---|
2206 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2207 | rm -f conftest.er1 |
---|
2208 | cat conftest.err >&5 |
---|
2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2210 | (exit $ac_status); } && |
---|
2211 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2212 | || test ! -s conftest.err' |
---|
2213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2214 | (eval $ac_try) 2>&5 |
---|
2215 | ac_status=$? |
---|
2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2217 | (exit $ac_status); }; } && |
---|
2218 | { ac_try='test -s conftest.$ac_objext' |
---|
2219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2220 | (eval $ac_try) 2>&5 |
---|
2221 | ac_status=$? |
---|
2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2223 | (exit $ac_status); }; }; then |
---|
2224 | ac_compiler_gnu=yes |
---|
2225 | else |
---|
2226 | echo "$as_me: failed program was:" >&5 |
---|
2227 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2228 | |
---|
2229 | ac_compiler_gnu=no |
---|
2230 | fi |
---|
2231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2232 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2233 | |
---|
2234 | fi |
---|
2235 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2236 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2237 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2238 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2239 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2240 | CXXFLAGS="-g" |
---|
2241 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2242 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2243 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2245 | else |
---|
2246 | cat >conftest.$ac_ext <<_ACEOF |
---|
2247 | /* confdefs.h. */ |
---|
2248 | _ACEOF |
---|
2249 | cat confdefs.h >>conftest.$ac_ext |
---|
2250 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2251 | /* end confdefs.h. */ |
---|
2252 | |
---|
2253 | int |
---|
2254 | main () |
---|
2255 | { |
---|
2256 | |
---|
2257 | ; |
---|
2258 | return 0; |
---|
2259 | } |
---|
2260 | _ACEOF |
---|
2261 | rm -f conftest.$ac_objext |
---|
2262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2263 | (eval $ac_compile) 2>conftest.er1 |
---|
2264 | ac_status=$? |
---|
2265 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2266 | rm -f conftest.er1 |
---|
2267 | cat conftest.err >&5 |
---|
2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2269 | (exit $ac_status); } && |
---|
2270 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2271 | || test ! -s conftest.err' |
---|
2272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2273 | (eval $ac_try) 2>&5 |
---|
2274 | ac_status=$? |
---|
2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2276 | (exit $ac_status); }; } && |
---|
2277 | { ac_try='test -s conftest.$ac_objext' |
---|
2278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2279 | (eval $ac_try) 2>&5 |
---|
2280 | ac_status=$? |
---|
2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2282 | (exit $ac_status); }; }; then |
---|
2283 | ac_cv_prog_cxx_g=yes |
---|
2284 | else |
---|
2285 | echo "$as_me: failed program was:" >&5 |
---|
2286 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2287 | |
---|
2288 | ac_cv_prog_cxx_g=no |
---|
2289 | fi |
---|
2290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2291 | fi |
---|
2292 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2293 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2294 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2295 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2296 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2297 | if test "$GXX" = yes; then |
---|
2298 | CXXFLAGS="-g -O2" |
---|
2299 | else |
---|
2300 | CXXFLAGS="-g" |
---|
2301 | fi |
---|
2302 | else |
---|
2303 | if test "$GXX" = yes; then |
---|
2304 | CXXFLAGS="-O2" |
---|
2305 | else |
---|
2306 | CXXFLAGS= |
---|
2307 | fi |
---|
2308 | fi |
---|
2309 | for ac_declaration in \ |
---|
2310 | '' \ |
---|
2311 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2312 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2313 | 'extern "C" void exit (int) throw ();' \ |
---|
2314 | 'extern "C" void exit (int);' \ |
---|
2315 | 'void exit (int);' |
---|
2316 | do |
---|
2317 | cat >conftest.$ac_ext <<_ACEOF |
---|
2318 | /* confdefs.h. */ |
---|
2319 | _ACEOF |
---|
2320 | cat confdefs.h >>conftest.$ac_ext |
---|
2321 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2322 | /* end confdefs.h. */ |
---|
2323 | $ac_declaration |
---|
2324 | #include <stdlib.h> |
---|
2325 | int |
---|
2326 | main () |
---|
2327 | { |
---|
2328 | exit (42); |
---|
2329 | ; |
---|
2330 | return 0; |
---|
2331 | } |
---|
2332 | _ACEOF |
---|
2333 | rm -f conftest.$ac_objext |
---|
2334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2335 | (eval $ac_compile) 2>conftest.er1 |
---|
2336 | ac_status=$? |
---|
2337 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2338 | rm -f conftest.er1 |
---|
2339 | cat conftest.err >&5 |
---|
2340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2341 | (exit $ac_status); } && |
---|
2342 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2343 | || test ! -s conftest.err' |
---|
2344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2345 | (eval $ac_try) 2>&5 |
---|
2346 | ac_status=$? |
---|
2347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2348 | (exit $ac_status); }; } && |
---|
2349 | { ac_try='test -s conftest.$ac_objext' |
---|
2350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2351 | (eval $ac_try) 2>&5 |
---|
2352 | ac_status=$? |
---|
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2354 | (exit $ac_status); }; }; then |
---|
2355 | : |
---|
2356 | else |
---|
2357 | echo "$as_me: failed program was:" >&5 |
---|
2358 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2359 | |
---|
2360 | continue |
---|
2361 | fi |
---|
2362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2363 | cat >conftest.$ac_ext <<_ACEOF |
---|
2364 | /* confdefs.h. */ |
---|
2365 | _ACEOF |
---|
2366 | cat confdefs.h >>conftest.$ac_ext |
---|
2367 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2368 | /* end confdefs.h. */ |
---|
2369 | $ac_declaration |
---|
2370 | int |
---|
2371 | main () |
---|
2372 | { |
---|
2373 | exit (42); |
---|
2374 | ; |
---|
2375 | return 0; |
---|
2376 | } |
---|
2377 | _ACEOF |
---|
2378 | rm -f conftest.$ac_objext |
---|
2379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2380 | (eval $ac_compile) 2>conftest.er1 |
---|
2381 | ac_status=$? |
---|
2382 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2383 | rm -f conftest.er1 |
---|
2384 | cat conftest.err >&5 |
---|
2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2386 | (exit $ac_status); } && |
---|
2387 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2388 | || test ! -s conftest.err' |
---|
2389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2390 | (eval $ac_try) 2>&5 |
---|
2391 | ac_status=$? |
---|
2392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2393 | (exit $ac_status); }; } && |
---|
2394 | { ac_try='test -s conftest.$ac_objext' |
---|
2395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2396 | (eval $ac_try) 2>&5 |
---|
2397 | ac_status=$? |
---|
2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2399 | (exit $ac_status); }; }; then |
---|
2400 | break |
---|
2401 | else |
---|
2402 | echo "$as_me: failed program was:" >&5 |
---|
2403 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2404 | |
---|
2405 | fi |
---|
2406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2407 | done |
---|
2408 | rm -f conftest* |
---|
2409 | if test -n "$ac_declaration"; then |
---|
2410 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2411 | echo $ac_declaration >>confdefs.h |
---|
2412 | echo '#endif' >>confdefs.h |
---|
2413 | fi |
---|
2414 | |
---|
2415 | ac_ext=c |
---|
2416 | ac_cpp='$CPP $CPPFLAGS' |
---|
2417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2420 | DEPDIR="${am__leading_dot}deps" |
---|
2421 | |
---|
2422 | ac_config_commands="$ac_config_commands depfiles" |
---|
2423 | |
---|
2424 | |
---|
2425 | am_make=${MAKE-make} |
---|
2426 | cat > confinc << 'END' |
---|
2427 | am__doit: |
---|
2428 | @echo done |
---|
2429 | .PHONY: am__doit |
---|
2430 | END |
---|
2431 | # If we don't find an include directive, just comment out the code. |
---|
2432 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2433 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2434 | am__include="#" |
---|
2435 | am__quote= |
---|
2436 | _am_result=none |
---|
2437 | # First try GNU make style include. |
---|
2438 | echo "include confinc" > confmf |
---|
2439 | # We grep out `Entering directory' and `Leaving directory' |
---|
2440 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2441 | # In particular we don't look at `^make:' because GNU make might |
---|
2442 | # be invoked under some other name (usually "gmake"), in which |
---|
2443 | # case it prints its new name instead of `make'. |
---|
2444 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2445 | am__include=include |
---|
2446 | am__quote= |
---|
2447 | _am_result=GNU |
---|
2448 | fi |
---|
2449 | # Now try BSD make style include. |
---|
2450 | if test "$am__include" = "#"; then |
---|
2451 | echo '.include "confinc"' > confmf |
---|
2452 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2453 | am__include=.include |
---|
2454 | am__quote="\"" |
---|
2455 | _am_result=BSD |
---|
2456 | fi |
---|
2457 | fi |
---|
2458 | |
---|
2459 | |
---|
2460 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2461 | echo "${ECHO_T}$_am_result" >&6 |
---|
2462 | rm -f confinc confmf |
---|
2463 | |
---|
2464 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2465 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2466 | enableval="$enable_dependency_tracking" |
---|
2467 | |
---|
2468 | fi; |
---|
2469 | if test "x$enable_dependency_tracking" != xno; then |
---|
2470 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2471 | AMDEPBACKSLASH='\' |
---|
2472 | fi |
---|
2473 | |
---|
2474 | |
---|
2475 | if test "x$enable_dependency_tracking" != xno; then |
---|
2476 | AMDEP_TRUE= |
---|
2477 | AMDEP_FALSE='#' |
---|
2478 | else |
---|
2479 | AMDEP_TRUE='#' |
---|
2480 | AMDEP_FALSE= |
---|
2481 | fi |
---|
2482 | |
---|
2483 | |
---|
2484 | |
---|
2485 | |
---|
2486 | depcc="$CXX" am_compiler_list= |
---|
2487 | |
---|
2488 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2489 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2490 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2492 | else |
---|
2493 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2494 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2495 | # making bogus files that we don't know about and never remove. For |
---|
2496 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2497 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2498 | # in D'. |
---|
2499 | mkdir conftest.dir |
---|
2500 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2501 | # using a relative directory. |
---|
2502 | cp "$am_depcomp" conftest.dir |
---|
2503 | cd conftest.dir |
---|
2504 | # We will build objects and dependencies in a subdirectory because |
---|
2505 | # it helps to detect inapplicable dependency modes. For instance |
---|
2506 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2507 | # side effect of compilation, but ICC will put the dependencies in |
---|
2508 | # the current directory while Tru64 will put them in the object |
---|
2509 | # directory. |
---|
2510 | mkdir sub |
---|
2511 | |
---|
2512 | am_cv_CXX_dependencies_compiler_type=none |
---|
2513 | if test "$am_compiler_list" = ""; then |
---|
2514 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2515 | fi |
---|
2516 | for depmode in $am_compiler_list; do |
---|
2517 | # Setup a source with many dependencies, because some compilers |
---|
2518 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2519 | # we should not choose a depcomp mode which is confused by this. |
---|
2520 | # |
---|
2521 | # We need to recreate these files for each test, as the compiler may |
---|
2522 | # overwrite some of them when testing with obscure command lines. |
---|
2523 | # This happens at least with the AIX C compiler. |
---|
2524 | : > sub/conftest.c |
---|
2525 | for i in 1 2 3 4 5 6; do |
---|
2526 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2527 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
2528 | # Solaris 8's {/usr,}/bin/sh. |
---|
2529 | touch sub/conftst$i.h |
---|
2530 | done |
---|
2531 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2532 | |
---|
2533 | case $depmode in |
---|
2534 | nosideeffect) |
---|
2535 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2536 | # only be used when explicitly requested |
---|
2537 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2538 | continue |
---|
2539 | else |
---|
2540 | break |
---|
2541 | fi |
---|
2542 | ;; |
---|
2543 | none) break ;; |
---|
2544 | esac |
---|
2545 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2546 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2547 | # handle `-M -o', and we need to detect this. |
---|
2548 | if depmode=$depmode \ |
---|
2549 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2550 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2551 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2552 | >/dev/null 2>conftest.err && |
---|
2553 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2554 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2555 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2556 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2557 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
2558 | # that says an option was ignored or not supported. |
---|
2559 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
2560 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
2561 | # The diagnosis changed in icc 8.0: |
---|
2562 | # icc: Command line remark: option '-MP' not supported |
---|
2563 | if (grep 'ignoring option' conftest.err || |
---|
2564 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
2565 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2566 | break |
---|
2567 | fi |
---|
2568 | fi |
---|
2569 | done |
---|
2570 | |
---|
2571 | cd .. |
---|
2572 | rm -rf conftest.dir |
---|
2573 | else |
---|
2574 | am_cv_CXX_dependencies_compiler_type=none |
---|
2575 | fi |
---|
2576 | |
---|
2577 | fi |
---|
2578 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2579 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2580 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2581 | |
---|
2582 | |
---|
2583 | |
---|
2584 | if |
---|
2585 | test "x$enable_dependency_tracking" != xno \ |
---|
2586 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2587 | am__fastdepCXX_TRUE= |
---|
2588 | am__fastdepCXX_FALSE='#' |
---|
2589 | else |
---|
2590 | am__fastdepCXX_TRUE='#' |
---|
2591 | am__fastdepCXX_FALSE= |
---|
2592 | fi |
---|
2593 | |
---|
2594 | |
---|
2595 | if test -n "$ac_tool_prefix"; then |
---|
2596 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2597 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2598 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2600 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
2601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2602 | else |
---|
2603 | if test -n "$RANLIB"; then |
---|
2604 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2605 | else |
---|
2606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2607 | for as_dir in $PATH |
---|
2608 | do |
---|
2609 | IFS=$as_save_IFS |
---|
2610 | test -z "$as_dir" && as_dir=. |
---|
2611 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2612 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2613 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2615 | break 2 |
---|
2616 | fi |
---|
2617 | done |
---|
2618 | done |
---|
2619 | |
---|
2620 | fi |
---|
2621 | fi |
---|
2622 | RANLIB=$ac_cv_prog_RANLIB |
---|
2623 | if test -n "$RANLIB"; then |
---|
2624 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
2625 | echo "${ECHO_T}$RANLIB" >&6 |
---|
2626 | else |
---|
2627 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2628 | echo "${ECHO_T}no" >&6 |
---|
2629 | fi |
---|
2630 | |
---|
2631 | fi |
---|
2632 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2633 | ac_ct_RANLIB=$RANLIB |
---|
2634 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2635 | set dummy ranlib; ac_word=$2 |
---|
2636 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2638 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
2639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2640 | else |
---|
2641 | if test -n "$ac_ct_RANLIB"; then |
---|
2642 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2643 | else |
---|
2644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2645 | for as_dir in $PATH |
---|
2646 | do |
---|
2647 | IFS=$as_save_IFS |
---|
2648 | test -z "$as_dir" && as_dir=. |
---|
2649 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2651 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2653 | break 2 |
---|
2654 | fi |
---|
2655 | done |
---|
2656 | done |
---|
2657 | |
---|
2658 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
2659 | fi |
---|
2660 | fi |
---|
2661 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2662 | if test -n "$ac_ct_RANLIB"; then |
---|
2663 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
2664 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
2665 | else |
---|
2666 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2667 | echo "${ECHO_T}no" >&6 |
---|
2668 | fi |
---|
2669 | |
---|
2670 | RANLIB=$ac_ct_RANLIB |
---|
2671 | else |
---|
2672 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2673 | fi |
---|
2674 | |
---|
2675 | ac_ext=c |
---|
2676 | ac_cpp='$CPP $CPPFLAGS' |
---|
2677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2680 | if test -n "$ac_tool_prefix"; then |
---|
2681 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2682 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2685 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2687 | else |
---|
2688 | if test -n "$CC"; then |
---|
2689 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2690 | else |
---|
2691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2692 | for as_dir in $PATH |
---|
2693 | do |
---|
2694 | IFS=$as_save_IFS |
---|
2695 | test -z "$as_dir" && as_dir=. |
---|
2696 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2698 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2700 | break 2 |
---|
2701 | fi |
---|
2702 | done |
---|
2703 | done |
---|
2704 | |
---|
2705 | fi |
---|
2706 | fi |
---|
2707 | CC=$ac_cv_prog_CC |
---|
2708 | if test -n "$CC"; then |
---|
2709 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2710 | echo "${ECHO_T}$CC" >&6 |
---|
2711 | else |
---|
2712 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2713 | echo "${ECHO_T}no" >&6 |
---|
2714 | fi |
---|
2715 | |
---|
2716 | fi |
---|
2717 | if test -z "$ac_cv_prog_CC"; then |
---|
2718 | ac_ct_CC=$CC |
---|
2719 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2720 | set dummy gcc; ac_word=$2 |
---|
2721 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2723 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2725 | else |
---|
2726 | if test -n "$ac_ct_CC"; then |
---|
2727 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2728 | else |
---|
2729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2730 | for as_dir in $PATH |
---|
2731 | do |
---|
2732 | IFS=$as_save_IFS |
---|
2733 | test -z "$as_dir" && as_dir=. |
---|
2734 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2735 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2736 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2737 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2738 | break 2 |
---|
2739 | fi |
---|
2740 | done |
---|
2741 | done |
---|
2742 | |
---|
2743 | fi |
---|
2744 | fi |
---|
2745 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2746 | if test -n "$ac_ct_CC"; then |
---|
2747 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2748 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2749 | else |
---|
2750 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2751 | echo "${ECHO_T}no" >&6 |
---|
2752 | fi |
---|
2753 | |
---|
2754 | CC=$ac_ct_CC |
---|
2755 | else |
---|
2756 | CC="$ac_cv_prog_CC" |
---|
2757 | fi |
---|
2758 | |
---|
2759 | if test -z "$CC"; then |
---|
2760 | if test -n "$ac_tool_prefix"; then |
---|
2761 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2762 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2763 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2765 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2767 | else |
---|
2768 | if test -n "$CC"; then |
---|
2769 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2770 | else |
---|
2771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2772 | for as_dir in $PATH |
---|
2773 | do |
---|
2774 | IFS=$as_save_IFS |
---|
2775 | test -z "$as_dir" && as_dir=. |
---|
2776 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2777 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2778 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2780 | break 2 |
---|
2781 | fi |
---|
2782 | done |
---|
2783 | done |
---|
2784 | |
---|
2785 | fi |
---|
2786 | fi |
---|
2787 | CC=$ac_cv_prog_CC |
---|
2788 | if test -n "$CC"; then |
---|
2789 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2790 | echo "${ECHO_T}$CC" >&6 |
---|
2791 | else |
---|
2792 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2793 | echo "${ECHO_T}no" >&6 |
---|
2794 | fi |
---|
2795 | |
---|
2796 | fi |
---|
2797 | if test -z "$ac_cv_prog_CC"; then |
---|
2798 | ac_ct_CC=$CC |
---|
2799 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2800 | set dummy cc; ac_word=$2 |
---|
2801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2803 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2805 | else |
---|
2806 | if test -n "$ac_ct_CC"; then |
---|
2807 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2808 | else |
---|
2809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2810 | for as_dir in $PATH |
---|
2811 | do |
---|
2812 | IFS=$as_save_IFS |
---|
2813 | test -z "$as_dir" && as_dir=. |
---|
2814 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2815 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2816 | ac_cv_prog_ac_ct_CC="cc" |
---|
2817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2818 | break 2 |
---|
2819 | fi |
---|
2820 | done |
---|
2821 | done |
---|
2822 | |
---|
2823 | fi |
---|
2824 | fi |
---|
2825 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2826 | if test -n "$ac_ct_CC"; then |
---|
2827 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2828 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2829 | else |
---|
2830 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2831 | echo "${ECHO_T}no" >&6 |
---|
2832 | fi |
---|
2833 | |
---|
2834 | CC=$ac_ct_CC |
---|
2835 | else |
---|
2836 | CC="$ac_cv_prog_CC" |
---|
2837 | fi |
---|
2838 | |
---|
2839 | fi |
---|
2840 | if test -z "$CC"; then |
---|
2841 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2842 | set dummy cc; ac_word=$2 |
---|
2843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2845 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2847 | else |
---|
2848 | if test -n "$CC"; then |
---|
2849 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2850 | else |
---|
2851 | ac_prog_rejected=no |
---|
2852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2853 | for as_dir in $PATH |
---|
2854 | do |
---|
2855 | IFS=$as_save_IFS |
---|
2856 | test -z "$as_dir" && as_dir=. |
---|
2857 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2858 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2859 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2860 | ac_prog_rejected=yes |
---|
2861 | continue |
---|
2862 | fi |
---|
2863 | ac_cv_prog_CC="cc" |
---|
2864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2865 | break 2 |
---|
2866 | fi |
---|
2867 | done |
---|
2868 | done |
---|
2869 | |
---|
2870 | if test $ac_prog_rejected = yes; then |
---|
2871 | # We found a bogon in the path, so make sure we never use it. |
---|
2872 | set dummy $ac_cv_prog_CC |
---|
2873 | shift |
---|
2874 | if test $# != 0; then |
---|
2875 | # We chose a different compiler from the bogus one. |
---|
2876 | # However, it has the same basename, so the bogon will be chosen |
---|
2877 | # first if we set CC to just the basename; use the full file name. |
---|
2878 | shift |
---|
2879 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2880 | fi |
---|
2881 | fi |
---|
2882 | fi |
---|
2883 | fi |
---|
2884 | CC=$ac_cv_prog_CC |
---|
2885 | if test -n "$CC"; then |
---|
2886 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2887 | echo "${ECHO_T}$CC" >&6 |
---|
2888 | else |
---|
2889 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2890 | echo "${ECHO_T}no" >&6 |
---|
2891 | fi |
---|
2892 | |
---|
2893 | fi |
---|
2894 | if test -z "$CC"; then |
---|
2895 | if test -n "$ac_tool_prefix"; then |
---|
2896 | for ac_prog in cl |
---|
2897 | do |
---|
2898 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2899 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2902 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2904 | else |
---|
2905 | if test -n "$CC"; then |
---|
2906 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2907 | else |
---|
2908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2909 | for as_dir in $PATH |
---|
2910 | do |
---|
2911 | IFS=$as_save_IFS |
---|
2912 | test -z "$as_dir" && as_dir=. |
---|
2913 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2915 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2917 | break 2 |
---|
2918 | fi |
---|
2919 | done |
---|
2920 | done |
---|
2921 | |
---|
2922 | fi |
---|
2923 | fi |
---|
2924 | CC=$ac_cv_prog_CC |
---|
2925 | if test -n "$CC"; then |
---|
2926 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2927 | echo "${ECHO_T}$CC" >&6 |
---|
2928 | else |
---|
2929 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2930 | echo "${ECHO_T}no" >&6 |
---|
2931 | fi |
---|
2932 | |
---|
2933 | test -n "$CC" && break |
---|
2934 | done |
---|
2935 | fi |
---|
2936 | if test -z "$CC"; then |
---|
2937 | ac_ct_CC=$CC |
---|
2938 | for ac_prog in cl |
---|
2939 | do |
---|
2940 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2941 | set dummy $ac_prog; ac_word=$2 |
---|
2942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2944 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2946 | else |
---|
2947 | if test -n "$ac_ct_CC"; then |
---|
2948 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2949 | else |
---|
2950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2951 | for as_dir in $PATH |
---|
2952 | do |
---|
2953 | IFS=$as_save_IFS |
---|
2954 | test -z "$as_dir" && as_dir=. |
---|
2955 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2957 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2959 | break 2 |
---|
2960 | fi |
---|
2961 | done |
---|
2962 | done |
---|
2963 | |
---|
2964 | fi |
---|
2965 | fi |
---|
2966 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2967 | if test -n "$ac_ct_CC"; then |
---|
2968 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2969 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2970 | else |
---|
2971 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2972 | echo "${ECHO_T}no" >&6 |
---|
2973 | fi |
---|
2974 | |
---|
2975 | test -n "$ac_ct_CC" && break |
---|
2976 | done |
---|
2977 | |
---|
2978 | CC=$ac_ct_CC |
---|
2979 | fi |
---|
2980 | |
---|
2981 | fi |
---|
2982 | |
---|
2983 | |
---|
2984 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2985 | See \`config.log' for more details." >&5 |
---|
2986 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2987 | See \`config.log' for more details." >&2;} |
---|
2988 | { (exit 1); exit 1; }; } |
---|
2989 | |
---|
2990 | # Provide some information about the compiler. |
---|
2991 | echo "$as_me:$LINENO:" \ |
---|
2992 | "checking for C compiler version" >&5 |
---|
2993 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2994 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2995 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2996 | ac_status=$? |
---|
2997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2998 | (exit $ac_status); } |
---|
2999 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3000 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3001 | ac_status=$? |
---|
3002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3003 | (exit $ac_status); } |
---|
3004 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3005 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3006 | ac_status=$? |
---|
3007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3008 | (exit $ac_status); } |
---|
3009 | |
---|
3010 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
3011 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
3012 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
3013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3014 | else |
---|
3015 | cat >conftest.$ac_ext <<_ACEOF |
---|
3016 | /* confdefs.h. */ |
---|
3017 | _ACEOF |
---|
3018 | cat confdefs.h >>conftest.$ac_ext |
---|
3019 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3020 | /* end confdefs.h. */ |
---|
3021 | |
---|
3022 | int |
---|
3023 | main () |
---|
3024 | { |
---|
3025 | #ifndef __GNUC__ |
---|
3026 | choke me |
---|
3027 | #endif |
---|
3028 | |
---|
3029 | ; |
---|
3030 | return 0; |
---|
3031 | } |
---|
3032 | _ACEOF |
---|
3033 | rm -f conftest.$ac_objext |
---|
3034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3035 | (eval $ac_compile) 2>conftest.er1 |
---|
3036 | ac_status=$? |
---|
3037 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3038 | rm -f conftest.er1 |
---|
3039 | cat conftest.err >&5 |
---|
3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3041 | (exit $ac_status); } && |
---|
3042 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3043 | || test ! -s conftest.err' |
---|
3044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3045 | (eval $ac_try) 2>&5 |
---|
3046 | ac_status=$? |
---|
3047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3048 | (exit $ac_status); }; } && |
---|
3049 | { ac_try='test -s conftest.$ac_objext' |
---|
3050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3051 | (eval $ac_try) 2>&5 |
---|
3052 | ac_status=$? |
---|
3053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3054 | (exit $ac_status); }; }; then |
---|
3055 | ac_compiler_gnu=yes |
---|
3056 | else |
---|
3057 | echo "$as_me: failed program was:" >&5 |
---|
3058 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3059 | |
---|
3060 | ac_compiler_gnu=no |
---|
3061 | fi |
---|
3062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3063 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3064 | |
---|
3065 | fi |
---|
3066 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3067 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
3068 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
3069 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3070 | ac_save_CFLAGS=$CFLAGS |
---|
3071 | CFLAGS="-g" |
---|
3072 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
3073 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
3074 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
3075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3076 | else |
---|
3077 | cat >conftest.$ac_ext <<_ACEOF |
---|
3078 | /* confdefs.h. */ |
---|
3079 | _ACEOF |
---|
3080 | cat confdefs.h >>conftest.$ac_ext |
---|
3081 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3082 | /* end confdefs.h. */ |
---|
3083 | |
---|
3084 | int |
---|
3085 | main () |
---|
3086 | { |
---|
3087 | |
---|
3088 | ; |
---|
3089 | return 0; |
---|
3090 | } |
---|
3091 | _ACEOF |
---|
3092 | rm -f conftest.$ac_objext |
---|
3093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3094 | (eval $ac_compile) 2>conftest.er1 |
---|
3095 | ac_status=$? |
---|
3096 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3097 | rm -f conftest.er1 |
---|
3098 | cat conftest.err >&5 |
---|
3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3100 | (exit $ac_status); } && |
---|
3101 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3102 | || test ! -s conftest.err' |
---|
3103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3104 | (eval $ac_try) 2>&5 |
---|
3105 | ac_status=$? |
---|
3106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3107 | (exit $ac_status); }; } && |
---|
3108 | { ac_try='test -s conftest.$ac_objext' |
---|
3109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3110 | (eval $ac_try) 2>&5 |
---|
3111 | ac_status=$? |
---|
3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3113 | (exit $ac_status); }; }; then |
---|
3114 | ac_cv_prog_cc_g=yes |
---|
3115 | else |
---|
3116 | echo "$as_me: failed program was:" >&5 |
---|
3117 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3118 | |
---|
3119 | ac_cv_prog_cc_g=no |
---|
3120 | fi |
---|
3121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3122 | fi |
---|
3123 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3124 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
3125 | if test "$ac_test_CFLAGS" = set; then |
---|
3126 | CFLAGS=$ac_save_CFLAGS |
---|
3127 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3128 | if test "$GCC" = yes; then |
---|
3129 | CFLAGS="-g -O2" |
---|
3130 | else |
---|
3131 | CFLAGS="-g" |
---|
3132 | fi |
---|
3133 | else |
---|
3134 | if test "$GCC" = yes; then |
---|
3135 | CFLAGS="-O2" |
---|
3136 | else |
---|
3137 | CFLAGS= |
---|
3138 | fi |
---|
3139 | fi |
---|
3140 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3141 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3142 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3144 | else |
---|
3145 | ac_cv_prog_cc_stdc=no |
---|
3146 | ac_save_CC=$CC |
---|
3147 | cat >conftest.$ac_ext <<_ACEOF |
---|
3148 | /* confdefs.h. */ |
---|
3149 | _ACEOF |
---|
3150 | cat confdefs.h >>conftest.$ac_ext |
---|
3151 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3152 | /* end confdefs.h. */ |
---|
3153 | #include <stdarg.h> |
---|
3154 | #include <stdio.h> |
---|
3155 | #include <sys/types.h> |
---|
3156 | #include <sys/stat.h> |
---|
3157 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3158 | struct buf { int x; }; |
---|
3159 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3160 | static char *e (p, i) |
---|
3161 | char **p; |
---|
3162 | int i; |
---|
3163 | { |
---|
3164 | return p[i]; |
---|
3165 | } |
---|
3166 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3167 | { |
---|
3168 | char *s; |
---|
3169 | va_list v; |
---|
3170 | va_start (v,p); |
---|
3171 | s = g (p, va_arg (v,int)); |
---|
3172 | va_end (v); |
---|
3173 | return s; |
---|
3174 | } |
---|
3175 | |
---|
3176 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3177 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3178 | These don't provoke an error unfortunately, instead are silently treated |
---|
3179 | as 'x'. The following induces an error, until -std1 is added to get |
---|
3180 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3181 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3182 | that's true only with -std1. */ |
---|
3183 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3184 | |
---|
3185 | int test (int i, double x); |
---|
3186 | struct s1 {int (*f) (int a);}; |
---|
3187 | struct s2 {int (*f) (double a);}; |
---|
3188 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3189 | int argc; |
---|
3190 | char **argv; |
---|
3191 | int |
---|
3192 | main () |
---|
3193 | { |
---|
3194 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3195 | ; |
---|
3196 | return 0; |
---|
3197 | } |
---|
3198 | _ACEOF |
---|
3199 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3200 | # breaks some systems' header files. |
---|
3201 | # AIX -qlanglvl=ansi |
---|
3202 | # Ultrix and OSF/1 -std1 |
---|
3203 | # HP-UX 10.20 and later -Ae |
---|
3204 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3205 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3206 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3207 | do |
---|
3208 | CC="$ac_save_CC $ac_arg" |
---|
3209 | rm -f conftest.$ac_objext |
---|
3210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3211 | (eval $ac_compile) 2>conftest.er1 |
---|
3212 | ac_status=$? |
---|
3213 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3214 | rm -f conftest.er1 |
---|
3215 | cat conftest.err >&5 |
---|
3216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3217 | (exit $ac_status); } && |
---|
3218 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3219 | || test ! -s conftest.err' |
---|
3220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3221 | (eval $ac_try) 2>&5 |
---|
3222 | ac_status=$? |
---|
3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3224 | (exit $ac_status); }; } && |
---|
3225 | { ac_try='test -s conftest.$ac_objext' |
---|
3226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3227 | (eval $ac_try) 2>&5 |
---|
3228 | ac_status=$? |
---|
3229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3230 | (exit $ac_status); }; }; then |
---|
3231 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3232 | break |
---|
3233 | else |
---|
3234 | echo "$as_me: failed program was:" >&5 |
---|
3235 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3236 | |
---|
3237 | fi |
---|
3238 | rm -f conftest.err conftest.$ac_objext |
---|
3239 | done |
---|
3240 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3241 | CC=$ac_save_CC |
---|
3242 | |
---|
3243 | fi |
---|
3244 | |
---|
3245 | case "x$ac_cv_prog_cc_stdc" in |
---|
3246 | x|xno) |
---|
3247 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3248 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3249 | *) |
---|
3250 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3251 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3252 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3253 | esac |
---|
3254 | |
---|
3255 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3256 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3257 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3258 | # the declaration of exit, since it's the most demanding environment. |
---|
3259 | cat >conftest.$ac_ext <<_ACEOF |
---|
3260 | #ifndef __cplusplus |
---|
3261 | choke me |
---|
3262 | #endif |
---|
3263 | _ACEOF |
---|
3264 | rm -f conftest.$ac_objext |
---|
3265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3266 | (eval $ac_compile) 2>conftest.er1 |
---|
3267 | ac_status=$? |
---|
3268 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3269 | rm -f conftest.er1 |
---|
3270 | cat conftest.err >&5 |
---|
3271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3272 | (exit $ac_status); } && |
---|
3273 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3274 | || test ! -s conftest.err' |
---|
3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3276 | (eval $ac_try) 2>&5 |
---|
3277 | ac_status=$? |
---|
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3279 | (exit $ac_status); }; } && |
---|
3280 | { ac_try='test -s conftest.$ac_objext' |
---|
3281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3282 | (eval $ac_try) 2>&5 |
---|
3283 | ac_status=$? |
---|
3284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3285 | (exit $ac_status); }; }; then |
---|
3286 | for ac_declaration in \ |
---|
3287 | '' \ |
---|
3288 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3289 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3290 | 'extern "C" void exit (int) throw ();' \ |
---|
3291 | 'extern "C" void exit (int);' \ |
---|
3292 | 'void exit (int);' |
---|
3293 | do |
---|
3294 | cat >conftest.$ac_ext <<_ACEOF |
---|
3295 | /* confdefs.h. */ |
---|
3296 | _ACEOF |
---|
3297 | cat confdefs.h >>conftest.$ac_ext |
---|
3298 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3299 | /* end confdefs.h. */ |
---|
3300 | $ac_declaration |
---|
3301 | #include <stdlib.h> |
---|
3302 | int |
---|
3303 | main () |
---|
3304 | { |
---|
3305 | exit (42); |
---|
3306 | ; |
---|
3307 | return 0; |
---|
3308 | } |
---|
3309 | _ACEOF |
---|
3310 | rm -f conftest.$ac_objext |
---|
3311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3312 | (eval $ac_compile) 2>conftest.er1 |
---|
3313 | ac_status=$? |
---|
3314 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3315 | rm -f conftest.er1 |
---|
3316 | cat conftest.err >&5 |
---|
3317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3318 | (exit $ac_status); } && |
---|
3319 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3320 | || test ! -s conftest.err' |
---|
3321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3322 | (eval $ac_try) 2>&5 |
---|
3323 | ac_status=$? |
---|
3324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3325 | (exit $ac_status); }; } && |
---|
3326 | { ac_try='test -s conftest.$ac_objext' |
---|
3327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3328 | (eval $ac_try) 2>&5 |
---|
3329 | ac_status=$? |
---|
3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3331 | (exit $ac_status); }; }; then |
---|
3332 | : |
---|
3333 | else |
---|
3334 | echo "$as_me: failed program was:" >&5 |
---|
3335 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3336 | |
---|
3337 | continue |
---|
3338 | fi |
---|
3339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3340 | cat >conftest.$ac_ext <<_ACEOF |
---|
3341 | /* confdefs.h. */ |
---|
3342 | _ACEOF |
---|
3343 | cat confdefs.h >>conftest.$ac_ext |
---|
3344 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3345 | /* end confdefs.h. */ |
---|
3346 | $ac_declaration |
---|
3347 | int |
---|
3348 | main () |
---|
3349 | { |
---|
3350 | exit (42); |
---|
3351 | ; |
---|
3352 | return 0; |
---|
3353 | } |
---|
3354 | _ACEOF |
---|
3355 | rm -f conftest.$ac_objext |
---|
3356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3357 | (eval $ac_compile) 2>conftest.er1 |
---|
3358 | ac_status=$? |
---|
3359 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3360 | rm -f conftest.er1 |
---|
3361 | cat conftest.err >&5 |
---|
3362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3363 | (exit $ac_status); } && |
---|
3364 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3365 | || test ! -s conftest.err' |
---|
3366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3367 | (eval $ac_try) 2>&5 |
---|
3368 | ac_status=$? |
---|
3369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3370 | (exit $ac_status); }; } && |
---|
3371 | { ac_try='test -s conftest.$ac_objext' |
---|
3372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3373 | (eval $ac_try) 2>&5 |
---|
3374 | ac_status=$? |
---|
3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3376 | (exit $ac_status); }; }; then |
---|
3377 | break |
---|
3378 | else |
---|
3379 | echo "$as_me: failed program was:" >&5 |
---|
3380 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3381 | |
---|
3382 | fi |
---|
3383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3384 | done |
---|
3385 | rm -f conftest* |
---|
3386 | if test -n "$ac_declaration"; then |
---|
3387 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3388 | echo $ac_declaration >>confdefs.h |
---|
3389 | echo '#endif' >>confdefs.h |
---|
3390 | fi |
---|
3391 | |
---|
3392 | else |
---|
3393 | echo "$as_me: failed program was:" >&5 |
---|
3394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3395 | |
---|
3396 | fi |
---|
3397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3398 | ac_ext=c |
---|
3399 | ac_cpp='$CPP $CPPFLAGS' |
---|
3400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3403 | |
---|
3404 | depcc="$CC" am_compiler_list= |
---|
3405 | |
---|
3406 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3407 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3408 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3410 | else |
---|
3411 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3412 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3413 | # making bogus files that we don't know about and never remove. For |
---|
3414 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3415 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3416 | # in D'. |
---|
3417 | mkdir conftest.dir |
---|
3418 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3419 | # using a relative directory. |
---|
3420 | cp "$am_depcomp" conftest.dir |
---|
3421 | cd conftest.dir |
---|
3422 | # We will build objects and dependencies in a subdirectory because |
---|
3423 | # it helps to detect inapplicable dependency modes. For instance |
---|
3424 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3425 | # side effect of compilation, but ICC will put the dependencies in |
---|
3426 | # the current directory while Tru64 will put them in the object |
---|
3427 | # directory. |
---|
3428 | mkdir sub |
---|
3429 | |
---|
3430 | am_cv_CC_dependencies_compiler_type=none |
---|
3431 | if test "$am_compiler_list" = ""; then |
---|
3432 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3433 | fi |
---|
3434 | for depmode in $am_compiler_list; do |
---|
3435 | # Setup a source with many dependencies, because some compilers |
---|
3436 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3437 | # we should not choose a depcomp mode which is confused by this. |
---|
3438 | # |
---|
3439 | # We need to recreate these files for each test, as the compiler may |
---|
3440 | # overwrite some of them when testing with obscure command lines. |
---|
3441 | # This happens at least with the AIX C compiler. |
---|
3442 | : > sub/conftest.c |
---|
3443 | for i in 1 2 3 4 5 6; do |
---|
3444 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3445 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3446 | # Solaris 8's {/usr,}/bin/sh. |
---|
3447 | touch sub/conftst$i.h |
---|
3448 | done |
---|
3449 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3450 | |
---|
3451 | case $depmode in |
---|
3452 | nosideeffect) |
---|
3453 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3454 | # only be used when explicitly requested |
---|
3455 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3456 | continue |
---|
3457 | else |
---|
3458 | break |
---|
3459 | fi |
---|
3460 | ;; |
---|
3461 | none) break ;; |
---|
3462 | esac |
---|
3463 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3464 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3465 | # handle `-M -o', and we need to detect this. |
---|
3466 | if depmode=$depmode \ |
---|
3467 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3468 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3469 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3470 | >/dev/null 2>conftest.err && |
---|
3471 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3472 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3473 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3474 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3475 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3476 | # that says an option was ignored or not supported. |
---|
3477 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3478 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3479 | # The diagnosis changed in icc 8.0: |
---|
3480 | # icc: Command line remark: option '-MP' not supported |
---|
3481 | if (grep 'ignoring option' conftest.err || |
---|
3482 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3483 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3484 | break |
---|
3485 | fi |
---|
3486 | fi |
---|
3487 | done |
---|
3488 | |
---|
3489 | cd .. |
---|
3490 | rm -rf conftest.dir |
---|
3491 | else |
---|
3492 | am_cv_CC_dependencies_compiler_type=none |
---|
3493 | fi |
---|
3494 | |
---|
3495 | fi |
---|
3496 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3497 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3498 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3499 | |
---|
3500 | |
---|
3501 | |
---|
3502 | if |
---|
3503 | test "x$enable_dependency_tracking" != xno \ |
---|
3504 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3505 | am__fastdepCC_TRUE= |
---|
3506 | am__fastdepCC_FALSE='#' |
---|
3507 | else |
---|
3508 | am__fastdepCC_TRUE='#' |
---|
3509 | am__fastdepCC_FALSE= |
---|
3510 | fi |
---|
3511 | |
---|
3512 | |
---|
3513 | |
---|
3514 | ac_ext=c |
---|
3515 | ac_cpp='$CPP $CPPFLAGS' |
---|
3516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3519 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3520 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3521 | # On Suns, sometimes $CPP names a directory. |
---|
3522 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3523 | CPP= |
---|
3524 | fi |
---|
3525 | if test -z "$CPP"; then |
---|
3526 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3528 | else |
---|
3529 | # Double quotes because CPP needs to be expanded |
---|
3530 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3531 | do |
---|
3532 | ac_preproc_ok=false |
---|
3533 | for ac_c_preproc_warn_flag in '' yes |
---|
3534 | do |
---|
3535 | # Use a header file that comes with gcc, so configuring glibc |
---|
3536 | # with a fresh cross-compiler works. |
---|
3537 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3538 | # <limits.h> exists even on freestanding compilers. |
---|
3539 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3540 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3541 | cat >conftest.$ac_ext <<_ACEOF |
---|
3542 | /* confdefs.h. */ |
---|
3543 | _ACEOF |
---|
3544 | cat confdefs.h >>conftest.$ac_ext |
---|
3545 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3546 | /* end confdefs.h. */ |
---|
3547 | #ifdef __STDC__ |
---|
3548 | # include <limits.h> |
---|
3549 | #else |
---|
3550 | # include <assert.h> |
---|
3551 | #endif |
---|
3552 | Syntax error |
---|
3553 | _ACEOF |
---|
3554 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3555 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3556 | ac_status=$? |
---|
3557 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3558 | rm -f conftest.er1 |
---|
3559 | cat conftest.err >&5 |
---|
3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3561 | (exit $ac_status); } >/dev/null; then |
---|
3562 | if test -s conftest.err; then |
---|
3563 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3564 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3565 | else |
---|
3566 | ac_cpp_err= |
---|
3567 | fi |
---|
3568 | else |
---|
3569 | ac_cpp_err=yes |
---|
3570 | fi |
---|
3571 | if test -z "$ac_cpp_err"; then |
---|
3572 | : |
---|
3573 | else |
---|
3574 | echo "$as_me: failed program was:" >&5 |
---|
3575 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3576 | |
---|
3577 | # Broken: fails on valid input. |
---|
3578 | continue |
---|
3579 | fi |
---|
3580 | rm -f conftest.err conftest.$ac_ext |
---|
3581 | |
---|
3582 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3583 | # can be detected and how. |
---|
3584 | cat >conftest.$ac_ext <<_ACEOF |
---|
3585 | /* confdefs.h. */ |
---|
3586 | _ACEOF |
---|
3587 | cat confdefs.h >>conftest.$ac_ext |
---|
3588 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3589 | /* end confdefs.h. */ |
---|
3590 | #include <ac_nonexistent.h> |
---|
3591 | _ACEOF |
---|
3592 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3593 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3594 | ac_status=$? |
---|
3595 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3596 | rm -f conftest.er1 |
---|
3597 | cat conftest.err >&5 |
---|
3598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3599 | (exit $ac_status); } >/dev/null; then |
---|
3600 | if test -s conftest.err; then |
---|
3601 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3602 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3603 | else |
---|
3604 | ac_cpp_err= |
---|
3605 | fi |
---|
3606 | else |
---|
3607 | ac_cpp_err=yes |
---|
3608 | fi |
---|
3609 | if test -z "$ac_cpp_err"; then |
---|
3610 | # Broken: success on invalid input. |
---|
3611 | continue |
---|
3612 | else |
---|
3613 | echo "$as_me: failed program was:" >&5 |
---|
3614 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3615 | |
---|
3616 | # Passes both tests. |
---|
3617 | ac_preproc_ok=: |
---|
3618 | break |
---|
3619 | fi |
---|
3620 | rm -f conftest.err conftest.$ac_ext |
---|
3621 | |
---|
3622 | done |
---|
3623 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3624 | rm -f conftest.err conftest.$ac_ext |
---|
3625 | if $ac_preproc_ok; then |
---|
3626 | break |
---|
3627 | fi |
---|
3628 | |
---|
3629 | done |
---|
3630 | ac_cv_prog_CPP=$CPP |
---|
3631 | |
---|
3632 | fi |
---|
3633 | CPP=$ac_cv_prog_CPP |
---|
3634 | else |
---|
3635 | ac_cv_prog_CPP=$CPP |
---|
3636 | fi |
---|
3637 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3638 | echo "${ECHO_T}$CPP" >&6 |
---|
3639 | ac_preproc_ok=false |
---|
3640 | for ac_c_preproc_warn_flag in '' yes |
---|
3641 | do |
---|
3642 | # Use a header file that comes with gcc, so configuring glibc |
---|
3643 | # with a fresh cross-compiler works. |
---|
3644 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3645 | # <limits.h> exists even on freestanding compilers. |
---|
3646 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3647 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3648 | cat >conftest.$ac_ext <<_ACEOF |
---|
3649 | /* confdefs.h. */ |
---|
3650 | _ACEOF |
---|
3651 | cat confdefs.h >>conftest.$ac_ext |
---|
3652 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3653 | /* end confdefs.h. */ |
---|
3654 | #ifdef __STDC__ |
---|
3655 | # include <limits.h> |
---|
3656 | #else |
---|
3657 | # include <assert.h> |
---|
3658 | #endif |
---|
3659 | Syntax error |
---|
3660 | _ACEOF |
---|
3661 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3662 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3663 | ac_status=$? |
---|
3664 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3665 | rm -f conftest.er1 |
---|
3666 | cat conftest.err >&5 |
---|
3667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3668 | (exit $ac_status); } >/dev/null; then |
---|
3669 | if test -s conftest.err; then |
---|
3670 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3671 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3672 | else |
---|
3673 | ac_cpp_err= |
---|
3674 | fi |
---|
3675 | else |
---|
3676 | ac_cpp_err=yes |
---|
3677 | fi |
---|
3678 | if test -z "$ac_cpp_err"; then |
---|
3679 | : |
---|
3680 | else |
---|
3681 | echo "$as_me: failed program was:" >&5 |
---|
3682 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3683 | |
---|
3684 | # Broken: fails on valid input. |
---|
3685 | continue |
---|
3686 | fi |
---|
3687 | rm -f conftest.err conftest.$ac_ext |
---|
3688 | |
---|
3689 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3690 | # can be detected and how. |
---|
3691 | cat >conftest.$ac_ext <<_ACEOF |
---|
3692 | /* confdefs.h. */ |
---|
3693 | _ACEOF |
---|
3694 | cat confdefs.h >>conftest.$ac_ext |
---|
3695 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3696 | /* end confdefs.h. */ |
---|
3697 | #include <ac_nonexistent.h> |
---|
3698 | _ACEOF |
---|
3699 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3700 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3701 | ac_status=$? |
---|
3702 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3703 | rm -f conftest.er1 |
---|
3704 | cat conftest.err >&5 |
---|
3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3706 | (exit $ac_status); } >/dev/null; then |
---|
3707 | if test -s conftest.err; then |
---|
3708 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3709 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3710 | else |
---|
3711 | ac_cpp_err= |
---|
3712 | fi |
---|
3713 | else |
---|
3714 | ac_cpp_err=yes |
---|
3715 | fi |
---|
3716 | if test -z "$ac_cpp_err"; then |
---|
3717 | # Broken: success on invalid input. |
---|
3718 | continue |
---|
3719 | else |
---|
3720 | echo "$as_me: failed program was:" >&5 |
---|
3721 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3722 | |
---|
3723 | # Passes both tests. |
---|
3724 | ac_preproc_ok=: |
---|
3725 | break |
---|
3726 | fi |
---|
3727 | rm -f conftest.err conftest.$ac_ext |
---|
3728 | |
---|
3729 | done |
---|
3730 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3731 | rm -f conftest.err conftest.$ac_ext |
---|
3732 | if $ac_preproc_ok; then |
---|
3733 | : |
---|
3734 | else |
---|
3735 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3736 | See \`config.log' for more details." >&5 |
---|
3737 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3738 | See \`config.log' for more details." >&2;} |
---|
3739 | { (exit 1); exit 1; }; } |
---|
3740 | fi |
---|
3741 | |
---|
3742 | ac_ext=c |
---|
3743 | ac_cpp='$CPP $CPPFLAGS' |
---|
3744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3747 | |
---|
3748 | |
---|
3749 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3750 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3751 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3753 | else |
---|
3754 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3755 | then ac_cv_prog_egrep='grep -E' |
---|
3756 | else ac_cv_prog_egrep='egrep' |
---|
3757 | fi |
---|
3758 | fi |
---|
3759 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3760 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3761 | EGREP=$ac_cv_prog_egrep |
---|
3762 | |
---|
3763 | |
---|
3764 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3765 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3766 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3768 | else |
---|
3769 | cat >conftest.$ac_ext <<_ACEOF |
---|
3770 | /* confdefs.h. */ |
---|
3771 | _ACEOF |
---|
3772 | cat confdefs.h >>conftest.$ac_ext |
---|
3773 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3774 | /* end confdefs.h. */ |
---|
3775 | #include <stdlib.h> |
---|
3776 | #include <stdarg.h> |
---|
3777 | #include <string.h> |
---|
3778 | #include <float.h> |
---|
3779 | |
---|
3780 | int |
---|
3781 | main () |
---|
3782 | { |
---|
3783 | |
---|
3784 | ; |
---|
3785 | return 0; |
---|
3786 | } |
---|
3787 | _ACEOF |
---|
3788 | rm -f conftest.$ac_objext |
---|
3789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3790 | (eval $ac_compile) 2>conftest.er1 |
---|
3791 | ac_status=$? |
---|
3792 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3793 | rm -f conftest.er1 |
---|
3794 | cat conftest.err >&5 |
---|
3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3796 | (exit $ac_status); } && |
---|
3797 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3798 | || test ! -s conftest.err' |
---|
3799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3800 | (eval $ac_try) 2>&5 |
---|
3801 | ac_status=$? |
---|
3802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3803 | (exit $ac_status); }; } && |
---|
3804 | { ac_try='test -s conftest.$ac_objext' |
---|
3805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3806 | (eval $ac_try) 2>&5 |
---|
3807 | ac_status=$? |
---|
3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3809 | (exit $ac_status); }; }; then |
---|
3810 | ac_cv_header_stdc=yes |
---|
3811 | else |
---|
3812 | echo "$as_me: failed program was:" >&5 |
---|
3813 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3814 | |
---|
3815 | ac_cv_header_stdc=no |
---|
3816 | fi |
---|
3817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3818 | |
---|
3819 | if test $ac_cv_header_stdc = yes; then |
---|
3820 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3821 | cat >conftest.$ac_ext <<_ACEOF |
---|
3822 | /* confdefs.h. */ |
---|
3823 | _ACEOF |
---|
3824 | cat confdefs.h >>conftest.$ac_ext |
---|
3825 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3826 | /* end confdefs.h. */ |
---|
3827 | #include <string.h> |
---|
3828 | |
---|
3829 | _ACEOF |
---|
3830 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3831 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3832 | : |
---|
3833 | else |
---|
3834 | ac_cv_header_stdc=no |
---|
3835 | fi |
---|
3836 | rm -f conftest* |
---|
3837 | |
---|
3838 | fi |
---|
3839 | |
---|
3840 | if test $ac_cv_header_stdc = yes; then |
---|
3841 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3842 | cat >conftest.$ac_ext <<_ACEOF |
---|
3843 | /* confdefs.h. */ |
---|
3844 | _ACEOF |
---|
3845 | cat confdefs.h >>conftest.$ac_ext |
---|
3846 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3847 | /* end confdefs.h. */ |
---|
3848 | #include <stdlib.h> |
---|
3849 | |
---|
3850 | _ACEOF |
---|
3851 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3852 | $EGREP "free" >/dev/null 2>&1; then |
---|
3853 | : |
---|
3854 | else |
---|
3855 | ac_cv_header_stdc=no |
---|
3856 | fi |
---|
3857 | rm -f conftest* |
---|
3858 | |
---|
3859 | fi |
---|
3860 | |
---|
3861 | if test $ac_cv_header_stdc = yes; then |
---|
3862 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3863 | if test "$cross_compiling" = yes; then |
---|
3864 | : |
---|
3865 | else |
---|
3866 | cat >conftest.$ac_ext <<_ACEOF |
---|
3867 | /* confdefs.h. */ |
---|
3868 | _ACEOF |
---|
3869 | cat confdefs.h >>conftest.$ac_ext |
---|
3870 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3871 | /* end confdefs.h. */ |
---|
3872 | #include <ctype.h> |
---|
3873 | #if ((' ' & 0x0FF) == 0x020) |
---|
3874 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3875 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3876 | #else |
---|
3877 | # define ISLOWER(c) \ |
---|
3878 | (('a' <= (c) && (c) <= 'i') \ |
---|
3879 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3880 | || ('s' <= (c) && (c) <= 'z')) |
---|
3881 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3882 | #endif |
---|
3883 | |
---|
3884 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3885 | int |
---|
3886 | main () |
---|
3887 | { |
---|
3888 | int i; |
---|
3889 | for (i = 0; i < 256; i++) |
---|
3890 | if (XOR (islower (i), ISLOWER (i)) |
---|
3891 | || toupper (i) != TOUPPER (i)) |
---|
3892 | exit(2); |
---|
3893 | exit (0); |
---|
3894 | } |
---|
3895 | _ACEOF |
---|
3896 | rm -f conftest$ac_exeext |
---|
3897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3898 | (eval $ac_link) 2>&5 |
---|
3899 | ac_status=$? |
---|
3900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3901 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3903 | (eval $ac_try) 2>&5 |
---|
3904 | ac_status=$? |
---|
3905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3906 | (exit $ac_status); }; }; then |
---|
3907 | : |
---|
3908 | else |
---|
3909 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3910 | echo "$as_me: failed program was:" >&5 |
---|
3911 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3912 | |
---|
3913 | ( exit $ac_status ) |
---|
3914 | ac_cv_header_stdc=no |
---|
3915 | fi |
---|
3916 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3917 | fi |
---|
3918 | fi |
---|
3919 | fi |
---|
3920 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3921 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3922 | if test $ac_cv_header_stdc = yes; then |
---|
3923 | |
---|
3924 | cat >>confdefs.h <<\_ACEOF |
---|
3925 | #define STDC_HEADERS 1 |
---|
3926 | _ACEOF |
---|
3927 | |
---|
3928 | fi |
---|
3929 | |
---|
3930 | |
---|
3931 | ## THIS IS OUR DEFAULT-DATA-DIRECTORY |
---|
3932 | |
---|
3933 | ################################## |
---|
3934 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
3935 | ################################## |
---|
3936 | #----------------# |
---|
3937 | # Data-Directory # |
---|
3938 | #----------------# |
---|
3939 | DATA_DIR=$datadir |
---|
3940 | echo \$\{prefix\} |
---|
3941 | if test $DATA_DIR = \$\{prefix\}/share ; then |
---|
3942 | echo "not given" |
---|
3943 | DATA_DIR=/usr/share |
---|
3944 | else |
---|
3945 | echo "given: $DATA_DIR" |
---|
3946 | fi |
---|
3947 | |
---|
3948 | cat >>confdefs.h <<_ACEOF |
---|
3949 | #define DATADIR "$DATA_DIR" |
---|
3950 | _ACEOF |
---|
3951 | |
---|
3952 | |
---|
3953 | #-----------------# |
---|
3954 | # shared-lib-path # |
---|
3955 | #-----------------# |
---|
3956 | SHARED_LIB_PATH=no |
---|
3957 | echo "$as_me:$LINENO: checking shared lib path" >&5 |
---|
3958 | echo $ECHO_N "checking shared lib path... $ECHO_C" >&6 |
---|
3959 | |
---|
3960 | # Check whether --with-shared-lib-path or --without-shared-lib-path was given. |
---|
3961 | if test "${with_shared_lib_path+set}" = set; then |
---|
3962 | withval="$with_shared_lib_path" |
---|
3963 | SHARED_LIB_PATH=$withval |
---|
3964 | fi; |
---|
3965 | if test x$SHARED_LIB_PATH != xno; then |
---|
3966 | echo "set to $SHARED_LIB_PATH" |
---|
3967 | else |
---|
3968 | echo "no" |
---|
3969 | fi |
---|
3970 | |
---|
3971 | |
---|
3972 | #-----------------# |
---|
3973 | # DEBUG-statement # |
---|
3974 | #-----------------# |
---|
3975 | DEBUG=no |
---|
3976 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
3977 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
3978 | # Check whether --enable-debug or --disable-debug was given. |
---|
3979 | if test "${enable_debug+set}" = set; then |
---|
3980 | enableval="$enable_debug" |
---|
3981 | DEBUG=$enableval |
---|
3982 | fi; |
---|
3983 | |
---|
3984 | if test x$DEBUG = xno; then |
---|
3985 | echo "no" |
---|
3986 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
3987 | DEBUG=4 |
---|
3988 | elif test x$DEBUG = xyes; then |
---|
3989 | echo "yes" |
---|
3990 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
3991 | DEBUG=4 |
---|
3992 | else |
---|
3993 | echo "yes: setting debuglevel to to $DEBUG" |
---|
3994 | fi |
---|
3995 | |
---|
3996 | cat >>confdefs.h <<_ACEOF |
---|
3997 | #define DEBUG $DEBUG |
---|
3998 | _ACEOF |
---|
3999 | |
---|
4000 | |
---|
4001 | |
---|
4002 | #---------------# |
---|
4003 | # Modular Debug # |
---|
4004 | #---------------# |
---|
4005 | MODULAR_DEBUG=yes |
---|
4006 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
4007 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
4008 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
4009 | if test "${enable_modular_debug+set}" = set; then |
---|
4010 | enableval="$enable_modular_debug" |
---|
4011 | MODULAR_DEBUG=$enableval |
---|
4012 | fi; |
---|
4013 | |
---|
4014 | if test x$MODULAR_DEBUG = xno; then |
---|
4015 | echo "no" |
---|
4016 | elif test x$MODULAR_DEBUG = xyes; then |
---|
4017 | echo "yes" |
---|
4018 | |
---|
4019 | cat >>confdefs.h <<_ACEOF |
---|
4020 | #define MODULAR_DEBUG 1 |
---|
4021 | _ACEOF |
---|
4022 | |
---|
4023 | fi |
---|
4024 | |
---|
4025 | #--------------# |
---|
4026 | # GTK-disabled # |
---|
4027 | #--------------# |
---|
4028 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
4029 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
4030 | # Check whether --enable-gtk or --disable-gtk was given. |
---|
4031 | if test "${enable_gtk+set}" = set; then |
---|
4032 | enableval="$enable_gtk" |
---|
4033 | def_gtk=no |
---|
4034 | else |
---|
4035 | def_gtk=yes |
---|
4036 | fi; |
---|
4037 | if test x$def_gtk = xyes; then |
---|
4038 | echo "yes" |
---|
4039 | fi |
---|
4040 | if test x$def_gtk = xno; then |
---|
4041 | echo "no" |
---|
4042 | fi |
---|
4043 | |
---|
4044 | #------------------# |
---|
4045 | # libCurl-disabled # |
---|
4046 | #------------------# |
---|
4047 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
4048 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
4049 | # Check whether --enable-curl or --disable-curl was given. |
---|
4050 | if test "${enable_curl+set}" = set; then |
---|
4051 | enableval="$enable_curl" |
---|
4052 | def_curl=no |
---|
4053 | else |
---|
4054 | def_curl=yes |
---|
4055 | fi; |
---|
4056 | if test x$def_curl = xyes; then |
---|
4057 | echo "yes" |
---|
4058 | fi |
---|
4059 | if test x$def_curl = xno; then |
---|
4060 | echo "no" |
---|
4061 | fi |
---|
4062 | |
---|
4063 | #-------------------# |
---|
4064 | # SubProject-enable # |
---|
4065 | #-------------------# |
---|
4066 | def_sub_projects=no |
---|
4067 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
4068 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
4069 | |
---|
4070 | # Check whether --with-sub-projects or --without-sub-projects was given. |
---|
4071 | if test "${with_sub_projects+set}" = set; then |
---|
4072 | withval="$with_sub_projects" |
---|
4073 | def_sub_projects=yes |
---|
4074 | fi; |
---|
4075 | if test x$def_sub_projects = xyes; then |
---|
4076 | echo "yes" |
---|
4077 | fi |
---|
4078 | if test x$def_sub_projects = xno; then |
---|
4079 | echo "no" |
---|
4080 | fi |
---|
4081 | |
---|
4082 | |
---|
4083 | if test x$def_sub_projects = xyes; then |
---|
4084 | SUB_PROJECTS_TRUE= |
---|
4085 | SUB_PROJECTS_FALSE='#' |
---|
4086 | else |
---|
4087 | SUB_PROJECTS_TRUE='#' |
---|
4088 | SUB_PROJECTS_FALSE= |
---|
4089 | fi |
---|
4090 | |
---|
4091 | |
---|
4092 | #-------------------# |
---|
4093 | # Profiling Enabled # |
---|
4094 | #-------------------# |
---|
4095 | def_profiling=no |
---|
4096 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
4097 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
4098 | # Check whether --enable-profile or --disable-profile was given. |
---|
4099 | if test "${enable_profile+set}" = set; then |
---|
4100 | enableval="$enable_profile" |
---|
4101 | def_profiling=yes |
---|
4102 | fi; |
---|
4103 | if test x$def_profiling = xyes; then |
---|
4104 | echo "yes" |
---|
4105 | CXXFLAGS="$CXXFLAGS -pg" |
---|
4106 | fi |
---|
4107 | if test x$def_profiling = xno; then |
---|
4108 | echo "no" |
---|
4109 | fi |
---|
4110 | |
---|
4111 | #----------------# |
---|
4112 | # efence Enabled # |
---|
4113 | #----------------# |
---|
4114 | def_efence=no |
---|
4115 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
4116 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
4117 | # Check whether --enable-efence or --disable-efence was given. |
---|
4118 | if test "${enable_efence+set}" = set; then |
---|
4119 | enableval="$enable_efence" |
---|
4120 | def_efence=yes |
---|
4121 | fi; |
---|
4122 | if test x$def_efence = xyes; then |
---|
4123 | echo "yes" |
---|
4124 | fi |
---|
4125 | if test x$def_efence = xno; then |
---|
4126 | echo "no" |
---|
4127 | fi |
---|
4128 | |
---|
4129 | #----------------------# |
---|
4130 | # Documentation-enable # |
---|
4131 | #----------------------# |
---|
4132 | def_documentation=no |
---|
4133 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
4134 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
4135 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
4136 | if test "${enable_documentation+set}" = set; then |
---|
4137 | enableval="$enable_documentation" |
---|
4138 | def_documentation=yes |
---|
4139 | fi; |
---|
4140 | if test x$def_documentation = xyes; then |
---|
4141 | echo "yes" |
---|
4142 | fi |
---|
4143 | if test x$def_documentation = xno; then |
---|
4144 | echo "no" |
---|
4145 | fi |
---|
4146 | |
---|
4147 | |
---|
4148 | if test x$def_documentation = xyes; then |
---|
4149 | DOCUMENTATION_TRUE= |
---|
4150 | DOCUMENTATION_FALSE='#' |
---|
4151 | else |
---|
4152 | DOCUMENTATION_TRUE='#' |
---|
4153 | DOCUMENTATION_FALSE= |
---|
4154 | fi |
---|
4155 | |
---|
4156 | |
---|
4157 | |
---|
4158 | |
---|
4159 | #---------------------------# |
---|
4160 | # WITH TARDIS (convenience) # |
---|
4161 | #---------------------------# |
---|
4162 | def_tardis=no |
---|
4163 | echo "$as_me:$LINENO: checking convenience flag for working at the taris in the ETH zurich" >&5 |
---|
4164 | echo $ECHO_N "checking convenience flag for working at the taris in the ETH zurich... $ECHO_C" >&6 |
---|
4165 | |
---|
4166 | # Check whether --with-tardis or --without-tardis was given. |
---|
4167 | if test "${with_tardis+set}" = set; then |
---|
4168 | withval="$with_tardis" |
---|
4169 | def_tardis=yes |
---|
4170 | fi; |
---|
4171 | if test x$def_tardis = xyes; then |
---|
4172 | PREFIX=/usr/pack/gamelibs-1.0-to |
---|
4173 | CPPFLAGS="$CPPFLAGS -I$PREFIX/include" |
---|
4174 | LDFLAGS="$LDFLAGS -L$PREFIX/$ARCH/lib -Wl,-rpath -Wl,$PREFIX/$ARCH/lib" |
---|
4175 | echo "yes" |
---|
4176 | fi |
---|
4177 | if test x$def_tardis = xno; then |
---|
4178 | echo "no" |
---|
4179 | fi |
---|
4180 | |
---|
4181 | ####################### |
---|
4182 | ## PROGRAMM CHECKING ## |
---|
4183 | ## 3. party Programs ## |
---|
4184 | ####################### |
---|
4185 | |
---|
4186 | #----------------------# |
---|
4187 | # checking for Doxygen # |
---|
4188 | #----------------------# |
---|
4189 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
4190 | set dummy doxygen; ac_word=$2 |
---|
4191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4193 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
4194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4195 | else |
---|
4196 | case $DOXYGEN in |
---|
4197 | [\\/]* | ?:[\\/]*) |
---|
4198 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
4199 | ;; |
---|
4200 | *) |
---|
4201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4202 | for as_dir in $PATH |
---|
4203 | do |
---|
4204 | IFS=$as_save_IFS |
---|
4205 | test -z "$as_dir" && as_dir=. |
---|
4206 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4207 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4208 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
4209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4210 | break 2 |
---|
4211 | fi |
---|
4212 | done |
---|
4213 | done |
---|
4214 | |
---|
4215 | ;; |
---|
4216 | esac |
---|
4217 | fi |
---|
4218 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
4219 | |
---|
4220 | if test -n "$DOXYGEN"; then |
---|
4221 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
4222 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
4223 | else |
---|
4224 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4225 | echo "${ECHO_T}no" >&6 |
---|
4226 | fi |
---|
4227 | |
---|
4228 | |
---|
4229 | |
---|
4230 | if test $DOXYGEN; then |
---|
4231 | DOXYGEN_TRUE= |
---|
4232 | DOXYGEN_FALSE='#' |
---|
4233 | else |
---|
4234 | DOXYGEN_TRUE='#' |
---|
4235 | DOXYGEN_FALSE= |
---|
4236 | fi |
---|
4237 | |
---|
4238 | |
---|
4239 | #--------------------# |
---|
4240 | # checking for gprof # |
---|
4241 | #--------------------# |
---|
4242 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
4243 | set dummy gprof; ac_word=$2 |
---|
4244 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4246 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
4247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4248 | else |
---|
4249 | case $GPROF in |
---|
4250 | [\\/]* | ?:[\\/]*) |
---|
4251 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
4252 | ;; |
---|
4253 | *) |
---|
4254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4255 | for as_dir in $PATH |
---|
4256 | do |
---|
4257 | IFS=$as_save_IFS |
---|
4258 | test -z "$as_dir" && as_dir=. |
---|
4259 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4260 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4261 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
4262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4263 | break 2 |
---|
4264 | fi |
---|
4265 | done |
---|
4266 | done |
---|
4267 | |
---|
4268 | ;; |
---|
4269 | esac |
---|
4270 | fi |
---|
4271 | GPROF=$ac_cv_path_GPROF |
---|
4272 | |
---|
4273 | if test -n "$GPROF"; then |
---|
4274 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
4275 | echo "${ECHO_T}$GPROF" >&6 |
---|
4276 | else |
---|
4277 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4278 | echo "${ECHO_T}no" >&6 |
---|
4279 | fi |
---|
4280 | |
---|
4281 | |
---|
4282 | #-------------------------# |
---|
4283 | # checking for pkg-config # |
---|
4284 | #-------------------------# |
---|
4285 | if test x$def_gtk = xyes; then |
---|
4286 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
4287 | set dummy pkg-config; ac_word=$2 |
---|
4288 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4289 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4290 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
4291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4292 | else |
---|
4293 | case $PKG_CONFIG in |
---|
4294 | [\\/]* | ?:[\\/]*) |
---|
4295 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
4296 | ;; |
---|
4297 | *) |
---|
4298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4299 | for as_dir in $PATH |
---|
4300 | do |
---|
4301 | IFS=$as_save_IFS |
---|
4302 | test -z "$as_dir" && as_dir=. |
---|
4303 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4304 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4305 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
4306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4307 | break 2 |
---|
4308 | fi |
---|
4309 | done |
---|
4310 | done |
---|
4311 | |
---|
4312 | ;; |
---|
4313 | esac |
---|
4314 | fi |
---|
4315 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
4316 | |
---|
4317 | if test -n "$PKG_CONFIG"; then |
---|
4318 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
4319 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
4320 | else |
---|
4321 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4322 | echo "${ECHO_T}no" >&6 |
---|
4323 | fi |
---|
4324 | |
---|
4325 | fi |
---|
4326 | |
---|
4327 | |
---|
4328 | ######################### |
---|
4329 | ## CHECKING FOR SYSTEM ## |
---|
4330 | ######################### |
---|
4331 | ## here the system is checked, and openGL is included |
---|
4332 | ## also checking for SDL on differen Systems |
---|
4333 | |
---|
4334 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
4335 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
4336 | ## checking for openGL-environment and other sys-specific parameters |
---|
4337 | case "$target" in |
---|
4338 | |
---|
4339 | ########### |
---|
4340 | #---------# |
---|
4341 | # WINDOWS # |
---|
4342 | #---------# |
---|
4343 | ########### |
---|
4344 | *-*-mingw32*) |
---|
4345 | echo "mingw-WINDOWS detected" |
---|
4346 | |
---|
4347 | CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS" |
---|
4348 | |
---|
4349 | mingw="yes" |
---|
4350 | MSBITFIELDS="-mms-bitfields" |
---|
4351 | MWINDOWS="-mwindows" |
---|
4352 | |
---|
4353 | #--------# |
---|
4354 | # MIN-GW # |
---|
4355 | #--------# |
---|
4356 | # checking for mingw32 |
---|
4357 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4358 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4359 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4361 | else |
---|
4362 | ac_check_lib_save_LIBS=$LIBS |
---|
4363 | LIBS="-lmingw32 $LIBS" |
---|
4364 | cat >conftest.$ac_ext <<_ACEOF |
---|
4365 | /* confdefs.h. */ |
---|
4366 | _ACEOF |
---|
4367 | cat confdefs.h >>conftest.$ac_ext |
---|
4368 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4369 | /* end confdefs.h. */ |
---|
4370 | |
---|
4371 | |
---|
4372 | int |
---|
4373 | main () |
---|
4374 | { |
---|
4375 | main (); |
---|
4376 | ; |
---|
4377 | return 0; |
---|
4378 | } |
---|
4379 | _ACEOF |
---|
4380 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4382 | (eval $ac_link) 2>conftest.er1 |
---|
4383 | ac_status=$? |
---|
4384 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4385 | rm -f conftest.er1 |
---|
4386 | cat conftest.err >&5 |
---|
4387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4388 | (exit $ac_status); } && |
---|
4389 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4390 | || test ! -s conftest.err' |
---|
4391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4392 | (eval $ac_try) 2>&5 |
---|
4393 | ac_status=$? |
---|
4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4395 | (exit $ac_status); }; } && |
---|
4396 | { ac_try='test -s conftest$ac_exeext' |
---|
4397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4398 | (eval $ac_try) 2>&5 |
---|
4399 | ac_status=$? |
---|
4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4401 | (exit $ac_status); }; }; then |
---|
4402 | ac_cv_lib_mingw32_main=yes |
---|
4403 | else |
---|
4404 | echo "$as_me: failed program was:" >&5 |
---|
4405 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4406 | |
---|
4407 | ac_cv_lib_mingw32_main=no |
---|
4408 | fi |
---|
4409 | rm -f conftest.err conftest.$ac_objext \ |
---|
4410 | conftest$ac_exeext conftest.$ac_ext |
---|
4411 | LIBS=$ac_check_lib_save_LIBS |
---|
4412 | fi |
---|
4413 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4414 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4415 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4416 | FOUND_mingw32=yes |
---|
4417 | fi |
---|
4418 | |
---|
4419 | if test x$FOUND_mingw32 = xyes; then |
---|
4420 | LIBS="$LIBS -lmingw32" |
---|
4421 | fi |
---|
4422 | |
---|
4423 | #---------------# |
---|
4424 | # open-GL (win) # |
---|
4425 | #---------------# |
---|
4426 | # checking gl header |
---|
4427 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4428 | |
---|
4429 | |
---|
4430 | |
---|
4431 | |
---|
4432 | |
---|
4433 | |
---|
4434 | |
---|
4435 | |
---|
4436 | |
---|
4437 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4438 | inttypes.h stdint.h unistd.h |
---|
4439 | do |
---|
4440 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4441 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4442 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4443 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4445 | else |
---|
4446 | cat >conftest.$ac_ext <<_ACEOF |
---|
4447 | /* confdefs.h. */ |
---|
4448 | _ACEOF |
---|
4449 | cat confdefs.h >>conftest.$ac_ext |
---|
4450 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4451 | /* end confdefs.h. */ |
---|
4452 | $ac_includes_default |
---|
4453 | |
---|
4454 | #include <$ac_header> |
---|
4455 | _ACEOF |
---|
4456 | rm -f conftest.$ac_objext |
---|
4457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4458 | (eval $ac_compile) 2>conftest.er1 |
---|
4459 | ac_status=$? |
---|
4460 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4461 | rm -f conftest.er1 |
---|
4462 | cat conftest.err >&5 |
---|
4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4464 | (exit $ac_status); } && |
---|
4465 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4466 | || test ! -s conftest.err' |
---|
4467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4468 | (eval $ac_try) 2>&5 |
---|
4469 | ac_status=$? |
---|
4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4471 | (exit $ac_status); }; } && |
---|
4472 | { ac_try='test -s conftest.$ac_objext' |
---|
4473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4474 | (eval $ac_try) 2>&5 |
---|
4475 | ac_status=$? |
---|
4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4477 | (exit $ac_status); }; }; then |
---|
4478 | eval "$as_ac_Header=yes" |
---|
4479 | else |
---|
4480 | echo "$as_me: failed program was:" >&5 |
---|
4481 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4482 | |
---|
4483 | eval "$as_ac_Header=no" |
---|
4484 | fi |
---|
4485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4486 | fi |
---|
4487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4488 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4489 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4490 | cat >>confdefs.h <<_ACEOF |
---|
4491 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4492 | _ACEOF |
---|
4493 | |
---|
4494 | fi |
---|
4495 | |
---|
4496 | done |
---|
4497 | |
---|
4498 | |
---|
4499 | |
---|
4500 | for ac_header in GL/gl.h |
---|
4501 | do |
---|
4502 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4503 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4504 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4506 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4508 | fi |
---|
4509 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4510 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4511 | else |
---|
4512 | # Is the header compilable? |
---|
4513 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4514 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4515 | cat >conftest.$ac_ext <<_ACEOF |
---|
4516 | /* confdefs.h. */ |
---|
4517 | _ACEOF |
---|
4518 | cat confdefs.h >>conftest.$ac_ext |
---|
4519 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4520 | /* end confdefs.h. */ |
---|
4521 | $ac_includes_default |
---|
4522 | #include <$ac_header> |
---|
4523 | _ACEOF |
---|
4524 | rm -f conftest.$ac_objext |
---|
4525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4526 | (eval $ac_compile) 2>conftest.er1 |
---|
4527 | ac_status=$? |
---|
4528 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4529 | rm -f conftest.er1 |
---|
4530 | cat conftest.err >&5 |
---|
4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4532 | (exit $ac_status); } && |
---|
4533 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4534 | || test ! -s conftest.err' |
---|
4535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4536 | (eval $ac_try) 2>&5 |
---|
4537 | ac_status=$? |
---|
4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4539 | (exit $ac_status); }; } && |
---|
4540 | { ac_try='test -s conftest.$ac_objext' |
---|
4541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4542 | (eval $ac_try) 2>&5 |
---|
4543 | ac_status=$? |
---|
4544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4545 | (exit $ac_status); }; }; then |
---|
4546 | ac_header_compiler=yes |
---|
4547 | else |
---|
4548 | echo "$as_me: failed program was:" >&5 |
---|
4549 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4550 | |
---|
4551 | ac_header_compiler=no |
---|
4552 | fi |
---|
4553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4554 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4555 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4556 | |
---|
4557 | # Is the header present? |
---|
4558 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4559 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4560 | cat >conftest.$ac_ext <<_ACEOF |
---|
4561 | /* confdefs.h. */ |
---|
4562 | _ACEOF |
---|
4563 | cat confdefs.h >>conftest.$ac_ext |
---|
4564 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4565 | /* end confdefs.h. */ |
---|
4566 | #include <$ac_header> |
---|
4567 | _ACEOF |
---|
4568 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4569 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4570 | ac_status=$? |
---|
4571 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4572 | rm -f conftest.er1 |
---|
4573 | cat conftest.err >&5 |
---|
4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4575 | (exit $ac_status); } >/dev/null; then |
---|
4576 | if test -s conftest.err; then |
---|
4577 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4578 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4579 | else |
---|
4580 | ac_cpp_err= |
---|
4581 | fi |
---|
4582 | else |
---|
4583 | ac_cpp_err=yes |
---|
4584 | fi |
---|
4585 | if test -z "$ac_cpp_err"; then |
---|
4586 | ac_header_preproc=yes |
---|
4587 | else |
---|
4588 | echo "$as_me: failed program was:" >&5 |
---|
4589 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4590 | |
---|
4591 | ac_header_preproc=no |
---|
4592 | fi |
---|
4593 | rm -f conftest.err conftest.$ac_ext |
---|
4594 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4595 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4596 | |
---|
4597 | # So? What about this header? |
---|
4598 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4599 | yes:no: ) |
---|
4600 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4601 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4603 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4604 | ac_header_preproc=yes |
---|
4605 | ;; |
---|
4606 | no:yes:* ) |
---|
4607 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4608 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4609 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4610 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4611 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4612 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4613 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4614 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4615 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4616 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4617 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4618 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4619 | ( |
---|
4620 | cat <<\_ASBOX |
---|
4621 | ## ---------------------------------------------- ## |
---|
4622 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4623 | ## ---------------------------------------------- ## |
---|
4624 | _ASBOX |
---|
4625 | ) | |
---|
4626 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4627 | ;; |
---|
4628 | esac |
---|
4629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4633 | else |
---|
4634 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4635 | fi |
---|
4636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4637 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4638 | |
---|
4639 | fi |
---|
4640 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4641 | cat >>confdefs.h <<_ACEOF |
---|
4642 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4643 | _ACEOF |
---|
4644 | |
---|
4645 | else |
---|
4646 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4647 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4648 | { (exit 1); exit 1; }; } |
---|
4649 | fi |
---|
4650 | |
---|
4651 | done |
---|
4652 | |
---|
4653 | # checking for Windows openGl library |
---|
4654 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4655 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4656 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4658 | else |
---|
4659 | ac_check_lib_save_LIBS=$LIBS |
---|
4660 | LIBS="-lopengl32 $LIBS" |
---|
4661 | cat >conftest.$ac_ext <<_ACEOF |
---|
4662 | /* confdefs.h. */ |
---|
4663 | _ACEOF |
---|
4664 | cat confdefs.h >>conftest.$ac_ext |
---|
4665 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4666 | /* end confdefs.h. */ |
---|
4667 | |
---|
4668 | |
---|
4669 | int |
---|
4670 | main () |
---|
4671 | { |
---|
4672 | main (); |
---|
4673 | ; |
---|
4674 | return 0; |
---|
4675 | } |
---|
4676 | _ACEOF |
---|
4677 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4679 | (eval $ac_link) 2>conftest.er1 |
---|
4680 | ac_status=$? |
---|
4681 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4682 | rm -f conftest.er1 |
---|
4683 | cat conftest.err >&5 |
---|
4684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4685 | (exit $ac_status); } && |
---|
4686 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4687 | || test ! -s conftest.err' |
---|
4688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4689 | (eval $ac_try) 2>&5 |
---|
4690 | ac_status=$? |
---|
4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4692 | (exit $ac_status); }; } && |
---|
4693 | { ac_try='test -s conftest$ac_exeext' |
---|
4694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4695 | (eval $ac_try) 2>&5 |
---|
4696 | ac_status=$? |
---|
4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4698 | (exit $ac_status); }; }; then |
---|
4699 | ac_cv_lib_opengl32_main=yes |
---|
4700 | else |
---|
4701 | echo "$as_me: failed program was:" >&5 |
---|
4702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4703 | |
---|
4704 | ac_cv_lib_opengl32_main=no |
---|
4705 | fi |
---|
4706 | rm -f conftest.err conftest.$ac_objext \ |
---|
4707 | conftest$ac_exeext conftest.$ac_ext |
---|
4708 | LIBS=$ac_check_lib_save_LIBS |
---|
4709 | fi |
---|
4710 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4711 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4712 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4713 | FOUND_GL=yes; LIBS="$LIBS -lopengl32" |
---|
4714 | fi |
---|
4715 | |
---|
4716 | if test x$FOUND_GL != xyes ; then |
---|
4717 | echo "------------------" |
---|
4718 | echo "opengl not found." |
---|
4719 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4720 | echo "------------------" |
---|
4721 | exit -1 |
---|
4722 | fi |
---|
4723 | |
---|
4724 | # cheking for GLU-header |
---|
4725 | |
---|
4726 | for ac_header in GL/glu.h |
---|
4727 | do |
---|
4728 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4730 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4731 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4732 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4734 | fi |
---|
4735 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4736 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4737 | else |
---|
4738 | # Is the header compilable? |
---|
4739 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4740 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4741 | cat >conftest.$ac_ext <<_ACEOF |
---|
4742 | /* confdefs.h. */ |
---|
4743 | _ACEOF |
---|
4744 | cat confdefs.h >>conftest.$ac_ext |
---|
4745 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4746 | /* end confdefs.h. */ |
---|
4747 | $ac_includes_default |
---|
4748 | #include <$ac_header> |
---|
4749 | _ACEOF |
---|
4750 | rm -f conftest.$ac_objext |
---|
4751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4752 | (eval $ac_compile) 2>conftest.er1 |
---|
4753 | ac_status=$? |
---|
4754 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4755 | rm -f conftest.er1 |
---|
4756 | cat conftest.err >&5 |
---|
4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4758 | (exit $ac_status); } && |
---|
4759 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4760 | || test ! -s conftest.err' |
---|
4761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4762 | (eval $ac_try) 2>&5 |
---|
4763 | ac_status=$? |
---|
4764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4765 | (exit $ac_status); }; } && |
---|
4766 | { ac_try='test -s conftest.$ac_objext' |
---|
4767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4768 | (eval $ac_try) 2>&5 |
---|
4769 | ac_status=$? |
---|
4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4771 | (exit $ac_status); }; }; then |
---|
4772 | ac_header_compiler=yes |
---|
4773 | else |
---|
4774 | echo "$as_me: failed program was:" >&5 |
---|
4775 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4776 | |
---|
4777 | ac_header_compiler=no |
---|
4778 | fi |
---|
4779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4780 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4781 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4782 | |
---|
4783 | # Is the header present? |
---|
4784 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4785 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4786 | cat >conftest.$ac_ext <<_ACEOF |
---|
4787 | /* confdefs.h. */ |
---|
4788 | _ACEOF |
---|
4789 | cat confdefs.h >>conftest.$ac_ext |
---|
4790 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4791 | /* end confdefs.h. */ |
---|
4792 | #include <$ac_header> |
---|
4793 | _ACEOF |
---|
4794 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4795 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4796 | ac_status=$? |
---|
4797 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4798 | rm -f conftest.er1 |
---|
4799 | cat conftest.err >&5 |
---|
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4801 | (exit $ac_status); } >/dev/null; then |
---|
4802 | if test -s conftest.err; then |
---|
4803 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4804 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4805 | else |
---|
4806 | ac_cpp_err= |
---|
4807 | fi |
---|
4808 | else |
---|
4809 | ac_cpp_err=yes |
---|
4810 | fi |
---|
4811 | if test -z "$ac_cpp_err"; then |
---|
4812 | ac_header_preproc=yes |
---|
4813 | else |
---|
4814 | echo "$as_me: failed program was:" >&5 |
---|
4815 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4816 | |
---|
4817 | ac_header_preproc=no |
---|
4818 | fi |
---|
4819 | rm -f conftest.err conftest.$ac_ext |
---|
4820 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4821 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4822 | |
---|
4823 | # So? What about this header? |
---|
4824 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4825 | yes:no: ) |
---|
4826 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4827 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4829 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4830 | ac_header_preproc=yes |
---|
4831 | ;; |
---|
4832 | no:yes:* ) |
---|
4833 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4834 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4835 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4836 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4837 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4838 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4839 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4840 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4841 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4842 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4843 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4844 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4845 | ( |
---|
4846 | cat <<\_ASBOX |
---|
4847 | ## ---------------------------------------------- ## |
---|
4848 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4849 | ## ---------------------------------------------- ## |
---|
4850 | _ASBOX |
---|
4851 | ) | |
---|
4852 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4853 | ;; |
---|
4854 | esac |
---|
4855 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4859 | else |
---|
4860 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4861 | fi |
---|
4862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4864 | |
---|
4865 | fi |
---|
4866 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4867 | cat >>confdefs.h <<_ACEOF |
---|
4868 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4869 | _ACEOF |
---|
4870 | |
---|
4871 | else |
---|
4872 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4873 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4874 | { (exit 1); exit 1; }; } |
---|
4875 | fi |
---|
4876 | |
---|
4877 | done |
---|
4878 | |
---|
4879 | |
---|
4880 | # checking for libGLU |
---|
4881 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4882 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4883 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4885 | else |
---|
4886 | ac_check_lib_save_LIBS=$LIBS |
---|
4887 | LIBS="-lglu32 $LIBS" |
---|
4888 | cat >conftest.$ac_ext <<_ACEOF |
---|
4889 | /* confdefs.h. */ |
---|
4890 | _ACEOF |
---|
4891 | cat confdefs.h >>conftest.$ac_ext |
---|
4892 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4893 | /* end confdefs.h. */ |
---|
4894 | |
---|
4895 | |
---|
4896 | int |
---|
4897 | main () |
---|
4898 | { |
---|
4899 | main (); |
---|
4900 | ; |
---|
4901 | return 0; |
---|
4902 | } |
---|
4903 | _ACEOF |
---|
4904 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4906 | (eval $ac_link) 2>conftest.er1 |
---|
4907 | ac_status=$? |
---|
4908 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4909 | rm -f conftest.er1 |
---|
4910 | cat conftest.err >&5 |
---|
4911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4912 | (exit $ac_status); } && |
---|
4913 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4914 | || test ! -s conftest.err' |
---|
4915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4916 | (eval $ac_try) 2>&5 |
---|
4917 | ac_status=$? |
---|
4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4919 | (exit $ac_status); }; } && |
---|
4920 | { ac_try='test -s conftest$ac_exeext' |
---|
4921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4922 | (eval $ac_try) 2>&5 |
---|
4923 | ac_status=$? |
---|
4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4925 | (exit $ac_status); }; }; then |
---|
4926 | ac_cv_lib_glu32_main=yes |
---|
4927 | else |
---|
4928 | echo "$as_me: failed program was:" >&5 |
---|
4929 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4930 | |
---|
4931 | ac_cv_lib_glu32_main=no |
---|
4932 | fi |
---|
4933 | rm -f conftest.err conftest.$ac_objext \ |
---|
4934 | conftest$ac_exeext conftest.$ac_ext |
---|
4935 | LIBS=$ac_check_lib_save_LIBS |
---|
4936 | fi |
---|
4937 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4938 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4939 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4940 | FOUND_GLU=yes; LIBS="$LIBS -lGLU32" |
---|
4941 | fi |
---|
4942 | |
---|
4943 | if test x$FOUND_GLU != xyes ; then |
---|
4944 | echo "------------------" |
---|
4945 | echo "GLU library not found." |
---|
4946 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4947 | echo "------------------" |
---|
4948 | exit -1 |
---|
4949 | fi |
---|
4950 | |
---|
4951 | # checking glew header |
---|
4952 | |
---|
4953 | for ac_header in GL/glew.h |
---|
4954 | do |
---|
4955 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4956 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4957 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4958 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4959 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4961 | fi |
---|
4962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4963 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4964 | else |
---|
4965 | # Is the header compilable? |
---|
4966 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4967 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4968 | cat >conftest.$ac_ext <<_ACEOF |
---|
4969 | /* confdefs.h. */ |
---|
4970 | _ACEOF |
---|
4971 | cat confdefs.h >>conftest.$ac_ext |
---|
4972 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4973 | /* end confdefs.h. */ |
---|
4974 | $ac_includes_default |
---|
4975 | #include <$ac_header> |
---|
4976 | _ACEOF |
---|
4977 | rm -f conftest.$ac_objext |
---|
4978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4979 | (eval $ac_compile) 2>conftest.er1 |
---|
4980 | ac_status=$? |
---|
4981 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4982 | rm -f conftest.er1 |
---|
4983 | cat conftest.err >&5 |
---|
4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4985 | (exit $ac_status); } && |
---|
4986 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4987 | || test ! -s conftest.err' |
---|
4988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4989 | (eval $ac_try) 2>&5 |
---|
4990 | ac_status=$? |
---|
4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4992 | (exit $ac_status); }; } && |
---|
4993 | { ac_try='test -s conftest.$ac_objext' |
---|
4994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4995 | (eval $ac_try) 2>&5 |
---|
4996 | ac_status=$? |
---|
4997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4998 | (exit $ac_status); }; }; then |
---|
4999 | ac_header_compiler=yes |
---|
5000 | else |
---|
5001 | echo "$as_me: failed program was:" >&5 |
---|
5002 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5003 | |
---|
5004 | ac_header_compiler=no |
---|
5005 | fi |
---|
5006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5007 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5008 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5009 | |
---|
5010 | # Is the header present? |
---|
5011 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5012 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5013 | cat >conftest.$ac_ext <<_ACEOF |
---|
5014 | /* confdefs.h. */ |
---|
5015 | _ACEOF |
---|
5016 | cat confdefs.h >>conftest.$ac_ext |
---|
5017 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5018 | /* end confdefs.h. */ |
---|
5019 | #include <$ac_header> |
---|
5020 | _ACEOF |
---|
5021 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5022 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5023 | ac_status=$? |
---|
5024 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5025 | rm -f conftest.er1 |
---|
5026 | cat conftest.err >&5 |
---|
5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5028 | (exit $ac_status); } >/dev/null; then |
---|
5029 | if test -s conftest.err; then |
---|
5030 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5031 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5032 | else |
---|
5033 | ac_cpp_err= |
---|
5034 | fi |
---|
5035 | else |
---|
5036 | ac_cpp_err=yes |
---|
5037 | fi |
---|
5038 | if test -z "$ac_cpp_err"; then |
---|
5039 | ac_header_preproc=yes |
---|
5040 | else |
---|
5041 | echo "$as_me: failed program was:" >&5 |
---|
5042 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5043 | |
---|
5044 | ac_header_preproc=no |
---|
5045 | fi |
---|
5046 | rm -f conftest.err conftest.$ac_ext |
---|
5047 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5048 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5049 | |
---|
5050 | # So? What about this header? |
---|
5051 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5052 | yes:no: ) |
---|
5053 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5054 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5056 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5057 | ac_header_preproc=yes |
---|
5058 | ;; |
---|
5059 | no:yes:* ) |
---|
5060 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5061 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5062 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5063 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5064 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5065 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5066 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5067 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5069 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5070 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5071 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5072 | ( |
---|
5073 | cat <<\_ASBOX |
---|
5074 | ## ---------------------------------------------- ## |
---|
5075 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5076 | ## ---------------------------------------------- ## |
---|
5077 | _ASBOX |
---|
5078 | ) | |
---|
5079 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5080 | ;; |
---|
5081 | esac |
---|
5082 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5086 | else |
---|
5087 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5088 | fi |
---|
5089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5090 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5091 | |
---|
5092 | fi |
---|
5093 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5094 | cat >>confdefs.h <<_ACEOF |
---|
5095 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5096 | _ACEOF |
---|
5097 | |
---|
5098 | else |
---|
5099 | { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5 |
---|
5100 | echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;} |
---|
5101 | { (exit 1); exit 1; }; } |
---|
5102 | fi |
---|
5103 | |
---|
5104 | done |
---|
5105 | |
---|
5106 | # checking for Windows glew library |
---|
5107 | echo "$as_me:$LINENO: checking for main in -lglew32" >&5 |
---|
5108 | echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6 |
---|
5109 | if test "${ac_cv_lib_glew32_main+set}" = set; then |
---|
5110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5111 | else |
---|
5112 | ac_check_lib_save_LIBS=$LIBS |
---|
5113 | LIBS="-lglew32 $LIBS" |
---|
5114 | cat >conftest.$ac_ext <<_ACEOF |
---|
5115 | /* confdefs.h. */ |
---|
5116 | _ACEOF |
---|
5117 | cat confdefs.h >>conftest.$ac_ext |
---|
5118 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5119 | /* end confdefs.h. */ |
---|
5120 | |
---|
5121 | |
---|
5122 | int |
---|
5123 | main () |
---|
5124 | { |
---|
5125 | main (); |
---|
5126 | ; |
---|
5127 | return 0; |
---|
5128 | } |
---|
5129 | _ACEOF |
---|
5130 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5132 | (eval $ac_link) 2>conftest.er1 |
---|
5133 | ac_status=$? |
---|
5134 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5135 | rm -f conftest.er1 |
---|
5136 | cat conftest.err >&5 |
---|
5137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5138 | (exit $ac_status); } && |
---|
5139 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5140 | || test ! -s conftest.err' |
---|
5141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5142 | (eval $ac_try) 2>&5 |
---|
5143 | ac_status=$? |
---|
5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5145 | (exit $ac_status); }; } && |
---|
5146 | { ac_try='test -s conftest$ac_exeext' |
---|
5147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5148 | (eval $ac_try) 2>&5 |
---|
5149 | ac_status=$? |
---|
5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5151 | (exit $ac_status); }; }; then |
---|
5152 | ac_cv_lib_glew32_main=yes |
---|
5153 | else |
---|
5154 | echo "$as_me: failed program was:" >&5 |
---|
5155 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5156 | |
---|
5157 | ac_cv_lib_glew32_main=no |
---|
5158 | fi |
---|
5159 | rm -f conftest.err conftest.$ac_objext \ |
---|
5160 | conftest$ac_exeext conftest.$ac_ext |
---|
5161 | LIBS=$ac_check_lib_save_LIBS |
---|
5162 | fi |
---|
5163 | echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5 |
---|
5164 | echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6 |
---|
5165 | if test $ac_cv_lib_glew32_main = yes; then |
---|
5166 | FOUND_GLEW=yes; LIBS="$LIBS -lglew32" |
---|
5167 | fi |
---|
5168 | |
---|
5169 | if test x$FOUND_GLEW != xyes ; then |
---|
5170 | echo "------------------" |
---|
5171 | echo "opengl extension wrangler not found." |
---|
5172 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
5173 | echo "------------------" |
---|
5174 | exit -1 |
---|
5175 | fi |
---|
5176 | |
---|
5177 | #--------# |
---|
5178 | # openAL # |
---|
5179 | #--------# |
---|
5180 | # checking for openAL-headers |
---|
5181 | |
---|
5182 | for ac_header in AL/al.h |
---|
5183 | do |
---|
5184 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5185 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5186 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5188 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5190 | fi |
---|
5191 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5192 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5193 | else |
---|
5194 | # Is the header compilable? |
---|
5195 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5196 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5197 | cat >conftest.$ac_ext <<_ACEOF |
---|
5198 | /* confdefs.h. */ |
---|
5199 | _ACEOF |
---|
5200 | cat confdefs.h >>conftest.$ac_ext |
---|
5201 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5202 | /* end confdefs.h. */ |
---|
5203 | $ac_includes_default |
---|
5204 | #include <$ac_header> |
---|
5205 | _ACEOF |
---|
5206 | rm -f conftest.$ac_objext |
---|
5207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5208 | (eval $ac_compile) 2>conftest.er1 |
---|
5209 | ac_status=$? |
---|
5210 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5211 | rm -f conftest.er1 |
---|
5212 | cat conftest.err >&5 |
---|
5213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5214 | (exit $ac_status); } && |
---|
5215 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5216 | || test ! -s conftest.err' |
---|
5217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5218 | (eval $ac_try) 2>&5 |
---|
5219 | ac_status=$? |
---|
5220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5221 | (exit $ac_status); }; } && |
---|
5222 | { ac_try='test -s conftest.$ac_objext' |
---|
5223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5224 | (eval $ac_try) 2>&5 |
---|
5225 | ac_status=$? |
---|
5226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5227 | (exit $ac_status); }; }; then |
---|
5228 | ac_header_compiler=yes |
---|
5229 | else |
---|
5230 | echo "$as_me: failed program was:" >&5 |
---|
5231 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5232 | |
---|
5233 | ac_header_compiler=no |
---|
5234 | fi |
---|
5235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5236 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5237 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5238 | |
---|
5239 | # Is the header present? |
---|
5240 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5241 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5242 | cat >conftest.$ac_ext <<_ACEOF |
---|
5243 | /* confdefs.h. */ |
---|
5244 | _ACEOF |
---|
5245 | cat confdefs.h >>conftest.$ac_ext |
---|
5246 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5247 | /* end confdefs.h. */ |
---|
5248 | #include <$ac_header> |
---|
5249 | _ACEOF |
---|
5250 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5251 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5252 | ac_status=$? |
---|
5253 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5254 | rm -f conftest.er1 |
---|
5255 | cat conftest.err >&5 |
---|
5256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5257 | (exit $ac_status); } >/dev/null; then |
---|
5258 | if test -s conftest.err; then |
---|
5259 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5260 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5261 | else |
---|
5262 | ac_cpp_err= |
---|
5263 | fi |
---|
5264 | else |
---|
5265 | ac_cpp_err=yes |
---|
5266 | fi |
---|
5267 | if test -z "$ac_cpp_err"; then |
---|
5268 | ac_header_preproc=yes |
---|
5269 | else |
---|
5270 | echo "$as_me: failed program was:" >&5 |
---|
5271 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5272 | |
---|
5273 | ac_header_preproc=no |
---|
5274 | fi |
---|
5275 | rm -f conftest.err conftest.$ac_ext |
---|
5276 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5277 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5278 | |
---|
5279 | # So? What about this header? |
---|
5280 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5281 | yes:no: ) |
---|
5282 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5283 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5284 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5285 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5286 | ac_header_preproc=yes |
---|
5287 | ;; |
---|
5288 | no:yes:* ) |
---|
5289 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5290 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5291 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5292 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5293 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5294 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5295 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5296 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5297 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5298 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5299 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5300 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5301 | ( |
---|
5302 | cat <<\_ASBOX |
---|
5303 | ## ---------------------------------------------- ## |
---|
5304 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5305 | ## ---------------------------------------------- ## |
---|
5306 | _ASBOX |
---|
5307 | ) | |
---|
5308 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5309 | ;; |
---|
5310 | esac |
---|
5311 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5312 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5313 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5315 | else |
---|
5316 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5317 | fi |
---|
5318 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5319 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5320 | |
---|
5321 | fi |
---|
5322 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5323 | cat >>confdefs.h <<_ACEOF |
---|
5324 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5325 | _ACEOF |
---|
5326 | |
---|
5327 | else |
---|
5328 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
5329 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
5330 | { (exit 1); exit 1; }; } |
---|
5331 | fi |
---|
5332 | |
---|
5333 | done |
---|
5334 | |
---|
5335 | # checking for openAL-lib |
---|
5336 | echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 |
---|
5337 | echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 |
---|
5338 | if test "${ac_cv_lib_OpenAL32_main+set}" = set; then |
---|
5339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5340 | else |
---|
5341 | ac_check_lib_save_LIBS=$LIBS |
---|
5342 | LIBS="-lOpenAL32 $LIBS" |
---|
5343 | cat >conftest.$ac_ext <<_ACEOF |
---|
5344 | /* confdefs.h. */ |
---|
5345 | _ACEOF |
---|
5346 | cat confdefs.h >>conftest.$ac_ext |
---|
5347 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5348 | /* end confdefs.h. */ |
---|
5349 | |
---|
5350 | |
---|
5351 | int |
---|
5352 | main () |
---|
5353 | { |
---|
5354 | main (); |
---|
5355 | ; |
---|
5356 | return 0; |
---|
5357 | } |
---|
5358 | _ACEOF |
---|
5359 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5361 | (eval $ac_link) 2>conftest.er1 |
---|
5362 | ac_status=$? |
---|
5363 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5364 | rm -f conftest.er1 |
---|
5365 | cat conftest.err >&5 |
---|
5366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5367 | (exit $ac_status); } && |
---|
5368 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5369 | || test ! -s conftest.err' |
---|
5370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5371 | (eval $ac_try) 2>&5 |
---|
5372 | ac_status=$? |
---|
5373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5374 | (exit $ac_status); }; } && |
---|
5375 | { ac_try='test -s conftest$ac_exeext' |
---|
5376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5377 | (eval $ac_try) 2>&5 |
---|
5378 | ac_status=$? |
---|
5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5380 | (exit $ac_status); }; }; then |
---|
5381 | ac_cv_lib_OpenAL32_main=yes |
---|
5382 | else |
---|
5383 | echo "$as_me: failed program was:" >&5 |
---|
5384 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5385 | |
---|
5386 | ac_cv_lib_OpenAL32_main=no |
---|
5387 | fi |
---|
5388 | rm -f conftest.err conftest.$ac_objext \ |
---|
5389 | conftest$ac_exeext conftest.$ac_ext |
---|
5390 | LIBS=$ac_check_lib_save_LIBS |
---|
5391 | fi |
---|
5392 | echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 |
---|
5393 | echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 |
---|
5394 | if test $ac_cv_lib_OpenAL32_main = yes; then |
---|
5395 | FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32" |
---|
5396 | fi |
---|
5397 | |
---|
5398 | echo "$as_me:$LINENO: checking for main in -lALut" >&5 |
---|
5399 | echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 |
---|
5400 | if test "${ac_cv_lib_ALut_main+set}" = set; then |
---|
5401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5402 | else |
---|
5403 | ac_check_lib_save_LIBS=$LIBS |
---|
5404 | LIBS="-lALut $LIBS" |
---|
5405 | cat >conftest.$ac_ext <<_ACEOF |
---|
5406 | /* confdefs.h. */ |
---|
5407 | _ACEOF |
---|
5408 | cat confdefs.h >>conftest.$ac_ext |
---|
5409 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5410 | /* end confdefs.h. */ |
---|
5411 | |
---|
5412 | |
---|
5413 | int |
---|
5414 | main () |
---|
5415 | { |
---|
5416 | main (); |
---|
5417 | ; |
---|
5418 | return 0; |
---|
5419 | } |
---|
5420 | _ACEOF |
---|
5421 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5423 | (eval $ac_link) 2>conftest.er1 |
---|
5424 | ac_status=$? |
---|
5425 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5426 | rm -f conftest.er1 |
---|
5427 | cat conftest.err >&5 |
---|
5428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5429 | (exit $ac_status); } && |
---|
5430 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5431 | || test ! -s conftest.err' |
---|
5432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5433 | (eval $ac_try) 2>&5 |
---|
5434 | ac_status=$? |
---|
5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5436 | (exit $ac_status); }; } && |
---|
5437 | { ac_try='test -s conftest$ac_exeext' |
---|
5438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5439 | (eval $ac_try) 2>&5 |
---|
5440 | ac_status=$? |
---|
5441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5442 | (exit $ac_status); }; }; then |
---|
5443 | ac_cv_lib_ALut_main=yes |
---|
5444 | else |
---|
5445 | echo "$as_me: failed program was:" >&5 |
---|
5446 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5447 | |
---|
5448 | ac_cv_lib_ALut_main=no |
---|
5449 | fi |
---|
5450 | rm -f conftest.err conftest.$ac_objext \ |
---|
5451 | conftest$ac_exeext conftest.$ac_ext |
---|
5452 | LIBS=$ac_check_lib_save_LIBS |
---|
5453 | fi |
---|
5454 | echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5 |
---|
5455 | echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6 |
---|
5456 | if test $ac_cv_lib_ALut_main = yes; then |
---|
5457 | FOUND_ALUT=yes; LIBS="-lALut $LIBS" |
---|
5458 | fi |
---|
5459 | |
---|
5460 | if test x$FOUND_OPENAL != xyes ; then |
---|
5461 | echo "------------------" |
---|
5462 | echo "openal library not found." |
---|
5463 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
5464 | echo "------------------" |
---|
5465 | exit -1 |
---|
5466 | fi |
---|
5467 | |
---|
5468 | |
---|
5469 | #-----------# |
---|
5470 | # SDL(win) # |
---|
5471 | #-----------# |
---|
5472 | # checking for SDL-headers |
---|
5473 | |
---|
5474 | for ac_header in SDL/SDL.h |
---|
5475 | do |
---|
5476 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5477 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5478 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5480 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5482 | fi |
---|
5483 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5484 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5485 | else |
---|
5486 | # Is the header compilable? |
---|
5487 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5488 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5489 | cat >conftest.$ac_ext <<_ACEOF |
---|
5490 | /* confdefs.h. */ |
---|
5491 | _ACEOF |
---|
5492 | cat confdefs.h >>conftest.$ac_ext |
---|
5493 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5494 | /* end confdefs.h. */ |
---|
5495 | $ac_includes_default |
---|
5496 | #include <$ac_header> |
---|
5497 | _ACEOF |
---|
5498 | rm -f conftest.$ac_objext |
---|
5499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5500 | (eval $ac_compile) 2>conftest.er1 |
---|
5501 | ac_status=$? |
---|
5502 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5503 | rm -f conftest.er1 |
---|
5504 | cat conftest.err >&5 |
---|
5505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5506 | (exit $ac_status); } && |
---|
5507 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5508 | || test ! -s conftest.err' |
---|
5509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5510 | (eval $ac_try) 2>&5 |
---|
5511 | ac_status=$? |
---|
5512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5513 | (exit $ac_status); }; } && |
---|
5514 | { ac_try='test -s conftest.$ac_objext' |
---|
5515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5516 | (eval $ac_try) 2>&5 |
---|
5517 | ac_status=$? |
---|
5518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5519 | (exit $ac_status); }; }; then |
---|
5520 | ac_header_compiler=yes |
---|
5521 | else |
---|
5522 | echo "$as_me: failed program was:" >&5 |
---|
5523 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5524 | |
---|
5525 | ac_header_compiler=no |
---|
5526 | fi |
---|
5527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5528 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5529 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5530 | |
---|
5531 | # Is the header present? |
---|
5532 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5533 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5534 | cat >conftest.$ac_ext <<_ACEOF |
---|
5535 | /* confdefs.h. */ |
---|
5536 | _ACEOF |
---|
5537 | cat confdefs.h >>conftest.$ac_ext |
---|
5538 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5539 | /* end confdefs.h. */ |
---|
5540 | #include <$ac_header> |
---|
5541 | _ACEOF |
---|
5542 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5543 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5544 | ac_status=$? |
---|
5545 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5546 | rm -f conftest.er1 |
---|
5547 | cat conftest.err >&5 |
---|
5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5549 | (exit $ac_status); } >/dev/null; then |
---|
5550 | if test -s conftest.err; then |
---|
5551 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5552 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5553 | else |
---|
5554 | ac_cpp_err= |
---|
5555 | fi |
---|
5556 | else |
---|
5557 | ac_cpp_err=yes |
---|
5558 | fi |
---|
5559 | if test -z "$ac_cpp_err"; then |
---|
5560 | ac_header_preproc=yes |
---|
5561 | else |
---|
5562 | echo "$as_me: failed program was:" >&5 |
---|
5563 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5564 | |
---|
5565 | ac_header_preproc=no |
---|
5566 | fi |
---|
5567 | rm -f conftest.err conftest.$ac_ext |
---|
5568 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5569 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5570 | |
---|
5571 | # So? What about this header? |
---|
5572 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5573 | yes:no: ) |
---|
5574 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5575 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5576 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5577 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5578 | ac_header_preproc=yes |
---|
5579 | ;; |
---|
5580 | no:yes:* ) |
---|
5581 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5582 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5583 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5584 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5585 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5586 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5587 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5588 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5589 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5590 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5591 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5592 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5593 | ( |
---|
5594 | cat <<\_ASBOX |
---|
5595 | ## ---------------------------------------------- ## |
---|
5596 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5597 | ## ---------------------------------------------- ## |
---|
5598 | _ASBOX |
---|
5599 | ) | |
---|
5600 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5601 | ;; |
---|
5602 | esac |
---|
5603 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5604 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5605 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5607 | else |
---|
5608 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5609 | fi |
---|
5610 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5611 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5612 | |
---|
5613 | fi |
---|
5614 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5615 | cat >>confdefs.h <<_ACEOF |
---|
5616 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5617 | _ACEOF |
---|
5618 | |
---|
5619 | else |
---|
5620 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
5621 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
5622 | { (exit 1); exit 1; }; } |
---|
5623 | fi |
---|
5624 | |
---|
5625 | done |
---|
5626 | |
---|
5627 | |
---|
5628 | #checking for libSDL |
---|
5629 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
5630 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
5631 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
5632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5633 | else |
---|
5634 | ac_check_lib_save_LIBS=$LIBS |
---|
5635 | LIBS="-lsdlmain $LIBS" |
---|
5636 | cat >conftest.$ac_ext <<_ACEOF |
---|
5637 | /* confdefs.h. */ |
---|
5638 | _ACEOF |
---|
5639 | cat confdefs.h >>conftest.$ac_ext |
---|
5640 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5641 | /* end confdefs.h. */ |
---|
5642 | |
---|
5643 | |
---|
5644 | int |
---|
5645 | main () |
---|
5646 | { |
---|
5647 | main (); |
---|
5648 | ; |
---|
5649 | return 0; |
---|
5650 | } |
---|
5651 | _ACEOF |
---|
5652 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5654 | (eval $ac_link) 2>conftest.er1 |
---|
5655 | ac_status=$? |
---|
5656 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5657 | rm -f conftest.er1 |
---|
5658 | cat conftest.err >&5 |
---|
5659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5660 | (exit $ac_status); } && |
---|
5661 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5662 | || test ! -s conftest.err' |
---|
5663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5664 | (eval $ac_try) 2>&5 |
---|
5665 | ac_status=$? |
---|
5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5667 | (exit $ac_status); }; } && |
---|
5668 | { ac_try='test -s conftest$ac_exeext' |
---|
5669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5670 | (eval $ac_try) 2>&5 |
---|
5671 | ac_status=$? |
---|
5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5673 | (exit $ac_status); }; }; then |
---|
5674 | ac_cv_lib_sdlmain_main=yes |
---|
5675 | else |
---|
5676 | echo "$as_me: failed program was:" >&5 |
---|
5677 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5678 | |
---|
5679 | ac_cv_lib_sdlmain_main=no |
---|
5680 | fi |
---|
5681 | rm -f conftest.err conftest.$ac_objext \ |
---|
5682 | conftest$ac_exeext conftest.$ac_ext |
---|
5683 | LIBS=$ac_check_lib_save_LIBS |
---|
5684 | fi |
---|
5685 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
5686 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
5687 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
5688 | FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain" |
---|
5689 | fi |
---|
5690 | |
---|
5691 | if test x$FOUND_sdlmain != xyes ; then |
---|
5692 | echo "------------------" |
---|
5693 | echo "SDL library not found." |
---|
5694 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5695 | echo "------------------" |
---|
5696 | exit 1 |
---|
5697 | fi |
---|
5698 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
5699 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
5700 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
5701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5702 | else |
---|
5703 | ac_check_lib_save_LIBS=$LIBS |
---|
5704 | LIBS="-lsdl $LIBS" |
---|
5705 | cat >conftest.$ac_ext <<_ACEOF |
---|
5706 | /* confdefs.h. */ |
---|
5707 | _ACEOF |
---|
5708 | cat confdefs.h >>conftest.$ac_ext |
---|
5709 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5710 | /* end confdefs.h. */ |
---|
5711 | |
---|
5712 | |
---|
5713 | int |
---|
5714 | main () |
---|
5715 | { |
---|
5716 | main (); |
---|
5717 | ; |
---|
5718 | return 0; |
---|
5719 | } |
---|
5720 | _ACEOF |
---|
5721 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5723 | (eval $ac_link) 2>conftest.er1 |
---|
5724 | ac_status=$? |
---|
5725 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5726 | rm -f conftest.er1 |
---|
5727 | cat conftest.err >&5 |
---|
5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5729 | (exit $ac_status); } && |
---|
5730 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5731 | || test ! -s conftest.err' |
---|
5732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5733 | (eval $ac_try) 2>&5 |
---|
5734 | ac_status=$? |
---|
5735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5736 | (exit $ac_status); }; } && |
---|
5737 | { ac_try='test -s conftest$ac_exeext' |
---|
5738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5739 | (eval $ac_try) 2>&5 |
---|
5740 | ac_status=$? |
---|
5741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5742 | (exit $ac_status); }; }; then |
---|
5743 | ac_cv_lib_sdl_main=yes |
---|
5744 | else |
---|
5745 | echo "$as_me: failed program was:" >&5 |
---|
5746 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5747 | |
---|
5748 | ac_cv_lib_sdl_main=no |
---|
5749 | fi |
---|
5750 | rm -f conftest.err conftest.$ac_objext \ |
---|
5751 | conftest$ac_exeext conftest.$ac_ext |
---|
5752 | LIBS=$ac_check_lib_save_LIBS |
---|
5753 | fi |
---|
5754 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
5755 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
5756 | if test $ac_cv_lib_sdl_main = yes; then |
---|
5757 | FOUND_SDL=yes; LIBS="$LIBS -lsdl" |
---|
5758 | fi |
---|
5759 | |
---|
5760 | if test x$FOUND_SDL != xyes ; then |
---|
5761 | echo "------------------" |
---|
5762 | echo "SDL library not found." |
---|
5763 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5764 | echo "------------------" |
---|
5765 | exit -1 |
---|
5766 | fi |
---|
5767 | |
---|
5768 | ;; |
---|
5769 | |
---|
5770 | ######### |
---|
5771 | #-------# |
---|
5772 | # LINUX # |
---|
5773 | #-------# |
---|
5774 | ######### |
---|
5775 | *-*-linux*) |
---|
5776 | echo "Linux detected" |
---|
5777 | |
---|
5778 | Linux="yes" |
---|
5779 | |
---|
5780 | ##CPPFLAGS="-I/usr/include $CPPFLAGS" |
---|
5781 | ##LDFLAGS="-L/usr/lib $LDFLAGS" |
---|
5782 | if test x$SHARED_LIB_PATH != xno; then |
---|
5783 | echo "setting new LDFLAGS with $SHARED_LIB_PATH" |
---|
5784 | LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS" |
---|
5785 | fi |
---|
5786 | |
---|
5787 | #--------# |
---|
5788 | # openGL # |
---|
5789 | #--------# |
---|
5790 | # checking gl header |
---|
5791 | |
---|
5792 | for ac_header in GL/gl.h |
---|
5793 | do |
---|
5794 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5795 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5796 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5797 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5798 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5800 | fi |
---|
5801 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5802 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5803 | else |
---|
5804 | # Is the header compilable? |
---|
5805 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5806 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5807 | cat >conftest.$ac_ext <<_ACEOF |
---|
5808 | /* confdefs.h. */ |
---|
5809 | _ACEOF |
---|
5810 | cat confdefs.h >>conftest.$ac_ext |
---|
5811 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5812 | /* end confdefs.h. */ |
---|
5813 | $ac_includes_default |
---|
5814 | #include <$ac_header> |
---|
5815 | _ACEOF |
---|
5816 | rm -f conftest.$ac_objext |
---|
5817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5818 | (eval $ac_compile) 2>conftest.er1 |
---|
5819 | ac_status=$? |
---|
5820 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5821 | rm -f conftest.er1 |
---|
5822 | cat conftest.err >&5 |
---|
5823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5824 | (exit $ac_status); } && |
---|
5825 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5826 | || test ! -s conftest.err' |
---|
5827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5828 | (eval $ac_try) 2>&5 |
---|
5829 | ac_status=$? |
---|
5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5831 | (exit $ac_status); }; } && |
---|
5832 | { ac_try='test -s conftest.$ac_objext' |
---|
5833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5834 | (eval $ac_try) 2>&5 |
---|
5835 | ac_status=$? |
---|
5836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5837 | (exit $ac_status); }; }; then |
---|
5838 | ac_header_compiler=yes |
---|
5839 | else |
---|
5840 | echo "$as_me: failed program was:" >&5 |
---|
5841 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5842 | |
---|
5843 | ac_header_compiler=no |
---|
5844 | fi |
---|
5845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5846 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5847 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5848 | |
---|
5849 | # Is the header present? |
---|
5850 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5851 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5852 | cat >conftest.$ac_ext <<_ACEOF |
---|
5853 | /* confdefs.h. */ |
---|
5854 | _ACEOF |
---|
5855 | cat confdefs.h >>conftest.$ac_ext |
---|
5856 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5857 | /* end confdefs.h. */ |
---|
5858 | #include <$ac_header> |
---|
5859 | _ACEOF |
---|
5860 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5861 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5862 | ac_status=$? |
---|
5863 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5864 | rm -f conftest.er1 |
---|
5865 | cat conftest.err >&5 |
---|
5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5867 | (exit $ac_status); } >/dev/null; then |
---|
5868 | if test -s conftest.err; then |
---|
5869 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5870 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5871 | else |
---|
5872 | ac_cpp_err= |
---|
5873 | fi |
---|
5874 | else |
---|
5875 | ac_cpp_err=yes |
---|
5876 | fi |
---|
5877 | if test -z "$ac_cpp_err"; then |
---|
5878 | ac_header_preproc=yes |
---|
5879 | else |
---|
5880 | echo "$as_me: failed program was:" >&5 |
---|
5881 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5882 | |
---|
5883 | ac_header_preproc=no |
---|
5884 | fi |
---|
5885 | rm -f conftest.err conftest.$ac_ext |
---|
5886 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5887 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5888 | |
---|
5889 | # So? What about this header? |
---|
5890 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5891 | yes:no: ) |
---|
5892 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5893 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5894 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5895 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5896 | ac_header_preproc=yes |
---|
5897 | ;; |
---|
5898 | no:yes:* ) |
---|
5899 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5900 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5901 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5902 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5903 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5904 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5905 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5906 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5907 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5908 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5909 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5910 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5911 | ( |
---|
5912 | cat <<\_ASBOX |
---|
5913 | ## ---------------------------------------------- ## |
---|
5914 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5915 | ## ---------------------------------------------- ## |
---|
5916 | _ASBOX |
---|
5917 | ) | |
---|
5918 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5919 | ;; |
---|
5920 | esac |
---|
5921 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5925 | else |
---|
5926 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5927 | fi |
---|
5928 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5929 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5930 | |
---|
5931 | fi |
---|
5932 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5933 | cat >>confdefs.h <<_ACEOF |
---|
5934 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5935 | _ACEOF |
---|
5936 | |
---|
5937 | else |
---|
5938 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5939 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5940 | { (exit 1); exit 1; }; } |
---|
5941 | fi |
---|
5942 | |
---|
5943 | done |
---|
5944 | |
---|
5945 | |
---|
5946 | # checking for Unix GL |
---|
5947 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
5948 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
5949 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
5950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5951 | else |
---|
5952 | ac_check_lib_save_LIBS=$LIBS |
---|
5953 | LIBS="-lGL $LIBS" |
---|
5954 | cat >conftest.$ac_ext <<_ACEOF |
---|
5955 | /* confdefs.h. */ |
---|
5956 | _ACEOF |
---|
5957 | cat confdefs.h >>conftest.$ac_ext |
---|
5958 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5959 | /* end confdefs.h. */ |
---|
5960 | |
---|
5961 | |
---|
5962 | int |
---|
5963 | main () |
---|
5964 | { |
---|
5965 | main (); |
---|
5966 | ; |
---|
5967 | return 0; |
---|
5968 | } |
---|
5969 | _ACEOF |
---|
5970 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5972 | (eval $ac_link) 2>conftest.er1 |
---|
5973 | ac_status=$? |
---|
5974 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5975 | rm -f conftest.er1 |
---|
5976 | cat conftest.err >&5 |
---|
5977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5978 | (exit $ac_status); } && |
---|
5979 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5980 | || test ! -s conftest.err' |
---|
5981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5982 | (eval $ac_try) 2>&5 |
---|
5983 | ac_status=$? |
---|
5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5985 | (exit $ac_status); }; } && |
---|
5986 | { ac_try='test -s conftest$ac_exeext' |
---|
5987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5988 | (eval $ac_try) 2>&5 |
---|
5989 | ac_status=$? |
---|
5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5991 | (exit $ac_status); }; }; then |
---|
5992 | ac_cv_lib_GL_main=yes |
---|
5993 | else |
---|
5994 | echo "$as_me: failed program was:" >&5 |
---|
5995 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5996 | |
---|
5997 | ac_cv_lib_GL_main=no |
---|
5998 | fi |
---|
5999 | rm -f conftest.err conftest.$ac_objext \ |
---|
6000 | conftest$ac_exeext conftest.$ac_ext |
---|
6001 | LIBS=$ac_check_lib_save_LIBS |
---|
6002 | fi |
---|
6003 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
6004 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
6005 | if test $ac_cv_lib_GL_main = yes; then |
---|
6006 | FOUND_GL=yes; LIBS="$LIBS -lGL" |
---|
6007 | fi |
---|
6008 | |
---|
6009 | if test x$FOUND_GL != xyes ; then |
---|
6010 | echo "------------------" |
---|
6011 | echo "opengl not found." |
---|
6012 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
6013 | echo "------------------" |
---|
6014 | exit -1 |
---|
6015 | fi |
---|
6016 | |
---|
6017 | # cheking for GLU-header |
---|
6018 | |
---|
6019 | for ac_header in GL/glu.h |
---|
6020 | do |
---|
6021 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6022 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6027 | fi |
---|
6028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6030 | else |
---|
6031 | # Is the header compilable? |
---|
6032 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6033 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6034 | cat >conftest.$ac_ext <<_ACEOF |
---|
6035 | /* confdefs.h. */ |
---|
6036 | _ACEOF |
---|
6037 | cat confdefs.h >>conftest.$ac_ext |
---|
6038 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6039 | /* end confdefs.h. */ |
---|
6040 | $ac_includes_default |
---|
6041 | #include <$ac_header> |
---|
6042 | _ACEOF |
---|
6043 | rm -f conftest.$ac_objext |
---|
6044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6045 | (eval $ac_compile) 2>conftest.er1 |
---|
6046 | ac_status=$? |
---|
6047 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6048 | rm -f conftest.er1 |
---|
6049 | cat conftest.err >&5 |
---|
6050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6051 | (exit $ac_status); } && |
---|
6052 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6053 | || test ! -s conftest.err' |
---|
6054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6055 | (eval $ac_try) 2>&5 |
---|
6056 | ac_status=$? |
---|
6057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6058 | (exit $ac_status); }; } && |
---|
6059 | { ac_try='test -s conftest.$ac_objext' |
---|
6060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6061 | (eval $ac_try) 2>&5 |
---|
6062 | ac_status=$? |
---|
6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6064 | (exit $ac_status); }; }; then |
---|
6065 | ac_header_compiler=yes |
---|
6066 | else |
---|
6067 | echo "$as_me: failed program was:" >&5 |
---|
6068 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6069 | |
---|
6070 | ac_header_compiler=no |
---|
6071 | fi |
---|
6072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6073 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6074 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6075 | |
---|
6076 | # Is the header present? |
---|
6077 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6078 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6079 | cat >conftest.$ac_ext <<_ACEOF |
---|
6080 | /* confdefs.h. */ |
---|
6081 | _ACEOF |
---|
6082 | cat confdefs.h >>conftest.$ac_ext |
---|
6083 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6084 | /* end confdefs.h. */ |
---|
6085 | #include <$ac_header> |
---|
6086 | _ACEOF |
---|
6087 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6088 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6089 | ac_status=$? |
---|
6090 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6091 | rm -f conftest.er1 |
---|
6092 | cat conftest.err >&5 |
---|
6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6094 | (exit $ac_status); } >/dev/null; then |
---|
6095 | if test -s conftest.err; then |
---|
6096 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6097 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6098 | else |
---|
6099 | ac_cpp_err= |
---|
6100 | fi |
---|
6101 | else |
---|
6102 | ac_cpp_err=yes |
---|
6103 | fi |
---|
6104 | if test -z "$ac_cpp_err"; then |
---|
6105 | ac_header_preproc=yes |
---|
6106 | else |
---|
6107 | echo "$as_me: failed program was:" >&5 |
---|
6108 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6109 | |
---|
6110 | ac_header_preproc=no |
---|
6111 | fi |
---|
6112 | rm -f conftest.err conftest.$ac_ext |
---|
6113 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6114 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6115 | |
---|
6116 | # So? What about this header? |
---|
6117 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6118 | yes:no: ) |
---|
6119 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6120 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6122 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6123 | ac_header_preproc=yes |
---|
6124 | ;; |
---|
6125 | no:yes:* ) |
---|
6126 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6127 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6128 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6129 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6130 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6131 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6132 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6133 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6135 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6136 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6137 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6138 | ( |
---|
6139 | cat <<\_ASBOX |
---|
6140 | ## ---------------------------------------------- ## |
---|
6141 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6142 | ## ---------------------------------------------- ## |
---|
6143 | _ASBOX |
---|
6144 | ) | |
---|
6145 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6146 | ;; |
---|
6147 | esac |
---|
6148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6152 | else |
---|
6153 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6154 | fi |
---|
6155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6156 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6157 | |
---|
6158 | fi |
---|
6159 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6160 | cat >>confdefs.h <<_ACEOF |
---|
6161 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6162 | _ACEOF |
---|
6163 | |
---|
6164 | else |
---|
6165 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6166 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6167 | { (exit 1); exit 1; }; } |
---|
6168 | fi |
---|
6169 | |
---|
6170 | done |
---|
6171 | |
---|
6172 | echo "$as_me:$LINENO: checking for main in -lGLU" >&5 |
---|
6173 | echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6 |
---|
6174 | if test "${ac_cv_lib_GLU_main+set}" = set; then |
---|
6175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6176 | else |
---|
6177 | ac_check_lib_save_LIBS=$LIBS |
---|
6178 | LIBS="-lGLU $LIBS" |
---|
6179 | cat >conftest.$ac_ext <<_ACEOF |
---|
6180 | /* confdefs.h. */ |
---|
6181 | _ACEOF |
---|
6182 | cat confdefs.h >>conftest.$ac_ext |
---|
6183 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6184 | /* end confdefs.h. */ |
---|
6185 | |
---|
6186 | |
---|
6187 | int |
---|
6188 | main () |
---|
6189 | { |
---|
6190 | main (); |
---|
6191 | ; |
---|
6192 | return 0; |
---|
6193 | } |
---|
6194 | _ACEOF |
---|
6195 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6197 | (eval $ac_link) 2>conftest.er1 |
---|
6198 | ac_status=$? |
---|
6199 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6200 | rm -f conftest.er1 |
---|
6201 | cat conftest.err >&5 |
---|
6202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6203 | (exit $ac_status); } && |
---|
6204 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6205 | || test ! -s conftest.err' |
---|
6206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6207 | (eval $ac_try) 2>&5 |
---|
6208 | ac_status=$? |
---|
6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6210 | (exit $ac_status); }; } && |
---|
6211 | { ac_try='test -s conftest$ac_exeext' |
---|
6212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6213 | (eval $ac_try) 2>&5 |
---|
6214 | ac_status=$? |
---|
6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6216 | (exit $ac_status); }; }; then |
---|
6217 | ac_cv_lib_GLU_main=yes |
---|
6218 | else |
---|
6219 | echo "$as_me: failed program was:" >&5 |
---|
6220 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6221 | |
---|
6222 | ac_cv_lib_GLU_main=no |
---|
6223 | fi |
---|
6224 | rm -f conftest.err conftest.$ac_objext \ |
---|
6225 | conftest$ac_exeext conftest.$ac_ext |
---|
6226 | LIBS=$ac_check_lib_save_LIBS |
---|
6227 | fi |
---|
6228 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5 |
---|
6229 | echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6 |
---|
6230 | if test $ac_cv_lib_GLU_main = yes; then |
---|
6231 | FOUND_GLU=yes; LIBS="$LIBS -lGLU" |
---|
6232 | fi |
---|
6233 | |
---|
6234 | if test x$FOUND_GLU != xyes ; then |
---|
6235 | echo "------------------" |
---|
6236 | echo "GLU library not found." |
---|
6237 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
6238 | echo "------------------" |
---|
6239 | exit -1 |
---|
6240 | fi |
---|
6241 | |
---|
6242 | # checking for GLEW-headers |
---|
6243 | |
---|
6244 | for ac_header in GL/glew.h |
---|
6245 | do |
---|
6246 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6252 | fi |
---|
6253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6254 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6255 | else |
---|
6256 | # Is the header compilable? |
---|
6257 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6258 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6259 | cat >conftest.$ac_ext <<_ACEOF |
---|
6260 | /* confdefs.h. */ |
---|
6261 | _ACEOF |
---|
6262 | cat confdefs.h >>conftest.$ac_ext |
---|
6263 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6264 | /* end confdefs.h. */ |
---|
6265 | $ac_includes_default |
---|
6266 | #include <$ac_header> |
---|
6267 | _ACEOF |
---|
6268 | rm -f conftest.$ac_objext |
---|
6269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6270 | (eval $ac_compile) 2>conftest.er1 |
---|
6271 | ac_status=$? |
---|
6272 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6273 | rm -f conftest.er1 |
---|
6274 | cat conftest.err >&5 |
---|
6275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6276 | (exit $ac_status); } && |
---|
6277 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6278 | || test ! -s conftest.err' |
---|
6279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6280 | (eval $ac_try) 2>&5 |
---|
6281 | ac_status=$? |
---|
6282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6283 | (exit $ac_status); }; } && |
---|
6284 | { ac_try='test -s conftest.$ac_objext' |
---|
6285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6286 | (eval $ac_try) 2>&5 |
---|
6287 | ac_status=$? |
---|
6288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6289 | (exit $ac_status); }; }; then |
---|
6290 | ac_header_compiler=yes |
---|
6291 | else |
---|
6292 | echo "$as_me: failed program was:" >&5 |
---|
6293 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6294 | |
---|
6295 | ac_header_compiler=no |
---|
6296 | fi |
---|
6297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6298 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6299 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6300 | |
---|
6301 | # Is the header present? |
---|
6302 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6303 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6304 | cat >conftest.$ac_ext <<_ACEOF |
---|
6305 | /* confdefs.h. */ |
---|
6306 | _ACEOF |
---|
6307 | cat confdefs.h >>conftest.$ac_ext |
---|
6308 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6309 | /* end confdefs.h. */ |
---|
6310 | #include <$ac_header> |
---|
6311 | _ACEOF |
---|
6312 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6313 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6314 | ac_status=$? |
---|
6315 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6316 | rm -f conftest.er1 |
---|
6317 | cat conftest.err >&5 |
---|
6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6319 | (exit $ac_status); } >/dev/null; then |
---|
6320 | if test -s conftest.err; then |
---|
6321 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6322 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6323 | else |
---|
6324 | ac_cpp_err= |
---|
6325 | fi |
---|
6326 | else |
---|
6327 | ac_cpp_err=yes |
---|
6328 | fi |
---|
6329 | if test -z "$ac_cpp_err"; then |
---|
6330 | ac_header_preproc=yes |
---|
6331 | else |
---|
6332 | echo "$as_me: failed program was:" >&5 |
---|
6333 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6334 | |
---|
6335 | ac_header_preproc=no |
---|
6336 | fi |
---|
6337 | rm -f conftest.err conftest.$ac_ext |
---|
6338 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6339 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6340 | |
---|
6341 | # So? What about this header? |
---|
6342 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6343 | yes:no: ) |
---|
6344 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6345 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6346 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6347 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6348 | ac_header_preproc=yes |
---|
6349 | ;; |
---|
6350 | no:yes:* ) |
---|
6351 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6352 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6353 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6354 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6355 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6356 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6357 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6358 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6359 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6360 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6361 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6362 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6363 | ( |
---|
6364 | cat <<\_ASBOX |
---|
6365 | ## ---------------------------------------------- ## |
---|
6366 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6367 | ## ---------------------------------------------- ## |
---|
6368 | _ASBOX |
---|
6369 | ) | |
---|
6370 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6371 | ;; |
---|
6372 | esac |
---|
6373 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6377 | else |
---|
6378 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6379 | fi |
---|
6380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6381 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6382 | |
---|
6383 | fi |
---|
6384 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6385 | cat >>confdefs.h <<_ACEOF |
---|
6386 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6387 | _ACEOF |
---|
6388 | |
---|
6389 | else |
---|
6390 | { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 |
---|
6391 | echo "$as_me: error: cannot find glew headers" >&2;} |
---|
6392 | { (exit 1); exit 1; }; } |
---|
6393 | fi |
---|
6394 | |
---|
6395 | done |
---|
6396 | |
---|
6397 | # checking for GLEW-lib |
---|
6398 | echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 |
---|
6399 | echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 |
---|
6400 | if test "${ac_cv_lib_GLEW_main+set}" = set; then |
---|
6401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6402 | else |
---|
6403 | ac_check_lib_save_LIBS=$LIBS |
---|
6404 | LIBS="-lGLEW $LIBS" |
---|
6405 | cat >conftest.$ac_ext <<_ACEOF |
---|
6406 | /* confdefs.h. */ |
---|
6407 | _ACEOF |
---|
6408 | cat confdefs.h >>conftest.$ac_ext |
---|
6409 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6410 | /* end confdefs.h. */ |
---|
6411 | |
---|
6412 | |
---|
6413 | int |
---|
6414 | main () |
---|
6415 | { |
---|
6416 | main (); |
---|
6417 | ; |
---|
6418 | return 0; |
---|
6419 | } |
---|
6420 | _ACEOF |
---|
6421 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6423 | (eval $ac_link) 2>conftest.er1 |
---|
6424 | ac_status=$? |
---|
6425 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6426 | rm -f conftest.er1 |
---|
6427 | cat conftest.err >&5 |
---|
6428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6429 | (exit $ac_status); } && |
---|
6430 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6431 | || test ! -s conftest.err' |
---|
6432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6433 | (eval $ac_try) 2>&5 |
---|
6434 | ac_status=$? |
---|
6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6436 | (exit $ac_status); }; } && |
---|
6437 | { ac_try='test -s conftest$ac_exeext' |
---|
6438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6439 | (eval $ac_try) 2>&5 |
---|
6440 | ac_status=$? |
---|
6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6442 | (exit $ac_status); }; }; then |
---|
6443 | ac_cv_lib_GLEW_main=yes |
---|
6444 | else |
---|
6445 | echo "$as_me: failed program was:" >&5 |
---|
6446 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6447 | |
---|
6448 | ac_cv_lib_GLEW_main=no |
---|
6449 | fi |
---|
6450 | rm -f conftest.err conftest.$ac_objext \ |
---|
6451 | conftest$ac_exeext conftest.$ac_ext |
---|
6452 | LIBS=$ac_check_lib_save_LIBS |
---|
6453 | fi |
---|
6454 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 |
---|
6455 | echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 |
---|
6456 | if test $ac_cv_lib_GLEW_main = yes; then |
---|
6457 | FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" |
---|
6458 | fi |
---|
6459 | |
---|
6460 | if test x$FOUND_GLEW != xyes ; then |
---|
6461 | echo "------------------" |
---|
6462 | echo "glew not found." |
---|
6463 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
6464 | echo "------------------" |
---|
6465 | exit -1 |
---|
6466 | fi |
---|
6467 | |
---|
6468 | #--------# |
---|
6469 | # openAL # |
---|
6470 | #--------# |
---|
6471 | # checking for openAL-headers |
---|
6472 | |
---|
6473 | for ac_header in AL/al.h |
---|
6474 | do |
---|
6475 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6476 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6477 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6478 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6479 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6481 | fi |
---|
6482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6484 | else |
---|
6485 | # Is the header compilable? |
---|
6486 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6487 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6488 | cat >conftest.$ac_ext <<_ACEOF |
---|
6489 | /* confdefs.h. */ |
---|
6490 | _ACEOF |
---|
6491 | cat confdefs.h >>conftest.$ac_ext |
---|
6492 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6493 | /* end confdefs.h. */ |
---|
6494 | $ac_includes_default |
---|
6495 | #include <$ac_header> |
---|
6496 | _ACEOF |
---|
6497 | rm -f conftest.$ac_objext |
---|
6498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6499 | (eval $ac_compile) 2>conftest.er1 |
---|
6500 | ac_status=$? |
---|
6501 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6502 | rm -f conftest.er1 |
---|
6503 | cat conftest.err >&5 |
---|
6504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6505 | (exit $ac_status); } && |
---|
6506 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6507 | || test ! -s conftest.err' |
---|
6508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6509 | (eval $ac_try) 2>&5 |
---|
6510 | ac_status=$? |
---|
6511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6512 | (exit $ac_status); }; } && |
---|
6513 | { ac_try='test -s conftest.$ac_objext' |
---|
6514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6515 | (eval $ac_try) 2>&5 |
---|
6516 | ac_status=$? |
---|
6517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6518 | (exit $ac_status); }; }; then |
---|
6519 | ac_header_compiler=yes |
---|
6520 | else |
---|
6521 | echo "$as_me: failed program was:" >&5 |
---|
6522 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6523 | |
---|
6524 | ac_header_compiler=no |
---|
6525 | fi |
---|
6526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6527 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6528 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6529 | |
---|
6530 | # Is the header present? |
---|
6531 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6532 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6533 | cat >conftest.$ac_ext <<_ACEOF |
---|
6534 | /* confdefs.h. */ |
---|
6535 | _ACEOF |
---|
6536 | cat confdefs.h >>conftest.$ac_ext |
---|
6537 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6538 | /* end confdefs.h. */ |
---|
6539 | #include <$ac_header> |
---|
6540 | _ACEOF |
---|
6541 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6542 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6543 | ac_status=$? |
---|
6544 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6545 | rm -f conftest.er1 |
---|
6546 | cat conftest.err >&5 |
---|
6547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6548 | (exit $ac_status); } >/dev/null; then |
---|
6549 | if test -s conftest.err; then |
---|
6550 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6551 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6552 | else |
---|
6553 | ac_cpp_err= |
---|
6554 | fi |
---|
6555 | else |
---|
6556 | ac_cpp_err=yes |
---|
6557 | fi |
---|
6558 | if test -z "$ac_cpp_err"; then |
---|
6559 | ac_header_preproc=yes |
---|
6560 | else |
---|
6561 | echo "$as_me: failed program was:" >&5 |
---|
6562 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6563 | |
---|
6564 | ac_header_preproc=no |
---|
6565 | fi |
---|
6566 | rm -f conftest.err conftest.$ac_ext |
---|
6567 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6568 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6569 | |
---|
6570 | # So? What about this header? |
---|
6571 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6572 | yes:no: ) |
---|
6573 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6574 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6575 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6576 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6577 | ac_header_preproc=yes |
---|
6578 | ;; |
---|
6579 | no:yes:* ) |
---|
6580 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6581 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6582 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6583 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6584 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6585 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6586 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6587 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6588 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6589 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6590 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6591 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6592 | ( |
---|
6593 | cat <<\_ASBOX |
---|
6594 | ## ---------------------------------------------- ## |
---|
6595 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6596 | ## ---------------------------------------------- ## |
---|
6597 | _ASBOX |
---|
6598 | ) | |
---|
6599 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6600 | ;; |
---|
6601 | esac |
---|
6602 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6604 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6606 | else |
---|
6607 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6608 | fi |
---|
6609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6610 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6611 | |
---|
6612 | fi |
---|
6613 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6614 | cat >>confdefs.h <<_ACEOF |
---|
6615 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6616 | _ACEOF |
---|
6617 | |
---|
6618 | else |
---|
6619 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
6620 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
6621 | { (exit 1); exit 1; }; } |
---|
6622 | fi |
---|
6623 | |
---|
6624 | done |
---|
6625 | |
---|
6626 | # checking for openAL-lib |
---|
6627 | echo "$as_me:$LINENO: checking for main in -lopenal" >&5 |
---|
6628 | echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 |
---|
6629 | if test "${ac_cv_lib_openal_main+set}" = set; then |
---|
6630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6631 | else |
---|
6632 | ac_check_lib_save_LIBS=$LIBS |
---|
6633 | LIBS="-lopenal $LIBS" |
---|
6634 | cat >conftest.$ac_ext <<_ACEOF |
---|
6635 | /* confdefs.h. */ |
---|
6636 | _ACEOF |
---|
6637 | cat confdefs.h >>conftest.$ac_ext |
---|
6638 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6639 | /* end confdefs.h. */ |
---|
6640 | |
---|
6641 | |
---|
6642 | int |
---|
6643 | main () |
---|
6644 | { |
---|
6645 | main (); |
---|
6646 | ; |
---|
6647 | return 0; |
---|
6648 | } |
---|
6649 | _ACEOF |
---|
6650 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6652 | (eval $ac_link) 2>conftest.er1 |
---|
6653 | ac_status=$? |
---|
6654 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6655 | rm -f conftest.er1 |
---|
6656 | cat conftest.err >&5 |
---|
6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6658 | (exit $ac_status); } && |
---|
6659 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6660 | || test ! -s conftest.err' |
---|
6661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6662 | (eval $ac_try) 2>&5 |
---|
6663 | ac_status=$? |
---|
6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6665 | (exit $ac_status); }; } && |
---|
6666 | { ac_try='test -s conftest$ac_exeext' |
---|
6667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6668 | (eval $ac_try) 2>&5 |
---|
6669 | ac_status=$? |
---|
6670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6671 | (exit $ac_status); }; }; then |
---|
6672 | ac_cv_lib_openal_main=yes |
---|
6673 | else |
---|
6674 | echo "$as_me: failed program was:" >&5 |
---|
6675 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6676 | |
---|
6677 | ac_cv_lib_openal_main=no |
---|
6678 | fi |
---|
6679 | rm -f conftest.err conftest.$ac_objext \ |
---|
6680 | conftest$ac_exeext conftest.$ac_ext |
---|
6681 | LIBS=$ac_check_lib_save_LIBS |
---|
6682 | fi |
---|
6683 | echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 |
---|
6684 | echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 |
---|
6685 | if test $ac_cv_lib_openal_main = yes; then |
---|
6686 | FOUND_OPENAL=yes; LIBS="$LIBS -lopenal" |
---|
6687 | fi |
---|
6688 | |
---|
6689 | if test x$FOUND_OPENAL != xyes ; then |
---|
6690 | echo "------------------" |
---|
6691 | echo "openal library not found." |
---|
6692 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
6693 | echo "------------------" |
---|
6694 | exit -1 |
---|
6695 | fi |
---|
6696 | # checking for alut |
---|
6697 | |
---|
6698 | for ac_header in AL/alut.h |
---|
6699 | do |
---|
6700 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6701 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6702 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6703 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6704 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6706 | fi |
---|
6707 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6708 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6709 | else |
---|
6710 | # Is the header compilable? |
---|
6711 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6712 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6713 | cat >conftest.$ac_ext <<_ACEOF |
---|
6714 | /* confdefs.h. */ |
---|
6715 | _ACEOF |
---|
6716 | cat confdefs.h >>conftest.$ac_ext |
---|
6717 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6718 | /* end confdefs.h. */ |
---|
6719 | $ac_includes_default |
---|
6720 | #include <$ac_header> |
---|
6721 | _ACEOF |
---|
6722 | rm -f conftest.$ac_objext |
---|
6723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6724 | (eval $ac_compile) 2>conftest.er1 |
---|
6725 | ac_status=$? |
---|
6726 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6727 | rm -f conftest.er1 |
---|
6728 | cat conftest.err >&5 |
---|
6729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6730 | (exit $ac_status); } && |
---|
6731 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6732 | || test ! -s conftest.err' |
---|
6733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6734 | (eval $ac_try) 2>&5 |
---|
6735 | ac_status=$? |
---|
6736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6737 | (exit $ac_status); }; } && |
---|
6738 | { ac_try='test -s conftest.$ac_objext' |
---|
6739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6740 | (eval $ac_try) 2>&5 |
---|
6741 | ac_status=$? |
---|
6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6743 | (exit $ac_status); }; }; then |
---|
6744 | ac_header_compiler=yes |
---|
6745 | else |
---|
6746 | echo "$as_me: failed program was:" >&5 |
---|
6747 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6748 | |
---|
6749 | ac_header_compiler=no |
---|
6750 | fi |
---|
6751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6752 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6753 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6754 | |
---|
6755 | # Is the header present? |
---|
6756 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6757 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6758 | cat >conftest.$ac_ext <<_ACEOF |
---|
6759 | /* confdefs.h. */ |
---|
6760 | _ACEOF |
---|
6761 | cat confdefs.h >>conftest.$ac_ext |
---|
6762 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6763 | /* end confdefs.h. */ |
---|
6764 | #include <$ac_header> |
---|
6765 | _ACEOF |
---|
6766 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6767 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6768 | ac_status=$? |
---|
6769 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6770 | rm -f conftest.er1 |
---|
6771 | cat conftest.err >&5 |
---|
6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6773 | (exit $ac_status); } >/dev/null; then |
---|
6774 | if test -s conftest.err; then |
---|
6775 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6776 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6777 | else |
---|
6778 | ac_cpp_err= |
---|
6779 | fi |
---|
6780 | else |
---|
6781 | ac_cpp_err=yes |
---|
6782 | fi |
---|
6783 | if test -z "$ac_cpp_err"; then |
---|
6784 | ac_header_preproc=yes |
---|
6785 | else |
---|
6786 | echo "$as_me: failed program was:" >&5 |
---|
6787 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6788 | |
---|
6789 | ac_header_preproc=no |
---|
6790 | fi |
---|
6791 | rm -f conftest.err conftest.$ac_ext |
---|
6792 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6793 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6794 | |
---|
6795 | # So? What about this header? |
---|
6796 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6797 | yes:no: ) |
---|
6798 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6799 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6800 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6801 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6802 | ac_header_preproc=yes |
---|
6803 | ;; |
---|
6804 | no:yes:* ) |
---|
6805 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6806 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6807 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6808 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6809 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6810 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6811 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6812 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6813 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6814 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6815 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6816 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6817 | ( |
---|
6818 | cat <<\_ASBOX |
---|
6819 | ## ---------------------------------------------- ## |
---|
6820 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6821 | ## ---------------------------------------------- ## |
---|
6822 | _ASBOX |
---|
6823 | ) | |
---|
6824 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6825 | ;; |
---|
6826 | esac |
---|
6827 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6828 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6829 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6831 | else |
---|
6832 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6833 | fi |
---|
6834 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6835 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6836 | |
---|
6837 | fi |
---|
6838 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6839 | cat >>confdefs.h <<_ACEOF |
---|
6840 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6841 | _ACEOF |
---|
6842 | |
---|
6843 | else |
---|
6844 | { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5 |
---|
6845 | echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;} |
---|
6846 | { (exit 1); exit 1; }; } |
---|
6847 | fi |
---|
6848 | |
---|
6849 | done |
---|
6850 | |
---|
6851 | echo "$as_me:$LINENO: checking for main in -lalut" >&5 |
---|
6852 | echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6 |
---|
6853 | if test "${ac_cv_lib_alut_main+set}" = set; then |
---|
6854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6855 | else |
---|
6856 | ac_check_lib_save_LIBS=$LIBS |
---|
6857 | LIBS="-lalut $LIBS" |
---|
6858 | cat >conftest.$ac_ext <<_ACEOF |
---|
6859 | /* confdefs.h. */ |
---|
6860 | _ACEOF |
---|
6861 | cat confdefs.h >>conftest.$ac_ext |
---|
6862 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6863 | /* end confdefs.h. */ |
---|
6864 | |
---|
6865 | |
---|
6866 | int |
---|
6867 | main () |
---|
6868 | { |
---|
6869 | main (); |
---|
6870 | ; |
---|
6871 | return 0; |
---|
6872 | } |
---|
6873 | _ACEOF |
---|
6874 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6876 | (eval $ac_link) 2>conftest.er1 |
---|
6877 | ac_status=$? |
---|
6878 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6879 | rm -f conftest.er1 |
---|
6880 | cat conftest.err >&5 |
---|
6881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6882 | (exit $ac_status); } && |
---|
6883 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6884 | || test ! -s conftest.err' |
---|
6885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6886 | (eval $ac_try) 2>&5 |
---|
6887 | ac_status=$? |
---|
6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6889 | (exit $ac_status); }; } && |
---|
6890 | { ac_try='test -s conftest$ac_exeext' |
---|
6891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6892 | (eval $ac_try) 2>&5 |
---|
6893 | ac_status=$? |
---|
6894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6895 | (exit $ac_status); }; }; then |
---|
6896 | ac_cv_lib_alut_main=yes |
---|
6897 | else |
---|
6898 | echo "$as_me: failed program was:" >&5 |
---|
6899 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6900 | |
---|
6901 | ac_cv_lib_alut_main=no |
---|
6902 | fi |
---|
6903 | rm -f conftest.err conftest.$ac_objext \ |
---|
6904 | conftest$ac_exeext conftest.$ac_ext |
---|
6905 | LIBS=$ac_check_lib_save_LIBS |
---|
6906 | fi |
---|
6907 | echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5 |
---|
6908 | echo "${ECHO_T}$ac_cv_lib_alut_main" >&6 |
---|
6909 | if test $ac_cv_lib_alut_main = yes; then |
---|
6910 | FOUND_ALUT=yes; LIBS="-lalut $LIBS" |
---|
6911 | fi |
---|
6912 | |
---|
6913 | |
---|
6914 | #-----# |
---|
6915 | # SDL # |
---|
6916 | #-----# |
---|
6917 | # checking for SDL |
---|
6918 | echo "$as_me:$LINENO: checking for SDL-version" >&5 |
---|
6919 | echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 |
---|
6920 | SDL_VERSION=`sdl-config --version` |
---|
6921 | echo $SDL_VERSION |
---|
6922 | |
---|
6923 | CPPFLAGS="$CPPFLAGS `sdl-config --cflags`" |
---|
6924 | |
---|
6925 | for ac_header in SDL.h |
---|
6926 | do |
---|
6927 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6933 | fi |
---|
6934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6935 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6936 | else |
---|
6937 | # Is the header compilable? |
---|
6938 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6939 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6940 | cat >conftest.$ac_ext <<_ACEOF |
---|
6941 | /* confdefs.h. */ |
---|
6942 | _ACEOF |
---|
6943 | cat confdefs.h >>conftest.$ac_ext |
---|
6944 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6945 | /* end confdefs.h. */ |
---|
6946 | $ac_includes_default |
---|
6947 | #include <$ac_header> |
---|
6948 | _ACEOF |
---|
6949 | rm -f conftest.$ac_objext |
---|
6950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6951 | (eval $ac_compile) 2>conftest.er1 |
---|
6952 | ac_status=$? |
---|
6953 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6954 | rm -f conftest.er1 |
---|
6955 | cat conftest.err >&5 |
---|
6956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6957 | (exit $ac_status); } && |
---|
6958 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6959 | || test ! -s conftest.err' |
---|
6960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6961 | (eval $ac_try) 2>&5 |
---|
6962 | ac_status=$? |
---|
6963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6964 | (exit $ac_status); }; } && |
---|
6965 | { ac_try='test -s conftest.$ac_objext' |
---|
6966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6967 | (eval $ac_try) 2>&5 |
---|
6968 | ac_status=$? |
---|
6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6970 | (exit $ac_status); }; }; then |
---|
6971 | ac_header_compiler=yes |
---|
6972 | else |
---|
6973 | echo "$as_me: failed program was:" >&5 |
---|
6974 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6975 | |
---|
6976 | ac_header_compiler=no |
---|
6977 | fi |
---|
6978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6979 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6980 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6981 | |
---|
6982 | # Is the header present? |
---|
6983 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6984 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6985 | cat >conftest.$ac_ext <<_ACEOF |
---|
6986 | /* confdefs.h. */ |
---|
6987 | _ACEOF |
---|
6988 | cat confdefs.h >>conftest.$ac_ext |
---|
6989 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6990 | /* end confdefs.h. */ |
---|
6991 | #include <$ac_header> |
---|
6992 | _ACEOF |
---|
6993 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6994 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6995 | ac_status=$? |
---|
6996 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6997 | rm -f conftest.er1 |
---|
6998 | cat conftest.err >&5 |
---|
6999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7000 | (exit $ac_status); } >/dev/null; then |
---|
7001 | if test -s conftest.err; then |
---|
7002 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7003 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7004 | else |
---|
7005 | ac_cpp_err= |
---|
7006 | fi |
---|
7007 | else |
---|
7008 | ac_cpp_err=yes |
---|
7009 | fi |
---|
7010 | if test -z "$ac_cpp_err"; then |
---|
7011 | ac_header_preproc=yes |
---|
7012 | else |
---|
7013 | echo "$as_me: failed program was:" >&5 |
---|
7014 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7015 | |
---|
7016 | ac_header_preproc=no |
---|
7017 | fi |
---|
7018 | rm -f conftest.err conftest.$ac_ext |
---|
7019 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7020 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7021 | |
---|
7022 | # So? What about this header? |
---|
7023 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7024 | yes:no: ) |
---|
7025 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7026 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7027 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7028 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7029 | ac_header_preproc=yes |
---|
7030 | ;; |
---|
7031 | no:yes:* ) |
---|
7032 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7033 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7034 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7035 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7036 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7037 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7038 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7039 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7041 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7042 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7043 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7044 | ( |
---|
7045 | cat <<\_ASBOX |
---|
7046 | ## ---------------------------------------------- ## |
---|
7047 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7048 | ## ---------------------------------------------- ## |
---|
7049 | _ASBOX |
---|
7050 | ) | |
---|
7051 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7052 | ;; |
---|
7053 | esac |
---|
7054 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7056 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7058 | else |
---|
7059 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7060 | fi |
---|
7061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7062 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7063 | |
---|
7064 | fi |
---|
7065 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7066 | cat >>confdefs.h <<_ACEOF |
---|
7067 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7068 | _ACEOF |
---|
7069 | |
---|
7070 | else |
---|
7071 | |
---|
7072 | for ac_header in SDL/SDL.h |
---|
7073 | do |
---|
7074 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7075 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7076 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7077 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7078 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7080 | fi |
---|
7081 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7082 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7083 | else |
---|
7084 | # Is the header compilable? |
---|
7085 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7086 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7087 | cat >conftest.$ac_ext <<_ACEOF |
---|
7088 | /* confdefs.h. */ |
---|
7089 | _ACEOF |
---|
7090 | cat confdefs.h >>conftest.$ac_ext |
---|
7091 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7092 | /* end confdefs.h. */ |
---|
7093 | $ac_includes_default |
---|
7094 | #include <$ac_header> |
---|
7095 | _ACEOF |
---|
7096 | rm -f conftest.$ac_objext |
---|
7097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7098 | (eval $ac_compile) 2>conftest.er1 |
---|
7099 | ac_status=$? |
---|
7100 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7101 | rm -f conftest.er1 |
---|
7102 | cat conftest.err >&5 |
---|
7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7104 | (exit $ac_status); } && |
---|
7105 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7106 | || test ! -s conftest.err' |
---|
7107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7108 | (eval $ac_try) 2>&5 |
---|
7109 | ac_status=$? |
---|
7110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7111 | (exit $ac_status); }; } && |
---|
7112 | { ac_try='test -s conftest.$ac_objext' |
---|
7113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7114 | (eval $ac_try) 2>&5 |
---|
7115 | ac_status=$? |
---|
7116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7117 | (exit $ac_status); }; }; then |
---|
7118 | ac_header_compiler=yes |
---|
7119 | else |
---|
7120 | echo "$as_me: failed program was:" >&5 |
---|
7121 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7122 | |
---|
7123 | ac_header_compiler=no |
---|
7124 | fi |
---|
7125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7126 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7127 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7128 | |
---|
7129 | # Is the header present? |
---|
7130 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7131 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7132 | cat >conftest.$ac_ext <<_ACEOF |
---|
7133 | /* confdefs.h. */ |
---|
7134 | _ACEOF |
---|
7135 | cat confdefs.h >>conftest.$ac_ext |
---|
7136 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7137 | /* end confdefs.h. */ |
---|
7138 | #include <$ac_header> |
---|
7139 | _ACEOF |
---|
7140 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7141 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7142 | ac_status=$? |
---|
7143 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7144 | rm -f conftest.er1 |
---|
7145 | cat conftest.err >&5 |
---|
7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7147 | (exit $ac_status); } >/dev/null; then |
---|
7148 | if test -s conftest.err; then |
---|
7149 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7150 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7151 | else |
---|
7152 | ac_cpp_err= |
---|
7153 | fi |
---|
7154 | else |
---|
7155 | ac_cpp_err=yes |
---|
7156 | fi |
---|
7157 | if test -z "$ac_cpp_err"; then |
---|
7158 | ac_header_preproc=yes |
---|
7159 | else |
---|
7160 | echo "$as_me: failed program was:" >&5 |
---|
7161 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7162 | |
---|
7163 | ac_header_preproc=no |
---|
7164 | fi |
---|
7165 | rm -f conftest.err conftest.$ac_ext |
---|
7166 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7167 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7168 | |
---|
7169 | # So? What about this header? |
---|
7170 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7171 | yes:no: ) |
---|
7172 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7173 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7174 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7175 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7176 | ac_header_preproc=yes |
---|
7177 | ;; |
---|
7178 | no:yes:* ) |
---|
7179 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7180 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7181 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7182 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7183 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7184 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7185 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7186 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7187 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7188 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7189 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7190 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7191 | ( |
---|
7192 | cat <<\_ASBOX |
---|
7193 | ## ---------------------------------------------- ## |
---|
7194 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7195 | ## ---------------------------------------------- ## |
---|
7196 | _ASBOX |
---|
7197 | ) | |
---|
7198 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7199 | ;; |
---|
7200 | esac |
---|
7201 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7202 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7203 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7205 | else |
---|
7206 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7207 | fi |
---|
7208 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7209 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7210 | |
---|
7211 | fi |
---|
7212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7213 | cat >>confdefs.h <<_ACEOF |
---|
7214 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7215 | _ACEOF |
---|
7216 | |
---|
7217 | else |
---|
7218 | { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 |
---|
7219 | echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} |
---|
7220 | { (exit 1); exit 1; }; } |
---|
7221 | fi |
---|
7222 | |
---|
7223 | done |
---|
7224 | |
---|
7225 | fi |
---|
7226 | |
---|
7227 | done |
---|
7228 | |
---|
7229 | LIBS="`sdl-config --libs` $LIBS" |
---|
7230 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
7231 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
7232 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
7233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7234 | else |
---|
7235 | ac_check_lib_save_LIBS=$LIBS |
---|
7236 | LIBS="-lSDL $LIBS" |
---|
7237 | cat >conftest.$ac_ext <<_ACEOF |
---|
7238 | /* confdefs.h. */ |
---|
7239 | _ACEOF |
---|
7240 | cat confdefs.h >>conftest.$ac_ext |
---|
7241 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7242 | /* end confdefs.h. */ |
---|
7243 | |
---|
7244 | |
---|
7245 | int |
---|
7246 | main () |
---|
7247 | { |
---|
7248 | main (); |
---|
7249 | ; |
---|
7250 | return 0; |
---|
7251 | } |
---|
7252 | _ACEOF |
---|
7253 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7255 | (eval $ac_link) 2>conftest.er1 |
---|
7256 | ac_status=$? |
---|
7257 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7258 | rm -f conftest.er1 |
---|
7259 | cat conftest.err >&5 |
---|
7260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7261 | (exit $ac_status); } && |
---|
7262 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7263 | || test ! -s conftest.err' |
---|
7264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7265 | (eval $ac_try) 2>&5 |
---|
7266 | ac_status=$? |
---|
7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7268 | (exit $ac_status); }; } && |
---|
7269 | { ac_try='test -s conftest$ac_exeext' |
---|
7270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7271 | (eval $ac_try) 2>&5 |
---|
7272 | ac_status=$? |
---|
7273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7274 | (exit $ac_status); }; }; then |
---|
7275 | ac_cv_lib_SDL_main=yes |
---|
7276 | else |
---|
7277 | echo "$as_me: failed program was:" >&5 |
---|
7278 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7279 | |
---|
7280 | ac_cv_lib_SDL_main=no |
---|
7281 | fi |
---|
7282 | rm -f conftest.err conftest.$ac_objext \ |
---|
7283 | conftest$ac_exeext conftest.$ac_ext |
---|
7284 | LIBS=$ac_check_lib_save_LIBS |
---|
7285 | fi |
---|
7286 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
7287 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
7288 | if test $ac_cv_lib_SDL_main = yes; then |
---|
7289 | FOUND_SDL=yes |
---|
7290 | fi |
---|
7291 | |
---|
7292 | if test x$FOUND_SDL != xyes ; then |
---|
7293 | echo "------------------" |
---|
7294 | echo "SDL library not found." |
---|
7295 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
7296 | echo "------------------" |
---|
7297 | exit -1 |
---|
7298 | fi |
---|
7299 | |
---|
7300 | ;; |
---|
7301 | |
---|
7302 | ############# |
---|
7303 | #-----------# |
---|
7304 | # MAC -OS X # |
---|
7305 | #-----------# |
---|
7306 | ############# |
---|
7307 | *darwin*) |
---|
7308 | echo "OS X detected" |
---|
7309 | |
---|
7310 | osX="yes" |
---|
7311 | |
---|
7312 | CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" |
---|
7313 | LDFLAGS="$LDFLAGS -L/sw/lib" |
---|
7314 | # checking gl header |
---|
7315 | |
---|
7316 | for ac_header in OpenGL/gl.h |
---|
7317 | do |
---|
7318 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7320 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7321 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7322 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7324 | fi |
---|
7325 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7326 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7327 | else |
---|
7328 | # Is the header compilable? |
---|
7329 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7330 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7331 | cat >conftest.$ac_ext <<_ACEOF |
---|
7332 | /* confdefs.h. */ |
---|
7333 | _ACEOF |
---|
7334 | cat confdefs.h >>conftest.$ac_ext |
---|
7335 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7336 | /* end confdefs.h. */ |
---|
7337 | $ac_includes_default |
---|
7338 | #include <$ac_header> |
---|
7339 | _ACEOF |
---|
7340 | rm -f conftest.$ac_objext |
---|
7341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7342 | (eval $ac_compile) 2>conftest.er1 |
---|
7343 | ac_status=$? |
---|
7344 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7345 | rm -f conftest.er1 |
---|
7346 | cat conftest.err >&5 |
---|
7347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7348 | (exit $ac_status); } && |
---|
7349 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7350 | || test ! -s conftest.err' |
---|
7351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7352 | (eval $ac_try) 2>&5 |
---|
7353 | ac_status=$? |
---|
7354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7355 | (exit $ac_status); }; } && |
---|
7356 | { ac_try='test -s conftest.$ac_objext' |
---|
7357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7358 | (eval $ac_try) 2>&5 |
---|
7359 | ac_status=$? |
---|
7360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7361 | (exit $ac_status); }; }; then |
---|
7362 | ac_header_compiler=yes |
---|
7363 | else |
---|
7364 | echo "$as_me: failed program was:" >&5 |
---|
7365 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7366 | |
---|
7367 | ac_header_compiler=no |
---|
7368 | fi |
---|
7369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7370 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7371 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7372 | |
---|
7373 | # Is the header present? |
---|
7374 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7375 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7376 | cat >conftest.$ac_ext <<_ACEOF |
---|
7377 | /* confdefs.h. */ |
---|
7378 | _ACEOF |
---|
7379 | cat confdefs.h >>conftest.$ac_ext |
---|
7380 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7381 | /* end confdefs.h. */ |
---|
7382 | #include <$ac_header> |
---|
7383 | _ACEOF |
---|
7384 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7385 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7386 | ac_status=$? |
---|
7387 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7388 | rm -f conftest.er1 |
---|
7389 | cat conftest.err >&5 |
---|
7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7391 | (exit $ac_status); } >/dev/null; then |
---|
7392 | if test -s conftest.err; then |
---|
7393 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7394 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7395 | else |
---|
7396 | ac_cpp_err= |
---|
7397 | fi |
---|
7398 | else |
---|
7399 | ac_cpp_err=yes |
---|
7400 | fi |
---|
7401 | if test -z "$ac_cpp_err"; then |
---|
7402 | ac_header_preproc=yes |
---|
7403 | else |
---|
7404 | echo "$as_me: failed program was:" >&5 |
---|
7405 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7406 | |
---|
7407 | ac_header_preproc=no |
---|
7408 | fi |
---|
7409 | rm -f conftest.err conftest.$ac_ext |
---|
7410 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7411 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7412 | |
---|
7413 | # So? What about this header? |
---|
7414 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7415 | yes:no: ) |
---|
7416 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7417 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7418 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7419 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7420 | ac_header_preproc=yes |
---|
7421 | ;; |
---|
7422 | no:yes:* ) |
---|
7423 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7424 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7425 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7426 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7427 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7428 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7429 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7430 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7431 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7432 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7433 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7434 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7435 | ( |
---|
7436 | cat <<\_ASBOX |
---|
7437 | ## ---------------------------------------------- ## |
---|
7438 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7439 | ## ---------------------------------------------- ## |
---|
7440 | _ASBOX |
---|
7441 | ) | |
---|
7442 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7443 | ;; |
---|
7444 | esac |
---|
7445 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7449 | else |
---|
7450 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7451 | fi |
---|
7452 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7453 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7454 | |
---|
7455 | fi |
---|
7456 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7457 | cat >>confdefs.h <<_ACEOF |
---|
7458 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7459 | _ACEOF |
---|
7460 | |
---|
7461 | else |
---|
7462 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
7463 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
7464 | { (exit 1); exit 1; }; } |
---|
7465 | fi |
---|
7466 | |
---|
7467 | done |
---|
7468 | |
---|
7469 | # cheking for GLU-header |
---|
7470 | |
---|
7471 | for ac_header in OpenGL/glu.h |
---|
7472 | do |
---|
7473 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7474 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7475 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7476 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7477 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7479 | fi |
---|
7480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7481 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7482 | else |
---|
7483 | # Is the header compilable? |
---|
7484 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7485 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7486 | cat >conftest.$ac_ext <<_ACEOF |
---|
7487 | /* confdefs.h. */ |
---|
7488 | _ACEOF |
---|
7489 | cat confdefs.h >>conftest.$ac_ext |
---|
7490 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7491 | /* end confdefs.h. */ |
---|
7492 | $ac_includes_default |
---|
7493 | #include <$ac_header> |
---|
7494 | _ACEOF |
---|
7495 | rm -f conftest.$ac_objext |
---|
7496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7497 | (eval $ac_compile) 2>conftest.er1 |
---|
7498 | ac_status=$? |
---|
7499 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7500 | rm -f conftest.er1 |
---|
7501 | cat conftest.err >&5 |
---|
7502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7503 | (exit $ac_status); } && |
---|
7504 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7505 | || test ! -s conftest.err' |
---|
7506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7507 | (eval $ac_try) 2>&5 |
---|
7508 | ac_status=$? |
---|
7509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7510 | (exit $ac_status); }; } && |
---|
7511 | { ac_try='test -s conftest.$ac_objext' |
---|
7512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7513 | (eval $ac_try) 2>&5 |
---|
7514 | ac_status=$? |
---|
7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7516 | (exit $ac_status); }; }; then |
---|
7517 | ac_header_compiler=yes |
---|
7518 | else |
---|
7519 | echo "$as_me: failed program was:" >&5 |
---|
7520 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7521 | |
---|
7522 | ac_header_compiler=no |
---|
7523 | fi |
---|
7524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7525 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7526 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7527 | |
---|
7528 | # Is the header present? |
---|
7529 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7530 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7531 | cat >conftest.$ac_ext <<_ACEOF |
---|
7532 | /* confdefs.h. */ |
---|
7533 | _ACEOF |
---|
7534 | cat confdefs.h >>conftest.$ac_ext |
---|
7535 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7536 | /* end confdefs.h. */ |
---|
7537 | #include <$ac_header> |
---|
7538 | _ACEOF |
---|
7539 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7540 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7541 | ac_status=$? |
---|
7542 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7543 | rm -f conftest.er1 |
---|
7544 | cat conftest.err >&5 |
---|
7545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7546 | (exit $ac_status); } >/dev/null; then |
---|
7547 | if test -s conftest.err; then |
---|
7548 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7549 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7550 | else |
---|
7551 | ac_cpp_err= |
---|
7552 | fi |
---|
7553 | else |
---|
7554 | ac_cpp_err=yes |
---|
7555 | fi |
---|
7556 | if test -z "$ac_cpp_err"; then |
---|
7557 | ac_header_preproc=yes |
---|
7558 | else |
---|
7559 | echo "$as_me: failed program was:" >&5 |
---|
7560 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7561 | |
---|
7562 | ac_header_preproc=no |
---|
7563 | fi |
---|
7564 | rm -f conftest.err conftest.$ac_ext |
---|
7565 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7566 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7567 | |
---|
7568 | # So? What about this header? |
---|
7569 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7570 | yes:no: ) |
---|
7571 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7572 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7573 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7574 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7575 | ac_header_preproc=yes |
---|
7576 | ;; |
---|
7577 | no:yes:* ) |
---|
7578 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7579 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7580 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7581 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7582 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7583 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7584 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7585 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7587 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7588 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7589 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7590 | ( |
---|
7591 | cat <<\_ASBOX |
---|
7592 | ## ---------------------------------------------- ## |
---|
7593 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7594 | ## ---------------------------------------------- ## |
---|
7595 | _ASBOX |
---|
7596 | ) | |
---|
7597 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7598 | ;; |
---|
7599 | esac |
---|
7600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7604 | else |
---|
7605 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7606 | fi |
---|
7607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7608 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7609 | |
---|
7610 | fi |
---|
7611 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7612 | cat >>confdefs.h <<_ACEOF |
---|
7613 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7614 | _ACEOF |
---|
7615 | |
---|
7616 | else |
---|
7617 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
7618 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
7619 | { (exit 1); exit 1; }; } |
---|
7620 | fi |
---|
7621 | |
---|
7622 | done |
---|
7623 | |
---|
7624 | |
---|
7625 | LIBS="$LIBS -framework OpenGL" |
---|
7626 | |
---|
7627 | |
---|
7628 | |
---|
7629 | # checking for GLEW-headers |
---|
7630 | |
---|
7631 | for ac_header in GL/glew.h |
---|
7632 | do |
---|
7633 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7634 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7639 | fi |
---|
7640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7641 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7642 | else |
---|
7643 | # Is the header compilable? |
---|
7644 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7645 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7646 | cat >conftest.$ac_ext <<_ACEOF |
---|
7647 | /* confdefs.h. */ |
---|
7648 | _ACEOF |
---|
7649 | cat confdefs.h >>conftest.$ac_ext |
---|
7650 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7651 | /* end confdefs.h. */ |
---|
7652 | $ac_includes_default |
---|
7653 | #include <$ac_header> |
---|
7654 | _ACEOF |
---|
7655 | rm -f conftest.$ac_objext |
---|
7656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7657 | (eval $ac_compile) 2>conftest.er1 |
---|
7658 | ac_status=$? |
---|
7659 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7660 | rm -f conftest.er1 |
---|
7661 | cat conftest.err >&5 |
---|
7662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7663 | (exit $ac_status); } && |
---|
7664 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7665 | || test ! -s conftest.err' |
---|
7666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7667 | (eval $ac_try) 2>&5 |
---|
7668 | ac_status=$? |
---|
7669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7670 | (exit $ac_status); }; } && |
---|
7671 | { ac_try='test -s conftest.$ac_objext' |
---|
7672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7673 | (eval $ac_try) 2>&5 |
---|
7674 | ac_status=$? |
---|
7675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7676 | (exit $ac_status); }; }; then |
---|
7677 | ac_header_compiler=yes |
---|
7678 | else |
---|
7679 | echo "$as_me: failed program was:" >&5 |
---|
7680 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7681 | |
---|
7682 | ac_header_compiler=no |
---|
7683 | fi |
---|
7684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7685 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7686 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7687 | |
---|
7688 | # Is the header present? |
---|
7689 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7690 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7691 | cat >conftest.$ac_ext <<_ACEOF |
---|
7692 | /* confdefs.h. */ |
---|
7693 | _ACEOF |
---|
7694 | cat confdefs.h >>conftest.$ac_ext |
---|
7695 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7696 | /* end confdefs.h. */ |
---|
7697 | #include <$ac_header> |
---|
7698 | _ACEOF |
---|
7699 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7700 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7701 | ac_status=$? |
---|
7702 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7703 | rm -f conftest.er1 |
---|
7704 | cat conftest.err >&5 |
---|
7705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7706 | (exit $ac_status); } >/dev/null; then |
---|
7707 | if test -s conftest.err; then |
---|
7708 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7709 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7710 | else |
---|
7711 | ac_cpp_err= |
---|
7712 | fi |
---|
7713 | else |
---|
7714 | ac_cpp_err=yes |
---|
7715 | fi |
---|
7716 | if test -z "$ac_cpp_err"; then |
---|
7717 | ac_header_preproc=yes |
---|
7718 | else |
---|
7719 | echo "$as_me: failed program was:" >&5 |
---|
7720 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7721 | |
---|
7722 | ac_header_preproc=no |
---|
7723 | fi |
---|
7724 | rm -f conftest.err conftest.$ac_ext |
---|
7725 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7726 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7727 | |
---|
7728 | # So? What about this header? |
---|
7729 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7730 | yes:no: ) |
---|
7731 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7732 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7734 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7735 | ac_header_preproc=yes |
---|
7736 | ;; |
---|
7737 | no:yes:* ) |
---|
7738 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7739 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7740 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7741 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7742 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7743 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7744 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7745 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7748 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7749 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7750 | ( |
---|
7751 | cat <<\_ASBOX |
---|
7752 | ## ---------------------------------------------- ## |
---|
7753 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7754 | ## ---------------------------------------------- ## |
---|
7755 | _ASBOX |
---|
7756 | ) | |
---|
7757 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7758 | ;; |
---|
7759 | esac |
---|
7760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7764 | else |
---|
7765 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7766 | fi |
---|
7767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7768 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7769 | |
---|
7770 | fi |
---|
7771 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7772 | cat >>confdefs.h <<_ACEOF |
---|
7773 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7774 | _ACEOF |
---|
7775 | |
---|
7776 | else |
---|
7777 | { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 |
---|
7778 | echo "$as_me: error: cannot find glew headers" >&2;} |
---|
7779 | { (exit 1); exit 1; }; } |
---|
7780 | fi |
---|
7781 | |
---|
7782 | done |
---|
7783 | |
---|
7784 | # checking for GLEW-lib |
---|
7785 | echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 |
---|
7786 | echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 |
---|
7787 | if test "${ac_cv_lib_GLEW_main+set}" = set; then |
---|
7788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7789 | else |
---|
7790 | ac_check_lib_save_LIBS=$LIBS |
---|
7791 | LIBS="-lGLEW $LIBS" |
---|
7792 | cat >conftest.$ac_ext <<_ACEOF |
---|
7793 | /* confdefs.h. */ |
---|
7794 | _ACEOF |
---|
7795 | cat confdefs.h >>conftest.$ac_ext |
---|
7796 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7797 | /* end confdefs.h. */ |
---|
7798 | |
---|
7799 | |
---|
7800 | int |
---|
7801 | main () |
---|
7802 | { |
---|
7803 | main (); |
---|
7804 | ; |
---|
7805 | return 0; |
---|
7806 | } |
---|
7807 | _ACEOF |
---|
7808 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7810 | (eval $ac_link) 2>conftest.er1 |
---|
7811 | ac_status=$? |
---|
7812 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7813 | rm -f conftest.er1 |
---|
7814 | cat conftest.err >&5 |
---|
7815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7816 | (exit $ac_status); } && |
---|
7817 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7818 | || test ! -s conftest.err' |
---|
7819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7820 | (eval $ac_try) 2>&5 |
---|
7821 | ac_status=$? |
---|
7822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7823 | (exit $ac_status); }; } && |
---|
7824 | { ac_try='test -s conftest$ac_exeext' |
---|
7825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7826 | (eval $ac_try) 2>&5 |
---|
7827 | ac_status=$? |
---|
7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7829 | (exit $ac_status); }; }; then |
---|
7830 | ac_cv_lib_GLEW_main=yes |
---|
7831 | else |
---|
7832 | echo "$as_me: failed program was:" >&5 |
---|
7833 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7834 | |
---|
7835 | ac_cv_lib_GLEW_main=no |
---|
7836 | fi |
---|
7837 | rm -f conftest.err conftest.$ac_objext \ |
---|
7838 | conftest$ac_exeext conftest.$ac_ext |
---|
7839 | LIBS=$ac_check_lib_save_LIBS |
---|
7840 | fi |
---|
7841 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 |
---|
7842 | echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 |
---|
7843 | if test $ac_cv_lib_GLEW_main = yes; then |
---|
7844 | FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" |
---|
7845 | fi |
---|
7846 | |
---|
7847 | if test x$FOUND_GLEW != xyes ; then |
---|
7848 | echo "------------------" |
---|
7849 | echo "glew not found." |
---|
7850 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
7851 | echo "------------------" |
---|
7852 | exit -1 |
---|
7853 | fi |
---|
7854 | |
---|
7855 | |
---|
7856 | |
---|
7857 | for ac_header in OpenAL/al.h |
---|
7858 | do |
---|
7859 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7860 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7861 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7862 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7863 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7865 | fi |
---|
7866 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7867 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7868 | else |
---|
7869 | # Is the header compilable? |
---|
7870 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7871 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7872 | cat >conftest.$ac_ext <<_ACEOF |
---|
7873 | /* confdefs.h. */ |
---|
7874 | _ACEOF |
---|
7875 | cat confdefs.h >>conftest.$ac_ext |
---|
7876 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7877 | /* end confdefs.h. */ |
---|
7878 | $ac_includes_default |
---|
7879 | #include <$ac_header> |
---|
7880 | _ACEOF |
---|
7881 | rm -f conftest.$ac_objext |
---|
7882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7883 | (eval $ac_compile) 2>conftest.er1 |
---|
7884 | ac_status=$? |
---|
7885 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7886 | rm -f conftest.er1 |
---|
7887 | cat conftest.err >&5 |
---|
7888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7889 | (exit $ac_status); } && |
---|
7890 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7891 | || test ! -s conftest.err' |
---|
7892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7893 | (eval $ac_try) 2>&5 |
---|
7894 | ac_status=$? |
---|
7895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7896 | (exit $ac_status); }; } && |
---|
7897 | { ac_try='test -s conftest.$ac_objext' |
---|
7898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7899 | (eval $ac_try) 2>&5 |
---|
7900 | ac_status=$? |
---|
7901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7902 | (exit $ac_status); }; }; then |
---|
7903 | ac_header_compiler=yes |
---|
7904 | else |
---|
7905 | echo "$as_me: failed program was:" >&5 |
---|
7906 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7907 | |
---|
7908 | ac_header_compiler=no |
---|
7909 | fi |
---|
7910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7911 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7912 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7913 | |
---|
7914 | # Is the header present? |
---|
7915 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7916 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7917 | cat >conftest.$ac_ext <<_ACEOF |
---|
7918 | /* confdefs.h. */ |
---|
7919 | _ACEOF |
---|
7920 | cat confdefs.h >>conftest.$ac_ext |
---|
7921 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7922 | /* end confdefs.h. */ |
---|
7923 | #include <$ac_header> |
---|
7924 | _ACEOF |
---|
7925 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7926 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7927 | ac_status=$? |
---|
7928 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7929 | rm -f conftest.er1 |
---|
7930 | cat conftest.err >&5 |
---|
7931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7932 | (exit $ac_status); } >/dev/null; then |
---|
7933 | if test -s conftest.err; then |
---|
7934 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7935 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7936 | else |
---|
7937 | ac_cpp_err= |
---|
7938 | fi |
---|
7939 | else |
---|
7940 | ac_cpp_err=yes |
---|
7941 | fi |
---|
7942 | if test -z "$ac_cpp_err"; then |
---|
7943 | ac_header_preproc=yes |
---|
7944 | else |
---|
7945 | echo "$as_me: failed program was:" >&5 |
---|
7946 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7947 | |
---|
7948 | ac_header_preproc=no |
---|
7949 | fi |
---|
7950 | rm -f conftest.err conftest.$ac_ext |
---|
7951 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7952 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7953 | |
---|
7954 | # So? What about this header? |
---|
7955 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7956 | yes:no: ) |
---|
7957 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7958 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7959 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7960 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7961 | ac_header_preproc=yes |
---|
7962 | ;; |
---|
7963 | no:yes:* ) |
---|
7964 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7965 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7966 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7967 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7968 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7969 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7970 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7971 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7973 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7974 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7975 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7976 | ( |
---|
7977 | cat <<\_ASBOX |
---|
7978 | ## ---------------------------------------------- ## |
---|
7979 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7980 | ## ---------------------------------------------- ## |
---|
7981 | _ASBOX |
---|
7982 | ) | |
---|
7983 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7984 | ;; |
---|
7985 | esac |
---|
7986 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7988 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7990 | else |
---|
7991 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7992 | fi |
---|
7993 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7994 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7995 | |
---|
7996 | fi |
---|
7997 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7998 | cat >>confdefs.h <<_ACEOF |
---|
7999 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8000 | _ACEOF |
---|
8001 | |
---|
8002 | else |
---|
8003 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
8004 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
8005 | { (exit 1); exit 1; }; } |
---|
8006 | fi |
---|
8007 | |
---|
8008 | done |
---|
8009 | |
---|
8010 | HAVE_OPENAL=yes |
---|
8011 | LIBS="$LIBS -framework OpenAL" |
---|
8012 | |
---|
8013 | |
---|
8014 | ## SDL-check |
---|
8015 | SDL_CFLAGS=`sdl-config --cflags` |
---|
8016 | SDL_LIBS=`sdl-config --libs` |
---|
8017 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
8018 | LIBS="$LIBS $SDL_LIBS" |
---|
8019 | |
---|
8020 | for ac_header in SDL/SDL.h |
---|
8021 | do |
---|
8022 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8024 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8028 | fi |
---|
8029 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8030 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8031 | else |
---|
8032 | # Is the header compilable? |
---|
8033 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8034 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8035 | cat >conftest.$ac_ext <<_ACEOF |
---|
8036 | /* confdefs.h. */ |
---|
8037 | _ACEOF |
---|
8038 | cat confdefs.h >>conftest.$ac_ext |
---|
8039 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8040 | /* end confdefs.h. */ |
---|
8041 | $ac_includes_default |
---|
8042 | #include <$ac_header> |
---|
8043 | _ACEOF |
---|
8044 | rm -f conftest.$ac_objext |
---|
8045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8046 | (eval $ac_compile) 2>conftest.er1 |
---|
8047 | ac_status=$? |
---|
8048 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8049 | rm -f conftest.er1 |
---|
8050 | cat conftest.err >&5 |
---|
8051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8052 | (exit $ac_status); } && |
---|
8053 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8054 | || test ! -s conftest.err' |
---|
8055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8056 | (eval $ac_try) 2>&5 |
---|
8057 | ac_status=$? |
---|
8058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8059 | (exit $ac_status); }; } && |
---|
8060 | { ac_try='test -s conftest.$ac_objext' |
---|
8061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8062 | (eval $ac_try) 2>&5 |
---|
8063 | ac_status=$? |
---|
8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8065 | (exit $ac_status); }; }; then |
---|
8066 | ac_header_compiler=yes |
---|
8067 | else |
---|
8068 | echo "$as_me: failed program was:" >&5 |
---|
8069 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8070 | |
---|
8071 | ac_header_compiler=no |
---|
8072 | fi |
---|
8073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8074 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8075 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8076 | |
---|
8077 | # Is the header present? |
---|
8078 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8079 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8080 | cat >conftest.$ac_ext <<_ACEOF |
---|
8081 | /* confdefs.h. */ |
---|
8082 | _ACEOF |
---|
8083 | cat confdefs.h >>conftest.$ac_ext |
---|
8084 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8085 | /* end confdefs.h. */ |
---|
8086 | #include <$ac_header> |
---|
8087 | _ACEOF |
---|
8088 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8089 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8090 | ac_status=$? |
---|
8091 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8092 | rm -f conftest.er1 |
---|
8093 | cat conftest.err >&5 |
---|
8094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8095 | (exit $ac_status); } >/dev/null; then |
---|
8096 | if test -s conftest.err; then |
---|
8097 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8098 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8099 | else |
---|
8100 | ac_cpp_err= |
---|
8101 | fi |
---|
8102 | else |
---|
8103 | ac_cpp_err=yes |
---|
8104 | fi |
---|
8105 | if test -z "$ac_cpp_err"; then |
---|
8106 | ac_header_preproc=yes |
---|
8107 | else |
---|
8108 | echo "$as_me: failed program was:" >&5 |
---|
8109 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8110 | |
---|
8111 | ac_header_preproc=no |
---|
8112 | fi |
---|
8113 | rm -f conftest.err conftest.$ac_ext |
---|
8114 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8115 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8116 | |
---|
8117 | # So? What about this header? |
---|
8118 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8119 | yes:no: ) |
---|
8120 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8121 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8122 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8123 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8124 | ac_header_preproc=yes |
---|
8125 | ;; |
---|
8126 | no:yes:* ) |
---|
8127 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8128 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8129 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8130 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8131 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8132 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8133 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8134 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8135 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8136 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8137 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8138 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8139 | ( |
---|
8140 | cat <<\_ASBOX |
---|
8141 | ## ---------------------------------------------- ## |
---|
8142 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8143 | ## ---------------------------------------------- ## |
---|
8144 | _ASBOX |
---|
8145 | ) | |
---|
8146 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8147 | ;; |
---|
8148 | esac |
---|
8149 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8150 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8151 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8153 | else |
---|
8154 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8155 | fi |
---|
8156 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8157 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8158 | |
---|
8159 | fi |
---|
8160 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8161 | cat >>confdefs.h <<_ACEOF |
---|
8162 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8163 | _ACEOF |
---|
8164 | |
---|
8165 | else |
---|
8166 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
8167 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
8168 | { (exit 1); exit 1; }; } |
---|
8169 | fi |
---|
8170 | |
---|
8171 | done |
---|
8172 | |
---|
8173 | HAVE_SDL=yes |
---|
8174 | # LIBS="$LIBS -framework SDL" |
---|
8175 | |
---|
8176 | # checking for SDL-headers |
---|
8177 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
8178 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
8179 | |
---|
8180 | ## checking for SDL |
---|
8181 | # SDL_VERSION=1.2.7 |
---|
8182 | # AM_PATH_SDL($SDL_VERSION, |
---|
8183 | # :, |
---|
8184 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
8185 | # ) |
---|
8186 | |
---|
8187 | |
---|
8188 | ;; |
---|
8189 | |
---|
8190 | *) |
---|
8191 | ;; |
---|
8192 | esac |
---|
8193 | |
---|
8194 | |
---|
8195 | |
---|
8196 | ################################### |
---|
8197 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
8198 | ################################### |
---|
8199 | |
---|
8200 | #---------# |
---|
8201 | # SDL_ttf # |
---|
8202 | #---------# |
---|
8203 | # checking for SDL_ttf-headers |
---|
8204 | |
---|
8205 | for ac_header in SDL_ttf.h |
---|
8206 | do |
---|
8207 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8213 | fi |
---|
8214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8216 | else |
---|
8217 | # Is the header compilable? |
---|
8218 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8219 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8220 | cat >conftest.$ac_ext <<_ACEOF |
---|
8221 | /* confdefs.h. */ |
---|
8222 | _ACEOF |
---|
8223 | cat confdefs.h >>conftest.$ac_ext |
---|
8224 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8225 | /* end confdefs.h. */ |
---|
8226 | $ac_includes_default |
---|
8227 | #include <$ac_header> |
---|
8228 | _ACEOF |
---|
8229 | rm -f conftest.$ac_objext |
---|
8230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8231 | (eval $ac_compile) 2>conftest.er1 |
---|
8232 | ac_status=$? |
---|
8233 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8234 | rm -f conftest.er1 |
---|
8235 | cat conftest.err >&5 |
---|
8236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8237 | (exit $ac_status); } && |
---|
8238 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8239 | || test ! -s conftest.err' |
---|
8240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8241 | (eval $ac_try) 2>&5 |
---|
8242 | ac_status=$? |
---|
8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8244 | (exit $ac_status); }; } && |
---|
8245 | { ac_try='test -s conftest.$ac_objext' |
---|
8246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8247 | (eval $ac_try) 2>&5 |
---|
8248 | ac_status=$? |
---|
8249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8250 | (exit $ac_status); }; }; then |
---|
8251 | ac_header_compiler=yes |
---|
8252 | else |
---|
8253 | echo "$as_me: failed program was:" >&5 |
---|
8254 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8255 | |
---|
8256 | ac_header_compiler=no |
---|
8257 | fi |
---|
8258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8259 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8260 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8261 | |
---|
8262 | # Is the header present? |
---|
8263 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8264 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8265 | cat >conftest.$ac_ext <<_ACEOF |
---|
8266 | /* confdefs.h. */ |
---|
8267 | _ACEOF |
---|
8268 | cat confdefs.h >>conftest.$ac_ext |
---|
8269 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8270 | /* end confdefs.h. */ |
---|
8271 | #include <$ac_header> |
---|
8272 | _ACEOF |
---|
8273 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8274 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8275 | ac_status=$? |
---|
8276 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8277 | rm -f conftest.er1 |
---|
8278 | cat conftest.err >&5 |
---|
8279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8280 | (exit $ac_status); } >/dev/null; then |
---|
8281 | if test -s conftest.err; then |
---|
8282 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8283 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8284 | else |
---|
8285 | ac_cpp_err= |
---|
8286 | fi |
---|
8287 | else |
---|
8288 | ac_cpp_err=yes |
---|
8289 | fi |
---|
8290 | if test -z "$ac_cpp_err"; then |
---|
8291 | ac_header_preproc=yes |
---|
8292 | else |
---|
8293 | echo "$as_me: failed program was:" >&5 |
---|
8294 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8295 | |
---|
8296 | ac_header_preproc=no |
---|
8297 | fi |
---|
8298 | rm -f conftest.err conftest.$ac_ext |
---|
8299 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8300 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8301 | |
---|
8302 | # So? What about this header? |
---|
8303 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8304 | yes:no: ) |
---|
8305 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8306 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8307 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8308 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8309 | ac_header_preproc=yes |
---|
8310 | ;; |
---|
8311 | no:yes:* ) |
---|
8312 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8313 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8314 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8315 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8316 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8317 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8318 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8319 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8321 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8322 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8323 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8324 | ( |
---|
8325 | cat <<\_ASBOX |
---|
8326 | ## ---------------------------------------------- ## |
---|
8327 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8328 | ## ---------------------------------------------- ## |
---|
8329 | _ASBOX |
---|
8330 | ) | |
---|
8331 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8332 | ;; |
---|
8333 | esac |
---|
8334 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8336 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8338 | else |
---|
8339 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8340 | fi |
---|
8341 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8342 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8343 | |
---|
8344 | fi |
---|
8345 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8346 | cat >>confdefs.h <<_ACEOF |
---|
8347 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8348 | _ACEOF |
---|
8349 | |
---|
8350 | else |
---|
8351 | |
---|
8352 | for ac_header in SDL/SDL_ttf.h |
---|
8353 | do |
---|
8354 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8355 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8356 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8357 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8358 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8360 | fi |
---|
8361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8362 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8363 | else |
---|
8364 | # Is the header compilable? |
---|
8365 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8366 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8367 | cat >conftest.$ac_ext <<_ACEOF |
---|
8368 | /* confdefs.h. */ |
---|
8369 | _ACEOF |
---|
8370 | cat confdefs.h >>conftest.$ac_ext |
---|
8371 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8372 | /* end confdefs.h. */ |
---|
8373 | $ac_includes_default |
---|
8374 | #include <$ac_header> |
---|
8375 | _ACEOF |
---|
8376 | rm -f conftest.$ac_objext |
---|
8377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8378 | (eval $ac_compile) 2>conftest.er1 |
---|
8379 | ac_status=$? |
---|
8380 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8381 | rm -f conftest.er1 |
---|
8382 | cat conftest.err >&5 |
---|
8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8384 | (exit $ac_status); } && |
---|
8385 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8386 | || test ! -s conftest.err' |
---|
8387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8388 | (eval $ac_try) 2>&5 |
---|
8389 | ac_status=$? |
---|
8390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8391 | (exit $ac_status); }; } && |
---|
8392 | { ac_try='test -s conftest.$ac_objext' |
---|
8393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8394 | (eval $ac_try) 2>&5 |
---|
8395 | ac_status=$? |
---|
8396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8397 | (exit $ac_status); }; }; then |
---|
8398 | ac_header_compiler=yes |
---|
8399 | else |
---|
8400 | echo "$as_me: failed program was:" >&5 |
---|
8401 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8402 | |
---|
8403 | ac_header_compiler=no |
---|
8404 | fi |
---|
8405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8406 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8407 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8408 | |
---|
8409 | # Is the header present? |
---|
8410 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8411 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8412 | cat >conftest.$ac_ext <<_ACEOF |
---|
8413 | /* confdefs.h. */ |
---|
8414 | _ACEOF |
---|
8415 | cat confdefs.h >>conftest.$ac_ext |
---|
8416 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8417 | /* end confdefs.h. */ |
---|
8418 | #include <$ac_header> |
---|
8419 | _ACEOF |
---|
8420 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8421 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8422 | ac_status=$? |
---|
8423 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8424 | rm -f conftest.er1 |
---|
8425 | cat conftest.err >&5 |
---|
8426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8427 | (exit $ac_status); } >/dev/null; then |
---|
8428 | if test -s conftest.err; then |
---|
8429 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8430 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8431 | else |
---|
8432 | ac_cpp_err= |
---|
8433 | fi |
---|
8434 | else |
---|
8435 | ac_cpp_err=yes |
---|
8436 | fi |
---|
8437 | if test -z "$ac_cpp_err"; then |
---|
8438 | ac_header_preproc=yes |
---|
8439 | else |
---|
8440 | echo "$as_me: failed program was:" >&5 |
---|
8441 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8442 | |
---|
8443 | ac_header_preproc=no |
---|
8444 | fi |
---|
8445 | rm -f conftest.err conftest.$ac_ext |
---|
8446 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8447 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8448 | |
---|
8449 | # So? What about this header? |
---|
8450 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8451 | yes:no: ) |
---|
8452 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8453 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8454 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8455 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8456 | ac_header_preproc=yes |
---|
8457 | ;; |
---|
8458 | no:yes:* ) |
---|
8459 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8460 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8461 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8462 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8463 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8464 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8465 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8466 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8467 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8468 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8469 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8470 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8471 | ( |
---|
8472 | cat <<\_ASBOX |
---|
8473 | ## ---------------------------------------------- ## |
---|
8474 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8475 | ## ---------------------------------------------- ## |
---|
8476 | _ASBOX |
---|
8477 | ) | |
---|
8478 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8479 | ;; |
---|
8480 | esac |
---|
8481 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8482 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8483 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8485 | else |
---|
8486 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8487 | fi |
---|
8488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8489 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8490 | |
---|
8491 | fi |
---|
8492 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8493 | cat >>confdefs.h <<_ACEOF |
---|
8494 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8495 | _ACEOF |
---|
8496 | |
---|
8497 | else |
---|
8498 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
8499 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
8500 | { (exit 1); exit 1; }; } |
---|
8501 | fi |
---|
8502 | |
---|
8503 | done |
---|
8504 | |
---|
8505 | fi |
---|
8506 | |
---|
8507 | done |
---|
8508 | |
---|
8509 | # checking for SDL_ttf-lib |
---|
8510 | echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 |
---|
8511 | echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 |
---|
8512 | if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then |
---|
8513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8514 | else |
---|
8515 | ac_check_lib_save_LIBS=$LIBS |
---|
8516 | LIBS="-lSDL_ttf $LIBS" |
---|
8517 | cat >conftest.$ac_ext <<_ACEOF |
---|
8518 | /* confdefs.h. */ |
---|
8519 | _ACEOF |
---|
8520 | cat confdefs.h >>conftest.$ac_ext |
---|
8521 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8522 | /* end confdefs.h. */ |
---|
8523 | |
---|
8524 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8525 | #ifdef __cplusplus |
---|
8526 | extern "C" |
---|
8527 | #endif |
---|
8528 | /* We use char because int might match the return type of a gcc2 |
---|
8529 | builtin and then its argument prototype would still apply. */ |
---|
8530 | char TTF_OpenFont (); |
---|
8531 | int |
---|
8532 | main () |
---|
8533 | { |
---|
8534 | TTF_OpenFont (); |
---|
8535 | ; |
---|
8536 | return 0; |
---|
8537 | } |
---|
8538 | _ACEOF |
---|
8539 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8541 | (eval $ac_link) 2>conftest.er1 |
---|
8542 | ac_status=$? |
---|
8543 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8544 | rm -f conftest.er1 |
---|
8545 | cat conftest.err >&5 |
---|
8546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8547 | (exit $ac_status); } && |
---|
8548 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8549 | || test ! -s conftest.err' |
---|
8550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8551 | (eval $ac_try) 2>&5 |
---|
8552 | ac_status=$? |
---|
8553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8554 | (exit $ac_status); }; } && |
---|
8555 | { ac_try='test -s conftest$ac_exeext' |
---|
8556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8557 | (eval $ac_try) 2>&5 |
---|
8558 | ac_status=$? |
---|
8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8560 | (exit $ac_status); }; }; then |
---|
8561 | ac_cv_lib_SDL_ttf_TTF_OpenFont=yes |
---|
8562 | else |
---|
8563 | echo "$as_me: failed program was:" >&5 |
---|
8564 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8565 | |
---|
8566 | ac_cv_lib_SDL_ttf_TTF_OpenFont=no |
---|
8567 | fi |
---|
8568 | rm -f conftest.err conftest.$ac_objext \ |
---|
8569 | conftest$ac_exeext conftest.$ac_ext |
---|
8570 | LIBS=$ac_check_lib_save_LIBS |
---|
8571 | fi |
---|
8572 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 |
---|
8573 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 |
---|
8574 | if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then |
---|
8575 | FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf" |
---|
8576 | fi |
---|
8577 | |
---|
8578 | if test x$FOUND_SDL_ttf != xyes ; then |
---|
8579 | echo "------------------" |
---|
8580 | echo "SDL_ttf library not found." |
---|
8581 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
8582 | echo "------------------" |
---|
8583 | exit -1 |
---|
8584 | fi |
---|
8585 | |
---|
8586 | #-----------# |
---|
8587 | # SDL_Image # |
---|
8588 | #-----------# |
---|
8589 | # checking for SDL_image-headers |
---|
8590 | |
---|
8591 | for ac_header in SDL_image.h |
---|
8592 | do |
---|
8593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8599 | fi |
---|
8600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8602 | else |
---|
8603 | # Is the header compilable? |
---|
8604 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8606 | cat >conftest.$ac_ext <<_ACEOF |
---|
8607 | /* confdefs.h. */ |
---|
8608 | _ACEOF |
---|
8609 | cat confdefs.h >>conftest.$ac_ext |
---|
8610 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8611 | /* end confdefs.h. */ |
---|
8612 | $ac_includes_default |
---|
8613 | #include <$ac_header> |
---|
8614 | _ACEOF |
---|
8615 | rm -f conftest.$ac_objext |
---|
8616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8617 | (eval $ac_compile) 2>conftest.er1 |
---|
8618 | ac_status=$? |
---|
8619 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8620 | rm -f conftest.er1 |
---|
8621 | cat conftest.err >&5 |
---|
8622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8623 | (exit $ac_status); } && |
---|
8624 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8625 | || test ! -s conftest.err' |
---|
8626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8627 | (eval $ac_try) 2>&5 |
---|
8628 | ac_status=$? |
---|
8629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8630 | (exit $ac_status); }; } && |
---|
8631 | { ac_try='test -s conftest.$ac_objext' |
---|
8632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8633 | (eval $ac_try) 2>&5 |
---|
8634 | ac_status=$? |
---|
8635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8636 | (exit $ac_status); }; }; then |
---|
8637 | ac_header_compiler=yes |
---|
8638 | else |
---|
8639 | echo "$as_me: failed program was:" >&5 |
---|
8640 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8641 | |
---|
8642 | ac_header_compiler=no |
---|
8643 | fi |
---|
8644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8645 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8646 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8647 | |
---|
8648 | # Is the header present? |
---|
8649 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8650 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8651 | cat >conftest.$ac_ext <<_ACEOF |
---|
8652 | /* confdefs.h. */ |
---|
8653 | _ACEOF |
---|
8654 | cat confdefs.h >>conftest.$ac_ext |
---|
8655 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8656 | /* end confdefs.h. */ |
---|
8657 | #include <$ac_header> |
---|
8658 | _ACEOF |
---|
8659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8661 | ac_status=$? |
---|
8662 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8663 | rm -f conftest.er1 |
---|
8664 | cat conftest.err >&5 |
---|
8665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8666 | (exit $ac_status); } >/dev/null; then |
---|
8667 | if test -s conftest.err; then |
---|
8668 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8670 | else |
---|
8671 | ac_cpp_err= |
---|
8672 | fi |
---|
8673 | else |
---|
8674 | ac_cpp_err=yes |
---|
8675 | fi |
---|
8676 | if test -z "$ac_cpp_err"; then |
---|
8677 | ac_header_preproc=yes |
---|
8678 | else |
---|
8679 | echo "$as_me: failed program was:" >&5 |
---|
8680 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8681 | |
---|
8682 | ac_header_preproc=no |
---|
8683 | fi |
---|
8684 | rm -f conftest.err conftest.$ac_ext |
---|
8685 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8686 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8687 | |
---|
8688 | # So? What about this header? |
---|
8689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8690 | yes:no: ) |
---|
8691 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8692 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8694 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8695 | ac_header_preproc=yes |
---|
8696 | ;; |
---|
8697 | no:yes:* ) |
---|
8698 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8699 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8700 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8701 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8702 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8703 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8704 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8705 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8707 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8708 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8709 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8710 | ( |
---|
8711 | cat <<\_ASBOX |
---|
8712 | ## ---------------------------------------------- ## |
---|
8713 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8714 | ## ---------------------------------------------- ## |
---|
8715 | _ASBOX |
---|
8716 | ) | |
---|
8717 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8718 | ;; |
---|
8719 | esac |
---|
8720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8724 | else |
---|
8725 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8726 | fi |
---|
8727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8728 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8729 | |
---|
8730 | fi |
---|
8731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8732 | cat >>confdefs.h <<_ACEOF |
---|
8733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8734 | _ACEOF |
---|
8735 | |
---|
8736 | else |
---|
8737 | |
---|
8738 | for ac_header in SDL/SDL_image.h |
---|
8739 | do |
---|
8740 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8742 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8746 | fi |
---|
8747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8748 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8749 | else |
---|
8750 | # Is the header compilable? |
---|
8751 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8752 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8753 | cat >conftest.$ac_ext <<_ACEOF |
---|
8754 | /* confdefs.h. */ |
---|
8755 | _ACEOF |
---|
8756 | cat confdefs.h >>conftest.$ac_ext |
---|
8757 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8758 | /* end confdefs.h. */ |
---|
8759 | $ac_includes_default |
---|
8760 | #include <$ac_header> |
---|
8761 | _ACEOF |
---|
8762 | rm -f conftest.$ac_objext |
---|
8763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8764 | (eval $ac_compile) 2>conftest.er1 |
---|
8765 | ac_status=$? |
---|
8766 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8767 | rm -f conftest.er1 |
---|
8768 | cat conftest.err >&5 |
---|
8769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8770 | (exit $ac_status); } && |
---|
8771 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8772 | || test ! -s conftest.err' |
---|
8773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8774 | (eval $ac_try) 2>&5 |
---|
8775 | ac_status=$? |
---|
8776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8777 | (exit $ac_status); }; } && |
---|
8778 | { ac_try='test -s conftest.$ac_objext' |
---|
8779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8780 | (eval $ac_try) 2>&5 |
---|
8781 | ac_status=$? |
---|
8782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8783 | (exit $ac_status); }; }; then |
---|
8784 | ac_header_compiler=yes |
---|
8785 | else |
---|
8786 | echo "$as_me: failed program was:" >&5 |
---|
8787 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8788 | |
---|
8789 | ac_header_compiler=no |
---|
8790 | fi |
---|
8791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8792 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8793 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8794 | |
---|
8795 | # Is the header present? |
---|
8796 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8797 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8798 | cat >conftest.$ac_ext <<_ACEOF |
---|
8799 | /* confdefs.h. */ |
---|
8800 | _ACEOF |
---|
8801 | cat confdefs.h >>conftest.$ac_ext |
---|
8802 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8803 | /* end confdefs.h. */ |
---|
8804 | #include <$ac_header> |
---|
8805 | _ACEOF |
---|
8806 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8807 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8808 | ac_status=$? |
---|
8809 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8810 | rm -f conftest.er1 |
---|
8811 | cat conftest.err >&5 |
---|
8812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8813 | (exit $ac_status); } >/dev/null; then |
---|
8814 | if test -s conftest.err; then |
---|
8815 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8816 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8817 | else |
---|
8818 | ac_cpp_err= |
---|
8819 | fi |
---|
8820 | else |
---|
8821 | ac_cpp_err=yes |
---|
8822 | fi |
---|
8823 | if test -z "$ac_cpp_err"; then |
---|
8824 | ac_header_preproc=yes |
---|
8825 | else |
---|
8826 | echo "$as_me: failed program was:" >&5 |
---|
8827 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8828 | |
---|
8829 | ac_header_preproc=no |
---|
8830 | fi |
---|
8831 | rm -f conftest.err conftest.$ac_ext |
---|
8832 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8833 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8834 | |
---|
8835 | # So? What about this header? |
---|
8836 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8837 | yes:no: ) |
---|
8838 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8839 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8840 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8841 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8842 | ac_header_preproc=yes |
---|
8843 | ;; |
---|
8844 | no:yes:* ) |
---|
8845 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8846 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8847 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8848 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8849 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8850 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8851 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8852 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8854 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8855 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8856 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8857 | ( |
---|
8858 | cat <<\_ASBOX |
---|
8859 | ## ---------------------------------------------- ## |
---|
8860 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8861 | ## ---------------------------------------------- ## |
---|
8862 | _ASBOX |
---|
8863 | ) | |
---|
8864 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8865 | ;; |
---|
8866 | esac |
---|
8867 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8871 | else |
---|
8872 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8873 | fi |
---|
8874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8876 | |
---|
8877 | fi |
---|
8878 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8879 | cat >>confdefs.h <<_ACEOF |
---|
8880 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8881 | _ACEOF |
---|
8882 | |
---|
8883 | else |
---|
8884 | { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 |
---|
8885 | echo "$as_me: error: SDL_image header not found." >&2;} |
---|
8886 | { (exit 1); exit 1; }; } |
---|
8887 | fi |
---|
8888 | |
---|
8889 | done |
---|
8890 | |
---|
8891 | fi |
---|
8892 | |
---|
8893 | done |
---|
8894 | |
---|
8895 | # checking for SDL_image-lib |
---|
8896 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
8897 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
8898 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
8899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8900 | else |
---|
8901 | ac_check_lib_save_LIBS=$LIBS |
---|
8902 | LIBS="-lSDL_image $LIBS" |
---|
8903 | cat >conftest.$ac_ext <<_ACEOF |
---|
8904 | /* confdefs.h. */ |
---|
8905 | _ACEOF |
---|
8906 | cat confdefs.h >>conftest.$ac_ext |
---|
8907 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8908 | /* end confdefs.h. */ |
---|
8909 | |
---|
8910 | |
---|
8911 | int |
---|
8912 | main () |
---|
8913 | { |
---|
8914 | main (); |
---|
8915 | ; |
---|
8916 | return 0; |
---|
8917 | } |
---|
8918 | _ACEOF |
---|
8919 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8921 | (eval $ac_link) 2>conftest.er1 |
---|
8922 | ac_status=$? |
---|
8923 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8924 | rm -f conftest.er1 |
---|
8925 | cat conftest.err >&5 |
---|
8926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8927 | (exit $ac_status); } && |
---|
8928 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8929 | || test ! -s conftest.err' |
---|
8930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8931 | (eval $ac_try) 2>&5 |
---|
8932 | ac_status=$? |
---|
8933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8934 | (exit $ac_status); }; } && |
---|
8935 | { ac_try='test -s conftest$ac_exeext' |
---|
8936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8937 | (eval $ac_try) 2>&5 |
---|
8938 | ac_status=$? |
---|
8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8940 | (exit $ac_status); }; }; then |
---|
8941 | ac_cv_lib_SDL_image_main=yes |
---|
8942 | else |
---|
8943 | echo "$as_me: failed program was:" >&5 |
---|
8944 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8945 | |
---|
8946 | ac_cv_lib_SDL_image_main=no |
---|
8947 | fi |
---|
8948 | rm -f conftest.err conftest.$ac_objext \ |
---|
8949 | conftest$ac_exeext conftest.$ac_ext |
---|
8950 | LIBS=$ac_check_lib_save_LIBS |
---|
8951 | fi |
---|
8952 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
8953 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
8954 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
8955 | FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image" |
---|
8956 | fi |
---|
8957 | |
---|
8958 | if test x$FOUND_SDL_image != xyes ; then |
---|
8959 | echo "------------------" |
---|
8960 | echo "SDL_image library not found." |
---|
8961 | echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/" |
---|
8962 | echo "------------------" |
---|
8963 | exit -1 |
---|
8964 | fi |
---|
8965 | |
---|
8966 | #-----# |
---|
8967 | # ogg # |
---|
8968 | #-----# |
---|
8969 | # checking for ogg-headers |
---|
8970 | |
---|
8971 | for ac_header in ogg/ogg.h |
---|
8972 | do |
---|
8973 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8975 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8979 | fi |
---|
8980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8981 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8982 | else |
---|
8983 | # Is the header compilable? |
---|
8984 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8985 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8986 | cat >conftest.$ac_ext <<_ACEOF |
---|
8987 | /* confdefs.h. */ |
---|
8988 | _ACEOF |
---|
8989 | cat confdefs.h >>conftest.$ac_ext |
---|
8990 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8991 | /* end confdefs.h. */ |
---|
8992 | $ac_includes_default |
---|
8993 | #include <$ac_header> |
---|
8994 | _ACEOF |
---|
8995 | rm -f conftest.$ac_objext |
---|
8996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8997 | (eval $ac_compile) 2>conftest.er1 |
---|
8998 | ac_status=$? |
---|
8999 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9000 | rm -f conftest.er1 |
---|
9001 | cat conftest.err >&5 |
---|
9002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9003 | (exit $ac_status); } && |
---|
9004 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9005 | || test ! -s conftest.err' |
---|
9006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9007 | (eval $ac_try) 2>&5 |
---|
9008 | ac_status=$? |
---|
9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9010 | (exit $ac_status); }; } && |
---|
9011 | { ac_try='test -s conftest.$ac_objext' |
---|
9012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9013 | (eval $ac_try) 2>&5 |
---|
9014 | ac_status=$? |
---|
9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9016 | (exit $ac_status); }; }; then |
---|
9017 | ac_header_compiler=yes |
---|
9018 | else |
---|
9019 | echo "$as_me: failed program was:" >&5 |
---|
9020 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9021 | |
---|
9022 | ac_header_compiler=no |
---|
9023 | fi |
---|
9024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9025 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9026 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9027 | |
---|
9028 | # Is the header present? |
---|
9029 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9030 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9031 | cat >conftest.$ac_ext <<_ACEOF |
---|
9032 | /* confdefs.h. */ |
---|
9033 | _ACEOF |
---|
9034 | cat confdefs.h >>conftest.$ac_ext |
---|
9035 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9036 | /* end confdefs.h. */ |
---|
9037 | #include <$ac_header> |
---|
9038 | _ACEOF |
---|
9039 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9040 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9041 | ac_status=$? |
---|
9042 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9043 | rm -f conftest.er1 |
---|
9044 | cat conftest.err >&5 |
---|
9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9046 | (exit $ac_status); } >/dev/null; then |
---|
9047 | if test -s conftest.err; then |
---|
9048 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9049 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9050 | else |
---|
9051 | ac_cpp_err= |
---|
9052 | fi |
---|
9053 | else |
---|
9054 | ac_cpp_err=yes |
---|
9055 | fi |
---|
9056 | if test -z "$ac_cpp_err"; then |
---|
9057 | ac_header_preproc=yes |
---|
9058 | else |
---|
9059 | echo "$as_me: failed program was:" >&5 |
---|
9060 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9061 | |
---|
9062 | ac_header_preproc=no |
---|
9063 | fi |
---|
9064 | rm -f conftest.err conftest.$ac_ext |
---|
9065 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9066 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9067 | |
---|
9068 | # So? What about this header? |
---|
9069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9070 | yes:no: ) |
---|
9071 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9072 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9074 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9075 | ac_header_preproc=yes |
---|
9076 | ;; |
---|
9077 | no:yes:* ) |
---|
9078 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9079 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9080 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9081 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9082 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9083 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9084 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9085 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9088 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9089 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9090 | ( |
---|
9091 | cat <<\_ASBOX |
---|
9092 | ## ---------------------------------------------- ## |
---|
9093 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9094 | ## ---------------------------------------------- ## |
---|
9095 | _ASBOX |
---|
9096 | ) | |
---|
9097 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9098 | ;; |
---|
9099 | esac |
---|
9100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9104 | else |
---|
9105 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9106 | fi |
---|
9107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9109 | |
---|
9110 | fi |
---|
9111 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9112 | cat >>confdefs.h <<_ACEOF |
---|
9113 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9114 | _ACEOF |
---|
9115 | |
---|
9116 | else |
---|
9117 | { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5 |
---|
9118 | echo "$as_me: error: cannot find ogg header." >&2;} |
---|
9119 | { (exit 1); exit 1; }; } |
---|
9120 | fi |
---|
9121 | |
---|
9122 | done |
---|
9123 | |
---|
9124 | # checking for ogg-lib |
---|
9125 | echo "$as_me:$LINENO: checking for main in -logg" >&5 |
---|
9126 | echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 |
---|
9127 | if test "${ac_cv_lib_ogg_main+set}" = set; then |
---|
9128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9129 | else |
---|
9130 | ac_check_lib_save_LIBS=$LIBS |
---|
9131 | LIBS="-logg $LIBS" |
---|
9132 | cat >conftest.$ac_ext <<_ACEOF |
---|
9133 | /* confdefs.h. */ |
---|
9134 | _ACEOF |
---|
9135 | cat confdefs.h >>conftest.$ac_ext |
---|
9136 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9137 | /* end confdefs.h. */ |
---|
9138 | |
---|
9139 | |
---|
9140 | int |
---|
9141 | main () |
---|
9142 | { |
---|
9143 | main (); |
---|
9144 | ; |
---|
9145 | return 0; |
---|
9146 | } |
---|
9147 | _ACEOF |
---|
9148 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9150 | (eval $ac_link) 2>conftest.er1 |
---|
9151 | ac_status=$? |
---|
9152 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9153 | rm -f conftest.er1 |
---|
9154 | cat conftest.err >&5 |
---|
9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9156 | (exit $ac_status); } && |
---|
9157 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9158 | || test ! -s conftest.err' |
---|
9159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9160 | (eval $ac_try) 2>&5 |
---|
9161 | ac_status=$? |
---|
9162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9163 | (exit $ac_status); }; } && |
---|
9164 | { ac_try='test -s conftest$ac_exeext' |
---|
9165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9166 | (eval $ac_try) 2>&5 |
---|
9167 | ac_status=$? |
---|
9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9169 | (exit $ac_status); }; }; then |
---|
9170 | ac_cv_lib_ogg_main=yes |
---|
9171 | else |
---|
9172 | echo "$as_me: failed program was:" >&5 |
---|
9173 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9174 | |
---|
9175 | ac_cv_lib_ogg_main=no |
---|
9176 | fi |
---|
9177 | rm -f conftest.err conftest.$ac_objext \ |
---|
9178 | conftest$ac_exeext conftest.$ac_ext |
---|
9179 | LIBS=$ac_check_lib_save_LIBS |
---|
9180 | fi |
---|
9181 | echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 |
---|
9182 | echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 |
---|
9183 | if test $ac_cv_lib_ogg_main = yes; then |
---|
9184 | FOUND_ogg=yes; LIBS="$LIBS -logg" |
---|
9185 | fi |
---|
9186 | |
---|
9187 | if test x$FOUND_ogg != xyes ; then |
---|
9188 | echo "------------------" |
---|
9189 | echo "ogg library not found." |
---|
9190 | echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
9191 | echo "------------------" |
---|
9192 | exit -1 |
---|
9193 | fi |
---|
9194 | |
---|
9195 | #--------# |
---|
9196 | # vorbis # |
---|
9197 | #--------# |
---|
9198 | # checking for vorbis-lib |
---|
9199 | echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 |
---|
9200 | echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 |
---|
9201 | if test "${ac_cv_lib_vorbis_main+set}" = set; then |
---|
9202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9203 | else |
---|
9204 | ac_check_lib_save_LIBS=$LIBS |
---|
9205 | LIBS="-lvorbis $LIBS" |
---|
9206 | cat >conftest.$ac_ext <<_ACEOF |
---|
9207 | /* confdefs.h. */ |
---|
9208 | _ACEOF |
---|
9209 | cat confdefs.h >>conftest.$ac_ext |
---|
9210 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9211 | /* end confdefs.h. */ |
---|
9212 | |
---|
9213 | |
---|
9214 | int |
---|
9215 | main () |
---|
9216 | { |
---|
9217 | main (); |
---|
9218 | ; |
---|
9219 | return 0; |
---|
9220 | } |
---|
9221 | _ACEOF |
---|
9222 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9224 | (eval $ac_link) 2>conftest.er1 |
---|
9225 | ac_status=$? |
---|
9226 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9227 | rm -f conftest.er1 |
---|
9228 | cat conftest.err >&5 |
---|
9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9230 | (exit $ac_status); } && |
---|
9231 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9232 | || test ! -s conftest.err' |
---|
9233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9234 | (eval $ac_try) 2>&5 |
---|
9235 | ac_status=$? |
---|
9236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9237 | (exit $ac_status); }; } && |
---|
9238 | { ac_try='test -s conftest$ac_exeext' |
---|
9239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9240 | (eval $ac_try) 2>&5 |
---|
9241 | ac_status=$? |
---|
9242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9243 | (exit $ac_status); }; }; then |
---|
9244 | ac_cv_lib_vorbis_main=yes |
---|
9245 | else |
---|
9246 | echo "$as_me: failed program was:" >&5 |
---|
9247 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9248 | |
---|
9249 | ac_cv_lib_vorbis_main=no |
---|
9250 | fi |
---|
9251 | rm -f conftest.err conftest.$ac_objext \ |
---|
9252 | conftest$ac_exeext conftest.$ac_ext |
---|
9253 | LIBS=$ac_check_lib_save_LIBS |
---|
9254 | fi |
---|
9255 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 |
---|
9256 | echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 |
---|
9257 | if test $ac_cv_lib_vorbis_main = yes; then |
---|
9258 | FOUND_vorbis=yes; LIBS="$LIBS -lvorbis" |
---|
9259 | fi |
---|
9260 | |
---|
9261 | if test x$FOUND_vorbis != xyes ; then |
---|
9262 | echo "------------------" |
---|
9263 | echo "vorbis library not found." |
---|
9264 | echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
9265 | echo "------------------" |
---|
9266 | exit -1 |
---|
9267 | fi |
---|
9268 | |
---|
9269 | #------------# |
---|
9270 | # vorbisfile # |
---|
9271 | #------------# |
---|
9272 | # checking for vorbis-headers |
---|
9273 | |
---|
9274 | for ac_header in vorbis/vorbisfile.h |
---|
9275 | do |
---|
9276 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9277 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9278 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9279 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9280 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9282 | fi |
---|
9283 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9284 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9285 | else |
---|
9286 | # Is the header compilable? |
---|
9287 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9288 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9289 | cat >conftest.$ac_ext <<_ACEOF |
---|
9290 | /* confdefs.h. */ |
---|
9291 | _ACEOF |
---|
9292 | cat confdefs.h >>conftest.$ac_ext |
---|
9293 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9294 | /* end confdefs.h. */ |
---|
9295 | $ac_includes_default |
---|
9296 | #include <$ac_header> |
---|
9297 | _ACEOF |
---|
9298 | rm -f conftest.$ac_objext |
---|
9299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9300 | (eval $ac_compile) 2>conftest.er1 |
---|
9301 | ac_status=$? |
---|
9302 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9303 | rm -f conftest.er1 |
---|
9304 | cat conftest.err >&5 |
---|
9305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9306 | (exit $ac_status); } && |
---|
9307 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9308 | || test ! -s conftest.err' |
---|
9309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9310 | (eval $ac_try) 2>&5 |
---|
9311 | ac_status=$? |
---|
9312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9313 | (exit $ac_status); }; } && |
---|
9314 | { ac_try='test -s conftest.$ac_objext' |
---|
9315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9316 | (eval $ac_try) 2>&5 |
---|
9317 | ac_status=$? |
---|
9318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9319 | (exit $ac_status); }; }; then |
---|
9320 | ac_header_compiler=yes |
---|
9321 | else |
---|
9322 | echo "$as_me: failed program was:" >&5 |
---|
9323 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9324 | |
---|
9325 | ac_header_compiler=no |
---|
9326 | fi |
---|
9327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9328 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9329 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9330 | |
---|
9331 | # Is the header present? |
---|
9332 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9333 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9334 | cat >conftest.$ac_ext <<_ACEOF |
---|
9335 | /* confdefs.h. */ |
---|
9336 | _ACEOF |
---|
9337 | cat confdefs.h >>conftest.$ac_ext |
---|
9338 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9339 | /* end confdefs.h. */ |
---|
9340 | #include <$ac_header> |
---|
9341 | _ACEOF |
---|
9342 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9343 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9344 | ac_status=$? |
---|
9345 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9346 | rm -f conftest.er1 |
---|
9347 | cat conftest.err >&5 |
---|
9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9349 | (exit $ac_status); } >/dev/null; then |
---|
9350 | if test -s conftest.err; then |
---|
9351 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9352 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9353 | else |
---|
9354 | ac_cpp_err= |
---|
9355 | fi |
---|
9356 | else |
---|
9357 | ac_cpp_err=yes |
---|
9358 | fi |
---|
9359 | if test -z "$ac_cpp_err"; then |
---|
9360 | ac_header_preproc=yes |
---|
9361 | else |
---|
9362 | echo "$as_me: failed program was:" >&5 |
---|
9363 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9364 | |
---|
9365 | ac_header_preproc=no |
---|
9366 | fi |
---|
9367 | rm -f conftest.err conftest.$ac_ext |
---|
9368 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9369 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9370 | |
---|
9371 | # So? What about this header? |
---|
9372 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9373 | yes:no: ) |
---|
9374 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9375 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9376 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9377 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9378 | ac_header_preproc=yes |
---|
9379 | ;; |
---|
9380 | no:yes:* ) |
---|
9381 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9382 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9383 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9384 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9385 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9386 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9387 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9388 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9389 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9390 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9391 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9392 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9393 | ( |
---|
9394 | cat <<\_ASBOX |
---|
9395 | ## ---------------------------------------------- ## |
---|
9396 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9397 | ## ---------------------------------------------- ## |
---|
9398 | _ASBOX |
---|
9399 | ) | |
---|
9400 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9401 | ;; |
---|
9402 | esac |
---|
9403 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9404 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9405 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9407 | else |
---|
9408 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9409 | fi |
---|
9410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9411 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9412 | |
---|
9413 | fi |
---|
9414 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9415 | cat >>confdefs.h <<_ACEOF |
---|
9416 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9417 | _ACEOF |
---|
9418 | |
---|
9419 | else |
---|
9420 | { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 |
---|
9421 | echo "$as_me: error: cannot find vorbisfile header." >&2;} |
---|
9422 | { (exit 1); exit 1; }; } |
---|
9423 | fi |
---|
9424 | |
---|
9425 | done |
---|
9426 | |
---|
9427 | # checking for vorbisfile-lib |
---|
9428 | echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 |
---|
9429 | echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 |
---|
9430 | if test "${ac_cv_lib_vorbisfile_main+set}" = set; then |
---|
9431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9432 | else |
---|
9433 | ac_check_lib_save_LIBS=$LIBS |
---|
9434 | LIBS="-lvorbisfile $LIBS" |
---|
9435 | cat >conftest.$ac_ext <<_ACEOF |
---|
9436 | /* confdefs.h. */ |
---|
9437 | _ACEOF |
---|
9438 | cat confdefs.h >>conftest.$ac_ext |
---|
9439 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9440 | /* end confdefs.h. */ |
---|
9441 | |
---|
9442 | |
---|
9443 | int |
---|
9444 | main () |
---|
9445 | { |
---|
9446 | main (); |
---|
9447 | ; |
---|
9448 | return 0; |
---|
9449 | } |
---|
9450 | _ACEOF |
---|
9451 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9453 | (eval $ac_link) 2>conftest.er1 |
---|
9454 | ac_status=$? |
---|
9455 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9456 | rm -f conftest.er1 |
---|
9457 | cat conftest.err >&5 |
---|
9458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9459 | (exit $ac_status); } && |
---|
9460 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9461 | || test ! -s conftest.err' |
---|
9462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9463 | (eval $ac_try) 2>&5 |
---|
9464 | ac_status=$? |
---|
9465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9466 | (exit $ac_status); }; } && |
---|
9467 | { ac_try='test -s conftest$ac_exeext' |
---|
9468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9469 | (eval $ac_try) 2>&5 |
---|
9470 | ac_status=$? |
---|
9471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9472 | (exit $ac_status); }; }; then |
---|
9473 | ac_cv_lib_vorbisfile_main=yes |
---|
9474 | else |
---|
9475 | echo "$as_me: failed program was:" >&5 |
---|
9476 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9477 | |
---|
9478 | ac_cv_lib_vorbisfile_main=no |
---|
9479 | fi |
---|
9480 | rm -f conftest.err conftest.$ac_objext \ |
---|
9481 | conftest$ac_exeext conftest.$ac_ext |
---|
9482 | LIBS=$ac_check_lib_save_LIBS |
---|
9483 | fi |
---|
9484 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 |
---|
9485 | echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 |
---|
9486 | if test $ac_cv_lib_vorbisfile_main = yes; then |
---|
9487 | FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile" |
---|
9488 | fi |
---|
9489 | |
---|
9490 | if test x$FOUND_vorbisfile != xyes ; then |
---|
9491 | echo "------------------" |
---|
9492 | echo "vorbisfile library not found." |
---|
9493 | echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
9494 | echo "------------------" |
---|
9495 | exit -1 |
---|
9496 | fi |
---|
9497 | |
---|
9498 | |
---|
9499 | #---------# |
---|
9500 | # libcURL # |
---|
9501 | #---------# |
---|
9502 | if test x$def_curl = xyes; then |
---|
9503 | |
---|
9504 | for ac_header in curl/curl.h |
---|
9505 | do |
---|
9506 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9508 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9510 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9512 | fi |
---|
9513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9515 | else |
---|
9516 | # Is the header compilable? |
---|
9517 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9518 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9519 | cat >conftest.$ac_ext <<_ACEOF |
---|
9520 | /* confdefs.h. */ |
---|
9521 | _ACEOF |
---|
9522 | cat confdefs.h >>conftest.$ac_ext |
---|
9523 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9524 | /* end confdefs.h. */ |
---|
9525 | $ac_includes_default |
---|
9526 | #include <$ac_header> |
---|
9527 | _ACEOF |
---|
9528 | rm -f conftest.$ac_objext |
---|
9529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9530 | (eval $ac_compile) 2>conftest.er1 |
---|
9531 | ac_status=$? |
---|
9532 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9533 | rm -f conftest.er1 |
---|
9534 | cat conftest.err >&5 |
---|
9535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9536 | (exit $ac_status); } && |
---|
9537 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9538 | || test ! -s conftest.err' |
---|
9539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9540 | (eval $ac_try) 2>&5 |
---|
9541 | ac_status=$? |
---|
9542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9543 | (exit $ac_status); }; } && |
---|
9544 | { ac_try='test -s conftest.$ac_objext' |
---|
9545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9546 | (eval $ac_try) 2>&5 |
---|
9547 | ac_status=$? |
---|
9548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9549 | (exit $ac_status); }; }; then |
---|
9550 | ac_header_compiler=yes |
---|
9551 | else |
---|
9552 | echo "$as_me: failed program was:" >&5 |
---|
9553 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9554 | |
---|
9555 | ac_header_compiler=no |
---|
9556 | fi |
---|
9557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9558 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9559 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9560 | |
---|
9561 | # Is the header present? |
---|
9562 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9563 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9564 | cat >conftest.$ac_ext <<_ACEOF |
---|
9565 | /* confdefs.h. */ |
---|
9566 | _ACEOF |
---|
9567 | cat confdefs.h >>conftest.$ac_ext |
---|
9568 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9569 | /* end confdefs.h. */ |
---|
9570 | #include <$ac_header> |
---|
9571 | _ACEOF |
---|
9572 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9574 | ac_status=$? |
---|
9575 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9576 | rm -f conftest.er1 |
---|
9577 | cat conftest.err >&5 |
---|
9578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9579 | (exit $ac_status); } >/dev/null; then |
---|
9580 | if test -s conftest.err; then |
---|
9581 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9582 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9583 | else |
---|
9584 | ac_cpp_err= |
---|
9585 | fi |
---|
9586 | else |
---|
9587 | ac_cpp_err=yes |
---|
9588 | fi |
---|
9589 | if test -z "$ac_cpp_err"; then |
---|
9590 | ac_header_preproc=yes |
---|
9591 | else |
---|
9592 | echo "$as_me: failed program was:" >&5 |
---|
9593 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9594 | |
---|
9595 | ac_header_preproc=no |
---|
9596 | fi |
---|
9597 | rm -f conftest.err conftest.$ac_ext |
---|
9598 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9599 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9600 | |
---|
9601 | # So? What about this header? |
---|
9602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9603 | yes:no: ) |
---|
9604 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9605 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9607 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9608 | ac_header_preproc=yes |
---|
9609 | ;; |
---|
9610 | no:yes:* ) |
---|
9611 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9612 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9613 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9614 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9615 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9616 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9617 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9618 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9620 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9621 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9622 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9623 | ( |
---|
9624 | cat <<\_ASBOX |
---|
9625 | ## ---------------------------------------------- ## |
---|
9626 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9627 | ## ---------------------------------------------- ## |
---|
9628 | _ASBOX |
---|
9629 | ) | |
---|
9630 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9631 | ;; |
---|
9632 | esac |
---|
9633 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9637 | else |
---|
9638 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9639 | fi |
---|
9640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9641 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9642 | |
---|
9643 | fi |
---|
9644 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9645 | cat >>confdefs.h <<_ACEOF |
---|
9646 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9647 | _ACEOF |
---|
9648 | curlHeader=yes |
---|
9649 | else |
---|
9650 | curlHeader=no |
---|
9651 | fi |
---|
9652 | |
---|
9653 | done |
---|
9654 | |
---|
9655 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
9656 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
9657 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
9658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9659 | else |
---|
9660 | ac_check_lib_save_LIBS=$LIBS |
---|
9661 | LIBS="-lcurl $LIBS" |
---|
9662 | cat >conftest.$ac_ext <<_ACEOF |
---|
9663 | /* confdefs.h. */ |
---|
9664 | _ACEOF |
---|
9665 | cat confdefs.h >>conftest.$ac_ext |
---|
9666 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9667 | /* end confdefs.h. */ |
---|
9668 | |
---|
9669 | |
---|
9670 | int |
---|
9671 | main () |
---|
9672 | { |
---|
9673 | main (); |
---|
9674 | ; |
---|
9675 | return 0; |
---|
9676 | } |
---|
9677 | _ACEOF |
---|
9678 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9680 | (eval $ac_link) 2>conftest.er1 |
---|
9681 | ac_status=$? |
---|
9682 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9683 | rm -f conftest.er1 |
---|
9684 | cat conftest.err >&5 |
---|
9685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9686 | (exit $ac_status); } && |
---|
9687 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9688 | || test ! -s conftest.err' |
---|
9689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9690 | (eval $ac_try) 2>&5 |
---|
9691 | ac_status=$? |
---|
9692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9693 | (exit $ac_status); }; } && |
---|
9694 | { ac_try='test -s conftest$ac_exeext' |
---|
9695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9696 | (eval $ac_try) 2>&5 |
---|
9697 | ac_status=$? |
---|
9698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9699 | (exit $ac_status); }; }; then |
---|
9700 | ac_cv_lib_curl_main=yes |
---|
9701 | else |
---|
9702 | echo "$as_me: failed program was:" >&5 |
---|
9703 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9704 | |
---|
9705 | ac_cv_lib_curl_main=no |
---|
9706 | fi |
---|
9707 | rm -f conftest.err conftest.$ac_objext \ |
---|
9708 | conftest$ac_exeext conftest.$ac_ext |
---|
9709 | LIBS=$ac_check_lib_save_LIBS |
---|
9710 | fi |
---|
9711 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
9712 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
9713 | if test $ac_cv_lib_curl_main = yes; then |
---|
9714 | FOUND_curl=yes |
---|
9715 | fi |
---|
9716 | |
---|
9717 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
9718 | have_curl=yes |
---|
9719 | CURL_LIBS=`curl-config --libs` |
---|
9720 | CURLCFLAGS=`curl-config --cflags` |
---|
9721 | |
---|
9722 | cat >>confdefs.h <<_ACEOF |
---|
9723 | #define HAVE_CURL 1 |
---|
9724 | _ACEOF |
---|
9725 | |
---|
9726 | else |
---|
9727 | have_curl=no |
---|
9728 | fi |
---|
9729 | |
---|
9730 | fi |
---|
9731 | |
---|
9732 | |
---|
9733 | |
---|
9734 | |
---|
9735 | if test x$have_curl = xyes; then |
---|
9736 | HAVE_CURL_TRUE= |
---|
9737 | HAVE_CURL_FALSE='#' |
---|
9738 | else |
---|
9739 | HAVE_CURL_TRUE='#' |
---|
9740 | HAVE_CURL_FALSE= |
---|
9741 | fi |
---|
9742 | |
---|
9743 | |
---|
9744 | #--------# |
---|
9745 | # efence # |
---|
9746 | #--------# |
---|
9747 | if test x$def_efence = xyes ; then |
---|
9748 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
9749 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
9750 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
9751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9752 | else |
---|
9753 | ac_check_lib_save_LIBS=$LIBS |
---|
9754 | LIBS="-lefence $LIBS" |
---|
9755 | cat >conftest.$ac_ext <<_ACEOF |
---|
9756 | /* confdefs.h. */ |
---|
9757 | _ACEOF |
---|
9758 | cat confdefs.h >>conftest.$ac_ext |
---|
9759 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9760 | /* end confdefs.h. */ |
---|
9761 | |
---|
9762 | |
---|
9763 | int |
---|
9764 | main () |
---|
9765 | { |
---|
9766 | main (); |
---|
9767 | ; |
---|
9768 | return 0; |
---|
9769 | } |
---|
9770 | _ACEOF |
---|
9771 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9773 | (eval $ac_link) 2>conftest.er1 |
---|
9774 | ac_status=$? |
---|
9775 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9776 | rm -f conftest.er1 |
---|
9777 | cat conftest.err >&5 |
---|
9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9779 | (exit $ac_status); } && |
---|
9780 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9781 | || test ! -s conftest.err' |
---|
9782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9783 | (eval $ac_try) 2>&5 |
---|
9784 | ac_status=$? |
---|
9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9786 | (exit $ac_status); }; } && |
---|
9787 | { ac_try='test -s conftest$ac_exeext' |
---|
9788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9789 | (eval $ac_try) 2>&5 |
---|
9790 | ac_status=$? |
---|
9791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9792 | (exit $ac_status); }; }; then |
---|
9793 | ac_cv_lib_efence_main=yes |
---|
9794 | else |
---|
9795 | echo "$as_me: failed program was:" >&5 |
---|
9796 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9797 | |
---|
9798 | ac_cv_lib_efence_main=no |
---|
9799 | fi |
---|
9800 | rm -f conftest.err conftest.$ac_objext \ |
---|
9801 | conftest$ac_exeext conftest.$ac_ext |
---|
9802 | LIBS=$ac_check_lib_save_LIBS |
---|
9803 | fi |
---|
9804 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
9805 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
9806 | if test $ac_cv_lib_efence_main = yes; then |
---|
9807 | FOUND_efence=yes; LIBS="$LIBS -lefence" |
---|
9808 | fi |
---|
9809 | |
---|
9810 | if test x$FOUND_efence != xyes ; then |
---|
9811 | echo "efence was requested, but is not installed!! going on" |
---|
9812 | fi |
---|
9813 | |
---|
9814 | fi |
---|
9815 | |
---|
9816 | #-----# |
---|
9817 | # GTK # |
---|
9818 | #-----# |
---|
9819 | if test x$def_gtk = xyes; then |
---|
9820 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
9821 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
9822 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
9823 | if `$PKG_CONFIG --exists gtk+-2.0`; then |
---|
9824 | echo "yes" |
---|
9825 | have_gtk2=yes |
---|
9826 | GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
---|
9827 | GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
---|
9828 | |
---|
9829 | cat >>confdefs.h <<_ACEOF |
---|
9830 | #define HAVE_GTK2 1 |
---|
9831 | _ACEOF |
---|
9832 | |
---|
9833 | if test $DEBUG -ge 3; then |
---|
9834 | echo "cflags: $GTK2_CFLAGS" |
---|
9835 | echo "libs: $GTK2_LIBS" |
---|
9836 | fi |
---|
9837 | else |
---|
9838 | echo "no" |
---|
9839 | fi |
---|
9840 | |
---|
9841 | fi |
---|
9842 | |
---|
9843 | |
---|
9844 | |
---|
9845 | |
---|
9846 | if test x$have_gtk2 = xyes; then |
---|
9847 | HAVE_GTK2_TRUE= |
---|
9848 | HAVE_GTK2_FALSE='#' |
---|
9849 | else |
---|
9850 | HAVE_GTK2_TRUE='#' |
---|
9851 | HAVE_GTK2_FALSE= |
---|
9852 | fi |
---|
9853 | |
---|
9854 | |
---|
9855 | |
---|
9856 | # FIXME: Replace `main' with a function in `-lm': |
---|
9857 | |
---|
9858 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
9859 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
9860 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
9861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9862 | else |
---|
9863 | ac_check_lib_save_LIBS=$LIBS |
---|
9864 | LIBS="-lm $LIBS" |
---|
9865 | cat >conftest.$ac_ext <<_ACEOF |
---|
9866 | /* confdefs.h. */ |
---|
9867 | _ACEOF |
---|
9868 | cat confdefs.h >>conftest.$ac_ext |
---|
9869 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9870 | /* end confdefs.h. */ |
---|
9871 | |
---|
9872 | |
---|
9873 | int |
---|
9874 | main () |
---|
9875 | { |
---|
9876 | main (); |
---|
9877 | ; |
---|
9878 | return 0; |
---|
9879 | } |
---|
9880 | _ACEOF |
---|
9881 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9883 | (eval $ac_link) 2>conftest.er1 |
---|
9884 | ac_status=$? |
---|
9885 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9886 | rm -f conftest.er1 |
---|
9887 | cat conftest.err >&5 |
---|
9888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9889 | (exit $ac_status); } && |
---|
9890 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9891 | || test ! -s conftest.err' |
---|
9892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9893 | (eval $ac_try) 2>&5 |
---|
9894 | ac_status=$? |
---|
9895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9896 | (exit $ac_status); }; } && |
---|
9897 | { ac_try='test -s conftest$ac_exeext' |
---|
9898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9899 | (eval $ac_try) 2>&5 |
---|
9900 | ac_status=$? |
---|
9901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9902 | (exit $ac_status); }; }; then |
---|
9903 | ac_cv_lib_m_main=yes |
---|
9904 | else |
---|
9905 | echo "$as_me: failed program was:" >&5 |
---|
9906 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9907 | |
---|
9908 | ac_cv_lib_m_main=no |
---|
9909 | fi |
---|
9910 | rm -f conftest.err conftest.$ac_objext \ |
---|
9911 | conftest$ac_exeext conftest.$ac_ext |
---|
9912 | LIBS=$ac_check_lib_save_LIBS |
---|
9913 | fi |
---|
9914 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
9915 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
9916 | if test $ac_cv_lib_m_main = yes; then |
---|
9917 | cat >>confdefs.h <<_ACEOF |
---|
9918 | #define HAVE_LIBM 1 |
---|
9919 | _ACEOF |
---|
9920 | |
---|
9921 | LIBS="-lm $LIBS" |
---|
9922 | |
---|
9923 | fi |
---|
9924 | |
---|
9925 | |
---|
9926 | |
---|
9927 | # Checks for header files. |
---|
9928 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
9929 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
9930 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
9931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9932 | else |
---|
9933 | cat >conftest.$ac_ext <<_ACEOF |
---|
9934 | /* confdefs.h. */ |
---|
9935 | _ACEOF |
---|
9936 | cat confdefs.h >>conftest.$ac_ext |
---|
9937 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9938 | /* end confdefs.h. */ |
---|
9939 | #include <stdlib.h> |
---|
9940 | #include <stdarg.h> |
---|
9941 | #include <string.h> |
---|
9942 | #include <float.h> |
---|
9943 | |
---|
9944 | int |
---|
9945 | main () |
---|
9946 | { |
---|
9947 | |
---|
9948 | ; |
---|
9949 | return 0; |
---|
9950 | } |
---|
9951 | _ACEOF |
---|
9952 | rm -f conftest.$ac_objext |
---|
9953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9954 | (eval $ac_compile) 2>conftest.er1 |
---|
9955 | ac_status=$? |
---|
9956 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9957 | rm -f conftest.er1 |
---|
9958 | cat conftest.err >&5 |
---|
9959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9960 | (exit $ac_status); } && |
---|
9961 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9962 | || test ! -s conftest.err' |
---|
9963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9964 | (eval $ac_try) 2>&5 |
---|
9965 | ac_status=$? |
---|
9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9967 | (exit $ac_status); }; } && |
---|
9968 | { ac_try='test -s conftest.$ac_objext' |
---|
9969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9970 | (eval $ac_try) 2>&5 |
---|
9971 | ac_status=$? |
---|
9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9973 | (exit $ac_status); }; }; then |
---|
9974 | ac_cv_header_stdc=yes |
---|
9975 | else |
---|
9976 | echo "$as_me: failed program was:" >&5 |
---|
9977 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9978 | |
---|
9979 | ac_cv_header_stdc=no |
---|
9980 | fi |
---|
9981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9982 | |
---|
9983 | if test $ac_cv_header_stdc = yes; then |
---|
9984 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
9985 | cat >conftest.$ac_ext <<_ACEOF |
---|
9986 | /* confdefs.h. */ |
---|
9987 | _ACEOF |
---|
9988 | cat confdefs.h >>conftest.$ac_ext |
---|
9989 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9990 | /* end confdefs.h. */ |
---|
9991 | #include <string.h> |
---|
9992 | |
---|
9993 | _ACEOF |
---|
9994 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
9995 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
9996 | : |
---|
9997 | else |
---|
9998 | ac_cv_header_stdc=no |
---|
9999 | fi |
---|
10000 | rm -f conftest* |
---|
10001 | |
---|
10002 | fi |
---|
10003 | |
---|
10004 | if test $ac_cv_header_stdc = yes; then |
---|
10005 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
10006 | cat >conftest.$ac_ext <<_ACEOF |
---|
10007 | /* confdefs.h. */ |
---|
10008 | _ACEOF |
---|
10009 | cat confdefs.h >>conftest.$ac_ext |
---|
10010 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10011 | /* end confdefs.h. */ |
---|
10012 | #include <stdlib.h> |
---|
10013 | |
---|
10014 | _ACEOF |
---|
10015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
10016 | $EGREP "free" >/dev/null 2>&1; then |
---|
10017 | : |
---|
10018 | else |
---|
10019 | ac_cv_header_stdc=no |
---|
10020 | fi |
---|
10021 | rm -f conftest* |
---|
10022 | |
---|
10023 | fi |
---|
10024 | |
---|
10025 | if test $ac_cv_header_stdc = yes; then |
---|
10026 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
10027 | if test "$cross_compiling" = yes; then |
---|
10028 | : |
---|
10029 | else |
---|
10030 | cat >conftest.$ac_ext <<_ACEOF |
---|
10031 | /* confdefs.h. */ |
---|
10032 | _ACEOF |
---|
10033 | cat confdefs.h >>conftest.$ac_ext |
---|
10034 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10035 | /* end confdefs.h. */ |
---|
10036 | #include <ctype.h> |
---|
10037 | #if ((' ' & 0x0FF) == 0x020) |
---|
10038 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
10039 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
10040 | #else |
---|
10041 | # define ISLOWER(c) \ |
---|
10042 | (('a' <= (c) && (c) <= 'i') \ |
---|
10043 | || ('j' <= (c) && (c) <= 'r') \ |
---|
10044 | || ('s' <= (c) && (c) <= 'z')) |
---|
10045 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
10046 | #endif |
---|
10047 | |
---|
10048 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
10049 | int |
---|
10050 | main () |
---|
10051 | { |
---|
10052 | int i; |
---|
10053 | for (i = 0; i < 256; i++) |
---|
10054 | if (XOR (islower (i), ISLOWER (i)) |
---|
10055 | || toupper (i) != TOUPPER (i)) |
---|
10056 | exit(2); |
---|
10057 | exit (0); |
---|
10058 | } |
---|
10059 | _ACEOF |
---|
10060 | rm -f conftest$ac_exeext |
---|
10061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10062 | (eval $ac_link) 2>&5 |
---|
10063 | ac_status=$? |
---|
10064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
10066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10067 | (eval $ac_try) 2>&5 |
---|
10068 | ac_status=$? |
---|
10069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10070 | (exit $ac_status); }; }; then |
---|
10071 | : |
---|
10072 | else |
---|
10073 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
10074 | echo "$as_me: failed program was:" >&5 |
---|
10075 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10076 | |
---|
10077 | ( exit $ac_status ) |
---|
10078 | ac_cv_header_stdc=no |
---|
10079 | fi |
---|
10080 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
10081 | fi |
---|
10082 | fi |
---|
10083 | fi |
---|
10084 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
10085 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
10086 | if test $ac_cv_header_stdc = yes; then |
---|
10087 | |
---|
10088 | cat >>confdefs.h <<\_ACEOF |
---|
10089 | #define STDC_HEADERS 1 |
---|
10090 | _ACEOF |
---|
10091 | |
---|
10092 | fi |
---|
10093 | |
---|
10094 | |
---|
10095 | |
---|
10096 | for ac_header in stdlib.h string.h |
---|
10097 | do |
---|
10098 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10099 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10104 | fi |
---|
10105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10106 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10107 | else |
---|
10108 | # Is the header compilable? |
---|
10109 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
10110 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
10111 | cat >conftest.$ac_ext <<_ACEOF |
---|
10112 | /* confdefs.h. */ |
---|
10113 | _ACEOF |
---|
10114 | cat confdefs.h >>conftest.$ac_ext |
---|
10115 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10116 | /* end confdefs.h. */ |
---|
10117 | $ac_includes_default |
---|
10118 | #include <$ac_header> |
---|
10119 | _ACEOF |
---|
10120 | rm -f conftest.$ac_objext |
---|
10121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10122 | (eval $ac_compile) 2>conftest.er1 |
---|
10123 | ac_status=$? |
---|
10124 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10125 | rm -f conftest.er1 |
---|
10126 | cat conftest.err >&5 |
---|
10127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10128 | (exit $ac_status); } && |
---|
10129 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10130 | || test ! -s conftest.err' |
---|
10131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10132 | (eval $ac_try) 2>&5 |
---|
10133 | ac_status=$? |
---|
10134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10135 | (exit $ac_status); }; } && |
---|
10136 | { ac_try='test -s conftest.$ac_objext' |
---|
10137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10138 | (eval $ac_try) 2>&5 |
---|
10139 | ac_status=$? |
---|
10140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10141 | (exit $ac_status); }; }; then |
---|
10142 | ac_header_compiler=yes |
---|
10143 | else |
---|
10144 | echo "$as_me: failed program was:" >&5 |
---|
10145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10146 | |
---|
10147 | ac_header_compiler=no |
---|
10148 | fi |
---|
10149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10150 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
10151 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
10152 | |
---|
10153 | # Is the header present? |
---|
10154 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
10155 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
10156 | cat >conftest.$ac_ext <<_ACEOF |
---|
10157 | /* confdefs.h. */ |
---|
10158 | _ACEOF |
---|
10159 | cat confdefs.h >>conftest.$ac_ext |
---|
10160 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10161 | /* end confdefs.h. */ |
---|
10162 | #include <$ac_header> |
---|
10163 | _ACEOF |
---|
10164 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10165 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10166 | ac_status=$? |
---|
10167 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10168 | rm -f conftest.er1 |
---|
10169 | cat conftest.err >&5 |
---|
10170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10171 | (exit $ac_status); } >/dev/null; then |
---|
10172 | if test -s conftest.err; then |
---|
10173 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10174 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10175 | else |
---|
10176 | ac_cpp_err= |
---|
10177 | fi |
---|
10178 | else |
---|
10179 | ac_cpp_err=yes |
---|
10180 | fi |
---|
10181 | if test -z "$ac_cpp_err"; then |
---|
10182 | ac_header_preproc=yes |
---|
10183 | else |
---|
10184 | echo "$as_me: failed program was:" >&5 |
---|
10185 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10186 | |
---|
10187 | ac_header_preproc=no |
---|
10188 | fi |
---|
10189 | rm -f conftest.err conftest.$ac_ext |
---|
10190 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
10191 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
10192 | |
---|
10193 | # So? What about this header? |
---|
10194 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
10195 | yes:no: ) |
---|
10196 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
10197 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
10198 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
10199 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
10200 | ac_header_preproc=yes |
---|
10201 | ;; |
---|
10202 | no:yes:* ) |
---|
10203 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
10204 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
10205 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
10206 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
10207 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
10208 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
10209 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
10210 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
10211 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
10212 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
10213 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
10214 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
10215 | ( |
---|
10216 | cat <<\_ASBOX |
---|
10217 | ## ---------------------------------------------- ## |
---|
10218 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
10219 | ## ---------------------------------------------- ## |
---|
10220 | _ASBOX |
---|
10221 | ) | |
---|
10222 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
10223 | ;; |
---|
10224 | esac |
---|
10225 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10226 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10227 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10229 | else |
---|
10230 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
10231 | fi |
---|
10232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10233 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10234 | |
---|
10235 | fi |
---|
10236 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10237 | cat >>confdefs.h <<_ACEOF |
---|
10238 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10239 | _ACEOF |
---|
10240 | |
---|
10241 | fi |
---|
10242 | |
---|
10243 | done |
---|
10244 | |
---|
10245 | |
---|
10246 | # Checks for typedefs, structures, and compiler characteristics. |
---|
10247 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
10248 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
10249 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
10250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10251 | else |
---|
10252 | cat >conftest.$ac_ext <<_ACEOF |
---|
10253 | /* confdefs.h. */ |
---|
10254 | _ACEOF |
---|
10255 | cat confdefs.h >>conftest.$ac_ext |
---|
10256 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10257 | /* end confdefs.h. */ |
---|
10258 | |
---|
10259 | #include <stdbool.h> |
---|
10260 | #ifndef bool |
---|
10261 | # error bool is not defined |
---|
10262 | #endif |
---|
10263 | #ifndef false |
---|
10264 | # error false is not defined |
---|
10265 | #endif |
---|
10266 | #if false |
---|
10267 | # error false is not 0 |
---|
10268 | #endif |
---|
10269 | #ifndef true |
---|
10270 | # error true is not defined |
---|
10271 | #endif |
---|
10272 | #if true != 1 |
---|
10273 | # error true is not 1 |
---|
10274 | #endif |
---|
10275 | #ifndef __bool_true_false_are_defined |
---|
10276 | # error __bool_true_false_are_defined is not defined |
---|
10277 | #endif |
---|
10278 | |
---|
10279 | struct s { _Bool s: 1; _Bool t; } s; |
---|
10280 | |
---|
10281 | char a[true == 1 ? 1 : -1]; |
---|
10282 | char b[false == 0 ? 1 : -1]; |
---|
10283 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
10284 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
10285 | bool e = &s; |
---|
10286 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
10287 | char g[true]; |
---|
10288 | char h[sizeof (_Bool)]; |
---|
10289 | char i[sizeof s.t]; |
---|
10290 | |
---|
10291 | int |
---|
10292 | main () |
---|
10293 | { |
---|
10294 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
10295 | ; |
---|
10296 | return 0; |
---|
10297 | } |
---|
10298 | _ACEOF |
---|
10299 | rm -f conftest.$ac_objext |
---|
10300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10301 | (eval $ac_compile) 2>conftest.er1 |
---|
10302 | ac_status=$? |
---|
10303 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10304 | rm -f conftest.er1 |
---|
10305 | cat conftest.err >&5 |
---|
10306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10307 | (exit $ac_status); } && |
---|
10308 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10309 | || test ! -s conftest.err' |
---|
10310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10311 | (eval $ac_try) 2>&5 |
---|
10312 | ac_status=$? |
---|
10313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10314 | (exit $ac_status); }; } && |
---|
10315 | { ac_try='test -s conftest.$ac_objext' |
---|
10316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10317 | (eval $ac_try) 2>&5 |
---|
10318 | ac_status=$? |
---|
10319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10320 | (exit $ac_status); }; }; then |
---|
10321 | ac_cv_header_stdbool_h=yes |
---|
10322 | else |
---|
10323 | echo "$as_me: failed program was:" >&5 |
---|
10324 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10325 | |
---|
10326 | ac_cv_header_stdbool_h=no |
---|
10327 | fi |
---|
10328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10329 | fi |
---|
10330 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
10331 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
10332 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
10333 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
10334 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
10335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10336 | else |
---|
10337 | cat >conftest.$ac_ext <<_ACEOF |
---|
10338 | /* confdefs.h. */ |
---|
10339 | _ACEOF |
---|
10340 | cat confdefs.h >>conftest.$ac_ext |
---|
10341 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10342 | /* end confdefs.h. */ |
---|
10343 | $ac_includes_default |
---|
10344 | int |
---|
10345 | main () |
---|
10346 | { |
---|
10347 | if ((_Bool *) 0) |
---|
10348 | return 0; |
---|
10349 | if (sizeof (_Bool)) |
---|
10350 | return 0; |
---|
10351 | ; |
---|
10352 | return 0; |
---|
10353 | } |
---|
10354 | _ACEOF |
---|
10355 | rm -f conftest.$ac_objext |
---|
10356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10357 | (eval $ac_compile) 2>conftest.er1 |
---|
10358 | ac_status=$? |
---|
10359 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10360 | rm -f conftest.er1 |
---|
10361 | cat conftest.err >&5 |
---|
10362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10363 | (exit $ac_status); } && |
---|
10364 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10365 | || test ! -s conftest.err' |
---|
10366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10367 | (eval $ac_try) 2>&5 |
---|
10368 | ac_status=$? |
---|
10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10370 | (exit $ac_status); }; } && |
---|
10371 | { ac_try='test -s conftest.$ac_objext' |
---|
10372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10373 | (eval $ac_try) 2>&5 |
---|
10374 | ac_status=$? |
---|
10375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10376 | (exit $ac_status); }; }; then |
---|
10377 | ac_cv_type__Bool=yes |
---|
10378 | else |
---|
10379 | echo "$as_me: failed program was:" >&5 |
---|
10380 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10381 | |
---|
10382 | ac_cv_type__Bool=no |
---|
10383 | fi |
---|
10384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10385 | fi |
---|
10386 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
10387 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
10388 | if test $ac_cv_type__Bool = yes; then |
---|
10389 | |
---|
10390 | cat >>confdefs.h <<_ACEOF |
---|
10391 | #define HAVE__BOOL 1 |
---|
10392 | _ACEOF |
---|
10393 | |
---|
10394 | |
---|
10395 | fi |
---|
10396 | |
---|
10397 | if test $ac_cv_header_stdbool_h = yes; then |
---|
10398 | |
---|
10399 | cat >>confdefs.h <<\_ACEOF |
---|
10400 | #define HAVE_STDBOOL_H 1 |
---|
10401 | _ACEOF |
---|
10402 | |
---|
10403 | fi |
---|
10404 | |
---|
10405 | |
---|
10406 | # Checks for library functions. |
---|
10407 | |
---|
10408 | for ac_header in stdlib.h |
---|
10409 | do |
---|
10410 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10412 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10413 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10416 | fi |
---|
10417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10418 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10419 | else |
---|
10420 | # Is the header compilable? |
---|
10421 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
10422 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
10423 | cat >conftest.$ac_ext <<_ACEOF |
---|
10424 | /* confdefs.h. */ |
---|
10425 | _ACEOF |
---|
10426 | cat confdefs.h >>conftest.$ac_ext |
---|
10427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10428 | /* end confdefs.h. */ |
---|
10429 | $ac_includes_default |
---|
10430 | #include <$ac_header> |
---|
10431 | _ACEOF |
---|
10432 | rm -f conftest.$ac_objext |
---|
10433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10434 | (eval $ac_compile) 2>conftest.er1 |
---|
10435 | ac_status=$? |
---|
10436 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10437 | rm -f conftest.er1 |
---|
10438 | cat conftest.err >&5 |
---|
10439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10440 | (exit $ac_status); } && |
---|
10441 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10442 | || test ! -s conftest.err' |
---|
10443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10444 | (eval $ac_try) 2>&5 |
---|
10445 | ac_status=$? |
---|
10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10447 | (exit $ac_status); }; } && |
---|
10448 | { ac_try='test -s conftest.$ac_objext' |
---|
10449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10450 | (eval $ac_try) 2>&5 |
---|
10451 | ac_status=$? |
---|
10452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10453 | (exit $ac_status); }; }; then |
---|
10454 | ac_header_compiler=yes |
---|
10455 | else |
---|
10456 | echo "$as_me: failed program was:" >&5 |
---|
10457 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10458 | |
---|
10459 | ac_header_compiler=no |
---|
10460 | fi |
---|
10461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10462 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
10463 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
10464 | |
---|
10465 | # Is the header present? |
---|
10466 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
10467 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
10468 | cat >conftest.$ac_ext <<_ACEOF |
---|
10469 | /* confdefs.h. */ |
---|
10470 | _ACEOF |
---|
10471 | cat confdefs.h >>conftest.$ac_ext |
---|
10472 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10473 | /* end confdefs.h. */ |
---|
10474 | #include <$ac_header> |
---|
10475 | _ACEOF |
---|
10476 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10477 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10478 | ac_status=$? |
---|
10479 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10480 | rm -f conftest.er1 |
---|
10481 | cat conftest.err >&5 |
---|
10482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10483 | (exit $ac_status); } >/dev/null; then |
---|
10484 | if test -s conftest.err; then |
---|
10485 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10487 | else |
---|
10488 | ac_cpp_err= |
---|
10489 | fi |
---|
10490 | else |
---|
10491 | ac_cpp_err=yes |
---|
10492 | fi |
---|
10493 | if test -z "$ac_cpp_err"; then |
---|
10494 | ac_header_preproc=yes |
---|
10495 | else |
---|
10496 | echo "$as_me: failed program was:" >&5 |
---|
10497 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10498 | |
---|
10499 | ac_header_preproc=no |
---|
10500 | fi |
---|
10501 | rm -f conftest.err conftest.$ac_ext |
---|
10502 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
10503 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
10504 | |
---|
10505 | # So? What about this header? |
---|
10506 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
10507 | yes:no: ) |
---|
10508 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
10509 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
10510 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
10511 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
10512 | ac_header_preproc=yes |
---|
10513 | ;; |
---|
10514 | no:yes:* ) |
---|
10515 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
10516 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
10517 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
10518 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
10519 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
10520 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
10521 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
10522 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
10523 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
10524 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
10525 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
10526 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
10527 | ( |
---|
10528 | cat <<\_ASBOX |
---|
10529 | ## ---------------------------------------------- ## |
---|
10530 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
10531 | ## ---------------------------------------------- ## |
---|
10532 | _ASBOX |
---|
10533 | ) | |
---|
10534 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
10535 | ;; |
---|
10536 | esac |
---|
10537 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10539 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10541 | else |
---|
10542 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
10543 | fi |
---|
10544 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10545 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10546 | |
---|
10547 | fi |
---|
10548 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10549 | cat >>confdefs.h <<_ACEOF |
---|
10550 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10551 | _ACEOF |
---|
10552 | |
---|
10553 | fi |
---|
10554 | |
---|
10555 | done |
---|
10556 | |
---|
10557 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
10558 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
10559 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
10560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10561 | else |
---|
10562 | if test "$cross_compiling" = yes; then |
---|
10563 | ac_cv_func_malloc_0_nonnull=no |
---|
10564 | else |
---|
10565 | cat >conftest.$ac_ext <<_ACEOF |
---|
10566 | /* confdefs.h. */ |
---|
10567 | _ACEOF |
---|
10568 | cat confdefs.h >>conftest.$ac_ext |
---|
10569 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10570 | /* end confdefs.h. */ |
---|
10571 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
10572 | # include <stdlib.h> |
---|
10573 | #else |
---|
10574 | char *malloc (); |
---|
10575 | #endif |
---|
10576 | |
---|
10577 | int |
---|
10578 | main () |
---|
10579 | { |
---|
10580 | exit (malloc (0) ? 0 : 1); |
---|
10581 | ; |
---|
10582 | return 0; |
---|
10583 | } |
---|
10584 | _ACEOF |
---|
10585 | rm -f conftest$ac_exeext |
---|
10586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10587 | (eval $ac_link) 2>&5 |
---|
10588 | ac_status=$? |
---|
10589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
10591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10592 | (eval $ac_try) 2>&5 |
---|
10593 | ac_status=$? |
---|
10594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10595 | (exit $ac_status); }; }; then |
---|
10596 | ac_cv_func_malloc_0_nonnull=yes |
---|
10597 | else |
---|
10598 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
10599 | echo "$as_me: failed program was:" >&5 |
---|
10600 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10601 | |
---|
10602 | ( exit $ac_status ) |
---|
10603 | ac_cv_func_malloc_0_nonnull=no |
---|
10604 | fi |
---|
10605 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
10606 | fi |
---|
10607 | fi |
---|
10608 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
10609 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
10610 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
10611 | |
---|
10612 | cat >>confdefs.h <<\_ACEOF |
---|
10613 | #define HAVE_MALLOC 1 |
---|
10614 | _ACEOF |
---|
10615 | |
---|
10616 | else |
---|
10617 | cat >>confdefs.h <<\_ACEOF |
---|
10618 | #define HAVE_MALLOC 0 |
---|
10619 | _ACEOF |
---|
10620 | |
---|
10621 | case $LIBOBJS in |
---|
10622 | "malloc.$ac_objext" | \ |
---|
10623 | *" malloc.$ac_objext" | \ |
---|
10624 | "malloc.$ac_objext "* | \ |
---|
10625 | *" malloc.$ac_objext "* ) ;; |
---|
10626 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
10627 | esac |
---|
10628 | |
---|
10629 | |
---|
10630 | cat >>confdefs.h <<\_ACEOF |
---|
10631 | #define malloc rpl_malloc |
---|
10632 | _ACEOF |
---|
10633 | |
---|
10634 | fi |
---|
10635 | |
---|
10636 | |
---|
10637 | |
---|
10638 | |
---|
10639 | |
---|
10640 | for ac_func in bzero sqrt |
---|
10641 | do |
---|
10642 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
10643 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
10644 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
10645 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
10646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10647 | else |
---|
10648 | cat >conftest.$ac_ext <<_ACEOF |
---|
10649 | /* confdefs.h. */ |
---|
10650 | _ACEOF |
---|
10651 | cat confdefs.h >>conftest.$ac_ext |
---|
10652 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10653 | /* end confdefs.h. */ |
---|
10654 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
10655 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10656 | #define $ac_func innocuous_$ac_func |
---|
10657 | |
---|
10658 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10659 | which can conflict with char $ac_func (); below. |
---|
10660 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10661 | <limits.h> exists even on freestanding compilers. */ |
---|
10662 | |
---|
10663 | #ifdef __STDC__ |
---|
10664 | # include <limits.h> |
---|
10665 | #else |
---|
10666 | # include <assert.h> |
---|
10667 | #endif |
---|
10668 | |
---|
10669 | #undef $ac_func |
---|
10670 | |
---|
10671 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10672 | #ifdef __cplusplus |
---|
10673 | extern "C" |
---|
10674 | { |
---|
10675 | #endif |
---|
10676 | /* We use char because int might match the return type of a gcc2 |
---|
10677 | builtin and then its argument prototype would still apply. */ |
---|
10678 | char $ac_func (); |
---|
10679 | /* The GNU C library defines this for functions which it implements |
---|
10680 | to always fail with ENOSYS. Some functions are actually named |
---|
10681 | something starting with __ and the normal name is an alias. */ |
---|
10682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
10683 | choke me |
---|
10684 | #else |
---|
10685 | char (*f) () = $ac_func; |
---|
10686 | #endif |
---|
10687 | #ifdef __cplusplus |
---|
10688 | } |
---|
10689 | #endif |
---|
10690 | |
---|
10691 | int |
---|
10692 | main () |
---|
10693 | { |
---|
10694 | return f != $ac_func; |
---|
10695 | ; |
---|
10696 | return 0; |
---|
10697 | } |
---|
10698 | _ACEOF |
---|
10699 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10701 | (eval $ac_link) 2>conftest.er1 |
---|
10702 | ac_status=$? |
---|
10703 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10704 | rm -f conftest.er1 |
---|
10705 | cat conftest.err >&5 |
---|
10706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10707 | (exit $ac_status); } && |
---|
10708 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10709 | || test ! -s conftest.err' |
---|
10710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10711 | (eval $ac_try) 2>&5 |
---|
10712 | ac_status=$? |
---|
10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10714 | (exit $ac_status); }; } && |
---|
10715 | { ac_try='test -s conftest$ac_exeext' |
---|
10716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10717 | (eval $ac_try) 2>&5 |
---|
10718 | ac_status=$? |
---|
10719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10720 | (exit $ac_status); }; }; then |
---|
10721 | eval "$as_ac_var=yes" |
---|
10722 | else |
---|
10723 | echo "$as_me: failed program was:" >&5 |
---|
10724 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10725 | |
---|
10726 | eval "$as_ac_var=no" |
---|
10727 | fi |
---|
10728 | rm -f conftest.err conftest.$ac_objext \ |
---|
10729 | conftest$ac_exeext conftest.$ac_ext |
---|
10730 | fi |
---|
10731 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
10732 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
10733 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
10734 | cat >>confdefs.h <<_ACEOF |
---|
10735 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
10736 | _ACEOF |
---|
10737 | |
---|
10738 | fi |
---|
10739 | done |
---|
10740 | |
---|
10741 | |
---|
10742 | ###################### |
---|
10743 | ## OUTPUT CONFIGURE ## |
---|
10744 | ###################### |
---|
10745 | ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/gui/gtk_gui/Makefile src/lib/gui/gl_gui/Makefile src/lib/tinyxml/Makefile src/util/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile" |
---|
10746 | |
---|
10747 | |
---|
10748 | cat >confcache <<\_ACEOF |
---|
10749 | # This file is a shell script that caches the results of configure |
---|
10750 | # tests run on this system so they can be shared between configure |
---|
10751 | # scripts and configure runs, see configure's option --config-cache. |
---|
10752 | # It is not useful on other systems. If it contains results you don't |
---|
10753 | # want to keep, you may remove or edit it. |
---|
10754 | # |
---|
10755 | # config.status only pays attention to the cache file if you give it |
---|
10756 | # the --recheck option to rerun configure. |
---|
10757 | # |
---|
10758 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
10759 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
10760 | # following values. |
---|
10761 | |
---|
10762 | _ACEOF |
---|
10763 | |
---|
10764 | # The following way of writing the cache mishandles newlines in values, |
---|
10765 | # but we know of no workaround that is simple, portable, and efficient. |
---|
10766 | # So, don't put newlines in cache variables' values. |
---|
10767 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
10768 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
10769 | { |
---|
10770 | (set) 2>&1 | |
---|
10771 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
10772 | *ac_space=\ *) |
---|
10773 | # `set' does not quote correctly, so add quotes (double-quote |
---|
10774 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
10775 | sed -n \ |
---|
10776 | "s/'/'\\\\''/g; |
---|
10777 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
10778 | ;; |
---|
10779 | *) |
---|
10780 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
10781 | sed -n \ |
---|
10782 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
10783 | ;; |
---|
10784 | esac; |
---|
10785 | } | |
---|
10786 | sed ' |
---|
10787 | t clear |
---|
10788 | : clear |
---|
10789 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
10790 | t end |
---|
10791 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
10792 | : end' >>confcache |
---|
10793 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
10794 | if test -w $cache_file; then |
---|
10795 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
10796 | cat confcache >$cache_file |
---|
10797 | else |
---|
10798 | echo "not updating unwritable cache $cache_file" |
---|
10799 | fi |
---|
10800 | fi |
---|
10801 | rm -f confcache |
---|
10802 | |
---|
10803 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
10804 | # Let make expand exec_prefix. |
---|
10805 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
10806 | |
---|
10807 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
10808 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
10809 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
10810 | # (actually we leave an empty line to preserve line numbers). |
---|
10811 | if test "x$srcdir" = x.; then |
---|
10812 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
10813 | s/:*\$(srcdir):*/:/; |
---|
10814 | s/:*\${srcdir}:*/:/; |
---|
10815 | s/:*@srcdir@:*/:/; |
---|
10816 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
10817 | s/:*$//; |
---|
10818 | s/^[^=]*=[ ]*$//; |
---|
10819 | }' |
---|
10820 | fi |
---|
10821 | |
---|
10822 | DEFS=-DHAVE_CONFIG_H |
---|
10823 | |
---|
10824 | ac_libobjs= |
---|
10825 | ac_ltlibobjs= |
---|
10826 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
10827 | # 1. Remove the extension, and $U if already installed. |
---|
10828 | ac_i=`echo "$ac_i" | |
---|
10829 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
10830 | # 2. Add them. |
---|
10831 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
10832 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
10833 | done |
---|
10834 | LIBOBJS=$ac_libobjs |
---|
10835 | |
---|
10836 | LTLIBOBJS=$ac_ltlibobjs |
---|
10837 | |
---|
10838 | |
---|
10839 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
10840 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
10841 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10842 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
10843 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10844 | { (exit 1); exit 1; }; } |
---|
10845 | fi |
---|
10846 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
10847 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
10848 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10849 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
10850 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10851 | { (exit 1); exit 1; }; } |
---|
10852 | fi |
---|
10853 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
10854 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
10855 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10856 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
10857 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10858 | { (exit 1); exit 1; }; } |
---|
10859 | fi |
---|
10860 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
10861 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
10862 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10863 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
10864 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10865 | { (exit 1); exit 1; }; } |
---|
10866 | fi |
---|
10867 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
10868 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
10869 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10870 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
10871 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10872 | { (exit 1); exit 1; }; } |
---|
10873 | fi |
---|
10874 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
10875 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
10876 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10877 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
10878 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10879 | { (exit 1); exit 1; }; } |
---|
10880 | fi |
---|
10881 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
10882 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
10883 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10884 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
10885 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10886 | { (exit 1); exit 1; }; } |
---|
10887 | fi |
---|
10888 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
10889 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
10890 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10891 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
10892 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10893 | { (exit 1); exit 1; }; } |
---|
10894 | fi |
---|
10895 | |
---|
10896 | : ${CONFIG_STATUS=./config.status} |
---|
10897 | ac_clean_files_save=$ac_clean_files |
---|
10898 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
10899 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
10900 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
10901 | cat >$CONFIG_STATUS <<_ACEOF |
---|
10902 | #! $SHELL |
---|
10903 | # Generated by $as_me. |
---|
10904 | # Run this file to recreate the current configuration. |
---|
10905 | # Compiler output produced by configure, useful for debugging |
---|
10906 | # configure, is in config.log if it exists. |
---|
10907 | |
---|
10908 | debug=false |
---|
10909 | ac_cs_recheck=false |
---|
10910 | ac_cs_silent=false |
---|
10911 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
10912 | _ACEOF |
---|
10913 | |
---|
10914 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10915 | ## --------------------- ## |
---|
10916 | ## M4sh Initialization. ## |
---|
10917 | ## --------------------- ## |
---|
10918 | |
---|
10919 | # Be Bourne compatible |
---|
10920 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
10921 | emulate sh |
---|
10922 | NULLCMD=: |
---|
10923 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
10924 | # is contrary to our usage. Disable this feature. |
---|
10925 | alias -g '${1+"$@"}'='"$@"' |
---|
10926 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
10927 | set -o posix |
---|
10928 | fi |
---|
10929 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
10930 | |
---|
10931 | # Support unset when possible. |
---|
10932 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
10933 | as_unset=unset |
---|
10934 | else |
---|
10935 | as_unset=false |
---|
10936 | fi |
---|
10937 | |
---|
10938 | |
---|
10939 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
10940 | $as_unset ENV MAIL MAILPATH |
---|
10941 | PS1='$ ' |
---|
10942 | PS2='> ' |
---|
10943 | PS4='+ ' |
---|
10944 | |
---|
10945 | # NLS nuisances. |
---|
10946 | for as_var in \ |
---|
10947 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
10948 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
10949 | LC_TELEPHONE LC_TIME |
---|
10950 | do |
---|
10951 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
10952 | eval $as_var=C; export $as_var |
---|
10953 | else |
---|
10954 | $as_unset $as_var |
---|
10955 | fi |
---|
10956 | done |
---|
10957 | |
---|
10958 | # Required to use basename. |
---|
10959 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
10960 | as_expr=expr |
---|
10961 | else |
---|
10962 | as_expr=false |
---|
10963 | fi |
---|
10964 | |
---|
10965 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
10966 | as_basename=basename |
---|
10967 | else |
---|
10968 | as_basename=false |
---|
10969 | fi |
---|
10970 | |
---|
10971 | |
---|
10972 | # Name of the executable. |
---|
10973 | as_me=`$as_basename "$0" || |
---|
10974 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
10975 | X"$0" : 'X\(//\)$' \| \ |
---|
10976 | X"$0" : 'X\(/\)$' \| \ |
---|
10977 | . : '\(.\)' 2>/dev/null || |
---|
10978 | echo X/"$0" | |
---|
10979 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
10980 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
10981 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
10982 | s/.*/./; q'` |
---|
10983 | |
---|
10984 | |
---|
10985 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
10986 | # Avoid depending upon Character Ranges. |
---|
10987 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
10988 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
10989 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
10990 | as_cr_digits='0123456789' |
---|
10991 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
10992 | |
---|
10993 | # The user is always right. |
---|
10994 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
10995 | echo "#! /bin/sh" >conf$$.sh |
---|
10996 | echo "exit 0" >>conf$$.sh |
---|
10997 | chmod +x conf$$.sh |
---|
10998 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
10999 | PATH_SEPARATOR=';' |
---|
11000 | else |
---|
11001 | PATH_SEPARATOR=: |
---|
11002 | fi |
---|
11003 | rm -f conf$$.sh |
---|
11004 | fi |
---|
11005 | |
---|
11006 | |
---|
11007 | as_lineno_1=$LINENO |
---|
11008 | as_lineno_2=$LINENO |
---|
11009 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
11010 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
11011 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
11012 | # Find who we are. Look in the path if we contain no path at all |
---|
11013 | # relative or not. |
---|
11014 | case $0 in |
---|
11015 | *[\\/]* ) as_myself=$0 ;; |
---|
11016 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
11017 | for as_dir in $PATH |
---|
11018 | do |
---|
11019 | IFS=$as_save_IFS |
---|
11020 | test -z "$as_dir" && as_dir=. |
---|
11021 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
11022 | done |
---|
11023 | |
---|
11024 | ;; |
---|
11025 | esac |
---|
11026 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
11027 | # in which case we are not to be found in the path. |
---|
11028 | if test "x$as_myself" = x; then |
---|
11029 | as_myself=$0 |
---|
11030 | fi |
---|
11031 | if test ! -f "$as_myself"; then |
---|
11032 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
11033 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
11034 | { (exit 1); exit 1; }; } |
---|
11035 | fi |
---|
11036 | case $CONFIG_SHELL in |
---|
11037 | '') |
---|
11038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
11039 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
11040 | do |
---|
11041 | IFS=$as_save_IFS |
---|
11042 | test -z "$as_dir" && as_dir=. |
---|
11043 | for as_base in sh bash ksh sh5; do |
---|
11044 | case $as_dir in |
---|
11045 | /*) |
---|
11046 | if ("$as_dir/$as_base" -c ' |
---|
11047 | as_lineno_1=$LINENO |
---|
11048 | as_lineno_2=$LINENO |
---|
11049 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
11050 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
11051 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
11052 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
11053 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
11054 | CONFIG_SHELL=$as_dir/$as_base |
---|
11055 | export CONFIG_SHELL |
---|
11056 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
11057 | fi;; |
---|
11058 | esac |
---|
11059 | done |
---|
11060 | done |
---|
11061 | ;; |
---|
11062 | esac |
---|
11063 | |
---|
11064 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
11065 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
11066 | # line-number line before each line; the second 'sed' does the real |
---|
11067 | # work. The second script uses 'N' to pair each line-number line |
---|
11068 | # with the numbered line, and appends trailing '-' during |
---|
11069 | # substitution so that $LINENO is not a special case at line end. |
---|
11070 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
11071 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
11072 | sed '=' <$as_myself | |
---|
11073 | sed ' |
---|
11074 | N |
---|
11075 | s,$,-, |
---|
11076 | : loop |
---|
11077 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
11078 | t loop |
---|
11079 | s,-$,, |
---|
11080 | s,^['$as_cr_digits']*\n,, |
---|
11081 | ' >$as_me.lineno && |
---|
11082 | chmod +x $as_me.lineno || |
---|
11083 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
11084 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
11085 | { (exit 1); exit 1; }; } |
---|
11086 | |
---|
11087 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
11088 | # (the dirname of $[0] is not the place where we might find the |
---|
11089 | # original and so on. Autoconf is especially sensible to this). |
---|
11090 | . ./$as_me.lineno |
---|
11091 | # Exit status is that of the last command. |
---|
11092 | exit |
---|
11093 | } |
---|
11094 | |
---|
11095 | |
---|
11096 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
11097 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
11098 | ' ECHO_T=' ' ;; |
---|
11099 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
11100 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
11101 | esac |
---|
11102 | |
---|
11103 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
11104 | as_expr=expr |
---|
11105 | else |
---|
11106 | as_expr=false |
---|
11107 | fi |
---|
11108 | |
---|
11109 | rm -f conf$$ conf$$.exe conf$$.file |
---|
11110 | echo >conf$$.file |
---|
11111 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
11112 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
11113 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
11114 | if test -f conf$$.exe; then |
---|
11115 | # Don't use ln at all; we don't have any links |
---|
11116 | as_ln_s='cp -p' |
---|
11117 | else |
---|
11118 | as_ln_s='ln -s' |
---|
11119 | fi |
---|
11120 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
11121 | as_ln_s=ln |
---|
11122 | else |
---|
11123 | as_ln_s='cp -p' |
---|
11124 | fi |
---|
11125 | rm -f conf$$ conf$$.exe conf$$.file |
---|
11126 | |
---|
11127 | if mkdir -p . 2>/dev/null; then |
---|
11128 | as_mkdir_p=: |
---|
11129 | else |
---|
11130 | test -d ./-p && rmdir ./-p |
---|
11131 | as_mkdir_p=false |
---|
11132 | fi |
---|
11133 | |
---|
11134 | as_executable_p="test -f" |
---|
11135 | |
---|
11136 | # Sed expression to map a string onto a valid CPP name. |
---|
11137 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
11138 | |
---|
11139 | # Sed expression to map a string onto a valid variable name. |
---|
11140 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
11141 | |
---|
11142 | |
---|
11143 | # IFS |
---|
11144 | # We need space, tab and new line, in precisely that order. |
---|
11145 | as_nl=' |
---|
11146 | ' |
---|
11147 | IFS=" $as_nl" |
---|
11148 | |
---|
11149 | # CDPATH. |
---|
11150 | $as_unset CDPATH |
---|
11151 | |
---|
11152 | exec 6>&1 |
---|
11153 | |
---|
11154 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
11155 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
11156 | # values after options handling. Logging --version etc. is OK. |
---|
11157 | exec 5>>config.log |
---|
11158 | { |
---|
11159 | echo |
---|
11160 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
11161 | ## Running $as_me. ## |
---|
11162 | _ASBOX |
---|
11163 | } >&5 |
---|
11164 | cat >&5 <<_CSEOF |
---|
11165 | |
---|
11166 | This file was extended by orxonox $as_me 0.3.1_alpha, which was |
---|
11167 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
11168 | |
---|
11169 | CONFIG_FILES = $CONFIG_FILES |
---|
11170 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
11171 | CONFIG_LINKS = $CONFIG_LINKS |
---|
11172 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
11173 | $ $0 $@ |
---|
11174 | |
---|
11175 | _CSEOF |
---|
11176 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
11177 | echo >&5 |
---|
11178 | _ACEOF |
---|
11179 | |
---|
11180 | # Files that config.status was made for. |
---|
11181 | if test -n "$ac_config_files"; then |
---|
11182 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
11183 | fi |
---|
11184 | |
---|
11185 | if test -n "$ac_config_headers"; then |
---|
11186 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
11187 | fi |
---|
11188 | |
---|
11189 | if test -n "$ac_config_links"; then |
---|
11190 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
11191 | fi |
---|
11192 | |
---|
11193 | if test -n "$ac_config_commands"; then |
---|
11194 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
11195 | fi |
---|
11196 | |
---|
11197 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11198 | |
---|
11199 | ac_cs_usage="\ |
---|
11200 | \`$as_me' instantiates files from templates according to the |
---|
11201 | current configuration. |
---|
11202 | |
---|
11203 | Usage: $0 [OPTIONS] [FILE]... |
---|
11204 | |
---|
11205 | -h, --help print this help, then exit |
---|
11206 | -V, --version print version number, then exit |
---|
11207 | -q, --quiet do not print progress messages |
---|
11208 | -d, --debug don't remove temporary files |
---|
11209 | --recheck update $as_me by reconfiguring in the same conditions |
---|
11210 | --file=FILE[:TEMPLATE] |
---|
11211 | instantiate the configuration file FILE |
---|
11212 | --header=FILE[:TEMPLATE] |
---|
11213 | instantiate the configuration header FILE |
---|
11214 | |
---|
11215 | Configuration files: |
---|
11216 | $config_files |
---|
11217 | |
---|
11218 | Configuration headers: |
---|
11219 | $config_headers |
---|
11220 | |
---|
11221 | Configuration commands: |
---|
11222 | $config_commands |
---|
11223 | |
---|
11224 | Report bugs to <bug-autoconf@gnu.org>." |
---|
11225 | _ACEOF |
---|
11226 | |
---|
11227 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11228 | ac_cs_version="\\ |
---|
11229 | orxonox config.status 0.3.1_alpha |
---|
11230 | configured by $0, generated by GNU Autoconf 2.59, |
---|
11231 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
11232 | |
---|
11233 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
11234 | This config.status script is free software; the Free Software Foundation |
---|
11235 | gives unlimited permission to copy, distribute and modify it." |
---|
11236 | srcdir=$srcdir |
---|
11237 | INSTALL="$INSTALL" |
---|
11238 | _ACEOF |
---|
11239 | |
---|
11240 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11241 | # If no file are specified by the user, then we need to provide default |
---|
11242 | # value. By we need to know if files were specified by the user. |
---|
11243 | ac_need_defaults=: |
---|
11244 | while test $# != 0 |
---|
11245 | do |
---|
11246 | case $1 in |
---|
11247 | --*=*) |
---|
11248 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
11249 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
11250 | ac_shift=: |
---|
11251 | ;; |
---|
11252 | -*) |
---|
11253 | ac_option=$1 |
---|
11254 | ac_optarg=$2 |
---|
11255 | ac_shift=shift |
---|
11256 | ;; |
---|
11257 | *) # This is not an option, so the user has probably given explicit |
---|
11258 | # arguments. |
---|
11259 | ac_option=$1 |
---|
11260 | ac_need_defaults=false;; |
---|
11261 | esac |
---|
11262 | |
---|
11263 | case $ac_option in |
---|
11264 | # Handling of the options. |
---|
11265 | _ACEOF |
---|
11266 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11267 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
11268 | ac_cs_recheck=: ;; |
---|
11269 | --version | --vers* | -V ) |
---|
11270 | echo "$ac_cs_version"; exit 0 ;; |
---|
11271 | --he | --h) |
---|
11272 | # Conflict between --help and --header |
---|
11273 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
11274 | Try \`$0 --help' for more information." >&5 |
---|
11275 | echo "$as_me: error: ambiguous option: $1 |
---|
11276 | Try \`$0 --help' for more information." >&2;} |
---|
11277 | { (exit 1); exit 1; }; };; |
---|
11278 | --help | --hel | -h ) |
---|
11279 | echo "$ac_cs_usage"; exit 0 ;; |
---|
11280 | --debug | --d* | -d ) |
---|
11281 | debug=: ;; |
---|
11282 | --file | --fil | --fi | --f ) |
---|
11283 | $ac_shift |
---|
11284 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
11285 | ac_need_defaults=false;; |
---|
11286 | --header | --heade | --head | --hea ) |
---|
11287 | $ac_shift |
---|
11288 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
11289 | ac_need_defaults=false;; |
---|
11290 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
11291 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
11292 | ac_cs_silent=: ;; |
---|
11293 | |
---|
11294 | # This is an error. |
---|
11295 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
11296 | Try \`$0 --help' for more information." >&5 |
---|
11297 | echo "$as_me: error: unrecognized option: $1 |
---|
11298 | Try \`$0 --help' for more information." >&2;} |
---|
11299 | { (exit 1); exit 1; }; } ;; |
---|
11300 | |
---|
11301 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
11302 | |
---|
11303 | esac |
---|
11304 | shift |
---|
11305 | done |
---|
11306 | |
---|
11307 | ac_configure_extra_args= |
---|
11308 | |
---|
11309 | if $ac_cs_silent; then |
---|
11310 | exec 6>/dev/null |
---|
11311 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
11312 | fi |
---|
11313 | |
---|
11314 | _ACEOF |
---|
11315 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11316 | if \$ac_cs_recheck; then |
---|
11317 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
11318 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
11319 | fi |
---|
11320 | |
---|
11321 | _ACEOF |
---|
11322 | |
---|
11323 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11324 | # |
---|
11325 | # INIT-COMMANDS section. |
---|
11326 | # |
---|
11327 | |
---|
11328 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
11329 | |
---|
11330 | _ACEOF |
---|
11331 | |
---|
11332 | |
---|
11333 | |
---|
11334 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11335 | for ac_config_target in $ac_config_targets |
---|
11336 | do |
---|
11337 | case "$ac_config_target" in |
---|
11338 | # Handling of arguments. |
---|
11339 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
11340 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
11341 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
11342 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
11343 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
11344 | "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;; |
---|
11345 | "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;; |
---|
11346 | "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;; |
---|
11347 | "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;; |
---|
11348 | "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;; |
---|
11349 | "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;; |
---|
11350 | "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;; |
---|
11351 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
11352 | "src/lib/gui/gtk_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gtk_gui/Makefile" ;; |
---|
11353 | "src/lib/gui/gl_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gl_gui/Makefile" ;; |
---|
11354 | "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; |
---|
11355 | "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; |
---|
11356 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
11357 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
11358 | "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;; |
---|
11359 | "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;; |
---|
11360 | "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;; |
---|
11361 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
11362 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
11363 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
11364 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
11365 | { (exit 1); exit 1; }; };; |
---|
11366 | esac |
---|
11367 | done |
---|
11368 | |
---|
11369 | # If the user did not use the arguments to specify the items to instantiate, |
---|
11370 | # then the envvar interface is used. Set only those that are not. |
---|
11371 | # We use the long form for the default assignment because of an extremely |
---|
11372 | # bizarre bug on SunOS 4.1.3. |
---|
11373 | if $ac_need_defaults; then |
---|
11374 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
11375 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
11376 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
11377 | fi |
---|
11378 | |
---|
11379 | # Have a temporary directory for convenience. Make it in the build tree |
---|
11380 | # simply because there is no reason to put it here, and in addition, |
---|
11381 | # creating and moving files from /tmp can sometimes cause problems. |
---|
11382 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
11383 | $debug || |
---|
11384 | { |
---|
11385 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
11386 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
11387 | } |
---|
11388 | |
---|
11389 | # Create a (secure) tmp directory for tmp files. |
---|
11390 | |
---|
11391 | { |
---|
11392 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
11393 | test -n "$tmp" && test -d "$tmp" |
---|
11394 | } || |
---|
11395 | { |
---|
11396 | tmp=./confstat$$-$RANDOM |
---|
11397 | (umask 077 && mkdir $tmp) |
---|
11398 | } || |
---|
11399 | { |
---|
11400 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
11401 | { (exit 1); exit 1; } |
---|
11402 | } |
---|
11403 | |
---|
11404 | _ACEOF |
---|
11405 | |
---|
11406 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11407 | |
---|
11408 | # |
---|
11409 | # CONFIG_FILES section. |
---|
11410 | # |
---|
11411 | |
---|
11412 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
11413 | # This happens for instance when ./config.status config.h |
---|
11414 | if test -n "\$CONFIG_FILES"; then |
---|
11415 | # Protect against being on the right side of a sed subst in config.status. |
---|
11416 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
11417 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
11418 | s,@SHELL@,$SHELL,;t t |
---|
11419 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
11420 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
11421 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
11422 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
11423 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
11424 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
11425 | s,@exec_prefix@,$exec_prefix,;t t |
---|
11426 | s,@prefix@,$prefix,;t t |
---|
11427 | s,@program_transform_name@,$program_transform_name,;t t |
---|
11428 | s,@bindir@,$bindir,;t t |
---|
11429 | s,@sbindir@,$sbindir,;t t |
---|
11430 | s,@libexecdir@,$libexecdir,;t t |
---|
11431 | s,@datadir@,$datadir,;t t |
---|
11432 | s,@sysconfdir@,$sysconfdir,;t t |
---|
11433 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
11434 | s,@localstatedir@,$localstatedir,;t t |
---|
11435 | s,@libdir@,$libdir,;t t |
---|
11436 | s,@includedir@,$includedir,;t t |
---|
11437 | s,@oldincludedir@,$oldincludedir,;t t |
---|
11438 | s,@infodir@,$infodir,;t t |
---|
11439 | s,@mandir@,$mandir,;t t |
---|
11440 | s,@build_alias@,$build_alias,;t t |
---|
11441 | s,@host_alias@,$host_alias,;t t |
---|
11442 | s,@target_alias@,$target_alias,;t t |
---|
11443 | s,@DEFS@,$DEFS,;t t |
---|
11444 | s,@ECHO_C@,$ECHO_C,;t t |
---|
11445 | s,@ECHO_N@,$ECHO_N,;t t |
---|
11446 | s,@ECHO_T@,$ECHO_T,;t t |
---|
11447 | s,@LIBS@,$LIBS,;t t |
---|
11448 | s,@build@,$build,;t t |
---|
11449 | s,@build_cpu@,$build_cpu,;t t |
---|
11450 | s,@build_vendor@,$build_vendor,;t t |
---|
11451 | s,@build_os@,$build_os,;t t |
---|
11452 | s,@host@,$host,;t t |
---|
11453 | s,@host_cpu@,$host_cpu,;t t |
---|
11454 | s,@host_vendor@,$host_vendor,;t t |
---|
11455 | s,@host_os@,$host_os,;t t |
---|
11456 | s,@target@,$target,;t t |
---|
11457 | s,@target_cpu@,$target_cpu,;t t |
---|
11458 | s,@target_vendor@,$target_vendor,;t t |
---|
11459 | s,@target_os@,$target_os,;t t |
---|
11460 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
11461 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
11462 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
11463 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
11464 | s,@PACKAGE@,$PACKAGE,;t t |
---|
11465 | s,@VERSION@,$VERSION,;t t |
---|
11466 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
11467 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
11468 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
11469 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
11470 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
11471 | s,@AMTAR@,$AMTAR,;t t |
---|
11472 | s,@install_sh@,$install_sh,;t t |
---|
11473 | s,@STRIP@,$STRIP,;t t |
---|
11474 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
11475 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
11476 | s,@mkdir_p@,$mkdir_p,;t t |
---|
11477 | s,@AWK@,$AWK,;t t |
---|
11478 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
11479 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
11480 | s,@CXX@,$CXX,;t t |
---|
11481 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
11482 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
11483 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
11484 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
11485 | s,@EXEEXT@,$EXEEXT,;t t |
---|
11486 | s,@OBJEXT@,$OBJEXT,;t t |
---|
11487 | s,@DEPDIR@,$DEPDIR,;t t |
---|
11488 | s,@am__include@,$am__include,;t t |
---|
11489 | s,@am__quote@,$am__quote,;t t |
---|
11490 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
11491 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
11492 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
11493 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
11494 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
11495 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
11496 | s,@RANLIB@,$RANLIB,;t t |
---|
11497 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
11498 | s,@CC@,$CC,;t t |
---|
11499 | s,@CFLAGS@,$CFLAGS,;t t |
---|
11500 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
11501 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
11502 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
11503 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
11504 | s,@CPP@,$CPP,;t t |
---|
11505 | s,@EGREP@,$EGREP,;t t |
---|
11506 | s,@DEBUG@,$DEBUG,;t t |
---|
11507 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
11508 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
11509 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
11510 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
11511 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
11512 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
11513 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
11514 | s,@GPROF@,$GPROF,;t t |
---|
11515 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
11516 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
11517 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
11518 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
11519 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
11520 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
11521 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
11522 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
11523 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
11524 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
11525 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
11526 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
11527 | CEOF |
---|
11528 | |
---|
11529 | _ACEOF |
---|
11530 | |
---|
11531 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11532 | # Split the substitutions into bite-sized pieces for seds with |
---|
11533 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
11534 | ac_max_sed_lines=48 |
---|
11535 | ac_sed_frag=1 # Number of current file. |
---|
11536 | ac_beg=1 # First line for current file. |
---|
11537 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
11538 | ac_more_lines=: |
---|
11539 | ac_sed_cmds= |
---|
11540 | while $ac_more_lines; do |
---|
11541 | if test $ac_beg -gt 1; then |
---|
11542 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
11543 | else |
---|
11544 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
11545 | fi |
---|
11546 | if test ! -s $tmp/subs.frag; then |
---|
11547 | ac_more_lines=false |
---|
11548 | else |
---|
11549 | # The purpose of the label and of the branching condition is to |
---|
11550 | # speed up the sed processing (if there are no `@' at all, there |
---|
11551 | # is no need to browse any of the substitutions). |
---|
11552 | # These are the two extra sed commands mentioned above. |
---|
11553 | (echo ':t |
---|
11554 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
11555 | if test -z "$ac_sed_cmds"; then |
---|
11556 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
11557 | else |
---|
11558 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
11559 | fi |
---|
11560 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
11561 | ac_beg=$ac_end |
---|
11562 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
11563 | fi |
---|
11564 | done |
---|
11565 | if test -z "$ac_sed_cmds"; then |
---|
11566 | ac_sed_cmds=cat |
---|
11567 | fi |
---|
11568 | fi # test -n "$CONFIG_FILES" |
---|
11569 | |
---|
11570 | _ACEOF |
---|
11571 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11572 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
11573 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
11574 | case $ac_file in |
---|
11575 | - | *:- | *:-:* ) # input from stdin |
---|
11576 | cat >$tmp/stdin |
---|
11577 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11578 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11579 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11580 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11581 | * ) ac_file_in=$ac_file.in ;; |
---|
11582 | esac |
---|
11583 | |
---|
11584 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
11585 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
11586 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11587 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
11588 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
11589 | X"$ac_file" : 'X\(/\)' \| \ |
---|
11590 | . : '\(.\)' 2>/dev/null || |
---|
11591 | echo X"$ac_file" | |
---|
11592 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11593 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11594 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11595 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11596 | s/.*/./; q'` |
---|
11597 | { if $as_mkdir_p; then |
---|
11598 | mkdir -p "$ac_dir" |
---|
11599 | else |
---|
11600 | as_dir="$ac_dir" |
---|
11601 | as_dirs= |
---|
11602 | while test ! -d "$as_dir"; do |
---|
11603 | as_dirs="$as_dir $as_dirs" |
---|
11604 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
11605 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11606 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
11607 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
11608 | X"$as_dir" : 'X\(/\)' \| \ |
---|
11609 | . : '\(.\)' 2>/dev/null || |
---|
11610 | echo X"$as_dir" | |
---|
11611 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11612 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11613 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11614 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11615 | s/.*/./; q'` |
---|
11616 | done |
---|
11617 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
11618 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
11619 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
11620 | { (exit 1); exit 1; }; }; } |
---|
11621 | |
---|
11622 | ac_builddir=. |
---|
11623 | |
---|
11624 | if test "$ac_dir" != .; then |
---|
11625 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
11626 | # A "../" for each directory in $ac_dir_suffix. |
---|
11627 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
11628 | else |
---|
11629 | ac_dir_suffix= ac_top_builddir= |
---|
11630 | fi |
---|
11631 | |
---|
11632 | case $srcdir in |
---|
11633 | .) # No --srcdir option. We are building in place. |
---|
11634 | ac_srcdir=. |
---|
11635 | if test -z "$ac_top_builddir"; then |
---|
11636 | ac_top_srcdir=. |
---|
11637 | else |
---|
11638 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
11639 | fi ;; |
---|
11640 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
11641 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
11642 | ac_top_srcdir=$srcdir ;; |
---|
11643 | *) # Relative path. |
---|
11644 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
11645 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
11646 | esac |
---|
11647 | |
---|
11648 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
11649 | # the directories may not exist. |
---|
11650 | case `pwd` in |
---|
11651 | .) ac_abs_builddir="$ac_dir";; |
---|
11652 | *) |
---|
11653 | case "$ac_dir" in |
---|
11654 | .) ac_abs_builddir=`pwd`;; |
---|
11655 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
11656 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
11657 | esac;; |
---|
11658 | esac |
---|
11659 | case $ac_abs_builddir in |
---|
11660 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
11661 | *) |
---|
11662 | case ${ac_top_builddir}. in |
---|
11663 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
11664 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
11665 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
11666 | esac;; |
---|
11667 | esac |
---|
11668 | case $ac_abs_builddir in |
---|
11669 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
11670 | *) |
---|
11671 | case $ac_srcdir in |
---|
11672 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
11673 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
11674 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
11675 | esac;; |
---|
11676 | esac |
---|
11677 | case $ac_abs_builddir in |
---|
11678 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
11679 | *) |
---|
11680 | case $ac_top_srcdir in |
---|
11681 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
11682 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
11683 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
11684 | esac;; |
---|
11685 | esac |
---|
11686 | |
---|
11687 | |
---|
11688 | case $INSTALL in |
---|
11689 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
11690 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
11691 | esac |
---|
11692 | |
---|
11693 | if test x"$ac_file" != x-; then |
---|
11694 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
11695 | echo "$as_me: creating $ac_file" >&6;} |
---|
11696 | rm -f "$ac_file" |
---|
11697 | fi |
---|
11698 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
11699 | # use $as_me), people would be surprised to read: |
---|
11700 | # /* config.h. Generated by config.status. */ |
---|
11701 | if test x"$ac_file" = x-; then |
---|
11702 | configure_input= |
---|
11703 | else |
---|
11704 | configure_input="$ac_file. " |
---|
11705 | fi |
---|
11706 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
11707 | sed 's,.*/,,'` by configure." |
---|
11708 | |
---|
11709 | # First look for the input files in the build tree, otherwise in the |
---|
11710 | # src tree. |
---|
11711 | ac_file_inputs=`IFS=: |
---|
11712 | for f in $ac_file_in; do |
---|
11713 | case $f in |
---|
11714 | -) echo $tmp/stdin ;; |
---|
11715 | [\\/$]*) |
---|
11716 | # Absolute (can't be DOS-style, as IFS=:) |
---|
11717 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11718 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11719 | { (exit 1); exit 1; }; } |
---|
11720 | echo "$f";; |
---|
11721 | *) # Relative |
---|
11722 | if test -f "$f"; then |
---|
11723 | # Build tree |
---|
11724 | echo "$f" |
---|
11725 | elif test -f "$srcdir/$f"; then |
---|
11726 | # Source tree |
---|
11727 | echo "$srcdir/$f" |
---|
11728 | else |
---|
11729 | # /dev/null tree |
---|
11730 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11731 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11732 | { (exit 1); exit 1; }; } |
---|
11733 | fi;; |
---|
11734 | esac |
---|
11735 | done` || { (exit 1); exit 1; } |
---|
11736 | _ACEOF |
---|
11737 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11738 | sed "$ac_vpsub |
---|
11739 | $extrasub |
---|
11740 | _ACEOF |
---|
11741 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11742 | :t |
---|
11743 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
11744 | s,@configure_input@,$configure_input,;t t |
---|
11745 | s,@srcdir@,$ac_srcdir,;t t |
---|
11746 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
11747 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
11748 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
11749 | s,@builddir@,$ac_builddir,;t t |
---|
11750 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
11751 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
11752 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
11753 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
11754 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
11755 | rm -f $tmp/stdin |
---|
11756 | if test x"$ac_file" != x-; then |
---|
11757 | mv $tmp/out $ac_file |
---|
11758 | else |
---|
11759 | cat $tmp/out |
---|
11760 | rm -f $tmp/out |
---|
11761 | fi |
---|
11762 | |
---|
11763 | done |
---|
11764 | _ACEOF |
---|
11765 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11766 | |
---|
11767 | # |
---|
11768 | # CONFIG_HEADER section. |
---|
11769 | # |
---|
11770 | |
---|
11771 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
11772 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
11773 | # |
---|
11774 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
11775 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
11776 | ac_dB='[ ].*$,\1#\2' |
---|
11777 | ac_dC=' ' |
---|
11778 | ac_dD=',;t' |
---|
11779 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
11780 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
11781 | ac_uB='$,\1#\2define\3' |
---|
11782 | ac_uC=' ' |
---|
11783 | ac_uD=',;t' |
---|
11784 | |
---|
11785 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
11786 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
11787 | case $ac_file in |
---|
11788 | - | *:- | *:-:* ) # input from stdin |
---|
11789 | cat >$tmp/stdin |
---|
11790 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11791 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11792 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11793 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11794 | * ) ac_file_in=$ac_file.in ;; |
---|
11795 | esac |
---|
11796 | |
---|
11797 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
11798 | echo "$as_me: creating $ac_file" >&6;} |
---|
11799 | |
---|
11800 | # First look for the input files in the build tree, otherwise in the |
---|
11801 | # src tree. |
---|
11802 | ac_file_inputs=`IFS=: |
---|
11803 | for f in $ac_file_in; do |
---|
11804 | case $f in |
---|
11805 | -) echo $tmp/stdin ;; |
---|
11806 | [\\/$]*) |
---|
11807 | # Absolute (can't be DOS-style, as IFS=:) |
---|
11808 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11809 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11810 | { (exit 1); exit 1; }; } |
---|
11811 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
11812 | echo "$f";; |
---|
11813 | *) # Relative |
---|
11814 | if test -f "$f"; then |
---|
11815 | # Build tree |
---|
11816 | echo "$f" |
---|
11817 | elif test -f "$srcdir/$f"; then |
---|
11818 | # Source tree |
---|
11819 | echo "$srcdir/$f" |
---|
11820 | else |
---|
11821 | # /dev/null tree |
---|
11822 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11823 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11824 | { (exit 1); exit 1; }; } |
---|
11825 | fi;; |
---|
11826 | esac |
---|
11827 | done` || { (exit 1); exit 1; } |
---|
11828 | # Remove the trailing spaces. |
---|
11829 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
11830 | |
---|
11831 | _ACEOF |
---|
11832 | |
---|
11833 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
11834 | # `conftest.undefs', that substitutes the proper values into |
---|
11835 | # config.h.in to produce config.h. The first handles `#define' |
---|
11836 | # templates, and the second `#undef' templates. |
---|
11837 | # And first: Protect against being on the right side of a sed subst in |
---|
11838 | # config.status. Protect against being in an unquoted here document |
---|
11839 | # in config.status. |
---|
11840 | rm -f conftest.defines conftest.undefs |
---|
11841 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
11842 | # Putting comments in sed scripts is not portable. |
---|
11843 | # |
---|
11844 | # `end' is used to avoid that the second main sed command (meant for |
---|
11845 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
11846 | # See the Autoconf documentation for `clear'. |
---|
11847 | cat >confdef2sed.sed <<\_ACEOF |
---|
11848 | s/[\\&,]/\\&/g |
---|
11849 | s,[\\$`],\\&,g |
---|
11850 | t clear |
---|
11851 | : clear |
---|
11852 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
11853 | t end |
---|
11854 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
11855 | : end |
---|
11856 | _ACEOF |
---|
11857 | # If some macros were called several times there might be several times |
---|
11858 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
11859 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
11860 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
11861 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
11862 | rm -f confdef2sed.sed |
---|
11863 | |
---|
11864 | # This sed command replaces #undef with comments. This is necessary, for |
---|
11865 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
11866 | # on some systems where configure will not decide to define it. |
---|
11867 | cat >>conftest.undefs <<\_ACEOF |
---|
11868 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
11869 | _ACEOF |
---|
11870 | |
---|
11871 | # Break up conftest.defines because some shells have a limit on the size |
---|
11872 | # of here documents, and old seds have small limits too (100 cmds). |
---|
11873 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
11874 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
11875 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
11876 | echo ' :' >>$CONFIG_STATUS |
---|
11877 | rm -f conftest.tail |
---|
11878 | while grep . conftest.defines >/dev/null |
---|
11879 | do |
---|
11880 | # Write a limited-size here document to $tmp/defines.sed. |
---|
11881 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
11882 | # Speed up: don't consider the non `#define' lines. |
---|
11883 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
11884 | # Work around the forget-to-reset-the-flag bug. |
---|
11885 | echo 't clr' >>$CONFIG_STATUS |
---|
11886 | echo ': clr' >>$CONFIG_STATUS |
---|
11887 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
11888 | echo 'CEOF |
---|
11889 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
11890 | rm -f $tmp/in |
---|
11891 | mv $tmp/out $tmp/in |
---|
11892 | ' >>$CONFIG_STATUS |
---|
11893 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
11894 | rm -f conftest.defines |
---|
11895 | mv conftest.tail conftest.defines |
---|
11896 | done |
---|
11897 | rm -f conftest.defines |
---|
11898 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
11899 | echo >>$CONFIG_STATUS |
---|
11900 | |
---|
11901 | # Break up conftest.undefs because some shells have a limit on the size |
---|
11902 | # of here documents, and old seds have small limits too (100 cmds). |
---|
11903 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
11904 | rm -f conftest.tail |
---|
11905 | while grep . conftest.undefs >/dev/null |
---|
11906 | do |
---|
11907 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
11908 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
11909 | # Speed up: don't consider the non `#undef' |
---|
11910 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
11911 | # Work around the forget-to-reset-the-flag bug. |
---|
11912 | echo 't clr' >>$CONFIG_STATUS |
---|
11913 | echo ': clr' >>$CONFIG_STATUS |
---|
11914 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
11915 | echo 'CEOF |
---|
11916 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
11917 | rm -f $tmp/in |
---|
11918 | mv $tmp/out $tmp/in |
---|
11919 | ' >>$CONFIG_STATUS |
---|
11920 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
11921 | rm -f conftest.undefs |
---|
11922 | mv conftest.tail conftest.undefs |
---|
11923 | done |
---|
11924 | rm -f conftest.undefs |
---|
11925 | |
---|
11926 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11927 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
11928 | # use $as_me), people would be surprised to read: |
---|
11929 | # /* config.h. Generated by config.status. */ |
---|
11930 | if test x"$ac_file" = x-; then |
---|
11931 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
11932 | else |
---|
11933 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
11934 | fi |
---|
11935 | cat $tmp/in >>$tmp/config.h |
---|
11936 | rm -f $tmp/in |
---|
11937 | if test x"$ac_file" != x-; then |
---|
11938 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
11939 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
11940 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
11941 | else |
---|
11942 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
11943 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11944 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
11945 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
11946 | X"$ac_file" : 'X\(/\)' \| \ |
---|
11947 | . : '\(.\)' 2>/dev/null || |
---|
11948 | echo X"$ac_file" | |
---|
11949 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11950 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11951 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11952 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11953 | s/.*/./; q'` |
---|
11954 | { if $as_mkdir_p; then |
---|
11955 | mkdir -p "$ac_dir" |
---|
11956 | else |
---|
11957 | as_dir="$ac_dir" |
---|
11958 | as_dirs= |
---|
11959 | while test ! -d "$as_dir"; do |
---|
11960 | as_dirs="$as_dir $as_dirs" |
---|
11961 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
11962 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11963 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
11964 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
11965 | X"$as_dir" : 'X\(/\)' \| \ |
---|
11966 | . : '\(.\)' 2>/dev/null || |
---|
11967 | echo X"$as_dir" | |
---|
11968 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11969 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11970 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11971 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11972 | s/.*/./; q'` |
---|
11973 | done |
---|
11974 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
11975 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
11976 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
11977 | { (exit 1); exit 1; }; }; } |
---|
11978 | |
---|
11979 | rm -f $ac_file |
---|
11980 | mv $tmp/config.h $ac_file |
---|
11981 | fi |
---|
11982 | else |
---|
11983 | cat $tmp/config.h |
---|
11984 | rm -f $tmp/config.h |
---|
11985 | fi |
---|
11986 | # Compute $ac_file's index in $config_headers. |
---|
11987 | _am_stamp_count=1 |
---|
11988 | for _am_header in $config_headers :; do |
---|
11989 | case $_am_header in |
---|
11990 | $ac_file | $ac_file:* ) |
---|
11991 | break ;; |
---|
11992 | * ) |
---|
11993 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
11994 | esac |
---|
11995 | done |
---|
11996 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
11997 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11998 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
11999 | X$ac_file : 'X\(//\)$' \| \ |
---|
12000 | X$ac_file : 'X\(/\)' \| \ |
---|
12001 | . : '\(.\)' 2>/dev/null || |
---|
12002 | echo X$ac_file | |
---|
12003 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12004 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12005 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12006 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12007 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
12008 | done |
---|
12009 | _ACEOF |
---|
12010 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
12011 | |
---|
12012 | # |
---|
12013 | # CONFIG_COMMANDS section. |
---|
12014 | # |
---|
12015 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
12016 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
12017 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
12018 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
12019 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12020 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
12021 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
12022 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
12023 | . : '\(.\)' 2>/dev/null || |
---|
12024 | echo X"$ac_dest" | |
---|
12025 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12026 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12027 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12028 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12029 | s/.*/./; q'` |
---|
12030 | { if $as_mkdir_p; then |
---|
12031 | mkdir -p "$ac_dir" |
---|
12032 | else |
---|
12033 | as_dir="$ac_dir" |
---|
12034 | as_dirs= |
---|
12035 | while test ! -d "$as_dir"; do |
---|
12036 | as_dirs="$as_dir $as_dirs" |
---|
12037 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
12038 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12039 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
12040 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
12041 | X"$as_dir" : 'X\(/\)' \| \ |
---|
12042 | . : '\(.\)' 2>/dev/null || |
---|
12043 | echo X"$as_dir" | |
---|
12044 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12045 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12046 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12047 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12048 | s/.*/./; q'` |
---|
12049 | done |
---|
12050 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
12051 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
12052 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
12053 | { (exit 1); exit 1; }; }; } |
---|
12054 | |
---|
12055 | ac_builddir=. |
---|
12056 | |
---|
12057 | if test "$ac_dir" != .; then |
---|
12058 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
12059 | # A "../" for each directory in $ac_dir_suffix. |
---|
12060 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
12061 | else |
---|
12062 | ac_dir_suffix= ac_top_builddir= |
---|
12063 | fi |
---|
12064 | |
---|
12065 | case $srcdir in |
---|
12066 | .) # No --srcdir option. We are building in place. |
---|
12067 | ac_srcdir=. |
---|
12068 | if test -z "$ac_top_builddir"; then |
---|
12069 | ac_top_srcdir=. |
---|
12070 | else |
---|
12071 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
12072 | fi ;; |
---|
12073 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
12074 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
12075 | ac_top_srcdir=$srcdir ;; |
---|
12076 | *) # Relative path. |
---|
12077 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
12078 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
12079 | esac |
---|
12080 | |
---|
12081 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
12082 | # the directories may not exist. |
---|
12083 | case `pwd` in |
---|
12084 | .) ac_abs_builddir="$ac_dir";; |
---|
12085 | *) |
---|
12086 | case "$ac_dir" in |
---|
12087 | .) ac_abs_builddir=`pwd`;; |
---|
12088 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
12089 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
12090 | esac;; |
---|
12091 | esac |
---|
12092 | case $ac_abs_builddir in |
---|
12093 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
12094 | *) |
---|
12095 | case ${ac_top_builddir}. in |
---|
12096 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
12097 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
12098 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
12099 | esac;; |
---|
12100 | esac |
---|
12101 | case $ac_abs_builddir in |
---|
12102 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
12103 | *) |
---|
12104 | case $ac_srcdir in |
---|
12105 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
12106 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
12107 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
12108 | esac;; |
---|
12109 | esac |
---|
12110 | case $ac_abs_builddir in |
---|
12111 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
12112 | *) |
---|
12113 | case $ac_top_srcdir in |
---|
12114 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
12115 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
12116 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
12117 | esac;; |
---|
12118 | esac |
---|
12119 | |
---|
12120 | |
---|
12121 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
12122 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
12123 | case $ac_dest in |
---|
12124 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
12125 | # Strip MF so we end up with the name of the file. |
---|
12126 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
12127 | # Check whether this is an Automake generated Makefile or not. |
---|
12128 | # We used to match only the files named `Makefile.in', but |
---|
12129 | # some people rename them; so instead we look at the file content. |
---|
12130 | # Grep'ing the first line is not enough: some people post-process |
---|
12131 | # each Makefile.in and add a new line on top of each file to say so. |
---|
12132 | # So let's grep whole file. |
---|
12133 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
12134 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
12135 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12136 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
12137 | X"$mf" : 'X\(//\)$' \| \ |
---|
12138 | X"$mf" : 'X\(/\)' \| \ |
---|
12139 | . : '\(.\)' 2>/dev/null || |
---|
12140 | echo X"$mf" | |
---|
12141 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12142 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12143 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12144 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12145 | s/.*/./; q'` |
---|
12146 | else |
---|
12147 | continue |
---|
12148 | fi |
---|
12149 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
12150 | # Extract the definition of DEP_FILES from the Makefile without |
---|
12151 | # running `make'. |
---|
12152 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
12153 | test -z "$DEPDIR" && continue |
---|
12154 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
12155 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
12156 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
12157 | # We invoke sed twice because it is the simplest approach to |
---|
12158 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
12159 | for file in `sed -n ' |
---|
12160 | /^DEP_FILES = .*\\\\$/ { |
---|
12161 | s/^DEP_FILES = // |
---|
12162 | :loop |
---|
12163 | s/\\\\$// |
---|
12164 | p |
---|
12165 | n |
---|
12166 | /\\\\$/ b loop |
---|
12167 | p |
---|
12168 | } |
---|
12169 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
12170 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
12171 | # Make sure the directory exists. |
---|
12172 | test -f "$dirpart/$file" && continue |
---|
12173 | fdir=`(dirname "$file") 2>/dev/null || |
---|
12174 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12175 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
12176 | X"$file" : 'X\(//\)$' \| \ |
---|
12177 | X"$file" : 'X\(/\)' \| \ |
---|
12178 | . : '\(.\)' 2>/dev/null || |
---|
12179 | echo X"$file" | |
---|
12180 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12181 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12182 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12183 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12184 | s/.*/./; q'` |
---|
12185 | { if $as_mkdir_p; then |
---|
12186 | mkdir -p $dirpart/$fdir |
---|
12187 | else |
---|
12188 | as_dir=$dirpart/$fdir |
---|
12189 | as_dirs= |
---|
12190 | while test ! -d "$as_dir"; do |
---|
12191 | as_dirs="$as_dir $as_dirs" |
---|
12192 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
12193 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12194 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
12195 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
12196 | X"$as_dir" : 'X\(/\)' \| \ |
---|
12197 | . : '\(.\)' 2>/dev/null || |
---|
12198 | echo X"$as_dir" | |
---|
12199 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12200 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12201 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12202 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12203 | s/.*/./; q'` |
---|
12204 | done |
---|
12205 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
12206 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
12207 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
12208 | { (exit 1); exit 1; }; }; } |
---|
12209 | |
---|
12210 | # echo "creating $dirpart/$file" |
---|
12211 | echo '# dummy' > "$dirpart/$file" |
---|
12212 | done |
---|
12213 | done |
---|
12214 | ;; |
---|
12215 | esac |
---|
12216 | done |
---|
12217 | _ACEOF |
---|
12218 | |
---|
12219 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
12220 | |
---|
12221 | { (exit 0); exit 0; } |
---|
12222 | _ACEOF |
---|
12223 | chmod +x $CONFIG_STATUS |
---|
12224 | ac_clean_files=$ac_clean_files_save |
---|
12225 | |
---|
12226 | |
---|
12227 | # configure is writing to config.log, and then calls config.status. |
---|
12228 | # config.status does its own redirection, appending to config.log. |
---|
12229 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
12230 | # by configure, so config.status won't be able to write to it; its |
---|
12231 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
12232 | # effectively closing config.log, so it can be properly (re)opened and |
---|
12233 | # appended to by config.status. When coming back to configure, we |
---|
12234 | # need to make the FD available again. |
---|
12235 | if test "$no_create" != yes; then |
---|
12236 | ac_cs_success=: |
---|
12237 | ac_config_status_args= |
---|
12238 | test "$silent" = yes && |
---|
12239 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
12240 | exec 5>/dev/null |
---|
12241 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
12242 | exec 5>>config.log |
---|
12243 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
12244 | # would make configure fail if this is the last instruction. |
---|
12245 | $ac_cs_success || { (exit 1); exit 1; } |
---|
12246 | fi |
---|
12247 | |
---|