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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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.9" |
---|
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 | # We used to keeping the `.' as first argument, in order to |
---|
1610 | # allow $(mkdir_p) to be used without argument. As in |
---|
1611 | # $(mkdir_p) $(somedir) |
---|
1612 | # where $(somedir) is conditionally defined. However this is wrong |
---|
1613 | # for two reasons: |
---|
1614 | # 1. if the package is installed by a user who cannot write `.' |
---|
1615 | # make install will fail, |
---|
1616 | # 2. the above comment should most certainly read |
---|
1617 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
1618 | # so it does not work when $(somedir) is undefined and |
---|
1619 | # $(DESTDIR) is not. |
---|
1620 | # To support the latter case, we have to write |
---|
1621 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
1622 | # so the `.' trick is pointless. |
---|
1623 | mkdir_p='mkdir -p --' |
---|
1624 | else |
---|
1625 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1626 | # recognize any option. It will interpret all options as |
---|
1627 | # directories to create, and then abort because `.' already |
---|
1628 | # exists. |
---|
1629 | for d in ./-p ./--version; |
---|
1630 | do |
---|
1631 | test -d $d && rmdir $d |
---|
1632 | done |
---|
1633 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1634 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1635 | mkdir_p='$(mkinstalldirs)' |
---|
1636 | else |
---|
1637 | mkdir_p='$(install_sh) -d' |
---|
1638 | fi |
---|
1639 | fi |
---|
1640 | |
---|
1641 | for ac_prog in gawk mawk nawk awk |
---|
1642 | do |
---|
1643 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1644 | set dummy $ac_prog; ac_word=$2 |
---|
1645 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1647 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1649 | else |
---|
1650 | if test -n "$AWK"; then |
---|
1651 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1652 | else |
---|
1653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1654 | for as_dir in $PATH |
---|
1655 | do |
---|
1656 | IFS=$as_save_IFS |
---|
1657 | test -z "$as_dir" && as_dir=. |
---|
1658 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1659 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1660 | ac_cv_prog_AWK="$ac_prog" |
---|
1661 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1662 | break 2 |
---|
1663 | fi |
---|
1664 | done |
---|
1665 | done |
---|
1666 | |
---|
1667 | fi |
---|
1668 | fi |
---|
1669 | AWK=$ac_cv_prog_AWK |
---|
1670 | if test -n "$AWK"; then |
---|
1671 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1672 | echo "${ECHO_T}$AWK" >&6 |
---|
1673 | else |
---|
1674 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1675 | echo "${ECHO_T}no" >&6 |
---|
1676 | fi |
---|
1677 | |
---|
1678 | test -n "$AWK" && break |
---|
1679 | done |
---|
1680 | |
---|
1681 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1682 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1683 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1684 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1686 | else |
---|
1687 | cat >conftest.make <<\_ACEOF |
---|
1688 | all: |
---|
1689 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1690 | _ACEOF |
---|
1691 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1692 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1693 | if test -n "$ac_maketemp"; then |
---|
1694 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1695 | else |
---|
1696 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1697 | fi |
---|
1698 | rm -f conftest.make |
---|
1699 | fi |
---|
1700 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1701 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1702 | echo "${ECHO_T}yes" >&6 |
---|
1703 | SET_MAKE= |
---|
1704 | else |
---|
1705 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1706 | echo "${ECHO_T}no" >&6 |
---|
1707 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1708 | fi |
---|
1709 | |
---|
1710 | rm -rf .tst 2>/dev/null |
---|
1711 | mkdir .tst 2>/dev/null |
---|
1712 | if test -d .tst; then |
---|
1713 | am__leading_dot=. |
---|
1714 | else |
---|
1715 | am__leading_dot=_ |
---|
1716 | fi |
---|
1717 | rmdir .tst 2>/dev/null |
---|
1718 | |
---|
1719 | # test to see if srcdir already configured |
---|
1720 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1721 | test -f $srcdir/config.status; then |
---|
1722 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1723 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1724 | { (exit 1); exit 1; }; } |
---|
1725 | fi |
---|
1726 | |
---|
1727 | # test whether we have cygpath |
---|
1728 | if test -z "$CYGPATH_W"; then |
---|
1729 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1730 | CYGPATH_W='cygpath -w' |
---|
1731 | else |
---|
1732 | CYGPATH_W=echo |
---|
1733 | fi |
---|
1734 | fi |
---|
1735 | |
---|
1736 | |
---|
1737 | # Define the identity of the package. |
---|
1738 | PACKAGE='orxonox' |
---|
1739 | VERSION='0.3.1_alpha' |
---|
1740 | |
---|
1741 | |
---|
1742 | cat >>confdefs.h <<_ACEOF |
---|
1743 | #define PACKAGE "$PACKAGE" |
---|
1744 | _ACEOF |
---|
1745 | |
---|
1746 | |
---|
1747 | cat >>confdefs.h <<_ACEOF |
---|
1748 | #define VERSION "$VERSION" |
---|
1749 | _ACEOF |
---|
1750 | |
---|
1751 | # Some tools Automake needs. |
---|
1752 | |
---|
1753 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1754 | |
---|
1755 | |
---|
1756 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1757 | |
---|
1758 | |
---|
1759 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1760 | |
---|
1761 | |
---|
1762 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1763 | |
---|
1764 | |
---|
1765 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1766 | |
---|
1767 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1768 | |
---|
1769 | # Installed binaries are usually stripped using `strip' when the user |
---|
1770 | # run `make install-strip'. However `strip' might not be the right |
---|
1771 | # tool to use in cross-compilation environments, therefore Automake |
---|
1772 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1773 | if test "$cross_compiling" != no; then |
---|
1774 | if test -n "$ac_tool_prefix"; then |
---|
1775 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1776 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1777 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1779 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1781 | else |
---|
1782 | if test -n "$STRIP"; then |
---|
1783 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1784 | else |
---|
1785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1786 | for as_dir in $PATH |
---|
1787 | do |
---|
1788 | IFS=$as_save_IFS |
---|
1789 | test -z "$as_dir" && as_dir=. |
---|
1790 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1792 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1794 | break 2 |
---|
1795 | fi |
---|
1796 | done |
---|
1797 | done |
---|
1798 | |
---|
1799 | fi |
---|
1800 | fi |
---|
1801 | STRIP=$ac_cv_prog_STRIP |
---|
1802 | if test -n "$STRIP"; then |
---|
1803 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1804 | echo "${ECHO_T}$STRIP" >&6 |
---|
1805 | else |
---|
1806 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1807 | echo "${ECHO_T}no" >&6 |
---|
1808 | fi |
---|
1809 | |
---|
1810 | fi |
---|
1811 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1812 | ac_ct_STRIP=$STRIP |
---|
1813 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1814 | set dummy strip; ac_word=$2 |
---|
1815 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1817 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1819 | else |
---|
1820 | if test -n "$ac_ct_STRIP"; then |
---|
1821 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1822 | else |
---|
1823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1824 | for as_dir in $PATH |
---|
1825 | do |
---|
1826 | IFS=$as_save_IFS |
---|
1827 | test -z "$as_dir" && as_dir=. |
---|
1828 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1829 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1830 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1831 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1832 | break 2 |
---|
1833 | fi |
---|
1834 | done |
---|
1835 | done |
---|
1836 | |
---|
1837 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1838 | fi |
---|
1839 | fi |
---|
1840 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1841 | if test -n "$ac_ct_STRIP"; then |
---|
1842 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1843 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1844 | else |
---|
1845 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1846 | echo "${ECHO_T}no" >&6 |
---|
1847 | fi |
---|
1848 | |
---|
1849 | STRIP=$ac_ct_STRIP |
---|
1850 | else |
---|
1851 | STRIP="$ac_cv_prog_STRIP" |
---|
1852 | fi |
---|
1853 | |
---|
1854 | fi |
---|
1855 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1856 | |
---|
1857 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1858 | # some platforms. |
---|
1859 | # Always define AMTAR for backward compatibility. |
---|
1860 | |
---|
1861 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1862 | |
---|
1863 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
1864 | |
---|
1865 | |
---|
1866 | |
---|
1867 | |
---|
1868 | |
---|
1869 | |
---|
1870 | |
---|
1871 | ac_config_headers="$ac_config_headers config.h" |
---|
1872 | |
---|
1873 | |
---|
1874 | ######################### |
---|
1875 | ## Checks for programs ## |
---|
1876 | ######################### |
---|
1877 | ac_ext=cc |
---|
1878 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1879 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1880 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1881 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1882 | if test -n "$ac_tool_prefix"; then |
---|
1883 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1884 | do |
---|
1885 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1886 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1887 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1889 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1891 | else |
---|
1892 | if test -n "$CXX"; then |
---|
1893 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1894 | else |
---|
1895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1896 | for as_dir in $PATH |
---|
1897 | do |
---|
1898 | IFS=$as_save_IFS |
---|
1899 | test -z "$as_dir" && as_dir=. |
---|
1900 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1901 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1902 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1903 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1904 | break 2 |
---|
1905 | fi |
---|
1906 | done |
---|
1907 | done |
---|
1908 | |
---|
1909 | fi |
---|
1910 | fi |
---|
1911 | CXX=$ac_cv_prog_CXX |
---|
1912 | if test -n "$CXX"; then |
---|
1913 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1914 | echo "${ECHO_T}$CXX" >&6 |
---|
1915 | else |
---|
1916 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1917 | echo "${ECHO_T}no" >&6 |
---|
1918 | fi |
---|
1919 | |
---|
1920 | test -n "$CXX" && break |
---|
1921 | done |
---|
1922 | fi |
---|
1923 | if test -z "$CXX"; then |
---|
1924 | ac_ct_CXX=$CXX |
---|
1925 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1926 | do |
---|
1927 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1928 | set dummy $ac_prog; ac_word=$2 |
---|
1929 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1931 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1933 | else |
---|
1934 | if test -n "$ac_ct_CXX"; then |
---|
1935 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1936 | else |
---|
1937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1938 | for as_dir in $PATH |
---|
1939 | do |
---|
1940 | IFS=$as_save_IFS |
---|
1941 | test -z "$as_dir" && as_dir=. |
---|
1942 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1943 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1944 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1945 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1946 | break 2 |
---|
1947 | fi |
---|
1948 | done |
---|
1949 | done |
---|
1950 | |
---|
1951 | fi |
---|
1952 | fi |
---|
1953 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1954 | if test -n "$ac_ct_CXX"; then |
---|
1955 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1956 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1957 | else |
---|
1958 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1959 | echo "${ECHO_T}no" >&6 |
---|
1960 | fi |
---|
1961 | |
---|
1962 | test -n "$ac_ct_CXX" && break |
---|
1963 | done |
---|
1964 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1965 | |
---|
1966 | CXX=$ac_ct_CXX |
---|
1967 | fi |
---|
1968 | |
---|
1969 | |
---|
1970 | # Provide some information about the compiler. |
---|
1971 | echo "$as_me:$LINENO:" \ |
---|
1972 | "checking for C++ compiler version" >&5 |
---|
1973 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1974 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1975 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1976 | ac_status=$? |
---|
1977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1978 | (exit $ac_status); } |
---|
1979 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1980 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1981 | ac_status=$? |
---|
1982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1983 | (exit $ac_status); } |
---|
1984 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1985 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1986 | ac_status=$? |
---|
1987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1988 | (exit $ac_status); } |
---|
1989 | |
---|
1990 | cat >conftest.$ac_ext <<_ACEOF |
---|
1991 | /* confdefs.h. */ |
---|
1992 | _ACEOF |
---|
1993 | cat confdefs.h >>conftest.$ac_ext |
---|
1994 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1995 | /* end confdefs.h. */ |
---|
1996 | |
---|
1997 | int |
---|
1998 | main () |
---|
1999 | { |
---|
2000 | |
---|
2001 | ; |
---|
2002 | return 0; |
---|
2003 | } |
---|
2004 | _ACEOF |
---|
2005 | ac_clean_files_save=$ac_clean_files |
---|
2006 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2007 | # Try to create an executable without -o first, disregard a.out. |
---|
2008 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2009 | # of exeext. |
---|
2010 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
2011 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
2012 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2013 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2014 | (eval $ac_link_default) 2>&5 |
---|
2015 | ac_status=$? |
---|
2016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2017 | (exit $ac_status); }; then |
---|
2018 | # Find the output, starting from the most likely. This scheme is |
---|
2019 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2020 | # resort. |
---|
2021 | |
---|
2022 | # Be careful to initialize this variable, since it used to be cached. |
---|
2023 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2024 | ac_cv_exeext= |
---|
2025 | # b.out is created by i960 compilers. |
---|
2026 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2027 | do |
---|
2028 | test -f "$ac_file" || continue |
---|
2029 | case $ac_file in |
---|
2030 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2031 | ;; |
---|
2032 | conftest.$ac_ext ) |
---|
2033 | # This is the source file. |
---|
2034 | ;; |
---|
2035 | [ab].out ) |
---|
2036 | # We found the default executable, but exeext='' is most |
---|
2037 | # certainly right. |
---|
2038 | break;; |
---|
2039 | *.* ) |
---|
2040 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2041 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2042 | # but it would be cool to find out if it's true. Does anybody |
---|
2043 | # maintain Libtool? --akim. |
---|
2044 | export ac_cv_exeext |
---|
2045 | break;; |
---|
2046 | * ) |
---|
2047 | break;; |
---|
2048 | esac |
---|
2049 | done |
---|
2050 | else |
---|
2051 | echo "$as_me: failed program was:" >&5 |
---|
2052 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2053 | |
---|
2054 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
2055 | See \`config.log' for more details." >&5 |
---|
2056 | echo "$as_me: error: C++ compiler cannot create executables |
---|
2057 | See \`config.log' for more details." >&2;} |
---|
2058 | { (exit 77); exit 77; }; } |
---|
2059 | fi |
---|
2060 | |
---|
2061 | ac_exeext=$ac_cv_exeext |
---|
2062 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2063 | echo "${ECHO_T}$ac_file" >&6 |
---|
2064 | |
---|
2065 | # Check the compiler produces executables we can run. If not, either |
---|
2066 | # the compiler is broken, or we cross compile. |
---|
2067 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
2068 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
2069 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2070 | # If not cross compiling, check that we can run a simple program. |
---|
2071 | if test "$cross_compiling" != yes; then |
---|
2072 | if { ac_try='./$ac_file' |
---|
2073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2074 | (eval $ac_try) 2>&5 |
---|
2075 | ac_status=$? |
---|
2076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2077 | (exit $ac_status); }; }; then |
---|
2078 | cross_compiling=no |
---|
2079 | else |
---|
2080 | if test "$cross_compiling" = maybe; then |
---|
2081 | cross_compiling=yes |
---|
2082 | else |
---|
2083 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2084 | If you meant to cross compile, use \`--host'. |
---|
2085 | See \`config.log' for more details." >&5 |
---|
2086 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2087 | If you meant to cross compile, use \`--host'. |
---|
2088 | See \`config.log' for more details." >&2;} |
---|
2089 | { (exit 1); exit 1; }; } |
---|
2090 | fi |
---|
2091 | fi |
---|
2092 | fi |
---|
2093 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2094 | echo "${ECHO_T}yes" >&6 |
---|
2095 | |
---|
2096 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2097 | ac_clean_files=$ac_clean_files_save |
---|
2098 | # Check the compiler produces executables we can run. If not, either |
---|
2099 | # the compiler is broken, or we cross compile. |
---|
2100 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2101 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2102 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2103 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2104 | |
---|
2105 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2106 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2108 | (eval $ac_link) 2>&5 |
---|
2109 | ac_status=$? |
---|
2110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2111 | (exit $ac_status); }; then |
---|
2112 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2113 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2114 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2115 | # `rm'. |
---|
2116 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2117 | test -f "$ac_file" || continue |
---|
2118 | case $ac_file in |
---|
2119 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2120 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2121 | export ac_cv_exeext |
---|
2122 | break;; |
---|
2123 | * ) break;; |
---|
2124 | esac |
---|
2125 | done |
---|
2126 | else |
---|
2127 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2128 | See \`config.log' for more details." >&5 |
---|
2129 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2130 | See \`config.log' for more details." >&2;} |
---|
2131 | { (exit 1); exit 1; }; } |
---|
2132 | fi |
---|
2133 | |
---|
2134 | rm -f conftest$ac_cv_exeext |
---|
2135 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2136 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2137 | |
---|
2138 | rm -f conftest.$ac_ext |
---|
2139 | EXEEXT=$ac_cv_exeext |
---|
2140 | ac_exeext=$EXEEXT |
---|
2141 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2142 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2143 | if test "${ac_cv_objext+set}" = set; then |
---|
2144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2145 | else |
---|
2146 | cat >conftest.$ac_ext <<_ACEOF |
---|
2147 | /* confdefs.h. */ |
---|
2148 | _ACEOF |
---|
2149 | cat confdefs.h >>conftest.$ac_ext |
---|
2150 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2151 | /* end confdefs.h. */ |
---|
2152 | |
---|
2153 | int |
---|
2154 | main () |
---|
2155 | { |
---|
2156 | |
---|
2157 | ; |
---|
2158 | return 0; |
---|
2159 | } |
---|
2160 | _ACEOF |
---|
2161 | rm -f conftest.o conftest.obj |
---|
2162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2163 | (eval $ac_compile) 2>&5 |
---|
2164 | ac_status=$? |
---|
2165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2166 | (exit $ac_status); }; then |
---|
2167 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2168 | case $ac_file in |
---|
2169 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2170 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2171 | break;; |
---|
2172 | esac |
---|
2173 | done |
---|
2174 | else |
---|
2175 | echo "$as_me: failed program was:" >&5 |
---|
2176 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2177 | |
---|
2178 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2179 | See \`config.log' for more details." >&5 |
---|
2180 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2181 | See \`config.log' for more details." >&2;} |
---|
2182 | { (exit 1); exit 1; }; } |
---|
2183 | fi |
---|
2184 | |
---|
2185 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2186 | fi |
---|
2187 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2188 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2189 | OBJEXT=$ac_cv_objext |
---|
2190 | ac_objext=$OBJEXT |
---|
2191 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2192 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2193 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2195 | else |
---|
2196 | cat >conftest.$ac_ext <<_ACEOF |
---|
2197 | /* confdefs.h. */ |
---|
2198 | _ACEOF |
---|
2199 | cat confdefs.h >>conftest.$ac_ext |
---|
2200 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2201 | /* end confdefs.h. */ |
---|
2202 | |
---|
2203 | int |
---|
2204 | main () |
---|
2205 | { |
---|
2206 | #ifndef __GNUC__ |
---|
2207 | choke me |
---|
2208 | #endif |
---|
2209 | |
---|
2210 | ; |
---|
2211 | return 0; |
---|
2212 | } |
---|
2213 | _ACEOF |
---|
2214 | rm -f conftest.$ac_objext |
---|
2215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2216 | (eval $ac_compile) 2>conftest.er1 |
---|
2217 | ac_status=$? |
---|
2218 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2219 | rm -f conftest.er1 |
---|
2220 | cat conftest.err >&5 |
---|
2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2222 | (exit $ac_status); } && |
---|
2223 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2224 | || test ! -s conftest.err' |
---|
2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2226 | (eval $ac_try) 2>&5 |
---|
2227 | ac_status=$? |
---|
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2229 | (exit $ac_status); }; } && |
---|
2230 | { ac_try='test -s conftest.$ac_objext' |
---|
2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2232 | (eval $ac_try) 2>&5 |
---|
2233 | ac_status=$? |
---|
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2235 | (exit $ac_status); }; }; then |
---|
2236 | ac_compiler_gnu=yes |
---|
2237 | else |
---|
2238 | echo "$as_me: failed program was:" >&5 |
---|
2239 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2240 | |
---|
2241 | ac_compiler_gnu=no |
---|
2242 | fi |
---|
2243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2244 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2245 | |
---|
2246 | fi |
---|
2247 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2248 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2249 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2250 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2251 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2252 | CXXFLAGS="-g" |
---|
2253 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2254 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2255 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2257 | else |
---|
2258 | cat >conftest.$ac_ext <<_ACEOF |
---|
2259 | /* confdefs.h. */ |
---|
2260 | _ACEOF |
---|
2261 | cat confdefs.h >>conftest.$ac_ext |
---|
2262 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2263 | /* end confdefs.h. */ |
---|
2264 | |
---|
2265 | int |
---|
2266 | main () |
---|
2267 | { |
---|
2268 | |
---|
2269 | ; |
---|
2270 | return 0; |
---|
2271 | } |
---|
2272 | _ACEOF |
---|
2273 | rm -f conftest.$ac_objext |
---|
2274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2275 | (eval $ac_compile) 2>conftest.er1 |
---|
2276 | ac_status=$? |
---|
2277 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2278 | rm -f conftest.er1 |
---|
2279 | cat conftest.err >&5 |
---|
2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2281 | (exit $ac_status); } && |
---|
2282 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2283 | || test ! -s conftest.err' |
---|
2284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2285 | (eval $ac_try) 2>&5 |
---|
2286 | ac_status=$? |
---|
2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2288 | (exit $ac_status); }; } && |
---|
2289 | { ac_try='test -s conftest.$ac_objext' |
---|
2290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2291 | (eval $ac_try) 2>&5 |
---|
2292 | ac_status=$? |
---|
2293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2294 | (exit $ac_status); }; }; then |
---|
2295 | ac_cv_prog_cxx_g=yes |
---|
2296 | else |
---|
2297 | echo "$as_me: failed program was:" >&5 |
---|
2298 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2299 | |
---|
2300 | ac_cv_prog_cxx_g=no |
---|
2301 | fi |
---|
2302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2303 | fi |
---|
2304 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2305 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2306 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2307 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2308 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2309 | if test "$GXX" = yes; then |
---|
2310 | CXXFLAGS="-g -O2" |
---|
2311 | else |
---|
2312 | CXXFLAGS="-g" |
---|
2313 | fi |
---|
2314 | else |
---|
2315 | if test "$GXX" = yes; then |
---|
2316 | CXXFLAGS="-O2" |
---|
2317 | else |
---|
2318 | CXXFLAGS= |
---|
2319 | fi |
---|
2320 | fi |
---|
2321 | for ac_declaration in \ |
---|
2322 | '' \ |
---|
2323 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2324 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2325 | 'extern "C" void exit (int) throw ();' \ |
---|
2326 | 'extern "C" void exit (int);' \ |
---|
2327 | 'void exit (int);' |
---|
2328 | do |
---|
2329 | cat >conftest.$ac_ext <<_ACEOF |
---|
2330 | /* confdefs.h. */ |
---|
2331 | _ACEOF |
---|
2332 | cat confdefs.h >>conftest.$ac_ext |
---|
2333 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2334 | /* end confdefs.h. */ |
---|
2335 | $ac_declaration |
---|
2336 | #include <stdlib.h> |
---|
2337 | int |
---|
2338 | main () |
---|
2339 | { |
---|
2340 | exit (42); |
---|
2341 | ; |
---|
2342 | return 0; |
---|
2343 | } |
---|
2344 | _ACEOF |
---|
2345 | rm -f conftest.$ac_objext |
---|
2346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2347 | (eval $ac_compile) 2>conftest.er1 |
---|
2348 | ac_status=$? |
---|
2349 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2350 | rm -f conftest.er1 |
---|
2351 | cat conftest.err >&5 |
---|
2352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2353 | (exit $ac_status); } && |
---|
2354 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2355 | || test ! -s conftest.err' |
---|
2356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2357 | (eval $ac_try) 2>&5 |
---|
2358 | ac_status=$? |
---|
2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2360 | (exit $ac_status); }; } && |
---|
2361 | { ac_try='test -s conftest.$ac_objext' |
---|
2362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2363 | (eval $ac_try) 2>&5 |
---|
2364 | ac_status=$? |
---|
2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2366 | (exit $ac_status); }; }; then |
---|
2367 | : |
---|
2368 | else |
---|
2369 | echo "$as_me: failed program was:" >&5 |
---|
2370 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2371 | |
---|
2372 | continue |
---|
2373 | fi |
---|
2374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2375 | cat >conftest.$ac_ext <<_ACEOF |
---|
2376 | /* confdefs.h. */ |
---|
2377 | _ACEOF |
---|
2378 | cat confdefs.h >>conftest.$ac_ext |
---|
2379 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2380 | /* end confdefs.h. */ |
---|
2381 | $ac_declaration |
---|
2382 | int |
---|
2383 | main () |
---|
2384 | { |
---|
2385 | exit (42); |
---|
2386 | ; |
---|
2387 | return 0; |
---|
2388 | } |
---|
2389 | _ACEOF |
---|
2390 | rm -f conftest.$ac_objext |
---|
2391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2392 | (eval $ac_compile) 2>conftest.er1 |
---|
2393 | ac_status=$? |
---|
2394 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2395 | rm -f conftest.er1 |
---|
2396 | cat conftest.err >&5 |
---|
2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2398 | (exit $ac_status); } && |
---|
2399 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2400 | || test ! -s conftest.err' |
---|
2401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2402 | (eval $ac_try) 2>&5 |
---|
2403 | ac_status=$? |
---|
2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2405 | (exit $ac_status); }; } && |
---|
2406 | { ac_try='test -s conftest.$ac_objext' |
---|
2407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2408 | (eval $ac_try) 2>&5 |
---|
2409 | ac_status=$? |
---|
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2411 | (exit $ac_status); }; }; then |
---|
2412 | break |
---|
2413 | else |
---|
2414 | echo "$as_me: failed program was:" >&5 |
---|
2415 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2416 | |
---|
2417 | fi |
---|
2418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2419 | done |
---|
2420 | rm -f conftest* |
---|
2421 | if test -n "$ac_declaration"; then |
---|
2422 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2423 | echo $ac_declaration >>confdefs.h |
---|
2424 | echo '#endif' >>confdefs.h |
---|
2425 | fi |
---|
2426 | |
---|
2427 | ac_ext=c |
---|
2428 | ac_cpp='$CPP $CPPFLAGS' |
---|
2429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2432 | DEPDIR="${am__leading_dot}deps" |
---|
2433 | |
---|
2434 | ac_config_commands="$ac_config_commands depfiles" |
---|
2435 | |
---|
2436 | |
---|
2437 | am_make=${MAKE-make} |
---|
2438 | cat > confinc << 'END' |
---|
2439 | am__doit: |
---|
2440 | @echo done |
---|
2441 | .PHONY: am__doit |
---|
2442 | END |
---|
2443 | # If we don't find an include directive, just comment out the code. |
---|
2444 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2445 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2446 | am__include="#" |
---|
2447 | am__quote= |
---|
2448 | _am_result=none |
---|
2449 | # First try GNU make style include. |
---|
2450 | echo "include confinc" > confmf |
---|
2451 | # We grep out `Entering directory' and `Leaving directory' |
---|
2452 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2453 | # In particular we don't look at `^make:' because GNU make might |
---|
2454 | # be invoked under some other name (usually "gmake"), in which |
---|
2455 | # case it prints its new name instead of `make'. |
---|
2456 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2457 | am__include=include |
---|
2458 | am__quote= |
---|
2459 | _am_result=GNU |
---|
2460 | fi |
---|
2461 | # Now try BSD make style include. |
---|
2462 | if test "$am__include" = "#"; then |
---|
2463 | echo '.include "confinc"' > confmf |
---|
2464 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2465 | am__include=.include |
---|
2466 | am__quote="\"" |
---|
2467 | _am_result=BSD |
---|
2468 | fi |
---|
2469 | fi |
---|
2470 | |
---|
2471 | |
---|
2472 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2473 | echo "${ECHO_T}$_am_result" >&6 |
---|
2474 | rm -f confinc confmf |
---|
2475 | |
---|
2476 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2477 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2478 | enableval="$enable_dependency_tracking" |
---|
2479 | |
---|
2480 | fi; |
---|
2481 | if test "x$enable_dependency_tracking" != xno; then |
---|
2482 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2483 | AMDEPBACKSLASH='\' |
---|
2484 | fi |
---|
2485 | |
---|
2486 | |
---|
2487 | if test "x$enable_dependency_tracking" != xno; then |
---|
2488 | AMDEP_TRUE= |
---|
2489 | AMDEP_FALSE='#' |
---|
2490 | else |
---|
2491 | AMDEP_TRUE='#' |
---|
2492 | AMDEP_FALSE= |
---|
2493 | fi |
---|
2494 | |
---|
2495 | |
---|
2496 | |
---|
2497 | |
---|
2498 | depcc="$CXX" am_compiler_list= |
---|
2499 | |
---|
2500 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2501 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2502 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2504 | else |
---|
2505 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2506 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2507 | # making bogus files that we don't know about and never remove. For |
---|
2508 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2509 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2510 | # in D'. |
---|
2511 | mkdir conftest.dir |
---|
2512 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2513 | # using a relative directory. |
---|
2514 | cp "$am_depcomp" conftest.dir |
---|
2515 | cd conftest.dir |
---|
2516 | # We will build objects and dependencies in a subdirectory because |
---|
2517 | # it helps to detect inapplicable dependency modes. For instance |
---|
2518 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2519 | # side effect of compilation, but ICC will put the dependencies in |
---|
2520 | # the current directory while Tru64 will put them in the object |
---|
2521 | # directory. |
---|
2522 | mkdir sub |
---|
2523 | |
---|
2524 | am_cv_CXX_dependencies_compiler_type=none |
---|
2525 | if test "$am_compiler_list" = ""; then |
---|
2526 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2527 | fi |
---|
2528 | for depmode in $am_compiler_list; do |
---|
2529 | # Setup a source with many dependencies, because some compilers |
---|
2530 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2531 | # we should not choose a depcomp mode which is confused by this. |
---|
2532 | # |
---|
2533 | # We need to recreate these files for each test, as the compiler may |
---|
2534 | # overwrite some of them when testing with obscure command lines. |
---|
2535 | # This happens at least with the AIX C compiler. |
---|
2536 | : > sub/conftest.c |
---|
2537 | for i in 1 2 3 4 5 6; do |
---|
2538 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2539 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
2540 | # Solaris 8's {/usr,}/bin/sh. |
---|
2541 | touch sub/conftst$i.h |
---|
2542 | done |
---|
2543 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2544 | |
---|
2545 | case $depmode in |
---|
2546 | nosideeffect) |
---|
2547 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2548 | # only be used when explicitly requested |
---|
2549 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2550 | continue |
---|
2551 | else |
---|
2552 | break |
---|
2553 | fi |
---|
2554 | ;; |
---|
2555 | none) break ;; |
---|
2556 | esac |
---|
2557 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2558 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2559 | # handle `-M -o', and we need to detect this. |
---|
2560 | if depmode=$depmode \ |
---|
2561 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2562 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2563 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2564 | >/dev/null 2>conftest.err && |
---|
2565 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2566 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2567 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2568 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2569 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
2570 | # that says an option was ignored or not supported. |
---|
2571 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
2572 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
2573 | # The diagnosis changed in icc 8.0: |
---|
2574 | # icc: Command line remark: option '-MP' not supported |
---|
2575 | if (grep 'ignoring option' conftest.err || |
---|
2576 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
2577 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2578 | break |
---|
2579 | fi |
---|
2580 | fi |
---|
2581 | done |
---|
2582 | |
---|
2583 | cd .. |
---|
2584 | rm -rf conftest.dir |
---|
2585 | else |
---|
2586 | am_cv_CXX_dependencies_compiler_type=none |
---|
2587 | fi |
---|
2588 | |
---|
2589 | fi |
---|
2590 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2591 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2592 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2593 | |
---|
2594 | |
---|
2595 | |
---|
2596 | if |
---|
2597 | test "x$enable_dependency_tracking" != xno \ |
---|
2598 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2599 | am__fastdepCXX_TRUE= |
---|
2600 | am__fastdepCXX_FALSE='#' |
---|
2601 | else |
---|
2602 | am__fastdepCXX_TRUE='#' |
---|
2603 | am__fastdepCXX_FALSE= |
---|
2604 | fi |
---|
2605 | |
---|
2606 | |
---|
2607 | if test -n "$ac_tool_prefix"; then |
---|
2608 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2609 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2612 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
2613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2614 | else |
---|
2615 | if test -n "$RANLIB"; then |
---|
2616 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2617 | else |
---|
2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2619 | for as_dir in $PATH |
---|
2620 | do |
---|
2621 | IFS=$as_save_IFS |
---|
2622 | test -z "$as_dir" && as_dir=. |
---|
2623 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2625 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2627 | break 2 |
---|
2628 | fi |
---|
2629 | done |
---|
2630 | done |
---|
2631 | |
---|
2632 | fi |
---|
2633 | fi |
---|
2634 | RANLIB=$ac_cv_prog_RANLIB |
---|
2635 | if test -n "$RANLIB"; then |
---|
2636 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
2637 | echo "${ECHO_T}$RANLIB" >&6 |
---|
2638 | else |
---|
2639 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2640 | echo "${ECHO_T}no" >&6 |
---|
2641 | fi |
---|
2642 | |
---|
2643 | fi |
---|
2644 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2645 | ac_ct_RANLIB=$RANLIB |
---|
2646 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2647 | set dummy ranlib; ac_word=$2 |
---|
2648 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2650 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
2651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2652 | else |
---|
2653 | if test -n "$ac_ct_RANLIB"; then |
---|
2654 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2655 | else |
---|
2656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2657 | for as_dir in $PATH |
---|
2658 | do |
---|
2659 | IFS=$as_save_IFS |
---|
2660 | test -z "$as_dir" && as_dir=. |
---|
2661 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2662 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2663 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2665 | break 2 |
---|
2666 | fi |
---|
2667 | done |
---|
2668 | done |
---|
2669 | |
---|
2670 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
2671 | fi |
---|
2672 | fi |
---|
2673 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2674 | if test -n "$ac_ct_RANLIB"; then |
---|
2675 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
2676 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
2677 | else |
---|
2678 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2679 | echo "${ECHO_T}no" >&6 |
---|
2680 | fi |
---|
2681 | |
---|
2682 | RANLIB=$ac_ct_RANLIB |
---|
2683 | else |
---|
2684 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2685 | fi |
---|
2686 | |
---|
2687 | ac_ext=c |
---|
2688 | ac_cpp='$CPP $CPPFLAGS' |
---|
2689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2692 | if test -n "$ac_tool_prefix"; then |
---|
2693 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2694 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2697 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2699 | else |
---|
2700 | if test -n "$CC"; then |
---|
2701 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2702 | else |
---|
2703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2704 | for as_dir in $PATH |
---|
2705 | do |
---|
2706 | IFS=$as_save_IFS |
---|
2707 | test -z "$as_dir" && as_dir=. |
---|
2708 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2709 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2710 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2711 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2712 | break 2 |
---|
2713 | fi |
---|
2714 | done |
---|
2715 | done |
---|
2716 | |
---|
2717 | fi |
---|
2718 | fi |
---|
2719 | CC=$ac_cv_prog_CC |
---|
2720 | if test -n "$CC"; then |
---|
2721 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2722 | echo "${ECHO_T}$CC" >&6 |
---|
2723 | else |
---|
2724 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2725 | echo "${ECHO_T}no" >&6 |
---|
2726 | fi |
---|
2727 | |
---|
2728 | fi |
---|
2729 | if test -z "$ac_cv_prog_CC"; then |
---|
2730 | ac_ct_CC=$CC |
---|
2731 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2732 | set dummy gcc; ac_word=$2 |
---|
2733 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2735 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2737 | else |
---|
2738 | if test -n "$ac_ct_CC"; then |
---|
2739 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2740 | else |
---|
2741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2742 | for as_dir in $PATH |
---|
2743 | do |
---|
2744 | IFS=$as_save_IFS |
---|
2745 | test -z "$as_dir" && as_dir=. |
---|
2746 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2747 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2748 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2749 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2750 | break 2 |
---|
2751 | fi |
---|
2752 | done |
---|
2753 | done |
---|
2754 | |
---|
2755 | fi |
---|
2756 | fi |
---|
2757 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2758 | if test -n "$ac_ct_CC"; then |
---|
2759 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2760 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2761 | else |
---|
2762 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2763 | echo "${ECHO_T}no" >&6 |
---|
2764 | fi |
---|
2765 | |
---|
2766 | CC=$ac_ct_CC |
---|
2767 | else |
---|
2768 | CC="$ac_cv_prog_CC" |
---|
2769 | fi |
---|
2770 | |
---|
2771 | if test -z "$CC"; then |
---|
2772 | if test -n "$ac_tool_prefix"; then |
---|
2773 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2774 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2775 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2777 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2779 | else |
---|
2780 | if test -n "$CC"; then |
---|
2781 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2782 | else |
---|
2783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2784 | for as_dir in $PATH |
---|
2785 | do |
---|
2786 | IFS=$as_save_IFS |
---|
2787 | test -z "$as_dir" && as_dir=. |
---|
2788 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2789 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2790 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2792 | break 2 |
---|
2793 | fi |
---|
2794 | done |
---|
2795 | done |
---|
2796 | |
---|
2797 | fi |
---|
2798 | fi |
---|
2799 | CC=$ac_cv_prog_CC |
---|
2800 | if test -n "$CC"; then |
---|
2801 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2802 | echo "${ECHO_T}$CC" >&6 |
---|
2803 | else |
---|
2804 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2805 | echo "${ECHO_T}no" >&6 |
---|
2806 | fi |
---|
2807 | |
---|
2808 | fi |
---|
2809 | if test -z "$ac_cv_prog_CC"; then |
---|
2810 | ac_ct_CC=$CC |
---|
2811 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2812 | set dummy cc; ac_word=$2 |
---|
2813 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2815 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2817 | else |
---|
2818 | if test -n "$ac_ct_CC"; then |
---|
2819 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2820 | else |
---|
2821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2822 | for as_dir in $PATH |
---|
2823 | do |
---|
2824 | IFS=$as_save_IFS |
---|
2825 | test -z "$as_dir" && as_dir=. |
---|
2826 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2827 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2828 | ac_cv_prog_ac_ct_CC="cc" |
---|
2829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2830 | break 2 |
---|
2831 | fi |
---|
2832 | done |
---|
2833 | done |
---|
2834 | |
---|
2835 | fi |
---|
2836 | fi |
---|
2837 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2838 | if test -n "$ac_ct_CC"; then |
---|
2839 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2840 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2841 | else |
---|
2842 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2843 | echo "${ECHO_T}no" >&6 |
---|
2844 | fi |
---|
2845 | |
---|
2846 | CC=$ac_ct_CC |
---|
2847 | else |
---|
2848 | CC="$ac_cv_prog_CC" |
---|
2849 | fi |
---|
2850 | |
---|
2851 | fi |
---|
2852 | if test -z "$CC"; then |
---|
2853 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2854 | set dummy cc; ac_word=$2 |
---|
2855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2857 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2859 | else |
---|
2860 | if test -n "$CC"; then |
---|
2861 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2862 | else |
---|
2863 | ac_prog_rejected=no |
---|
2864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2865 | for as_dir in $PATH |
---|
2866 | do |
---|
2867 | IFS=$as_save_IFS |
---|
2868 | test -z "$as_dir" && as_dir=. |
---|
2869 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2870 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2871 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2872 | ac_prog_rejected=yes |
---|
2873 | continue |
---|
2874 | fi |
---|
2875 | ac_cv_prog_CC="cc" |
---|
2876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2877 | break 2 |
---|
2878 | fi |
---|
2879 | done |
---|
2880 | done |
---|
2881 | |
---|
2882 | if test $ac_prog_rejected = yes; then |
---|
2883 | # We found a bogon in the path, so make sure we never use it. |
---|
2884 | set dummy $ac_cv_prog_CC |
---|
2885 | shift |
---|
2886 | if test $# != 0; then |
---|
2887 | # We chose a different compiler from the bogus one. |
---|
2888 | # However, it has the same basename, so the bogon will be chosen |
---|
2889 | # first if we set CC to just the basename; use the full file name. |
---|
2890 | shift |
---|
2891 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2892 | fi |
---|
2893 | fi |
---|
2894 | fi |
---|
2895 | fi |
---|
2896 | CC=$ac_cv_prog_CC |
---|
2897 | if test -n "$CC"; then |
---|
2898 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2899 | echo "${ECHO_T}$CC" >&6 |
---|
2900 | else |
---|
2901 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2902 | echo "${ECHO_T}no" >&6 |
---|
2903 | fi |
---|
2904 | |
---|
2905 | fi |
---|
2906 | if test -z "$CC"; then |
---|
2907 | if test -n "$ac_tool_prefix"; then |
---|
2908 | for ac_prog in cl |
---|
2909 | do |
---|
2910 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2911 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2914 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2916 | else |
---|
2917 | if test -n "$CC"; then |
---|
2918 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2919 | else |
---|
2920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2921 | for as_dir in $PATH |
---|
2922 | do |
---|
2923 | IFS=$as_save_IFS |
---|
2924 | test -z "$as_dir" && as_dir=. |
---|
2925 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2927 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2929 | break 2 |
---|
2930 | fi |
---|
2931 | done |
---|
2932 | done |
---|
2933 | |
---|
2934 | fi |
---|
2935 | fi |
---|
2936 | CC=$ac_cv_prog_CC |
---|
2937 | if test -n "$CC"; then |
---|
2938 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2939 | echo "${ECHO_T}$CC" >&6 |
---|
2940 | else |
---|
2941 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2942 | echo "${ECHO_T}no" >&6 |
---|
2943 | fi |
---|
2944 | |
---|
2945 | test -n "$CC" && break |
---|
2946 | done |
---|
2947 | fi |
---|
2948 | if test -z "$CC"; then |
---|
2949 | ac_ct_CC=$CC |
---|
2950 | for ac_prog in cl |
---|
2951 | do |
---|
2952 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2953 | set dummy $ac_prog; ac_word=$2 |
---|
2954 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2956 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2958 | else |
---|
2959 | if test -n "$ac_ct_CC"; then |
---|
2960 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2961 | else |
---|
2962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2963 | for as_dir in $PATH |
---|
2964 | do |
---|
2965 | IFS=$as_save_IFS |
---|
2966 | test -z "$as_dir" && as_dir=. |
---|
2967 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2968 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2969 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2971 | break 2 |
---|
2972 | fi |
---|
2973 | done |
---|
2974 | done |
---|
2975 | |
---|
2976 | fi |
---|
2977 | fi |
---|
2978 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2979 | if test -n "$ac_ct_CC"; then |
---|
2980 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2981 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2982 | else |
---|
2983 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2984 | echo "${ECHO_T}no" >&6 |
---|
2985 | fi |
---|
2986 | |
---|
2987 | test -n "$ac_ct_CC" && break |
---|
2988 | done |
---|
2989 | |
---|
2990 | CC=$ac_ct_CC |
---|
2991 | fi |
---|
2992 | |
---|
2993 | fi |
---|
2994 | |
---|
2995 | |
---|
2996 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2997 | See \`config.log' for more details." >&5 |
---|
2998 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2999 | See \`config.log' for more details." >&2;} |
---|
3000 | { (exit 1); exit 1; }; } |
---|
3001 | |
---|
3002 | # Provide some information about the compiler. |
---|
3003 | echo "$as_me:$LINENO:" \ |
---|
3004 | "checking for C compiler version" >&5 |
---|
3005 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3006 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3007 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3008 | ac_status=$? |
---|
3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3010 | (exit $ac_status); } |
---|
3011 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3012 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3013 | ac_status=$? |
---|
3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3015 | (exit $ac_status); } |
---|
3016 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3017 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3018 | ac_status=$? |
---|
3019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3020 | (exit $ac_status); } |
---|
3021 | |
---|
3022 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
3023 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
3024 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
3025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3026 | else |
---|
3027 | cat >conftest.$ac_ext <<_ACEOF |
---|
3028 | /* confdefs.h. */ |
---|
3029 | _ACEOF |
---|
3030 | cat confdefs.h >>conftest.$ac_ext |
---|
3031 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3032 | /* end confdefs.h. */ |
---|
3033 | |
---|
3034 | int |
---|
3035 | main () |
---|
3036 | { |
---|
3037 | #ifndef __GNUC__ |
---|
3038 | choke me |
---|
3039 | #endif |
---|
3040 | |
---|
3041 | ; |
---|
3042 | return 0; |
---|
3043 | } |
---|
3044 | _ACEOF |
---|
3045 | rm -f conftest.$ac_objext |
---|
3046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3047 | (eval $ac_compile) 2>conftest.er1 |
---|
3048 | ac_status=$? |
---|
3049 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3050 | rm -f conftest.er1 |
---|
3051 | cat conftest.err >&5 |
---|
3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3053 | (exit $ac_status); } && |
---|
3054 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3055 | || test ! -s conftest.err' |
---|
3056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3057 | (eval $ac_try) 2>&5 |
---|
3058 | ac_status=$? |
---|
3059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3060 | (exit $ac_status); }; } && |
---|
3061 | { ac_try='test -s conftest.$ac_objext' |
---|
3062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3063 | (eval $ac_try) 2>&5 |
---|
3064 | ac_status=$? |
---|
3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3066 | (exit $ac_status); }; }; then |
---|
3067 | ac_compiler_gnu=yes |
---|
3068 | else |
---|
3069 | echo "$as_me: failed program was:" >&5 |
---|
3070 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3071 | |
---|
3072 | ac_compiler_gnu=no |
---|
3073 | fi |
---|
3074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3075 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3076 | |
---|
3077 | fi |
---|
3078 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3079 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
3080 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
3081 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3082 | ac_save_CFLAGS=$CFLAGS |
---|
3083 | CFLAGS="-g" |
---|
3084 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
3085 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
3086 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
3087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3088 | else |
---|
3089 | cat >conftest.$ac_ext <<_ACEOF |
---|
3090 | /* confdefs.h. */ |
---|
3091 | _ACEOF |
---|
3092 | cat confdefs.h >>conftest.$ac_ext |
---|
3093 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3094 | /* end confdefs.h. */ |
---|
3095 | |
---|
3096 | int |
---|
3097 | main () |
---|
3098 | { |
---|
3099 | |
---|
3100 | ; |
---|
3101 | return 0; |
---|
3102 | } |
---|
3103 | _ACEOF |
---|
3104 | rm -f conftest.$ac_objext |
---|
3105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3106 | (eval $ac_compile) 2>conftest.er1 |
---|
3107 | ac_status=$? |
---|
3108 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3109 | rm -f conftest.er1 |
---|
3110 | cat conftest.err >&5 |
---|
3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3112 | (exit $ac_status); } && |
---|
3113 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3114 | || test ! -s conftest.err' |
---|
3115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3116 | (eval $ac_try) 2>&5 |
---|
3117 | ac_status=$? |
---|
3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3119 | (exit $ac_status); }; } && |
---|
3120 | { ac_try='test -s conftest.$ac_objext' |
---|
3121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3122 | (eval $ac_try) 2>&5 |
---|
3123 | ac_status=$? |
---|
3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3125 | (exit $ac_status); }; }; then |
---|
3126 | ac_cv_prog_cc_g=yes |
---|
3127 | else |
---|
3128 | echo "$as_me: failed program was:" >&5 |
---|
3129 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3130 | |
---|
3131 | ac_cv_prog_cc_g=no |
---|
3132 | fi |
---|
3133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3134 | fi |
---|
3135 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3136 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
3137 | if test "$ac_test_CFLAGS" = set; then |
---|
3138 | CFLAGS=$ac_save_CFLAGS |
---|
3139 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3140 | if test "$GCC" = yes; then |
---|
3141 | CFLAGS="-g -O2" |
---|
3142 | else |
---|
3143 | CFLAGS="-g" |
---|
3144 | fi |
---|
3145 | else |
---|
3146 | if test "$GCC" = yes; then |
---|
3147 | CFLAGS="-O2" |
---|
3148 | else |
---|
3149 | CFLAGS= |
---|
3150 | fi |
---|
3151 | fi |
---|
3152 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3153 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3154 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3156 | else |
---|
3157 | ac_cv_prog_cc_stdc=no |
---|
3158 | ac_save_CC=$CC |
---|
3159 | cat >conftest.$ac_ext <<_ACEOF |
---|
3160 | /* confdefs.h. */ |
---|
3161 | _ACEOF |
---|
3162 | cat confdefs.h >>conftest.$ac_ext |
---|
3163 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3164 | /* end confdefs.h. */ |
---|
3165 | #include <stdarg.h> |
---|
3166 | #include <stdio.h> |
---|
3167 | #include <sys/types.h> |
---|
3168 | #include <sys/stat.h> |
---|
3169 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3170 | struct buf { int x; }; |
---|
3171 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3172 | static char *e (p, i) |
---|
3173 | char **p; |
---|
3174 | int i; |
---|
3175 | { |
---|
3176 | return p[i]; |
---|
3177 | } |
---|
3178 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3179 | { |
---|
3180 | char *s; |
---|
3181 | va_list v; |
---|
3182 | va_start (v,p); |
---|
3183 | s = g (p, va_arg (v,int)); |
---|
3184 | va_end (v); |
---|
3185 | return s; |
---|
3186 | } |
---|
3187 | |
---|
3188 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3189 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3190 | These don't provoke an error unfortunately, instead are silently treated |
---|
3191 | as 'x'. The following induces an error, until -std1 is added to get |
---|
3192 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3193 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3194 | that's true only with -std1. */ |
---|
3195 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3196 | |
---|
3197 | int test (int i, double x); |
---|
3198 | struct s1 {int (*f) (int a);}; |
---|
3199 | struct s2 {int (*f) (double a);}; |
---|
3200 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3201 | int argc; |
---|
3202 | char **argv; |
---|
3203 | int |
---|
3204 | main () |
---|
3205 | { |
---|
3206 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3207 | ; |
---|
3208 | return 0; |
---|
3209 | } |
---|
3210 | _ACEOF |
---|
3211 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3212 | # breaks some systems' header files. |
---|
3213 | # AIX -qlanglvl=ansi |
---|
3214 | # Ultrix and OSF/1 -std1 |
---|
3215 | # HP-UX 10.20 and later -Ae |
---|
3216 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3217 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3218 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3219 | do |
---|
3220 | CC="$ac_save_CC $ac_arg" |
---|
3221 | rm -f conftest.$ac_objext |
---|
3222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3223 | (eval $ac_compile) 2>conftest.er1 |
---|
3224 | ac_status=$? |
---|
3225 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3226 | rm -f conftest.er1 |
---|
3227 | cat conftest.err >&5 |
---|
3228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3229 | (exit $ac_status); } && |
---|
3230 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3231 | || test ! -s conftest.err' |
---|
3232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3233 | (eval $ac_try) 2>&5 |
---|
3234 | ac_status=$? |
---|
3235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3236 | (exit $ac_status); }; } && |
---|
3237 | { ac_try='test -s conftest.$ac_objext' |
---|
3238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3239 | (eval $ac_try) 2>&5 |
---|
3240 | ac_status=$? |
---|
3241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3242 | (exit $ac_status); }; }; then |
---|
3243 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3244 | break |
---|
3245 | else |
---|
3246 | echo "$as_me: failed program was:" >&5 |
---|
3247 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3248 | |
---|
3249 | fi |
---|
3250 | rm -f conftest.err conftest.$ac_objext |
---|
3251 | done |
---|
3252 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3253 | CC=$ac_save_CC |
---|
3254 | |
---|
3255 | fi |
---|
3256 | |
---|
3257 | case "x$ac_cv_prog_cc_stdc" in |
---|
3258 | x|xno) |
---|
3259 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3260 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3261 | *) |
---|
3262 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3263 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3264 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3265 | esac |
---|
3266 | |
---|
3267 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3268 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3269 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3270 | # the declaration of exit, since it's the most demanding environment. |
---|
3271 | cat >conftest.$ac_ext <<_ACEOF |
---|
3272 | #ifndef __cplusplus |
---|
3273 | choke me |
---|
3274 | #endif |
---|
3275 | _ACEOF |
---|
3276 | rm -f conftest.$ac_objext |
---|
3277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3278 | (eval $ac_compile) 2>conftest.er1 |
---|
3279 | ac_status=$? |
---|
3280 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3281 | rm -f conftest.er1 |
---|
3282 | cat conftest.err >&5 |
---|
3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3284 | (exit $ac_status); } && |
---|
3285 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3286 | || test ! -s conftest.err' |
---|
3287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3288 | (eval $ac_try) 2>&5 |
---|
3289 | ac_status=$? |
---|
3290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3291 | (exit $ac_status); }; } && |
---|
3292 | { ac_try='test -s conftest.$ac_objext' |
---|
3293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3294 | (eval $ac_try) 2>&5 |
---|
3295 | ac_status=$? |
---|
3296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3297 | (exit $ac_status); }; }; then |
---|
3298 | for ac_declaration in \ |
---|
3299 | '' \ |
---|
3300 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3301 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3302 | 'extern "C" void exit (int) throw ();' \ |
---|
3303 | 'extern "C" void exit (int);' \ |
---|
3304 | 'void exit (int);' |
---|
3305 | do |
---|
3306 | cat >conftest.$ac_ext <<_ACEOF |
---|
3307 | /* confdefs.h. */ |
---|
3308 | _ACEOF |
---|
3309 | cat confdefs.h >>conftest.$ac_ext |
---|
3310 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3311 | /* end confdefs.h. */ |
---|
3312 | $ac_declaration |
---|
3313 | #include <stdlib.h> |
---|
3314 | int |
---|
3315 | main () |
---|
3316 | { |
---|
3317 | exit (42); |
---|
3318 | ; |
---|
3319 | return 0; |
---|
3320 | } |
---|
3321 | _ACEOF |
---|
3322 | rm -f conftest.$ac_objext |
---|
3323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3324 | (eval $ac_compile) 2>conftest.er1 |
---|
3325 | ac_status=$? |
---|
3326 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3327 | rm -f conftest.er1 |
---|
3328 | cat conftest.err >&5 |
---|
3329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3330 | (exit $ac_status); } && |
---|
3331 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3332 | || test ! -s conftest.err' |
---|
3333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3334 | (eval $ac_try) 2>&5 |
---|
3335 | ac_status=$? |
---|
3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3337 | (exit $ac_status); }; } && |
---|
3338 | { ac_try='test -s conftest.$ac_objext' |
---|
3339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3340 | (eval $ac_try) 2>&5 |
---|
3341 | ac_status=$? |
---|
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3343 | (exit $ac_status); }; }; then |
---|
3344 | : |
---|
3345 | else |
---|
3346 | echo "$as_me: failed program was:" >&5 |
---|
3347 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3348 | |
---|
3349 | continue |
---|
3350 | fi |
---|
3351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3352 | cat >conftest.$ac_ext <<_ACEOF |
---|
3353 | /* confdefs.h. */ |
---|
3354 | _ACEOF |
---|
3355 | cat confdefs.h >>conftest.$ac_ext |
---|
3356 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3357 | /* end confdefs.h. */ |
---|
3358 | $ac_declaration |
---|
3359 | int |
---|
3360 | main () |
---|
3361 | { |
---|
3362 | exit (42); |
---|
3363 | ; |
---|
3364 | return 0; |
---|
3365 | } |
---|
3366 | _ACEOF |
---|
3367 | rm -f conftest.$ac_objext |
---|
3368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3369 | (eval $ac_compile) 2>conftest.er1 |
---|
3370 | ac_status=$? |
---|
3371 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3372 | rm -f conftest.er1 |
---|
3373 | cat conftest.err >&5 |
---|
3374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3375 | (exit $ac_status); } && |
---|
3376 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3377 | || test ! -s conftest.err' |
---|
3378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3379 | (eval $ac_try) 2>&5 |
---|
3380 | ac_status=$? |
---|
3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3382 | (exit $ac_status); }; } && |
---|
3383 | { ac_try='test -s conftest.$ac_objext' |
---|
3384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3385 | (eval $ac_try) 2>&5 |
---|
3386 | ac_status=$? |
---|
3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3388 | (exit $ac_status); }; }; then |
---|
3389 | break |
---|
3390 | else |
---|
3391 | echo "$as_me: failed program was:" >&5 |
---|
3392 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3393 | |
---|
3394 | fi |
---|
3395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3396 | done |
---|
3397 | rm -f conftest* |
---|
3398 | if test -n "$ac_declaration"; then |
---|
3399 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3400 | echo $ac_declaration >>confdefs.h |
---|
3401 | echo '#endif' >>confdefs.h |
---|
3402 | fi |
---|
3403 | |
---|
3404 | else |
---|
3405 | echo "$as_me: failed program was:" >&5 |
---|
3406 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3407 | |
---|
3408 | fi |
---|
3409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3410 | ac_ext=c |
---|
3411 | ac_cpp='$CPP $CPPFLAGS' |
---|
3412 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3413 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3414 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3415 | |
---|
3416 | depcc="$CC" am_compiler_list= |
---|
3417 | |
---|
3418 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3419 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3420 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3422 | else |
---|
3423 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3424 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3425 | # making bogus files that we don't know about and never remove. For |
---|
3426 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3427 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3428 | # in D'. |
---|
3429 | mkdir conftest.dir |
---|
3430 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3431 | # using a relative directory. |
---|
3432 | cp "$am_depcomp" conftest.dir |
---|
3433 | cd conftest.dir |
---|
3434 | # We will build objects and dependencies in a subdirectory because |
---|
3435 | # it helps to detect inapplicable dependency modes. For instance |
---|
3436 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3437 | # side effect of compilation, but ICC will put the dependencies in |
---|
3438 | # the current directory while Tru64 will put them in the object |
---|
3439 | # directory. |
---|
3440 | mkdir sub |
---|
3441 | |
---|
3442 | am_cv_CC_dependencies_compiler_type=none |
---|
3443 | if test "$am_compiler_list" = ""; then |
---|
3444 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3445 | fi |
---|
3446 | for depmode in $am_compiler_list; do |
---|
3447 | # Setup a source with many dependencies, because some compilers |
---|
3448 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3449 | # we should not choose a depcomp mode which is confused by this. |
---|
3450 | # |
---|
3451 | # We need to recreate these files for each test, as the compiler may |
---|
3452 | # overwrite some of them when testing with obscure command lines. |
---|
3453 | # This happens at least with the AIX C compiler. |
---|
3454 | : > sub/conftest.c |
---|
3455 | for i in 1 2 3 4 5 6; do |
---|
3456 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3457 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3458 | # Solaris 8's {/usr,}/bin/sh. |
---|
3459 | touch sub/conftst$i.h |
---|
3460 | done |
---|
3461 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3462 | |
---|
3463 | case $depmode in |
---|
3464 | nosideeffect) |
---|
3465 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3466 | # only be used when explicitly requested |
---|
3467 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3468 | continue |
---|
3469 | else |
---|
3470 | break |
---|
3471 | fi |
---|
3472 | ;; |
---|
3473 | none) break ;; |
---|
3474 | esac |
---|
3475 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3476 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3477 | # handle `-M -o', and we need to detect this. |
---|
3478 | if depmode=$depmode \ |
---|
3479 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3480 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3481 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3482 | >/dev/null 2>conftest.err && |
---|
3483 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3484 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3485 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3486 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3487 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3488 | # that says an option was ignored or not supported. |
---|
3489 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3490 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3491 | # The diagnosis changed in icc 8.0: |
---|
3492 | # icc: Command line remark: option '-MP' not supported |
---|
3493 | if (grep 'ignoring option' conftest.err || |
---|
3494 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3495 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3496 | break |
---|
3497 | fi |
---|
3498 | fi |
---|
3499 | done |
---|
3500 | |
---|
3501 | cd .. |
---|
3502 | rm -rf conftest.dir |
---|
3503 | else |
---|
3504 | am_cv_CC_dependencies_compiler_type=none |
---|
3505 | fi |
---|
3506 | |
---|
3507 | fi |
---|
3508 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3509 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3510 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3511 | |
---|
3512 | |
---|
3513 | |
---|
3514 | if |
---|
3515 | test "x$enable_dependency_tracking" != xno \ |
---|
3516 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3517 | am__fastdepCC_TRUE= |
---|
3518 | am__fastdepCC_FALSE='#' |
---|
3519 | else |
---|
3520 | am__fastdepCC_TRUE='#' |
---|
3521 | am__fastdepCC_FALSE= |
---|
3522 | fi |
---|
3523 | |
---|
3524 | |
---|
3525 | |
---|
3526 | ac_ext=c |
---|
3527 | ac_cpp='$CPP $CPPFLAGS' |
---|
3528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3531 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3532 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3533 | # On Suns, sometimes $CPP names a directory. |
---|
3534 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3535 | CPP= |
---|
3536 | fi |
---|
3537 | if test -z "$CPP"; then |
---|
3538 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3540 | else |
---|
3541 | # Double quotes because CPP needs to be expanded |
---|
3542 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3543 | do |
---|
3544 | ac_preproc_ok=false |
---|
3545 | for ac_c_preproc_warn_flag in '' yes |
---|
3546 | do |
---|
3547 | # Use a header file that comes with gcc, so configuring glibc |
---|
3548 | # with a fresh cross-compiler works. |
---|
3549 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3550 | # <limits.h> exists even on freestanding compilers. |
---|
3551 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3552 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3553 | cat >conftest.$ac_ext <<_ACEOF |
---|
3554 | /* confdefs.h. */ |
---|
3555 | _ACEOF |
---|
3556 | cat confdefs.h >>conftest.$ac_ext |
---|
3557 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3558 | /* end confdefs.h. */ |
---|
3559 | #ifdef __STDC__ |
---|
3560 | # include <limits.h> |
---|
3561 | #else |
---|
3562 | # include <assert.h> |
---|
3563 | #endif |
---|
3564 | Syntax error |
---|
3565 | _ACEOF |
---|
3566 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3567 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3568 | ac_status=$? |
---|
3569 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3570 | rm -f conftest.er1 |
---|
3571 | cat conftest.err >&5 |
---|
3572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3573 | (exit $ac_status); } >/dev/null; then |
---|
3574 | if test -s conftest.err; then |
---|
3575 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3576 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3577 | else |
---|
3578 | ac_cpp_err= |
---|
3579 | fi |
---|
3580 | else |
---|
3581 | ac_cpp_err=yes |
---|
3582 | fi |
---|
3583 | if test -z "$ac_cpp_err"; then |
---|
3584 | : |
---|
3585 | else |
---|
3586 | echo "$as_me: failed program was:" >&5 |
---|
3587 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3588 | |
---|
3589 | # Broken: fails on valid input. |
---|
3590 | continue |
---|
3591 | fi |
---|
3592 | rm -f conftest.err conftest.$ac_ext |
---|
3593 | |
---|
3594 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3595 | # can be detected and how. |
---|
3596 | cat >conftest.$ac_ext <<_ACEOF |
---|
3597 | /* confdefs.h. */ |
---|
3598 | _ACEOF |
---|
3599 | cat confdefs.h >>conftest.$ac_ext |
---|
3600 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3601 | /* end confdefs.h. */ |
---|
3602 | #include <ac_nonexistent.h> |
---|
3603 | _ACEOF |
---|
3604 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3605 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3606 | ac_status=$? |
---|
3607 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3608 | rm -f conftest.er1 |
---|
3609 | cat conftest.err >&5 |
---|
3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3611 | (exit $ac_status); } >/dev/null; then |
---|
3612 | if test -s conftest.err; then |
---|
3613 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3614 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3615 | else |
---|
3616 | ac_cpp_err= |
---|
3617 | fi |
---|
3618 | else |
---|
3619 | ac_cpp_err=yes |
---|
3620 | fi |
---|
3621 | if test -z "$ac_cpp_err"; then |
---|
3622 | # Broken: success on invalid input. |
---|
3623 | continue |
---|
3624 | else |
---|
3625 | echo "$as_me: failed program was:" >&5 |
---|
3626 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3627 | |
---|
3628 | # Passes both tests. |
---|
3629 | ac_preproc_ok=: |
---|
3630 | break |
---|
3631 | fi |
---|
3632 | rm -f conftest.err conftest.$ac_ext |
---|
3633 | |
---|
3634 | done |
---|
3635 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3636 | rm -f conftest.err conftest.$ac_ext |
---|
3637 | if $ac_preproc_ok; then |
---|
3638 | break |
---|
3639 | fi |
---|
3640 | |
---|
3641 | done |
---|
3642 | ac_cv_prog_CPP=$CPP |
---|
3643 | |
---|
3644 | fi |
---|
3645 | CPP=$ac_cv_prog_CPP |
---|
3646 | else |
---|
3647 | ac_cv_prog_CPP=$CPP |
---|
3648 | fi |
---|
3649 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3650 | echo "${ECHO_T}$CPP" >&6 |
---|
3651 | ac_preproc_ok=false |
---|
3652 | for ac_c_preproc_warn_flag in '' yes |
---|
3653 | do |
---|
3654 | # Use a header file that comes with gcc, so configuring glibc |
---|
3655 | # with a fresh cross-compiler works. |
---|
3656 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3657 | # <limits.h> exists even on freestanding compilers. |
---|
3658 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3659 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3660 | cat >conftest.$ac_ext <<_ACEOF |
---|
3661 | /* confdefs.h. */ |
---|
3662 | _ACEOF |
---|
3663 | cat confdefs.h >>conftest.$ac_ext |
---|
3664 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3665 | /* end confdefs.h. */ |
---|
3666 | #ifdef __STDC__ |
---|
3667 | # include <limits.h> |
---|
3668 | #else |
---|
3669 | # include <assert.h> |
---|
3670 | #endif |
---|
3671 | Syntax error |
---|
3672 | _ACEOF |
---|
3673 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3674 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3675 | ac_status=$? |
---|
3676 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3677 | rm -f conftest.er1 |
---|
3678 | cat conftest.err >&5 |
---|
3679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3680 | (exit $ac_status); } >/dev/null; then |
---|
3681 | if test -s conftest.err; then |
---|
3682 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3683 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3684 | else |
---|
3685 | ac_cpp_err= |
---|
3686 | fi |
---|
3687 | else |
---|
3688 | ac_cpp_err=yes |
---|
3689 | fi |
---|
3690 | if test -z "$ac_cpp_err"; then |
---|
3691 | : |
---|
3692 | else |
---|
3693 | echo "$as_me: failed program was:" >&5 |
---|
3694 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3695 | |
---|
3696 | # Broken: fails on valid input. |
---|
3697 | continue |
---|
3698 | fi |
---|
3699 | rm -f conftest.err conftest.$ac_ext |
---|
3700 | |
---|
3701 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3702 | # can be detected and how. |
---|
3703 | cat >conftest.$ac_ext <<_ACEOF |
---|
3704 | /* confdefs.h. */ |
---|
3705 | _ACEOF |
---|
3706 | cat confdefs.h >>conftest.$ac_ext |
---|
3707 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3708 | /* end confdefs.h. */ |
---|
3709 | #include <ac_nonexistent.h> |
---|
3710 | _ACEOF |
---|
3711 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3712 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3713 | ac_status=$? |
---|
3714 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3715 | rm -f conftest.er1 |
---|
3716 | cat conftest.err >&5 |
---|
3717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3718 | (exit $ac_status); } >/dev/null; then |
---|
3719 | if test -s conftest.err; then |
---|
3720 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3721 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3722 | else |
---|
3723 | ac_cpp_err= |
---|
3724 | fi |
---|
3725 | else |
---|
3726 | ac_cpp_err=yes |
---|
3727 | fi |
---|
3728 | if test -z "$ac_cpp_err"; then |
---|
3729 | # Broken: success on invalid input. |
---|
3730 | continue |
---|
3731 | else |
---|
3732 | echo "$as_me: failed program was:" >&5 |
---|
3733 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3734 | |
---|
3735 | # Passes both tests. |
---|
3736 | ac_preproc_ok=: |
---|
3737 | break |
---|
3738 | fi |
---|
3739 | rm -f conftest.err conftest.$ac_ext |
---|
3740 | |
---|
3741 | done |
---|
3742 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3743 | rm -f conftest.err conftest.$ac_ext |
---|
3744 | if $ac_preproc_ok; then |
---|
3745 | : |
---|
3746 | else |
---|
3747 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3748 | See \`config.log' for more details." >&5 |
---|
3749 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3750 | See \`config.log' for more details." >&2;} |
---|
3751 | { (exit 1); exit 1; }; } |
---|
3752 | fi |
---|
3753 | |
---|
3754 | ac_ext=c |
---|
3755 | ac_cpp='$CPP $CPPFLAGS' |
---|
3756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3759 | |
---|
3760 | |
---|
3761 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3762 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3763 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3765 | else |
---|
3766 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3767 | then ac_cv_prog_egrep='grep -E' |
---|
3768 | else ac_cv_prog_egrep='egrep' |
---|
3769 | fi |
---|
3770 | fi |
---|
3771 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3772 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3773 | EGREP=$ac_cv_prog_egrep |
---|
3774 | |
---|
3775 | |
---|
3776 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3777 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3778 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3780 | else |
---|
3781 | cat >conftest.$ac_ext <<_ACEOF |
---|
3782 | /* confdefs.h. */ |
---|
3783 | _ACEOF |
---|
3784 | cat confdefs.h >>conftest.$ac_ext |
---|
3785 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3786 | /* end confdefs.h. */ |
---|
3787 | #include <stdlib.h> |
---|
3788 | #include <stdarg.h> |
---|
3789 | #include <string.h> |
---|
3790 | #include <float.h> |
---|
3791 | |
---|
3792 | int |
---|
3793 | main () |
---|
3794 | { |
---|
3795 | |
---|
3796 | ; |
---|
3797 | return 0; |
---|
3798 | } |
---|
3799 | _ACEOF |
---|
3800 | rm -f conftest.$ac_objext |
---|
3801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3802 | (eval $ac_compile) 2>conftest.er1 |
---|
3803 | ac_status=$? |
---|
3804 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3805 | rm -f conftest.er1 |
---|
3806 | cat conftest.err >&5 |
---|
3807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3808 | (exit $ac_status); } && |
---|
3809 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3810 | || test ! -s conftest.err' |
---|
3811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3812 | (eval $ac_try) 2>&5 |
---|
3813 | ac_status=$? |
---|
3814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3815 | (exit $ac_status); }; } && |
---|
3816 | { ac_try='test -s conftest.$ac_objext' |
---|
3817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3818 | (eval $ac_try) 2>&5 |
---|
3819 | ac_status=$? |
---|
3820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3821 | (exit $ac_status); }; }; then |
---|
3822 | ac_cv_header_stdc=yes |
---|
3823 | else |
---|
3824 | echo "$as_me: failed program was:" >&5 |
---|
3825 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3826 | |
---|
3827 | ac_cv_header_stdc=no |
---|
3828 | fi |
---|
3829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3830 | |
---|
3831 | if test $ac_cv_header_stdc = yes; then |
---|
3832 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3833 | cat >conftest.$ac_ext <<_ACEOF |
---|
3834 | /* confdefs.h. */ |
---|
3835 | _ACEOF |
---|
3836 | cat confdefs.h >>conftest.$ac_ext |
---|
3837 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3838 | /* end confdefs.h. */ |
---|
3839 | #include <string.h> |
---|
3840 | |
---|
3841 | _ACEOF |
---|
3842 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3843 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3844 | : |
---|
3845 | else |
---|
3846 | ac_cv_header_stdc=no |
---|
3847 | fi |
---|
3848 | rm -f conftest* |
---|
3849 | |
---|
3850 | fi |
---|
3851 | |
---|
3852 | if test $ac_cv_header_stdc = yes; then |
---|
3853 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3854 | cat >conftest.$ac_ext <<_ACEOF |
---|
3855 | /* confdefs.h. */ |
---|
3856 | _ACEOF |
---|
3857 | cat confdefs.h >>conftest.$ac_ext |
---|
3858 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3859 | /* end confdefs.h. */ |
---|
3860 | #include <stdlib.h> |
---|
3861 | |
---|
3862 | _ACEOF |
---|
3863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3864 | $EGREP "free" >/dev/null 2>&1; then |
---|
3865 | : |
---|
3866 | else |
---|
3867 | ac_cv_header_stdc=no |
---|
3868 | fi |
---|
3869 | rm -f conftest* |
---|
3870 | |
---|
3871 | fi |
---|
3872 | |
---|
3873 | if test $ac_cv_header_stdc = yes; then |
---|
3874 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3875 | if test "$cross_compiling" = yes; then |
---|
3876 | : |
---|
3877 | else |
---|
3878 | cat >conftest.$ac_ext <<_ACEOF |
---|
3879 | /* confdefs.h. */ |
---|
3880 | _ACEOF |
---|
3881 | cat confdefs.h >>conftest.$ac_ext |
---|
3882 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3883 | /* end confdefs.h. */ |
---|
3884 | #include <ctype.h> |
---|
3885 | #if ((' ' & 0x0FF) == 0x020) |
---|
3886 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3887 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3888 | #else |
---|
3889 | # define ISLOWER(c) \ |
---|
3890 | (('a' <= (c) && (c) <= 'i') \ |
---|
3891 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3892 | || ('s' <= (c) && (c) <= 'z')) |
---|
3893 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3894 | #endif |
---|
3895 | |
---|
3896 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3897 | int |
---|
3898 | main () |
---|
3899 | { |
---|
3900 | int i; |
---|
3901 | for (i = 0; i < 256; i++) |
---|
3902 | if (XOR (islower (i), ISLOWER (i)) |
---|
3903 | || toupper (i) != TOUPPER (i)) |
---|
3904 | exit(2); |
---|
3905 | exit (0); |
---|
3906 | } |
---|
3907 | _ACEOF |
---|
3908 | rm -f conftest$ac_exeext |
---|
3909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3910 | (eval $ac_link) 2>&5 |
---|
3911 | ac_status=$? |
---|
3912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3915 | (eval $ac_try) 2>&5 |
---|
3916 | ac_status=$? |
---|
3917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3918 | (exit $ac_status); }; }; then |
---|
3919 | : |
---|
3920 | else |
---|
3921 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3922 | echo "$as_me: failed program was:" >&5 |
---|
3923 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3924 | |
---|
3925 | ( exit $ac_status ) |
---|
3926 | ac_cv_header_stdc=no |
---|
3927 | fi |
---|
3928 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3929 | fi |
---|
3930 | fi |
---|
3931 | fi |
---|
3932 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3933 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3934 | if test $ac_cv_header_stdc = yes; then |
---|
3935 | |
---|
3936 | cat >>confdefs.h <<\_ACEOF |
---|
3937 | #define STDC_HEADERS 1 |
---|
3938 | _ACEOF |
---|
3939 | |
---|
3940 | fi |
---|
3941 | |
---|
3942 | |
---|
3943 | ## THIS IS OUR DEFAULT-DATA-DIRECTORY |
---|
3944 | |
---|
3945 | ################################## |
---|
3946 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
3947 | ################################## |
---|
3948 | #----------------# |
---|
3949 | # Data-Directory # |
---|
3950 | #----------------# |
---|
3951 | DATA_DIR=$datadir |
---|
3952 | echo \$\{prefix\} |
---|
3953 | if test $DATA_DIR = \$\{prefix\}/share ; then |
---|
3954 | echo "not given" |
---|
3955 | DATA_DIR=/usr/share |
---|
3956 | else |
---|
3957 | echo "given: $DATA_DIR" |
---|
3958 | fi |
---|
3959 | |
---|
3960 | cat >>confdefs.h <<_ACEOF |
---|
3961 | #define DATADIR "$DATA_DIR" |
---|
3962 | _ACEOF |
---|
3963 | |
---|
3964 | |
---|
3965 | #-----------------# |
---|
3966 | # shared-lib-path # |
---|
3967 | #-----------------# |
---|
3968 | SHARED_LIB_PATH=no |
---|
3969 | echo "$as_me:$LINENO: checking shared lib path" >&5 |
---|
3970 | echo $ECHO_N "checking shared lib path... $ECHO_C" >&6 |
---|
3971 | |
---|
3972 | # Check whether --with-shared-lib-path or --without-shared-lib-path was given. |
---|
3973 | if test "${with_shared_lib_path+set}" = set; then |
---|
3974 | withval="$with_shared_lib_path" |
---|
3975 | SHARED_LIB_PATH=$withval |
---|
3976 | fi; |
---|
3977 | if test x$SHARED_LIB_PATH != xno; then |
---|
3978 | echo "set to $SHARED_LIB_PATH" |
---|
3979 | else |
---|
3980 | echo "no" |
---|
3981 | fi |
---|
3982 | |
---|
3983 | |
---|
3984 | #-----------------# |
---|
3985 | # DEBUG-statement # |
---|
3986 | #-----------------# |
---|
3987 | DEBUG=no |
---|
3988 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
3989 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
3990 | # Check whether --enable-debug or --disable-debug was given. |
---|
3991 | if test "${enable_debug+set}" = set; then |
---|
3992 | enableval="$enable_debug" |
---|
3993 | DEBUG=$enableval |
---|
3994 | fi; |
---|
3995 | |
---|
3996 | if test x$DEBUG = xno; then |
---|
3997 | echo "no" |
---|
3998 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
3999 | DEBUG=4 |
---|
4000 | elif test x$DEBUG = xyes; then |
---|
4001 | echo "yes" |
---|
4002 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
4003 | DEBUG=4 |
---|
4004 | else |
---|
4005 | echo "yes: setting debuglevel to to $DEBUG" |
---|
4006 | fi |
---|
4007 | |
---|
4008 | cat >>confdefs.h <<_ACEOF |
---|
4009 | #define DEBUG $DEBUG |
---|
4010 | _ACEOF |
---|
4011 | |
---|
4012 | |
---|
4013 | |
---|
4014 | #---------------# |
---|
4015 | # Modular Debug # |
---|
4016 | #---------------# |
---|
4017 | MODULAR_DEBUG=yes |
---|
4018 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
4019 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
4020 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
4021 | if test "${enable_modular_debug+set}" = set; then |
---|
4022 | enableval="$enable_modular_debug" |
---|
4023 | MODULAR_DEBUG=$enableval |
---|
4024 | fi; |
---|
4025 | |
---|
4026 | if test x$MODULAR_DEBUG = xno; then |
---|
4027 | echo "no" |
---|
4028 | elif test x$MODULAR_DEBUG = xyes; then |
---|
4029 | echo "yes" |
---|
4030 | |
---|
4031 | cat >>confdefs.h <<_ACEOF |
---|
4032 | #define MODULAR_DEBUG 1 |
---|
4033 | _ACEOF |
---|
4034 | |
---|
4035 | fi |
---|
4036 | |
---|
4037 | #--------------# |
---|
4038 | # GTK-disabled # |
---|
4039 | #--------------# |
---|
4040 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
4041 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
4042 | # Check whether --enable-gtk or --disable-gtk was given. |
---|
4043 | if test "${enable_gtk+set}" = set; then |
---|
4044 | enableval="$enable_gtk" |
---|
4045 | def_gtk=no |
---|
4046 | else |
---|
4047 | def_gtk=yes |
---|
4048 | fi; |
---|
4049 | if test x$def_gtk = xyes; then |
---|
4050 | echo "yes" |
---|
4051 | fi |
---|
4052 | if test x$def_gtk = xno; then |
---|
4053 | echo "no" |
---|
4054 | fi |
---|
4055 | |
---|
4056 | #------------------# |
---|
4057 | # libCurl-disabled # |
---|
4058 | #------------------# |
---|
4059 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
4060 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
4061 | # Check whether --enable-curl or --disable-curl was given. |
---|
4062 | if test "${enable_curl+set}" = set; then |
---|
4063 | enableval="$enable_curl" |
---|
4064 | def_curl=no |
---|
4065 | else |
---|
4066 | def_curl=yes |
---|
4067 | fi; |
---|
4068 | if test x$def_curl = xyes; then |
---|
4069 | echo "yes" |
---|
4070 | fi |
---|
4071 | if test x$def_curl = xno; then |
---|
4072 | echo "no" |
---|
4073 | fi |
---|
4074 | |
---|
4075 | #-------------------# |
---|
4076 | # SubProject-enable # |
---|
4077 | #-------------------# |
---|
4078 | def_sub_projects=no |
---|
4079 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
4080 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
4081 | |
---|
4082 | # Check whether --with-sub-projects or --without-sub-projects was given. |
---|
4083 | if test "${with_sub_projects+set}" = set; then |
---|
4084 | withval="$with_sub_projects" |
---|
4085 | def_sub_projects=yes |
---|
4086 | fi; |
---|
4087 | if test x$def_sub_projects = xyes; then |
---|
4088 | echo "yes" |
---|
4089 | fi |
---|
4090 | if test x$def_sub_projects = xno; then |
---|
4091 | echo "no" |
---|
4092 | fi |
---|
4093 | |
---|
4094 | |
---|
4095 | if test x$def_sub_projects = xyes; then |
---|
4096 | SUB_PROJECTS_TRUE= |
---|
4097 | SUB_PROJECTS_FALSE='#' |
---|
4098 | else |
---|
4099 | SUB_PROJECTS_TRUE='#' |
---|
4100 | SUB_PROJECTS_FALSE= |
---|
4101 | fi |
---|
4102 | |
---|
4103 | |
---|
4104 | #-------------------# |
---|
4105 | # Profiling Enabled # |
---|
4106 | #-------------------# |
---|
4107 | def_profiling=no |
---|
4108 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
4109 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
4110 | # Check whether --enable-profile or --disable-profile was given. |
---|
4111 | if test "${enable_profile+set}" = set; then |
---|
4112 | enableval="$enable_profile" |
---|
4113 | def_profiling=yes |
---|
4114 | fi; |
---|
4115 | if test x$def_profiling = xyes; then |
---|
4116 | echo "yes" |
---|
4117 | CXXFLAGS="$CXXFLAGS -pg" |
---|
4118 | fi |
---|
4119 | if test x$def_profiling = xno; then |
---|
4120 | echo "no" |
---|
4121 | fi |
---|
4122 | |
---|
4123 | #----------------# |
---|
4124 | # efence Enabled # |
---|
4125 | #----------------# |
---|
4126 | def_efence=no |
---|
4127 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
4128 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
4129 | # Check whether --enable-efence or --disable-efence was given. |
---|
4130 | if test "${enable_efence+set}" = set; then |
---|
4131 | enableval="$enable_efence" |
---|
4132 | def_efence=yes |
---|
4133 | fi; |
---|
4134 | if test x$def_efence = xyes; then |
---|
4135 | echo "yes" |
---|
4136 | fi |
---|
4137 | if test x$def_efence = xno; then |
---|
4138 | echo "no" |
---|
4139 | fi |
---|
4140 | |
---|
4141 | #----------------------# |
---|
4142 | # Documentation-enable # |
---|
4143 | #----------------------# |
---|
4144 | def_documentation=no |
---|
4145 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
4146 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
4147 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
4148 | if test "${enable_documentation+set}" = set; then |
---|
4149 | enableval="$enable_documentation" |
---|
4150 | def_documentation=yes |
---|
4151 | fi; |
---|
4152 | if test x$def_documentation = xyes; then |
---|
4153 | echo "yes" |
---|
4154 | fi |
---|
4155 | if test x$def_documentation = xno; then |
---|
4156 | echo "no" |
---|
4157 | fi |
---|
4158 | |
---|
4159 | |
---|
4160 | if test x$def_documentation = xyes; then |
---|
4161 | DOCUMENTATION_TRUE= |
---|
4162 | DOCUMENTATION_FALSE='#' |
---|
4163 | else |
---|
4164 | DOCUMENTATION_TRUE='#' |
---|
4165 | DOCUMENTATION_FALSE= |
---|
4166 | fi |
---|
4167 | |
---|
4168 | |
---|
4169 | |
---|
4170 | |
---|
4171 | #---------------------------# |
---|
4172 | # WITH TARDIS (convenience) # |
---|
4173 | #---------------------------# |
---|
4174 | def_tardis=no |
---|
4175 | echo "$as_me:$LINENO: checking convenience flag for working at the taris in the ETH zurich" >&5 |
---|
4176 | echo $ECHO_N "checking convenience flag for working at the taris in the ETH zurich... $ECHO_C" >&6 |
---|
4177 | |
---|
4178 | # Check whether --with-tardis or --without-tardis was given. |
---|
4179 | if test "${with_tardis+set}" = set; then |
---|
4180 | withval="$with_tardis" |
---|
4181 | def_tardis=yes |
---|
4182 | fi; |
---|
4183 | if test x$def_tardis = xyes; then |
---|
4184 | ARCH=i686-debian-linux3.1 |
---|
4185 | ## GAMELIBS |
---|
4186 | PREFIX=/usr/pack/gamelibs-1.0-to |
---|
4187 | CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include" |
---|
4188 | LDFLAGS="${LDFLAGS} -L$PREFIX/${ARCH}/lib -Wl,-rpath -Wl,${PREFIX}/${ARCH}/lib" |
---|
4189 | ## GTK |
---|
4190 | GTKPREFIX=/usr/pack/gtk-2.8.3-mo |
---|
4191 | CPPFLAGS="${CPPFLAGS} -I${GTKPREFIX}/include" |
---|
4192 | LDFLAGS="${LDFLAGS} -L${GTKPREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${GTKPREFIX}/${ARCH}/lib" |
---|
4193 | echo "yes" |
---|
4194 | fi |
---|
4195 | if test x$def_tardis = xno; then |
---|
4196 | echo "no" |
---|
4197 | fi |
---|
4198 | |
---|
4199 | ####################### |
---|
4200 | ## PROGRAMM CHECKING ## |
---|
4201 | ## 3. party Programs ## |
---|
4202 | ####################### |
---|
4203 | |
---|
4204 | #----------------------# |
---|
4205 | # checking for Doxygen # |
---|
4206 | #----------------------# |
---|
4207 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
4208 | set dummy doxygen; ac_word=$2 |
---|
4209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4211 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
4212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4213 | else |
---|
4214 | case $DOXYGEN in |
---|
4215 | [\\/]* | ?:[\\/]*) |
---|
4216 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
4217 | ;; |
---|
4218 | *) |
---|
4219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4220 | for as_dir in $PATH |
---|
4221 | do |
---|
4222 | IFS=$as_save_IFS |
---|
4223 | test -z "$as_dir" && as_dir=. |
---|
4224 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4225 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4226 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
4227 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4228 | break 2 |
---|
4229 | fi |
---|
4230 | done |
---|
4231 | done |
---|
4232 | |
---|
4233 | ;; |
---|
4234 | esac |
---|
4235 | fi |
---|
4236 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
4237 | |
---|
4238 | if test -n "$DOXYGEN"; then |
---|
4239 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
4240 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
4241 | else |
---|
4242 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4243 | echo "${ECHO_T}no" >&6 |
---|
4244 | fi |
---|
4245 | |
---|
4246 | |
---|
4247 | |
---|
4248 | if test $DOXYGEN; then |
---|
4249 | DOXYGEN_TRUE= |
---|
4250 | DOXYGEN_FALSE='#' |
---|
4251 | else |
---|
4252 | DOXYGEN_TRUE='#' |
---|
4253 | DOXYGEN_FALSE= |
---|
4254 | fi |
---|
4255 | |
---|
4256 | |
---|
4257 | #--------------------# |
---|
4258 | # checking for gprof # |
---|
4259 | #--------------------# |
---|
4260 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
4261 | set dummy gprof; ac_word=$2 |
---|
4262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4264 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
4265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4266 | else |
---|
4267 | case $GPROF in |
---|
4268 | [\\/]* | ?:[\\/]*) |
---|
4269 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
4270 | ;; |
---|
4271 | *) |
---|
4272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4273 | for as_dir in $PATH |
---|
4274 | do |
---|
4275 | IFS=$as_save_IFS |
---|
4276 | test -z "$as_dir" && as_dir=. |
---|
4277 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4278 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4279 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
4280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4281 | break 2 |
---|
4282 | fi |
---|
4283 | done |
---|
4284 | done |
---|
4285 | |
---|
4286 | ;; |
---|
4287 | esac |
---|
4288 | fi |
---|
4289 | GPROF=$ac_cv_path_GPROF |
---|
4290 | |
---|
4291 | if test -n "$GPROF"; then |
---|
4292 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
4293 | echo "${ECHO_T}$GPROF" >&6 |
---|
4294 | else |
---|
4295 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4296 | echo "${ECHO_T}no" >&6 |
---|
4297 | fi |
---|
4298 | |
---|
4299 | |
---|
4300 | #-------------------------# |
---|
4301 | # checking for pkg-config # |
---|
4302 | #-------------------------# |
---|
4303 | if test x$def_gtk = xyes; then |
---|
4304 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
4305 | set dummy pkg-config; ac_word=$2 |
---|
4306 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4308 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
4309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4310 | else |
---|
4311 | case $PKG_CONFIG in |
---|
4312 | [\\/]* | ?:[\\/]*) |
---|
4313 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
4314 | ;; |
---|
4315 | *) |
---|
4316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4317 | for as_dir in $PATH |
---|
4318 | do |
---|
4319 | IFS=$as_save_IFS |
---|
4320 | test -z "$as_dir" && as_dir=. |
---|
4321 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4322 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4323 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
4324 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4325 | break 2 |
---|
4326 | fi |
---|
4327 | done |
---|
4328 | done |
---|
4329 | |
---|
4330 | ;; |
---|
4331 | esac |
---|
4332 | fi |
---|
4333 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
4334 | |
---|
4335 | if test -n "$PKG_CONFIG"; then |
---|
4336 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
4337 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
4338 | else |
---|
4339 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4340 | echo "${ECHO_T}no" >&6 |
---|
4341 | fi |
---|
4342 | |
---|
4343 | fi |
---|
4344 | |
---|
4345 | |
---|
4346 | ######################### |
---|
4347 | ## CHECKING FOR SYSTEM ## |
---|
4348 | ######################### |
---|
4349 | ## here the system is checked, and openGL is included |
---|
4350 | ## also checking for SDL on differen Systems |
---|
4351 | |
---|
4352 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
4353 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
4354 | ## checking for openGL-environment and other sys-specific parameters |
---|
4355 | case "$target" in |
---|
4356 | |
---|
4357 | ########### |
---|
4358 | #---------# |
---|
4359 | # WINDOWS # |
---|
4360 | #---------# |
---|
4361 | ########### |
---|
4362 | *-*-mingw32*) |
---|
4363 | echo "mingw-WINDOWS detected" |
---|
4364 | |
---|
4365 | CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS" |
---|
4366 | |
---|
4367 | mingw="yes" |
---|
4368 | MSBITFIELDS="-mms-bitfields" |
---|
4369 | MWINDOWS="-mwindows" |
---|
4370 | |
---|
4371 | #--------# |
---|
4372 | # MIN-GW # |
---|
4373 | #--------# |
---|
4374 | # checking for mingw32 |
---|
4375 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4376 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4377 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4379 | else |
---|
4380 | ac_check_lib_save_LIBS=$LIBS |
---|
4381 | LIBS="-lmingw32 $LIBS" |
---|
4382 | cat >conftest.$ac_ext <<_ACEOF |
---|
4383 | /* confdefs.h. */ |
---|
4384 | _ACEOF |
---|
4385 | cat confdefs.h >>conftest.$ac_ext |
---|
4386 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4387 | /* end confdefs.h. */ |
---|
4388 | |
---|
4389 | |
---|
4390 | int |
---|
4391 | main () |
---|
4392 | { |
---|
4393 | main (); |
---|
4394 | ; |
---|
4395 | return 0; |
---|
4396 | } |
---|
4397 | _ACEOF |
---|
4398 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4400 | (eval $ac_link) 2>conftest.er1 |
---|
4401 | ac_status=$? |
---|
4402 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4403 | rm -f conftest.er1 |
---|
4404 | cat conftest.err >&5 |
---|
4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4406 | (exit $ac_status); } && |
---|
4407 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4408 | || test ! -s conftest.err' |
---|
4409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4410 | (eval $ac_try) 2>&5 |
---|
4411 | ac_status=$? |
---|
4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4413 | (exit $ac_status); }; } && |
---|
4414 | { ac_try='test -s conftest$ac_exeext' |
---|
4415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4416 | (eval $ac_try) 2>&5 |
---|
4417 | ac_status=$? |
---|
4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4419 | (exit $ac_status); }; }; then |
---|
4420 | ac_cv_lib_mingw32_main=yes |
---|
4421 | else |
---|
4422 | echo "$as_me: failed program was:" >&5 |
---|
4423 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4424 | |
---|
4425 | ac_cv_lib_mingw32_main=no |
---|
4426 | fi |
---|
4427 | rm -f conftest.err conftest.$ac_objext \ |
---|
4428 | conftest$ac_exeext conftest.$ac_ext |
---|
4429 | LIBS=$ac_check_lib_save_LIBS |
---|
4430 | fi |
---|
4431 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4432 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4433 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4434 | FOUND_mingw32=yes |
---|
4435 | fi |
---|
4436 | |
---|
4437 | if test x$FOUND_mingw32 = xyes; then |
---|
4438 | LIBS="$LIBS -lmingw32" |
---|
4439 | fi |
---|
4440 | |
---|
4441 | #---------------# |
---|
4442 | # open-GL (win) # |
---|
4443 | #---------------# |
---|
4444 | # checking gl header |
---|
4445 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4446 | |
---|
4447 | |
---|
4448 | |
---|
4449 | |
---|
4450 | |
---|
4451 | |
---|
4452 | |
---|
4453 | |
---|
4454 | |
---|
4455 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4456 | inttypes.h stdint.h unistd.h |
---|
4457 | do |
---|
4458 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4459 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4460 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4461 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4463 | else |
---|
4464 | cat >conftest.$ac_ext <<_ACEOF |
---|
4465 | /* confdefs.h. */ |
---|
4466 | _ACEOF |
---|
4467 | cat confdefs.h >>conftest.$ac_ext |
---|
4468 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4469 | /* end confdefs.h. */ |
---|
4470 | $ac_includes_default |
---|
4471 | |
---|
4472 | #include <$ac_header> |
---|
4473 | _ACEOF |
---|
4474 | rm -f conftest.$ac_objext |
---|
4475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4476 | (eval $ac_compile) 2>conftest.er1 |
---|
4477 | ac_status=$? |
---|
4478 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4479 | rm -f conftest.er1 |
---|
4480 | cat conftest.err >&5 |
---|
4481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4482 | (exit $ac_status); } && |
---|
4483 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4484 | || test ! -s conftest.err' |
---|
4485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4486 | (eval $ac_try) 2>&5 |
---|
4487 | ac_status=$? |
---|
4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4489 | (exit $ac_status); }; } && |
---|
4490 | { ac_try='test -s conftest.$ac_objext' |
---|
4491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4492 | (eval $ac_try) 2>&5 |
---|
4493 | ac_status=$? |
---|
4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4495 | (exit $ac_status); }; }; then |
---|
4496 | eval "$as_ac_Header=yes" |
---|
4497 | else |
---|
4498 | echo "$as_me: failed program was:" >&5 |
---|
4499 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4500 | |
---|
4501 | eval "$as_ac_Header=no" |
---|
4502 | fi |
---|
4503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4504 | fi |
---|
4505 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4506 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4507 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4508 | cat >>confdefs.h <<_ACEOF |
---|
4509 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4510 | _ACEOF |
---|
4511 | |
---|
4512 | fi |
---|
4513 | |
---|
4514 | done |
---|
4515 | |
---|
4516 | |
---|
4517 | |
---|
4518 | for ac_header in GL/gl.h |
---|
4519 | do |
---|
4520 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4522 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4523 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4524 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4526 | fi |
---|
4527 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4528 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4529 | else |
---|
4530 | # Is the header compilable? |
---|
4531 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4532 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4533 | cat >conftest.$ac_ext <<_ACEOF |
---|
4534 | /* confdefs.h. */ |
---|
4535 | _ACEOF |
---|
4536 | cat confdefs.h >>conftest.$ac_ext |
---|
4537 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4538 | /* end confdefs.h. */ |
---|
4539 | $ac_includes_default |
---|
4540 | #include <$ac_header> |
---|
4541 | _ACEOF |
---|
4542 | rm -f conftest.$ac_objext |
---|
4543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4544 | (eval $ac_compile) 2>conftest.er1 |
---|
4545 | ac_status=$? |
---|
4546 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4547 | rm -f conftest.er1 |
---|
4548 | cat conftest.err >&5 |
---|
4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4550 | (exit $ac_status); } && |
---|
4551 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4552 | || test ! -s conftest.err' |
---|
4553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4554 | (eval $ac_try) 2>&5 |
---|
4555 | ac_status=$? |
---|
4556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4557 | (exit $ac_status); }; } && |
---|
4558 | { ac_try='test -s conftest.$ac_objext' |
---|
4559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4560 | (eval $ac_try) 2>&5 |
---|
4561 | ac_status=$? |
---|
4562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4563 | (exit $ac_status); }; }; then |
---|
4564 | ac_header_compiler=yes |
---|
4565 | else |
---|
4566 | echo "$as_me: failed program was:" >&5 |
---|
4567 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4568 | |
---|
4569 | ac_header_compiler=no |
---|
4570 | fi |
---|
4571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4572 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4573 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4574 | |
---|
4575 | # Is the header present? |
---|
4576 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4577 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4578 | cat >conftest.$ac_ext <<_ACEOF |
---|
4579 | /* confdefs.h. */ |
---|
4580 | _ACEOF |
---|
4581 | cat confdefs.h >>conftest.$ac_ext |
---|
4582 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4583 | /* end confdefs.h. */ |
---|
4584 | #include <$ac_header> |
---|
4585 | _ACEOF |
---|
4586 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4587 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4588 | ac_status=$? |
---|
4589 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4590 | rm -f conftest.er1 |
---|
4591 | cat conftest.err >&5 |
---|
4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4593 | (exit $ac_status); } >/dev/null; then |
---|
4594 | if test -s conftest.err; then |
---|
4595 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4596 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4597 | else |
---|
4598 | ac_cpp_err= |
---|
4599 | fi |
---|
4600 | else |
---|
4601 | ac_cpp_err=yes |
---|
4602 | fi |
---|
4603 | if test -z "$ac_cpp_err"; then |
---|
4604 | ac_header_preproc=yes |
---|
4605 | else |
---|
4606 | echo "$as_me: failed program was:" >&5 |
---|
4607 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4608 | |
---|
4609 | ac_header_preproc=no |
---|
4610 | fi |
---|
4611 | rm -f conftest.err conftest.$ac_ext |
---|
4612 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4613 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4614 | |
---|
4615 | # So? What about this header? |
---|
4616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4617 | yes:no: ) |
---|
4618 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4619 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4620 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4621 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4622 | ac_header_preproc=yes |
---|
4623 | ;; |
---|
4624 | no:yes:* ) |
---|
4625 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4626 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4627 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4628 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4629 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4630 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4631 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4632 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4633 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4634 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4635 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4636 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4637 | ( |
---|
4638 | cat <<\_ASBOX |
---|
4639 | ## ---------------------------------------------- ## |
---|
4640 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4641 | ## ---------------------------------------------- ## |
---|
4642 | _ASBOX |
---|
4643 | ) | |
---|
4644 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4645 | ;; |
---|
4646 | esac |
---|
4647 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4648 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4649 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4651 | else |
---|
4652 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4653 | fi |
---|
4654 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4655 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4656 | |
---|
4657 | fi |
---|
4658 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4659 | cat >>confdefs.h <<_ACEOF |
---|
4660 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4661 | _ACEOF |
---|
4662 | |
---|
4663 | else |
---|
4664 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4665 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4666 | { (exit 1); exit 1; }; } |
---|
4667 | fi |
---|
4668 | |
---|
4669 | done |
---|
4670 | |
---|
4671 | # checking for Windows openGl library |
---|
4672 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4673 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4674 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4676 | else |
---|
4677 | ac_check_lib_save_LIBS=$LIBS |
---|
4678 | LIBS="-lopengl32 $LIBS" |
---|
4679 | cat >conftest.$ac_ext <<_ACEOF |
---|
4680 | /* confdefs.h. */ |
---|
4681 | _ACEOF |
---|
4682 | cat confdefs.h >>conftest.$ac_ext |
---|
4683 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4684 | /* end confdefs.h. */ |
---|
4685 | |
---|
4686 | |
---|
4687 | int |
---|
4688 | main () |
---|
4689 | { |
---|
4690 | main (); |
---|
4691 | ; |
---|
4692 | return 0; |
---|
4693 | } |
---|
4694 | _ACEOF |
---|
4695 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4697 | (eval $ac_link) 2>conftest.er1 |
---|
4698 | ac_status=$? |
---|
4699 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4700 | rm -f conftest.er1 |
---|
4701 | cat conftest.err >&5 |
---|
4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4703 | (exit $ac_status); } && |
---|
4704 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4705 | || test ! -s conftest.err' |
---|
4706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4707 | (eval $ac_try) 2>&5 |
---|
4708 | ac_status=$? |
---|
4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4710 | (exit $ac_status); }; } && |
---|
4711 | { ac_try='test -s conftest$ac_exeext' |
---|
4712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4713 | (eval $ac_try) 2>&5 |
---|
4714 | ac_status=$? |
---|
4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4716 | (exit $ac_status); }; }; then |
---|
4717 | ac_cv_lib_opengl32_main=yes |
---|
4718 | else |
---|
4719 | echo "$as_me: failed program was:" >&5 |
---|
4720 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4721 | |
---|
4722 | ac_cv_lib_opengl32_main=no |
---|
4723 | fi |
---|
4724 | rm -f conftest.err conftest.$ac_objext \ |
---|
4725 | conftest$ac_exeext conftest.$ac_ext |
---|
4726 | LIBS=$ac_check_lib_save_LIBS |
---|
4727 | fi |
---|
4728 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4729 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4730 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4731 | FOUND_GL=yes; LIBS="$LIBS -lopengl32" |
---|
4732 | fi |
---|
4733 | |
---|
4734 | if test x$FOUND_GL != xyes ; then |
---|
4735 | echo "------------------" |
---|
4736 | echo "opengl not found." |
---|
4737 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4738 | echo "------------------" |
---|
4739 | exit -1 |
---|
4740 | fi |
---|
4741 | |
---|
4742 | # cheking for GLU-header |
---|
4743 | |
---|
4744 | for ac_header in GL/glu.h |
---|
4745 | do |
---|
4746 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4747 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4748 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4752 | fi |
---|
4753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4755 | else |
---|
4756 | # Is the header compilable? |
---|
4757 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4758 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4759 | cat >conftest.$ac_ext <<_ACEOF |
---|
4760 | /* confdefs.h. */ |
---|
4761 | _ACEOF |
---|
4762 | cat confdefs.h >>conftest.$ac_ext |
---|
4763 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4764 | /* end confdefs.h. */ |
---|
4765 | $ac_includes_default |
---|
4766 | #include <$ac_header> |
---|
4767 | _ACEOF |
---|
4768 | rm -f conftest.$ac_objext |
---|
4769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4770 | (eval $ac_compile) 2>conftest.er1 |
---|
4771 | ac_status=$? |
---|
4772 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4773 | rm -f conftest.er1 |
---|
4774 | cat conftest.err >&5 |
---|
4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4776 | (exit $ac_status); } && |
---|
4777 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4778 | || test ! -s conftest.err' |
---|
4779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4780 | (eval $ac_try) 2>&5 |
---|
4781 | ac_status=$? |
---|
4782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4783 | (exit $ac_status); }; } && |
---|
4784 | { ac_try='test -s conftest.$ac_objext' |
---|
4785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4786 | (eval $ac_try) 2>&5 |
---|
4787 | ac_status=$? |
---|
4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4789 | (exit $ac_status); }; }; then |
---|
4790 | ac_header_compiler=yes |
---|
4791 | else |
---|
4792 | echo "$as_me: failed program was:" >&5 |
---|
4793 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4794 | |
---|
4795 | ac_header_compiler=no |
---|
4796 | fi |
---|
4797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4798 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4799 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4800 | |
---|
4801 | # Is the header present? |
---|
4802 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4803 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4804 | cat >conftest.$ac_ext <<_ACEOF |
---|
4805 | /* confdefs.h. */ |
---|
4806 | _ACEOF |
---|
4807 | cat confdefs.h >>conftest.$ac_ext |
---|
4808 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4809 | /* end confdefs.h. */ |
---|
4810 | #include <$ac_header> |
---|
4811 | _ACEOF |
---|
4812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4814 | ac_status=$? |
---|
4815 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4816 | rm -f conftest.er1 |
---|
4817 | cat conftest.err >&5 |
---|
4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4819 | (exit $ac_status); } >/dev/null; then |
---|
4820 | if test -s conftest.err; then |
---|
4821 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4823 | else |
---|
4824 | ac_cpp_err= |
---|
4825 | fi |
---|
4826 | else |
---|
4827 | ac_cpp_err=yes |
---|
4828 | fi |
---|
4829 | if test -z "$ac_cpp_err"; then |
---|
4830 | ac_header_preproc=yes |
---|
4831 | else |
---|
4832 | echo "$as_me: failed program was:" >&5 |
---|
4833 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4834 | |
---|
4835 | ac_header_preproc=no |
---|
4836 | fi |
---|
4837 | rm -f conftest.err conftest.$ac_ext |
---|
4838 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4839 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4840 | |
---|
4841 | # So? What about this header? |
---|
4842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4843 | yes:no: ) |
---|
4844 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4845 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4846 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4847 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4848 | ac_header_preproc=yes |
---|
4849 | ;; |
---|
4850 | no:yes:* ) |
---|
4851 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4852 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4853 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4854 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4855 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4856 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4857 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4858 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4860 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4861 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4862 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4863 | ( |
---|
4864 | cat <<\_ASBOX |
---|
4865 | ## ---------------------------------------------- ## |
---|
4866 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4867 | ## ---------------------------------------------- ## |
---|
4868 | _ASBOX |
---|
4869 | ) | |
---|
4870 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4871 | ;; |
---|
4872 | esac |
---|
4873 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4877 | else |
---|
4878 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4879 | fi |
---|
4880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4881 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4882 | |
---|
4883 | fi |
---|
4884 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4885 | cat >>confdefs.h <<_ACEOF |
---|
4886 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4887 | _ACEOF |
---|
4888 | |
---|
4889 | else |
---|
4890 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4891 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4892 | { (exit 1); exit 1; }; } |
---|
4893 | fi |
---|
4894 | |
---|
4895 | done |
---|
4896 | |
---|
4897 | |
---|
4898 | # checking for libGLU |
---|
4899 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4900 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4901 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4903 | else |
---|
4904 | ac_check_lib_save_LIBS=$LIBS |
---|
4905 | LIBS="-lglu32 $LIBS" |
---|
4906 | cat >conftest.$ac_ext <<_ACEOF |
---|
4907 | /* confdefs.h. */ |
---|
4908 | _ACEOF |
---|
4909 | cat confdefs.h >>conftest.$ac_ext |
---|
4910 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4911 | /* end confdefs.h. */ |
---|
4912 | |
---|
4913 | |
---|
4914 | int |
---|
4915 | main () |
---|
4916 | { |
---|
4917 | main (); |
---|
4918 | ; |
---|
4919 | return 0; |
---|
4920 | } |
---|
4921 | _ACEOF |
---|
4922 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4924 | (eval $ac_link) 2>conftest.er1 |
---|
4925 | ac_status=$? |
---|
4926 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4927 | rm -f conftest.er1 |
---|
4928 | cat conftest.err >&5 |
---|
4929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4930 | (exit $ac_status); } && |
---|
4931 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4932 | || test ! -s conftest.err' |
---|
4933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4934 | (eval $ac_try) 2>&5 |
---|
4935 | ac_status=$? |
---|
4936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4937 | (exit $ac_status); }; } && |
---|
4938 | { ac_try='test -s conftest$ac_exeext' |
---|
4939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4940 | (eval $ac_try) 2>&5 |
---|
4941 | ac_status=$? |
---|
4942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4943 | (exit $ac_status); }; }; then |
---|
4944 | ac_cv_lib_glu32_main=yes |
---|
4945 | else |
---|
4946 | echo "$as_me: failed program was:" >&5 |
---|
4947 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4948 | |
---|
4949 | ac_cv_lib_glu32_main=no |
---|
4950 | fi |
---|
4951 | rm -f conftest.err conftest.$ac_objext \ |
---|
4952 | conftest$ac_exeext conftest.$ac_ext |
---|
4953 | LIBS=$ac_check_lib_save_LIBS |
---|
4954 | fi |
---|
4955 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4956 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4957 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4958 | FOUND_GLU=yes; LIBS="$LIBS -lGLU32" |
---|
4959 | fi |
---|
4960 | |
---|
4961 | if test x$FOUND_GLU != xyes ; then |
---|
4962 | echo "------------------" |
---|
4963 | echo "GLU library not found." |
---|
4964 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4965 | echo "------------------" |
---|
4966 | exit -1 |
---|
4967 | fi |
---|
4968 | |
---|
4969 | # checking glew header |
---|
4970 | |
---|
4971 | for ac_header in GL/glew.h |
---|
4972 | do |
---|
4973 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4975 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4979 | fi |
---|
4980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4981 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4982 | else |
---|
4983 | # Is the header compilable? |
---|
4984 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4985 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4986 | cat >conftest.$ac_ext <<_ACEOF |
---|
4987 | /* confdefs.h. */ |
---|
4988 | _ACEOF |
---|
4989 | cat confdefs.h >>conftest.$ac_ext |
---|
4990 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4991 | /* end confdefs.h. */ |
---|
4992 | $ac_includes_default |
---|
4993 | #include <$ac_header> |
---|
4994 | _ACEOF |
---|
4995 | rm -f conftest.$ac_objext |
---|
4996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4997 | (eval $ac_compile) 2>conftest.er1 |
---|
4998 | ac_status=$? |
---|
4999 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5000 | rm -f conftest.er1 |
---|
5001 | cat conftest.err >&5 |
---|
5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5003 | (exit $ac_status); } && |
---|
5004 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5005 | || test ! -s conftest.err' |
---|
5006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5007 | (eval $ac_try) 2>&5 |
---|
5008 | ac_status=$? |
---|
5009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5010 | (exit $ac_status); }; } && |
---|
5011 | { ac_try='test -s conftest.$ac_objext' |
---|
5012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5013 | (eval $ac_try) 2>&5 |
---|
5014 | ac_status=$? |
---|
5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5016 | (exit $ac_status); }; }; then |
---|
5017 | ac_header_compiler=yes |
---|
5018 | else |
---|
5019 | echo "$as_me: failed program was:" >&5 |
---|
5020 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5021 | |
---|
5022 | ac_header_compiler=no |
---|
5023 | fi |
---|
5024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5025 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5026 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5027 | |
---|
5028 | # Is the header present? |
---|
5029 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5030 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5031 | cat >conftest.$ac_ext <<_ACEOF |
---|
5032 | /* confdefs.h. */ |
---|
5033 | _ACEOF |
---|
5034 | cat confdefs.h >>conftest.$ac_ext |
---|
5035 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5036 | /* end confdefs.h. */ |
---|
5037 | #include <$ac_header> |
---|
5038 | _ACEOF |
---|
5039 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5040 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5041 | ac_status=$? |
---|
5042 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5043 | rm -f conftest.er1 |
---|
5044 | cat conftest.err >&5 |
---|
5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5046 | (exit $ac_status); } >/dev/null; then |
---|
5047 | if test -s conftest.err; then |
---|
5048 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5049 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5050 | else |
---|
5051 | ac_cpp_err= |
---|
5052 | fi |
---|
5053 | else |
---|
5054 | ac_cpp_err=yes |
---|
5055 | fi |
---|
5056 | if test -z "$ac_cpp_err"; then |
---|
5057 | ac_header_preproc=yes |
---|
5058 | else |
---|
5059 | echo "$as_me: failed program was:" >&5 |
---|
5060 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5061 | |
---|
5062 | ac_header_preproc=no |
---|
5063 | fi |
---|
5064 | rm -f conftest.err conftest.$ac_ext |
---|
5065 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5066 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5067 | |
---|
5068 | # So? What about this header? |
---|
5069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5070 | yes:no: ) |
---|
5071 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5072 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5074 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5075 | ac_header_preproc=yes |
---|
5076 | ;; |
---|
5077 | no:yes:* ) |
---|
5078 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5079 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5080 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5081 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5082 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5083 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5084 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5085 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5088 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5089 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5090 | ( |
---|
5091 | cat <<\_ASBOX |
---|
5092 | ## ---------------------------------------------- ## |
---|
5093 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5094 | ## ---------------------------------------------- ## |
---|
5095 | _ASBOX |
---|
5096 | ) | |
---|
5097 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5098 | ;; |
---|
5099 | esac |
---|
5100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5104 | else |
---|
5105 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5106 | fi |
---|
5107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5109 | |
---|
5110 | fi |
---|
5111 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5112 | cat >>confdefs.h <<_ACEOF |
---|
5113 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5114 | _ACEOF |
---|
5115 | |
---|
5116 | else |
---|
5117 | { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5 |
---|
5118 | echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;} |
---|
5119 | { (exit 1); exit 1; }; } |
---|
5120 | fi |
---|
5121 | |
---|
5122 | done |
---|
5123 | |
---|
5124 | # checking for Windows glew library |
---|
5125 | echo "$as_me:$LINENO: checking for main in -lglew32" >&5 |
---|
5126 | echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6 |
---|
5127 | if test "${ac_cv_lib_glew32_main+set}" = set; then |
---|
5128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5129 | else |
---|
5130 | ac_check_lib_save_LIBS=$LIBS |
---|
5131 | LIBS="-lglew32 $LIBS" |
---|
5132 | cat >conftest.$ac_ext <<_ACEOF |
---|
5133 | /* confdefs.h. */ |
---|
5134 | _ACEOF |
---|
5135 | cat confdefs.h >>conftest.$ac_ext |
---|
5136 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5137 | /* end confdefs.h. */ |
---|
5138 | |
---|
5139 | |
---|
5140 | int |
---|
5141 | main () |
---|
5142 | { |
---|
5143 | main (); |
---|
5144 | ; |
---|
5145 | return 0; |
---|
5146 | } |
---|
5147 | _ACEOF |
---|
5148 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5150 | (eval $ac_link) 2>conftest.er1 |
---|
5151 | ac_status=$? |
---|
5152 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5153 | rm -f conftest.er1 |
---|
5154 | cat conftest.err >&5 |
---|
5155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5156 | (exit $ac_status); } && |
---|
5157 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5158 | || test ! -s conftest.err' |
---|
5159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5160 | (eval $ac_try) 2>&5 |
---|
5161 | ac_status=$? |
---|
5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5163 | (exit $ac_status); }; } && |
---|
5164 | { ac_try='test -s conftest$ac_exeext' |
---|
5165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5166 | (eval $ac_try) 2>&5 |
---|
5167 | ac_status=$? |
---|
5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5169 | (exit $ac_status); }; }; then |
---|
5170 | ac_cv_lib_glew32_main=yes |
---|
5171 | else |
---|
5172 | echo "$as_me: failed program was:" >&5 |
---|
5173 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5174 | |
---|
5175 | ac_cv_lib_glew32_main=no |
---|
5176 | fi |
---|
5177 | rm -f conftest.err conftest.$ac_objext \ |
---|
5178 | conftest$ac_exeext conftest.$ac_ext |
---|
5179 | LIBS=$ac_check_lib_save_LIBS |
---|
5180 | fi |
---|
5181 | echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5 |
---|
5182 | echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6 |
---|
5183 | if test $ac_cv_lib_glew32_main = yes; then |
---|
5184 | FOUND_GLEW=yes; LIBS="$LIBS -lglew32" |
---|
5185 | fi |
---|
5186 | |
---|
5187 | if test x$FOUND_GLEW != xyes ; then |
---|
5188 | echo "------------------" |
---|
5189 | echo "opengl extension wrangler not found." |
---|
5190 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
5191 | echo "------------------" |
---|
5192 | exit -1 |
---|
5193 | fi |
---|
5194 | |
---|
5195 | #--------# |
---|
5196 | # openAL # |
---|
5197 | #--------# |
---|
5198 | # checking for openAL-headers |
---|
5199 | |
---|
5200 | for ac_header in AL/al.h |
---|
5201 | do |
---|
5202 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5203 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5204 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5206 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5208 | fi |
---|
5209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5210 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5211 | else |
---|
5212 | # Is the header compilable? |
---|
5213 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5214 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5215 | cat >conftest.$ac_ext <<_ACEOF |
---|
5216 | /* confdefs.h. */ |
---|
5217 | _ACEOF |
---|
5218 | cat confdefs.h >>conftest.$ac_ext |
---|
5219 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5220 | /* end confdefs.h. */ |
---|
5221 | $ac_includes_default |
---|
5222 | #include <$ac_header> |
---|
5223 | _ACEOF |
---|
5224 | rm -f conftest.$ac_objext |
---|
5225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5226 | (eval $ac_compile) 2>conftest.er1 |
---|
5227 | ac_status=$? |
---|
5228 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5229 | rm -f conftest.er1 |
---|
5230 | cat conftest.err >&5 |
---|
5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5232 | (exit $ac_status); } && |
---|
5233 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5234 | || test ! -s conftest.err' |
---|
5235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5236 | (eval $ac_try) 2>&5 |
---|
5237 | ac_status=$? |
---|
5238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5239 | (exit $ac_status); }; } && |
---|
5240 | { ac_try='test -s conftest.$ac_objext' |
---|
5241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5242 | (eval $ac_try) 2>&5 |
---|
5243 | ac_status=$? |
---|
5244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5245 | (exit $ac_status); }; }; then |
---|
5246 | ac_header_compiler=yes |
---|
5247 | else |
---|
5248 | echo "$as_me: failed program was:" >&5 |
---|
5249 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5250 | |
---|
5251 | ac_header_compiler=no |
---|
5252 | fi |
---|
5253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5254 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5255 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5256 | |
---|
5257 | # Is the header present? |
---|
5258 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5259 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5260 | cat >conftest.$ac_ext <<_ACEOF |
---|
5261 | /* confdefs.h. */ |
---|
5262 | _ACEOF |
---|
5263 | cat confdefs.h >>conftest.$ac_ext |
---|
5264 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5265 | /* end confdefs.h. */ |
---|
5266 | #include <$ac_header> |
---|
5267 | _ACEOF |
---|
5268 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5269 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5270 | ac_status=$? |
---|
5271 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5272 | rm -f conftest.er1 |
---|
5273 | cat conftest.err >&5 |
---|
5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5275 | (exit $ac_status); } >/dev/null; then |
---|
5276 | if test -s conftest.err; then |
---|
5277 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5278 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5279 | else |
---|
5280 | ac_cpp_err= |
---|
5281 | fi |
---|
5282 | else |
---|
5283 | ac_cpp_err=yes |
---|
5284 | fi |
---|
5285 | if test -z "$ac_cpp_err"; then |
---|
5286 | ac_header_preproc=yes |
---|
5287 | else |
---|
5288 | echo "$as_me: failed program was:" >&5 |
---|
5289 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5290 | |
---|
5291 | ac_header_preproc=no |
---|
5292 | fi |
---|
5293 | rm -f conftest.err conftest.$ac_ext |
---|
5294 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5295 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5296 | |
---|
5297 | # So? What about this header? |
---|
5298 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5299 | yes:no: ) |
---|
5300 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5301 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5302 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5303 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5304 | ac_header_preproc=yes |
---|
5305 | ;; |
---|
5306 | no:yes:* ) |
---|
5307 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5308 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5309 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5310 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5311 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5312 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5313 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5314 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5315 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5316 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5317 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5318 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5319 | ( |
---|
5320 | cat <<\_ASBOX |
---|
5321 | ## ---------------------------------------------- ## |
---|
5322 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5323 | ## ---------------------------------------------- ## |
---|
5324 | _ASBOX |
---|
5325 | ) | |
---|
5326 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5327 | ;; |
---|
5328 | esac |
---|
5329 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5333 | else |
---|
5334 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5335 | fi |
---|
5336 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5337 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5338 | |
---|
5339 | fi |
---|
5340 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5341 | cat >>confdefs.h <<_ACEOF |
---|
5342 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5343 | _ACEOF |
---|
5344 | |
---|
5345 | else |
---|
5346 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
5347 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
5348 | { (exit 1); exit 1; }; } |
---|
5349 | fi |
---|
5350 | |
---|
5351 | done |
---|
5352 | |
---|
5353 | # checking for openAL-lib |
---|
5354 | echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 |
---|
5355 | echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 |
---|
5356 | if test "${ac_cv_lib_OpenAL32_main+set}" = set; then |
---|
5357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5358 | else |
---|
5359 | ac_check_lib_save_LIBS=$LIBS |
---|
5360 | LIBS="-lOpenAL32 $LIBS" |
---|
5361 | cat >conftest.$ac_ext <<_ACEOF |
---|
5362 | /* confdefs.h. */ |
---|
5363 | _ACEOF |
---|
5364 | cat confdefs.h >>conftest.$ac_ext |
---|
5365 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5366 | /* end confdefs.h. */ |
---|
5367 | |
---|
5368 | |
---|
5369 | int |
---|
5370 | main () |
---|
5371 | { |
---|
5372 | main (); |
---|
5373 | ; |
---|
5374 | return 0; |
---|
5375 | } |
---|
5376 | _ACEOF |
---|
5377 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5379 | (eval $ac_link) 2>conftest.er1 |
---|
5380 | ac_status=$? |
---|
5381 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5382 | rm -f conftest.er1 |
---|
5383 | cat conftest.err >&5 |
---|
5384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5385 | (exit $ac_status); } && |
---|
5386 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5387 | || test ! -s conftest.err' |
---|
5388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5389 | (eval $ac_try) 2>&5 |
---|
5390 | ac_status=$? |
---|
5391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5392 | (exit $ac_status); }; } && |
---|
5393 | { ac_try='test -s conftest$ac_exeext' |
---|
5394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5395 | (eval $ac_try) 2>&5 |
---|
5396 | ac_status=$? |
---|
5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5398 | (exit $ac_status); }; }; then |
---|
5399 | ac_cv_lib_OpenAL32_main=yes |
---|
5400 | else |
---|
5401 | echo "$as_me: failed program was:" >&5 |
---|
5402 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5403 | |
---|
5404 | ac_cv_lib_OpenAL32_main=no |
---|
5405 | fi |
---|
5406 | rm -f conftest.err conftest.$ac_objext \ |
---|
5407 | conftest$ac_exeext conftest.$ac_ext |
---|
5408 | LIBS=$ac_check_lib_save_LIBS |
---|
5409 | fi |
---|
5410 | echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 |
---|
5411 | echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 |
---|
5412 | if test $ac_cv_lib_OpenAL32_main = yes; then |
---|
5413 | FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32" |
---|
5414 | fi |
---|
5415 | |
---|
5416 | echo "$as_me:$LINENO: checking for main in -lALut" >&5 |
---|
5417 | echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 |
---|
5418 | if test "${ac_cv_lib_ALut_main+set}" = set; then |
---|
5419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5420 | else |
---|
5421 | ac_check_lib_save_LIBS=$LIBS |
---|
5422 | LIBS="-lALut $LIBS" |
---|
5423 | cat >conftest.$ac_ext <<_ACEOF |
---|
5424 | /* confdefs.h. */ |
---|
5425 | _ACEOF |
---|
5426 | cat confdefs.h >>conftest.$ac_ext |
---|
5427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5428 | /* end confdefs.h. */ |
---|
5429 | |
---|
5430 | |
---|
5431 | int |
---|
5432 | main () |
---|
5433 | { |
---|
5434 | main (); |
---|
5435 | ; |
---|
5436 | return 0; |
---|
5437 | } |
---|
5438 | _ACEOF |
---|
5439 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5441 | (eval $ac_link) 2>conftest.er1 |
---|
5442 | ac_status=$? |
---|
5443 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5444 | rm -f conftest.er1 |
---|
5445 | cat conftest.err >&5 |
---|
5446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5447 | (exit $ac_status); } && |
---|
5448 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5449 | || test ! -s conftest.err' |
---|
5450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5451 | (eval $ac_try) 2>&5 |
---|
5452 | ac_status=$? |
---|
5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5454 | (exit $ac_status); }; } && |
---|
5455 | { ac_try='test -s conftest$ac_exeext' |
---|
5456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5457 | (eval $ac_try) 2>&5 |
---|
5458 | ac_status=$? |
---|
5459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5460 | (exit $ac_status); }; }; then |
---|
5461 | ac_cv_lib_ALut_main=yes |
---|
5462 | else |
---|
5463 | echo "$as_me: failed program was:" >&5 |
---|
5464 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5465 | |
---|
5466 | ac_cv_lib_ALut_main=no |
---|
5467 | fi |
---|
5468 | rm -f conftest.err conftest.$ac_objext \ |
---|
5469 | conftest$ac_exeext conftest.$ac_ext |
---|
5470 | LIBS=$ac_check_lib_save_LIBS |
---|
5471 | fi |
---|
5472 | echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5 |
---|
5473 | echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6 |
---|
5474 | if test $ac_cv_lib_ALut_main = yes; then |
---|
5475 | FOUND_ALUT=yes; LIBS="-lALut $LIBS" |
---|
5476 | fi |
---|
5477 | |
---|
5478 | if test x$FOUND_OPENAL != xyes ; then |
---|
5479 | echo "------------------" |
---|
5480 | echo "openal library not found." |
---|
5481 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
5482 | echo "------------------" |
---|
5483 | exit -1 |
---|
5484 | fi |
---|
5485 | |
---|
5486 | |
---|
5487 | #-----------# |
---|
5488 | # SDL(win) # |
---|
5489 | #-----------# |
---|
5490 | # checking for SDL-headers |
---|
5491 | |
---|
5492 | for ac_header in SDL/SDL.h |
---|
5493 | do |
---|
5494 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5495 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5496 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5497 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5500 | fi |
---|
5501 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5502 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5503 | else |
---|
5504 | # Is the header compilable? |
---|
5505 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5506 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5507 | cat >conftest.$ac_ext <<_ACEOF |
---|
5508 | /* confdefs.h. */ |
---|
5509 | _ACEOF |
---|
5510 | cat confdefs.h >>conftest.$ac_ext |
---|
5511 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5512 | /* end confdefs.h. */ |
---|
5513 | $ac_includes_default |
---|
5514 | #include <$ac_header> |
---|
5515 | _ACEOF |
---|
5516 | rm -f conftest.$ac_objext |
---|
5517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5518 | (eval $ac_compile) 2>conftest.er1 |
---|
5519 | ac_status=$? |
---|
5520 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5521 | rm -f conftest.er1 |
---|
5522 | cat conftest.err >&5 |
---|
5523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5524 | (exit $ac_status); } && |
---|
5525 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5526 | || test ! -s conftest.err' |
---|
5527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5528 | (eval $ac_try) 2>&5 |
---|
5529 | ac_status=$? |
---|
5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5531 | (exit $ac_status); }; } && |
---|
5532 | { ac_try='test -s conftest.$ac_objext' |
---|
5533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5534 | (eval $ac_try) 2>&5 |
---|
5535 | ac_status=$? |
---|
5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5537 | (exit $ac_status); }; }; then |
---|
5538 | ac_header_compiler=yes |
---|
5539 | else |
---|
5540 | echo "$as_me: failed program was:" >&5 |
---|
5541 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5542 | |
---|
5543 | ac_header_compiler=no |
---|
5544 | fi |
---|
5545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5546 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5547 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5548 | |
---|
5549 | # Is the header present? |
---|
5550 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5551 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5552 | cat >conftest.$ac_ext <<_ACEOF |
---|
5553 | /* confdefs.h. */ |
---|
5554 | _ACEOF |
---|
5555 | cat confdefs.h >>conftest.$ac_ext |
---|
5556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5557 | /* end confdefs.h. */ |
---|
5558 | #include <$ac_header> |
---|
5559 | _ACEOF |
---|
5560 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5561 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5562 | ac_status=$? |
---|
5563 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5564 | rm -f conftest.er1 |
---|
5565 | cat conftest.err >&5 |
---|
5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5567 | (exit $ac_status); } >/dev/null; then |
---|
5568 | if test -s conftest.err; then |
---|
5569 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5570 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5571 | else |
---|
5572 | ac_cpp_err= |
---|
5573 | fi |
---|
5574 | else |
---|
5575 | ac_cpp_err=yes |
---|
5576 | fi |
---|
5577 | if test -z "$ac_cpp_err"; then |
---|
5578 | ac_header_preproc=yes |
---|
5579 | else |
---|
5580 | echo "$as_me: failed program was:" >&5 |
---|
5581 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5582 | |
---|
5583 | ac_header_preproc=no |
---|
5584 | fi |
---|
5585 | rm -f conftest.err conftest.$ac_ext |
---|
5586 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5587 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5588 | |
---|
5589 | # So? What about this header? |
---|
5590 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5591 | yes:no: ) |
---|
5592 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5593 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5594 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5595 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5596 | ac_header_preproc=yes |
---|
5597 | ;; |
---|
5598 | no:yes:* ) |
---|
5599 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5600 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5601 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5602 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5603 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5604 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5605 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5606 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5607 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5608 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5609 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5610 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5611 | ( |
---|
5612 | cat <<\_ASBOX |
---|
5613 | ## ---------------------------------------------- ## |
---|
5614 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5615 | ## ---------------------------------------------- ## |
---|
5616 | _ASBOX |
---|
5617 | ) | |
---|
5618 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5619 | ;; |
---|
5620 | esac |
---|
5621 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5622 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5623 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5625 | else |
---|
5626 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5627 | fi |
---|
5628 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5629 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5630 | |
---|
5631 | fi |
---|
5632 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5633 | cat >>confdefs.h <<_ACEOF |
---|
5634 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5635 | _ACEOF |
---|
5636 | |
---|
5637 | else |
---|
5638 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
5639 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
5640 | { (exit 1); exit 1; }; } |
---|
5641 | fi |
---|
5642 | |
---|
5643 | done |
---|
5644 | |
---|
5645 | |
---|
5646 | #checking for libSDL |
---|
5647 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
5648 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
5649 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
5650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5651 | else |
---|
5652 | ac_check_lib_save_LIBS=$LIBS |
---|
5653 | LIBS="-lsdlmain $LIBS" |
---|
5654 | cat >conftest.$ac_ext <<_ACEOF |
---|
5655 | /* confdefs.h. */ |
---|
5656 | _ACEOF |
---|
5657 | cat confdefs.h >>conftest.$ac_ext |
---|
5658 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5659 | /* end confdefs.h. */ |
---|
5660 | |
---|
5661 | |
---|
5662 | int |
---|
5663 | main () |
---|
5664 | { |
---|
5665 | main (); |
---|
5666 | ; |
---|
5667 | return 0; |
---|
5668 | } |
---|
5669 | _ACEOF |
---|
5670 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5672 | (eval $ac_link) 2>conftest.er1 |
---|
5673 | ac_status=$? |
---|
5674 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5675 | rm -f conftest.er1 |
---|
5676 | cat conftest.err >&5 |
---|
5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5678 | (exit $ac_status); } && |
---|
5679 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5680 | || test ! -s conftest.err' |
---|
5681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5682 | (eval $ac_try) 2>&5 |
---|
5683 | ac_status=$? |
---|
5684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5685 | (exit $ac_status); }; } && |
---|
5686 | { ac_try='test -s conftest$ac_exeext' |
---|
5687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5688 | (eval $ac_try) 2>&5 |
---|
5689 | ac_status=$? |
---|
5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5691 | (exit $ac_status); }; }; then |
---|
5692 | ac_cv_lib_sdlmain_main=yes |
---|
5693 | else |
---|
5694 | echo "$as_me: failed program was:" >&5 |
---|
5695 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5696 | |
---|
5697 | ac_cv_lib_sdlmain_main=no |
---|
5698 | fi |
---|
5699 | rm -f conftest.err conftest.$ac_objext \ |
---|
5700 | conftest$ac_exeext conftest.$ac_ext |
---|
5701 | LIBS=$ac_check_lib_save_LIBS |
---|
5702 | fi |
---|
5703 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
5704 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
5705 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
5706 | FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain" |
---|
5707 | fi |
---|
5708 | |
---|
5709 | if test x$FOUND_sdlmain != xyes ; then |
---|
5710 | echo "------------------" |
---|
5711 | echo "SDL library not found." |
---|
5712 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5713 | echo "------------------" |
---|
5714 | exit 1 |
---|
5715 | fi |
---|
5716 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
5717 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
5718 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
5719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5720 | else |
---|
5721 | ac_check_lib_save_LIBS=$LIBS |
---|
5722 | LIBS="-lsdl $LIBS" |
---|
5723 | cat >conftest.$ac_ext <<_ACEOF |
---|
5724 | /* confdefs.h. */ |
---|
5725 | _ACEOF |
---|
5726 | cat confdefs.h >>conftest.$ac_ext |
---|
5727 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5728 | /* end confdefs.h. */ |
---|
5729 | |
---|
5730 | |
---|
5731 | int |
---|
5732 | main () |
---|
5733 | { |
---|
5734 | main (); |
---|
5735 | ; |
---|
5736 | return 0; |
---|
5737 | } |
---|
5738 | _ACEOF |
---|
5739 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5741 | (eval $ac_link) 2>conftest.er1 |
---|
5742 | ac_status=$? |
---|
5743 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5744 | rm -f conftest.er1 |
---|
5745 | cat conftest.err >&5 |
---|
5746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5747 | (exit $ac_status); } && |
---|
5748 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5749 | || test ! -s conftest.err' |
---|
5750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5751 | (eval $ac_try) 2>&5 |
---|
5752 | ac_status=$? |
---|
5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5754 | (exit $ac_status); }; } && |
---|
5755 | { ac_try='test -s conftest$ac_exeext' |
---|
5756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5757 | (eval $ac_try) 2>&5 |
---|
5758 | ac_status=$? |
---|
5759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5760 | (exit $ac_status); }; }; then |
---|
5761 | ac_cv_lib_sdl_main=yes |
---|
5762 | else |
---|
5763 | echo "$as_me: failed program was:" >&5 |
---|
5764 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5765 | |
---|
5766 | ac_cv_lib_sdl_main=no |
---|
5767 | fi |
---|
5768 | rm -f conftest.err conftest.$ac_objext \ |
---|
5769 | conftest$ac_exeext conftest.$ac_ext |
---|
5770 | LIBS=$ac_check_lib_save_LIBS |
---|
5771 | fi |
---|
5772 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
5773 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
5774 | if test $ac_cv_lib_sdl_main = yes; then |
---|
5775 | FOUND_SDL=yes; LIBS="$LIBS -lsdl" |
---|
5776 | fi |
---|
5777 | |
---|
5778 | if test x$FOUND_SDL != xyes ; then |
---|
5779 | echo "------------------" |
---|
5780 | echo "SDL library not found." |
---|
5781 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5782 | echo "------------------" |
---|
5783 | exit -1 |
---|
5784 | fi |
---|
5785 | |
---|
5786 | ;; |
---|
5787 | |
---|
5788 | ######### |
---|
5789 | #-------# |
---|
5790 | # LINUX # |
---|
5791 | #-------# |
---|
5792 | ######### |
---|
5793 | *-*-linux*) |
---|
5794 | echo "Linux detected" |
---|
5795 | |
---|
5796 | Linux="yes" |
---|
5797 | |
---|
5798 | ##CPPFLAGS="-I/usr/include $CPPFLAGS" |
---|
5799 | ##LDFLAGS="-L/usr/lib $LDFLAGS" |
---|
5800 | if test x$SHARED_LIB_PATH != xno; then |
---|
5801 | echo "setting new LDFLAGS with $SHARED_LIB_PATH" |
---|
5802 | LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS" |
---|
5803 | fi |
---|
5804 | |
---|
5805 | #--------# |
---|
5806 | # openGL # |
---|
5807 | #--------# |
---|
5808 | # checking gl header |
---|
5809 | |
---|
5810 | for ac_header in GL/gl.h |
---|
5811 | do |
---|
5812 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5813 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5814 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5816 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5818 | fi |
---|
5819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5820 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5821 | else |
---|
5822 | # Is the header compilable? |
---|
5823 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5824 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5825 | cat >conftest.$ac_ext <<_ACEOF |
---|
5826 | /* confdefs.h. */ |
---|
5827 | _ACEOF |
---|
5828 | cat confdefs.h >>conftest.$ac_ext |
---|
5829 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5830 | /* end confdefs.h. */ |
---|
5831 | $ac_includes_default |
---|
5832 | #include <$ac_header> |
---|
5833 | _ACEOF |
---|
5834 | rm -f conftest.$ac_objext |
---|
5835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5836 | (eval $ac_compile) 2>conftest.er1 |
---|
5837 | ac_status=$? |
---|
5838 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5839 | rm -f conftest.er1 |
---|
5840 | cat conftest.err >&5 |
---|
5841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5842 | (exit $ac_status); } && |
---|
5843 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5844 | || test ! -s conftest.err' |
---|
5845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5846 | (eval $ac_try) 2>&5 |
---|
5847 | ac_status=$? |
---|
5848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5849 | (exit $ac_status); }; } && |
---|
5850 | { ac_try='test -s conftest.$ac_objext' |
---|
5851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5852 | (eval $ac_try) 2>&5 |
---|
5853 | ac_status=$? |
---|
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5855 | (exit $ac_status); }; }; then |
---|
5856 | ac_header_compiler=yes |
---|
5857 | else |
---|
5858 | echo "$as_me: failed program was:" >&5 |
---|
5859 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5860 | |
---|
5861 | ac_header_compiler=no |
---|
5862 | fi |
---|
5863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5864 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5865 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5866 | |
---|
5867 | # Is the header present? |
---|
5868 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5869 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5870 | cat >conftest.$ac_ext <<_ACEOF |
---|
5871 | /* confdefs.h. */ |
---|
5872 | _ACEOF |
---|
5873 | cat confdefs.h >>conftest.$ac_ext |
---|
5874 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5875 | /* end confdefs.h. */ |
---|
5876 | #include <$ac_header> |
---|
5877 | _ACEOF |
---|
5878 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5879 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5880 | ac_status=$? |
---|
5881 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5882 | rm -f conftest.er1 |
---|
5883 | cat conftest.err >&5 |
---|
5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5885 | (exit $ac_status); } >/dev/null; then |
---|
5886 | if test -s conftest.err; then |
---|
5887 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5888 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5889 | else |
---|
5890 | ac_cpp_err= |
---|
5891 | fi |
---|
5892 | else |
---|
5893 | ac_cpp_err=yes |
---|
5894 | fi |
---|
5895 | if test -z "$ac_cpp_err"; then |
---|
5896 | ac_header_preproc=yes |
---|
5897 | else |
---|
5898 | echo "$as_me: failed program was:" >&5 |
---|
5899 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5900 | |
---|
5901 | ac_header_preproc=no |
---|
5902 | fi |
---|
5903 | rm -f conftest.err conftest.$ac_ext |
---|
5904 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5905 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5906 | |
---|
5907 | # So? What about this header? |
---|
5908 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5909 | yes:no: ) |
---|
5910 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5911 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5912 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5913 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5914 | ac_header_preproc=yes |
---|
5915 | ;; |
---|
5916 | no:yes:* ) |
---|
5917 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5918 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5919 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5920 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5921 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5922 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5923 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5924 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5925 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5926 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5927 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5928 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5929 | ( |
---|
5930 | cat <<\_ASBOX |
---|
5931 | ## ---------------------------------------------- ## |
---|
5932 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5933 | ## ---------------------------------------------- ## |
---|
5934 | _ASBOX |
---|
5935 | ) | |
---|
5936 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5937 | ;; |
---|
5938 | esac |
---|
5939 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5940 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5941 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5943 | else |
---|
5944 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5945 | fi |
---|
5946 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5947 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5948 | |
---|
5949 | fi |
---|
5950 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5951 | cat >>confdefs.h <<_ACEOF |
---|
5952 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5953 | _ACEOF |
---|
5954 | |
---|
5955 | else |
---|
5956 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5957 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5958 | { (exit 1); exit 1; }; } |
---|
5959 | fi |
---|
5960 | |
---|
5961 | done |
---|
5962 | |
---|
5963 | |
---|
5964 | # checking for Unix GL |
---|
5965 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
5966 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
5967 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
5968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5969 | else |
---|
5970 | ac_check_lib_save_LIBS=$LIBS |
---|
5971 | LIBS="-lGL $LIBS" |
---|
5972 | cat >conftest.$ac_ext <<_ACEOF |
---|
5973 | /* confdefs.h. */ |
---|
5974 | _ACEOF |
---|
5975 | cat confdefs.h >>conftest.$ac_ext |
---|
5976 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5977 | /* end confdefs.h. */ |
---|
5978 | |
---|
5979 | |
---|
5980 | int |
---|
5981 | main () |
---|
5982 | { |
---|
5983 | main (); |
---|
5984 | ; |
---|
5985 | return 0; |
---|
5986 | } |
---|
5987 | _ACEOF |
---|
5988 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5990 | (eval $ac_link) 2>conftest.er1 |
---|
5991 | ac_status=$? |
---|
5992 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5993 | rm -f conftest.er1 |
---|
5994 | cat conftest.err >&5 |
---|
5995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5996 | (exit $ac_status); } && |
---|
5997 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5998 | || test ! -s conftest.err' |
---|
5999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6000 | (eval $ac_try) 2>&5 |
---|
6001 | ac_status=$? |
---|
6002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6003 | (exit $ac_status); }; } && |
---|
6004 | { ac_try='test -s conftest$ac_exeext' |
---|
6005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6006 | (eval $ac_try) 2>&5 |
---|
6007 | ac_status=$? |
---|
6008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6009 | (exit $ac_status); }; }; then |
---|
6010 | ac_cv_lib_GL_main=yes |
---|
6011 | else |
---|
6012 | echo "$as_me: failed program was:" >&5 |
---|
6013 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6014 | |
---|
6015 | ac_cv_lib_GL_main=no |
---|
6016 | fi |
---|
6017 | rm -f conftest.err conftest.$ac_objext \ |
---|
6018 | conftest$ac_exeext conftest.$ac_ext |
---|
6019 | LIBS=$ac_check_lib_save_LIBS |
---|
6020 | fi |
---|
6021 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
6022 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
6023 | if test $ac_cv_lib_GL_main = yes; then |
---|
6024 | FOUND_GL=yes; LIBS="$LIBS -lGL" |
---|
6025 | fi |
---|
6026 | |
---|
6027 | if test x$FOUND_GL != xyes ; then |
---|
6028 | echo "------------------" |
---|
6029 | echo "opengl not found." |
---|
6030 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
6031 | echo "------------------" |
---|
6032 | exit -1 |
---|
6033 | fi |
---|
6034 | |
---|
6035 | # cheking for GLU-header |
---|
6036 | |
---|
6037 | for ac_header in GL/glu.h |
---|
6038 | do |
---|
6039 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6040 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6041 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6042 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6043 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6045 | fi |
---|
6046 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6047 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6048 | else |
---|
6049 | # Is the header compilable? |
---|
6050 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6051 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6052 | cat >conftest.$ac_ext <<_ACEOF |
---|
6053 | /* confdefs.h. */ |
---|
6054 | _ACEOF |
---|
6055 | cat confdefs.h >>conftest.$ac_ext |
---|
6056 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6057 | /* end confdefs.h. */ |
---|
6058 | $ac_includes_default |
---|
6059 | #include <$ac_header> |
---|
6060 | _ACEOF |
---|
6061 | rm -f conftest.$ac_objext |
---|
6062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6063 | (eval $ac_compile) 2>conftest.er1 |
---|
6064 | ac_status=$? |
---|
6065 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6066 | rm -f conftest.er1 |
---|
6067 | cat conftest.err >&5 |
---|
6068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6069 | (exit $ac_status); } && |
---|
6070 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6071 | || test ! -s conftest.err' |
---|
6072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6073 | (eval $ac_try) 2>&5 |
---|
6074 | ac_status=$? |
---|
6075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6076 | (exit $ac_status); }; } && |
---|
6077 | { ac_try='test -s conftest.$ac_objext' |
---|
6078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6079 | (eval $ac_try) 2>&5 |
---|
6080 | ac_status=$? |
---|
6081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6082 | (exit $ac_status); }; }; then |
---|
6083 | ac_header_compiler=yes |
---|
6084 | else |
---|
6085 | echo "$as_me: failed program was:" >&5 |
---|
6086 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6087 | |
---|
6088 | ac_header_compiler=no |
---|
6089 | fi |
---|
6090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6091 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6092 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6093 | |
---|
6094 | # Is the header present? |
---|
6095 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6096 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6097 | cat >conftest.$ac_ext <<_ACEOF |
---|
6098 | /* confdefs.h. */ |
---|
6099 | _ACEOF |
---|
6100 | cat confdefs.h >>conftest.$ac_ext |
---|
6101 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6102 | /* end confdefs.h. */ |
---|
6103 | #include <$ac_header> |
---|
6104 | _ACEOF |
---|
6105 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6106 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6107 | ac_status=$? |
---|
6108 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6109 | rm -f conftest.er1 |
---|
6110 | cat conftest.err >&5 |
---|
6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6112 | (exit $ac_status); } >/dev/null; then |
---|
6113 | if test -s conftest.err; then |
---|
6114 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6115 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6116 | else |
---|
6117 | ac_cpp_err= |
---|
6118 | fi |
---|
6119 | else |
---|
6120 | ac_cpp_err=yes |
---|
6121 | fi |
---|
6122 | if test -z "$ac_cpp_err"; then |
---|
6123 | ac_header_preproc=yes |
---|
6124 | else |
---|
6125 | echo "$as_me: failed program was:" >&5 |
---|
6126 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6127 | |
---|
6128 | ac_header_preproc=no |
---|
6129 | fi |
---|
6130 | rm -f conftest.err conftest.$ac_ext |
---|
6131 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6132 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6133 | |
---|
6134 | # So? What about this header? |
---|
6135 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6136 | yes:no: ) |
---|
6137 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6138 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6139 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6140 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6141 | ac_header_preproc=yes |
---|
6142 | ;; |
---|
6143 | no:yes:* ) |
---|
6144 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6145 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6146 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6147 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6148 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6149 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6150 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6151 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6152 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6153 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6154 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6155 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6156 | ( |
---|
6157 | cat <<\_ASBOX |
---|
6158 | ## ---------------------------------------------- ## |
---|
6159 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6160 | ## ---------------------------------------------- ## |
---|
6161 | _ASBOX |
---|
6162 | ) | |
---|
6163 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6164 | ;; |
---|
6165 | esac |
---|
6166 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6167 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6168 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6170 | else |
---|
6171 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6172 | fi |
---|
6173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6174 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6175 | |
---|
6176 | fi |
---|
6177 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6178 | cat >>confdefs.h <<_ACEOF |
---|
6179 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6180 | _ACEOF |
---|
6181 | |
---|
6182 | else |
---|
6183 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6184 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6185 | { (exit 1); exit 1; }; } |
---|
6186 | fi |
---|
6187 | |
---|
6188 | done |
---|
6189 | |
---|
6190 | echo "$as_me:$LINENO: checking for main in -lGLU" >&5 |
---|
6191 | echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6 |
---|
6192 | if test "${ac_cv_lib_GLU_main+set}" = set; then |
---|
6193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6194 | else |
---|
6195 | ac_check_lib_save_LIBS=$LIBS |
---|
6196 | LIBS="-lGLU $LIBS" |
---|
6197 | cat >conftest.$ac_ext <<_ACEOF |
---|
6198 | /* confdefs.h. */ |
---|
6199 | _ACEOF |
---|
6200 | cat confdefs.h >>conftest.$ac_ext |
---|
6201 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6202 | /* end confdefs.h. */ |
---|
6203 | |
---|
6204 | |
---|
6205 | int |
---|
6206 | main () |
---|
6207 | { |
---|
6208 | main (); |
---|
6209 | ; |
---|
6210 | return 0; |
---|
6211 | } |
---|
6212 | _ACEOF |
---|
6213 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6215 | (eval $ac_link) 2>conftest.er1 |
---|
6216 | ac_status=$? |
---|
6217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6218 | rm -f conftest.er1 |
---|
6219 | cat conftest.err >&5 |
---|
6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6221 | (exit $ac_status); } && |
---|
6222 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6223 | || test ! -s conftest.err' |
---|
6224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6225 | (eval $ac_try) 2>&5 |
---|
6226 | ac_status=$? |
---|
6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6228 | (exit $ac_status); }; } && |
---|
6229 | { ac_try='test -s conftest$ac_exeext' |
---|
6230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6231 | (eval $ac_try) 2>&5 |
---|
6232 | ac_status=$? |
---|
6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6234 | (exit $ac_status); }; }; then |
---|
6235 | ac_cv_lib_GLU_main=yes |
---|
6236 | else |
---|
6237 | echo "$as_me: failed program was:" >&5 |
---|
6238 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6239 | |
---|
6240 | ac_cv_lib_GLU_main=no |
---|
6241 | fi |
---|
6242 | rm -f conftest.err conftest.$ac_objext \ |
---|
6243 | conftest$ac_exeext conftest.$ac_ext |
---|
6244 | LIBS=$ac_check_lib_save_LIBS |
---|
6245 | fi |
---|
6246 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5 |
---|
6247 | echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6 |
---|
6248 | if test $ac_cv_lib_GLU_main = yes; then |
---|
6249 | FOUND_GLU=yes; LIBS="$LIBS -lGLU" |
---|
6250 | fi |
---|
6251 | |
---|
6252 | if test x$FOUND_GLU != xyes ; then |
---|
6253 | echo "------------------" |
---|
6254 | echo "GLU library not found." |
---|
6255 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
6256 | echo "------------------" |
---|
6257 | exit -1 |
---|
6258 | fi |
---|
6259 | |
---|
6260 | # checking for GLEW-headers |
---|
6261 | |
---|
6262 | for ac_header in GL/glew.h |
---|
6263 | do |
---|
6264 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6266 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6268 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6270 | fi |
---|
6271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6272 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6273 | else |
---|
6274 | # Is the header compilable? |
---|
6275 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6276 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6277 | cat >conftest.$ac_ext <<_ACEOF |
---|
6278 | /* confdefs.h. */ |
---|
6279 | _ACEOF |
---|
6280 | cat confdefs.h >>conftest.$ac_ext |
---|
6281 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6282 | /* end confdefs.h. */ |
---|
6283 | $ac_includes_default |
---|
6284 | #include <$ac_header> |
---|
6285 | _ACEOF |
---|
6286 | rm -f conftest.$ac_objext |
---|
6287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6288 | (eval $ac_compile) 2>conftest.er1 |
---|
6289 | ac_status=$? |
---|
6290 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6291 | rm -f conftest.er1 |
---|
6292 | cat conftest.err >&5 |
---|
6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6294 | (exit $ac_status); } && |
---|
6295 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6296 | || test ! -s conftest.err' |
---|
6297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6298 | (eval $ac_try) 2>&5 |
---|
6299 | ac_status=$? |
---|
6300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6301 | (exit $ac_status); }; } && |
---|
6302 | { ac_try='test -s conftest.$ac_objext' |
---|
6303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6304 | (eval $ac_try) 2>&5 |
---|
6305 | ac_status=$? |
---|
6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6307 | (exit $ac_status); }; }; then |
---|
6308 | ac_header_compiler=yes |
---|
6309 | else |
---|
6310 | echo "$as_me: failed program was:" >&5 |
---|
6311 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6312 | |
---|
6313 | ac_header_compiler=no |
---|
6314 | fi |
---|
6315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6316 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6317 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6318 | |
---|
6319 | # Is the header present? |
---|
6320 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6321 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6322 | cat >conftest.$ac_ext <<_ACEOF |
---|
6323 | /* confdefs.h. */ |
---|
6324 | _ACEOF |
---|
6325 | cat confdefs.h >>conftest.$ac_ext |
---|
6326 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6327 | /* end confdefs.h. */ |
---|
6328 | #include <$ac_header> |
---|
6329 | _ACEOF |
---|
6330 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6331 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6332 | ac_status=$? |
---|
6333 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6334 | rm -f conftest.er1 |
---|
6335 | cat conftest.err >&5 |
---|
6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6337 | (exit $ac_status); } >/dev/null; then |
---|
6338 | if test -s conftest.err; then |
---|
6339 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6340 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6341 | else |
---|
6342 | ac_cpp_err= |
---|
6343 | fi |
---|
6344 | else |
---|
6345 | ac_cpp_err=yes |
---|
6346 | fi |
---|
6347 | if test -z "$ac_cpp_err"; then |
---|
6348 | ac_header_preproc=yes |
---|
6349 | else |
---|
6350 | echo "$as_me: failed program was:" >&5 |
---|
6351 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6352 | |
---|
6353 | ac_header_preproc=no |
---|
6354 | fi |
---|
6355 | rm -f conftest.err conftest.$ac_ext |
---|
6356 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6357 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6358 | |
---|
6359 | # So? What about this header? |
---|
6360 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6361 | yes:no: ) |
---|
6362 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6363 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6364 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6365 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6366 | ac_header_preproc=yes |
---|
6367 | ;; |
---|
6368 | no:yes:* ) |
---|
6369 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6370 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6371 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6372 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6373 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6374 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6375 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6376 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6377 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6378 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6379 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6380 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6381 | ( |
---|
6382 | cat <<\_ASBOX |
---|
6383 | ## ---------------------------------------------- ## |
---|
6384 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6385 | ## ---------------------------------------------- ## |
---|
6386 | _ASBOX |
---|
6387 | ) | |
---|
6388 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6389 | ;; |
---|
6390 | esac |
---|
6391 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6395 | else |
---|
6396 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6397 | fi |
---|
6398 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6399 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6400 | |
---|
6401 | fi |
---|
6402 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6403 | cat >>confdefs.h <<_ACEOF |
---|
6404 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6405 | _ACEOF |
---|
6406 | |
---|
6407 | else |
---|
6408 | { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 |
---|
6409 | echo "$as_me: error: cannot find glew headers" >&2;} |
---|
6410 | { (exit 1); exit 1; }; } |
---|
6411 | fi |
---|
6412 | |
---|
6413 | done |
---|
6414 | |
---|
6415 | # checking for GLEW-lib |
---|
6416 | echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 |
---|
6417 | echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 |
---|
6418 | if test "${ac_cv_lib_GLEW_main+set}" = set; then |
---|
6419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6420 | else |
---|
6421 | ac_check_lib_save_LIBS=$LIBS |
---|
6422 | LIBS="-lGLEW $LIBS" |
---|
6423 | cat >conftest.$ac_ext <<_ACEOF |
---|
6424 | /* confdefs.h. */ |
---|
6425 | _ACEOF |
---|
6426 | cat confdefs.h >>conftest.$ac_ext |
---|
6427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6428 | /* end confdefs.h. */ |
---|
6429 | |
---|
6430 | |
---|
6431 | int |
---|
6432 | main () |
---|
6433 | { |
---|
6434 | main (); |
---|
6435 | ; |
---|
6436 | return 0; |
---|
6437 | } |
---|
6438 | _ACEOF |
---|
6439 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6441 | (eval $ac_link) 2>conftest.er1 |
---|
6442 | ac_status=$? |
---|
6443 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6444 | rm -f conftest.er1 |
---|
6445 | cat conftest.err >&5 |
---|
6446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6447 | (exit $ac_status); } && |
---|
6448 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6449 | || test ! -s conftest.err' |
---|
6450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6451 | (eval $ac_try) 2>&5 |
---|
6452 | ac_status=$? |
---|
6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6454 | (exit $ac_status); }; } && |
---|
6455 | { ac_try='test -s conftest$ac_exeext' |
---|
6456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6457 | (eval $ac_try) 2>&5 |
---|
6458 | ac_status=$? |
---|
6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6460 | (exit $ac_status); }; }; then |
---|
6461 | ac_cv_lib_GLEW_main=yes |
---|
6462 | else |
---|
6463 | echo "$as_me: failed program was:" >&5 |
---|
6464 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6465 | |
---|
6466 | ac_cv_lib_GLEW_main=no |
---|
6467 | fi |
---|
6468 | rm -f conftest.err conftest.$ac_objext \ |
---|
6469 | conftest$ac_exeext conftest.$ac_ext |
---|
6470 | LIBS=$ac_check_lib_save_LIBS |
---|
6471 | fi |
---|
6472 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 |
---|
6473 | echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 |
---|
6474 | if test $ac_cv_lib_GLEW_main = yes; then |
---|
6475 | FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" |
---|
6476 | fi |
---|
6477 | |
---|
6478 | if test x$FOUND_GLEW != xyes ; then |
---|
6479 | echo "------------------" |
---|
6480 | echo "glew not found." |
---|
6481 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
6482 | echo "------------------" |
---|
6483 | exit -1 |
---|
6484 | fi |
---|
6485 | |
---|
6486 | #--------# |
---|
6487 | # openAL # |
---|
6488 | #--------# |
---|
6489 | # checking for openAL-headers |
---|
6490 | |
---|
6491 | for ac_header in AL/al.h |
---|
6492 | do |
---|
6493 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6495 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6496 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6497 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6499 | fi |
---|
6500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6501 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6502 | else |
---|
6503 | # Is the header compilable? |
---|
6504 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6505 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6506 | cat >conftest.$ac_ext <<_ACEOF |
---|
6507 | /* confdefs.h. */ |
---|
6508 | _ACEOF |
---|
6509 | cat confdefs.h >>conftest.$ac_ext |
---|
6510 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6511 | /* end confdefs.h. */ |
---|
6512 | $ac_includes_default |
---|
6513 | #include <$ac_header> |
---|
6514 | _ACEOF |
---|
6515 | rm -f conftest.$ac_objext |
---|
6516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6517 | (eval $ac_compile) 2>conftest.er1 |
---|
6518 | ac_status=$? |
---|
6519 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6520 | rm -f conftest.er1 |
---|
6521 | cat conftest.err >&5 |
---|
6522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6523 | (exit $ac_status); } && |
---|
6524 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6525 | || test ! -s conftest.err' |
---|
6526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6527 | (eval $ac_try) 2>&5 |
---|
6528 | ac_status=$? |
---|
6529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6530 | (exit $ac_status); }; } && |
---|
6531 | { ac_try='test -s conftest.$ac_objext' |
---|
6532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6533 | (eval $ac_try) 2>&5 |
---|
6534 | ac_status=$? |
---|
6535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6536 | (exit $ac_status); }; }; then |
---|
6537 | ac_header_compiler=yes |
---|
6538 | else |
---|
6539 | echo "$as_me: failed program was:" >&5 |
---|
6540 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6541 | |
---|
6542 | ac_header_compiler=no |
---|
6543 | fi |
---|
6544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6545 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6546 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6547 | |
---|
6548 | # Is the header present? |
---|
6549 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6550 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6551 | cat >conftest.$ac_ext <<_ACEOF |
---|
6552 | /* confdefs.h. */ |
---|
6553 | _ACEOF |
---|
6554 | cat confdefs.h >>conftest.$ac_ext |
---|
6555 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6556 | /* end confdefs.h. */ |
---|
6557 | #include <$ac_header> |
---|
6558 | _ACEOF |
---|
6559 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6560 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6561 | ac_status=$? |
---|
6562 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6563 | rm -f conftest.er1 |
---|
6564 | cat conftest.err >&5 |
---|
6565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6566 | (exit $ac_status); } >/dev/null; then |
---|
6567 | if test -s conftest.err; then |
---|
6568 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6569 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6570 | else |
---|
6571 | ac_cpp_err= |
---|
6572 | fi |
---|
6573 | else |
---|
6574 | ac_cpp_err=yes |
---|
6575 | fi |
---|
6576 | if test -z "$ac_cpp_err"; then |
---|
6577 | ac_header_preproc=yes |
---|
6578 | else |
---|
6579 | echo "$as_me: failed program was:" >&5 |
---|
6580 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6581 | |
---|
6582 | ac_header_preproc=no |
---|
6583 | fi |
---|
6584 | rm -f conftest.err conftest.$ac_ext |
---|
6585 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6586 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6587 | |
---|
6588 | # So? What about this header? |
---|
6589 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6590 | yes:no: ) |
---|
6591 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6592 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6593 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6594 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6595 | ac_header_preproc=yes |
---|
6596 | ;; |
---|
6597 | no:yes:* ) |
---|
6598 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6599 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6600 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6601 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6602 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6603 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6604 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6605 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6607 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6608 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6609 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6610 | ( |
---|
6611 | cat <<\_ASBOX |
---|
6612 | ## ---------------------------------------------- ## |
---|
6613 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6614 | ## ---------------------------------------------- ## |
---|
6615 | _ASBOX |
---|
6616 | ) | |
---|
6617 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6618 | ;; |
---|
6619 | esac |
---|
6620 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6622 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6624 | else |
---|
6625 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6626 | fi |
---|
6627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6628 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6629 | |
---|
6630 | fi |
---|
6631 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6632 | cat >>confdefs.h <<_ACEOF |
---|
6633 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6634 | _ACEOF |
---|
6635 | |
---|
6636 | else |
---|
6637 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
6638 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
6639 | { (exit 1); exit 1; }; } |
---|
6640 | fi |
---|
6641 | |
---|
6642 | done |
---|
6643 | |
---|
6644 | # checking for openAL-lib |
---|
6645 | echo "$as_me:$LINENO: checking for main in -lopenal" >&5 |
---|
6646 | echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 |
---|
6647 | if test "${ac_cv_lib_openal_main+set}" = set; then |
---|
6648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6649 | else |
---|
6650 | ac_check_lib_save_LIBS=$LIBS |
---|
6651 | LIBS="-lopenal $LIBS" |
---|
6652 | cat >conftest.$ac_ext <<_ACEOF |
---|
6653 | /* confdefs.h. */ |
---|
6654 | _ACEOF |
---|
6655 | cat confdefs.h >>conftest.$ac_ext |
---|
6656 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6657 | /* end confdefs.h. */ |
---|
6658 | |
---|
6659 | |
---|
6660 | int |
---|
6661 | main () |
---|
6662 | { |
---|
6663 | main (); |
---|
6664 | ; |
---|
6665 | return 0; |
---|
6666 | } |
---|
6667 | _ACEOF |
---|
6668 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6670 | (eval $ac_link) 2>conftest.er1 |
---|
6671 | ac_status=$? |
---|
6672 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6673 | rm -f conftest.er1 |
---|
6674 | cat conftest.err >&5 |
---|
6675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6676 | (exit $ac_status); } && |
---|
6677 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6678 | || test ! -s conftest.err' |
---|
6679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6680 | (eval $ac_try) 2>&5 |
---|
6681 | ac_status=$? |
---|
6682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6683 | (exit $ac_status); }; } && |
---|
6684 | { ac_try='test -s conftest$ac_exeext' |
---|
6685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6686 | (eval $ac_try) 2>&5 |
---|
6687 | ac_status=$? |
---|
6688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6689 | (exit $ac_status); }; }; then |
---|
6690 | ac_cv_lib_openal_main=yes |
---|
6691 | else |
---|
6692 | echo "$as_me: failed program was:" >&5 |
---|
6693 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6694 | |
---|
6695 | ac_cv_lib_openal_main=no |
---|
6696 | fi |
---|
6697 | rm -f conftest.err conftest.$ac_objext \ |
---|
6698 | conftest$ac_exeext conftest.$ac_ext |
---|
6699 | LIBS=$ac_check_lib_save_LIBS |
---|
6700 | fi |
---|
6701 | echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 |
---|
6702 | echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 |
---|
6703 | if test $ac_cv_lib_openal_main = yes; then |
---|
6704 | FOUND_OPENAL=yes; LIBS="$LIBS -lopenal" |
---|
6705 | fi |
---|
6706 | |
---|
6707 | if test x$FOUND_OPENAL != xyes ; then |
---|
6708 | echo "------------------" |
---|
6709 | echo "openal library not found." |
---|
6710 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
6711 | echo "------------------" |
---|
6712 | exit -1 |
---|
6713 | fi |
---|
6714 | # checking for alut |
---|
6715 | |
---|
6716 | for ac_header in AL/alut.h |
---|
6717 | do |
---|
6718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6724 | fi |
---|
6725 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6726 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6727 | else |
---|
6728 | # Is the header compilable? |
---|
6729 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6730 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6731 | cat >conftest.$ac_ext <<_ACEOF |
---|
6732 | /* confdefs.h. */ |
---|
6733 | _ACEOF |
---|
6734 | cat confdefs.h >>conftest.$ac_ext |
---|
6735 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6736 | /* end confdefs.h. */ |
---|
6737 | $ac_includes_default |
---|
6738 | #include <$ac_header> |
---|
6739 | _ACEOF |
---|
6740 | rm -f conftest.$ac_objext |
---|
6741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6742 | (eval $ac_compile) 2>conftest.er1 |
---|
6743 | ac_status=$? |
---|
6744 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6745 | rm -f conftest.er1 |
---|
6746 | cat conftest.err >&5 |
---|
6747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6748 | (exit $ac_status); } && |
---|
6749 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6750 | || test ! -s conftest.err' |
---|
6751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6752 | (eval $ac_try) 2>&5 |
---|
6753 | ac_status=$? |
---|
6754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6755 | (exit $ac_status); }; } && |
---|
6756 | { ac_try='test -s conftest.$ac_objext' |
---|
6757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6758 | (eval $ac_try) 2>&5 |
---|
6759 | ac_status=$? |
---|
6760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6761 | (exit $ac_status); }; }; then |
---|
6762 | ac_header_compiler=yes |
---|
6763 | else |
---|
6764 | echo "$as_me: failed program was:" >&5 |
---|
6765 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6766 | |
---|
6767 | ac_header_compiler=no |
---|
6768 | fi |
---|
6769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6770 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6771 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6772 | |
---|
6773 | # Is the header present? |
---|
6774 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6775 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6776 | cat >conftest.$ac_ext <<_ACEOF |
---|
6777 | /* confdefs.h. */ |
---|
6778 | _ACEOF |
---|
6779 | cat confdefs.h >>conftest.$ac_ext |
---|
6780 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6781 | /* end confdefs.h. */ |
---|
6782 | #include <$ac_header> |
---|
6783 | _ACEOF |
---|
6784 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6785 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6786 | ac_status=$? |
---|
6787 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6788 | rm -f conftest.er1 |
---|
6789 | cat conftest.err >&5 |
---|
6790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6791 | (exit $ac_status); } >/dev/null; then |
---|
6792 | if test -s conftest.err; then |
---|
6793 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6795 | else |
---|
6796 | ac_cpp_err= |
---|
6797 | fi |
---|
6798 | else |
---|
6799 | ac_cpp_err=yes |
---|
6800 | fi |
---|
6801 | if test -z "$ac_cpp_err"; then |
---|
6802 | ac_header_preproc=yes |
---|
6803 | else |
---|
6804 | echo "$as_me: failed program was:" >&5 |
---|
6805 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6806 | |
---|
6807 | ac_header_preproc=no |
---|
6808 | fi |
---|
6809 | rm -f conftest.err conftest.$ac_ext |
---|
6810 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6811 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6812 | |
---|
6813 | # So? What about this header? |
---|
6814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6815 | yes:no: ) |
---|
6816 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6817 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6819 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6820 | ac_header_preproc=yes |
---|
6821 | ;; |
---|
6822 | no:yes:* ) |
---|
6823 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6824 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6825 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6826 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6827 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6828 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6829 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6830 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6831 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6832 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6833 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6834 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6835 | ( |
---|
6836 | cat <<\_ASBOX |
---|
6837 | ## ---------------------------------------------- ## |
---|
6838 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6839 | ## ---------------------------------------------- ## |
---|
6840 | _ASBOX |
---|
6841 | ) | |
---|
6842 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6843 | ;; |
---|
6844 | esac |
---|
6845 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6846 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6847 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6849 | else |
---|
6850 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6851 | fi |
---|
6852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6853 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6854 | |
---|
6855 | fi |
---|
6856 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6857 | cat >>confdefs.h <<_ACEOF |
---|
6858 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6859 | _ACEOF |
---|
6860 | |
---|
6861 | else |
---|
6862 | { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5 |
---|
6863 | echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;} |
---|
6864 | { (exit 1); exit 1; }; } |
---|
6865 | fi |
---|
6866 | |
---|
6867 | done |
---|
6868 | |
---|
6869 | echo "$as_me:$LINENO: checking for main in -lalut" >&5 |
---|
6870 | echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6 |
---|
6871 | if test "${ac_cv_lib_alut_main+set}" = set; then |
---|
6872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6873 | else |
---|
6874 | ac_check_lib_save_LIBS=$LIBS |
---|
6875 | LIBS="-lalut $LIBS" |
---|
6876 | cat >conftest.$ac_ext <<_ACEOF |
---|
6877 | /* confdefs.h. */ |
---|
6878 | _ACEOF |
---|
6879 | cat confdefs.h >>conftest.$ac_ext |
---|
6880 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6881 | /* end confdefs.h. */ |
---|
6882 | |
---|
6883 | |
---|
6884 | int |
---|
6885 | main () |
---|
6886 | { |
---|
6887 | main (); |
---|
6888 | ; |
---|
6889 | return 0; |
---|
6890 | } |
---|
6891 | _ACEOF |
---|
6892 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6894 | (eval $ac_link) 2>conftest.er1 |
---|
6895 | ac_status=$? |
---|
6896 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6897 | rm -f conftest.er1 |
---|
6898 | cat conftest.err >&5 |
---|
6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6900 | (exit $ac_status); } && |
---|
6901 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6902 | || test ! -s conftest.err' |
---|
6903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6904 | (eval $ac_try) 2>&5 |
---|
6905 | ac_status=$? |
---|
6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6907 | (exit $ac_status); }; } && |
---|
6908 | { ac_try='test -s conftest$ac_exeext' |
---|
6909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6910 | (eval $ac_try) 2>&5 |
---|
6911 | ac_status=$? |
---|
6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6913 | (exit $ac_status); }; }; then |
---|
6914 | ac_cv_lib_alut_main=yes |
---|
6915 | else |
---|
6916 | echo "$as_me: failed program was:" >&5 |
---|
6917 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6918 | |
---|
6919 | ac_cv_lib_alut_main=no |
---|
6920 | fi |
---|
6921 | rm -f conftest.err conftest.$ac_objext \ |
---|
6922 | conftest$ac_exeext conftest.$ac_ext |
---|
6923 | LIBS=$ac_check_lib_save_LIBS |
---|
6924 | fi |
---|
6925 | echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5 |
---|
6926 | echo "${ECHO_T}$ac_cv_lib_alut_main" >&6 |
---|
6927 | if test $ac_cv_lib_alut_main = yes; then |
---|
6928 | FOUND_ALUT=yes; LIBS="-lalut $LIBS" |
---|
6929 | fi |
---|
6930 | |
---|
6931 | |
---|
6932 | #-----# |
---|
6933 | # SDL # |
---|
6934 | #-----# |
---|
6935 | # checking for SDL |
---|
6936 | echo "$as_me:$LINENO: checking for SDL-version" >&5 |
---|
6937 | echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 |
---|
6938 | SDL_VERSION=`sdl-config --version` |
---|
6939 | echo $SDL_VERSION |
---|
6940 | |
---|
6941 | CPPFLAGS="$CPPFLAGS `sdl-config --cflags`" |
---|
6942 | |
---|
6943 | for ac_header in SDL.h |
---|
6944 | do |
---|
6945 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6951 | fi |
---|
6952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6954 | else |
---|
6955 | # Is the header compilable? |
---|
6956 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6957 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6958 | cat >conftest.$ac_ext <<_ACEOF |
---|
6959 | /* confdefs.h. */ |
---|
6960 | _ACEOF |
---|
6961 | cat confdefs.h >>conftest.$ac_ext |
---|
6962 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6963 | /* end confdefs.h. */ |
---|
6964 | $ac_includes_default |
---|
6965 | #include <$ac_header> |
---|
6966 | _ACEOF |
---|
6967 | rm -f conftest.$ac_objext |
---|
6968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6969 | (eval $ac_compile) 2>conftest.er1 |
---|
6970 | ac_status=$? |
---|
6971 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6972 | rm -f conftest.er1 |
---|
6973 | cat conftest.err >&5 |
---|
6974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6975 | (exit $ac_status); } && |
---|
6976 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6977 | || test ! -s conftest.err' |
---|
6978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6979 | (eval $ac_try) 2>&5 |
---|
6980 | ac_status=$? |
---|
6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6982 | (exit $ac_status); }; } && |
---|
6983 | { ac_try='test -s conftest.$ac_objext' |
---|
6984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6985 | (eval $ac_try) 2>&5 |
---|
6986 | ac_status=$? |
---|
6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6988 | (exit $ac_status); }; }; then |
---|
6989 | ac_header_compiler=yes |
---|
6990 | else |
---|
6991 | echo "$as_me: failed program was:" >&5 |
---|
6992 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6993 | |
---|
6994 | ac_header_compiler=no |
---|
6995 | fi |
---|
6996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6997 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6998 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6999 | |
---|
7000 | # Is the header present? |
---|
7001 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7002 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7003 | cat >conftest.$ac_ext <<_ACEOF |
---|
7004 | /* confdefs.h. */ |
---|
7005 | _ACEOF |
---|
7006 | cat confdefs.h >>conftest.$ac_ext |
---|
7007 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7008 | /* end confdefs.h. */ |
---|
7009 | #include <$ac_header> |
---|
7010 | _ACEOF |
---|
7011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7013 | ac_status=$? |
---|
7014 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7015 | rm -f conftest.er1 |
---|
7016 | cat conftest.err >&5 |
---|
7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7018 | (exit $ac_status); } >/dev/null; then |
---|
7019 | if test -s conftest.err; then |
---|
7020 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7021 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7022 | else |
---|
7023 | ac_cpp_err= |
---|
7024 | fi |
---|
7025 | else |
---|
7026 | ac_cpp_err=yes |
---|
7027 | fi |
---|
7028 | if test -z "$ac_cpp_err"; then |
---|
7029 | ac_header_preproc=yes |
---|
7030 | else |
---|
7031 | echo "$as_me: failed program was:" >&5 |
---|
7032 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7033 | |
---|
7034 | ac_header_preproc=no |
---|
7035 | fi |
---|
7036 | rm -f conftest.err conftest.$ac_ext |
---|
7037 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7038 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7039 | |
---|
7040 | # So? What about this header? |
---|
7041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7042 | yes:no: ) |
---|
7043 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7044 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7046 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7047 | ac_header_preproc=yes |
---|
7048 | ;; |
---|
7049 | no:yes:* ) |
---|
7050 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7051 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7052 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7053 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7054 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7055 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7056 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7057 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7058 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7059 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7060 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7061 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7062 | ( |
---|
7063 | cat <<\_ASBOX |
---|
7064 | ## ---------------------------------------------- ## |
---|
7065 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7066 | ## ---------------------------------------------- ## |
---|
7067 | _ASBOX |
---|
7068 | ) | |
---|
7069 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7070 | ;; |
---|
7071 | esac |
---|
7072 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7076 | else |
---|
7077 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7078 | fi |
---|
7079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7081 | |
---|
7082 | fi |
---|
7083 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7084 | cat >>confdefs.h <<_ACEOF |
---|
7085 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7086 | _ACEOF |
---|
7087 | |
---|
7088 | else |
---|
7089 | |
---|
7090 | for ac_header in SDL/SDL.h |
---|
7091 | do |
---|
7092 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7098 | fi |
---|
7099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7100 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7101 | else |
---|
7102 | # Is the header compilable? |
---|
7103 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7104 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7105 | cat >conftest.$ac_ext <<_ACEOF |
---|
7106 | /* confdefs.h. */ |
---|
7107 | _ACEOF |
---|
7108 | cat confdefs.h >>conftest.$ac_ext |
---|
7109 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7110 | /* end confdefs.h. */ |
---|
7111 | $ac_includes_default |
---|
7112 | #include <$ac_header> |
---|
7113 | _ACEOF |
---|
7114 | rm -f conftest.$ac_objext |
---|
7115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7116 | (eval $ac_compile) 2>conftest.er1 |
---|
7117 | ac_status=$? |
---|
7118 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7119 | rm -f conftest.er1 |
---|
7120 | cat conftest.err >&5 |
---|
7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7122 | (exit $ac_status); } && |
---|
7123 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7124 | || test ! -s conftest.err' |
---|
7125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7126 | (eval $ac_try) 2>&5 |
---|
7127 | ac_status=$? |
---|
7128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7129 | (exit $ac_status); }; } && |
---|
7130 | { ac_try='test -s conftest.$ac_objext' |
---|
7131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7132 | (eval $ac_try) 2>&5 |
---|
7133 | ac_status=$? |
---|
7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7135 | (exit $ac_status); }; }; then |
---|
7136 | ac_header_compiler=yes |
---|
7137 | else |
---|
7138 | echo "$as_me: failed program was:" >&5 |
---|
7139 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7140 | |
---|
7141 | ac_header_compiler=no |
---|
7142 | fi |
---|
7143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7144 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7145 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7146 | |
---|
7147 | # Is the header present? |
---|
7148 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7149 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7150 | cat >conftest.$ac_ext <<_ACEOF |
---|
7151 | /* confdefs.h. */ |
---|
7152 | _ACEOF |
---|
7153 | cat confdefs.h >>conftest.$ac_ext |
---|
7154 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7155 | /* end confdefs.h. */ |
---|
7156 | #include <$ac_header> |
---|
7157 | _ACEOF |
---|
7158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7160 | ac_status=$? |
---|
7161 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7162 | rm -f conftest.er1 |
---|
7163 | cat conftest.err >&5 |
---|
7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7165 | (exit $ac_status); } >/dev/null; then |
---|
7166 | if test -s conftest.err; then |
---|
7167 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7169 | else |
---|
7170 | ac_cpp_err= |
---|
7171 | fi |
---|
7172 | else |
---|
7173 | ac_cpp_err=yes |
---|
7174 | fi |
---|
7175 | if test -z "$ac_cpp_err"; then |
---|
7176 | ac_header_preproc=yes |
---|
7177 | else |
---|
7178 | echo "$as_me: failed program was:" >&5 |
---|
7179 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7180 | |
---|
7181 | ac_header_preproc=no |
---|
7182 | fi |
---|
7183 | rm -f conftest.err conftest.$ac_ext |
---|
7184 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7185 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7186 | |
---|
7187 | # So? What about this header? |
---|
7188 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7189 | yes:no: ) |
---|
7190 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7191 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7193 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7194 | ac_header_preproc=yes |
---|
7195 | ;; |
---|
7196 | no:yes:* ) |
---|
7197 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7198 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7199 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7200 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7201 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7202 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7203 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7204 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7205 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7206 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7207 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7208 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7209 | ( |
---|
7210 | cat <<\_ASBOX |
---|
7211 | ## ---------------------------------------------- ## |
---|
7212 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7213 | ## ---------------------------------------------- ## |
---|
7214 | _ASBOX |
---|
7215 | ) | |
---|
7216 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7217 | ;; |
---|
7218 | esac |
---|
7219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7223 | else |
---|
7224 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7225 | fi |
---|
7226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7228 | |
---|
7229 | fi |
---|
7230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7231 | cat >>confdefs.h <<_ACEOF |
---|
7232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7233 | _ACEOF |
---|
7234 | |
---|
7235 | else |
---|
7236 | { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 |
---|
7237 | echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} |
---|
7238 | { (exit 1); exit 1; }; } |
---|
7239 | fi |
---|
7240 | |
---|
7241 | done |
---|
7242 | |
---|
7243 | fi |
---|
7244 | |
---|
7245 | done |
---|
7246 | |
---|
7247 | LIBS="`sdl-config --libs` $LIBS" |
---|
7248 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
7249 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
7250 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
7251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7252 | else |
---|
7253 | ac_check_lib_save_LIBS=$LIBS |
---|
7254 | LIBS="-lSDL $LIBS" |
---|
7255 | cat >conftest.$ac_ext <<_ACEOF |
---|
7256 | /* confdefs.h. */ |
---|
7257 | _ACEOF |
---|
7258 | cat confdefs.h >>conftest.$ac_ext |
---|
7259 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7260 | /* end confdefs.h. */ |
---|
7261 | |
---|
7262 | |
---|
7263 | int |
---|
7264 | main () |
---|
7265 | { |
---|
7266 | main (); |
---|
7267 | ; |
---|
7268 | return 0; |
---|
7269 | } |
---|
7270 | _ACEOF |
---|
7271 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7273 | (eval $ac_link) 2>conftest.er1 |
---|
7274 | ac_status=$? |
---|
7275 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7276 | rm -f conftest.er1 |
---|
7277 | cat conftest.err >&5 |
---|
7278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7279 | (exit $ac_status); } && |
---|
7280 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7281 | || test ! -s conftest.err' |
---|
7282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7283 | (eval $ac_try) 2>&5 |
---|
7284 | ac_status=$? |
---|
7285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7286 | (exit $ac_status); }; } && |
---|
7287 | { ac_try='test -s conftest$ac_exeext' |
---|
7288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7289 | (eval $ac_try) 2>&5 |
---|
7290 | ac_status=$? |
---|
7291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7292 | (exit $ac_status); }; }; then |
---|
7293 | ac_cv_lib_SDL_main=yes |
---|
7294 | else |
---|
7295 | echo "$as_me: failed program was:" >&5 |
---|
7296 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7297 | |
---|
7298 | ac_cv_lib_SDL_main=no |
---|
7299 | fi |
---|
7300 | rm -f conftest.err conftest.$ac_objext \ |
---|
7301 | conftest$ac_exeext conftest.$ac_ext |
---|
7302 | LIBS=$ac_check_lib_save_LIBS |
---|
7303 | fi |
---|
7304 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
7305 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
7306 | if test $ac_cv_lib_SDL_main = yes; then |
---|
7307 | FOUND_SDL=yes |
---|
7308 | fi |
---|
7309 | |
---|
7310 | if test x$FOUND_SDL != xyes ; then |
---|
7311 | echo "------------------" |
---|
7312 | echo "SDL library not found." |
---|
7313 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
7314 | echo "------------------" |
---|
7315 | exit -1 |
---|
7316 | fi |
---|
7317 | |
---|
7318 | ;; |
---|
7319 | |
---|
7320 | ############# |
---|
7321 | #-----------# |
---|
7322 | # MAC -OS X # |
---|
7323 | #-----------# |
---|
7324 | ############# |
---|
7325 | *darwin*) |
---|
7326 | echo "OS X detected" |
---|
7327 | |
---|
7328 | osX="yes" |
---|
7329 | |
---|
7330 | CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" |
---|
7331 | LDFLAGS="$LDFLAGS -L/sw/lib" |
---|
7332 | # checking gl header |
---|
7333 | |
---|
7334 | for ac_header in OpenGL/gl.h |
---|
7335 | do |
---|
7336 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7337 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7338 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7342 | fi |
---|
7343 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7344 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7345 | else |
---|
7346 | # Is the header compilable? |
---|
7347 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7348 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7349 | cat >conftest.$ac_ext <<_ACEOF |
---|
7350 | /* confdefs.h. */ |
---|
7351 | _ACEOF |
---|
7352 | cat confdefs.h >>conftest.$ac_ext |
---|
7353 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7354 | /* end confdefs.h. */ |
---|
7355 | $ac_includes_default |
---|
7356 | #include <$ac_header> |
---|
7357 | _ACEOF |
---|
7358 | rm -f conftest.$ac_objext |
---|
7359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7360 | (eval $ac_compile) 2>conftest.er1 |
---|
7361 | ac_status=$? |
---|
7362 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7363 | rm -f conftest.er1 |
---|
7364 | cat conftest.err >&5 |
---|
7365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7366 | (exit $ac_status); } && |
---|
7367 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7368 | || test ! -s conftest.err' |
---|
7369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7370 | (eval $ac_try) 2>&5 |
---|
7371 | ac_status=$? |
---|
7372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7373 | (exit $ac_status); }; } && |
---|
7374 | { ac_try='test -s conftest.$ac_objext' |
---|
7375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7376 | (eval $ac_try) 2>&5 |
---|
7377 | ac_status=$? |
---|
7378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7379 | (exit $ac_status); }; }; then |
---|
7380 | ac_header_compiler=yes |
---|
7381 | else |
---|
7382 | echo "$as_me: failed program was:" >&5 |
---|
7383 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7384 | |
---|
7385 | ac_header_compiler=no |
---|
7386 | fi |
---|
7387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7388 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7389 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7390 | |
---|
7391 | # Is the header present? |
---|
7392 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7393 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7394 | cat >conftest.$ac_ext <<_ACEOF |
---|
7395 | /* confdefs.h. */ |
---|
7396 | _ACEOF |
---|
7397 | cat confdefs.h >>conftest.$ac_ext |
---|
7398 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7399 | /* end confdefs.h. */ |
---|
7400 | #include <$ac_header> |
---|
7401 | _ACEOF |
---|
7402 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7403 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7404 | ac_status=$? |
---|
7405 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7406 | rm -f conftest.er1 |
---|
7407 | cat conftest.err >&5 |
---|
7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7409 | (exit $ac_status); } >/dev/null; then |
---|
7410 | if test -s conftest.err; then |
---|
7411 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7412 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7413 | else |
---|
7414 | ac_cpp_err= |
---|
7415 | fi |
---|
7416 | else |
---|
7417 | ac_cpp_err=yes |
---|
7418 | fi |
---|
7419 | if test -z "$ac_cpp_err"; then |
---|
7420 | ac_header_preproc=yes |
---|
7421 | else |
---|
7422 | echo "$as_me: failed program was:" >&5 |
---|
7423 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7424 | |
---|
7425 | ac_header_preproc=no |
---|
7426 | fi |
---|
7427 | rm -f conftest.err conftest.$ac_ext |
---|
7428 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7429 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7430 | |
---|
7431 | # So? What about this header? |
---|
7432 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7433 | yes:no: ) |
---|
7434 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7435 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7436 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7437 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7438 | ac_header_preproc=yes |
---|
7439 | ;; |
---|
7440 | no:yes:* ) |
---|
7441 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7442 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7443 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7444 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7445 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7446 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7447 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7448 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7449 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7450 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7451 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7452 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7453 | ( |
---|
7454 | cat <<\_ASBOX |
---|
7455 | ## ---------------------------------------------- ## |
---|
7456 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7457 | ## ---------------------------------------------- ## |
---|
7458 | _ASBOX |
---|
7459 | ) | |
---|
7460 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7461 | ;; |
---|
7462 | esac |
---|
7463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7467 | else |
---|
7468 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7469 | fi |
---|
7470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7471 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7472 | |
---|
7473 | fi |
---|
7474 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7475 | cat >>confdefs.h <<_ACEOF |
---|
7476 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7477 | _ACEOF |
---|
7478 | |
---|
7479 | else |
---|
7480 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
7481 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
7482 | { (exit 1); exit 1; }; } |
---|
7483 | fi |
---|
7484 | |
---|
7485 | done |
---|
7486 | |
---|
7487 | # cheking for GLU-header |
---|
7488 | |
---|
7489 | for ac_header in OpenGL/glu.h |
---|
7490 | do |
---|
7491 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7493 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7495 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7497 | fi |
---|
7498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7500 | else |
---|
7501 | # Is the header compilable? |
---|
7502 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7503 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7504 | cat >conftest.$ac_ext <<_ACEOF |
---|
7505 | /* confdefs.h. */ |
---|
7506 | _ACEOF |
---|
7507 | cat confdefs.h >>conftest.$ac_ext |
---|
7508 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7509 | /* end confdefs.h. */ |
---|
7510 | $ac_includes_default |
---|
7511 | #include <$ac_header> |
---|
7512 | _ACEOF |
---|
7513 | rm -f conftest.$ac_objext |
---|
7514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7515 | (eval $ac_compile) 2>conftest.er1 |
---|
7516 | ac_status=$? |
---|
7517 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7518 | rm -f conftest.er1 |
---|
7519 | cat conftest.err >&5 |
---|
7520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7521 | (exit $ac_status); } && |
---|
7522 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7523 | || test ! -s conftest.err' |
---|
7524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7525 | (eval $ac_try) 2>&5 |
---|
7526 | ac_status=$? |
---|
7527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7528 | (exit $ac_status); }; } && |
---|
7529 | { ac_try='test -s conftest.$ac_objext' |
---|
7530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7531 | (eval $ac_try) 2>&5 |
---|
7532 | ac_status=$? |
---|
7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7534 | (exit $ac_status); }; }; then |
---|
7535 | ac_header_compiler=yes |
---|
7536 | else |
---|
7537 | echo "$as_me: failed program was:" >&5 |
---|
7538 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7539 | |
---|
7540 | ac_header_compiler=no |
---|
7541 | fi |
---|
7542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7543 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7544 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7545 | |
---|
7546 | # Is the header present? |
---|
7547 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7548 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7549 | cat >conftest.$ac_ext <<_ACEOF |
---|
7550 | /* confdefs.h. */ |
---|
7551 | _ACEOF |
---|
7552 | cat confdefs.h >>conftest.$ac_ext |
---|
7553 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7554 | /* end confdefs.h. */ |
---|
7555 | #include <$ac_header> |
---|
7556 | _ACEOF |
---|
7557 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7558 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7559 | ac_status=$? |
---|
7560 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7561 | rm -f conftest.er1 |
---|
7562 | cat conftest.err >&5 |
---|
7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7564 | (exit $ac_status); } >/dev/null; then |
---|
7565 | if test -s conftest.err; then |
---|
7566 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7567 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7568 | else |
---|
7569 | ac_cpp_err= |
---|
7570 | fi |
---|
7571 | else |
---|
7572 | ac_cpp_err=yes |
---|
7573 | fi |
---|
7574 | if test -z "$ac_cpp_err"; then |
---|
7575 | ac_header_preproc=yes |
---|
7576 | else |
---|
7577 | echo "$as_me: failed program was:" >&5 |
---|
7578 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7579 | |
---|
7580 | ac_header_preproc=no |
---|
7581 | fi |
---|
7582 | rm -f conftest.err conftest.$ac_ext |
---|
7583 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7584 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7585 | |
---|
7586 | # So? What about this header? |
---|
7587 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7588 | yes:no: ) |
---|
7589 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7590 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7591 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7592 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7593 | ac_header_preproc=yes |
---|
7594 | ;; |
---|
7595 | no:yes:* ) |
---|
7596 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7597 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7598 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7599 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7600 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7601 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7602 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7603 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7605 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7606 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7607 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7608 | ( |
---|
7609 | cat <<\_ASBOX |
---|
7610 | ## ---------------------------------------------- ## |
---|
7611 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7612 | ## ---------------------------------------------- ## |
---|
7613 | _ASBOX |
---|
7614 | ) | |
---|
7615 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7616 | ;; |
---|
7617 | esac |
---|
7618 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7622 | else |
---|
7623 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7624 | fi |
---|
7625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7626 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7627 | |
---|
7628 | fi |
---|
7629 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7630 | cat >>confdefs.h <<_ACEOF |
---|
7631 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7632 | _ACEOF |
---|
7633 | |
---|
7634 | else |
---|
7635 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
7636 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
7637 | { (exit 1); exit 1; }; } |
---|
7638 | fi |
---|
7639 | |
---|
7640 | done |
---|
7641 | |
---|
7642 | |
---|
7643 | LIBS="$LIBS -framework OpenGL" |
---|
7644 | |
---|
7645 | |
---|
7646 | |
---|
7647 | # checking for GLEW-headers |
---|
7648 | |
---|
7649 | for ac_header in GL/glew.h |
---|
7650 | do |
---|
7651 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7652 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7653 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7657 | fi |
---|
7658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7659 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7660 | else |
---|
7661 | # Is the header compilable? |
---|
7662 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7663 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7664 | cat >conftest.$ac_ext <<_ACEOF |
---|
7665 | /* confdefs.h. */ |
---|
7666 | _ACEOF |
---|
7667 | cat confdefs.h >>conftest.$ac_ext |
---|
7668 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7669 | /* end confdefs.h. */ |
---|
7670 | $ac_includes_default |
---|
7671 | #include <$ac_header> |
---|
7672 | _ACEOF |
---|
7673 | rm -f conftest.$ac_objext |
---|
7674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7675 | (eval $ac_compile) 2>conftest.er1 |
---|
7676 | ac_status=$? |
---|
7677 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7678 | rm -f conftest.er1 |
---|
7679 | cat conftest.err >&5 |
---|
7680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7681 | (exit $ac_status); } && |
---|
7682 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7683 | || test ! -s conftest.err' |
---|
7684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7685 | (eval $ac_try) 2>&5 |
---|
7686 | ac_status=$? |
---|
7687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7688 | (exit $ac_status); }; } && |
---|
7689 | { ac_try='test -s conftest.$ac_objext' |
---|
7690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7691 | (eval $ac_try) 2>&5 |
---|
7692 | ac_status=$? |
---|
7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7694 | (exit $ac_status); }; }; then |
---|
7695 | ac_header_compiler=yes |
---|
7696 | else |
---|
7697 | echo "$as_me: failed program was:" >&5 |
---|
7698 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7699 | |
---|
7700 | ac_header_compiler=no |
---|
7701 | fi |
---|
7702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7703 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7704 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7705 | |
---|
7706 | # Is the header present? |
---|
7707 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7708 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7709 | cat >conftest.$ac_ext <<_ACEOF |
---|
7710 | /* confdefs.h. */ |
---|
7711 | _ACEOF |
---|
7712 | cat confdefs.h >>conftest.$ac_ext |
---|
7713 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7714 | /* end confdefs.h. */ |
---|
7715 | #include <$ac_header> |
---|
7716 | _ACEOF |
---|
7717 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7718 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7719 | ac_status=$? |
---|
7720 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7721 | rm -f conftest.er1 |
---|
7722 | cat conftest.err >&5 |
---|
7723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7724 | (exit $ac_status); } >/dev/null; then |
---|
7725 | if test -s conftest.err; then |
---|
7726 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7727 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7728 | else |
---|
7729 | ac_cpp_err= |
---|
7730 | fi |
---|
7731 | else |
---|
7732 | ac_cpp_err=yes |
---|
7733 | fi |
---|
7734 | if test -z "$ac_cpp_err"; then |
---|
7735 | ac_header_preproc=yes |
---|
7736 | else |
---|
7737 | echo "$as_me: failed program was:" >&5 |
---|
7738 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7739 | |
---|
7740 | ac_header_preproc=no |
---|
7741 | fi |
---|
7742 | rm -f conftest.err conftest.$ac_ext |
---|
7743 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7744 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7745 | |
---|
7746 | # So? What about this header? |
---|
7747 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7748 | yes:no: ) |
---|
7749 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7750 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7751 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7752 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7753 | ac_header_preproc=yes |
---|
7754 | ;; |
---|
7755 | no:yes:* ) |
---|
7756 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7757 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7758 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7759 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7760 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7761 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7762 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7763 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7764 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7765 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7766 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7767 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7768 | ( |
---|
7769 | cat <<\_ASBOX |
---|
7770 | ## ---------------------------------------------- ## |
---|
7771 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7772 | ## ---------------------------------------------- ## |
---|
7773 | _ASBOX |
---|
7774 | ) | |
---|
7775 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7776 | ;; |
---|
7777 | esac |
---|
7778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7782 | else |
---|
7783 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7784 | fi |
---|
7785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7786 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7787 | |
---|
7788 | fi |
---|
7789 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7790 | cat >>confdefs.h <<_ACEOF |
---|
7791 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7792 | _ACEOF |
---|
7793 | |
---|
7794 | else |
---|
7795 | { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 |
---|
7796 | echo "$as_me: error: cannot find glew headers" >&2;} |
---|
7797 | { (exit 1); exit 1; }; } |
---|
7798 | fi |
---|
7799 | |
---|
7800 | done |
---|
7801 | |
---|
7802 | # checking for GLEW-lib |
---|
7803 | echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 |
---|
7804 | echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 |
---|
7805 | if test "${ac_cv_lib_GLEW_main+set}" = set; then |
---|
7806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7807 | else |
---|
7808 | ac_check_lib_save_LIBS=$LIBS |
---|
7809 | LIBS="-lGLEW $LIBS" |
---|
7810 | cat >conftest.$ac_ext <<_ACEOF |
---|
7811 | /* confdefs.h. */ |
---|
7812 | _ACEOF |
---|
7813 | cat confdefs.h >>conftest.$ac_ext |
---|
7814 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7815 | /* end confdefs.h. */ |
---|
7816 | |
---|
7817 | |
---|
7818 | int |
---|
7819 | main () |
---|
7820 | { |
---|
7821 | main (); |
---|
7822 | ; |
---|
7823 | return 0; |
---|
7824 | } |
---|
7825 | _ACEOF |
---|
7826 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7828 | (eval $ac_link) 2>conftest.er1 |
---|
7829 | ac_status=$? |
---|
7830 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7831 | rm -f conftest.er1 |
---|
7832 | cat conftest.err >&5 |
---|
7833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7834 | (exit $ac_status); } && |
---|
7835 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7836 | || test ! -s conftest.err' |
---|
7837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7838 | (eval $ac_try) 2>&5 |
---|
7839 | ac_status=$? |
---|
7840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7841 | (exit $ac_status); }; } && |
---|
7842 | { ac_try='test -s conftest$ac_exeext' |
---|
7843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7844 | (eval $ac_try) 2>&5 |
---|
7845 | ac_status=$? |
---|
7846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7847 | (exit $ac_status); }; }; then |
---|
7848 | ac_cv_lib_GLEW_main=yes |
---|
7849 | else |
---|
7850 | echo "$as_me: failed program was:" >&5 |
---|
7851 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7852 | |
---|
7853 | ac_cv_lib_GLEW_main=no |
---|
7854 | fi |
---|
7855 | rm -f conftest.err conftest.$ac_objext \ |
---|
7856 | conftest$ac_exeext conftest.$ac_ext |
---|
7857 | LIBS=$ac_check_lib_save_LIBS |
---|
7858 | fi |
---|
7859 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 |
---|
7860 | echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 |
---|
7861 | if test $ac_cv_lib_GLEW_main = yes; then |
---|
7862 | FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" |
---|
7863 | fi |
---|
7864 | |
---|
7865 | if test x$FOUND_GLEW != xyes ; then |
---|
7866 | echo "------------------" |
---|
7867 | echo "glew not found." |
---|
7868 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
7869 | echo "------------------" |
---|
7870 | exit -1 |
---|
7871 | fi |
---|
7872 | |
---|
7873 | |
---|
7874 | |
---|
7875 | for ac_header in OpenAL/al.h |
---|
7876 | do |
---|
7877 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7878 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7879 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7883 | fi |
---|
7884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7885 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7886 | else |
---|
7887 | # Is the header compilable? |
---|
7888 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7889 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7890 | cat >conftest.$ac_ext <<_ACEOF |
---|
7891 | /* confdefs.h. */ |
---|
7892 | _ACEOF |
---|
7893 | cat confdefs.h >>conftest.$ac_ext |
---|
7894 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7895 | /* end confdefs.h. */ |
---|
7896 | $ac_includes_default |
---|
7897 | #include <$ac_header> |
---|
7898 | _ACEOF |
---|
7899 | rm -f conftest.$ac_objext |
---|
7900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7901 | (eval $ac_compile) 2>conftest.er1 |
---|
7902 | ac_status=$? |
---|
7903 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7904 | rm -f conftest.er1 |
---|
7905 | cat conftest.err >&5 |
---|
7906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7907 | (exit $ac_status); } && |
---|
7908 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7909 | || test ! -s conftest.err' |
---|
7910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7911 | (eval $ac_try) 2>&5 |
---|
7912 | ac_status=$? |
---|
7913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7914 | (exit $ac_status); }; } && |
---|
7915 | { ac_try='test -s conftest.$ac_objext' |
---|
7916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7917 | (eval $ac_try) 2>&5 |
---|
7918 | ac_status=$? |
---|
7919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7920 | (exit $ac_status); }; }; then |
---|
7921 | ac_header_compiler=yes |
---|
7922 | else |
---|
7923 | echo "$as_me: failed program was:" >&5 |
---|
7924 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7925 | |
---|
7926 | ac_header_compiler=no |
---|
7927 | fi |
---|
7928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7929 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7930 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7931 | |
---|
7932 | # Is the header present? |
---|
7933 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7934 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7935 | cat >conftest.$ac_ext <<_ACEOF |
---|
7936 | /* confdefs.h. */ |
---|
7937 | _ACEOF |
---|
7938 | cat confdefs.h >>conftest.$ac_ext |
---|
7939 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7940 | /* end confdefs.h. */ |
---|
7941 | #include <$ac_header> |
---|
7942 | _ACEOF |
---|
7943 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7944 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7945 | ac_status=$? |
---|
7946 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7947 | rm -f conftest.er1 |
---|
7948 | cat conftest.err >&5 |
---|
7949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7950 | (exit $ac_status); } >/dev/null; then |
---|
7951 | if test -s conftest.err; then |
---|
7952 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7953 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7954 | else |
---|
7955 | ac_cpp_err= |
---|
7956 | fi |
---|
7957 | else |
---|
7958 | ac_cpp_err=yes |
---|
7959 | fi |
---|
7960 | if test -z "$ac_cpp_err"; then |
---|
7961 | ac_header_preproc=yes |
---|
7962 | else |
---|
7963 | echo "$as_me: failed program was:" >&5 |
---|
7964 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7965 | |
---|
7966 | ac_header_preproc=no |
---|
7967 | fi |
---|
7968 | rm -f conftest.err conftest.$ac_ext |
---|
7969 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7970 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7971 | |
---|
7972 | # So? What about this header? |
---|
7973 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7974 | yes:no: ) |
---|
7975 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7976 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7977 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7978 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7979 | ac_header_preproc=yes |
---|
7980 | ;; |
---|
7981 | no:yes:* ) |
---|
7982 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7983 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7984 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7985 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7986 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7987 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7988 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7989 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7990 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7991 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7992 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7993 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7994 | ( |
---|
7995 | cat <<\_ASBOX |
---|
7996 | ## ---------------------------------------------- ## |
---|
7997 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7998 | ## ---------------------------------------------- ## |
---|
7999 | _ASBOX |
---|
8000 | ) | |
---|
8001 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8002 | ;; |
---|
8003 | esac |
---|
8004 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8005 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8006 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8008 | else |
---|
8009 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8010 | fi |
---|
8011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8012 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8013 | |
---|
8014 | fi |
---|
8015 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8016 | cat >>confdefs.h <<_ACEOF |
---|
8017 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8018 | _ACEOF |
---|
8019 | |
---|
8020 | else |
---|
8021 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
8022 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
8023 | { (exit 1); exit 1; }; } |
---|
8024 | fi |
---|
8025 | |
---|
8026 | done |
---|
8027 | |
---|
8028 | HAVE_OPENAL=yes |
---|
8029 | LIBS="$LIBS -framework OpenAL" |
---|
8030 | |
---|
8031 | |
---|
8032 | ## SDL-check |
---|
8033 | SDL_CFLAGS=`sdl-config --cflags` |
---|
8034 | SDL_LIBS=`sdl-config --libs` |
---|
8035 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
8036 | LIBS="$LIBS $SDL_LIBS" |
---|
8037 | |
---|
8038 | for ac_header in SDL/SDL.h |
---|
8039 | do |
---|
8040 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8042 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8043 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8044 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8046 | fi |
---|
8047 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8048 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8049 | else |
---|
8050 | # Is the header compilable? |
---|
8051 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8052 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8053 | cat >conftest.$ac_ext <<_ACEOF |
---|
8054 | /* confdefs.h. */ |
---|
8055 | _ACEOF |
---|
8056 | cat confdefs.h >>conftest.$ac_ext |
---|
8057 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8058 | /* end confdefs.h. */ |
---|
8059 | $ac_includes_default |
---|
8060 | #include <$ac_header> |
---|
8061 | _ACEOF |
---|
8062 | rm -f conftest.$ac_objext |
---|
8063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8064 | (eval $ac_compile) 2>conftest.er1 |
---|
8065 | ac_status=$? |
---|
8066 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8067 | rm -f conftest.er1 |
---|
8068 | cat conftest.err >&5 |
---|
8069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8070 | (exit $ac_status); } && |
---|
8071 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8072 | || test ! -s conftest.err' |
---|
8073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8074 | (eval $ac_try) 2>&5 |
---|
8075 | ac_status=$? |
---|
8076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8077 | (exit $ac_status); }; } && |
---|
8078 | { ac_try='test -s conftest.$ac_objext' |
---|
8079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8080 | (eval $ac_try) 2>&5 |
---|
8081 | ac_status=$? |
---|
8082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8083 | (exit $ac_status); }; }; then |
---|
8084 | ac_header_compiler=yes |
---|
8085 | else |
---|
8086 | echo "$as_me: failed program was:" >&5 |
---|
8087 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8088 | |
---|
8089 | ac_header_compiler=no |
---|
8090 | fi |
---|
8091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8092 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8093 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8094 | |
---|
8095 | # Is the header present? |
---|
8096 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8097 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8098 | cat >conftest.$ac_ext <<_ACEOF |
---|
8099 | /* confdefs.h. */ |
---|
8100 | _ACEOF |
---|
8101 | cat confdefs.h >>conftest.$ac_ext |
---|
8102 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8103 | /* end confdefs.h. */ |
---|
8104 | #include <$ac_header> |
---|
8105 | _ACEOF |
---|
8106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8108 | ac_status=$? |
---|
8109 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8110 | rm -f conftest.er1 |
---|
8111 | cat conftest.err >&5 |
---|
8112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8113 | (exit $ac_status); } >/dev/null; then |
---|
8114 | if test -s conftest.err; then |
---|
8115 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8116 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8117 | else |
---|
8118 | ac_cpp_err= |
---|
8119 | fi |
---|
8120 | else |
---|
8121 | ac_cpp_err=yes |
---|
8122 | fi |
---|
8123 | if test -z "$ac_cpp_err"; then |
---|
8124 | ac_header_preproc=yes |
---|
8125 | else |
---|
8126 | echo "$as_me: failed program was:" >&5 |
---|
8127 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8128 | |
---|
8129 | ac_header_preproc=no |
---|
8130 | fi |
---|
8131 | rm -f conftest.err conftest.$ac_ext |
---|
8132 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8133 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8134 | |
---|
8135 | # So? What about this header? |
---|
8136 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8137 | yes:no: ) |
---|
8138 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8139 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8141 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8142 | ac_header_preproc=yes |
---|
8143 | ;; |
---|
8144 | no:yes:* ) |
---|
8145 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8146 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8147 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8148 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8149 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8150 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8151 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8152 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8154 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8155 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8156 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8157 | ( |
---|
8158 | cat <<\_ASBOX |
---|
8159 | ## ---------------------------------------------- ## |
---|
8160 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8161 | ## ---------------------------------------------- ## |
---|
8162 | _ASBOX |
---|
8163 | ) | |
---|
8164 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8165 | ;; |
---|
8166 | esac |
---|
8167 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8168 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8171 | else |
---|
8172 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8173 | fi |
---|
8174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8176 | |
---|
8177 | fi |
---|
8178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8179 | cat >>confdefs.h <<_ACEOF |
---|
8180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8181 | _ACEOF |
---|
8182 | |
---|
8183 | else |
---|
8184 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
8185 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
8186 | { (exit 1); exit 1; }; } |
---|
8187 | fi |
---|
8188 | |
---|
8189 | done |
---|
8190 | |
---|
8191 | HAVE_SDL=yes |
---|
8192 | # LIBS="$LIBS -framework SDL" |
---|
8193 | |
---|
8194 | # checking for SDL-headers |
---|
8195 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
8196 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
8197 | |
---|
8198 | ## checking for SDL |
---|
8199 | # SDL_VERSION=1.2.7 |
---|
8200 | # AM_PATH_SDL($SDL_VERSION, |
---|
8201 | # :, |
---|
8202 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
8203 | # ) |
---|
8204 | |
---|
8205 | |
---|
8206 | ;; |
---|
8207 | |
---|
8208 | *) |
---|
8209 | ;; |
---|
8210 | esac |
---|
8211 | |
---|
8212 | |
---|
8213 | |
---|
8214 | ################################### |
---|
8215 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
8216 | ################################### |
---|
8217 | |
---|
8218 | #---------# |
---|
8219 | # SDL_ttf # |
---|
8220 | #---------# |
---|
8221 | # checking for SDL_ttf-headers |
---|
8222 | |
---|
8223 | for ac_header in SDL_ttf.h |
---|
8224 | do |
---|
8225 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8227 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8231 | fi |
---|
8232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8233 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8234 | else |
---|
8235 | # Is the header compilable? |
---|
8236 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8237 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8238 | cat >conftest.$ac_ext <<_ACEOF |
---|
8239 | /* confdefs.h. */ |
---|
8240 | _ACEOF |
---|
8241 | cat confdefs.h >>conftest.$ac_ext |
---|
8242 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8243 | /* end confdefs.h. */ |
---|
8244 | $ac_includes_default |
---|
8245 | #include <$ac_header> |
---|
8246 | _ACEOF |
---|
8247 | rm -f conftest.$ac_objext |
---|
8248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8249 | (eval $ac_compile) 2>conftest.er1 |
---|
8250 | ac_status=$? |
---|
8251 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8252 | rm -f conftest.er1 |
---|
8253 | cat conftest.err >&5 |
---|
8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8255 | (exit $ac_status); } && |
---|
8256 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8257 | || test ! -s conftest.err' |
---|
8258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8259 | (eval $ac_try) 2>&5 |
---|
8260 | ac_status=$? |
---|
8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8262 | (exit $ac_status); }; } && |
---|
8263 | { ac_try='test -s conftest.$ac_objext' |
---|
8264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8265 | (eval $ac_try) 2>&5 |
---|
8266 | ac_status=$? |
---|
8267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8268 | (exit $ac_status); }; }; then |
---|
8269 | ac_header_compiler=yes |
---|
8270 | else |
---|
8271 | echo "$as_me: failed program was:" >&5 |
---|
8272 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8273 | |
---|
8274 | ac_header_compiler=no |
---|
8275 | fi |
---|
8276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8277 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8278 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8279 | |
---|
8280 | # Is the header present? |
---|
8281 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8282 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8283 | cat >conftest.$ac_ext <<_ACEOF |
---|
8284 | /* confdefs.h. */ |
---|
8285 | _ACEOF |
---|
8286 | cat confdefs.h >>conftest.$ac_ext |
---|
8287 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8288 | /* end confdefs.h. */ |
---|
8289 | #include <$ac_header> |
---|
8290 | _ACEOF |
---|
8291 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8292 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8293 | ac_status=$? |
---|
8294 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8295 | rm -f conftest.er1 |
---|
8296 | cat conftest.err >&5 |
---|
8297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8298 | (exit $ac_status); } >/dev/null; then |
---|
8299 | if test -s conftest.err; then |
---|
8300 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8301 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8302 | else |
---|
8303 | ac_cpp_err= |
---|
8304 | fi |
---|
8305 | else |
---|
8306 | ac_cpp_err=yes |
---|
8307 | fi |
---|
8308 | if test -z "$ac_cpp_err"; then |
---|
8309 | ac_header_preproc=yes |
---|
8310 | else |
---|
8311 | echo "$as_me: failed program was:" >&5 |
---|
8312 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8313 | |
---|
8314 | ac_header_preproc=no |
---|
8315 | fi |
---|
8316 | rm -f conftest.err conftest.$ac_ext |
---|
8317 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8318 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8319 | |
---|
8320 | # So? What about this header? |
---|
8321 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8322 | yes:no: ) |
---|
8323 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8324 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8325 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8326 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8327 | ac_header_preproc=yes |
---|
8328 | ;; |
---|
8329 | no:yes:* ) |
---|
8330 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8331 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8332 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8333 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8334 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8335 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8336 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8337 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8339 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8340 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8341 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8342 | ( |
---|
8343 | cat <<\_ASBOX |
---|
8344 | ## ---------------------------------------------- ## |
---|
8345 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8346 | ## ---------------------------------------------- ## |
---|
8347 | _ASBOX |
---|
8348 | ) | |
---|
8349 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8350 | ;; |
---|
8351 | esac |
---|
8352 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8353 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8354 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8356 | else |
---|
8357 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8358 | fi |
---|
8359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8361 | |
---|
8362 | fi |
---|
8363 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8364 | cat >>confdefs.h <<_ACEOF |
---|
8365 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8366 | _ACEOF |
---|
8367 | |
---|
8368 | else |
---|
8369 | |
---|
8370 | for ac_header in SDL/SDL_ttf.h |
---|
8371 | do |
---|
8372 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8373 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8374 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8376 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8378 | fi |
---|
8379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8380 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8381 | else |
---|
8382 | # Is the header compilable? |
---|
8383 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8384 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8385 | cat >conftest.$ac_ext <<_ACEOF |
---|
8386 | /* confdefs.h. */ |
---|
8387 | _ACEOF |
---|
8388 | cat confdefs.h >>conftest.$ac_ext |
---|
8389 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8390 | /* end confdefs.h. */ |
---|
8391 | $ac_includes_default |
---|
8392 | #include <$ac_header> |
---|
8393 | _ACEOF |
---|
8394 | rm -f conftest.$ac_objext |
---|
8395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8396 | (eval $ac_compile) 2>conftest.er1 |
---|
8397 | ac_status=$? |
---|
8398 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8399 | rm -f conftest.er1 |
---|
8400 | cat conftest.err >&5 |
---|
8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8402 | (exit $ac_status); } && |
---|
8403 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8404 | || test ! -s conftest.err' |
---|
8405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8406 | (eval $ac_try) 2>&5 |
---|
8407 | ac_status=$? |
---|
8408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8409 | (exit $ac_status); }; } && |
---|
8410 | { ac_try='test -s conftest.$ac_objext' |
---|
8411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8412 | (eval $ac_try) 2>&5 |
---|
8413 | ac_status=$? |
---|
8414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8415 | (exit $ac_status); }; }; then |
---|
8416 | ac_header_compiler=yes |
---|
8417 | else |
---|
8418 | echo "$as_me: failed program was:" >&5 |
---|
8419 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8420 | |
---|
8421 | ac_header_compiler=no |
---|
8422 | fi |
---|
8423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8424 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8425 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8426 | |
---|
8427 | # Is the header present? |
---|
8428 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8429 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8430 | cat >conftest.$ac_ext <<_ACEOF |
---|
8431 | /* confdefs.h. */ |
---|
8432 | _ACEOF |
---|
8433 | cat confdefs.h >>conftest.$ac_ext |
---|
8434 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8435 | /* end confdefs.h. */ |
---|
8436 | #include <$ac_header> |
---|
8437 | _ACEOF |
---|
8438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8440 | ac_status=$? |
---|
8441 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8442 | rm -f conftest.er1 |
---|
8443 | cat conftest.err >&5 |
---|
8444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8445 | (exit $ac_status); } >/dev/null; then |
---|
8446 | if test -s conftest.err; then |
---|
8447 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8448 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8449 | else |
---|
8450 | ac_cpp_err= |
---|
8451 | fi |
---|
8452 | else |
---|
8453 | ac_cpp_err=yes |
---|
8454 | fi |
---|
8455 | if test -z "$ac_cpp_err"; then |
---|
8456 | ac_header_preproc=yes |
---|
8457 | else |
---|
8458 | echo "$as_me: failed program was:" >&5 |
---|
8459 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8460 | |
---|
8461 | ac_header_preproc=no |
---|
8462 | fi |
---|
8463 | rm -f conftest.err conftest.$ac_ext |
---|
8464 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8465 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8466 | |
---|
8467 | # So? What about this header? |
---|
8468 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8469 | yes:no: ) |
---|
8470 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8471 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8472 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8473 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8474 | ac_header_preproc=yes |
---|
8475 | ;; |
---|
8476 | no:yes:* ) |
---|
8477 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8478 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8479 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8480 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8481 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8482 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8483 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8484 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8485 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8486 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8487 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8488 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8489 | ( |
---|
8490 | cat <<\_ASBOX |
---|
8491 | ## ---------------------------------------------- ## |
---|
8492 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8493 | ## ---------------------------------------------- ## |
---|
8494 | _ASBOX |
---|
8495 | ) | |
---|
8496 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8497 | ;; |
---|
8498 | esac |
---|
8499 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8500 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8501 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8503 | else |
---|
8504 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8505 | fi |
---|
8506 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8507 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8508 | |
---|
8509 | fi |
---|
8510 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8511 | cat >>confdefs.h <<_ACEOF |
---|
8512 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8513 | _ACEOF |
---|
8514 | |
---|
8515 | else |
---|
8516 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
8517 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
8518 | { (exit 1); exit 1; }; } |
---|
8519 | fi |
---|
8520 | |
---|
8521 | done |
---|
8522 | |
---|
8523 | fi |
---|
8524 | |
---|
8525 | done |
---|
8526 | |
---|
8527 | # checking for SDL_ttf-lib |
---|
8528 | echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 |
---|
8529 | echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 |
---|
8530 | if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then |
---|
8531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8532 | else |
---|
8533 | ac_check_lib_save_LIBS=$LIBS |
---|
8534 | LIBS="-lSDL_ttf $LIBS" |
---|
8535 | cat >conftest.$ac_ext <<_ACEOF |
---|
8536 | /* confdefs.h. */ |
---|
8537 | _ACEOF |
---|
8538 | cat confdefs.h >>conftest.$ac_ext |
---|
8539 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8540 | /* end confdefs.h. */ |
---|
8541 | |
---|
8542 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8543 | #ifdef __cplusplus |
---|
8544 | extern "C" |
---|
8545 | #endif |
---|
8546 | /* We use char because int might match the return type of a gcc2 |
---|
8547 | builtin and then its argument prototype would still apply. */ |
---|
8548 | char TTF_OpenFont (); |
---|
8549 | int |
---|
8550 | main () |
---|
8551 | { |
---|
8552 | TTF_OpenFont (); |
---|
8553 | ; |
---|
8554 | return 0; |
---|
8555 | } |
---|
8556 | _ACEOF |
---|
8557 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8559 | (eval $ac_link) 2>conftest.er1 |
---|
8560 | ac_status=$? |
---|
8561 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8562 | rm -f conftest.er1 |
---|
8563 | cat conftest.err >&5 |
---|
8564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8565 | (exit $ac_status); } && |
---|
8566 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8567 | || test ! -s conftest.err' |
---|
8568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8569 | (eval $ac_try) 2>&5 |
---|
8570 | ac_status=$? |
---|
8571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8572 | (exit $ac_status); }; } && |
---|
8573 | { ac_try='test -s conftest$ac_exeext' |
---|
8574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8575 | (eval $ac_try) 2>&5 |
---|
8576 | ac_status=$? |
---|
8577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8578 | (exit $ac_status); }; }; then |
---|
8579 | ac_cv_lib_SDL_ttf_TTF_OpenFont=yes |
---|
8580 | else |
---|
8581 | echo "$as_me: failed program was:" >&5 |
---|
8582 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8583 | |
---|
8584 | ac_cv_lib_SDL_ttf_TTF_OpenFont=no |
---|
8585 | fi |
---|
8586 | rm -f conftest.err conftest.$ac_objext \ |
---|
8587 | conftest$ac_exeext conftest.$ac_ext |
---|
8588 | LIBS=$ac_check_lib_save_LIBS |
---|
8589 | fi |
---|
8590 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 |
---|
8591 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 |
---|
8592 | if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then |
---|
8593 | FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf" |
---|
8594 | fi |
---|
8595 | |
---|
8596 | if test x$FOUND_SDL_ttf != xyes ; then |
---|
8597 | echo "------------------" |
---|
8598 | echo "SDL_ttf library not found." |
---|
8599 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
8600 | echo "------------------" |
---|
8601 | exit -1 |
---|
8602 | fi |
---|
8603 | |
---|
8604 | #-----------# |
---|
8605 | # SDL_Image # |
---|
8606 | #-----------# |
---|
8607 | # checking for SDL_image-headers |
---|
8608 | |
---|
8609 | for ac_header in SDL_image.h |
---|
8610 | do |
---|
8611 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8613 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8617 | fi |
---|
8618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8619 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8620 | else |
---|
8621 | # Is the header compilable? |
---|
8622 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8623 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8624 | cat >conftest.$ac_ext <<_ACEOF |
---|
8625 | /* confdefs.h. */ |
---|
8626 | _ACEOF |
---|
8627 | cat confdefs.h >>conftest.$ac_ext |
---|
8628 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8629 | /* end confdefs.h. */ |
---|
8630 | $ac_includes_default |
---|
8631 | #include <$ac_header> |
---|
8632 | _ACEOF |
---|
8633 | rm -f conftest.$ac_objext |
---|
8634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8635 | (eval $ac_compile) 2>conftest.er1 |
---|
8636 | ac_status=$? |
---|
8637 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8638 | rm -f conftest.er1 |
---|
8639 | cat conftest.err >&5 |
---|
8640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8641 | (exit $ac_status); } && |
---|
8642 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8643 | || test ! -s conftest.err' |
---|
8644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8645 | (eval $ac_try) 2>&5 |
---|
8646 | ac_status=$? |
---|
8647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8648 | (exit $ac_status); }; } && |
---|
8649 | { ac_try='test -s conftest.$ac_objext' |
---|
8650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8651 | (eval $ac_try) 2>&5 |
---|
8652 | ac_status=$? |
---|
8653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8654 | (exit $ac_status); }; }; then |
---|
8655 | ac_header_compiler=yes |
---|
8656 | else |
---|
8657 | echo "$as_me: failed program was:" >&5 |
---|
8658 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8659 | |
---|
8660 | ac_header_compiler=no |
---|
8661 | fi |
---|
8662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8663 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8664 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8665 | |
---|
8666 | # Is the header present? |
---|
8667 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8668 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8669 | cat >conftest.$ac_ext <<_ACEOF |
---|
8670 | /* confdefs.h. */ |
---|
8671 | _ACEOF |
---|
8672 | cat confdefs.h >>conftest.$ac_ext |
---|
8673 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8674 | /* end confdefs.h. */ |
---|
8675 | #include <$ac_header> |
---|
8676 | _ACEOF |
---|
8677 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8678 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8679 | ac_status=$? |
---|
8680 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8681 | rm -f conftest.er1 |
---|
8682 | cat conftest.err >&5 |
---|
8683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8684 | (exit $ac_status); } >/dev/null; then |
---|
8685 | if test -s conftest.err; then |
---|
8686 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8687 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8688 | else |
---|
8689 | ac_cpp_err= |
---|
8690 | fi |
---|
8691 | else |
---|
8692 | ac_cpp_err=yes |
---|
8693 | fi |
---|
8694 | if test -z "$ac_cpp_err"; then |
---|
8695 | ac_header_preproc=yes |
---|
8696 | else |
---|
8697 | echo "$as_me: failed program was:" >&5 |
---|
8698 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8699 | |
---|
8700 | ac_header_preproc=no |
---|
8701 | fi |
---|
8702 | rm -f conftest.err conftest.$ac_ext |
---|
8703 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8704 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8705 | |
---|
8706 | # So? What about this header? |
---|
8707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8708 | yes:no: ) |
---|
8709 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8710 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8712 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8713 | ac_header_preproc=yes |
---|
8714 | ;; |
---|
8715 | no:yes:* ) |
---|
8716 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8717 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8718 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8719 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8720 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8721 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8722 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8723 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8725 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8726 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8727 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8728 | ( |
---|
8729 | cat <<\_ASBOX |
---|
8730 | ## ---------------------------------------------- ## |
---|
8731 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8732 | ## ---------------------------------------------- ## |
---|
8733 | _ASBOX |
---|
8734 | ) | |
---|
8735 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8736 | ;; |
---|
8737 | esac |
---|
8738 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8740 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8742 | else |
---|
8743 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8744 | fi |
---|
8745 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8746 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8747 | |
---|
8748 | fi |
---|
8749 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8750 | cat >>confdefs.h <<_ACEOF |
---|
8751 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8752 | _ACEOF |
---|
8753 | |
---|
8754 | else |
---|
8755 | |
---|
8756 | for ac_header in SDL/SDL_image.h |
---|
8757 | do |
---|
8758 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8764 | fi |
---|
8765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8767 | else |
---|
8768 | # Is the header compilable? |
---|
8769 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8770 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8771 | cat >conftest.$ac_ext <<_ACEOF |
---|
8772 | /* confdefs.h. */ |
---|
8773 | _ACEOF |
---|
8774 | cat confdefs.h >>conftest.$ac_ext |
---|
8775 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8776 | /* end confdefs.h. */ |
---|
8777 | $ac_includes_default |
---|
8778 | #include <$ac_header> |
---|
8779 | _ACEOF |
---|
8780 | rm -f conftest.$ac_objext |
---|
8781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8782 | (eval $ac_compile) 2>conftest.er1 |
---|
8783 | ac_status=$? |
---|
8784 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8785 | rm -f conftest.er1 |
---|
8786 | cat conftest.err >&5 |
---|
8787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8788 | (exit $ac_status); } && |
---|
8789 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8790 | || test ! -s conftest.err' |
---|
8791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8792 | (eval $ac_try) 2>&5 |
---|
8793 | ac_status=$? |
---|
8794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8795 | (exit $ac_status); }; } && |
---|
8796 | { ac_try='test -s conftest.$ac_objext' |
---|
8797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8798 | (eval $ac_try) 2>&5 |
---|
8799 | ac_status=$? |
---|
8800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8801 | (exit $ac_status); }; }; then |
---|
8802 | ac_header_compiler=yes |
---|
8803 | else |
---|
8804 | echo "$as_me: failed program was:" >&5 |
---|
8805 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8806 | |
---|
8807 | ac_header_compiler=no |
---|
8808 | fi |
---|
8809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8810 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8811 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8812 | |
---|
8813 | # Is the header present? |
---|
8814 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8815 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8816 | cat >conftest.$ac_ext <<_ACEOF |
---|
8817 | /* confdefs.h. */ |
---|
8818 | _ACEOF |
---|
8819 | cat confdefs.h >>conftest.$ac_ext |
---|
8820 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8821 | /* end confdefs.h. */ |
---|
8822 | #include <$ac_header> |
---|
8823 | _ACEOF |
---|
8824 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8825 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8826 | ac_status=$? |
---|
8827 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8828 | rm -f conftest.er1 |
---|
8829 | cat conftest.err >&5 |
---|
8830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8831 | (exit $ac_status); } >/dev/null; then |
---|
8832 | if test -s conftest.err; then |
---|
8833 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8834 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8835 | else |
---|
8836 | ac_cpp_err= |
---|
8837 | fi |
---|
8838 | else |
---|
8839 | ac_cpp_err=yes |
---|
8840 | fi |
---|
8841 | if test -z "$ac_cpp_err"; then |
---|
8842 | ac_header_preproc=yes |
---|
8843 | else |
---|
8844 | echo "$as_me: failed program was:" >&5 |
---|
8845 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8846 | |
---|
8847 | ac_header_preproc=no |
---|
8848 | fi |
---|
8849 | rm -f conftest.err conftest.$ac_ext |
---|
8850 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8851 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8852 | |
---|
8853 | # So? What about this header? |
---|
8854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8855 | yes:no: ) |
---|
8856 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8857 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8859 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8860 | ac_header_preproc=yes |
---|
8861 | ;; |
---|
8862 | no:yes:* ) |
---|
8863 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8864 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8865 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8866 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8867 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8868 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8869 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8870 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8872 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8873 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8874 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8875 | ( |
---|
8876 | cat <<\_ASBOX |
---|
8877 | ## ---------------------------------------------- ## |
---|
8878 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8879 | ## ---------------------------------------------- ## |
---|
8880 | _ASBOX |
---|
8881 | ) | |
---|
8882 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8883 | ;; |
---|
8884 | esac |
---|
8885 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8887 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8889 | else |
---|
8890 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8891 | fi |
---|
8892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8894 | |
---|
8895 | fi |
---|
8896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8897 | cat >>confdefs.h <<_ACEOF |
---|
8898 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8899 | _ACEOF |
---|
8900 | |
---|
8901 | else |
---|
8902 | { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 |
---|
8903 | echo "$as_me: error: SDL_image header not found." >&2;} |
---|
8904 | { (exit 1); exit 1; }; } |
---|
8905 | fi |
---|
8906 | |
---|
8907 | done |
---|
8908 | |
---|
8909 | fi |
---|
8910 | |
---|
8911 | done |
---|
8912 | |
---|
8913 | # checking for SDL_image-lib |
---|
8914 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
8915 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
8916 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
8917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8918 | else |
---|
8919 | ac_check_lib_save_LIBS=$LIBS |
---|
8920 | LIBS="-lSDL_image $LIBS" |
---|
8921 | cat >conftest.$ac_ext <<_ACEOF |
---|
8922 | /* confdefs.h. */ |
---|
8923 | _ACEOF |
---|
8924 | cat confdefs.h >>conftest.$ac_ext |
---|
8925 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8926 | /* end confdefs.h. */ |
---|
8927 | |
---|
8928 | |
---|
8929 | int |
---|
8930 | main () |
---|
8931 | { |
---|
8932 | main (); |
---|
8933 | ; |
---|
8934 | return 0; |
---|
8935 | } |
---|
8936 | _ACEOF |
---|
8937 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8939 | (eval $ac_link) 2>conftest.er1 |
---|
8940 | ac_status=$? |
---|
8941 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8942 | rm -f conftest.er1 |
---|
8943 | cat conftest.err >&5 |
---|
8944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8945 | (exit $ac_status); } && |
---|
8946 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8947 | || test ! -s conftest.err' |
---|
8948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8949 | (eval $ac_try) 2>&5 |
---|
8950 | ac_status=$? |
---|
8951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8952 | (exit $ac_status); }; } && |
---|
8953 | { ac_try='test -s conftest$ac_exeext' |
---|
8954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8955 | (eval $ac_try) 2>&5 |
---|
8956 | ac_status=$? |
---|
8957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8958 | (exit $ac_status); }; }; then |
---|
8959 | ac_cv_lib_SDL_image_main=yes |
---|
8960 | else |
---|
8961 | echo "$as_me: failed program was:" >&5 |
---|
8962 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8963 | |
---|
8964 | ac_cv_lib_SDL_image_main=no |
---|
8965 | fi |
---|
8966 | rm -f conftest.err conftest.$ac_objext \ |
---|
8967 | conftest$ac_exeext conftest.$ac_ext |
---|
8968 | LIBS=$ac_check_lib_save_LIBS |
---|
8969 | fi |
---|
8970 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
8971 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
8972 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
8973 | FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image" |
---|
8974 | fi |
---|
8975 | |
---|
8976 | if test x$FOUND_SDL_image != xyes ; then |
---|
8977 | echo "------------------" |
---|
8978 | echo "SDL_image library not found." |
---|
8979 | echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/" |
---|
8980 | echo "------------------" |
---|
8981 | exit -1 |
---|
8982 | fi |
---|
8983 | |
---|
8984 | #-----# |
---|
8985 | # ogg # |
---|
8986 | #-----# |
---|
8987 | # checking for ogg-headers |
---|
8988 | |
---|
8989 | for ac_header in ogg/ogg.h |
---|
8990 | do |
---|
8991 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8993 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8994 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8997 | fi |
---|
8998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9000 | else |
---|
9001 | # Is the header compilable? |
---|
9002 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9003 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9004 | cat >conftest.$ac_ext <<_ACEOF |
---|
9005 | /* confdefs.h. */ |
---|
9006 | _ACEOF |
---|
9007 | cat confdefs.h >>conftest.$ac_ext |
---|
9008 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9009 | /* end confdefs.h. */ |
---|
9010 | $ac_includes_default |
---|
9011 | #include <$ac_header> |
---|
9012 | _ACEOF |
---|
9013 | rm -f conftest.$ac_objext |
---|
9014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9015 | (eval $ac_compile) 2>conftest.er1 |
---|
9016 | ac_status=$? |
---|
9017 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9018 | rm -f conftest.er1 |
---|
9019 | cat conftest.err >&5 |
---|
9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9021 | (exit $ac_status); } && |
---|
9022 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9023 | || test ! -s conftest.err' |
---|
9024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9025 | (eval $ac_try) 2>&5 |
---|
9026 | ac_status=$? |
---|
9027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9028 | (exit $ac_status); }; } && |
---|
9029 | { ac_try='test -s conftest.$ac_objext' |
---|
9030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9031 | (eval $ac_try) 2>&5 |
---|
9032 | ac_status=$? |
---|
9033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9034 | (exit $ac_status); }; }; then |
---|
9035 | ac_header_compiler=yes |
---|
9036 | else |
---|
9037 | echo "$as_me: failed program was:" >&5 |
---|
9038 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9039 | |
---|
9040 | ac_header_compiler=no |
---|
9041 | fi |
---|
9042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9043 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9044 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9045 | |
---|
9046 | # Is the header present? |
---|
9047 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9048 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9049 | cat >conftest.$ac_ext <<_ACEOF |
---|
9050 | /* confdefs.h. */ |
---|
9051 | _ACEOF |
---|
9052 | cat confdefs.h >>conftest.$ac_ext |
---|
9053 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9054 | /* end confdefs.h. */ |
---|
9055 | #include <$ac_header> |
---|
9056 | _ACEOF |
---|
9057 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9058 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9059 | ac_status=$? |
---|
9060 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9061 | rm -f conftest.er1 |
---|
9062 | cat conftest.err >&5 |
---|
9063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9064 | (exit $ac_status); } >/dev/null; then |
---|
9065 | if test -s conftest.err; then |
---|
9066 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9067 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9068 | else |
---|
9069 | ac_cpp_err= |
---|
9070 | fi |
---|
9071 | else |
---|
9072 | ac_cpp_err=yes |
---|
9073 | fi |
---|
9074 | if test -z "$ac_cpp_err"; then |
---|
9075 | ac_header_preproc=yes |
---|
9076 | else |
---|
9077 | echo "$as_me: failed program was:" >&5 |
---|
9078 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9079 | |
---|
9080 | ac_header_preproc=no |
---|
9081 | fi |
---|
9082 | rm -f conftest.err conftest.$ac_ext |
---|
9083 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9084 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9085 | |
---|
9086 | # So? What about this header? |
---|
9087 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9088 | yes:no: ) |
---|
9089 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9090 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9091 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9092 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9093 | ac_header_preproc=yes |
---|
9094 | ;; |
---|
9095 | no:yes:* ) |
---|
9096 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9097 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9098 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9099 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9100 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9101 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9102 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9103 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9104 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9105 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9106 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9107 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9108 | ( |
---|
9109 | cat <<\_ASBOX |
---|
9110 | ## ---------------------------------------------- ## |
---|
9111 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9112 | ## ---------------------------------------------- ## |
---|
9113 | _ASBOX |
---|
9114 | ) | |
---|
9115 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9116 | ;; |
---|
9117 | esac |
---|
9118 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9119 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9120 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9122 | else |
---|
9123 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9124 | fi |
---|
9125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9126 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9127 | |
---|
9128 | fi |
---|
9129 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9130 | cat >>confdefs.h <<_ACEOF |
---|
9131 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9132 | _ACEOF |
---|
9133 | |
---|
9134 | else |
---|
9135 | { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5 |
---|
9136 | echo "$as_me: error: cannot find ogg header." >&2;} |
---|
9137 | { (exit 1); exit 1; }; } |
---|
9138 | fi |
---|
9139 | |
---|
9140 | done |
---|
9141 | |
---|
9142 | # checking for ogg-lib |
---|
9143 | echo "$as_me:$LINENO: checking for main in -logg" >&5 |
---|
9144 | echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 |
---|
9145 | if test "${ac_cv_lib_ogg_main+set}" = set; then |
---|
9146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9147 | else |
---|
9148 | ac_check_lib_save_LIBS=$LIBS |
---|
9149 | LIBS="-logg $LIBS" |
---|
9150 | cat >conftest.$ac_ext <<_ACEOF |
---|
9151 | /* confdefs.h. */ |
---|
9152 | _ACEOF |
---|
9153 | cat confdefs.h >>conftest.$ac_ext |
---|
9154 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9155 | /* end confdefs.h. */ |
---|
9156 | |
---|
9157 | |
---|
9158 | int |
---|
9159 | main () |
---|
9160 | { |
---|
9161 | main (); |
---|
9162 | ; |
---|
9163 | return 0; |
---|
9164 | } |
---|
9165 | _ACEOF |
---|
9166 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9168 | (eval $ac_link) 2>conftest.er1 |
---|
9169 | ac_status=$? |
---|
9170 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9171 | rm -f conftest.er1 |
---|
9172 | cat conftest.err >&5 |
---|
9173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9174 | (exit $ac_status); } && |
---|
9175 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9176 | || test ! -s conftest.err' |
---|
9177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9178 | (eval $ac_try) 2>&5 |
---|
9179 | ac_status=$? |
---|
9180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9181 | (exit $ac_status); }; } && |
---|
9182 | { ac_try='test -s conftest$ac_exeext' |
---|
9183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9184 | (eval $ac_try) 2>&5 |
---|
9185 | ac_status=$? |
---|
9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9187 | (exit $ac_status); }; }; then |
---|
9188 | ac_cv_lib_ogg_main=yes |
---|
9189 | else |
---|
9190 | echo "$as_me: failed program was:" >&5 |
---|
9191 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9192 | |
---|
9193 | ac_cv_lib_ogg_main=no |
---|
9194 | fi |
---|
9195 | rm -f conftest.err conftest.$ac_objext \ |
---|
9196 | conftest$ac_exeext conftest.$ac_ext |
---|
9197 | LIBS=$ac_check_lib_save_LIBS |
---|
9198 | fi |
---|
9199 | echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 |
---|
9200 | echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 |
---|
9201 | if test $ac_cv_lib_ogg_main = yes; then |
---|
9202 | FOUND_ogg=yes; LIBS="$LIBS -logg" |
---|
9203 | fi |
---|
9204 | |
---|
9205 | if test x$FOUND_ogg != xyes ; then |
---|
9206 | echo "------------------" |
---|
9207 | echo "ogg library not found." |
---|
9208 | echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
9209 | echo "------------------" |
---|
9210 | exit -1 |
---|
9211 | fi |
---|
9212 | |
---|
9213 | #--------# |
---|
9214 | # vorbis # |
---|
9215 | #--------# |
---|
9216 | # checking for vorbis-lib |
---|
9217 | echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 |
---|
9218 | echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 |
---|
9219 | if test "${ac_cv_lib_vorbis_main+set}" = set; then |
---|
9220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9221 | else |
---|
9222 | ac_check_lib_save_LIBS=$LIBS |
---|
9223 | LIBS="-lvorbis $LIBS" |
---|
9224 | cat >conftest.$ac_ext <<_ACEOF |
---|
9225 | /* confdefs.h. */ |
---|
9226 | _ACEOF |
---|
9227 | cat confdefs.h >>conftest.$ac_ext |
---|
9228 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9229 | /* end confdefs.h. */ |
---|
9230 | |
---|
9231 | |
---|
9232 | int |
---|
9233 | main () |
---|
9234 | { |
---|
9235 | main (); |
---|
9236 | ; |
---|
9237 | return 0; |
---|
9238 | } |
---|
9239 | _ACEOF |
---|
9240 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9242 | (eval $ac_link) 2>conftest.er1 |
---|
9243 | ac_status=$? |
---|
9244 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9245 | rm -f conftest.er1 |
---|
9246 | cat conftest.err >&5 |
---|
9247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9248 | (exit $ac_status); } && |
---|
9249 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9250 | || test ! -s conftest.err' |
---|
9251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9252 | (eval $ac_try) 2>&5 |
---|
9253 | ac_status=$? |
---|
9254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9255 | (exit $ac_status); }; } && |
---|
9256 | { ac_try='test -s conftest$ac_exeext' |
---|
9257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9258 | (eval $ac_try) 2>&5 |
---|
9259 | ac_status=$? |
---|
9260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9261 | (exit $ac_status); }; }; then |
---|
9262 | ac_cv_lib_vorbis_main=yes |
---|
9263 | else |
---|
9264 | echo "$as_me: failed program was:" >&5 |
---|
9265 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9266 | |
---|
9267 | ac_cv_lib_vorbis_main=no |
---|
9268 | fi |
---|
9269 | rm -f conftest.err conftest.$ac_objext \ |
---|
9270 | conftest$ac_exeext conftest.$ac_ext |
---|
9271 | LIBS=$ac_check_lib_save_LIBS |
---|
9272 | fi |
---|
9273 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 |
---|
9274 | echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 |
---|
9275 | if test $ac_cv_lib_vorbis_main = yes; then |
---|
9276 | FOUND_vorbis=yes; LIBS="$LIBS -lvorbis" |
---|
9277 | fi |
---|
9278 | |
---|
9279 | if test x$FOUND_vorbis != xyes ; then |
---|
9280 | echo "------------------" |
---|
9281 | echo "vorbis library not found." |
---|
9282 | echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
9283 | echo "------------------" |
---|
9284 | exit -1 |
---|
9285 | fi |
---|
9286 | |
---|
9287 | #------------# |
---|
9288 | # vorbisfile # |
---|
9289 | #------------# |
---|
9290 | # checking for vorbis-headers |
---|
9291 | |
---|
9292 | for ac_header in vorbis/vorbisfile.h |
---|
9293 | do |
---|
9294 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9296 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9297 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9298 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9300 | fi |
---|
9301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9302 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9303 | else |
---|
9304 | # Is the header compilable? |
---|
9305 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9306 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9307 | cat >conftest.$ac_ext <<_ACEOF |
---|
9308 | /* confdefs.h. */ |
---|
9309 | _ACEOF |
---|
9310 | cat confdefs.h >>conftest.$ac_ext |
---|
9311 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9312 | /* end confdefs.h. */ |
---|
9313 | $ac_includes_default |
---|
9314 | #include <$ac_header> |
---|
9315 | _ACEOF |
---|
9316 | rm -f conftest.$ac_objext |
---|
9317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9318 | (eval $ac_compile) 2>conftest.er1 |
---|
9319 | ac_status=$? |
---|
9320 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9321 | rm -f conftest.er1 |
---|
9322 | cat conftest.err >&5 |
---|
9323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9324 | (exit $ac_status); } && |
---|
9325 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9326 | || test ! -s conftest.err' |
---|
9327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9328 | (eval $ac_try) 2>&5 |
---|
9329 | ac_status=$? |
---|
9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9331 | (exit $ac_status); }; } && |
---|
9332 | { ac_try='test -s conftest.$ac_objext' |
---|
9333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9334 | (eval $ac_try) 2>&5 |
---|
9335 | ac_status=$? |
---|
9336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9337 | (exit $ac_status); }; }; then |
---|
9338 | ac_header_compiler=yes |
---|
9339 | else |
---|
9340 | echo "$as_me: failed program was:" >&5 |
---|
9341 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9342 | |
---|
9343 | ac_header_compiler=no |
---|
9344 | fi |
---|
9345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9346 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9347 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9348 | |
---|
9349 | # Is the header present? |
---|
9350 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9351 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9352 | cat >conftest.$ac_ext <<_ACEOF |
---|
9353 | /* confdefs.h. */ |
---|
9354 | _ACEOF |
---|
9355 | cat confdefs.h >>conftest.$ac_ext |
---|
9356 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9357 | /* end confdefs.h. */ |
---|
9358 | #include <$ac_header> |
---|
9359 | _ACEOF |
---|
9360 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9361 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9362 | ac_status=$? |
---|
9363 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9364 | rm -f conftest.er1 |
---|
9365 | cat conftest.err >&5 |
---|
9366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9367 | (exit $ac_status); } >/dev/null; then |
---|
9368 | if test -s conftest.err; then |
---|
9369 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9370 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9371 | else |
---|
9372 | ac_cpp_err= |
---|
9373 | fi |
---|
9374 | else |
---|
9375 | ac_cpp_err=yes |
---|
9376 | fi |
---|
9377 | if test -z "$ac_cpp_err"; then |
---|
9378 | ac_header_preproc=yes |
---|
9379 | else |
---|
9380 | echo "$as_me: failed program was:" >&5 |
---|
9381 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9382 | |
---|
9383 | ac_header_preproc=no |
---|
9384 | fi |
---|
9385 | rm -f conftest.err conftest.$ac_ext |
---|
9386 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9387 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9388 | |
---|
9389 | # So? What about this header? |
---|
9390 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9391 | yes:no: ) |
---|
9392 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9393 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9395 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9396 | ac_header_preproc=yes |
---|
9397 | ;; |
---|
9398 | no:yes:* ) |
---|
9399 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9400 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9401 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9402 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9403 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9404 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9405 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9406 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9408 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9409 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9410 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9411 | ( |
---|
9412 | cat <<\_ASBOX |
---|
9413 | ## ---------------------------------------------- ## |
---|
9414 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9415 | ## ---------------------------------------------- ## |
---|
9416 | _ASBOX |
---|
9417 | ) | |
---|
9418 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9419 | ;; |
---|
9420 | esac |
---|
9421 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9422 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9423 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9425 | else |
---|
9426 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9427 | fi |
---|
9428 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9429 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9430 | |
---|
9431 | fi |
---|
9432 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9433 | cat >>confdefs.h <<_ACEOF |
---|
9434 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9435 | _ACEOF |
---|
9436 | |
---|
9437 | else |
---|
9438 | { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 |
---|
9439 | echo "$as_me: error: cannot find vorbisfile header." >&2;} |
---|
9440 | { (exit 1); exit 1; }; } |
---|
9441 | fi |
---|
9442 | |
---|
9443 | done |
---|
9444 | |
---|
9445 | # checking for vorbisfile-lib |
---|
9446 | echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 |
---|
9447 | echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 |
---|
9448 | if test "${ac_cv_lib_vorbisfile_main+set}" = set; then |
---|
9449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9450 | else |
---|
9451 | ac_check_lib_save_LIBS=$LIBS |
---|
9452 | LIBS="-lvorbisfile $LIBS" |
---|
9453 | cat >conftest.$ac_ext <<_ACEOF |
---|
9454 | /* confdefs.h. */ |
---|
9455 | _ACEOF |
---|
9456 | cat confdefs.h >>conftest.$ac_ext |
---|
9457 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9458 | /* end confdefs.h. */ |
---|
9459 | |
---|
9460 | |
---|
9461 | int |
---|
9462 | main () |
---|
9463 | { |
---|
9464 | main (); |
---|
9465 | ; |
---|
9466 | return 0; |
---|
9467 | } |
---|
9468 | _ACEOF |
---|
9469 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9471 | (eval $ac_link) 2>conftest.er1 |
---|
9472 | ac_status=$? |
---|
9473 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9474 | rm -f conftest.er1 |
---|
9475 | cat conftest.err >&5 |
---|
9476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9477 | (exit $ac_status); } && |
---|
9478 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9479 | || test ! -s conftest.err' |
---|
9480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9481 | (eval $ac_try) 2>&5 |
---|
9482 | ac_status=$? |
---|
9483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9484 | (exit $ac_status); }; } && |
---|
9485 | { ac_try='test -s conftest$ac_exeext' |
---|
9486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9487 | (eval $ac_try) 2>&5 |
---|
9488 | ac_status=$? |
---|
9489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9490 | (exit $ac_status); }; }; then |
---|
9491 | ac_cv_lib_vorbisfile_main=yes |
---|
9492 | else |
---|
9493 | echo "$as_me: failed program was:" >&5 |
---|
9494 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9495 | |
---|
9496 | ac_cv_lib_vorbisfile_main=no |
---|
9497 | fi |
---|
9498 | rm -f conftest.err conftest.$ac_objext \ |
---|
9499 | conftest$ac_exeext conftest.$ac_ext |
---|
9500 | LIBS=$ac_check_lib_save_LIBS |
---|
9501 | fi |
---|
9502 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 |
---|
9503 | echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 |
---|
9504 | if test $ac_cv_lib_vorbisfile_main = yes; then |
---|
9505 | FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile" |
---|
9506 | fi |
---|
9507 | |
---|
9508 | if test x$FOUND_vorbisfile != xyes ; then |
---|
9509 | echo "------------------" |
---|
9510 | echo "vorbisfile library not found." |
---|
9511 | echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
9512 | echo "------------------" |
---|
9513 | exit -1 |
---|
9514 | fi |
---|
9515 | |
---|
9516 | |
---|
9517 | #---------# |
---|
9518 | # libcURL # |
---|
9519 | #---------# |
---|
9520 | if test x$def_curl = xyes; then |
---|
9521 | |
---|
9522 | for ac_header in curl/curl.h |
---|
9523 | do |
---|
9524 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9525 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9526 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9530 | fi |
---|
9531 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9532 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9533 | else |
---|
9534 | # Is the header compilable? |
---|
9535 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9536 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9537 | cat >conftest.$ac_ext <<_ACEOF |
---|
9538 | /* confdefs.h. */ |
---|
9539 | _ACEOF |
---|
9540 | cat confdefs.h >>conftest.$ac_ext |
---|
9541 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9542 | /* end confdefs.h. */ |
---|
9543 | $ac_includes_default |
---|
9544 | #include <$ac_header> |
---|
9545 | _ACEOF |
---|
9546 | rm -f conftest.$ac_objext |
---|
9547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9548 | (eval $ac_compile) 2>conftest.er1 |
---|
9549 | ac_status=$? |
---|
9550 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9551 | rm -f conftest.er1 |
---|
9552 | cat conftest.err >&5 |
---|
9553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9554 | (exit $ac_status); } && |
---|
9555 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9556 | || test ! -s conftest.err' |
---|
9557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9558 | (eval $ac_try) 2>&5 |
---|
9559 | ac_status=$? |
---|
9560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9561 | (exit $ac_status); }; } && |
---|
9562 | { ac_try='test -s conftest.$ac_objext' |
---|
9563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9564 | (eval $ac_try) 2>&5 |
---|
9565 | ac_status=$? |
---|
9566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9567 | (exit $ac_status); }; }; then |
---|
9568 | ac_header_compiler=yes |
---|
9569 | else |
---|
9570 | echo "$as_me: failed program was:" >&5 |
---|
9571 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9572 | |
---|
9573 | ac_header_compiler=no |
---|
9574 | fi |
---|
9575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9576 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9577 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9578 | |
---|
9579 | # Is the header present? |
---|
9580 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9581 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9582 | cat >conftest.$ac_ext <<_ACEOF |
---|
9583 | /* confdefs.h. */ |
---|
9584 | _ACEOF |
---|
9585 | cat confdefs.h >>conftest.$ac_ext |
---|
9586 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9587 | /* end confdefs.h. */ |
---|
9588 | #include <$ac_header> |
---|
9589 | _ACEOF |
---|
9590 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9591 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9592 | ac_status=$? |
---|
9593 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9594 | rm -f conftest.er1 |
---|
9595 | cat conftest.err >&5 |
---|
9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9597 | (exit $ac_status); } >/dev/null; then |
---|
9598 | if test -s conftest.err; then |
---|
9599 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9600 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9601 | else |
---|
9602 | ac_cpp_err= |
---|
9603 | fi |
---|
9604 | else |
---|
9605 | ac_cpp_err=yes |
---|
9606 | fi |
---|
9607 | if test -z "$ac_cpp_err"; then |
---|
9608 | ac_header_preproc=yes |
---|
9609 | else |
---|
9610 | echo "$as_me: failed program was:" >&5 |
---|
9611 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9612 | |
---|
9613 | ac_header_preproc=no |
---|
9614 | fi |
---|
9615 | rm -f conftest.err conftest.$ac_ext |
---|
9616 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9617 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9618 | |
---|
9619 | # So? What about this header? |
---|
9620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9621 | yes:no: ) |
---|
9622 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9623 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9625 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9626 | ac_header_preproc=yes |
---|
9627 | ;; |
---|
9628 | no:yes:* ) |
---|
9629 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9630 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9631 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9632 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9633 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9634 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9635 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9636 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9637 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9638 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9639 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9640 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9641 | ( |
---|
9642 | cat <<\_ASBOX |
---|
9643 | ## ---------------------------------------------- ## |
---|
9644 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9645 | ## ---------------------------------------------- ## |
---|
9646 | _ASBOX |
---|
9647 | ) | |
---|
9648 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9649 | ;; |
---|
9650 | esac |
---|
9651 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9653 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9655 | else |
---|
9656 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9657 | fi |
---|
9658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9659 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9660 | |
---|
9661 | fi |
---|
9662 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9663 | cat >>confdefs.h <<_ACEOF |
---|
9664 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9665 | _ACEOF |
---|
9666 | curlHeader=yes |
---|
9667 | else |
---|
9668 | curlHeader=no |
---|
9669 | fi |
---|
9670 | |
---|
9671 | done |
---|
9672 | |
---|
9673 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
9674 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
9675 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
9676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9677 | else |
---|
9678 | ac_check_lib_save_LIBS=$LIBS |
---|
9679 | LIBS="-lcurl $LIBS" |
---|
9680 | cat >conftest.$ac_ext <<_ACEOF |
---|
9681 | /* confdefs.h. */ |
---|
9682 | _ACEOF |
---|
9683 | cat confdefs.h >>conftest.$ac_ext |
---|
9684 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9685 | /* end confdefs.h. */ |
---|
9686 | |
---|
9687 | |
---|
9688 | int |
---|
9689 | main () |
---|
9690 | { |
---|
9691 | main (); |
---|
9692 | ; |
---|
9693 | return 0; |
---|
9694 | } |
---|
9695 | _ACEOF |
---|
9696 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9698 | (eval $ac_link) 2>conftest.er1 |
---|
9699 | ac_status=$? |
---|
9700 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9701 | rm -f conftest.er1 |
---|
9702 | cat conftest.err >&5 |
---|
9703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9704 | (exit $ac_status); } && |
---|
9705 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9706 | || test ! -s conftest.err' |
---|
9707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9708 | (eval $ac_try) 2>&5 |
---|
9709 | ac_status=$? |
---|
9710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9711 | (exit $ac_status); }; } && |
---|
9712 | { ac_try='test -s conftest$ac_exeext' |
---|
9713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9714 | (eval $ac_try) 2>&5 |
---|
9715 | ac_status=$? |
---|
9716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9717 | (exit $ac_status); }; }; then |
---|
9718 | ac_cv_lib_curl_main=yes |
---|
9719 | else |
---|
9720 | echo "$as_me: failed program was:" >&5 |
---|
9721 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9722 | |
---|
9723 | ac_cv_lib_curl_main=no |
---|
9724 | fi |
---|
9725 | rm -f conftest.err conftest.$ac_objext \ |
---|
9726 | conftest$ac_exeext conftest.$ac_ext |
---|
9727 | LIBS=$ac_check_lib_save_LIBS |
---|
9728 | fi |
---|
9729 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
9730 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
9731 | if test $ac_cv_lib_curl_main = yes; then |
---|
9732 | FOUND_curl=yes |
---|
9733 | fi |
---|
9734 | |
---|
9735 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
9736 | have_curl=yes |
---|
9737 | CURL_LIBS=`curl-config --libs` |
---|
9738 | CURLCFLAGS=`curl-config --cflags` |
---|
9739 | |
---|
9740 | cat >>confdefs.h <<_ACEOF |
---|
9741 | #define HAVE_CURL 1 |
---|
9742 | _ACEOF |
---|
9743 | |
---|
9744 | else |
---|
9745 | have_curl=no |
---|
9746 | fi |
---|
9747 | |
---|
9748 | fi |
---|
9749 | |
---|
9750 | |
---|
9751 | |
---|
9752 | |
---|
9753 | if test x$have_curl = xyes; then |
---|
9754 | HAVE_CURL_TRUE= |
---|
9755 | HAVE_CURL_FALSE='#' |
---|
9756 | else |
---|
9757 | HAVE_CURL_TRUE='#' |
---|
9758 | HAVE_CURL_FALSE= |
---|
9759 | fi |
---|
9760 | |
---|
9761 | |
---|
9762 | #--------# |
---|
9763 | # efence # |
---|
9764 | #--------# |
---|
9765 | if test x$def_efence = xyes ; then |
---|
9766 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
9767 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
9768 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
9769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9770 | else |
---|
9771 | ac_check_lib_save_LIBS=$LIBS |
---|
9772 | LIBS="-lefence $LIBS" |
---|
9773 | cat >conftest.$ac_ext <<_ACEOF |
---|
9774 | /* confdefs.h. */ |
---|
9775 | _ACEOF |
---|
9776 | cat confdefs.h >>conftest.$ac_ext |
---|
9777 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9778 | /* end confdefs.h. */ |
---|
9779 | |
---|
9780 | |
---|
9781 | int |
---|
9782 | main () |
---|
9783 | { |
---|
9784 | main (); |
---|
9785 | ; |
---|
9786 | return 0; |
---|
9787 | } |
---|
9788 | _ACEOF |
---|
9789 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9791 | (eval $ac_link) 2>conftest.er1 |
---|
9792 | ac_status=$? |
---|
9793 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9794 | rm -f conftest.er1 |
---|
9795 | cat conftest.err >&5 |
---|
9796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9797 | (exit $ac_status); } && |
---|
9798 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9799 | || test ! -s conftest.err' |
---|
9800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9801 | (eval $ac_try) 2>&5 |
---|
9802 | ac_status=$? |
---|
9803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9804 | (exit $ac_status); }; } && |
---|
9805 | { ac_try='test -s conftest$ac_exeext' |
---|
9806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9807 | (eval $ac_try) 2>&5 |
---|
9808 | ac_status=$? |
---|
9809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9810 | (exit $ac_status); }; }; then |
---|
9811 | ac_cv_lib_efence_main=yes |
---|
9812 | else |
---|
9813 | echo "$as_me: failed program was:" >&5 |
---|
9814 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9815 | |
---|
9816 | ac_cv_lib_efence_main=no |
---|
9817 | fi |
---|
9818 | rm -f conftest.err conftest.$ac_objext \ |
---|
9819 | conftest$ac_exeext conftest.$ac_ext |
---|
9820 | LIBS=$ac_check_lib_save_LIBS |
---|
9821 | fi |
---|
9822 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
9823 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
9824 | if test $ac_cv_lib_efence_main = yes; then |
---|
9825 | FOUND_efence=yes; LIBS="$LIBS -lefence" |
---|
9826 | fi |
---|
9827 | |
---|
9828 | if test x$FOUND_efence != xyes ; then |
---|
9829 | echo "efence was requested, but is not installed!! going on" |
---|
9830 | fi |
---|
9831 | |
---|
9832 | fi |
---|
9833 | |
---|
9834 | #-----# |
---|
9835 | # GTK # |
---|
9836 | #-----# |
---|
9837 | if test x$def_gtk = xyes; then |
---|
9838 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
9839 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
9840 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
9841 | if `$PKG_CONFIG --exists gtk+-2.0`; then |
---|
9842 | echo "yes" |
---|
9843 | have_gtk2=yes |
---|
9844 | GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
---|
9845 | GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
---|
9846 | |
---|
9847 | cat >>confdefs.h <<_ACEOF |
---|
9848 | #define HAVE_GTK2 1 |
---|
9849 | _ACEOF |
---|
9850 | |
---|
9851 | if test $DEBUG -ge 3; then |
---|
9852 | echo "cflags: $GTK2_CFLAGS" |
---|
9853 | echo "libs: $GTK2_LIBS" |
---|
9854 | fi |
---|
9855 | else |
---|
9856 | echo "no" |
---|
9857 | fi |
---|
9858 | |
---|
9859 | fi |
---|
9860 | |
---|
9861 | |
---|
9862 | |
---|
9863 | |
---|
9864 | if test x$have_gtk2 = xyes; then |
---|
9865 | HAVE_GTK2_TRUE= |
---|
9866 | HAVE_GTK2_FALSE='#' |
---|
9867 | else |
---|
9868 | HAVE_GTK2_TRUE='#' |
---|
9869 | HAVE_GTK2_FALSE= |
---|
9870 | fi |
---|
9871 | |
---|
9872 | |
---|
9873 | |
---|
9874 | # FIXME: Replace `main' with a function in `-lm': |
---|
9875 | |
---|
9876 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
9877 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
9878 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
9879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9880 | else |
---|
9881 | ac_check_lib_save_LIBS=$LIBS |
---|
9882 | LIBS="-lm $LIBS" |
---|
9883 | cat >conftest.$ac_ext <<_ACEOF |
---|
9884 | /* confdefs.h. */ |
---|
9885 | _ACEOF |
---|
9886 | cat confdefs.h >>conftest.$ac_ext |
---|
9887 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9888 | /* end confdefs.h. */ |
---|
9889 | |
---|
9890 | |
---|
9891 | int |
---|
9892 | main () |
---|
9893 | { |
---|
9894 | main (); |
---|
9895 | ; |
---|
9896 | return 0; |
---|
9897 | } |
---|
9898 | _ACEOF |
---|
9899 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9901 | (eval $ac_link) 2>conftest.er1 |
---|
9902 | ac_status=$? |
---|
9903 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9904 | rm -f conftest.er1 |
---|
9905 | cat conftest.err >&5 |
---|
9906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9907 | (exit $ac_status); } && |
---|
9908 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9909 | || test ! -s conftest.err' |
---|
9910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9911 | (eval $ac_try) 2>&5 |
---|
9912 | ac_status=$? |
---|
9913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9914 | (exit $ac_status); }; } && |
---|
9915 | { ac_try='test -s conftest$ac_exeext' |
---|
9916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9917 | (eval $ac_try) 2>&5 |
---|
9918 | ac_status=$? |
---|
9919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9920 | (exit $ac_status); }; }; then |
---|
9921 | ac_cv_lib_m_main=yes |
---|
9922 | else |
---|
9923 | echo "$as_me: failed program was:" >&5 |
---|
9924 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9925 | |
---|
9926 | ac_cv_lib_m_main=no |
---|
9927 | fi |
---|
9928 | rm -f conftest.err conftest.$ac_objext \ |
---|
9929 | conftest$ac_exeext conftest.$ac_ext |
---|
9930 | LIBS=$ac_check_lib_save_LIBS |
---|
9931 | fi |
---|
9932 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
9933 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
9934 | if test $ac_cv_lib_m_main = yes; then |
---|
9935 | cat >>confdefs.h <<_ACEOF |
---|
9936 | #define HAVE_LIBM 1 |
---|
9937 | _ACEOF |
---|
9938 | |
---|
9939 | LIBS="-lm $LIBS" |
---|
9940 | |
---|
9941 | fi |
---|
9942 | |
---|
9943 | |
---|
9944 | |
---|
9945 | # Checks for header files. |
---|
9946 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
9947 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
9948 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
9949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9950 | else |
---|
9951 | cat >conftest.$ac_ext <<_ACEOF |
---|
9952 | /* confdefs.h. */ |
---|
9953 | _ACEOF |
---|
9954 | cat confdefs.h >>conftest.$ac_ext |
---|
9955 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9956 | /* end confdefs.h. */ |
---|
9957 | #include <stdlib.h> |
---|
9958 | #include <stdarg.h> |
---|
9959 | #include <string.h> |
---|
9960 | #include <float.h> |
---|
9961 | |
---|
9962 | int |
---|
9963 | main () |
---|
9964 | { |
---|
9965 | |
---|
9966 | ; |
---|
9967 | return 0; |
---|
9968 | } |
---|
9969 | _ACEOF |
---|
9970 | rm -f conftest.$ac_objext |
---|
9971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9972 | (eval $ac_compile) 2>conftest.er1 |
---|
9973 | ac_status=$? |
---|
9974 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9975 | rm -f conftest.er1 |
---|
9976 | cat conftest.err >&5 |
---|
9977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9978 | (exit $ac_status); } && |
---|
9979 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9980 | || test ! -s conftest.err' |
---|
9981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9982 | (eval $ac_try) 2>&5 |
---|
9983 | ac_status=$? |
---|
9984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9985 | (exit $ac_status); }; } && |
---|
9986 | { ac_try='test -s conftest.$ac_objext' |
---|
9987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9988 | (eval $ac_try) 2>&5 |
---|
9989 | ac_status=$? |
---|
9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9991 | (exit $ac_status); }; }; then |
---|
9992 | ac_cv_header_stdc=yes |
---|
9993 | else |
---|
9994 | echo "$as_me: failed program was:" >&5 |
---|
9995 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9996 | |
---|
9997 | ac_cv_header_stdc=no |
---|
9998 | fi |
---|
9999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10000 | |
---|
10001 | if test $ac_cv_header_stdc = yes; then |
---|
10002 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
10003 | cat >conftest.$ac_ext <<_ACEOF |
---|
10004 | /* confdefs.h. */ |
---|
10005 | _ACEOF |
---|
10006 | cat confdefs.h >>conftest.$ac_ext |
---|
10007 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10008 | /* end confdefs.h. */ |
---|
10009 | #include <string.h> |
---|
10010 | |
---|
10011 | _ACEOF |
---|
10012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
10013 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
10014 | : |
---|
10015 | else |
---|
10016 | ac_cv_header_stdc=no |
---|
10017 | fi |
---|
10018 | rm -f conftest* |
---|
10019 | |
---|
10020 | fi |
---|
10021 | |
---|
10022 | if test $ac_cv_header_stdc = yes; then |
---|
10023 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
10024 | cat >conftest.$ac_ext <<_ACEOF |
---|
10025 | /* confdefs.h. */ |
---|
10026 | _ACEOF |
---|
10027 | cat confdefs.h >>conftest.$ac_ext |
---|
10028 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10029 | /* end confdefs.h. */ |
---|
10030 | #include <stdlib.h> |
---|
10031 | |
---|
10032 | _ACEOF |
---|
10033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
10034 | $EGREP "free" >/dev/null 2>&1; then |
---|
10035 | : |
---|
10036 | else |
---|
10037 | ac_cv_header_stdc=no |
---|
10038 | fi |
---|
10039 | rm -f conftest* |
---|
10040 | |
---|
10041 | fi |
---|
10042 | |
---|
10043 | if test $ac_cv_header_stdc = yes; then |
---|
10044 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
10045 | if test "$cross_compiling" = yes; then |
---|
10046 | : |
---|
10047 | else |
---|
10048 | cat >conftest.$ac_ext <<_ACEOF |
---|
10049 | /* confdefs.h. */ |
---|
10050 | _ACEOF |
---|
10051 | cat confdefs.h >>conftest.$ac_ext |
---|
10052 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10053 | /* end confdefs.h. */ |
---|
10054 | #include <ctype.h> |
---|
10055 | #if ((' ' & 0x0FF) == 0x020) |
---|
10056 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
10057 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
10058 | #else |
---|
10059 | # define ISLOWER(c) \ |
---|
10060 | (('a' <= (c) && (c) <= 'i') \ |
---|
10061 | || ('j' <= (c) && (c) <= 'r') \ |
---|
10062 | || ('s' <= (c) && (c) <= 'z')) |
---|
10063 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
10064 | #endif |
---|
10065 | |
---|
10066 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
10067 | int |
---|
10068 | main () |
---|
10069 | { |
---|
10070 | int i; |
---|
10071 | for (i = 0; i < 256; i++) |
---|
10072 | if (XOR (islower (i), ISLOWER (i)) |
---|
10073 | || toupper (i) != TOUPPER (i)) |
---|
10074 | exit(2); |
---|
10075 | exit (0); |
---|
10076 | } |
---|
10077 | _ACEOF |
---|
10078 | rm -f conftest$ac_exeext |
---|
10079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10080 | (eval $ac_link) 2>&5 |
---|
10081 | ac_status=$? |
---|
10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10083 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
10084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10085 | (eval $ac_try) 2>&5 |
---|
10086 | ac_status=$? |
---|
10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10088 | (exit $ac_status); }; }; then |
---|
10089 | : |
---|
10090 | else |
---|
10091 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
10092 | echo "$as_me: failed program was:" >&5 |
---|
10093 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10094 | |
---|
10095 | ( exit $ac_status ) |
---|
10096 | ac_cv_header_stdc=no |
---|
10097 | fi |
---|
10098 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
10099 | fi |
---|
10100 | fi |
---|
10101 | fi |
---|
10102 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
10103 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
10104 | if test $ac_cv_header_stdc = yes; then |
---|
10105 | |
---|
10106 | cat >>confdefs.h <<\_ACEOF |
---|
10107 | #define STDC_HEADERS 1 |
---|
10108 | _ACEOF |
---|
10109 | |
---|
10110 | fi |
---|
10111 | |
---|
10112 | |
---|
10113 | |
---|
10114 | for ac_header in stdlib.h string.h |
---|
10115 | do |
---|
10116 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10118 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10119 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10120 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10122 | fi |
---|
10123 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10124 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10125 | else |
---|
10126 | # Is the header compilable? |
---|
10127 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
10128 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
10129 | cat >conftest.$ac_ext <<_ACEOF |
---|
10130 | /* confdefs.h. */ |
---|
10131 | _ACEOF |
---|
10132 | cat confdefs.h >>conftest.$ac_ext |
---|
10133 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10134 | /* end confdefs.h. */ |
---|
10135 | $ac_includes_default |
---|
10136 | #include <$ac_header> |
---|
10137 | _ACEOF |
---|
10138 | rm -f conftest.$ac_objext |
---|
10139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10140 | (eval $ac_compile) 2>conftest.er1 |
---|
10141 | ac_status=$? |
---|
10142 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10143 | rm -f conftest.er1 |
---|
10144 | cat conftest.err >&5 |
---|
10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10146 | (exit $ac_status); } && |
---|
10147 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10148 | || test ! -s conftest.err' |
---|
10149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10150 | (eval $ac_try) 2>&5 |
---|
10151 | ac_status=$? |
---|
10152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10153 | (exit $ac_status); }; } && |
---|
10154 | { ac_try='test -s conftest.$ac_objext' |
---|
10155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10156 | (eval $ac_try) 2>&5 |
---|
10157 | ac_status=$? |
---|
10158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10159 | (exit $ac_status); }; }; then |
---|
10160 | ac_header_compiler=yes |
---|
10161 | else |
---|
10162 | echo "$as_me: failed program was:" >&5 |
---|
10163 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10164 | |
---|
10165 | ac_header_compiler=no |
---|
10166 | fi |
---|
10167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10168 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
10169 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
10170 | |
---|
10171 | # Is the header present? |
---|
10172 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
10173 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
10174 | cat >conftest.$ac_ext <<_ACEOF |
---|
10175 | /* confdefs.h. */ |
---|
10176 | _ACEOF |
---|
10177 | cat confdefs.h >>conftest.$ac_ext |
---|
10178 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10179 | /* end confdefs.h. */ |
---|
10180 | #include <$ac_header> |
---|
10181 | _ACEOF |
---|
10182 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10183 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10184 | ac_status=$? |
---|
10185 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10186 | rm -f conftest.er1 |
---|
10187 | cat conftest.err >&5 |
---|
10188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10189 | (exit $ac_status); } >/dev/null; then |
---|
10190 | if test -s conftest.err; then |
---|
10191 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10192 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10193 | else |
---|
10194 | ac_cpp_err= |
---|
10195 | fi |
---|
10196 | else |
---|
10197 | ac_cpp_err=yes |
---|
10198 | fi |
---|
10199 | if test -z "$ac_cpp_err"; then |
---|
10200 | ac_header_preproc=yes |
---|
10201 | else |
---|
10202 | echo "$as_me: failed program was:" >&5 |
---|
10203 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10204 | |
---|
10205 | ac_header_preproc=no |
---|
10206 | fi |
---|
10207 | rm -f conftest.err conftest.$ac_ext |
---|
10208 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
10209 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
10210 | |
---|
10211 | # So? What about this header? |
---|
10212 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
10213 | yes:no: ) |
---|
10214 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
10215 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
10216 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
10217 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
10218 | ac_header_preproc=yes |
---|
10219 | ;; |
---|
10220 | no:yes:* ) |
---|
10221 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
10222 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
10223 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
10224 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
10225 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
10226 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
10227 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
10228 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
10229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
10230 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
10231 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
10232 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
10233 | ( |
---|
10234 | cat <<\_ASBOX |
---|
10235 | ## ---------------------------------------------- ## |
---|
10236 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
10237 | ## ---------------------------------------------- ## |
---|
10238 | _ASBOX |
---|
10239 | ) | |
---|
10240 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
10241 | ;; |
---|
10242 | esac |
---|
10243 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10244 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10245 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10247 | else |
---|
10248 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
10249 | fi |
---|
10250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10252 | |
---|
10253 | fi |
---|
10254 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10255 | cat >>confdefs.h <<_ACEOF |
---|
10256 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10257 | _ACEOF |
---|
10258 | |
---|
10259 | fi |
---|
10260 | |
---|
10261 | done |
---|
10262 | |
---|
10263 | |
---|
10264 | # Checks for typedefs, structures, and compiler characteristics. |
---|
10265 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
10266 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
10267 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
10268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10269 | else |
---|
10270 | cat >conftest.$ac_ext <<_ACEOF |
---|
10271 | /* confdefs.h. */ |
---|
10272 | _ACEOF |
---|
10273 | cat confdefs.h >>conftest.$ac_ext |
---|
10274 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10275 | /* end confdefs.h. */ |
---|
10276 | |
---|
10277 | #include <stdbool.h> |
---|
10278 | #ifndef bool |
---|
10279 | # error bool is not defined |
---|
10280 | #endif |
---|
10281 | #ifndef false |
---|
10282 | # error false is not defined |
---|
10283 | #endif |
---|
10284 | #if false |
---|
10285 | # error false is not 0 |
---|
10286 | #endif |
---|
10287 | #ifndef true |
---|
10288 | # error true is not defined |
---|
10289 | #endif |
---|
10290 | #if true != 1 |
---|
10291 | # error true is not 1 |
---|
10292 | #endif |
---|
10293 | #ifndef __bool_true_false_are_defined |
---|
10294 | # error __bool_true_false_are_defined is not defined |
---|
10295 | #endif |
---|
10296 | |
---|
10297 | struct s { _Bool s: 1; _Bool t; } s; |
---|
10298 | |
---|
10299 | char a[true == 1 ? 1 : -1]; |
---|
10300 | char b[false == 0 ? 1 : -1]; |
---|
10301 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
10302 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
10303 | bool e = &s; |
---|
10304 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
10305 | char g[true]; |
---|
10306 | char h[sizeof (_Bool)]; |
---|
10307 | char i[sizeof s.t]; |
---|
10308 | |
---|
10309 | int |
---|
10310 | main () |
---|
10311 | { |
---|
10312 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
10313 | ; |
---|
10314 | return 0; |
---|
10315 | } |
---|
10316 | _ACEOF |
---|
10317 | rm -f conftest.$ac_objext |
---|
10318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10319 | (eval $ac_compile) 2>conftest.er1 |
---|
10320 | ac_status=$? |
---|
10321 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10322 | rm -f conftest.er1 |
---|
10323 | cat conftest.err >&5 |
---|
10324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10325 | (exit $ac_status); } && |
---|
10326 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10327 | || test ! -s conftest.err' |
---|
10328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10329 | (eval $ac_try) 2>&5 |
---|
10330 | ac_status=$? |
---|
10331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10332 | (exit $ac_status); }; } && |
---|
10333 | { ac_try='test -s conftest.$ac_objext' |
---|
10334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10335 | (eval $ac_try) 2>&5 |
---|
10336 | ac_status=$? |
---|
10337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10338 | (exit $ac_status); }; }; then |
---|
10339 | ac_cv_header_stdbool_h=yes |
---|
10340 | else |
---|
10341 | echo "$as_me: failed program was:" >&5 |
---|
10342 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10343 | |
---|
10344 | ac_cv_header_stdbool_h=no |
---|
10345 | fi |
---|
10346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10347 | fi |
---|
10348 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
10349 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
10350 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
10351 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
10352 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
10353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10354 | else |
---|
10355 | cat >conftest.$ac_ext <<_ACEOF |
---|
10356 | /* confdefs.h. */ |
---|
10357 | _ACEOF |
---|
10358 | cat confdefs.h >>conftest.$ac_ext |
---|
10359 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10360 | /* end confdefs.h. */ |
---|
10361 | $ac_includes_default |
---|
10362 | int |
---|
10363 | main () |
---|
10364 | { |
---|
10365 | if ((_Bool *) 0) |
---|
10366 | return 0; |
---|
10367 | if (sizeof (_Bool)) |
---|
10368 | return 0; |
---|
10369 | ; |
---|
10370 | return 0; |
---|
10371 | } |
---|
10372 | _ACEOF |
---|
10373 | rm -f conftest.$ac_objext |
---|
10374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10375 | (eval $ac_compile) 2>conftest.er1 |
---|
10376 | ac_status=$? |
---|
10377 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10378 | rm -f conftest.er1 |
---|
10379 | cat conftest.err >&5 |
---|
10380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10381 | (exit $ac_status); } && |
---|
10382 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10383 | || test ! -s conftest.err' |
---|
10384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10385 | (eval $ac_try) 2>&5 |
---|
10386 | ac_status=$? |
---|
10387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10388 | (exit $ac_status); }; } && |
---|
10389 | { ac_try='test -s conftest.$ac_objext' |
---|
10390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10391 | (eval $ac_try) 2>&5 |
---|
10392 | ac_status=$? |
---|
10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10394 | (exit $ac_status); }; }; then |
---|
10395 | ac_cv_type__Bool=yes |
---|
10396 | else |
---|
10397 | echo "$as_me: failed program was:" >&5 |
---|
10398 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10399 | |
---|
10400 | ac_cv_type__Bool=no |
---|
10401 | fi |
---|
10402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10403 | fi |
---|
10404 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
10405 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
10406 | if test $ac_cv_type__Bool = yes; then |
---|
10407 | |
---|
10408 | cat >>confdefs.h <<_ACEOF |
---|
10409 | #define HAVE__BOOL 1 |
---|
10410 | _ACEOF |
---|
10411 | |
---|
10412 | |
---|
10413 | fi |
---|
10414 | |
---|
10415 | if test $ac_cv_header_stdbool_h = yes; then |
---|
10416 | |
---|
10417 | cat >>confdefs.h <<\_ACEOF |
---|
10418 | #define HAVE_STDBOOL_H 1 |
---|
10419 | _ACEOF |
---|
10420 | |
---|
10421 | fi |
---|
10422 | |
---|
10423 | |
---|
10424 | # Checks for library functions. |
---|
10425 | |
---|
10426 | for ac_header in stdlib.h |
---|
10427 | do |
---|
10428 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10429 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10430 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10434 | fi |
---|
10435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10436 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10437 | else |
---|
10438 | # Is the header compilable? |
---|
10439 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
10440 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
10441 | cat >conftest.$ac_ext <<_ACEOF |
---|
10442 | /* confdefs.h. */ |
---|
10443 | _ACEOF |
---|
10444 | cat confdefs.h >>conftest.$ac_ext |
---|
10445 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10446 | /* end confdefs.h. */ |
---|
10447 | $ac_includes_default |
---|
10448 | #include <$ac_header> |
---|
10449 | _ACEOF |
---|
10450 | rm -f conftest.$ac_objext |
---|
10451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10452 | (eval $ac_compile) 2>conftest.er1 |
---|
10453 | ac_status=$? |
---|
10454 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10455 | rm -f conftest.er1 |
---|
10456 | cat conftest.err >&5 |
---|
10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10458 | (exit $ac_status); } && |
---|
10459 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10460 | || test ! -s conftest.err' |
---|
10461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10462 | (eval $ac_try) 2>&5 |
---|
10463 | ac_status=$? |
---|
10464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10465 | (exit $ac_status); }; } && |
---|
10466 | { ac_try='test -s conftest.$ac_objext' |
---|
10467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10468 | (eval $ac_try) 2>&5 |
---|
10469 | ac_status=$? |
---|
10470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10471 | (exit $ac_status); }; }; then |
---|
10472 | ac_header_compiler=yes |
---|
10473 | else |
---|
10474 | echo "$as_me: failed program was:" >&5 |
---|
10475 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10476 | |
---|
10477 | ac_header_compiler=no |
---|
10478 | fi |
---|
10479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10480 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
10481 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
10482 | |
---|
10483 | # Is the header present? |
---|
10484 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
10485 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
10486 | cat >conftest.$ac_ext <<_ACEOF |
---|
10487 | /* confdefs.h. */ |
---|
10488 | _ACEOF |
---|
10489 | cat confdefs.h >>conftest.$ac_ext |
---|
10490 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10491 | /* end confdefs.h. */ |
---|
10492 | #include <$ac_header> |
---|
10493 | _ACEOF |
---|
10494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10496 | ac_status=$? |
---|
10497 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10498 | rm -f conftest.er1 |
---|
10499 | cat conftest.err >&5 |
---|
10500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10501 | (exit $ac_status); } >/dev/null; then |
---|
10502 | if test -s conftest.err; then |
---|
10503 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10504 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10505 | else |
---|
10506 | ac_cpp_err= |
---|
10507 | fi |
---|
10508 | else |
---|
10509 | ac_cpp_err=yes |
---|
10510 | fi |
---|
10511 | if test -z "$ac_cpp_err"; then |
---|
10512 | ac_header_preproc=yes |
---|
10513 | else |
---|
10514 | echo "$as_me: failed program was:" >&5 |
---|
10515 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10516 | |
---|
10517 | ac_header_preproc=no |
---|
10518 | fi |
---|
10519 | rm -f conftest.err conftest.$ac_ext |
---|
10520 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
10521 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
10522 | |
---|
10523 | # So? What about this header? |
---|
10524 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
10525 | yes:no: ) |
---|
10526 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
10527 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
10528 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
10529 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
10530 | ac_header_preproc=yes |
---|
10531 | ;; |
---|
10532 | no:yes:* ) |
---|
10533 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
10534 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
10535 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
10536 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
10537 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
10538 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
10539 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
10540 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
10541 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
10542 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
10543 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
10544 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
10545 | ( |
---|
10546 | cat <<\_ASBOX |
---|
10547 | ## ---------------------------------------------- ## |
---|
10548 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
10549 | ## ---------------------------------------------- ## |
---|
10550 | _ASBOX |
---|
10551 | ) | |
---|
10552 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
10553 | ;; |
---|
10554 | esac |
---|
10555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10559 | else |
---|
10560 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
10561 | fi |
---|
10562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10563 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10564 | |
---|
10565 | fi |
---|
10566 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10567 | cat >>confdefs.h <<_ACEOF |
---|
10568 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10569 | _ACEOF |
---|
10570 | |
---|
10571 | fi |
---|
10572 | |
---|
10573 | done |
---|
10574 | |
---|
10575 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
10576 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
10577 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
10578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10579 | else |
---|
10580 | if test "$cross_compiling" = yes; then |
---|
10581 | ac_cv_func_malloc_0_nonnull=no |
---|
10582 | else |
---|
10583 | cat >conftest.$ac_ext <<_ACEOF |
---|
10584 | /* confdefs.h. */ |
---|
10585 | _ACEOF |
---|
10586 | cat confdefs.h >>conftest.$ac_ext |
---|
10587 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10588 | /* end confdefs.h. */ |
---|
10589 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
10590 | # include <stdlib.h> |
---|
10591 | #else |
---|
10592 | char *malloc (); |
---|
10593 | #endif |
---|
10594 | |
---|
10595 | int |
---|
10596 | main () |
---|
10597 | { |
---|
10598 | exit (malloc (0) ? 0 : 1); |
---|
10599 | ; |
---|
10600 | return 0; |
---|
10601 | } |
---|
10602 | _ACEOF |
---|
10603 | rm -f conftest$ac_exeext |
---|
10604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10605 | (eval $ac_link) 2>&5 |
---|
10606 | ac_status=$? |
---|
10607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10608 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
10609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10610 | (eval $ac_try) 2>&5 |
---|
10611 | ac_status=$? |
---|
10612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10613 | (exit $ac_status); }; }; then |
---|
10614 | ac_cv_func_malloc_0_nonnull=yes |
---|
10615 | else |
---|
10616 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
10617 | echo "$as_me: failed program was:" >&5 |
---|
10618 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10619 | |
---|
10620 | ( exit $ac_status ) |
---|
10621 | ac_cv_func_malloc_0_nonnull=no |
---|
10622 | fi |
---|
10623 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
10624 | fi |
---|
10625 | fi |
---|
10626 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
10627 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
10628 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
10629 | |
---|
10630 | cat >>confdefs.h <<\_ACEOF |
---|
10631 | #define HAVE_MALLOC 1 |
---|
10632 | _ACEOF |
---|
10633 | |
---|
10634 | else |
---|
10635 | cat >>confdefs.h <<\_ACEOF |
---|
10636 | #define HAVE_MALLOC 0 |
---|
10637 | _ACEOF |
---|
10638 | |
---|
10639 | case $LIBOBJS in |
---|
10640 | "malloc.$ac_objext" | \ |
---|
10641 | *" malloc.$ac_objext" | \ |
---|
10642 | "malloc.$ac_objext "* | \ |
---|
10643 | *" malloc.$ac_objext "* ) ;; |
---|
10644 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
10645 | esac |
---|
10646 | |
---|
10647 | |
---|
10648 | cat >>confdefs.h <<\_ACEOF |
---|
10649 | #define malloc rpl_malloc |
---|
10650 | _ACEOF |
---|
10651 | |
---|
10652 | fi |
---|
10653 | |
---|
10654 | |
---|
10655 | |
---|
10656 | |
---|
10657 | |
---|
10658 | for ac_func in bzero sqrt |
---|
10659 | do |
---|
10660 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
10661 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
10662 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
10663 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
10664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10665 | else |
---|
10666 | cat >conftest.$ac_ext <<_ACEOF |
---|
10667 | /* confdefs.h. */ |
---|
10668 | _ACEOF |
---|
10669 | cat confdefs.h >>conftest.$ac_ext |
---|
10670 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10671 | /* end confdefs.h. */ |
---|
10672 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
10673 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10674 | #define $ac_func innocuous_$ac_func |
---|
10675 | |
---|
10676 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10677 | which can conflict with char $ac_func (); below. |
---|
10678 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10679 | <limits.h> exists even on freestanding compilers. */ |
---|
10680 | |
---|
10681 | #ifdef __STDC__ |
---|
10682 | # include <limits.h> |
---|
10683 | #else |
---|
10684 | # include <assert.h> |
---|
10685 | #endif |
---|
10686 | |
---|
10687 | #undef $ac_func |
---|
10688 | |
---|
10689 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10690 | #ifdef __cplusplus |
---|
10691 | extern "C" |
---|
10692 | { |
---|
10693 | #endif |
---|
10694 | /* We use char because int might match the return type of a gcc2 |
---|
10695 | builtin and then its argument prototype would still apply. */ |
---|
10696 | char $ac_func (); |
---|
10697 | /* The GNU C library defines this for functions which it implements |
---|
10698 | to always fail with ENOSYS. Some functions are actually named |
---|
10699 | something starting with __ and the normal name is an alias. */ |
---|
10700 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
10701 | choke me |
---|
10702 | #else |
---|
10703 | char (*f) () = $ac_func; |
---|
10704 | #endif |
---|
10705 | #ifdef __cplusplus |
---|
10706 | } |
---|
10707 | #endif |
---|
10708 | |
---|
10709 | int |
---|
10710 | main () |
---|
10711 | { |
---|
10712 | return f != $ac_func; |
---|
10713 | ; |
---|
10714 | return 0; |
---|
10715 | } |
---|
10716 | _ACEOF |
---|
10717 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10719 | (eval $ac_link) 2>conftest.er1 |
---|
10720 | ac_status=$? |
---|
10721 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10722 | rm -f conftest.er1 |
---|
10723 | cat conftest.err >&5 |
---|
10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10725 | (exit $ac_status); } && |
---|
10726 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10727 | || test ! -s conftest.err' |
---|
10728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10729 | (eval $ac_try) 2>&5 |
---|
10730 | ac_status=$? |
---|
10731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10732 | (exit $ac_status); }; } && |
---|
10733 | { ac_try='test -s conftest$ac_exeext' |
---|
10734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10735 | (eval $ac_try) 2>&5 |
---|
10736 | ac_status=$? |
---|
10737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10738 | (exit $ac_status); }; }; then |
---|
10739 | eval "$as_ac_var=yes" |
---|
10740 | else |
---|
10741 | echo "$as_me: failed program was:" >&5 |
---|
10742 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10743 | |
---|
10744 | eval "$as_ac_var=no" |
---|
10745 | fi |
---|
10746 | rm -f conftest.err conftest.$ac_objext \ |
---|
10747 | conftest$ac_exeext conftest.$ac_ext |
---|
10748 | fi |
---|
10749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
10750 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
10751 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
10752 | cat >>confdefs.h <<_ACEOF |
---|
10753 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
10754 | _ACEOF |
---|
10755 | |
---|
10756 | fi |
---|
10757 | done |
---|
10758 | |
---|
10759 | |
---|
10760 | ###################### |
---|
10761 | ## OUTPUT CONFIGURE ## |
---|
10762 | ###################### |
---|
10763 | 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" |
---|
10764 | |
---|
10765 | |
---|
10766 | cat >confcache <<\_ACEOF |
---|
10767 | # This file is a shell script that caches the results of configure |
---|
10768 | # tests run on this system so they can be shared between configure |
---|
10769 | # scripts and configure runs, see configure's option --config-cache. |
---|
10770 | # It is not useful on other systems. If it contains results you don't |
---|
10771 | # want to keep, you may remove or edit it. |
---|
10772 | # |
---|
10773 | # config.status only pays attention to the cache file if you give it |
---|
10774 | # the --recheck option to rerun configure. |
---|
10775 | # |
---|
10776 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
10777 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
10778 | # following values. |
---|
10779 | |
---|
10780 | _ACEOF |
---|
10781 | |
---|
10782 | # The following way of writing the cache mishandles newlines in values, |
---|
10783 | # but we know of no workaround that is simple, portable, and efficient. |
---|
10784 | # So, don't put newlines in cache variables' values. |
---|
10785 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
10786 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
10787 | { |
---|
10788 | (set) 2>&1 | |
---|
10789 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
10790 | *ac_space=\ *) |
---|
10791 | # `set' does not quote correctly, so add quotes (double-quote |
---|
10792 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
10793 | sed -n \ |
---|
10794 | "s/'/'\\\\''/g; |
---|
10795 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
10796 | ;; |
---|
10797 | *) |
---|
10798 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
10799 | sed -n \ |
---|
10800 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
10801 | ;; |
---|
10802 | esac; |
---|
10803 | } | |
---|
10804 | sed ' |
---|
10805 | t clear |
---|
10806 | : clear |
---|
10807 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
10808 | t end |
---|
10809 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
10810 | : end' >>confcache |
---|
10811 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
10812 | if test -w $cache_file; then |
---|
10813 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
10814 | cat confcache >$cache_file |
---|
10815 | else |
---|
10816 | echo "not updating unwritable cache $cache_file" |
---|
10817 | fi |
---|
10818 | fi |
---|
10819 | rm -f confcache |
---|
10820 | |
---|
10821 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
10822 | # Let make expand exec_prefix. |
---|
10823 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
10824 | |
---|
10825 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
10826 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
10827 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
10828 | # (actually we leave an empty line to preserve line numbers). |
---|
10829 | if test "x$srcdir" = x.; then |
---|
10830 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
10831 | s/:*\$(srcdir):*/:/; |
---|
10832 | s/:*\${srcdir}:*/:/; |
---|
10833 | s/:*@srcdir@:*/:/; |
---|
10834 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
10835 | s/:*$//; |
---|
10836 | s/^[^=]*=[ ]*$//; |
---|
10837 | }' |
---|
10838 | fi |
---|
10839 | |
---|
10840 | DEFS=-DHAVE_CONFIG_H |
---|
10841 | |
---|
10842 | ac_libobjs= |
---|
10843 | ac_ltlibobjs= |
---|
10844 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
10845 | # 1. Remove the extension, and $U if already installed. |
---|
10846 | ac_i=`echo "$ac_i" | |
---|
10847 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
10848 | # 2. Add them. |
---|
10849 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
10850 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
10851 | done |
---|
10852 | LIBOBJS=$ac_libobjs |
---|
10853 | |
---|
10854 | LTLIBOBJS=$ac_ltlibobjs |
---|
10855 | |
---|
10856 | |
---|
10857 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
10858 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
10859 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10860 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
10861 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10862 | { (exit 1); exit 1; }; } |
---|
10863 | fi |
---|
10864 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
10865 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
10866 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10867 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
10868 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10869 | { (exit 1); exit 1; }; } |
---|
10870 | fi |
---|
10871 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
10872 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
10873 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10874 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
10875 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10876 | { (exit 1); exit 1; }; } |
---|
10877 | fi |
---|
10878 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
10879 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
10880 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10881 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
10882 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10883 | { (exit 1); exit 1; }; } |
---|
10884 | fi |
---|
10885 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
10886 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
10887 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10888 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
10889 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10890 | { (exit 1); exit 1; }; } |
---|
10891 | fi |
---|
10892 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
10893 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
10894 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10895 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
10896 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10897 | { (exit 1); exit 1; }; } |
---|
10898 | fi |
---|
10899 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
10900 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
10901 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10902 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
10903 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10904 | { (exit 1); exit 1; }; } |
---|
10905 | fi |
---|
10906 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
10907 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
10908 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10909 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
10910 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10911 | { (exit 1); exit 1; }; } |
---|
10912 | fi |
---|
10913 | |
---|
10914 | : ${CONFIG_STATUS=./config.status} |
---|
10915 | ac_clean_files_save=$ac_clean_files |
---|
10916 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
10917 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
10918 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
10919 | cat >$CONFIG_STATUS <<_ACEOF |
---|
10920 | #! $SHELL |
---|
10921 | # Generated by $as_me. |
---|
10922 | # Run this file to recreate the current configuration. |
---|
10923 | # Compiler output produced by configure, useful for debugging |
---|
10924 | # configure, is in config.log if it exists. |
---|
10925 | |
---|
10926 | debug=false |
---|
10927 | ac_cs_recheck=false |
---|
10928 | ac_cs_silent=false |
---|
10929 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
10930 | _ACEOF |
---|
10931 | |
---|
10932 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10933 | ## --------------------- ## |
---|
10934 | ## M4sh Initialization. ## |
---|
10935 | ## --------------------- ## |
---|
10936 | |
---|
10937 | # Be Bourne compatible |
---|
10938 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
10939 | emulate sh |
---|
10940 | NULLCMD=: |
---|
10941 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
10942 | # is contrary to our usage. Disable this feature. |
---|
10943 | alias -g '${1+"$@"}'='"$@"' |
---|
10944 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
10945 | set -o posix |
---|
10946 | fi |
---|
10947 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
10948 | |
---|
10949 | # Support unset when possible. |
---|
10950 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
10951 | as_unset=unset |
---|
10952 | else |
---|
10953 | as_unset=false |
---|
10954 | fi |
---|
10955 | |
---|
10956 | |
---|
10957 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
10958 | $as_unset ENV MAIL MAILPATH |
---|
10959 | PS1='$ ' |
---|
10960 | PS2='> ' |
---|
10961 | PS4='+ ' |
---|
10962 | |
---|
10963 | # NLS nuisances. |
---|
10964 | for as_var in \ |
---|
10965 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
10966 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
10967 | LC_TELEPHONE LC_TIME |
---|
10968 | do |
---|
10969 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
10970 | eval $as_var=C; export $as_var |
---|
10971 | else |
---|
10972 | $as_unset $as_var |
---|
10973 | fi |
---|
10974 | done |
---|
10975 | |
---|
10976 | # Required to use basename. |
---|
10977 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
10978 | as_expr=expr |
---|
10979 | else |
---|
10980 | as_expr=false |
---|
10981 | fi |
---|
10982 | |
---|
10983 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
10984 | as_basename=basename |
---|
10985 | else |
---|
10986 | as_basename=false |
---|
10987 | fi |
---|
10988 | |
---|
10989 | |
---|
10990 | # Name of the executable. |
---|
10991 | as_me=`$as_basename "$0" || |
---|
10992 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
10993 | X"$0" : 'X\(//\)$' \| \ |
---|
10994 | X"$0" : 'X\(/\)$' \| \ |
---|
10995 | . : '\(.\)' 2>/dev/null || |
---|
10996 | echo X/"$0" | |
---|
10997 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
10998 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
10999 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
11000 | s/.*/./; q'` |
---|
11001 | |
---|
11002 | |
---|
11003 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
11004 | # Avoid depending upon Character Ranges. |
---|
11005 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
11006 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
11007 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
11008 | as_cr_digits='0123456789' |
---|
11009 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
11010 | |
---|
11011 | # The user is always right. |
---|
11012 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
11013 | echo "#! /bin/sh" >conf$$.sh |
---|
11014 | echo "exit 0" >>conf$$.sh |
---|
11015 | chmod +x conf$$.sh |
---|
11016 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
11017 | PATH_SEPARATOR=';' |
---|
11018 | else |
---|
11019 | PATH_SEPARATOR=: |
---|
11020 | fi |
---|
11021 | rm -f conf$$.sh |
---|
11022 | fi |
---|
11023 | |
---|
11024 | |
---|
11025 | as_lineno_1=$LINENO |
---|
11026 | as_lineno_2=$LINENO |
---|
11027 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
11028 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
11029 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
11030 | # Find who we are. Look in the path if we contain no path at all |
---|
11031 | # relative or not. |
---|
11032 | case $0 in |
---|
11033 | *[\\/]* ) as_myself=$0 ;; |
---|
11034 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
11035 | for as_dir in $PATH |
---|
11036 | do |
---|
11037 | IFS=$as_save_IFS |
---|
11038 | test -z "$as_dir" && as_dir=. |
---|
11039 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
11040 | done |
---|
11041 | |
---|
11042 | ;; |
---|
11043 | esac |
---|
11044 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
11045 | # in which case we are not to be found in the path. |
---|
11046 | if test "x$as_myself" = x; then |
---|
11047 | as_myself=$0 |
---|
11048 | fi |
---|
11049 | if test ! -f "$as_myself"; then |
---|
11050 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
11051 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
11052 | { (exit 1); exit 1; }; } |
---|
11053 | fi |
---|
11054 | case $CONFIG_SHELL in |
---|
11055 | '') |
---|
11056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
11057 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
11058 | do |
---|
11059 | IFS=$as_save_IFS |
---|
11060 | test -z "$as_dir" && as_dir=. |
---|
11061 | for as_base in sh bash ksh sh5; do |
---|
11062 | case $as_dir in |
---|
11063 | /*) |
---|
11064 | if ("$as_dir/$as_base" -c ' |
---|
11065 | as_lineno_1=$LINENO |
---|
11066 | as_lineno_2=$LINENO |
---|
11067 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
11068 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
11069 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
11070 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
11071 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
11072 | CONFIG_SHELL=$as_dir/$as_base |
---|
11073 | export CONFIG_SHELL |
---|
11074 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
11075 | fi;; |
---|
11076 | esac |
---|
11077 | done |
---|
11078 | done |
---|
11079 | ;; |
---|
11080 | esac |
---|
11081 | |
---|
11082 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
11083 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
11084 | # line-number line before each line; the second 'sed' does the real |
---|
11085 | # work. The second script uses 'N' to pair each line-number line |
---|
11086 | # with the numbered line, and appends trailing '-' during |
---|
11087 | # substitution so that $LINENO is not a special case at line end. |
---|
11088 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
11089 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
11090 | sed '=' <$as_myself | |
---|
11091 | sed ' |
---|
11092 | N |
---|
11093 | s,$,-, |
---|
11094 | : loop |
---|
11095 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
11096 | t loop |
---|
11097 | s,-$,, |
---|
11098 | s,^['$as_cr_digits']*\n,, |
---|
11099 | ' >$as_me.lineno && |
---|
11100 | chmod +x $as_me.lineno || |
---|
11101 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
11102 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
11103 | { (exit 1); exit 1; }; } |
---|
11104 | |
---|
11105 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
11106 | # (the dirname of $[0] is not the place where we might find the |
---|
11107 | # original and so on. Autoconf is especially sensible to this). |
---|
11108 | . ./$as_me.lineno |
---|
11109 | # Exit status is that of the last command. |
---|
11110 | exit |
---|
11111 | } |
---|
11112 | |
---|
11113 | |
---|
11114 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
11115 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
11116 | ' ECHO_T=' ' ;; |
---|
11117 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
11118 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
11119 | esac |
---|
11120 | |
---|
11121 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
11122 | as_expr=expr |
---|
11123 | else |
---|
11124 | as_expr=false |
---|
11125 | fi |
---|
11126 | |
---|
11127 | rm -f conf$$ conf$$.exe conf$$.file |
---|
11128 | echo >conf$$.file |
---|
11129 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
11130 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
11131 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
11132 | if test -f conf$$.exe; then |
---|
11133 | # Don't use ln at all; we don't have any links |
---|
11134 | as_ln_s='cp -p' |
---|
11135 | else |
---|
11136 | as_ln_s='ln -s' |
---|
11137 | fi |
---|
11138 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
11139 | as_ln_s=ln |
---|
11140 | else |
---|
11141 | as_ln_s='cp -p' |
---|
11142 | fi |
---|
11143 | rm -f conf$$ conf$$.exe conf$$.file |
---|
11144 | |
---|
11145 | if mkdir -p . 2>/dev/null; then |
---|
11146 | as_mkdir_p=: |
---|
11147 | else |
---|
11148 | test -d ./-p && rmdir ./-p |
---|
11149 | as_mkdir_p=false |
---|
11150 | fi |
---|
11151 | |
---|
11152 | as_executable_p="test -f" |
---|
11153 | |
---|
11154 | # Sed expression to map a string onto a valid CPP name. |
---|
11155 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
11156 | |
---|
11157 | # Sed expression to map a string onto a valid variable name. |
---|
11158 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
11159 | |
---|
11160 | |
---|
11161 | # IFS |
---|
11162 | # We need space, tab and new line, in precisely that order. |
---|
11163 | as_nl=' |
---|
11164 | ' |
---|
11165 | IFS=" $as_nl" |
---|
11166 | |
---|
11167 | # CDPATH. |
---|
11168 | $as_unset CDPATH |
---|
11169 | |
---|
11170 | exec 6>&1 |
---|
11171 | |
---|
11172 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
11173 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
11174 | # values after options handling. Logging --version etc. is OK. |
---|
11175 | exec 5>>config.log |
---|
11176 | { |
---|
11177 | echo |
---|
11178 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
11179 | ## Running $as_me. ## |
---|
11180 | _ASBOX |
---|
11181 | } >&5 |
---|
11182 | cat >&5 <<_CSEOF |
---|
11183 | |
---|
11184 | This file was extended by orxonox $as_me 0.3.1_alpha, which was |
---|
11185 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
11186 | |
---|
11187 | CONFIG_FILES = $CONFIG_FILES |
---|
11188 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
11189 | CONFIG_LINKS = $CONFIG_LINKS |
---|
11190 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
11191 | $ $0 $@ |
---|
11192 | |
---|
11193 | _CSEOF |
---|
11194 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
11195 | echo >&5 |
---|
11196 | _ACEOF |
---|
11197 | |
---|
11198 | # Files that config.status was made for. |
---|
11199 | if test -n "$ac_config_files"; then |
---|
11200 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
11201 | fi |
---|
11202 | |
---|
11203 | if test -n "$ac_config_headers"; then |
---|
11204 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
11205 | fi |
---|
11206 | |
---|
11207 | if test -n "$ac_config_links"; then |
---|
11208 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
11209 | fi |
---|
11210 | |
---|
11211 | if test -n "$ac_config_commands"; then |
---|
11212 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
11213 | fi |
---|
11214 | |
---|
11215 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11216 | |
---|
11217 | ac_cs_usage="\ |
---|
11218 | \`$as_me' instantiates files from templates according to the |
---|
11219 | current configuration. |
---|
11220 | |
---|
11221 | Usage: $0 [OPTIONS] [FILE]... |
---|
11222 | |
---|
11223 | -h, --help print this help, then exit |
---|
11224 | -V, --version print version number, then exit |
---|
11225 | -q, --quiet do not print progress messages |
---|
11226 | -d, --debug don't remove temporary files |
---|
11227 | --recheck update $as_me by reconfiguring in the same conditions |
---|
11228 | --file=FILE[:TEMPLATE] |
---|
11229 | instantiate the configuration file FILE |
---|
11230 | --header=FILE[:TEMPLATE] |
---|
11231 | instantiate the configuration header FILE |
---|
11232 | |
---|
11233 | Configuration files: |
---|
11234 | $config_files |
---|
11235 | |
---|
11236 | Configuration headers: |
---|
11237 | $config_headers |
---|
11238 | |
---|
11239 | Configuration commands: |
---|
11240 | $config_commands |
---|
11241 | |
---|
11242 | Report bugs to <bug-autoconf@gnu.org>." |
---|
11243 | _ACEOF |
---|
11244 | |
---|
11245 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11246 | ac_cs_version="\\ |
---|
11247 | orxonox config.status 0.3.1_alpha |
---|
11248 | configured by $0, generated by GNU Autoconf 2.59, |
---|
11249 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
11250 | |
---|
11251 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
11252 | This config.status script is free software; the Free Software Foundation |
---|
11253 | gives unlimited permission to copy, distribute and modify it." |
---|
11254 | srcdir=$srcdir |
---|
11255 | INSTALL="$INSTALL" |
---|
11256 | _ACEOF |
---|
11257 | |
---|
11258 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11259 | # If no file are specified by the user, then we need to provide default |
---|
11260 | # value. By we need to know if files were specified by the user. |
---|
11261 | ac_need_defaults=: |
---|
11262 | while test $# != 0 |
---|
11263 | do |
---|
11264 | case $1 in |
---|
11265 | --*=*) |
---|
11266 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
11267 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
11268 | ac_shift=: |
---|
11269 | ;; |
---|
11270 | -*) |
---|
11271 | ac_option=$1 |
---|
11272 | ac_optarg=$2 |
---|
11273 | ac_shift=shift |
---|
11274 | ;; |
---|
11275 | *) # This is not an option, so the user has probably given explicit |
---|
11276 | # arguments. |
---|
11277 | ac_option=$1 |
---|
11278 | ac_need_defaults=false;; |
---|
11279 | esac |
---|
11280 | |
---|
11281 | case $ac_option in |
---|
11282 | # Handling of the options. |
---|
11283 | _ACEOF |
---|
11284 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11285 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
11286 | ac_cs_recheck=: ;; |
---|
11287 | --version | --vers* | -V ) |
---|
11288 | echo "$ac_cs_version"; exit 0 ;; |
---|
11289 | --he | --h) |
---|
11290 | # Conflict between --help and --header |
---|
11291 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
11292 | Try \`$0 --help' for more information." >&5 |
---|
11293 | echo "$as_me: error: ambiguous option: $1 |
---|
11294 | Try \`$0 --help' for more information." >&2;} |
---|
11295 | { (exit 1); exit 1; }; };; |
---|
11296 | --help | --hel | -h ) |
---|
11297 | echo "$ac_cs_usage"; exit 0 ;; |
---|
11298 | --debug | --d* | -d ) |
---|
11299 | debug=: ;; |
---|
11300 | --file | --fil | --fi | --f ) |
---|
11301 | $ac_shift |
---|
11302 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
11303 | ac_need_defaults=false;; |
---|
11304 | --header | --heade | --head | --hea ) |
---|
11305 | $ac_shift |
---|
11306 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
11307 | ac_need_defaults=false;; |
---|
11308 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
11309 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
11310 | ac_cs_silent=: ;; |
---|
11311 | |
---|
11312 | # This is an error. |
---|
11313 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
11314 | Try \`$0 --help' for more information." >&5 |
---|
11315 | echo "$as_me: error: unrecognized option: $1 |
---|
11316 | Try \`$0 --help' for more information." >&2;} |
---|
11317 | { (exit 1); exit 1; }; } ;; |
---|
11318 | |
---|
11319 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
11320 | |
---|
11321 | esac |
---|
11322 | shift |
---|
11323 | done |
---|
11324 | |
---|
11325 | ac_configure_extra_args= |
---|
11326 | |
---|
11327 | if $ac_cs_silent; then |
---|
11328 | exec 6>/dev/null |
---|
11329 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
11330 | fi |
---|
11331 | |
---|
11332 | _ACEOF |
---|
11333 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11334 | if \$ac_cs_recheck; then |
---|
11335 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
11336 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
11337 | fi |
---|
11338 | |
---|
11339 | _ACEOF |
---|
11340 | |
---|
11341 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11342 | # |
---|
11343 | # INIT-COMMANDS section. |
---|
11344 | # |
---|
11345 | |
---|
11346 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
11347 | |
---|
11348 | _ACEOF |
---|
11349 | |
---|
11350 | |
---|
11351 | |
---|
11352 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11353 | for ac_config_target in $ac_config_targets |
---|
11354 | do |
---|
11355 | case "$ac_config_target" in |
---|
11356 | # Handling of arguments. |
---|
11357 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
11358 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
11359 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
11360 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
11361 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
11362 | "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;; |
---|
11363 | "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;; |
---|
11364 | "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;; |
---|
11365 | "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;; |
---|
11366 | "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;; |
---|
11367 | "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;; |
---|
11368 | "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;; |
---|
11369 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
11370 | "src/lib/gui/gtk_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gtk_gui/Makefile" ;; |
---|
11371 | "src/lib/gui/gl_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gl_gui/Makefile" ;; |
---|
11372 | "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; |
---|
11373 | "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; |
---|
11374 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
11375 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
11376 | "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;; |
---|
11377 | "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;; |
---|
11378 | "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;; |
---|
11379 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
11380 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
11381 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
11382 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
11383 | { (exit 1); exit 1; }; };; |
---|
11384 | esac |
---|
11385 | done |
---|
11386 | |
---|
11387 | # If the user did not use the arguments to specify the items to instantiate, |
---|
11388 | # then the envvar interface is used. Set only those that are not. |
---|
11389 | # We use the long form for the default assignment because of an extremely |
---|
11390 | # bizarre bug on SunOS 4.1.3. |
---|
11391 | if $ac_need_defaults; then |
---|
11392 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
11393 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
11394 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
11395 | fi |
---|
11396 | |
---|
11397 | # Have a temporary directory for convenience. Make it in the build tree |
---|
11398 | # simply because there is no reason to put it here, and in addition, |
---|
11399 | # creating and moving files from /tmp can sometimes cause problems. |
---|
11400 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
11401 | $debug || |
---|
11402 | { |
---|
11403 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
11404 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
11405 | } |
---|
11406 | |
---|
11407 | # Create a (secure) tmp directory for tmp files. |
---|
11408 | |
---|
11409 | { |
---|
11410 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
11411 | test -n "$tmp" && test -d "$tmp" |
---|
11412 | } || |
---|
11413 | { |
---|
11414 | tmp=./confstat$$-$RANDOM |
---|
11415 | (umask 077 && mkdir $tmp) |
---|
11416 | } || |
---|
11417 | { |
---|
11418 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
11419 | { (exit 1); exit 1; } |
---|
11420 | } |
---|
11421 | |
---|
11422 | _ACEOF |
---|
11423 | |
---|
11424 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11425 | |
---|
11426 | # |
---|
11427 | # CONFIG_FILES section. |
---|
11428 | # |
---|
11429 | |
---|
11430 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
11431 | # This happens for instance when ./config.status config.h |
---|
11432 | if test -n "\$CONFIG_FILES"; then |
---|
11433 | # Protect against being on the right side of a sed subst in config.status. |
---|
11434 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
11435 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
11436 | s,@SHELL@,$SHELL,;t t |
---|
11437 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
11438 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
11439 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
11440 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
11441 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
11442 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
11443 | s,@exec_prefix@,$exec_prefix,;t t |
---|
11444 | s,@prefix@,$prefix,;t t |
---|
11445 | s,@program_transform_name@,$program_transform_name,;t t |
---|
11446 | s,@bindir@,$bindir,;t t |
---|
11447 | s,@sbindir@,$sbindir,;t t |
---|
11448 | s,@libexecdir@,$libexecdir,;t t |
---|
11449 | s,@datadir@,$datadir,;t t |
---|
11450 | s,@sysconfdir@,$sysconfdir,;t t |
---|
11451 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
11452 | s,@localstatedir@,$localstatedir,;t t |
---|
11453 | s,@libdir@,$libdir,;t t |
---|
11454 | s,@includedir@,$includedir,;t t |
---|
11455 | s,@oldincludedir@,$oldincludedir,;t t |
---|
11456 | s,@infodir@,$infodir,;t t |
---|
11457 | s,@mandir@,$mandir,;t t |
---|
11458 | s,@build_alias@,$build_alias,;t t |
---|
11459 | s,@host_alias@,$host_alias,;t t |
---|
11460 | s,@target_alias@,$target_alias,;t t |
---|
11461 | s,@DEFS@,$DEFS,;t t |
---|
11462 | s,@ECHO_C@,$ECHO_C,;t t |
---|
11463 | s,@ECHO_N@,$ECHO_N,;t t |
---|
11464 | s,@ECHO_T@,$ECHO_T,;t t |
---|
11465 | s,@LIBS@,$LIBS,;t t |
---|
11466 | s,@build@,$build,;t t |
---|
11467 | s,@build_cpu@,$build_cpu,;t t |
---|
11468 | s,@build_vendor@,$build_vendor,;t t |
---|
11469 | s,@build_os@,$build_os,;t t |
---|
11470 | s,@host@,$host,;t t |
---|
11471 | s,@host_cpu@,$host_cpu,;t t |
---|
11472 | s,@host_vendor@,$host_vendor,;t t |
---|
11473 | s,@host_os@,$host_os,;t t |
---|
11474 | s,@target@,$target,;t t |
---|
11475 | s,@target_cpu@,$target_cpu,;t t |
---|
11476 | s,@target_vendor@,$target_vendor,;t t |
---|
11477 | s,@target_os@,$target_os,;t t |
---|
11478 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
11479 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
11480 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
11481 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
11482 | s,@PACKAGE@,$PACKAGE,;t t |
---|
11483 | s,@VERSION@,$VERSION,;t t |
---|
11484 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
11485 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
11486 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
11487 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
11488 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
11489 | s,@install_sh@,$install_sh,;t t |
---|
11490 | s,@STRIP@,$STRIP,;t t |
---|
11491 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
11492 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
11493 | s,@mkdir_p@,$mkdir_p,;t t |
---|
11494 | s,@AWK@,$AWK,;t t |
---|
11495 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
11496 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
11497 | s,@AMTAR@,$AMTAR,;t t |
---|
11498 | s,@am__tar@,$am__tar,;t t |
---|
11499 | s,@am__untar@,$am__untar,;t t |
---|
11500 | s,@CXX@,$CXX,;t t |
---|
11501 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
11502 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
11503 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
11504 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
11505 | s,@EXEEXT@,$EXEEXT,;t t |
---|
11506 | s,@OBJEXT@,$OBJEXT,;t t |
---|
11507 | s,@DEPDIR@,$DEPDIR,;t t |
---|
11508 | s,@am__include@,$am__include,;t t |
---|
11509 | s,@am__quote@,$am__quote,;t t |
---|
11510 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
11511 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
11512 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
11513 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
11514 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
11515 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
11516 | s,@RANLIB@,$RANLIB,;t t |
---|
11517 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
11518 | s,@CC@,$CC,;t t |
---|
11519 | s,@CFLAGS@,$CFLAGS,;t t |
---|
11520 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
11521 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
11522 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
11523 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
11524 | s,@CPP@,$CPP,;t t |
---|
11525 | s,@EGREP@,$EGREP,;t t |
---|
11526 | s,@DEBUG@,$DEBUG,;t t |
---|
11527 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
11528 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
11529 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
11530 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
11531 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
11532 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
11533 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
11534 | s,@GPROF@,$GPROF,;t t |
---|
11535 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
11536 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
11537 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
11538 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
11539 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
11540 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
11541 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
11542 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
11543 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
11544 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
11545 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
11546 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
11547 | CEOF |
---|
11548 | |
---|
11549 | _ACEOF |
---|
11550 | |
---|
11551 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11552 | # Split the substitutions into bite-sized pieces for seds with |
---|
11553 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
11554 | ac_max_sed_lines=48 |
---|
11555 | ac_sed_frag=1 # Number of current file. |
---|
11556 | ac_beg=1 # First line for current file. |
---|
11557 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
11558 | ac_more_lines=: |
---|
11559 | ac_sed_cmds= |
---|
11560 | while $ac_more_lines; do |
---|
11561 | if test $ac_beg -gt 1; then |
---|
11562 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
11563 | else |
---|
11564 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
11565 | fi |
---|
11566 | if test ! -s $tmp/subs.frag; then |
---|
11567 | ac_more_lines=false |
---|
11568 | else |
---|
11569 | # The purpose of the label and of the branching condition is to |
---|
11570 | # speed up the sed processing (if there are no `@' at all, there |
---|
11571 | # is no need to browse any of the substitutions). |
---|
11572 | # These are the two extra sed commands mentioned above. |
---|
11573 | (echo ':t |
---|
11574 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
11575 | if test -z "$ac_sed_cmds"; then |
---|
11576 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
11577 | else |
---|
11578 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
11579 | fi |
---|
11580 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
11581 | ac_beg=$ac_end |
---|
11582 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
11583 | fi |
---|
11584 | done |
---|
11585 | if test -z "$ac_sed_cmds"; then |
---|
11586 | ac_sed_cmds=cat |
---|
11587 | fi |
---|
11588 | fi # test -n "$CONFIG_FILES" |
---|
11589 | |
---|
11590 | _ACEOF |
---|
11591 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11592 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
11593 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
11594 | case $ac_file in |
---|
11595 | - | *:- | *:-:* ) # input from stdin |
---|
11596 | cat >$tmp/stdin |
---|
11597 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11598 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11599 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11600 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11601 | * ) ac_file_in=$ac_file.in ;; |
---|
11602 | esac |
---|
11603 | |
---|
11604 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
11605 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
11606 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11607 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
11608 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
11609 | X"$ac_file" : 'X\(/\)' \| \ |
---|
11610 | . : '\(.\)' 2>/dev/null || |
---|
11611 | echo X"$ac_file" | |
---|
11612 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11613 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11614 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11615 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11616 | s/.*/./; q'` |
---|
11617 | { if $as_mkdir_p; then |
---|
11618 | mkdir -p "$ac_dir" |
---|
11619 | else |
---|
11620 | as_dir="$ac_dir" |
---|
11621 | as_dirs= |
---|
11622 | while test ! -d "$as_dir"; do |
---|
11623 | as_dirs="$as_dir $as_dirs" |
---|
11624 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
11625 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11626 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
11627 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
11628 | X"$as_dir" : 'X\(/\)' \| \ |
---|
11629 | . : '\(.\)' 2>/dev/null || |
---|
11630 | echo X"$as_dir" | |
---|
11631 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11632 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11633 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11634 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11635 | s/.*/./; q'` |
---|
11636 | done |
---|
11637 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
11638 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
11639 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
11640 | { (exit 1); exit 1; }; }; } |
---|
11641 | |
---|
11642 | ac_builddir=. |
---|
11643 | |
---|
11644 | if test "$ac_dir" != .; then |
---|
11645 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
11646 | # A "../" for each directory in $ac_dir_suffix. |
---|
11647 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
11648 | else |
---|
11649 | ac_dir_suffix= ac_top_builddir= |
---|
11650 | fi |
---|
11651 | |
---|
11652 | case $srcdir in |
---|
11653 | .) # No --srcdir option. We are building in place. |
---|
11654 | ac_srcdir=. |
---|
11655 | if test -z "$ac_top_builddir"; then |
---|
11656 | ac_top_srcdir=. |
---|
11657 | else |
---|
11658 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
11659 | fi ;; |
---|
11660 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
11661 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
11662 | ac_top_srcdir=$srcdir ;; |
---|
11663 | *) # Relative path. |
---|
11664 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
11665 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
11666 | esac |
---|
11667 | |
---|
11668 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
11669 | # the directories may not exist. |
---|
11670 | case `pwd` in |
---|
11671 | .) ac_abs_builddir="$ac_dir";; |
---|
11672 | *) |
---|
11673 | case "$ac_dir" in |
---|
11674 | .) ac_abs_builddir=`pwd`;; |
---|
11675 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
11676 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
11677 | esac;; |
---|
11678 | esac |
---|
11679 | case $ac_abs_builddir in |
---|
11680 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
11681 | *) |
---|
11682 | case ${ac_top_builddir}. in |
---|
11683 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
11684 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
11685 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
11686 | esac;; |
---|
11687 | esac |
---|
11688 | case $ac_abs_builddir in |
---|
11689 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
11690 | *) |
---|
11691 | case $ac_srcdir in |
---|
11692 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
11693 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
11694 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
11695 | esac;; |
---|
11696 | esac |
---|
11697 | case $ac_abs_builddir in |
---|
11698 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
11699 | *) |
---|
11700 | case $ac_top_srcdir in |
---|
11701 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
11702 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
11703 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
11704 | esac;; |
---|
11705 | esac |
---|
11706 | |
---|
11707 | |
---|
11708 | case $INSTALL in |
---|
11709 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
11710 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
11711 | esac |
---|
11712 | |
---|
11713 | if test x"$ac_file" != x-; then |
---|
11714 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
11715 | echo "$as_me: creating $ac_file" >&6;} |
---|
11716 | rm -f "$ac_file" |
---|
11717 | fi |
---|
11718 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
11719 | # use $as_me), people would be surprised to read: |
---|
11720 | # /* config.h. Generated by config.status. */ |
---|
11721 | if test x"$ac_file" = x-; then |
---|
11722 | configure_input= |
---|
11723 | else |
---|
11724 | configure_input="$ac_file. " |
---|
11725 | fi |
---|
11726 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
11727 | sed 's,.*/,,'` by configure." |
---|
11728 | |
---|
11729 | # First look for the input files in the build tree, otherwise in the |
---|
11730 | # src tree. |
---|
11731 | ac_file_inputs=`IFS=: |
---|
11732 | for f in $ac_file_in; do |
---|
11733 | case $f in |
---|
11734 | -) echo $tmp/stdin ;; |
---|
11735 | [\\/$]*) |
---|
11736 | # Absolute (can't be DOS-style, as IFS=:) |
---|
11737 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11738 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11739 | { (exit 1); exit 1; }; } |
---|
11740 | echo "$f";; |
---|
11741 | *) # Relative |
---|
11742 | if test -f "$f"; then |
---|
11743 | # Build tree |
---|
11744 | echo "$f" |
---|
11745 | elif test -f "$srcdir/$f"; then |
---|
11746 | # Source tree |
---|
11747 | echo "$srcdir/$f" |
---|
11748 | else |
---|
11749 | # /dev/null tree |
---|
11750 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11751 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11752 | { (exit 1); exit 1; }; } |
---|
11753 | fi;; |
---|
11754 | esac |
---|
11755 | done` || { (exit 1); exit 1; } |
---|
11756 | _ACEOF |
---|
11757 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11758 | sed "$ac_vpsub |
---|
11759 | $extrasub |
---|
11760 | _ACEOF |
---|
11761 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11762 | :t |
---|
11763 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
11764 | s,@configure_input@,$configure_input,;t t |
---|
11765 | s,@srcdir@,$ac_srcdir,;t t |
---|
11766 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
11767 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
11768 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
11769 | s,@builddir@,$ac_builddir,;t t |
---|
11770 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
11771 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
11772 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
11773 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
11774 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
11775 | rm -f $tmp/stdin |
---|
11776 | if test x"$ac_file" != x-; then |
---|
11777 | mv $tmp/out $ac_file |
---|
11778 | else |
---|
11779 | cat $tmp/out |
---|
11780 | rm -f $tmp/out |
---|
11781 | fi |
---|
11782 | |
---|
11783 | done |
---|
11784 | _ACEOF |
---|
11785 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11786 | |
---|
11787 | # |
---|
11788 | # CONFIG_HEADER section. |
---|
11789 | # |
---|
11790 | |
---|
11791 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
11792 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
11793 | # |
---|
11794 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
11795 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
11796 | ac_dB='[ ].*$,\1#\2' |
---|
11797 | ac_dC=' ' |
---|
11798 | ac_dD=',;t' |
---|
11799 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
11800 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
11801 | ac_uB='$,\1#\2define\3' |
---|
11802 | ac_uC=' ' |
---|
11803 | ac_uD=',;t' |
---|
11804 | |
---|
11805 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
11806 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
11807 | case $ac_file in |
---|
11808 | - | *:- | *:-:* ) # input from stdin |
---|
11809 | cat >$tmp/stdin |
---|
11810 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11811 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11812 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11813 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11814 | * ) ac_file_in=$ac_file.in ;; |
---|
11815 | esac |
---|
11816 | |
---|
11817 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
11818 | echo "$as_me: creating $ac_file" >&6;} |
---|
11819 | |
---|
11820 | # First look for the input files in the build tree, otherwise in the |
---|
11821 | # src tree. |
---|
11822 | ac_file_inputs=`IFS=: |
---|
11823 | for f in $ac_file_in; do |
---|
11824 | case $f in |
---|
11825 | -) echo $tmp/stdin ;; |
---|
11826 | [\\/$]*) |
---|
11827 | # Absolute (can't be DOS-style, as IFS=:) |
---|
11828 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11829 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11830 | { (exit 1); exit 1; }; } |
---|
11831 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
11832 | echo "$f";; |
---|
11833 | *) # Relative |
---|
11834 | if test -f "$f"; then |
---|
11835 | # Build tree |
---|
11836 | echo "$f" |
---|
11837 | elif test -f "$srcdir/$f"; then |
---|
11838 | # Source tree |
---|
11839 | echo "$srcdir/$f" |
---|
11840 | else |
---|
11841 | # /dev/null tree |
---|
11842 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11843 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11844 | { (exit 1); exit 1; }; } |
---|
11845 | fi;; |
---|
11846 | esac |
---|
11847 | done` || { (exit 1); exit 1; } |
---|
11848 | # Remove the trailing spaces. |
---|
11849 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
11850 | |
---|
11851 | _ACEOF |
---|
11852 | |
---|
11853 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
11854 | # `conftest.undefs', that substitutes the proper values into |
---|
11855 | # config.h.in to produce config.h. The first handles `#define' |
---|
11856 | # templates, and the second `#undef' templates. |
---|
11857 | # And first: Protect against being on the right side of a sed subst in |
---|
11858 | # config.status. Protect against being in an unquoted here document |
---|
11859 | # in config.status. |
---|
11860 | rm -f conftest.defines conftest.undefs |
---|
11861 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
11862 | # Putting comments in sed scripts is not portable. |
---|
11863 | # |
---|
11864 | # `end' is used to avoid that the second main sed command (meant for |
---|
11865 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
11866 | # See the Autoconf documentation for `clear'. |
---|
11867 | cat >confdef2sed.sed <<\_ACEOF |
---|
11868 | s/[\\&,]/\\&/g |
---|
11869 | s,[\\$`],\\&,g |
---|
11870 | t clear |
---|
11871 | : clear |
---|
11872 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
11873 | t end |
---|
11874 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
11875 | : end |
---|
11876 | _ACEOF |
---|
11877 | # If some macros were called several times there might be several times |
---|
11878 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
11879 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
11880 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
11881 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
11882 | rm -f confdef2sed.sed |
---|
11883 | |
---|
11884 | # This sed command replaces #undef with comments. This is necessary, for |
---|
11885 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
11886 | # on some systems where configure will not decide to define it. |
---|
11887 | cat >>conftest.undefs <<\_ACEOF |
---|
11888 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
11889 | _ACEOF |
---|
11890 | |
---|
11891 | # Break up conftest.defines because some shells have a limit on the size |
---|
11892 | # of here documents, and old seds have small limits too (100 cmds). |
---|
11893 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
11894 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
11895 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
11896 | echo ' :' >>$CONFIG_STATUS |
---|
11897 | rm -f conftest.tail |
---|
11898 | while grep . conftest.defines >/dev/null |
---|
11899 | do |
---|
11900 | # Write a limited-size here document to $tmp/defines.sed. |
---|
11901 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
11902 | # Speed up: don't consider the non `#define' lines. |
---|
11903 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
11904 | # Work around the forget-to-reset-the-flag bug. |
---|
11905 | echo 't clr' >>$CONFIG_STATUS |
---|
11906 | echo ': clr' >>$CONFIG_STATUS |
---|
11907 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
11908 | echo 'CEOF |
---|
11909 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
11910 | rm -f $tmp/in |
---|
11911 | mv $tmp/out $tmp/in |
---|
11912 | ' >>$CONFIG_STATUS |
---|
11913 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
11914 | rm -f conftest.defines |
---|
11915 | mv conftest.tail conftest.defines |
---|
11916 | done |
---|
11917 | rm -f conftest.defines |
---|
11918 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
11919 | echo >>$CONFIG_STATUS |
---|
11920 | |
---|
11921 | # Break up conftest.undefs because some shells have a limit on the size |
---|
11922 | # of here documents, and old seds have small limits too (100 cmds). |
---|
11923 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
11924 | rm -f conftest.tail |
---|
11925 | while grep . conftest.undefs >/dev/null |
---|
11926 | do |
---|
11927 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
11928 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
11929 | # Speed up: don't consider the non `#undef' |
---|
11930 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
11931 | # Work around the forget-to-reset-the-flag bug. |
---|
11932 | echo 't clr' >>$CONFIG_STATUS |
---|
11933 | echo ': clr' >>$CONFIG_STATUS |
---|
11934 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
11935 | echo 'CEOF |
---|
11936 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
11937 | rm -f $tmp/in |
---|
11938 | mv $tmp/out $tmp/in |
---|
11939 | ' >>$CONFIG_STATUS |
---|
11940 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
11941 | rm -f conftest.undefs |
---|
11942 | mv conftest.tail conftest.undefs |
---|
11943 | done |
---|
11944 | rm -f conftest.undefs |
---|
11945 | |
---|
11946 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11947 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
11948 | # use $as_me), people would be surprised to read: |
---|
11949 | # /* config.h. Generated by config.status. */ |
---|
11950 | if test x"$ac_file" = x-; then |
---|
11951 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
11952 | else |
---|
11953 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
11954 | fi |
---|
11955 | cat $tmp/in >>$tmp/config.h |
---|
11956 | rm -f $tmp/in |
---|
11957 | if test x"$ac_file" != x-; then |
---|
11958 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
11959 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
11960 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
11961 | else |
---|
11962 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
11963 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11964 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
11965 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
11966 | X"$ac_file" : 'X\(/\)' \| \ |
---|
11967 | . : '\(.\)' 2>/dev/null || |
---|
11968 | echo X"$ac_file" | |
---|
11969 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11970 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11971 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11972 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11973 | s/.*/./; q'` |
---|
11974 | { if $as_mkdir_p; then |
---|
11975 | mkdir -p "$ac_dir" |
---|
11976 | else |
---|
11977 | as_dir="$ac_dir" |
---|
11978 | as_dirs= |
---|
11979 | while test ! -d "$as_dir"; do |
---|
11980 | as_dirs="$as_dir $as_dirs" |
---|
11981 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
11982 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11983 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
11984 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
11985 | X"$as_dir" : 'X\(/\)' \| \ |
---|
11986 | . : '\(.\)' 2>/dev/null || |
---|
11987 | echo X"$as_dir" | |
---|
11988 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11989 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11990 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11991 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11992 | s/.*/./; q'` |
---|
11993 | done |
---|
11994 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
11995 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
11996 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
11997 | { (exit 1); exit 1; }; }; } |
---|
11998 | |
---|
11999 | rm -f $ac_file |
---|
12000 | mv $tmp/config.h $ac_file |
---|
12001 | fi |
---|
12002 | else |
---|
12003 | cat $tmp/config.h |
---|
12004 | rm -f $tmp/config.h |
---|
12005 | fi |
---|
12006 | # Compute $ac_file's index in $config_headers. |
---|
12007 | _am_stamp_count=1 |
---|
12008 | for _am_header in $config_headers :; do |
---|
12009 | case $_am_header in |
---|
12010 | $ac_file | $ac_file:* ) |
---|
12011 | break ;; |
---|
12012 | * ) |
---|
12013 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
12014 | esac |
---|
12015 | done |
---|
12016 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
12017 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12018 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
12019 | X$ac_file : 'X\(//\)$' \| \ |
---|
12020 | X$ac_file : 'X\(/\)' \| \ |
---|
12021 | . : '\(.\)' 2>/dev/null || |
---|
12022 | echo X$ac_file | |
---|
12023 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12024 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12025 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12026 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12027 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
12028 | done |
---|
12029 | _ACEOF |
---|
12030 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
12031 | |
---|
12032 | # |
---|
12033 | # CONFIG_COMMANDS section. |
---|
12034 | # |
---|
12035 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
12036 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
12037 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
12038 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
12039 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12040 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
12041 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
12042 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
12043 | . : '\(.\)' 2>/dev/null || |
---|
12044 | echo X"$ac_dest" | |
---|
12045 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12046 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12047 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12048 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12049 | s/.*/./; q'` |
---|
12050 | { if $as_mkdir_p; then |
---|
12051 | mkdir -p "$ac_dir" |
---|
12052 | else |
---|
12053 | as_dir="$ac_dir" |
---|
12054 | as_dirs= |
---|
12055 | while test ! -d "$as_dir"; do |
---|
12056 | as_dirs="$as_dir $as_dirs" |
---|
12057 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
12058 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12059 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
12060 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
12061 | X"$as_dir" : 'X\(/\)' \| \ |
---|
12062 | . : '\(.\)' 2>/dev/null || |
---|
12063 | echo X"$as_dir" | |
---|
12064 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12065 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12066 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12067 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12068 | s/.*/./; q'` |
---|
12069 | done |
---|
12070 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
12071 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
12072 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
12073 | { (exit 1); exit 1; }; }; } |
---|
12074 | |
---|
12075 | ac_builddir=. |
---|
12076 | |
---|
12077 | if test "$ac_dir" != .; then |
---|
12078 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
12079 | # A "../" for each directory in $ac_dir_suffix. |
---|
12080 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
12081 | else |
---|
12082 | ac_dir_suffix= ac_top_builddir= |
---|
12083 | fi |
---|
12084 | |
---|
12085 | case $srcdir in |
---|
12086 | .) # No --srcdir option. We are building in place. |
---|
12087 | ac_srcdir=. |
---|
12088 | if test -z "$ac_top_builddir"; then |
---|
12089 | ac_top_srcdir=. |
---|
12090 | else |
---|
12091 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
12092 | fi ;; |
---|
12093 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
12094 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
12095 | ac_top_srcdir=$srcdir ;; |
---|
12096 | *) # Relative path. |
---|
12097 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
12098 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
12099 | esac |
---|
12100 | |
---|
12101 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
12102 | # the directories may not exist. |
---|
12103 | case `pwd` in |
---|
12104 | .) ac_abs_builddir="$ac_dir";; |
---|
12105 | *) |
---|
12106 | case "$ac_dir" in |
---|
12107 | .) ac_abs_builddir=`pwd`;; |
---|
12108 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
12109 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
12110 | esac;; |
---|
12111 | esac |
---|
12112 | case $ac_abs_builddir in |
---|
12113 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
12114 | *) |
---|
12115 | case ${ac_top_builddir}. in |
---|
12116 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
12117 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
12118 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
12119 | esac;; |
---|
12120 | esac |
---|
12121 | case $ac_abs_builddir in |
---|
12122 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
12123 | *) |
---|
12124 | case $ac_srcdir in |
---|
12125 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
12126 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
12127 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
12128 | esac;; |
---|
12129 | esac |
---|
12130 | case $ac_abs_builddir in |
---|
12131 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
12132 | *) |
---|
12133 | case $ac_top_srcdir in |
---|
12134 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
12135 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
12136 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
12137 | esac;; |
---|
12138 | esac |
---|
12139 | |
---|
12140 | |
---|
12141 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
12142 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
12143 | case $ac_dest in |
---|
12144 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
12145 | # Strip MF so we end up with the name of the file. |
---|
12146 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
12147 | # Check whether this is an Automake generated Makefile or not. |
---|
12148 | # We used to match only the files named `Makefile.in', but |
---|
12149 | # some people rename them; so instead we look at the file content. |
---|
12150 | # Grep'ing the first line is not enough: some people post-process |
---|
12151 | # each Makefile.in and add a new line on top of each file to say so. |
---|
12152 | # So let's grep whole file. |
---|
12153 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
12154 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
12155 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12156 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
12157 | X"$mf" : 'X\(//\)$' \| \ |
---|
12158 | X"$mf" : 'X\(/\)' \| \ |
---|
12159 | . : '\(.\)' 2>/dev/null || |
---|
12160 | echo X"$mf" | |
---|
12161 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12162 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12163 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12164 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12165 | s/.*/./; q'` |
---|
12166 | else |
---|
12167 | continue |
---|
12168 | fi |
---|
12169 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
12170 | # from the Makefile without running `make'. |
---|
12171 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
12172 | test -z "$DEPDIR" && continue |
---|
12173 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
12174 | test -z "am__include" && continue |
---|
12175 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
12176 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
12177 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
12178 | # Find all dependency output files, they are included files with |
---|
12179 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
12180 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
12181 | # expansion. |
---|
12182 | for file in `sed -n " |
---|
12183 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
12184 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
12185 | # Make sure the directory exists. |
---|
12186 | test -f "$dirpart/$file" && continue |
---|
12187 | fdir=`(dirname "$file") 2>/dev/null || |
---|
12188 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12189 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
12190 | X"$file" : 'X\(//\)$' \| \ |
---|
12191 | X"$file" : 'X\(/\)' \| \ |
---|
12192 | . : '\(.\)' 2>/dev/null || |
---|
12193 | echo X"$file" | |
---|
12194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12195 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12196 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12197 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12198 | s/.*/./; q'` |
---|
12199 | { if $as_mkdir_p; then |
---|
12200 | mkdir -p $dirpart/$fdir |
---|
12201 | else |
---|
12202 | as_dir=$dirpart/$fdir |
---|
12203 | as_dirs= |
---|
12204 | while test ! -d "$as_dir"; do |
---|
12205 | as_dirs="$as_dir $as_dirs" |
---|
12206 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
12207 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12208 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
12209 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
12210 | X"$as_dir" : 'X\(/\)' \| \ |
---|
12211 | . : '\(.\)' 2>/dev/null || |
---|
12212 | echo X"$as_dir" | |
---|
12213 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12214 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12215 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12216 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12217 | s/.*/./; q'` |
---|
12218 | done |
---|
12219 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
12220 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
12221 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
12222 | { (exit 1); exit 1; }; }; } |
---|
12223 | |
---|
12224 | # echo "creating $dirpart/$file" |
---|
12225 | echo '# dummy' > "$dirpart/$file" |
---|
12226 | done |
---|
12227 | done |
---|
12228 | ;; |
---|
12229 | esac |
---|
12230 | done |
---|
12231 | _ACEOF |
---|
12232 | |
---|
12233 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
12234 | |
---|
12235 | { (exit 0); exit 0; } |
---|
12236 | _ACEOF |
---|
12237 | chmod +x $CONFIG_STATUS |
---|
12238 | ac_clean_files=$ac_clean_files_save |
---|
12239 | |
---|
12240 | |
---|
12241 | # configure is writing to config.log, and then calls config.status. |
---|
12242 | # config.status does its own redirection, appending to config.log. |
---|
12243 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
12244 | # by configure, so config.status won't be able to write to it; its |
---|
12245 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
12246 | # effectively closing config.log, so it can be properly (re)opened and |
---|
12247 | # appended to by config.status. When coming back to configure, we |
---|
12248 | # need to make the FD available again. |
---|
12249 | if test "$no_create" != yes; then |
---|
12250 | ac_cs_success=: |
---|
12251 | ac_config_status_args= |
---|
12252 | test "$silent" = yes && |
---|
12253 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
12254 | exec 5>/dev/null |
---|
12255 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
12256 | exec 5>>config.log |
---|
12257 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
12258 | # would make configure fail if this is the last instruction. |
---|
12259 | $ac_cs_success || { (exit 1); exit 1; } |
---|
12260 | fi |
---|
12261 | |
---|