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 |
---|
870 | that logs differently on the many modules of orxonox.mode |
---|
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 |
---|
882 | --with-sub-projects also builds the subProjects while make from srcdir |
---|
883 | --with-tardis sets all the necesary environment flags for |
---|
884 | linux-TARDIS boxes at the ETH Zurich |
---|
885 | |
---|
886 | Some influential environment variables: |
---|
887 | CXX C++ compiler command |
---|
888 | CXXFLAGS C++ compiler flags |
---|
889 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
890 | nonstandard directory <lib dir> |
---|
891 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
892 | headers in a nonstandard directory <include dir> |
---|
893 | CC C compiler command |
---|
894 | CFLAGS C compiler flags |
---|
895 | CPP C preprocessor |
---|
896 | |
---|
897 | Use these variables to override the choices made by `configure' or to help |
---|
898 | it to find libraries and programs with nonstandard names/locations. |
---|
899 | |
---|
900 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
901 | _ACEOF |
---|
902 | fi |
---|
903 | |
---|
904 | if test "$ac_init_help" = "recursive"; then |
---|
905 | # If there are subdirs, report their specific --help. |
---|
906 | ac_popdir=`pwd` |
---|
907 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
908 | test -d $ac_dir || continue |
---|
909 | ac_builddir=. |
---|
910 | |
---|
911 | if test "$ac_dir" != .; then |
---|
912 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
913 | # A "../" for each directory in $ac_dir_suffix. |
---|
914 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
915 | else |
---|
916 | ac_dir_suffix= ac_top_builddir= |
---|
917 | fi |
---|
918 | |
---|
919 | case $srcdir in |
---|
920 | .) # No --srcdir option. We are building in place. |
---|
921 | ac_srcdir=. |
---|
922 | if test -z "$ac_top_builddir"; then |
---|
923 | ac_top_srcdir=. |
---|
924 | else |
---|
925 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
926 | fi ;; |
---|
927 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
928 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
929 | ac_top_srcdir=$srcdir ;; |
---|
930 | *) # Relative path. |
---|
931 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
932 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
933 | esac |
---|
934 | |
---|
935 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
936 | # the directories may not exist. |
---|
937 | case `pwd` in |
---|
938 | .) ac_abs_builddir="$ac_dir";; |
---|
939 | *) |
---|
940 | case "$ac_dir" in |
---|
941 | .) ac_abs_builddir=`pwd`;; |
---|
942 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
943 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
944 | esac;; |
---|
945 | esac |
---|
946 | case $ac_abs_builddir in |
---|
947 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
948 | *) |
---|
949 | case ${ac_top_builddir}. in |
---|
950 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
951 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
952 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
953 | esac;; |
---|
954 | esac |
---|
955 | case $ac_abs_builddir in |
---|
956 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
957 | *) |
---|
958 | case $ac_srcdir in |
---|
959 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
960 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
961 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
962 | esac;; |
---|
963 | esac |
---|
964 | case $ac_abs_builddir in |
---|
965 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
966 | *) |
---|
967 | case $ac_top_srcdir in |
---|
968 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
969 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
970 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
971 | esac;; |
---|
972 | esac |
---|
973 | |
---|
974 | cd $ac_dir |
---|
975 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
976 | if test -f $ac_srcdir/configure.gnu; then |
---|
977 | echo |
---|
978 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
979 | elif test -f $ac_srcdir/configure; then |
---|
980 | echo |
---|
981 | $SHELL $ac_srcdir/configure --help=recursive |
---|
982 | elif test -f $ac_srcdir/configure.ac || |
---|
983 | test -f $ac_srcdir/configure.in; then |
---|
984 | echo |
---|
985 | $ac_configure --help |
---|
986 | else |
---|
987 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
988 | fi |
---|
989 | cd $ac_popdir |
---|
990 | done |
---|
991 | fi |
---|
992 | |
---|
993 | test -n "$ac_init_help" && exit 0 |
---|
994 | if $ac_init_version; then |
---|
995 | cat <<\_ACEOF |
---|
996 | orxonox configure 0.3.1_alpha |
---|
997 | generated by GNU Autoconf 2.59 |
---|
998 | |
---|
999 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1000 | This configure script is free software; the Free Software Foundation |
---|
1001 | gives unlimited permission to copy, distribute and modify it. |
---|
1002 | _ACEOF |
---|
1003 | exit 0 |
---|
1004 | fi |
---|
1005 | exec 5>config.log |
---|
1006 | cat >&5 <<_ACEOF |
---|
1007 | This file contains any messages produced by compilers while |
---|
1008 | running configure, to aid debugging if configure makes a mistake. |
---|
1009 | |
---|
1010 | It was created by orxonox $as_me 0.3.1_alpha, which was |
---|
1011 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1012 | |
---|
1013 | $ $0 $@ |
---|
1014 | |
---|
1015 | _ACEOF |
---|
1016 | { |
---|
1017 | cat <<_ASUNAME |
---|
1018 | ## --------- ## |
---|
1019 | ## Platform. ## |
---|
1020 | ## --------- ## |
---|
1021 | |
---|
1022 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1023 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1024 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1025 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1026 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1027 | |
---|
1028 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1029 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1030 | |
---|
1031 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1032 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1033 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1034 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1035 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1036 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1037 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1038 | |
---|
1039 | _ASUNAME |
---|
1040 | |
---|
1041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1042 | for as_dir in $PATH |
---|
1043 | do |
---|
1044 | IFS=$as_save_IFS |
---|
1045 | test -z "$as_dir" && as_dir=. |
---|
1046 | echo "PATH: $as_dir" |
---|
1047 | done |
---|
1048 | |
---|
1049 | } >&5 |
---|
1050 | |
---|
1051 | cat >&5 <<_ACEOF |
---|
1052 | |
---|
1053 | |
---|
1054 | ## ----------- ## |
---|
1055 | ## Core tests. ## |
---|
1056 | ## ----------- ## |
---|
1057 | |
---|
1058 | _ACEOF |
---|
1059 | |
---|
1060 | |
---|
1061 | # Keep a trace of the command line. |
---|
1062 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1063 | # Strip out --silent because we don't want to record it for future runs. |
---|
1064 | # Also quote any args containing shell meta-characters. |
---|
1065 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1066 | ac_configure_args= |
---|
1067 | ac_configure_args0= |
---|
1068 | ac_configure_args1= |
---|
1069 | ac_sep= |
---|
1070 | ac_must_keep_next=false |
---|
1071 | for ac_pass in 1 2 |
---|
1072 | do |
---|
1073 | for ac_arg |
---|
1074 | do |
---|
1075 | case $ac_arg in |
---|
1076 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1077 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1078 | | -silent | --silent | --silen | --sile | --sil) |
---|
1079 | continue ;; |
---|
1080 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1081 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1082 | esac |
---|
1083 | case $ac_pass in |
---|
1084 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1085 | 2) |
---|
1086 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1087 | if test $ac_must_keep_next = true; then |
---|
1088 | ac_must_keep_next=false # Got value, back to normal. |
---|
1089 | else |
---|
1090 | case $ac_arg in |
---|
1091 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1092 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1093 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1094 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1095 | case "$ac_configure_args0 " in |
---|
1096 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1097 | esac |
---|
1098 | ;; |
---|
1099 | -* ) ac_must_keep_next=true ;; |
---|
1100 | esac |
---|
1101 | fi |
---|
1102 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1103 | # Get rid of the leading space. |
---|
1104 | ac_sep=" " |
---|
1105 | ;; |
---|
1106 | esac |
---|
1107 | done |
---|
1108 | done |
---|
1109 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1110 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1111 | |
---|
1112 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1113 | # config.log. We remove comments because anyway the quotes in there |
---|
1114 | # would cause problems or look ugly. |
---|
1115 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1116 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1117 | trap 'exit_status=$? |
---|
1118 | # Save into config.log some information that might help in debugging. |
---|
1119 | { |
---|
1120 | echo |
---|
1121 | |
---|
1122 | cat <<\_ASBOX |
---|
1123 | ## ---------------- ## |
---|
1124 | ## Cache variables. ## |
---|
1125 | ## ---------------- ## |
---|
1126 | _ASBOX |
---|
1127 | echo |
---|
1128 | # The following way of writing the cache mishandles newlines in values, |
---|
1129 | { |
---|
1130 | (set) 2>&1 | |
---|
1131 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1132 | *ac_space=\ *) |
---|
1133 | sed -n \ |
---|
1134 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1135 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1136 | ;; |
---|
1137 | *) |
---|
1138 | sed -n \ |
---|
1139 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1140 | ;; |
---|
1141 | esac; |
---|
1142 | } |
---|
1143 | echo |
---|
1144 | |
---|
1145 | cat <<\_ASBOX |
---|
1146 | ## ----------------- ## |
---|
1147 | ## Output variables. ## |
---|
1148 | ## ----------------- ## |
---|
1149 | _ASBOX |
---|
1150 | echo |
---|
1151 | for ac_var in $ac_subst_vars |
---|
1152 | do |
---|
1153 | eval ac_val=$`echo $ac_var` |
---|
1154 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1155 | done | sort |
---|
1156 | echo |
---|
1157 | |
---|
1158 | if test -n "$ac_subst_files"; then |
---|
1159 | cat <<\_ASBOX |
---|
1160 | ## ------------- ## |
---|
1161 | ## Output files. ## |
---|
1162 | ## ------------- ## |
---|
1163 | _ASBOX |
---|
1164 | echo |
---|
1165 | for ac_var in $ac_subst_files |
---|
1166 | do |
---|
1167 | eval ac_val=$`echo $ac_var` |
---|
1168 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1169 | done | sort |
---|
1170 | echo |
---|
1171 | fi |
---|
1172 | |
---|
1173 | if test -s confdefs.h; then |
---|
1174 | cat <<\_ASBOX |
---|
1175 | ## ----------- ## |
---|
1176 | ## confdefs.h. ## |
---|
1177 | ## ----------- ## |
---|
1178 | _ASBOX |
---|
1179 | echo |
---|
1180 | sed "/^$/d" confdefs.h | sort |
---|
1181 | echo |
---|
1182 | fi |
---|
1183 | test "$ac_signal" != 0 && |
---|
1184 | echo "$as_me: caught signal $ac_signal" |
---|
1185 | echo "$as_me: exit $exit_status" |
---|
1186 | } >&5 |
---|
1187 | rm -f core *.core && |
---|
1188 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1189 | exit $exit_status |
---|
1190 | ' 0 |
---|
1191 | for ac_signal in 1 2 13 15; do |
---|
1192 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1193 | done |
---|
1194 | ac_signal=0 |
---|
1195 | |
---|
1196 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1197 | rm -rf conftest* confdefs.h |
---|
1198 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1199 | echo >confdefs.h |
---|
1200 | |
---|
1201 | # Predefined preprocessor variables. |
---|
1202 | |
---|
1203 | cat >>confdefs.h <<_ACEOF |
---|
1204 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1205 | _ACEOF |
---|
1206 | |
---|
1207 | |
---|
1208 | cat >>confdefs.h <<_ACEOF |
---|
1209 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1210 | _ACEOF |
---|
1211 | |
---|
1212 | |
---|
1213 | cat >>confdefs.h <<_ACEOF |
---|
1214 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1215 | _ACEOF |
---|
1216 | |
---|
1217 | |
---|
1218 | cat >>confdefs.h <<_ACEOF |
---|
1219 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1220 | _ACEOF |
---|
1221 | |
---|
1222 | |
---|
1223 | cat >>confdefs.h <<_ACEOF |
---|
1224 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1225 | _ACEOF |
---|
1226 | |
---|
1227 | |
---|
1228 | # Let the site file select an alternate cache file if it wants to. |
---|
1229 | # Prefer explicitly selected file to automatically selected ones. |
---|
1230 | if test -z "$CONFIG_SITE"; then |
---|
1231 | if test "x$prefix" != xNONE; then |
---|
1232 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1233 | else |
---|
1234 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1235 | fi |
---|
1236 | fi |
---|
1237 | for ac_site_file in $CONFIG_SITE; do |
---|
1238 | if test -r "$ac_site_file"; then |
---|
1239 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1240 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1241 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1242 | . "$ac_site_file" |
---|
1243 | fi |
---|
1244 | done |
---|
1245 | |
---|
1246 | if test -r "$cache_file"; then |
---|
1247 | # Some versions of bash will fail to source /dev/null (special |
---|
1248 | # files actually), so we avoid doing that. |
---|
1249 | if test -f "$cache_file"; then |
---|
1250 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1251 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1252 | case $cache_file in |
---|
1253 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1254 | *) . ./$cache_file;; |
---|
1255 | esac |
---|
1256 | fi |
---|
1257 | else |
---|
1258 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1259 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1260 | >$cache_file |
---|
1261 | fi |
---|
1262 | |
---|
1263 | # Check that the precious variables saved in the cache have kept the same |
---|
1264 | # value. |
---|
1265 | ac_cache_corrupted=false |
---|
1266 | for ac_var in `(set) 2>&1 | |
---|
1267 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1268 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1269 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1270 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1271 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1272 | case $ac_old_set,$ac_new_set in |
---|
1273 | set,) |
---|
1274 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1275 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1276 | ac_cache_corrupted=: ;; |
---|
1277 | ,set) |
---|
1278 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1279 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1280 | ac_cache_corrupted=: ;; |
---|
1281 | ,);; |
---|
1282 | *) |
---|
1283 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1284 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1285 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1286 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1287 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1288 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1289 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1290 | ac_cache_corrupted=: |
---|
1291 | fi;; |
---|
1292 | esac |
---|
1293 | # Pass precious variables to config.status. |
---|
1294 | if test "$ac_new_set" = set; then |
---|
1295 | case $ac_new_val in |
---|
1296 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1297 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1298 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1299 | esac |
---|
1300 | case " $ac_configure_args " in |
---|
1301 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1302 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1303 | esac |
---|
1304 | fi |
---|
1305 | done |
---|
1306 | if $ac_cache_corrupted; then |
---|
1307 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1308 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1309 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1310 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1311 | { (exit 1); exit 1; }; } |
---|
1312 | fi |
---|
1313 | |
---|
1314 | ac_ext=c |
---|
1315 | ac_cpp='$CPP $CPPFLAGS' |
---|
1316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1319 | |
---|
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 | ## Detect the canonical host and target build environment. |
---|
1348 | ac_aux_dir= |
---|
1349 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1350 | if test -f $ac_dir/install-sh; then |
---|
1351 | ac_aux_dir=$ac_dir |
---|
1352 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1353 | break |
---|
1354 | elif test -f $ac_dir/install.sh; then |
---|
1355 | ac_aux_dir=$ac_dir |
---|
1356 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1357 | break |
---|
1358 | elif test -f $ac_dir/shtool; then |
---|
1359 | ac_aux_dir=$ac_dir |
---|
1360 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1361 | break |
---|
1362 | fi |
---|
1363 | done |
---|
1364 | if test -z "$ac_aux_dir"; then |
---|
1365 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1366 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1367 | { (exit 1); exit 1; }; } |
---|
1368 | fi |
---|
1369 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1370 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1371 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1372 | |
---|
1373 | # Make sure we can run config.sub. |
---|
1374 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1375 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1376 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1377 | { (exit 1); exit 1; }; } |
---|
1378 | |
---|
1379 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1380 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1381 | if test "${ac_cv_build+set}" = set; then |
---|
1382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1383 | else |
---|
1384 | ac_cv_build_alias=$build_alias |
---|
1385 | test -z "$ac_cv_build_alias" && |
---|
1386 | ac_cv_build_alias=`$ac_config_guess` |
---|
1387 | test -z "$ac_cv_build_alias" && |
---|
1388 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1389 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1390 | { (exit 1); exit 1; }; } |
---|
1391 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1392 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1393 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1394 | { (exit 1); exit 1; }; } |
---|
1395 | |
---|
1396 | fi |
---|
1397 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1398 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1399 | build=$ac_cv_build |
---|
1400 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1401 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1402 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1403 | |
---|
1404 | |
---|
1405 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1406 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1407 | if test "${ac_cv_host+set}" = set; then |
---|
1408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1409 | else |
---|
1410 | ac_cv_host_alias=$host_alias |
---|
1411 | test -z "$ac_cv_host_alias" && |
---|
1412 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1413 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1414 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1415 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1416 | { (exit 1); exit 1; }; } |
---|
1417 | |
---|
1418 | fi |
---|
1419 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1420 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1421 | host=$ac_cv_host |
---|
1422 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1423 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1424 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1425 | |
---|
1426 | |
---|
1427 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1428 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1429 | if test "${ac_cv_target+set}" = set; then |
---|
1430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1431 | else |
---|
1432 | ac_cv_target_alias=$target_alias |
---|
1433 | test "x$ac_cv_target_alias" = "x" && |
---|
1434 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1435 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1436 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1437 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1438 | { (exit 1); exit 1; }; } |
---|
1439 | |
---|
1440 | fi |
---|
1441 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1442 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1443 | target=$ac_cv_target |
---|
1444 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1445 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1446 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1447 | |
---|
1448 | |
---|
1449 | # The aliases save the names the user supplied, while $host etc. |
---|
1450 | # will get canonicalized. |
---|
1451 | test -n "$target_alias" && |
---|
1452 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1453 | NONENONEs,x,x, && |
---|
1454 | program_prefix=${target_alias}- |
---|
1455 | |
---|
1456 | am__api_version="1.9" |
---|
1457 | # Find a good install program. We prefer a C program (faster), |
---|
1458 | # so one script is as good as another. But avoid the broken or |
---|
1459 | # incompatible versions: |
---|
1460 | # SysV /etc/install, /usr/sbin/install |
---|
1461 | # SunOS /usr/etc/install |
---|
1462 | # IRIX /sbin/install |
---|
1463 | # AIX /bin/install |
---|
1464 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1465 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1466 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1467 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1468 | # OS/2's system install, which has a completely different semantic |
---|
1469 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1470 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1471 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1472 | if test -z "$INSTALL"; then |
---|
1473 | if test "${ac_cv_path_install+set}" = set; then |
---|
1474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1475 | else |
---|
1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1477 | for as_dir in $PATH |
---|
1478 | do |
---|
1479 | IFS=$as_save_IFS |
---|
1480 | test -z "$as_dir" && as_dir=. |
---|
1481 | # Account for people who put trailing slashes in PATH elements. |
---|
1482 | case $as_dir/ in |
---|
1483 | ./ | .// | /cC/* | \ |
---|
1484 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1485 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1486 | /usr/ucb/* ) ;; |
---|
1487 | *) |
---|
1488 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1489 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1490 | # by default. |
---|
1491 | for ac_prog in ginstall scoinst install; do |
---|
1492 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1493 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1494 | if test $ac_prog = install && |
---|
1495 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1496 | # AIX install. It has an incompatible calling convention. |
---|
1497 | : |
---|
1498 | elif test $ac_prog = install && |
---|
1499 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1500 | # program-specific install script used by HP pwplus--don't use. |
---|
1501 | : |
---|
1502 | else |
---|
1503 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1504 | break 3 |
---|
1505 | fi |
---|
1506 | fi |
---|
1507 | done |
---|
1508 | done |
---|
1509 | ;; |
---|
1510 | esac |
---|
1511 | done |
---|
1512 | |
---|
1513 | |
---|
1514 | fi |
---|
1515 | if test "${ac_cv_path_install+set}" = set; then |
---|
1516 | INSTALL=$ac_cv_path_install |
---|
1517 | else |
---|
1518 | # As a last resort, use the slow shell script. We don't cache a |
---|
1519 | # path for INSTALL within a source directory, because that will |
---|
1520 | # break other packages using the cache if that directory is |
---|
1521 | # removed, or if the path is relative. |
---|
1522 | INSTALL=$ac_install_sh |
---|
1523 | fi |
---|
1524 | fi |
---|
1525 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1526 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1527 | |
---|
1528 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1529 | # It thinks the first close brace ends the variable substitution. |
---|
1530 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1531 | |
---|
1532 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1533 | |
---|
1534 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1535 | |
---|
1536 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1537 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1538 | # Just in case |
---|
1539 | sleep 1 |
---|
1540 | echo timestamp > conftest.file |
---|
1541 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1542 | # arguments. Must try -L first in case configure is actually a |
---|
1543 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1544 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1545 | # directory). |
---|
1546 | if ( |
---|
1547 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1548 | if test "$*" = "X"; then |
---|
1549 | # -L didn't work. |
---|
1550 | set X `ls -t $srcdir/configure conftest.file` |
---|
1551 | fi |
---|
1552 | rm -f conftest.file |
---|
1553 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1554 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1555 | |
---|
1556 | # If neither matched, then we have a broken ls. This can happen |
---|
1557 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1558 | # broken ls alias from the environment. This has actually |
---|
1559 | # happened. Such a system could not be considered "sane". |
---|
1560 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1561 | alias in your environment" >&5 |
---|
1562 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1563 | alias in your environment" >&2;} |
---|
1564 | { (exit 1); exit 1; }; } |
---|
1565 | fi |
---|
1566 | |
---|
1567 | test "$2" = conftest.file |
---|
1568 | ) |
---|
1569 | then |
---|
1570 | # Ok. |
---|
1571 | : |
---|
1572 | else |
---|
1573 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1574 | Check your system clock" >&5 |
---|
1575 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1576 | Check your system clock" >&2;} |
---|
1577 | { (exit 1); exit 1; }; } |
---|
1578 | fi |
---|
1579 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1580 | echo "${ECHO_T}yes" >&6 |
---|
1581 | test "$program_prefix" != NONE && |
---|
1582 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1583 | # Use a double $ so make ignores it. |
---|
1584 | test "$program_suffix" != NONE && |
---|
1585 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1586 | # Double any \ or $. echo might interpret backslashes. |
---|
1587 | # By default was `s,x,x', remove it if useless. |
---|
1588 | cat <<\_ACEOF >conftest.sed |
---|
1589 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1590 | _ACEOF |
---|
1591 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1592 | rm conftest.sed |
---|
1593 | |
---|
1594 | # expand $ac_aux_dir to an absolute path |
---|
1595 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1596 | |
---|
1597 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1598 | # Use eval to expand $SHELL |
---|
1599 | if eval "$MISSING --run true"; then |
---|
1600 | am_missing_run="$MISSING --run " |
---|
1601 | else |
---|
1602 | am_missing_run= |
---|
1603 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1604 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1605 | fi |
---|
1606 | |
---|
1607 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1608 | # We used to keeping the `.' as first argument, in order to |
---|
1609 | # allow $(mkdir_p) to be used without argument. As in |
---|
1610 | # $(mkdir_p) $(somedir) |
---|
1611 | # where $(somedir) is conditionally defined. However this is wrong |
---|
1612 | # for two reasons: |
---|
1613 | # 1. if the package is installed by a user who cannot write `.' |
---|
1614 | # make install will fail, |
---|
1615 | # 2. the above comment should most certainly read |
---|
1616 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
1617 | # so it does not work when $(somedir) is undefined and |
---|
1618 | # $(DESTDIR) is not. |
---|
1619 | # To support the latter case, we have to write |
---|
1620 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
1621 | # so the `.' trick is pointless. |
---|
1622 | mkdir_p='mkdir -p --' |
---|
1623 | else |
---|
1624 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1625 | # recognize any option. It will interpret all options as |
---|
1626 | # directories to create, and then abort because `.' already |
---|
1627 | # exists. |
---|
1628 | for d in ./-p ./--version; |
---|
1629 | do |
---|
1630 | test -d $d && rmdir $d |
---|
1631 | done |
---|
1632 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1633 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1634 | mkdir_p='$(mkinstalldirs)' |
---|
1635 | else |
---|
1636 | mkdir_p='$(install_sh) -d' |
---|
1637 | fi |
---|
1638 | fi |
---|
1639 | |
---|
1640 | for ac_prog in gawk mawk nawk awk |
---|
1641 | do |
---|
1642 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1643 | set dummy $ac_prog; ac_word=$2 |
---|
1644 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1646 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1648 | else |
---|
1649 | if test -n "$AWK"; then |
---|
1650 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1651 | else |
---|
1652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1653 | for as_dir in $PATH |
---|
1654 | do |
---|
1655 | IFS=$as_save_IFS |
---|
1656 | test -z "$as_dir" && as_dir=. |
---|
1657 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1659 | ac_cv_prog_AWK="$ac_prog" |
---|
1660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1661 | break 2 |
---|
1662 | fi |
---|
1663 | done |
---|
1664 | done |
---|
1665 | |
---|
1666 | fi |
---|
1667 | fi |
---|
1668 | AWK=$ac_cv_prog_AWK |
---|
1669 | if test -n "$AWK"; then |
---|
1670 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1671 | echo "${ECHO_T}$AWK" >&6 |
---|
1672 | else |
---|
1673 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1674 | echo "${ECHO_T}no" >&6 |
---|
1675 | fi |
---|
1676 | |
---|
1677 | test -n "$AWK" && break |
---|
1678 | done |
---|
1679 | |
---|
1680 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1681 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1682 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1683 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1685 | else |
---|
1686 | cat >conftest.make <<\_ACEOF |
---|
1687 | all: |
---|
1688 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1689 | _ACEOF |
---|
1690 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1691 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1692 | if test -n "$ac_maketemp"; then |
---|
1693 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1694 | else |
---|
1695 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1696 | fi |
---|
1697 | rm -f conftest.make |
---|
1698 | fi |
---|
1699 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1700 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1701 | echo "${ECHO_T}yes" >&6 |
---|
1702 | SET_MAKE= |
---|
1703 | else |
---|
1704 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1705 | echo "${ECHO_T}no" >&6 |
---|
1706 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1707 | fi |
---|
1708 | |
---|
1709 | rm -rf .tst 2>/dev/null |
---|
1710 | mkdir .tst 2>/dev/null |
---|
1711 | if test -d .tst; then |
---|
1712 | am__leading_dot=. |
---|
1713 | else |
---|
1714 | am__leading_dot=_ |
---|
1715 | fi |
---|
1716 | rmdir .tst 2>/dev/null |
---|
1717 | |
---|
1718 | # test to see if srcdir already configured |
---|
1719 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1720 | test -f $srcdir/config.status; then |
---|
1721 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1722 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1723 | { (exit 1); exit 1; }; } |
---|
1724 | fi |
---|
1725 | |
---|
1726 | # test whether we have cygpath |
---|
1727 | if test -z "$CYGPATH_W"; then |
---|
1728 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1729 | CYGPATH_W='cygpath -w' |
---|
1730 | else |
---|
1731 | CYGPATH_W=echo |
---|
1732 | fi |
---|
1733 | fi |
---|
1734 | |
---|
1735 | |
---|
1736 | # Define the identity of the package. |
---|
1737 | PACKAGE='orxonox' |
---|
1738 | VERSION='0.3.1_alpha' |
---|
1739 | |
---|
1740 | |
---|
1741 | cat >>confdefs.h <<_ACEOF |
---|
1742 | #define PACKAGE "$PACKAGE" |
---|
1743 | _ACEOF |
---|
1744 | |
---|
1745 | |
---|
1746 | cat >>confdefs.h <<_ACEOF |
---|
1747 | #define VERSION "$VERSION" |
---|
1748 | _ACEOF |
---|
1749 | |
---|
1750 | # Some tools Automake needs. |
---|
1751 | |
---|
1752 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1753 | |
---|
1754 | |
---|
1755 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1756 | |
---|
1757 | |
---|
1758 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1759 | |
---|
1760 | |
---|
1761 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1762 | |
---|
1763 | |
---|
1764 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1765 | |
---|
1766 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1767 | |
---|
1768 | # Installed binaries are usually stripped using `strip' when the user |
---|
1769 | # run `make install-strip'. However `strip' might not be the right |
---|
1770 | # tool to use in cross-compilation environments, therefore Automake |
---|
1771 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1772 | if test "$cross_compiling" != no; then |
---|
1773 | if test -n "$ac_tool_prefix"; then |
---|
1774 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1775 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1776 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1778 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1780 | else |
---|
1781 | if test -n "$STRIP"; then |
---|
1782 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1783 | else |
---|
1784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1785 | for as_dir in $PATH |
---|
1786 | do |
---|
1787 | IFS=$as_save_IFS |
---|
1788 | test -z "$as_dir" && as_dir=. |
---|
1789 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1790 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1791 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1792 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1793 | break 2 |
---|
1794 | fi |
---|
1795 | done |
---|
1796 | done |
---|
1797 | |
---|
1798 | fi |
---|
1799 | fi |
---|
1800 | STRIP=$ac_cv_prog_STRIP |
---|
1801 | if test -n "$STRIP"; then |
---|
1802 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1803 | echo "${ECHO_T}$STRIP" >&6 |
---|
1804 | else |
---|
1805 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1806 | echo "${ECHO_T}no" >&6 |
---|
1807 | fi |
---|
1808 | |
---|
1809 | fi |
---|
1810 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1811 | ac_ct_STRIP=$STRIP |
---|
1812 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1813 | set dummy strip; ac_word=$2 |
---|
1814 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1816 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1818 | else |
---|
1819 | if test -n "$ac_ct_STRIP"; then |
---|
1820 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1821 | else |
---|
1822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1823 | for as_dir in $PATH |
---|
1824 | do |
---|
1825 | IFS=$as_save_IFS |
---|
1826 | test -z "$as_dir" && as_dir=. |
---|
1827 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1829 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1831 | break 2 |
---|
1832 | fi |
---|
1833 | done |
---|
1834 | done |
---|
1835 | |
---|
1836 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1837 | fi |
---|
1838 | fi |
---|
1839 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1840 | if test -n "$ac_ct_STRIP"; then |
---|
1841 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1842 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1843 | else |
---|
1844 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1845 | echo "${ECHO_T}no" >&6 |
---|
1846 | fi |
---|
1847 | |
---|
1848 | STRIP=$ac_ct_STRIP |
---|
1849 | else |
---|
1850 | STRIP="$ac_cv_prog_STRIP" |
---|
1851 | fi |
---|
1852 | |
---|
1853 | fi |
---|
1854 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1855 | |
---|
1856 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1857 | # some platforms. |
---|
1858 | # Always define AMTAR for backward compatibility. |
---|
1859 | |
---|
1860 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1861 | |
---|
1862 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
1863 | |
---|
1864 | |
---|
1865 | |
---|
1866 | |
---|
1867 | |
---|
1868 | |
---|
1869 | |
---|
1870 | ac_config_headers="$ac_config_headers config.h" |
---|
1871 | |
---|
1872 | |
---|
1873 | ######################### |
---|
1874 | ## Checks for programs ## |
---|
1875 | ######################### |
---|
1876 | ac_ext=cc |
---|
1877 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1878 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1879 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1880 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1881 | if test -n "$ac_tool_prefix"; then |
---|
1882 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1883 | do |
---|
1884 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1885 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1888 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1890 | else |
---|
1891 | if test -n "$CXX"; then |
---|
1892 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1893 | else |
---|
1894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1895 | for as_dir in $PATH |
---|
1896 | do |
---|
1897 | IFS=$as_save_IFS |
---|
1898 | test -z "$as_dir" && as_dir=. |
---|
1899 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1901 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1903 | break 2 |
---|
1904 | fi |
---|
1905 | done |
---|
1906 | done |
---|
1907 | |
---|
1908 | fi |
---|
1909 | fi |
---|
1910 | CXX=$ac_cv_prog_CXX |
---|
1911 | if test -n "$CXX"; then |
---|
1912 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1913 | echo "${ECHO_T}$CXX" >&6 |
---|
1914 | else |
---|
1915 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1916 | echo "${ECHO_T}no" >&6 |
---|
1917 | fi |
---|
1918 | |
---|
1919 | test -n "$CXX" && break |
---|
1920 | done |
---|
1921 | fi |
---|
1922 | if test -z "$CXX"; then |
---|
1923 | ac_ct_CXX=$CXX |
---|
1924 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1925 | do |
---|
1926 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1927 | set dummy $ac_prog; ac_word=$2 |
---|
1928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1930 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1932 | else |
---|
1933 | if test -n "$ac_ct_CXX"; then |
---|
1934 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1935 | else |
---|
1936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1937 | for as_dir in $PATH |
---|
1938 | do |
---|
1939 | IFS=$as_save_IFS |
---|
1940 | test -z "$as_dir" && as_dir=. |
---|
1941 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1942 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1943 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1945 | break 2 |
---|
1946 | fi |
---|
1947 | done |
---|
1948 | done |
---|
1949 | |
---|
1950 | fi |
---|
1951 | fi |
---|
1952 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1953 | if test -n "$ac_ct_CXX"; then |
---|
1954 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1955 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1956 | else |
---|
1957 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1958 | echo "${ECHO_T}no" >&6 |
---|
1959 | fi |
---|
1960 | |
---|
1961 | test -n "$ac_ct_CXX" && break |
---|
1962 | done |
---|
1963 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1964 | |
---|
1965 | CXX=$ac_ct_CXX |
---|
1966 | fi |
---|
1967 | |
---|
1968 | |
---|
1969 | # Provide some information about the compiler. |
---|
1970 | echo "$as_me:$LINENO:" \ |
---|
1971 | "checking for C++ compiler version" >&5 |
---|
1972 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1973 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1974 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1975 | ac_status=$? |
---|
1976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1977 | (exit $ac_status); } |
---|
1978 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1979 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1980 | ac_status=$? |
---|
1981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1982 | (exit $ac_status); } |
---|
1983 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1984 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1985 | ac_status=$? |
---|
1986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1987 | (exit $ac_status); } |
---|
1988 | |
---|
1989 | cat >conftest.$ac_ext <<_ACEOF |
---|
1990 | /* confdefs.h. */ |
---|
1991 | _ACEOF |
---|
1992 | cat confdefs.h >>conftest.$ac_ext |
---|
1993 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1994 | /* end confdefs.h. */ |
---|
1995 | |
---|
1996 | int |
---|
1997 | main () |
---|
1998 | { |
---|
1999 | |
---|
2000 | ; |
---|
2001 | return 0; |
---|
2002 | } |
---|
2003 | _ACEOF |
---|
2004 | ac_clean_files_save=$ac_clean_files |
---|
2005 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2006 | # Try to create an executable without -o first, disregard a.out. |
---|
2007 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2008 | # of exeext. |
---|
2009 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
2010 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
2011 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2012 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2013 | (eval $ac_link_default) 2>&5 |
---|
2014 | ac_status=$? |
---|
2015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2016 | (exit $ac_status); }; then |
---|
2017 | # Find the output, starting from the most likely. This scheme is |
---|
2018 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2019 | # resort. |
---|
2020 | |
---|
2021 | # Be careful to initialize this variable, since it used to be cached. |
---|
2022 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2023 | ac_cv_exeext= |
---|
2024 | # b.out is created by i960 compilers. |
---|
2025 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2026 | do |
---|
2027 | test -f "$ac_file" || continue |
---|
2028 | case $ac_file in |
---|
2029 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2030 | ;; |
---|
2031 | conftest.$ac_ext ) |
---|
2032 | # This is the source file. |
---|
2033 | ;; |
---|
2034 | [ab].out ) |
---|
2035 | # We found the default executable, but exeext='' is most |
---|
2036 | # certainly right. |
---|
2037 | break;; |
---|
2038 | *.* ) |
---|
2039 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2040 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2041 | # but it would be cool to find out if it's true. Does anybody |
---|
2042 | # maintain Libtool? --akim. |
---|
2043 | export ac_cv_exeext |
---|
2044 | break;; |
---|
2045 | * ) |
---|
2046 | break;; |
---|
2047 | esac |
---|
2048 | done |
---|
2049 | else |
---|
2050 | echo "$as_me: failed program was:" >&5 |
---|
2051 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2052 | |
---|
2053 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
2054 | See \`config.log' for more details." >&5 |
---|
2055 | echo "$as_me: error: C++ compiler cannot create executables |
---|
2056 | See \`config.log' for more details." >&2;} |
---|
2057 | { (exit 77); exit 77; }; } |
---|
2058 | fi |
---|
2059 | |
---|
2060 | ac_exeext=$ac_cv_exeext |
---|
2061 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2062 | echo "${ECHO_T}$ac_file" >&6 |
---|
2063 | |
---|
2064 | # Check the compiler produces executables we can run. If not, either |
---|
2065 | # the compiler is broken, or we cross compile. |
---|
2066 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
2067 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
2068 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2069 | # If not cross compiling, check that we can run a simple program. |
---|
2070 | if test "$cross_compiling" != yes; then |
---|
2071 | if { ac_try='./$ac_file' |
---|
2072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2073 | (eval $ac_try) 2>&5 |
---|
2074 | ac_status=$? |
---|
2075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2076 | (exit $ac_status); }; }; then |
---|
2077 | cross_compiling=no |
---|
2078 | else |
---|
2079 | if test "$cross_compiling" = maybe; then |
---|
2080 | cross_compiling=yes |
---|
2081 | else |
---|
2082 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2083 | If you meant to cross compile, use \`--host'. |
---|
2084 | See \`config.log' for more details." >&5 |
---|
2085 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2086 | If you meant to cross compile, use \`--host'. |
---|
2087 | See \`config.log' for more details." >&2;} |
---|
2088 | { (exit 1); exit 1; }; } |
---|
2089 | fi |
---|
2090 | fi |
---|
2091 | fi |
---|
2092 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2093 | echo "${ECHO_T}yes" >&6 |
---|
2094 | |
---|
2095 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2096 | ac_clean_files=$ac_clean_files_save |
---|
2097 | # Check the compiler produces executables we can run. If not, either |
---|
2098 | # the compiler is broken, or we cross compile. |
---|
2099 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2100 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2101 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2102 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2103 | |
---|
2104 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2105 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2107 | (eval $ac_link) 2>&5 |
---|
2108 | ac_status=$? |
---|
2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2110 | (exit $ac_status); }; then |
---|
2111 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2112 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2113 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2114 | # `rm'. |
---|
2115 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2116 | test -f "$ac_file" || continue |
---|
2117 | case $ac_file in |
---|
2118 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2119 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2120 | export ac_cv_exeext |
---|
2121 | break;; |
---|
2122 | * ) break;; |
---|
2123 | esac |
---|
2124 | done |
---|
2125 | else |
---|
2126 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2127 | See \`config.log' for more details." >&5 |
---|
2128 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2129 | See \`config.log' for more details." >&2;} |
---|
2130 | { (exit 1); exit 1; }; } |
---|
2131 | fi |
---|
2132 | |
---|
2133 | rm -f conftest$ac_cv_exeext |
---|
2134 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2135 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2136 | |
---|
2137 | rm -f conftest.$ac_ext |
---|
2138 | EXEEXT=$ac_cv_exeext |
---|
2139 | ac_exeext=$EXEEXT |
---|
2140 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2141 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2142 | if test "${ac_cv_objext+set}" = set; then |
---|
2143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2144 | else |
---|
2145 | cat >conftest.$ac_ext <<_ACEOF |
---|
2146 | /* confdefs.h. */ |
---|
2147 | _ACEOF |
---|
2148 | cat confdefs.h >>conftest.$ac_ext |
---|
2149 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2150 | /* end confdefs.h. */ |
---|
2151 | |
---|
2152 | int |
---|
2153 | main () |
---|
2154 | { |
---|
2155 | |
---|
2156 | ; |
---|
2157 | return 0; |
---|
2158 | } |
---|
2159 | _ACEOF |
---|
2160 | rm -f conftest.o conftest.obj |
---|
2161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2162 | (eval $ac_compile) 2>&5 |
---|
2163 | ac_status=$? |
---|
2164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2165 | (exit $ac_status); }; then |
---|
2166 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2167 | case $ac_file in |
---|
2168 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2169 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2170 | break;; |
---|
2171 | esac |
---|
2172 | done |
---|
2173 | else |
---|
2174 | echo "$as_me: failed program was:" >&5 |
---|
2175 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2176 | |
---|
2177 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2178 | See \`config.log' for more details." >&5 |
---|
2179 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2180 | See \`config.log' for more details." >&2;} |
---|
2181 | { (exit 1); exit 1; }; } |
---|
2182 | fi |
---|
2183 | |
---|
2184 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2185 | fi |
---|
2186 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2187 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2188 | OBJEXT=$ac_cv_objext |
---|
2189 | ac_objext=$OBJEXT |
---|
2190 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2191 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2192 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2194 | else |
---|
2195 | cat >conftest.$ac_ext <<_ACEOF |
---|
2196 | /* confdefs.h. */ |
---|
2197 | _ACEOF |
---|
2198 | cat confdefs.h >>conftest.$ac_ext |
---|
2199 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2200 | /* end confdefs.h. */ |
---|
2201 | |
---|
2202 | int |
---|
2203 | main () |
---|
2204 | { |
---|
2205 | #ifndef __GNUC__ |
---|
2206 | choke me |
---|
2207 | #endif |
---|
2208 | |
---|
2209 | ; |
---|
2210 | return 0; |
---|
2211 | } |
---|
2212 | _ACEOF |
---|
2213 | rm -f conftest.$ac_objext |
---|
2214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2215 | (eval $ac_compile) 2>conftest.er1 |
---|
2216 | ac_status=$? |
---|
2217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2218 | rm -f conftest.er1 |
---|
2219 | cat conftest.err >&5 |
---|
2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2221 | (exit $ac_status); } && |
---|
2222 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2223 | || test ! -s conftest.err' |
---|
2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2225 | (eval $ac_try) 2>&5 |
---|
2226 | ac_status=$? |
---|
2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2228 | (exit $ac_status); }; } && |
---|
2229 | { ac_try='test -s conftest.$ac_objext' |
---|
2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2231 | (eval $ac_try) 2>&5 |
---|
2232 | ac_status=$? |
---|
2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2234 | (exit $ac_status); }; }; then |
---|
2235 | ac_compiler_gnu=yes |
---|
2236 | else |
---|
2237 | echo "$as_me: failed program was:" >&5 |
---|
2238 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2239 | |
---|
2240 | ac_compiler_gnu=no |
---|
2241 | fi |
---|
2242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2243 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2244 | |
---|
2245 | fi |
---|
2246 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2247 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2248 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2249 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2250 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2251 | CXXFLAGS="-g" |
---|
2252 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2253 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2254 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2256 | else |
---|
2257 | cat >conftest.$ac_ext <<_ACEOF |
---|
2258 | /* confdefs.h. */ |
---|
2259 | _ACEOF |
---|
2260 | cat confdefs.h >>conftest.$ac_ext |
---|
2261 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2262 | /* end confdefs.h. */ |
---|
2263 | |
---|
2264 | int |
---|
2265 | main () |
---|
2266 | { |
---|
2267 | |
---|
2268 | ; |
---|
2269 | return 0; |
---|
2270 | } |
---|
2271 | _ACEOF |
---|
2272 | rm -f conftest.$ac_objext |
---|
2273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2274 | (eval $ac_compile) 2>conftest.er1 |
---|
2275 | ac_status=$? |
---|
2276 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2277 | rm -f conftest.er1 |
---|
2278 | cat conftest.err >&5 |
---|
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2280 | (exit $ac_status); } && |
---|
2281 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2282 | || test ! -s conftest.err' |
---|
2283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2284 | (eval $ac_try) 2>&5 |
---|
2285 | ac_status=$? |
---|
2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2287 | (exit $ac_status); }; } && |
---|
2288 | { ac_try='test -s conftest.$ac_objext' |
---|
2289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2290 | (eval $ac_try) 2>&5 |
---|
2291 | ac_status=$? |
---|
2292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2293 | (exit $ac_status); }; }; then |
---|
2294 | ac_cv_prog_cxx_g=yes |
---|
2295 | else |
---|
2296 | echo "$as_me: failed program was:" >&5 |
---|
2297 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2298 | |
---|
2299 | ac_cv_prog_cxx_g=no |
---|
2300 | fi |
---|
2301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2302 | fi |
---|
2303 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2304 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2305 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2306 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2307 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2308 | if test "$GXX" = yes; then |
---|
2309 | CXXFLAGS="-g -O2" |
---|
2310 | else |
---|
2311 | CXXFLAGS="-g" |
---|
2312 | fi |
---|
2313 | else |
---|
2314 | if test "$GXX" = yes; then |
---|
2315 | CXXFLAGS="-O2" |
---|
2316 | else |
---|
2317 | CXXFLAGS= |
---|
2318 | fi |
---|
2319 | fi |
---|
2320 | for ac_declaration in \ |
---|
2321 | '' \ |
---|
2322 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2323 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2324 | 'extern "C" void exit (int) throw ();' \ |
---|
2325 | 'extern "C" void exit (int);' \ |
---|
2326 | 'void exit (int);' |
---|
2327 | do |
---|
2328 | cat >conftest.$ac_ext <<_ACEOF |
---|
2329 | /* confdefs.h. */ |
---|
2330 | _ACEOF |
---|
2331 | cat confdefs.h >>conftest.$ac_ext |
---|
2332 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2333 | /* end confdefs.h. */ |
---|
2334 | $ac_declaration |
---|
2335 | #include <stdlib.h> |
---|
2336 | int |
---|
2337 | main () |
---|
2338 | { |
---|
2339 | exit (42); |
---|
2340 | ; |
---|
2341 | return 0; |
---|
2342 | } |
---|
2343 | _ACEOF |
---|
2344 | rm -f conftest.$ac_objext |
---|
2345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2346 | (eval $ac_compile) 2>conftest.er1 |
---|
2347 | ac_status=$? |
---|
2348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2349 | rm -f conftest.er1 |
---|
2350 | cat conftest.err >&5 |
---|
2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2352 | (exit $ac_status); } && |
---|
2353 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2354 | || test ! -s conftest.err' |
---|
2355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2356 | (eval $ac_try) 2>&5 |
---|
2357 | ac_status=$? |
---|
2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2359 | (exit $ac_status); }; } && |
---|
2360 | { ac_try='test -s conftest.$ac_objext' |
---|
2361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2362 | (eval $ac_try) 2>&5 |
---|
2363 | ac_status=$? |
---|
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2365 | (exit $ac_status); }; }; then |
---|
2366 | : |
---|
2367 | else |
---|
2368 | echo "$as_me: failed program was:" >&5 |
---|
2369 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2370 | |
---|
2371 | continue |
---|
2372 | fi |
---|
2373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2374 | cat >conftest.$ac_ext <<_ACEOF |
---|
2375 | /* confdefs.h. */ |
---|
2376 | _ACEOF |
---|
2377 | cat confdefs.h >>conftest.$ac_ext |
---|
2378 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2379 | /* end confdefs.h. */ |
---|
2380 | $ac_declaration |
---|
2381 | int |
---|
2382 | main () |
---|
2383 | { |
---|
2384 | exit (42); |
---|
2385 | ; |
---|
2386 | return 0; |
---|
2387 | } |
---|
2388 | _ACEOF |
---|
2389 | rm -f conftest.$ac_objext |
---|
2390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2391 | (eval $ac_compile) 2>conftest.er1 |
---|
2392 | ac_status=$? |
---|
2393 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2394 | rm -f conftest.er1 |
---|
2395 | cat conftest.err >&5 |
---|
2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2397 | (exit $ac_status); } && |
---|
2398 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2399 | || test ! -s conftest.err' |
---|
2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2401 | (eval $ac_try) 2>&5 |
---|
2402 | ac_status=$? |
---|
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2404 | (exit $ac_status); }; } && |
---|
2405 | { ac_try='test -s conftest.$ac_objext' |
---|
2406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2407 | (eval $ac_try) 2>&5 |
---|
2408 | ac_status=$? |
---|
2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2410 | (exit $ac_status); }; }; then |
---|
2411 | break |
---|
2412 | else |
---|
2413 | echo "$as_me: failed program was:" >&5 |
---|
2414 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2415 | |
---|
2416 | fi |
---|
2417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2418 | done |
---|
2419 | rm -f conftest* |
---|
2420 | if test -n "$ac_declaration"; then |
---|
2421 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2422 | echo $ac_declaration >>confdefs.h |
---|
2423 | echo '#endif' >>confdefs.h |
---|
2424 | fi |
---|
2425 | |
---|
2426 | ac_ext=c |
---|
2427 | ac_cpp='$CPP $CPPFLAGS' |
---|
2428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2431 | DEPDIR="${am__leading_dot}deps" |
---|
2432 | |
---|
2433 | ac_config_commands="$ac_config_commands depfiles" |
---|
2434 | |
---|
2435 | |
---|
2436 | am_make=${MAKE-make} |
---|
2437 | cat > confinc << 'END' |
---|
2438 | am__doit: |
---|
2439 | @echo done |
---|
2440 | .PHONY: am__doit |
---|
2441 | END |
---|
2442 | # If we don't find an include directive, just comment out the code. |
---|
2443 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2444 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2445 | am__include="#" |
---|
2446 | am__quote= |
---|
2447 | _am_result=none |
---|
2448 | # First try GNU make style include. |
---|
2449 | echo "include confinc" > confmf |
---|
2450 | # We grep out `Entering directory' and `Leaving directory' |
---|
2451 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2452 | # In particular we don't look at `^make:' because GNU make might |
---|
2453 | # be invoked under some other name (usually "gmake"), in which |
---|
2454 | # case it prints its new name instead of `make'. |
---|
2455 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2456 | am__include=include |
---|
2457 | am__quote= |
---|
2458 | _am_result=GNU |
---|
2459 | fi |
---|
2460 | # Now try BSD make style include. |
---|
2461 | if test "$am__include" = "#"; then |
---|
2462 | echo '.include "confinc"' > confmf |
---|
2463 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2464 | am__include=.include |
---|
2465 | am__quote="\"" |
---|
2466 | _am_result=BSD |
---|
2467 | fi |
---|
2468 | fi |
---|
2469 | |
---|
2470 | |
---|
2471 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2472 | echo "${ECHO_T}$_am_result" >&6 |
---|
2473 | rm -f confinc confmf |
---|
2474 | |
---|
2475 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2476 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2477 | enableval="$enable_dependency_tracking" |
---|
2478 | |
---|
2479 | fi; |
---|
2480 | if test "x$enable_dependency_tracking" != xno; then |
---|
2481 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2482 | AMDEPBACKSLASH='\' |
---|
2483 | fi |
---|
2484 | |
---|
2485 | |
---|
2486 | if test "x$enable_dependency_tracking" != xno; then |
---|
2487 | AMDEP_TRUE= |
---|
2488 | AMDEP_FALSE='#' |
---|
2489 | else |
---|
2490 | AMDEP_TRUE='#' |
---|
2491 | AMDEP_FALSE= |
---|
2492 | fi |
---|
2493 | |
---|
2494 | |
---|
2495 | |
---|
2496 | |
---|
2497 | depcc="$CXX" am_compiler_list= |
---|
2498 | |
---|
2499 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2500 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2501 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2503 | else |
---|
2504 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2505 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2506 | # making bogus files that we don't know about and never remove. For |
---|
2507 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2508 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2509 | # in D'. |
---|
2510 | mkdir conftest.dir |
---|
2511 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2512 | # using a relative directory. |
---|
2513 | cp "$am_depcomp" conftest.dir |
---|
2514 | cd conftest.dir |
---|
2515 | # We will build objects and dependencies in a subdirectory because |
---|
2516 | # it helps to detect inapplicable dependency modes. For instance |
---|
2517 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2518 | # side effect of compilation, but ICC will put the dependencies in |
---|
2519 | # the current directory while Tru64 will put them in the object |
---|
2520 | # directory. |
---|
2521 | mkdir sub |
---|
2522 | |
---|
2523 | am_cv_CXX_dependencies_compiler_type=none |
---|
2524 | if test "$am_compiler_list" = ""; then |
---|
2525 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2526 | fi |
---|
2527 | for depmode in $am_compiler_list; do |
---|
2528 | # Setup a source with many dependencies, because some compilers |
---|
2529 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2530 | # we should not choose a depcomp mode which is confused by this. |
---|
2531 | # |
---|
2532 | # We need to recreate these files for each test, as the compiler may |
---|
2533 | # overwrite some of them when testing with obscure command lines. |
---|
2534 | # This happens at least with the AIX C compiler. |
---|
2535 | : > sub/conftest.c |
---|
2536 | for i in 1 2 3 4 5 6; do |
---|
2537 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2538 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
2539 | # Solaris 8's {/usr,}/bin/sh. |
---|
2540 | touch sub/conftst$i.h |
---|
2541 | done |
---|
2542 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2543 | |
---|
2544 | case $depmode in |
---|
2545 | nosideeffect) |
---|
2546 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2547 | # only be used when explicitly requested |
---|
2548 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2549 | continue |
---|
2550 | else |
---|
2551 | break |
---|
2552 | fi |
---|
2553 | ;; |
---|
2554 | none) break ;; |
---|
2555 | esac |
---|
2556 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2557 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2558 | # handle `-M -o', and we need to detect this. |
---|
2559 | if depmode=$depmode \ |
---|
2560 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2561 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2562 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2563 | >/dev/null 2>conftest.err && |
---|
2564 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2565 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2566 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2567 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2568 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
2569 | # that says an option was ignored or not supported. |
---|
2570 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
2571 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
2572 | # The diagnosis changed in icc 8.0: |
---|
2573 | # icc: Command line remark: option '-MP' not supported |
---|
2574 | if (grep 'ignoring option' conftest.err || |
---|
2575 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
2576 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2577 | break |
---|
2578 | fi |
---|
2579 | fi |
---|
2580 | done |
---|
2581 | |
---|
2582 | cd .. |
---|
2583 | rm -rf conftest.dir |
---|
2584 | else |
---|
2585 | am_cv_CXX_dependencies_compiler_type=none |
---|
2586 | fi |
---|
2587 | |
---|
2588 | fi |
---|
2589 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2590 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2591 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2592 | |
---|
2593 | |
---|
2594 | |
---|
2595 | if |
---|
2596 | test "x$enable_dependency_tracking" != xno \ |
---|
2597 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2598 | am__fastdepCXX_TRUE= |
---|
2599 | am__fastdepCXX_FALSE='#' |
---|
2600 | else |
---|
2601 | am__fastdepCXX_TRUE='#' |
---|
2602 | am__fastdepCXX_FALSE= |
---|
2603 | fi |
---|
2604 | |
---|
2605 | |
---|
2606 | if test -n "$ac_tool_prefix"; then |
---|
2607 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2608 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2611 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
2612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2613 | else |
---|
2614 | if test -n "$RANLIB"; then |
---|
2615 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2616 | else |
---|
2617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2618 | for as_dir in $PATH |
---|
2619 | do |
---|
2620 | IFS=$as_save_IFS |
---|
2621 | test -z "$as_dir" && as_dir=. |
---|
2622 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2624 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2626 | break 2 |
---|
2627 | fi |
---|
2628 | done |
---|
2629 | done |
---|
2630 | |
---|
2631 | fi |
---|
2632 | fi |
---|
2633 | RANLIB=$ac_cv_prog_RANLIB |
---|
2634 | if test -n "$RANLIB"; then |
---|
2635 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
2636 | echo "${ECHO_T}$RANLIB" >&6 |
---|
2637 | else |
---|
2638 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2639 | echo "${ECHO_T}no" >&6 |
---|
2640 | fi |
---|
2641 | |
---|
2642 | fi |
---|
2643 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2644 | ac_ct_RANLIB=$RANLIB |
---|
2645 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2646 | set dummy ranlib; ac_word=$2 |
---|
2647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2649 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
2650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2651 | else |
---|
2652 | if test -n "$ac_ct_RANLIB"; then |
---|
2653 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2654 | else |
---|
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2656 | for as_dir in $PATH |
---|
2657 | do |
---|
2658 | IFS=$as_save_IFS |
---|
2659 | test -z "$as_dir" && as_dir=. |
---|
2660 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2662 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2664 | break 2 |
---|
2665 | fi |
---|
2666 | done |
---|
2667 | done |
---|
2668 | |
---|
2669 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
2670 | fi |
---|
2671 | fi |
---|
2672 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2673 | if test -n "$ac_ct_RANLIB"; then |
---|
2674 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
2675 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
2676 | else |
---|
2677 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2678 | echo "${ECHO_T}no" >&6 |
---|
2679 | fi |
---|
2680 | |
---|
2681 | RANLIB=$ac_ct_RANLIB |
---|
2682 | else |
---|
2683 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2684 | fi |
---|
2685 | |
---|
2686 | ac_ext=c |
---|
2687 | ac_cpp='$CPP $CPPFLAGS' |
---|
2688 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2689 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2690 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2691 | if test -n "$ac_tool_prefix"; then |
---|
2692 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2693 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2696 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2698 | else |
---|
2699 | if test -n "$CC"; then |
---|
2700 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2701 | else |
---|
2702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2703 | for as_dir in $PATH |
---|
2704 | do |
---|
2705 | IFS=$as_save_IFS |
---|
2706 | test -z "$as_dir" && as_dir=. |
---|
2707 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2709 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2711 | break 2 |
---|
2712 | fi |
---|
2713 | done |
---|
2714 | done |
---|
2715 | |
---|
2716 | fi |
---|
2717 | fi |
---|
2718 | CC=$ac_cv_prog_CC |
---|
2719 | if test -n "$CC"; then |
---|
2720 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2721 | echo "${ECHO_T}$CC" >&6 |
---|
2722 | else |
---|
2723 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2724 | echo "${ECHO_T}no" >&6 |
---|
2725 | fi |
---|
2726 | |
---|
2727 | fi |
---|
2728 | if test -z "$ac_cv_prog_CC"; then |
---|
2729 | ac_ct_CC=$CC |
---|
2730 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2731 | set dummy gcc; ac_word=$2 |
---|
2732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2734 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2736 | else |
---|
2737 | if test -n "$ac_ct_CC"; then |
---|
2738 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2739 | else |
---|
2740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2741 | for as_dir in $PATH |
---|
2742 | do |
---|
2743 | IFS=$as_save_IFS |
---|
2744 | test -z "$as_dir" && as_dir=. |
---|
2745 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2747 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2749 | break 2 |
---|
2750 | fi |
---|
2751 | done |
---|
2752 | done |
---|
2753 | |
---|
2754 | fi |
---|
2755 | fi |
---|
2756 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2757 | if test -n "$ac_ct_CC"; then |
---|
2758 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2759 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2760 | else |
---|
2761 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2762 | echo "${ECHO_T}no" >&6 |
---|
2763 | fi |
---|
2764 | |
---|
2765 | CC=$ac_ct_CC |
---|
2766 | else |
---|
2767 | CC="$ac_cv_prog_CC" |
---|
2768 | fi |
---|
2769 | |
---|
2770 | if test -z "$CC"; then |
---|
2771 | if test -n "$ac_tool_prefix"; then |
---|
2772 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2773 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2774 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2776 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2778 | else |
---|
2779 | if test -n "$CC"; then |
---|
2780 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2781 | else |
---|
2782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2783 | for as_dir in $PATH |
---|
2784 | do |
---|
2785 | IFS=$as_save_IFS |
---|
2786 | test -z "$as_dir" && as_dir=. |
---|
2787 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2788 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2789 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2791 | break 2 |
---|
2792 | fi |
---|
2793 | done |
---|
2794 | done |
---|
2795 | |
---|
2796 | fi |
---|
2797 | fi |
---|
2798 | CC=$ac_cv_prog_CC |
---|
2799 | if test -n "$CC"; then |
---|
2800 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2801 | echo "${ECHO_T}$CC" >&6 |
---|
2802 | else |
---|
2803 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2804 | echo "${ECHO_T}no" >&6 |
---|
2805 | fi |
---|
2806 | |
---|
2807 | fi |
---|
2808 | if test -z "$ac_cv_prog_CC"; then |
---|
2809 | ac_ct_CC=$CC |
---|
2810 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2811 | set dummy cc; ac_word=$2 |
---|
2812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2814 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2816 | else |
---|
2817 | if test -n "$ac_ct_CC"; then |
---|
2818 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2819 | else |
---|
2820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2821 | for as_dir in $PATH |
---|
2822 | do |
---|
2823 | IFS=$as_save_IFS |
---|
2824 | test -z "$as_dir" && as_dir=. |
---|
2825 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2826 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2827 | ac_cv_prog_ac_ct_CC="cc" |
---|
2828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2829 | break 2 |
---|
2830 | fi |
---|
2831 | done |
---|
2832 | done |
---|
2833 | |
---|
2834 | fi |
---|
2835 | fi |
---|
2836 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2837 | if test -n "$ac_ct_CC"; then |
---|
2838 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2839 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2840 | else |
---|
2841 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2842 | echo "${ECHO_T}no" >&6 |
---|
2843 | fi |
---|
2844 | |
---|
2845 | CC=$ac_ct_CC |
---|
2846 | else |
---|
2847 | CC="$ac_cv_prog_CC" |
---|
2848 | fi |
---|
2849 | |
---|
2850 | fi |
---|
2851 | if test -z "$CC"; then |
---|
2852 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2853 | set dummy cc; ac_word=$2 |
---|
2854 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2856 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2858 | else |
---|
2859 | if test -n "$CC"; then |
---|
2860 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2861 | else |
---|
2862 | ac_prog_rejected=no |
---|
2863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2864 | for as_dir in $PATH |
---|
2865 | do |
---|
2866 | IFS=$as_save_IFS |
---|
2867 | test -z "$as_dir" && as_dir=. |
---|
2868 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2870 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2871 | ac_prog_rejected=yes |
---|
2872 | continue |
---|
2873 | fi |
---|
2874 | ac_cv_prog_CC="cc" |
---|
2875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2876 | break 2 |
---|
2877 | fi |
---|
2878 | done |
---|
2879 | done |
---|
2880 | |
---|
2881 | if test $ac_prog_rejected = yes; then |
---|
2882 | # We found a bogon in the path, so make sure we never use it. |
---|
2883 | set dummy $ac_cv_prog_CC |
---|
2884 | shift |
---|
2885 | if test $# != 0; then |
---|
2886 | # We chose a different compiler from the bogus one. |
---|
2887 | # However, it has the same basename, so the bogon will be chosen |
---|
2888 | # first if we set CC to just the basename; use the full file name. |
---|
2889 | shift |
---|
2890 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2891 | fi |
---|
2892 | fi |
---|
2893 | fi |
---|
2894 | fi |
---|
2895 | CC=$ac_cv_prog_CC |
---|
2896 | if test -n "$CC"; then |
---|
2897 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2898 | echo "${ECHO_T}$CC" >&6 |
---|
2899 | else |
---|
2900 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2901 | echo "${ECHO_T}no" >&6 |
---|
2902 | fi |
---|
2903 | |
---|
2904 | fi |
---|
2905 | if test -z "$CC"; then |
---|
2906 | if test -n "$ac_tool_prefix"; then |
---|
2907 | for ac_prog in cl |
---|
2908 | do |
---|
2909 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2910 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2911 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2913 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2915 | else |
---|
2916 | if test -n "$CC"; then |
---|
2917 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2918 | else |
---|
2919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2920 | for as_dir in $PATH |
---|
2921 | do |
---|
2922 | IFS=$as_save_IFS |
---|
2923 | test -z "$as_dir" && as_dir=. |
---|
2924 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2925 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2926 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2928 | break 2 |
---|
2929 | fi |
---|
2930 | done |
---|
2931 | done |
---|
2932 | |
---|
2933 | fi |
---|
2934 | fi |
---|
2935 | CC=$ac_cv_prog_CC |
---|
2936 | if test -n "$CC"; then |
---|
2937 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2938 | echo "${ECHO_T}$CC" >&6 |
---|
2939 | else |
---|
2940 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2941 | echo "${ECHO_T}no" >&6 |
---|
2942 | fi |
---|
2943 | |
---|
2944 | test -n "$CC" && break |
---|
2945 | done |
---|
2946 | fi |
---|
2947 | if test -z "$CC"; then |
---|
2948 | ac_ct_CC=$CC |
---|
2949 | for ac_prog in cl |
---|
2950 | do |
---|
2951 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2952 | set dummy $ac_prog; ac_word=$2 |
---|
2953 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2955 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2957 | else |
---|
2958 | if test -n "$ac_ct_CC"; then |
---|
2959 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2960 | else |
---|
2961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2962 | for as_dir in $PATH |
---|
2963 | do |
---|
2964 | IFS=$as_save_IFS |
---|
2965 | test -z "$as_dir" && as_dir=. |
---|
2966 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2967 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2968 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2970 | break 2 |
---|
2971 | fi |
---|
2972 | done |
---|
2973 | done |
---|
2974 | |
---|
2975 | fi |
---|
2976 | fi |
---|
2977 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2978 | if test -n "$ac_ct_CC"; then |
---|
2979 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2980 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2981 | else |
---|
2982 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2983 | echo "${ECHO_T}no" >&6 |
---|
2984 | fi |
---|
2985 | |
---|
2986 | test -n "$ac_ct_CC" && break |
---|
2987 | done |
---|
2988 | |
---|
2989 | CC=$ac_ct_CC |
---|
2990 | fi |
---|
2991 | |
---|
2992 | fi |
---|
2993 | |
---|
2994 | |
---|
2995 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2996 | See \`config.log' for more details." >&5 |
---|
2997 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2998 | See \`config.log' for more details." >&2;} |
---|
2999 | { (exit 1); exit 1; }; } |
---|
3000 | |
---|
3001 | # Provide some information about the compiler. |
---|
3002 | echo "$as_me:$LINENO:" \ |
---|
3003 | "checking for C compiler version" >&5 |
---|
3004 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3005 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3006 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3007 | ac_status=$? |
---|
3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3009 | (exit $ac_status); } |
---|
3010 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3011 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3012 | ac_status=$? |
---|
3013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3014 | (exit $ac_status); } |
---|
3015 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3016 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3017 | ac_status=$? |
---|
3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3019 | (exit $ac_status); } |
---|
3020 | |
---|
3021 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
3022 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
3023 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
3024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3025 | else |
---|
3026 | cat >conftest.$ac_ext <<_ACEOF |
---|
3027 | /* confdefs.h. */ |
---|
3028 | _ACEOF |
---|
3029 | cat confdefs.h >>conftest.$ac_ext |
---|
3030 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3031 | /* end confdefs.h. */ |
---|
3032 | |
---|
3033 | int |
---|
3034 | main () |
---|
3035 | { |
---|
3036 | #ifndef __GNUC__ |
---|
3037 | choke me |
---|
3038 | #endif |
---|
3039 | |
---|
3040 | ; |
---|
3041 | return 0; |
---|
3042 | } |
---|
3043 | _ACEOF |
---|
3044 | rm -f conftest.$ac_objext |
---|
3045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3046 | (eval $ac_compile) 2>conftest.er1 |
---|
3047 | ac_status=$? |
---|
3048 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3049 | rm -f conftest.er1 |
---|
3050 | cat conftest.err >&5 |
---|
3051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3052 | (exit $ac_status); } && |
---|
3053 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3054 | || test ! -s conftest.err' |
---|
3055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3056 | (eval $ac_try) 2>&5 |
---|
3057 | ac_status=$? |
---|
3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3059 | (exit $ac_status); }; } && |
---|
3060 | { ac_try='test -s conftest.$ac_objext' |
---|
3061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3062 | (eval $ac_try) 2>&5 |
---|
3063 | ac_status=$? |
---|
3064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3065 | (exit $ac_status); }; }; then |
---|
3066 | ac_compiler_gnu=yes |
---|
3067 | else |
---|
3068 | echo "$as_me: failed program was:" >&5 |
---|
3069 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3070 | |
---|
3071 | ac_compiler_gnu=no |
---|
3072 | fi |
---|
3073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3074 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3075 | |
---|
3076 | fi |
---|
3077 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3078 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
3079 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
3080 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3081 | ac_save_CFLAGS=$CFLAGS |
---|
3082 | CFLAGS="-g" |
---|
3083 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
3084 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
3085 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
3086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3087 | else |
---|
3088 | cat >conftest.$ac_ext <<_ACEOF |
---|
3089 | /* confdefs.h. */ |
---|
3090 | _ACEOF |
---|
3091 | cat confdefs.h >>conftest.$ac_ext |
---|
3092 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3093 | /* end confdefs.h. */ |
---|
3094 | |
---|
3095 | int |
---|
3096 | main () |
---|
3097 | { |
---|
3098 | |
---|
3099 | ; |
---|
3100 | return 0; |
---|
3101 | } |
---|
3102 | _ACEOF |
---|
3103 | rm -f conftest.$ac_objext |
---|
3104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3105 | (eval $ac_compile) 2>conftest.er1 |
---|
3106 | ac_status=$? |
---|
3107 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3108 | rm -f conftest.er1 |
---|
3109 | cat conftest.err >&5 |
---|
3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3111 | (exit $ac_status); } && |
---|
3112 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3113 | || test ! -s conftest.err' |
---|
3114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3115 | (eval $ac_try) 2>&5 |
---|
3116 | ac_status=$? |
---|
3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3118 | (exit $ac_status); }; } && |
---|
3119 | { ac_try='test -s conftest.$ac_objext' |
---|
3120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3121 | (eval $ac_try) 2>&5 |
---|
3122 | ac_status=$? |
---|
3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3124 | (exit $ac_status); }; }; then |
---|
3125 | ac_cv_prog_cc_g=yes |
---|
3126 | else |
---|
3127 | echo "$as_me: failed program was:" >&5 |
---|
3128 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3129 | |
---|
3130 | ac_cv_prog_cc_g=no |
---|
3131 | fi |
---|
3132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3133 | fi |
---|
3134 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3135 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
3136 | if test "$ac_test_CFLAGS" = set; then |
---|
3137 | CFLAGS=$ac_save_CFLAGS |
---|
3138 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3139 | if test "$GCC" = yes; then |
---|
3140 | CFLAGS="-g -O2" |
---|
3141 | else |
---|
3142 | CFLAGS="-g" |
---|
3143 | fi |
---|
3144 | else |
---|
3145 | if test "$GCC" = yes; then |
---|
3146 | CFLAGS="-O2" |
---|
3147 | else |
---|
3148 | CFLAGS= |
---|
3149 | fi |
---|
3150 | fi |
---|
3151 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3152 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3153 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3155 | else |
---|
3156 | ac_cv_prog_cc_stdc=no |
---|
3157 | ac_save_CC=$CC |
---|
3158 | cat >conftest.$ac_ext <<_ACEOF |
---|
3159 | /* confdefs.h. */ |
---|
3160 | _ACEOF |
---|
3161 | cat confdefs.h >>conftest.$ac_ext |
---|
3162 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3163 | /* end confdefs.h. */ |
---|
3164 | #include <stdarg.h> |
---|
3165 | #include <stdio.h> |
---|
3166 | #include <sys/types.h> |
---|
3167 | #include <sys/stat.h> |
---|
3168 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3169 | struct buf { int x; }; |
---|
3170 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3171 | static char *e (p, i) |
---|
3172 | char **p; |
---|
3173 | int i; |
---|
3174 | { |
---|
3175 | return p[i]; |
---|
3176 | } |
---|
3177 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3178 | { |
---|
3179 | char *s; |
---|
3180 | va_list v; |
---|
3181 | va_start (v,p); |
---|
3182 | s = g (p, va_arg (v,int)); |
---|
3183 | va_end (v); |
---|
3184 | return s; |
---|
3185 | } |
---|
3186 | |
---|
3187 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3188 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3189 | These don't provoke an error unfortunately, instead are silently treated |
---|
3190 | as 'x'. The following induces an error, until -std1 is added to get |
---|
3191 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3192 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3193 | that's true only with -std1. */ |
---|
3194 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3195 | |
---|
3196 | int test (int i, double x); |
---|
3197 | struct s1 {int (*f) (int a);}; |
---|
3198 | struct s2 {int (*f) (double a);}; |
---|
3199 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3200 | int argc; |
---|
3201 | char **argv; |
---|
3202 | int |
---|
3203 | main () |
---|
3204 | { |
---|
3205 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3206 | ; |
---|
3207 | return 0; |
---|
3208 | } |
---|
3209 | _ACEOF |
---|
3210 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3211 | # breaks some systems' header files. |
---|
3212 | # AIX -qlanglvl=ansi |
---|
3213 | # Ultrix and OSF/1 -std1 |
---|
3214 | # HP-UX 10.20 and later -Ae |
---|
3215 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3216 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3217 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3218 | do |
---|
3219 | CC="$ac_save_CC $ac_arg" |
---|
3220 | rm -f conftest.$ac_objext |
---|
3221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3222 | (eval $ac_compile) 2>conftest.er1 |
---|
3223 | ac_status=$? |
---|
3224 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3225 | rm -f conftest.er1 |
---|
3226 | cat conftest.err >&5 |
---|
3227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3228 | (exit $ac_status); } && |
---|
3229 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3230 | || test ! -s conftest.err' |
---|
3231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3232 | (eval $ac_try) 2>&5 |
---|
3233 | ac_status=$? |
---|
3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3235 | (exit $ac_status); }; } && |
---|
3236 | { ac_try='test -s conftest.$ac_objext' |
---|
3237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3238 | (eval $ac_try) 2>&5 |
---|
3239 | ac_status=$? |
---|
3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3241 | (exit $ac_status); }; }; then |
---|
3242 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3243 | break |
---|
3244 | else |
---|
3245 | echo "$as_me: failed program was:" >&5 |
---|
3246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3247 | |
---|
3248 | fi |
---|
3249 | rm -f conftest.err conftest.$ac_objext |
---|
3250 | done |
---|
3251 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3252 | CC=$ac_save_CC |
---|
3253 | |
---|
3254 | fi |
---|
3255 | |
---|
3256 | case "x$ac_cv_prog_cc_stdc" in |
---|
3257 | x|xno) |
---|
3258 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3259 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3260 | *) |
---|
3261 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3262 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3263 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3264 | esac |
---|
3265 | |
---|
3266 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3267 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3268 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3269 | # the declaration of exit, since it's the most demanding environment. |
---|
3270 | cat >conftest.$ac_ext <<_ACEOF |
---|
3271 | #ifndef __cplusplus |
---|
3272 | choke me |
---|
3273 | #endif |
---|
3274 | _ACEOF |
---|
3275 | rm -f conftest.$ac_objext |
---|
3276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3277 | (eval $ac_compile) 2>conftest.er1 |
---|
3278 | ac_status=$? |
---|
3279 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3280 | rm -f conftest.er1 |
---|
3281 | cat conftest.err >&5 |
---|
3282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3283 | (exit $ac_status); } && |
---|
3284 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3285 | || test ! -s conftest.err' |
---|
3286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3287 | (eval $ac_try) 2>&5 |
---|
3288 | ac_status=$? |
---|
3289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3290 | (exit $ac_status); }; } && |
---|
3291 | { ac_try='test -s conftest.$ac_objext' |
---|
3292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3293 | (eval $ac_try) 2>&5 |
---|
3294 | ac_status=$? |
---|
3295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3296 | (exit $ac_status); }; }; then |
---|
3297 | for ac_declaration in \ |
---|
3298 | '' \ |
---|
3299 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3300 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3301 | 'extern "C" void exit (int) throw ();' \ |
---|
3302 | 'extern "C" void exit (int);' \ |
---|
3303 | 'void exit (int);' |
---|
3304 | do |
---|
3305 | cat >conftest.$ac_ext <<_ACEOF |
---|
3306 | /* confdefs.h. */ |
---|
3307 | _ACEOF |
---|
3308 | cat confdefs.h >>conftest.$ac_ext |
---|
3309 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3310 | /* end confdefs.h. */ |
---|
3311 | $ac_declaration |
---|
3312 | #include <stdlib.h> |
---|
3313 | int |
---|
3314 | main () |
---|
3315 | { |
---|
3316 | exit (42); |
---|
3317 | ; |
---|
3318 | return 0; |
---|
3319 | } |
---|
3320 | _ACEOF |
---|
3321 | rm -f conftest.$ac_objext |
---|
3322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3323 | (eval $ac_compile) 2>conftest.er1 |
---|
3324 | ac_status=$? |
---|
3325 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3326 | rm -f conftest.er1 |
---|
3327 | cat conftest.err >&5 |
---|
3328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3329 | (exit $ac_status); } && |
---|
3330 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3331 | || test ! -s conftest.err' |
---|
3332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3333 | (eval $ac_try) 2>&5 |
---|
3334 | ac_status=$? |
---|
3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3336 | (exit $ac_status); }; } && |
---|
3337 | { ac_try='test -s conftest.$ac_objext' |
---|
3338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3339 | (eval $ac_try) 2>&5 |
---|
3340 | ac_status=$? |
---|
3341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3342 | (exit $ac_status); }; }; then |
---|
3343 | : |
---|
3344 | else |
---|
3345 | echo "$as_me: failed program was:" >&5 |
---|
3346 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3347 | |
---|
3348 | continue |
---|
3349 | fi |
---|
3350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3351 | cat >conftest.$ac_ext <<_ACEOF |
---|
3352 | /* confdefs.h. */ |
---|
3353 | _ACEOF |
---|
3354 | cat confdefs.h >>conftest.$ac_ext |
---|
3355 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3356 | /* end confdefs.h. */ |
---|
3357 | $ac_declaration |
---|
3358 | int |
---|
3359 | main () |
---|
3360 | { |
---|
3361 | exit (42); |
---|
3362 | ; |
---|
3363 | return 0; |
---|
3364 | } |
---|
3365 | _ACEOF |
---|
3366 | rm -f conftest.$ac_objext |
---|
3367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3368 | (eval $ac_compile) 2>conftest.er1 |
---|
3369 | ac_status=$? |
---|
3370 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3371 | rm -f conftest.er1 |
---|
3372 | cat conftest.err >&5 |
---|
3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3374 | (exit $ac_status); } && |
---|
3375 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3376 | || test ! -s conftest.err' |
---|
3377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3378 | (eval $ac_try) 2>&5 |
---|
3379 | ac_status=$? |
---|
3380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3381 | (exit $ac_status); }; } && |
---|
3382 | { ac_try='test -s conftest.$ac_objext' |
---|
3383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3384 | (eval $ac_try) 2>&5 |
---|
3385 | ac_status=$? |
---|
3386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3387 | (exit $ac_status); }; }; then |
---|
3388 | break |
---|
3389 | else |
---|
3390 | echo "$as_me: failed program was:" >&5 |
---|
3391 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3392 | |
---|
3393 | fi |
---|
3394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3395 | done |
---|
3396 | rm -f conftest* |
---|
3397 | if test -n "$ac_declaration"; then |
---|
3398 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3399 | echo $ac_declaration >>confdefs.h |
---|
3400 | echo '#endif' >>confdefs.h |
---|
3401 | fi |
---|
3402 | |
---|
3403 | else |
---|
3404 | echo "$as_me: failed program was:" >&5 |
---|
3405 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3406 | |
---|
3407 | fi |
---|
3408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3409 | ac_ext=c |
---|
3410 | ac_cpp='$CPP $CPPFLAGS' |
---|
3411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3414 | |
---|
3415 | depcc="$CC" am_compiler_list= |
---|
3416 | |
---|
3417 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3418 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3419 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3421 | else |
---|
3422 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3423 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3424 | # making bogus files that we don't know about and never remove. For |
---|
3425 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3426 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3427 | # in D'. |
---|
3428 | mkdir conftest.dir |
---|
3429 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3430 | # using a relative directory. |
---|
3431 | cp "$am_depcomp" conftest.dir |
---|
3432 | cd conftest.dir |
---|
3433 | # We will build objects and dependencies in a subdirectory because |
---|
3434 | # it helps to detect inapplicable dependency modes. For instance |
---|
3435 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3436 | # side effect of compilation, but ICC will put the dependencies in |
---|
3437 | # the current directory while Tru64 will put them in the object |
---|
3438 | # directory. |
---|
3439 | mkdir sub |
---|
3440 | |
---|
3441 | am_cv_CC_dependencies_compiler_type=none |
---|
3442 | if test "$am_compiler_list" = ""; then |
---|
3443 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3444 | fi |
---|
3445 | for depmode in $am_compiler_list; do |
---|
3446 | # Setup a source with many dependencies, because some compilers |
---|
3447 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3448 | # we should not choose a depcomp mode which is confused by this. |
---|
3449 | # |
---|
3450 | # We need to recreate these files for each test, as the compiler may |
---|
3451 | # overwrite some of them when testing with obscure command lines. |
---|
3452 | # This happens at least with the AIX C compiler. |
---|
3453 | : > sub/conftest.c |
---|
3454 | for i in 1 2 3 4 5 6; do |
---|
3455 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3456 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3457 | # Solaris 8's {/usr,}/bin/sh. |
---|
3458 | touch sub/conftst$i.h |
---|
3459 | done |
---|
3460 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3461 | |
---|
3462 | case $depmode in |
---|
3463 | nosideeffect) |
---|
3464 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3465 | # only be used when explicitly requested |
---|
3466 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3467 | continue |
---|
3468 | else |
---|
3469 | break |
---|
3470 | fi |
---|
3471 | ;; |
---|
3472 | none) break ;; |
---|
3473 | esac |
---|
3474 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3475 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3476 | # handle `-M -o', and we need to detect this. |
---|
3477 | if depmode=$depmode \ |
---|
3478 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3479 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3480 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3481 | >/dev/null 2>conftest.err && |
---|
3482 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3483 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3484 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3485 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3486 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3487 | # that says an option was ignored or not supported. |
---|
3488 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3489 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3490 | # The diagnosis changed in icc 8.0: |
---|
3491 | # icc: Command line remark: option '-MP' not supported |
---|
3492 | if (grep 'ignoring option' conftest.err || |
---|
3493 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3494 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3495 | break |
---|
3496 | fi |
---|
3497 | fi |
---|
3498 | done |
---|
3499 | |
---|
3500 | cd .. |
---|
3501 | rm -rf conftest.dir |
---|
3502 | else |
---|
3503 | am_cv_CC_dependencies_compiler_type=none |
---|
3504 | fi |
---|
3505 | |
---|
3506 | fi |
---|
3507 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3508 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3509 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3510 | |
---|
3511 | |
---|
3512 | |
---|
3513 | if |
---|
3514 | test "x$enable_dependency_tracking" != xno \ |
---|
3515 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3516 | am__fastdepCC_TRUE= |
---|
3517 | am__fastdepCC_FALSE='#' |
---|
3518 | else |
---|
3519 | am__fastdepCC_TRUE='#' |
---|
3520 | am__fastdepCC_FALSE= |
---|
3521 | fi |
---|
3522 | |
---|
3523 | |
---|
3524 | |
---|
3525 | ac_ext=c |
---|
3526 | ac_cpp='$CPP $CPPFLAGS' |
---|
3527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3530 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3531 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3532 | # On Suns, sometimes $CPP names a directory. |
---|
3533 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3534 | CPP= |
---|
3535 | fi |
---|
3536 | if test -z "$CPP"; then |
---|
3537 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3539 | else |
---|
3540 | # Double quotes because CPP needs to be expanded |
---|
3541 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3542 | do |
---|
3543 | ac_preproc_ok=false |
---|
3544 | for ac_c_preproc_warn_flag in '' yes |
---|
3545 | do |
---|
3546 | # Use a header file that comes with gcc, so configuring glibc |
---|
3547 | # with a fresh cross-compiler works. |
---|
3548 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3549 | # <limits.h> exists even on freestanding compilers. |
---|
3550 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3551 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3552 | cat >conftest.$ac_ext <<_ACEOF |
---|
3553 | /* confdefs.h. */ |
---|
3554 | _ACEOF |
---|
3555 | cat confdefs.h >>conftest.$ac_ext |
---|
3556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3557 | /* end confdefs.h. */ |
---|
3558 | #ifdef __STDC__ |
---|
3559 | # include <limits.h> |
---|
3560 | #else |
---|
3561 | # include <assert.h> |
---|
3562 | #endif |
---|
3563 | Syntax error |
---|
3564 | _ACEOF |
---|
3565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3567 | ac_status=$? |
---|
3568 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3569 | rm -f conftest.er1 |
---|
3570 | cat conftest.err >&5 |
---|
3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3572 | (exit $ac_status); } >/dev/null; then |
---|
3573 | if test -s conftest.err; then |
---|
3574 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3575 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3576 | else |
---|
3577 | ac_cpp_err= |
---|
3578 | fi |
---|
3579 | else |
---|
3580 | ac_cpp_err=yes |
---|
3581 | fi |
---|
3582 | if test -z "$ac_cpp_err"; then |
---|
3583 | : |
---|
3584 | else |
---|
3585 | echo "$as_me: failed program was:" >&5 |
---|
3586 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3587 | |
---|
3588 | # Broken: fails on valid input. |
---|
3589 | continue |
---|
3590 | fi |
---|
3591 | rm -f conftest.err conftest.$ac_ext |
---|
3592 | |
---|
3593 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3594 | # can be detected and how. |
---|
3595 | cat >conftest.$ac_ext <<_ACEOF |
---|
3596 | /* confdefs.h. */ |
---|
3597 | _ACEOF |
---|
3598 | cat confdefs.h >>conftest.$ac_ext |
---|
3599 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3600 | /* end confdefs.h. */ |
---|
3601 | #include <ac_nonexistent.h> |
---|
3602 | _ACEOF |
---|
3603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3605 | ac_status=$? |
---|
3606 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3607 | rm -f conftest.er1 |
---|
3608 | cat conftest.err >&5 |
---|
3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3610 | (exit $ac_status); } >/dev/null; then |
---|
3611 | if test -s conftest.err; then |
---|
3612 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3613 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3614 | else |
---|
3615 | ac_cpp_err= |
---|
3616 | fi |
---|
3617 | else |
---|
3618 | ac_cpp_err=yes |
---|
3619 | fi |
---|
3620 | if test -z "$ac_cpp_err"; then |
---|
3621 | # Broken: success on invalid input. |
---|
3622 | continue |
---|
3623 | else |
---|
3624 | echo "$as_me: failed program was:" >&5 |
---|
3625 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3626 | |
---|
3627 | # Passes both tests. |
---|
3628 | ac_preproc_ok=: |
---|
3629 | break |
---|
3630 | fi |
---|
3631 | rm -f conftest.err conftest.$ac_ext |
---|
3632 | |
---|
3633 | done |
---|
3634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3635 | rm -f conftest.err conftest.$ac_ext |
---|
3636 | if $ac_preproc_ok; then |
---|
3637 | break |
---|
3638 | fi |
---|
3639 | |
---|
3640 | done |
---|
3641 | ac_cv_prog_CPP=$CPP |
---|
3642 | |
---|
3643 | fi |
---|
3644 | CPP=$ac_cv_prog_CPP |
---|
3645 | else |
---|
3646 | ac_cv_prog_CPP=$CPP |
---|
3647 | fi |
---|
3648 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3649 | echo "${ECHO_T}$CPP" >&6 |
---|
3650 | ac_preproc_ok=false |
---|
3651 | for ac_c_preproc_warn_flag in '' yes |
---|
3652 | do |
---|
3653 | # Use a header file that comes with gcc, so configuring glibc |
---|
3654 | # with a fresh cross-compiler works. |
---|
3655 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3656 | # <limits.h> exists even on freestanding compilers. |
---|
3657 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3658 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3659 | cat >conftest.$ac_ext <<_ACEOF |
---|
3660 | /* confdefs.h. */ |
---|
3661 | _ACEOF |
---|
3662 | cat confdefs.h >>conftest.$ac_ext |
---|
3663 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3664 | /* end confdefs.h. */ |
---|
3665 | #ifdef __STDC__ |
---|
3666 | # include <limits.h> |
---|
3667 | #else |
---|
3668 | # include <assert.h> |
---|
3669 | #endif |
---|
3670 | Syntax error |
---|
3671 | _ACEOF |
---|
3672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3674 | ac_status=$? |
---|
3675 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3676 | rm -f conftest.er1 |
---|
3677 | cat conftest.err >&5 |
---|
3678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3679 | (exit $ac_status); } >/dev/null; then |
---|
3680 | if test -s conftest.err; then |
---|
3681 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3682 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3683 | else |
---|
3684 | ac_cpp_err= |
---|
3685 | fi |
---|
3686 | else |
---|
3687 | ac_cpp_err=yes |
---|
3688 | fi |
---|
3689 | if test -z "$ac_cpp_err"; then |
---|
3690 | : |
---|
3691 | else |
---|
3692 | echo "$as_me: failed program was:" >&5 |
---|
3693 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3694 | |
---|
3695 | # Broken: fails on valid input. |
---|
3696 | continue |
---|
3697 | fi |
---|
3698 | rm -f conftest.err conftest.$ac_ext |
---|
3699 | |
---|
3700 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3701 | # can be detected and how. |
---|
3702 | cat >conftest.$ac_ext <<_ACEOF |
---|
3703 | /* confdefs.h. */ |
---|
3704 | _ACEOF |
---|
3705 | cat confdefs.h >>conftest.$ac_ext |
---|
3706 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3707 | /* end confdefs.h. */ |
---|
3708 | #include <ac_nonexistent.h> |
---|
3709 | _ACEOF |
---|
3710 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3711 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3712 | ac_status=$? |
---|
3713 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3714 | rm -f conftest.er1 |
---|
3715 | cat conftest.err >&5 |
---|
3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3717 | (exit $ac_status); } >/dev/null; then |
---|
3718 | if test -s conftest.err; then |
---|
3719 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3720 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3721 | else |
---|
3722 | ac_cpp_err= |
---|
3723 | fi |
---|
3724 | else |
---|
3725 | ac_cpp_err=yes |
---|
3726 | fi |
---|
3727 | if test -z "$ac_cpp_err"; then |
---|
3728 | # Broken: success on invalid input. |
---|
3729 | continue |
---|
3730 | else |
---|
3731 | echo "$as_me: failed program was:" >&5 |
---|
3732 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3733 | |
---|
3734 | # Passes both tests. |
---|
3735 | ac_preproc_ok=: |
---|
3736 | break |
---|
3737 | fi |
---|
3738 | rm -f conftest.err conftest.$ac_ext |
---|
3739 | |
---|
3740 | done |
---|
3741 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3742 | rm -f conftest.err conftest.$ac_ext |
---|
3743 | if $ac_preproc_ok; then |
---|
3744 | : |
---|
3745 | else |
---|
3746 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3747 | See \`config.log' for more details." >&5 |
---|
3748 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3749 | See \`config.log' for more details." >&2;} |
---|
3750 | { (exit 1); exit 1; }; } |
---|
3751 | fi |
---|
3752 | |
---|
3753 | ac_ext=c |
---|
3754 | ac_cpp='$CPP $CPPFLAGS' |
---|
3755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3758 | |
---|
3759 | |
---|
3760 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3761 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3762 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3764 | else |
---|
3765 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3766 | then ac_cv_prog_egrep='grep -E' |
---|
3767 | else ac_cv_prog_egrep='egrep' |
---|
3768 | fi |
---|
3769 | fi |
---|
3770 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3771 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3772 | EGREP=$ac_cv_prog_egrep |
---|
3773 | |
---|
3774 | |
---|
3775 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3776 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3777 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3779 | else |
---|
3780 | cat >conftest.$ac_ext <<_ACEOF |
---|
3781 | /* confdefs.h. */ |
---|
3782 | _ACEOF |
---|
3783 | cat confdefs.h >>conftest.$ac_ext |
---|
3784 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3785 | /* end confdefs.h. */ |
---|
3786 | #include <stdlib.h> |
---|
3787 | #include <stdarg.h> |
---|
3788 | #include <string.h> |
---|
3789 | #include <float.h> |
---|
3790 | |
---|
3791 | int |
---|
3792 | main () |
---|
3793 | { |
---|
3794 | |
---|
3795 | ; |
---|
3796 | return 0; |
---|
3797 | } |
---|
3798 | _ACEOF |
---|
3799 | rm -f conftest.$ac_objext |
---|
3800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3801 | (eval $ac_compile) 2>conftest.er1 |
---|
3802 | ac_status=$? |
---|
3803 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3804 | rm -f conftest.er1 |
---|
3805 | cat conftest.err >&5 |
---|
3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3807 | (exit $ac_status); } && |
---|
3808 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3809 | || test ! -s conftest.err' |
---|
3810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3811 | (eval $ac_try) 2>&5 |
---|
3812 | ac_status=$? |
---|
3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3814 | (exit $ac_status); }; } && |
---|
3815 | { ac_try='test -s conftest.$ac_objext' |
---|
3816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3817 | (eval $ac_try) 2>&5 |
---|
3818 | ac_status=$? |
---|
3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3820 | (exit $ac_status); }; }; then |
---|
3821 | ac_cv_header_stdc=yes |
---|
3822 | else |
---|
3823 | echo "$as_me: failed program was:" >&5 |
---|
3824 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3825 | |
---|
3826 | ac_cv_header_stdc=no |
---|
3827 | fi |
---|
3828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3829 | |
---|
3830 | if test $ac_cv_header_stdc = yes; then |
---|
3831 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3832 | cat >conftest.$ac_ext <<_ACEOF |
---|
3833 | /* confdefs.h. */ |
---|
3834 | _ACEOF |
---|
3835 | cat confdefs.h >>conftest.$ac_ext |
---|
3836 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3837 | /* end confdefs.h. */ |
---|
3838 | #include <string.h> |
---|
3839 | |
---|
3840 | _ACEOF |
---|
3841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3842 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3843 | : |
---|
3844 | else |
---|
3845 | ac_cv_header_stdc=no |
---|
3846 | fi |
---|
3847 | rm -f conftest* |
---|
3848 | |
---|
3849 | fi |
---|
3850 | |
---|
3851 | if test $ac_cv_header_stdc = yes; then |
---|
3852 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3853 | cat >conftest.$ac_ext <<_ACEOF |
---|
3854 | /* confdefs.h. */ |
---|
3855 | _ACEOF |
---|
3856 | cat confdefs.h >>conftest.$ac_ext |
---|
3857 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3858 | /* end confdefs.h. */ |
---|
3859 | #include <stdlib.h> |
---|
3860 | |
---|
3861 | _ACEOF |
---|
3862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3863 | $EGREP "free" >/dev/null 2>&1; then |
---|
3864 | : |
---|
3865 | else |
---|
3866 | ac_cv_header_stdc=no |
---|
3867 | fi |
---|
3868 | rm -f conftest* |
---|
3869 | |
---|
3870 | fi |
---|
3871 | |
---|
3872 | if test $ac_cv_header_stdc = yes; then |
---|
3873 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3874 | if test "$cross_compiling" = yes; then |
---|
3875 | : |
---|
3876 | else |
---|
3877 | cat >conftest.$ac_ext <<_ACEOF |
---|
3878 | /* confdefs.h. */ |
---|
3879 | _ACEOF |
---|
3880 | cat confdefs.h >>conftest.$ac_ext |
---|
3881 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3882 | /* end confdefs.h. */ |
---|
3883 | #include <ctype.h> |
---|
3884 | #if ((' ' & 0x0FF) == 0x020) |
---|
3885 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3886 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3887 | #else |
---|
3888 | # define ISLOWER(c) \ |
---|
3889 | (('a' <= (c) && (c) <= 'i') \ |
---|
3890 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3891 | || ('s' <= (c) && (c) <= 'z')) |
---|
3892 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3893 | #endif |
---|
3894 | |
---|
3895 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3896 | int |
---|
3897 | main () |
---|
3898 | { |
---|
3899 | int i; |
---|
3900 | for (i = 0; i < 256; i++) |
---|
3901 | if (XOR (islower (i), ISLOWER (i)) |
---|
3902 | || toupper (i) != TOUPPER (i)) |
---|
3903 | exit(2); |
---|
3904 | exit (0); |
---|
3905 | } |
---|
3906 | _ACEOF |
---|
3907 | rm -f conftest$ac_exeext |
---|
3908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3909 | (eval $ac_link) 2>&5 |
---|
3910 | ac_status=$? |
---|
3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3912 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3914 | (eval $ac_try) 2>&5 |
---|
3915 | ac_status=$? |
---|
3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3917 | (exit $ac_status); }; }; then |
---|
3918 | : |
---|
3919 | else |
---|
3920 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3921 | echo "$as_me: failed program was:" >&5 |
---|
3922 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3923 | |
---|
3924 | ( exit $ac_status ) |
---|
3925 | ac_cv_header_stdc=no |
---|
3926 | fi |
---|
3927 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3928 | fi |
---|
3929 | fi |
---|
3930 | fi |
---|
3931 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3932 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3933 | if test $ac_cv_header_stdc = yes; then |
---|
3934 | |
---|
3935 | cat >>confdefs.h <<\_ACEOF |
---|
3936 | #define STDC_HEADERS 1 |
---|
3937 | _ACEOF |
---|
3938 | |
---|
3939 | fi |
---|
3940 | |
---|
3941 | |
---|
3942 | ## THIS IS OUR DEFAULT-DATA-DIRECTORY |
---|
3943 | |
---|
3944 | ################################## |
---|
3945 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
3946 | ################################## |
---|
3947 | #----------------# |
---|
3948 | # Data-Directory # |
---|
3949 | #----------------# |
---|
3950 | DATA_DIR=$datadir |
---|
3951 | echo \$\{prefix\} |
---|
3952 | if test $DATA_DIR = \$\{prefix\}/share ; then |
---|
3953 | echo "not given" |
---|
3954 | DATA_DIR=/usr/share |
---|
3955 | else |
---|
3956 | echo "given: $DATA_DIR" |
---|
3957 | fi |
---|
3958 | |
---|
3959 | cat >>confdefs.h <<_ACEOF |
---|
3960 | #define DATADIR "$DATA_DIR" |
---|
3961 | _ACEOF |
---|
3962 | |
---|
3963 | |
---|
3964 | #-----------------# |
---|
3965 | # shared-lib-path # |
---|
3966 | #-----------------# |
---|
3967 | SHARED_LIB_PATH=no |
---|
3968 | echo "$as_me:$LINENO: checking shared lib path" >&5 |
---|
3969 | echo $ECHO_N "checking shared lib path... $ECHO_C" >&6 |
---|
3970 | |
---|
3971 | # Check whether --with-shared-lib-path or --without-shared-lib-path was given. |
---|
3972 | if test "${with_shared_lib_path+set}" = set; then |
---|
3973 | withval="$with_shared_lib_path" |
---|
3974 | SHARED_LIB_PATH=$withval |
---|
3975 | fi; |
---|
3976 | if test x$SHARED_LIB_PATH != xno; then |
---|
3977 | echo "set to $SHARED_LIB_PATH" |
---|
3978 | else |
---|
3979 | echo "no" |
---|
3980 | fi |
---|
3981 | |
---|
3982 | |
---|
3983 | #-----------------# |
---|
3984 | # DEBUG-statement # |
---|
3985 | #-----------------# |
---|
3986 | DEBUG=no |
---|
3987 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
3988 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
3989 | # Check whether --enable-debug or --disable-debug was given. |
---|
3990 | if test "${enable_debug+set}" = set; then |
---|
3991 | enableval="$enable_debug" |
---|
3992 | DEBUG=$enableval |
---|
3993 | fi; |
---|
3994 | |
---|
3995 | if test x$DEBUG = xno; then |
---|
3996 | echo "no" |
---|
3997 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
3998 | DEBUG=4 |
---|
3999 | elif test x$DEBUG = xyes; then |
---|
4000 | echo "yes" |
---|
4001 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
4002 | DEBUG=4 |
---|
4003 | else |
---|
4004 | echo "yes: setting debuglevel to to $DEBUG" |
---|
4005 | fi |
---|
4006 | |
---|
4007 | cat >>confdefs.h <<_ACEOF |
---|
4008 | #define DEBUG $DEBUG |
---|
4009 | _ACEOF |
---|
4010 | |
---|
4011 | |
---|
4012 | |
---|
4013 | #---------------# |
---|
4014 | # Modular Debug # |
---|
4015 | #---------------# |
---|
4016 | MODULAR_DEBUG=yes |
---|
4017 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
4018 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
4019 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
4020 | if test "${enable_modular_debug+set}" = set; then |
---|
4021 | enableval="$enable_modular_debug" |
---|
4022 | MODULAR_DEBUG=$enableval |
---|
4023 | fi; |
---|
4024 | |
---|
4025 | if test x$MODULAR_DEBUG = xno; then |
---|
4026 | echo "no" |
---|
4027 | elif test x$MODULAR_DEBUG = xyes; then |
---|
4028 | echo "yes" |
---|
4029 | |
---|
4030 | cat >>confdefs.h <<_ACEOF |
---|
4031 | #define MODULAR_DEBUG 1 |
---|
4032 | _ACEOF |
---|
4033 | |
---|
4034 | fi |
---|
4035 | |
---|
4036 | #--------------# |
---|
4037 | # GTK-disabled # |
---|
4038 | #--------------# |
---|
4039 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
4040 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
4041 | # Check whether --enable-gtk or --disable-gtk was given. |
---|
4042 | if test "${enable_gtk+set}" = set; then |
---|
4043 | enableval="$enable_gtk" |
---|
4044 | def_gtk=no |
---|
4045 | else |
---|
4046 | def_gtk=yes |
---|
4047 | fi; |
---|
4048 | if test x$def_gtk = xyes; then |
---|
4049 | echo "yes" |
---|
4050 | fi |
---|
4051 | if test x$def_gtk = xno; then |
---|
4052 | echo "no" |
---|
4053 | fi |
---|
4054 | |
---|
4055 | #------------------# |
---|
4056 | # libCurl-disabled # |
---|
4057 | #------------------# |
---|
4058 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
4059 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
4060 | # Check whether --enable-curl or --disable-curl was given. |
---|
4061 | if test "${enable_curl+set}" = set; then |
---|
4062 | enableval="$enable_curl" |
---|
4063 | def_curl=no |
---|
4064 | else |
---|
4065 | def_curl=yes |
---|
4066 | fi; |
---|
4067 | if test x$def_curl = xyes; then |
---|
4068 | echo "yes" |
---|
4069 | fi |
---|
4070 | if test x$def_curl = xno; then |
---|
4071 | echo "no" |
---|
4072 | fi |
---|
4073 | |
---|
4074 | #-------------------# |
---|
4075 | # SubProject-enable # |
---|
4076 | #-------------------# |
---|
4077 | def_sub_projects=no |
---|
4078 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
4079 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
4080 | |
---|
4081 | # Check whether --with-sub-projects or --without-sub-projects was given. |
---|
4082 | if test "${with_sub_projects+set}" = set; then |
---|
4083 | withval="$with_sub_projects" |
---|
4084 | def_sub_projects=yes |
---|
4085 | fi; |
---|
4086 | if test x$def_sub_projects = xyes; then |
---|
4087 | echo "yes" |
---|
4088 | fi |
---|
4089 | if test x$def_sub_projects = xno; then |
---|
4090 | echo "no" |
---|
4091 | fi |
---|
4092 | |
---|
4093 | |
---|
4094 | if test x$def_sub_projects = xyes; then |
---|
4095 | SUB_PROJECTS_TRUE= |
---|
4096 | SUB_PROJECTS_FALSE='#' |
---|
4097 | else |
---|
4098 | SUB_PROJECTS_TRUE='#' |
---|
4099 | SUB_PROJECTS_FALSE= |
---|
4100 | fi |
---|
4101 | |
---|
4102 | |
---|
4103 | #-------------------# |
---|
4104 | # Profiling Enabled # |
---|
4105 | #-------------------# |
---|
4106 | def_profiling=no |
---|
4107 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
4108 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
4109 | # Check whether --enable-profile or --disable-profile was given. |
---|
4110 | if test "${enable_profile+set}" = set; then |
---|
4111 | enableval="$enable_profile" |
---|
4112 | def_profiling=yes |
---|
4113 | fi; |
---|
4114 | if test x$def_profiling = xyes; then |
---|
4115 | echo "yes" |
---|
4116 | CXXFLAGS="$CXXFLAGS -pg" |
---|
4117 | fi |
---|
4118 | if test x$def_profiling = xno; then |
---|
4119 | echo "no" |
---|
4120 | fi |
---|
4121 | |
---|
4122 | #----------------# |
---|
4123 | # efence Enabled # |
---|
4124 | #----------------# |
---|
4125 | def_efence=no |
---|
4126 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
4127 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
4128 | # Check whether --enable-efence or --disable-efence was given. |
---|
4129 | if test "${enable_efence+set}" = set; then |
---|
4130 | enableval="$enable_efence" |
---|
4131 | def_efence=yes |
---|
4132 | fi; |
---|
4133 | if test x$def_efence = xyes; then |
---|
4134 | echo "yes" |
---|
4135 | fi |
---|
4136 | if test x$def_efence = xno; then |
---|
4137 | echo "no" |
---|
4138 | fi |
---|
4139 | |
---|
4140 | #----------------------# |
---|
4141 | # Documentation-enable # |
---|
4142 | #----------------------# |
---|
4143 | def_documentation=no |
---|
4144 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
4145 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
4146 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
4147 | if test "${enable_documentation+set}" = set; then |
---|
4148 | enableval="$enable_documentation" |
---|
4149 | def_documentation=yes |
---|
4150 | fi; |
---|
4151 | if test x$def_documentation = xyes; then |
---|
4152 | echo "yes" |
---|
4153 | fi |
---|
4154 | if test x$def_documentation = xno; then |
---|
4155 | echo "no" |
---|
4156 | fi |
---|
4157 | |
---|
4158 | |
---|
4159 | if test x$def_documentation = xyes; then |
---|
4160 | DOCUMENTATION_TRUE= |
---|
4161 | DOCUMENTATION_FALSE='#' |
---|
4162 | else |
---|
4163 | DOCUMENTATION_TRUE='#' |
---|
4164 | DOCUMENTATION_FALSE= |
---|
4165 | fi |
---|
4166 | |
---|
4167 | |
---|
4168 | |
---|
4169 | |
---|
4170 | #---------------------------# |
---|
4171 | # WITH TARDIS (convenience) # |
---|
4172 | #---------------------------# |
---|
4173 | def_tardis=no |
---|
4174 | GTKPATH="" |
---|
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 | GTKPATH=${GTKPREFIX}/${ARCH}/bin |
---|
4192 | CPPFLAGS="${CPPFLAGS} -I${GTKPREFIX}/include" |
---|
4193 | LDFLAGS="${LDFLAGS} -L${GTKPREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${GTKPREFIX}/${ARCH}/lib" |
---|
4194 | echo "yes" |
---|
4195 | fi |
---|
4196 | if test x$def_tardis = xno; then |
---|
4197 | echo "no" |
---|
4198 | fi |
---|
4199 | |
---|
4200 | ####################### |
---|
4201 | ## PROGRAMM CHECKING ## |
---|
4202 | ## 3. party Programs ## |
---|
4203 | ####################### |
---|
4204 | |
---|
4205 | #----------------------# |
---|
4206 | # checking for Doxygen # |
---|
4207 | #----------------------# |
---|
4208 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
4209 | set dummy doxygen; ac_word=$2 |
---|
4210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4212 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
4213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4214 | else |
---|
4215 | case $DOXYGEN in |
---|
4216 | [\\/]* | ?:[\\/]*) |
---|
4217 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
4218 | ;; |
---|
4219 | *) |
---|
4220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4221 | for as_dir in $PATH |
---|
4222 | do |
---|
4223 | IFS=$as_save_IFS |
---|
4224 | test -z "$as_dir" && as_dir=. |
---|
4225 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4227 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
4228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4229 | break 2 |
---|
4230 | fi |
---|
4231 | done |
---|
4232 | done |
---|
4233 | |
---|
4234 | ;; |
---|
4235 | esac |
---|
4236 | fi |
---|
4237 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
4238 | |
---|
4239 | if test -n "$DOXYGEN"; then |
---|
4240 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
4241 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
4242 | else |
---|
4243 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4244 | echo "${ECHO_T}no" >&6 |
---|
4245 | fi |
---|
4246 | |
---|
4247 | |
---|
4248 | |
---|
4249 | if test $DOXYGEN; then |
---|
4250 | DOXYGEN_TRUE= |
---|
4251 | DOXYGEN_FALSE='#' |
---|
4252 | else |
---|
4253 | DOXYGEN_TRUE='#' |
---|
4254 | DOXYGEN_FALSE= |
---|
4255 | fi |
---|
4256 | |
---|
4257 | |
---|
4258 | #--------------------# |
---|
4259 | # checking for gprof # |
---|
4260 | #--------------------# |
---|
4261 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
4262 | set dummy gprof; ac_word=$2 |
---|
4263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4265 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
4266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4267 | else |
---|
4268 | case $GPROF in |
---|
4269 | [\\/]* | ?:[\\/]*) |
---|
4270 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
4271 | ;; |
---|
4272 | *) |
---|
4273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4274 | for as_dir in $PATH |
---|
4275 | do |
---|
4276 | IFS=$as_save_IFS |
---|
4277 | test -z "$as_dir" && as_dir=. |
---|
4278 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4280 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
4281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4282 | break 2 |
---|
4283 | fi |
---|
4284 | done |
---|
4285 | done |
---|
4286 | |
---|
4287 | ;; |
---|
4288 | esac |
---|
4289 | fi |
---|
4290 | GPROF=$ac_cv_path_GPROF |
---|
4291 | |
---|
4292 | if test -n "$GPROF"; then |
---|
4293 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
4294 | echo "${ECHO_T}$GPROF" >&6 |
---|
4295 | else |
---|
4296 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4297 | echo "${ECHO_T}no" >&6 |
---|
4298 | fi |
---|
4299 | |
---|
4300 | |
---|
4301 | #-------------------------# |
---|
4302 | # checking for pkg-config # |
---|
4303 | #-------------------------# |
---|
4304 | if test x$def_gtk = xyes; then |
---|
4305 | if test x${GTKPATH} != x; then |
---|
4306 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
4307 | set dummy pkg-config; ac_word=$2 |
---|
4308 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4310 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
4311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4312 | else |
---|
4313 | case $PKG_CONFIG in |
---|
4314 | [\\/]* | ?:[\\/]*) |
---|
4315 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
4316 | ;; |
---|
4317 | *) |
---|
4318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4319 | for as_dir in $GTKPATH |
---|
4320 | do |
---|
4321 | IFS=$as_save_IFS |
---|
4322 | test -z "$as_dir" && as_dir=. |
---|
4323 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4325 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
4326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4327 | break 2 |
---|
4328 | fi |
---|
4329 | done |
---|
4330 | done |
---|
4331 | |
---|
4332 | ;; |
---|
4333 | esac |
---|
4334 | fi |
---|
4335 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
4336 | |
---|
4337 | if test -n "$PKG_CONFIG"; then |
---|
4338 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
4339 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
4340 | else |
---|
4341 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4342 | echo "${ECHO_T}no" >&6 |
---|
4343 | fi |
---|
4344 | |
---|
4345 | else |
---|
4346 | # Extract the first word of "pkg-config ", so it can be a program name with args. |
---|
4347 | set dummy pkg-config ; ac_word=$2 |
---|
4348 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4350 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
4351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4352 | else |
---|
4353 | case $PKG_CONFIG in |
---|
4354 | [\\/]* | ?:[\\/]*) |
---|
4355 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
4356 | ;; |
---|
4357 | *) |
---|
4358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4359 | for as_dir in $PATH |
---|
4360 | do |
---|
4361 | IFS=$as_save_IFS |
---|
4362 | test -z "$as_dir" && as_dir=. |
---|
4363 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4364 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4365 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
4366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4367 | break 2 |
---|
4368 | fi |
---|
4369 | done |
---|
4370 | done |
---|
4371 | |
---|
4372 | ;; |
---|
4373 | esac |
---|
4374 | fi |
---|
4375 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
4376 | |
---|
4377 | if test -n "$PKG_CONFIG"; then |
---|
4378 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
4379 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
4380 | else |
---|
4381 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4382 | echo "${ECHO_T}no" >&6 |
---|
4383 | fi |
---|
4384 | |
---|
4385 | fi |
---|
4386 | fi |
---|
4387 | |
---|
4388 | |
---|
4389 | ######################### |
---|
4390 | ## CHECKING FOR SYSTEM ## |
---|
4391 | ######################### |
---|
4392 | ## here the system is checked, and openGL is included |
---|
4393 | ## also checking for SDL on differen Systems |
---|
4394 | |
---|
4395 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
4396 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
4397 | ## checking for openGL-environment and other sys-specific parameters |
---|
4398 | case "$target" in |
---|
4399 | |
---|
4400 | ########### |
---|
4401 | #---------# |
---|
4402 | # WINDOWS # |
---|
4403 | #---------# |
---|
4404 | ########### |
---|
4405 | *-*-mingw32*) |
---|
4406 | echo "mingw-WINDOWS detected" |
---|
4407 | |
---|
4408 | CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS" |
---|
4409 | |
---|
4410 | mingw="yes" |
---|
4411 | MSBITFIELDS="-mms-bitfields" |
---|
4412 | MWINDOWS="-mwindows" |
---|
4413 | |
---|
4414 | #--------# |
---|
4415 | # MIN-GW # |
---|
4416 | #--------# |
---|
4417 | # checking for mingw32 |
---|
4418 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4419 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4420 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4422 | else |
---|
4423 | ac_check_lib_save_LIBS=$LIBS |
---|
4424 | LIBS="-lmingw32 $LIBS" |
---|
4425 | cat >conftest.$ac_ext <<_ACEOF |
---|
4426 | /* confdefs.h. */ |
---|
4427 | _ACEOF |
---|
4428 | cat confdefs.h >>conftest.$ac_ext |
---|
4429 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4430 | /* end confdefs.h. */ |
---|
4431 | |
---|
4432 | |
---|
4433 | int |
---|
4434 | main () |
---|
4435 | { |
---|
4436 | main (); |
---|
4437 | ; |
---|
4438 | return 0; |
---|
4439 | } |
---|
4440 | _ACEOF |
---|
4441 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4443 | (eval $ac_link) 2>conftest.er1 |
---|
4444 | ac_status=$? |
---|
4445 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4446 | rm -f conftest.er1 |
---|
4447 | cat conftest.err >&5 |
---|
4448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4449 | (exit $ac_status); } && |
---|
4450 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4451 | || test ! -s conftest.err' |
---|
4452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4453 | (eval $ac_try) 2>&5 |
---|
4454 | ac_status=$? |
---|
4455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4456 | (exit $ac_status); }; } && |
---|
4457 | { ac_try='test -s conftest$ac_exeext' |
---|
4458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4459 | (eval $ac_try) 2>&5 |
---|
4460 | ac_status=$? |
---|
4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4462 | (exit $ac_status); }; }; then |
---|
4463 | ac_cv_lib_mingw32_main=yes |
---|
4464 | else |
---|
4465 | echo "$as_me: failed program was:" >&5 |
---|
4466 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4467 | |
---|
4468 | ac_cv_lib_mingw32_main=no |
---|
4469 | fi |
---|
4470 | rm -f conftest.err conftest.$ac_objext \ |
---|
4471 | conftest$ac_exeext conftest.$ac_ext |
---|
4472 | LIBS=$ac_check_lib_save_LIBS |
---|
4473 | fi |
---|
4474 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4475 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4476 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4477 | FOUND_mingw32=yes |
---|
4478 | fi |
---|
4479 | |
---|
4480 | if test x$FOUND_mingw32 = xyes; then |
---|
4481 | LIBS="$LIBS -lmingw32" |
---|
4482 | fi |
---|
4483 | |
---|
4484 | #---------------# |
---|
4485 | # open-GL (win) # |
---|
4486 | #---------------# |
---|
4487 | # checking gl header |
---|
4488 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4489 | |
---|
4490 | |
---|
4491 | |
---|
4492 | |
---|
4493 | |
---|
4494 | |
---|
4495 | |
---|
4496 | |
---|
4497 | |
---|
4498 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4499 | inttypes.h stdint.h unistd.h |
---|
4500 | do |
---|
4501 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4502 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4503 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4504 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4506 | else |
---|
4507 | cat >conftest.$ac_ext <<_ACEOF |
---|
4508 | /* confdefs.h. */ |
---|
4509 | _ACEOF |
---|
4510 | cat confdefs.h >>conftest.$ac_ext |
---|
4511 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4512 | /* end confdefs.h. */ |
---|
4513 | $ac_includes_default |
---|
4514 | |
---|
4515 | #include <$ac_header> |
---|
4516 | _ACEOF |
---|
4517 | rm -f conftest.$ac_objext |
---|
4518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4519 | (eval $ac_compile) 2>conftest.er1 |
---|
4520 | ac_status=$? |
---|
4521 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4522 | rm -f conftest.er1 |
---|
4523 | cat conftest.err >&5 |
---|
4524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4525 | (exit $ac_status); } && |
---|
4526 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4527 | || test ! -s conftest.err' |
---|
4528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4529 | (eval $ac_try) 2>&5 |
---|
4530 | ac_status=$? |
---|
4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4532 | (exit $ac_status); }; } && |
---|
4533 | { ac_try='test -s conftest.$ac_objext' |
---|
4534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4535 | (eval $ac_try) 2>&5 |
---|
4536 | ac_status=$? |
---|
4537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4538 | (exit $ac_status); }; }; then |
---|
4539 | eval "$as_ac_Header=yes" |
---|
4540 | else |
---|
4541 | echo "$as_me: failed program was:" >&5 |
---|
4542 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4543 | |
---|
4544 | eval "$as_ac_Header=no" |
---|
4545 | fi |
---|
4546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4547 | fi |
---|
4548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4549 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4550 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4551 | cat >>confdefs.h <<_ACEOF |
---|
4552 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4553 | _ACEOF |
---|
4554 | |
---|
4555 | fi |
---|
4556 | |
---|
4557 | done |
---|
4558 | |
---|
4559 | |
---|
4560 | |
---|
4561 | for ac_header in GL/gl.h |
---|
4562 | do |
---|
4563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4565 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4567 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4569 | fi |
---|
4570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4572 | else |
---|
4573 | # Is the header compilable? |
---|
4574 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4575 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4576 | cat >conftest.$ac_ext <<_ACEOF |
---|
4577 | /* confdefs.h. */ |
---|
4578 | _ACEOF |
---|
4579 | cat confdefs.h >>conftest.$ac_ext |
---|
4580 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4581 | /* end confdefs.h. */ |
---|
4582 | $ac_includes_default |
---|
4583 | #include <$ac_header> |
---|
4584 | _ACEOF |
---|
4585 | rm -f conftest.$ac_objext |
---|
4586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4587 | (eval $ac_compile) 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); } && |
---|
4594 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4595 | || test ! -s conftest.err' |
---|
4596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4597 | (eval $ac_try) 2>&5 |
---|
4598 | ac_status=$? |
---|
4599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4600 | (exit $ac_status); }; } && |
---|
4601 | { ac_try='test -s conftest.$ac_objext' |
---|
4602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4603 | (eval $ac_try) 2>&5 |
---|
4604 | ac_status=$? |
---|
4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4606 | (exit $ac_status); }; }; then |
---|
4607 | ac_header_compiler=yes |
---|
4608 | else |
---|
4609 | echo "$as_me: failed program was:" >&5 |
---|
4610 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4611 | |
---|
4612 | ac_header_compiler=no |
---|
4613 | fi |
---|
4614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4615 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4616 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4617 | |
---|
4618 | # Is the header present? |
---|
4619 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4620 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4621 | cat >conftest.$ac_ext <<_ACEOF |
---|
4622 | /* confdefs.h. */ |
---|
4623 | _ACEOF |
---|
4624 | cat confdefs.h >>conftest.$ac_ext |
---|
4625 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4626 | /* end confdefs.h. */ |
---|
4627 | #include <$ac_header> |
---|
4628 | _ACEOF |
---|
4629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4631 | ac_status=$? |
---|
4632 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4633 | rm -f conftest.er1 |
---|
4634 | cat conftest.err >&5 |
---|
4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4636 | (exit $ac_status); } >/dev/null; then |
---|
4637 | if test -s conftest.err; then |
---|
4638 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4639 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4640 | else |
---|
4641 | ac_cpp_err= |
---|
4642 | fi |
---|
4643 | else |
---|
4644 | ac_cpp_err=yes |
---|
4645 | fi |
---|
4646 | if test -z "$ac_cpp_err"; then |
---|
4647 | ac_header_preproc=yes |
---|
4648 | else |
---|
4649 | echo "$as_me: failed program was:" >&5 |
---|
4650 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4651 | |
---|
4652 | ac_header_preproc=no |
---|
4653 | fi |
---|
4654 | rm -f conftest.err conftest.$ac_ext |
---|
4655 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4656 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4657 | |
---|
4658 | # So? What about this header? |
---|
4659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4660 | yes:no: ) |
---|
4661 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4662 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4664 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4665 | ac_header_preproc=yes |
---|
4666 | ;; |
---|
4667 | no:yes:* ) |
---|
4668 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4669 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4670 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4671 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4672 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4673 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4674 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4675 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4676 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4677 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4678 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4679 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4680 | ( |
---|
4681 | cat <<\_ASBOX |
---|
4682 | ## ---------------------------------------------- ## |
---|
4683 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4684 | ## ---------------------------------------------- ## |
---|
4685 | _ASBOX |
---|
4686 | ) | |
---|
4687 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4688 | ;; |
---|
4689 | esac |
---|
4690 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4692 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4694 | else |
---|
4695 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4696 | fi |
---|
4697 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4698 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4699 | |
---|
4700 | fi |
---|
4701 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4702 | cat >>confdefs.h <<_ACEOF |
---|
4703 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4704 | _ACEOF |
---|
4705 | |
---|
4706 | else |
---|
4707 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4708 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4709 | { (exit 1); exit 1; }; } |
---|
4710 | fi |
---|
4711 | |
---|
4712 | done |
---|
4713 | |
---|
4714 | # checking for Windows openGl library |
---|
4715 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4716 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4717 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4719 | else |
---|
4720 | ac_check_lib_save_LIBS=$LIBS |
---|
4721 | LIBS="-lopengl32 $LIBS" |
---|
4722 | cat >conftest.$ac_ext <<_ACEOF |
---|
4723 | /* confdefs.h. */ |
---|
4724 | _ACEOF |
---|
4725 | cat confdefs.h >>conftest.$ac_ext |
---|
4726 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4727 | /* end confdefs.h. */ |
---|
4728 | |
---|
4729 | |
---|
4730 | int |
---|
4731 | main () |
---|
4732 | { |
---|
4733 | main (); |
---|
4734 | ; |
---|
4735 | return 0; |
---|
4736 | } |
---|
4737 | _ACEOF |
---|
4738 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4740 | (eval $ac_link) 2>conftest.er1 |
---|
4741 | ac_status=$? |
---|
4742 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4743 | rm -f conftest.er1 |
---|
4744 | cat conftest.err >&5 |
---|
4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4746 | (exit $ac_status); } && |
---|
4747 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4748 | || test ! -s conftest.err' |
---|
4749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4750 | (eval $ac_try) 2>&5 |
---|
4751 | ac_status=$? |
---|
4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4753 | (exit $ac_status); }; } && |
---|
4754 | { ac_try='test -s conftest$ac_exeext' |
---|
4755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4756 | (eval $ac_try) 2>&5 |
---|
4757 | ac_status=$? |
---|
4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4759 | (exit $ac_status); }; }; then |
---|
4760 | ac_cv_lib_opengl32_main=yes |
---|
4761 | else |
---|
4762 | echo "$as_me: failed program was:" >&5 |
---|
4763 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4764 | |
---|
4765 | ac_cv_lib_opengl32_main=no |
---|
4766 | fi |
---|
4767 | rm -f conftest.err conftest.$ac_objext \ |
---|
4768 | conftest$ac_exeext conftest.$ac_ext |
---|
4769 | LIBS=$ac_check_lib_save_LIBS |
---|
4770 | fi |
---|
4771 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4772 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4773 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4774 | FOUND_GL=yes; LIBS="$LIBS -lopengl32" |
---|
4775 | fi |
---|
4776 | |
---|
4777 | if test x$FOUND_GL != xyes ; then |
---|
4778 | echo "------------------" |
---|
4779 | echo "opengl not found." |
---|
4780 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4781 | echo "------------------" |
---|
4782 | exit -1 |
---|
4783 | fi |
---|
4784 | |
---|
4785 | # cheking for GLU-header |
---|
4786 | |
---|
4787 | for ac_header in GL/glu.h |
---|
4788 | do |
---|
4789 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4790 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4791 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4795 | fi |
---|
4796 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4797 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4798 | else |
---|
4799 | # Is the header compilable? |
---|
4800 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4801 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4802 | cat >conftest.$ac_ext <<_ACEOF |
---|
4803 | /* confdefs.h. */ |
---|
4804 | _ACEOF |
---|
4805 | cat confdefs.h >>conftest.$ac_ext |
---|
4806 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4807 | /* end confdefs.h. */ |
---|
4808 | $ac_includes_default |
---|
4809 | #include <$ac_header> |
---|
4810 | _ACEOF |
---|
4811 | rm -f conftest.$ac_objext |
---|
4812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4813 | (eval $ac_compile) 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); } && |
---|
4820 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4821 | || test ! -s conftest.err' |
---|
4822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4823 | (eval $ac_try) 2>&5 |
---|
4824 | ac_status=$? |
---|
4825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4826 | (exit $ac_status); }; } && |
---|
4827 | { ac_try='test -s conftest.$ac_objext' |
---|
4828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4829 | (eval $ac_try) 2>&5 |
---|
4830 | ac_status=$? |
---|
4831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4832 | (exit $ac_status); }; }; then |
---|
4833 | ac_header_compiler=yes |
---|
4834 | else |
---|
4835 | echo "$as_me: failed program was:" >&5 |
---|
4836 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4837 | |
---|
4838 | ac_header_compiler=no |
---|
4839 | fi |
---|
4840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4841 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4842 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4843 | |
---|
4844 | # Is the header present? |
---|
4845 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4846 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4847 | cat >conftest.$ac_ext <<_ACEOF |
---|
4848 | /* confdefs.h. */ |
---|
4849 | _ACEOF |
---|
4850 | cat confdefs.h >>conftest.$ac_ext |
---|
4851 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4852 | /* end confdefs.h. */ |
---|
4853 | #include <$ac_header> |
---|
4854 | _ACEOF |
---|
4855 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4856 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4857 | ac_status=$? |
---|
4858 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4859 | rm -f conftest.er1 |
---|
4860 | cat conftest.err >&5 |
---|
4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4862 | (exit $ac_status); } >/dev/null; then |
---|
4863 | if test -s conftest.err; then |
---|
4864 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4865 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4866 | else |
---|
4867 | ac_cpp_err= |
---|
4868 | fi |
---|
4869 | else |
---|
4870 | ac_cpp_err=yes |
---|
4871 | fi |
---|
4872 | if test -z "$ac_cpp_err"; then |
---|
4873 | ac_header_preproc=yes |
---|
4874 | else |
---|
4875 | echo "$as_me: failed program was:" >&5 |
---|
4876 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4877 | |
---|
4878 | ac_header_preproc=no |
---|
4879 | fi |
---|
4880 | rm -f conftest.err conftest.$ac_ext |
---|
4881 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4882 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4883 | |
---|
4884 | # So? What about this header? |
---|
4885 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4886 | yes:no: ) |
---|
4887 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4888 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4890 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4891 | ac_header_preproc=yes |
---|
4892 | ;; |
---|
4893 | no:yes:* ) |
---|
4894 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4895 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4896 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4897 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4898 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4899 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4900 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4901 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4902 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4903 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4904 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4905 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4906 | ( |
---|
4907 | cat <<\_ASBOX |
---|
4908 | ## ---------------------------------------------- ## |
---|
4909 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4910 | ## ---------------------------------------------- ## |
---|
4911 | _ASBOX |
---|
4912 | ) | |
---|
4913 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4914 | ;; |
---|
4915 | esac |
---|
4916 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4917 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4918 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4920 | else |
---|
4921 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4922 | fi |
---|
4923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4925 | |
---|
4926 | fi |
---|
4927 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4928 | cat >>confdefs.h <<_ACEOF |
---|
4929 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4930 | _ACEOF |
---|
4931 | |
---|
4932 | else |
---|
4933 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4934 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4935 | { (exit 1); exit 1; }; } |
---|
4936 | fi |
---|
4937 | |
---|
4938 | done |
---|
4939 | |
---|
4940 | |
---|
4941 | # checking for libGLU |
---|
4942 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4943 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4944 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4946 | else |
---|
4947 | ac_check_lib_save_LIBS=$LIBS |
---|
4948 | LIBS="-lglu32 $LIBS" |
---|
4949 | cat >conftest.$ac_ext <<_ACEOF |
---|
4950 | /* confdefs.h. */ |
---|
4951 | _ACEOF |
---|
4952 | cat confdefs.h >>conftest.$ac_ext |
---|
4953 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4954 | /* end confdefs.h. */ |
---|
4955 | |
---|
4956 | |
---|
4957 | int |
---|
4958 | main () |
---|
4959 | { |
---|
4960 | main (); |
---|
4961 | ; |
---|
4962 | return 0; |
---|
4963 | } |
---|
4964 | _ACEOF |
---|
4965 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4967 | (eval $ac_link) 2>conftest.er1 |
---|
4968 | ac_status=$? |
---|
4969 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4970 | rm -f conftest.er1 |
---|
4971 | cat conftest.err >&5 |
---|
4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4973 | (exit $ac_status); } && |
---|
4974 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4975 | || test ! -s conftest.err' |
---|
4976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4977 | (eval $ac_try) 2>&5 |
---|
4978 | ac_status=$? |
---|
4979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4980 | (exit $ac_status); }; } && |
---|
4981 | { ac_try='test -s conftest$ac_exeext' |
---|
4982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4983 | (eval $ac_try) 2>&5 |
---|
4984 | ac_status=$? |
---|
4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4986 | (exit $ac_status); }; }; then |
---|
4987 | ac_cv_lib_glu32_main=yes |
---|
4988 | else |
---|
4989 | echo "$as_me: failed program was:" >&5 |
---|
4990 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4991 | |
---|
4992 | ac_cv_lib_glu32_main=no |
---|
4993 | fi |
---|
4994 | rm -f conftest.err conftest.$ac_objext \ |
---|
4995 | conftest$ac_exeext conftest.$ac_ext |
---|
4996 | LIBS=$ac_check_lib_save_LIBS |
---|
4997 | fi |
---|
4998 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4999 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
5000 | if test $ac_cv_lib_glu32_main = yes; then |
---|
5001 | FOUND_GLU=yes; LIBS="$LIBS -lGLU32" |
---|
5002 | fi |
---|
5003 | |
---|
5004 | if test x$FOUND_GLU != xyes ; then |
---|
5005 | echo "------------------" |
---|
5006 | echo "GLU library not found." |
---|
5007 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5008 | echo "------------------" |
---|
5009 | exit -1 |
---|
5010 | fi |
---|
5011 | |
---|
5012 | # checking glew header |
---|
5013 | |
---|
5014 | for ac_header in GL/glew.h |
---|
5015 | do |
---|
5016 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5017 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5018 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5019 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5022 | fi |
---|
5023 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5024 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5025 | else |
---|
5026 | # Is the header compilable? |
---|
5027 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5028 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5029 | cat >conftest.$ac_ext <<_ACEOF |
---|
5030 | /* confdefs.h. */ |
---|
5031 | _ACEOF |
---|
5032 | cat confdefs.h >>conftest.$ac_ext |
---|
5033 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5034 | /* end confdefs.h. */ |
---|
5035 | $ac_includes_default |
---|
5036 | #include <$ac_header> |
---|
5037 | _ACEOF |
---|
5038 | rm -f conftest.$ac_objext |
---|
5039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5040 | (eval $ac_compile) 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); } && |
---|
5047 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5048 | || test ! -s conftest.err' |
---|
5049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5050 | (eval $ac_try) 2>&5 |
---|
5051 | ac_status=$? |
---|
5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5053 | (exit $ac_status); }; } && |
---|
5054 | { ac_try='test -s conftest.$ac_objext' |
---|
5055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5056 | (eval $ac_try) 2>&5 |
---|
5057 | ac_status=$? |
---|
5058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5059 | (exit $ac_status); }; }; then |
---|
5060 | ac_header_compiler=yes |
---|
5061 | else |
---|
5062 | echo "$as_me: failed program was:" >&5 |
---|
5063 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5064 | |
---|
5065 | ac_header_compiler=no |
---|
5066 | fi |
---|
5067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5068 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5069 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5070 | |
---|
5071 | # Is the header present? |
---|
5072 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5073 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5074 | cat >conftest.$ac_ext <<_ACEOF |
---|
5075 | /* confdefs.h. */ |
---|
5076 | _ACEOF |
---|
5077 | cat confdefs.h >>conftest.$ac_ext |
---|
5078 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5079 | /* end confdefs.h. */ |
---|
5080 | #include <$ac_header> |
---|
5081 | _ACEOF |
---|
5082 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5083 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5084 | ac_status=$? |
---|
5085 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5086 | rm -f conftest.er1 |
---|
5087 | cat conftest.err >&5 |
---|
5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5089 | (exit $ac_status); } >/dev/null; then |
---|
5090 | if test -s conftest.err; then |
---|
5091 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5092 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5093 | else |
---|
5094 | ac_cpp_err= |
---|
5095 | fi |
---|
5096 | else |
---|
5097 | ac_cpp_err=yes |
---|
5098 | fi |
---|
5099 | if test -z "$ac_cpp_err"; then |
---|
5100 | ac_header_preproc=yes |
---|
5101 | else |
---|
5102 | echo "$as_me: failed program was:" >&5 |
---|
5103 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5104 | |
---|
5105 | ac_header_preproc=no |
---|
5106 | fi |
---|
5107 | rm -f conftest.err conftest.$ac_ext |
---|
5108 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5109 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5110 | |
---|
5111 | # So? What about this header? |
---|
5112 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5113 | yes:no: ) |
---|
5114 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5115 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5117 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5118 | ac_header_preproc=yes |
---|
5119 | ;; |
---|
5120 | no:yes:* ) |
---|
5121 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5122 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5123 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5124 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5125 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5126 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5127 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5128 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5129 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5130 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5131 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5132 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5133 | ( |
---|
5134 | cat <<\_ASBOX |
---|
5135 | ## ---------------------------------------------- ## |
---|
5136 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5137 | ## ---------------------------------------------- ## |
---|
5138 | _ASBOX |
---|
5139 | ) | |
---|
5140 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5141 | ;; |
---|
5142 | esac |
---|
5143 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5144 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5145 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5147 | else |
---|
5148 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5149 | fi |
---|
5150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5151 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5152 | |
---|
5153 | fi |
---|
5154 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5155 | cat >>confdefs.h <<_ACEOF |
---|
5156 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5157 | _ACEOF |
---|
5158 | |
---|
5159 | else |
---|
5160 | { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5 |
---|
5161 | echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;} |
---|
5162 | { (exit 1); exit 1; }; } |
---|
5163 | fi |
---|
5164 | |
---|
5165 | done |
---|
5166 | |
---|
5167 | # checking for Windows glew library |
---|
5168 | echo "$as_me:$LINENO: checking for main in -lglew32" >&5 |
---|
5169 | echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6 |
---|
5170 | if test "${ac_cv_lib_glew32_main+set}" = set; then |
---|
5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5172 | else |
---|
5173 | ac_check_lib_save_LIBS=$LIBS |
---|
5174 | LIBS="-lglew32 $LIBS" |
---|
5175 | cat >conftest.$ac_ext <<_ACEOF |
---|
5176 | /* confdefs.h. */ |
---|
5177 | _ACEOF |
---|
5178 | cat confdefs.h >>conftest.$ac_ext |
---|
5179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5180 | /* end confdefs.h. */ |
---|
5181 | |
---|
5182 | |
---|
5183 | int |
---|
5184 | main () |
---|
5185 | { |
---|
5186 | main (); |
---|
5187 | ; |
---|
5188 | return 0; |
---|
5189 | } |
---|
5190 | _ACEOF |
---|
5191 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5193 | (eval $ac_link) 2>conftest.er1 |
---|
5194 | ac_status=$? |
---|
5195 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5196 | rm -f conftest.er1 |
---|
5197 | cat conftest.err >&5 |
---|
5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5199 | (exit $ac_status); } && |
---|
5200 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5201 | || test ! -s conftest.err' |
---|
5202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5203 | (eval $ac_try) 2>&5 |
---|
5204 | ac_status=$? |
---|
5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5206 | (exit $ac_status); }; } && |
---|
5207 | { ac_try='test -s conftest$ac_exeext' |
---|
5208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5209 | (eval $ac_try) 2>&5 |
---|
5210 | ac_status=$? |
---|
5211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5212 | (exit $ac_status); }; }; then |
---|
5213 | ac_cv_lib_glew32_main=yes |
---|
5214 | else |
---|
5215 | echo "$as_me: failed program was:" >&5 |
---|
5216 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5217 | |
---|
5218 | ac_cv_lib_glew32_main=no |
---|
5219 | fi |
---|
5220 | rm -f conftest.err conftest.$ac_objext \ |
---|
5221 | conftest$ac_exeext conftest.$ac_ext |
---|
5222 | LIBS=$ac_check_lib_save_LIBS |
---|
5223 | fi |
---|
5224 | echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5 |
---|
5225 | echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6 |
---|
5226 | if test $ac_cv_lib_glew32_main = yes; then |
---|
5227 | FOUND_GLEW=yes; LIBS="$LIBS -lglew32" |
---|
5228 | fi |
---|
5229 | |
---|
5230 | if test x$FOUND_GLEW != xyes ; then |
---|
5231 | echo "------------------" |
---|
5232 | echo "opengl extension wrangler not found." |
---|
5233 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
5234 | echo "------------------" |
---|
5235 | exit -1 |
---|
5236 | fi |
---|
5237 | |
---|
5238 | #--------# |
---|
5239 | # openAL # |
---|
5240 | #--------# |
---|
5241 | # checking for openAL-headers |
---|
5242 | |
---|
5243 | for ac_header in AL/al.h |
---|
5244 | do |
---|
5245 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5247 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5248 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5251 | fi |
---|
5252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5253 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5254 | else |
---|
5255 | # Is the header compilable? |
---|
5256 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5257 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5258 | cat >conftest.$ac_ext <<_ACEOF |
---|
5259 | /* confdefs.h. */ |
---|
5260 | _ACEOF |
---|
5261 | cat confdefs.h >>conftest.$ac_ext |
---|
5262 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5263 | /* end confdefs.h. */ |
---|
5264 | $ac_includes_default |
---|
5265 | #include <$ac_header> |
---|
5266 | _ACEOF |
---|
5267 | rm -f conftest.$ac_objext |
---|
5268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5269 | (eval $ac_compile) 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); } && |
---|
5276 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5277 | || test ! -s conftest.err' |
---|
5278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5279 | (eval $ac_try) 2>&5 |
---|
5280 | ac_status=$? |
---|
5281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5282 | (exit $ac_status); }; } && |
---|
5283 | { ac_try='test -s conftest.$ac_objext' |
---|
5284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5285 | (eval $ac_try) 2>&5 |
---|
5286 | ac_status=$? |
---|
5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5288 | (exit $ac_status); }; }; then |
---|
5289 | ac_header_compiler=yes |
---|
5290 | else |
---|
5291 | echo "$as_me: failed program was:" >&5 |
---|
5292 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5293 | |
---|
5294 | ac_header_compiler=no |
---|
5295 | fi |
---|
5296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5297 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5298 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5299 | |
---|
5300 | # Is the header present? |
---|
5301 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5302 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5303 | cat >conftest.$ac_ext <<_ACEOF |
---|
5304 | /* confdefs.h. */ |
---|
5305 | _ACEOF |
---|
5306 | cat confdefs.h >>conftest.$ac_ext |
---|
5307 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5308 | /* end confdefs.h. */ |
---|
5309 | #include <$ac_header> |
---|
5310 | _ACEOF |
---|
5311 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5312 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5313 | ac_status=$? |
---|
5314 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5315 | rm -f conftest.er1 |
---|
5316 | cat conftest.err >&5 |
---|
5317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5318 | (exit $ac_status); } >/dev/null; then |
---|
5319 | if test -s conftest.err; then |
---|
5320 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5321 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5322 | else |
---|
5323 | ac_cpp_err= |
---|
5324 | fi |
---|
5325 | else |
---|
5326 | ac_cpp_err=yes |
---|
5327 | fi |
---|
5328 | if test -z "$ac_cpp_err"; then |
---|
5329 | ac_header_preproc=yes |
---|
5330 | else |
---|
5331 | echo "$as_me: failed program was:" >&5 |
---|
5332 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5333 | |
---|
5334 | ac_header_preproc=no |
---|
5335 | fi |
---|
5336 | rm -f conftest.err conftest.$ac_ext |
---|
5337 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5338 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5339 | |
---|
5340 | # So? What about this header? |
---|
5341 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5342 | yes:no: ) |
---|
5343 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5344 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5345 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5346 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5347 | ac_header_preproc=yes |
---|
5348 | ;; |
---|
5349 | no:yes:* ) |
---|
5350 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5351 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5352 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5353 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5354 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5355 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5356 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5357 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5358 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5359 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5360 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5361 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5362 | ( |
---|
5363 | cat <<\_ASBOX |
---|
5364 | ## ---------------------------------------------- ## |
---|
5365 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5366 | ## ---------------------------------------------- ## |
---|
5367 | _ASBOX |
---|
5368 | ) | |
---|
5369 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5370 | ;; |
---|
5371 | esac |
---|
5372 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5376 | else |
---|
5377 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5378 | fi |
---|
5379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5380 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5381 | |
---|
5382 | fi |
---|
5383 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5384 | cat >>confdefs.h <<_ACEOF |
---|
5385 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5386 | _ACEOF |
---|
5387 | |
---|
5388 | else |
---|
5389 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
5390 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
5391 | { (exit 1); exit 1; }; } |
---|
5392 | fi |
---|
5393 | |
---|
5394 | done |
---|
5395 | |
---|
5396 | # checking for openAL-lib |
---|
5397 | echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 |
---|
5398 | echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 |
---|
5399 | if test "${ac_cv_lib_OpenAL32_main+set}" = set; then |
---|
5400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5401 | else |
---|
5402 | ac_check_lib_save_LIBS=$LIBS |
---|
5403 | LIBS="-lOpenAL32 $LIBS" |
---|
5404 | cat >conftest.$ac_ext <<_ACEOF |
---|
5405 | /* confdefs.h. */ |
---|
5406 | _ACEOF |
---|
5407 | cat confdefs.h >>conftest.$ac_ext |
---|
5408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5409 | /* end confdefs.h. */ |
---|
5410 | |
---|
5411 | |
---|
5412 | int |
---|
5413 | main () |
---|
5414 | { |
---|
5415 | main (); |
---|
5416 | ; |
---|
5417 | return 0; |
---|
5418 | } |
---|
5419 | _ACEOF |
---|
5420 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5422 | (eval $ac_link) 2>conftest.er1 |
---|
5423 | ac_status=$? |
---|
5424 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5425 | rm -f conftest.er1 |
---|
5426 | cat conftest.err >&5 |
---|
5427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5428 | (exit $ac_status); } && |
---|
5429 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5430 | || test ! -s conftest.err' |
---|
5431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5432 | (eval $ac_try) 2>&5 |
---|
5433 | ac_status=$? |
---|
5434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5435 | (exit $ac_status); }; } && |
---|
5436 | { ac_try='test -s conftest$ac_exeext' |
---|
5437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5438 | (eval $ac_try) 2>&5 |
---|
5439 | ac_status=$? |
---|
5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5441 | (exit $ac_status); }; }; then |
---|
5442 | ac_cv_lib_OpenAL32_main=yes |
---|
5443 | else |
---|
5444 | echo "$as_me: failed program was:" >&5 |
---|
5445 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5446 | |
---|
5447 | ac_cv_lib_OpenAL32_main=no |
---|
5448 | fi |
---|
5449 | rm -f conftest.err conftest.$ac_objext \ |
---|
5450 | conftest$ac_exeext conftest.$ac_ext |
---|
5451 | LIBS=$ac_check_lib_save_LIBS |
---|
5452 | fi |
---|
5453 | echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 |
---|
5454 | echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 |
---|
5455 | if test $ac_cv_lib_OpenAL32_main = yes; then |
---|
5456 | FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32" |
---|
5457 | fi |
---|
5458 | |
---|
5459 | echo "$as_me:$LINENO: checking for main in -lALut" >&5 |
---|
5460 | echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 |
---|
5461 | if test "${ac_cv_lib_ALut_main+set}" = set; then |
---|
5462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5463 | else |
---|
5464 | ac_check_lib_save_LIBS=$LIBS |
---|
5465 | LIBS="-lALut $LIBS" |
---|
5466 | cat >conftest.$ac_ext <<_ACEOF |
---|
5467 | /* confdefs.h. */ |
---|
5468 | _ACEOF |
---|
5469 | cat confdefs.h >>conftest.$ac_ext |
---|
5470 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5471 | /* end confdefs.h. */ |
---|
5472 | |
---|
5473 | |
---|
5474 | int |
---|
5475 | main () |
---|
5476 | { |
---|
5477 | main (); |
---|
5478 | ; |
---|
5479 | return 0; |
---|
5480 | } |
---|
5481 | _ACEOF |
---|
5482 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5484 | (eval $ac_link) 2>conftest.er1 |
---|
5485 | ac_status=$? |
---|
5486 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5487 | rm -f conftest.er1 |
---|
5488 | cat conftest.err >&5 |
---|
5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5490 | (exit $ac_status); } && |
---|
5491 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5492 | || test ! -s conftest.err' |
---|
5493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5494 | (eval $ac_try) 2>&5 |
---|
5495 | ac_status=$? |
---|
5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5497 | (exit $ac_status); }; } && |
---|
5498 | { ac_try='test -s conftest$ac_exeext' |
---|
5499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5500 | (eval $ac_try) 2>&5 |
---|
5501 | ac_status=$? |
---|
5502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5503 | (exit $ac_status); }; }; then |
---|
5504 | ac_cv_lib_ALut_main=yes |
---|
5505 | else |
---|
5506 | echo "$as_me: failed program was:" >&5 |
---|
5507 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5508 | |
---|
5509 | ac_cv_lib_ALut_main=no |
---|
5510 | fi |
---|
5511 | rm -f conftest.err conftest.$ac_objext \ |
---|
5512 | conftest$ac_exeext conftest.$ac_ext |
---|
5513 | LIBS=$ac_check_lib_save_LIBS |
---|
5514 | fi |
---|
5515 | echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5 |
---|
5516 | echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6 |
---|
5517 | if test $ac_cv_lib_ALut_main = yes; then |
---|
5518 | FOUND_ALUT=yes; LIBS="-lALut $LIBS" |
---|
5519 | fi |
---|
5520 | |
---|
5521 | if test x$FOUND_OPENAL != xyes ; then |
---|
5522 | echo "------------------" |
---|
5523 | echo "openal library not found." |
---|
5524 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
5525 | echo "------------------" |
---|
5526 | exit -1 |
---|
5527 | fi |
---|
5528 | |
---|
5529 | |
---|
5530 | #-----------# |
---|
5531 | # SDL(win) # |
---|
5532 | #-----------# |
---|
5533 | # checking for SDL-headers |
---|
5534 | |
---|
5535 | for ac_header in SDL/SDL.h |
---|
5536 | do |
---|
5537 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5538 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5539 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5543 | fi |
---|
5544 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5545 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5546 | else |
---|
5547 | # Is the header compilable? |
---|
5548 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5549 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5550 | cat >conftest.$ac_ext <<_ACEOF |
---|
5551 | /* confdefs.h. */ |
---|
5552 | _ACEOF |
---|
5553 | cat confdefs.h >>conftest.$ac_ext |
---|
5554 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5555 | /* end confdefs.h. */ |
---|
5556 | $ac_includes_default |
---|
5557 | #include <$ac_header> |
---|
5558 | _ACEOF |
---|
5559 | rm -f conftest.$ac_objext |
---|
5560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5561 | (eval $ac_compile) 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); } && |
---|
5568 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5569 | || test ! -s conftest.err' |
---|
5570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5571 | (eval $ac_try) 2>&5 |
---|
5572 | ac_status=$? |
---|
5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5574 | (exit $ac_status); }; } && |
---|
5575 | { ac_try='test -s conftest.$ac_objext' |
---|
5576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5577 | (eval $ac_try) 2>&5 |
---|
5578 | ac_status=$? |
---|
5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5580 | (exit $ac_status); }; }; then |
---|
5581 | ac_header_compiler=yes |
---|
5582 | else |
---|
5583 | echo "$as_me: failed program was:" >&5 |
---|
5584 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5585 | |
---|
5586 | ac_header_compiler=no |
---|
5587 | fi |
---|
5588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5589 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5590 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5591 | |
---|
5592 | # Is the header present? |
---|
5593 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5594 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5595 | cat >conftest.$ac_ext <<_ACEOF |
---|
5596 | /* confdefs.h. */ |
---|
5597 | _ACEOF |
---|
5598 | cat confdefs.h >>conftest.$ac_ext |
---|
5599 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5600 | /* end confdefs.h. */ |
---|
5601 | #include <$ac_header> |
---|
5602 | _ACEOF |
---|
5603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5605 | ac_status=$? |
---|
5606 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5607 | rm -f conftest.er1 |
---|
5608 | cat conftest.err >&5 |
---|
5609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5610 | (exit $ac_status); } >/dev/null; then |
---|
5611 | if test -s conftest.err; then |
---|
5612 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5613 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5614 | else |
---|
5615 | ac_cpp_err= |
---|
5616 | fi |
---|
5617 | else |
---|
5618 | ac_cpp_err=yes |
---|
5619 | fi |
---|
5620 | if test -z "$ac_cpp_err"; then |
---|
5621 | ac_header_preproc=yes |
---|
5622 | else |
---|
5623 | echo "$as_me: failed program was:" >&5 |
---|
5624 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5625 | |
---|
5626 | ac_header_preproc=no |
---|
5627 | fi |
---|
5628 | rm -f conftest.err conftest.$ac_ext |
---|
5629 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5630 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5631 | |
---|
5632 | # So? What about this header? |
---|
5633 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5634 | yes:no: ) |
---|
5635 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5636 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5637 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5638 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5639 | ac_header_preproc=yes |
---|
5640 | ;; |
---|
5641 | no:yes:* ) |
---|
5642 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5643 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5644 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5645 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5646 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5647 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5648 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5649 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5650 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5651 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5652 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5653 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5654 | ( |
---|
5655 | cat <<\_ASBOX |
---|
5656 | ## ---------------------------------------------- ## |
---|
5657 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5658 | ## ---------------------------------------------- ## |
---|
5659 | _ASBOX |
---|
5660 | ) | |
---|
5661 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5662 | ;; |
---|
5663 | esac |
---|
5664 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5665 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5666 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5668 | else |
---|
5669 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5670 | fi |
---|
5671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5672 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5673 | |
---|
5674 | fi |
---|
5675 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5676 | cat >>confdefs.h <<_ACEOF |
---|
5677 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5678 | _ACEOF |
---|
5679 | |
---|
5680 | else |
---|
5681 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
5682 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
5683 | { (exit 1); exit 1; }; } |
---|
5684 | fi |
---|
5685 | |
---|
5686 | done |
---|
5687 | |
---|
5688 | |
---|
5689 | #checking for libSDL |
---|
5690 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
5691 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
5692 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
5693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5694 | else |
---|
5695 | ac_check_lib_save_LIBS=$LIBS |
---|
5696 | LIBS="-lsdlmain $LIBS" |
---|
5697 | cat >conftest.$ac_ext <<_ACEOF |
---|
5698 | /* confdefs.h. */ |
---|
5699 | _ACEOF |
---|
5700 | cat confdefs.h >>conftest.$ac_ext |
---|
5701 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5702 | /* end confdefs.h. */ |
---|
5703 | |
---|
5704 | |
---|
5705 | int |
---|
5706 | main () |
---|
5707 | { |
---|
5708 | main (); |
---|
5709 | ; |
---|
5710 | return 0; |
---|
5711 | } |
---|
5712 | _ACEOF |
---|
5713 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5715 | (eval $ac_link) 2>conftest.er1 |
---|
5716 | ac_status=$? |
---|
5717 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5718 | rm -f conftest.er1 |
---|
5719 | cat conftest.err >&5 |
---|
5720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5721 | (exit $ac_status); } && |
---|
5722 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5723 | || test ! -s conftest.err' |
---|
5724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5725 | (eval $ac_try) 2>&5 |
---|
5726 | ac_status=$? |
---|
5727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5728 | (exit $ac_status); }; } && |
---|
5729 | { ac_try='test -s conftest$ac_exeext' |
---|
5730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5731 | (eval $ac_try) 2>&5 |
---|
5732 | ac_status=$? |
---|
5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5734 | (exit $ac_status); }; }; then |
---|
5735 | ac_cv_lib_sdlmain_main=yes |
---|
5736 | else |
---|
5737 | echo "$as_me: failed program was:" >&5 |
---|
5738 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5739 | |
---|
5740 | ac_cv_lib_sdlmain_main=no |
---|
5741 | fi |
---|
5742 | rm -f conftest.err conftest.$ac_objext \ |
---|
5743 | conftest$ac_exeext conftest.$ac_ext |
---|
5744 | LIBS=$ac_check_lib_save_LIBS |
---|
5745 | fi |
---|
5746 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
5747 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
5748 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
5749 | FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain" |
---|
5750 | fi |
---|
5751 | |
---|
5752 | if test x$FOUND_sdlmain != xyes ; then |
---|
5753 | echo "------------------" |
---|
5754 | echo "SDL library not found." |
---|
5755 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5756 | echo "------------------" |
---|
5757 | exit 1 |
---|
5758 | fi |
---|
5759 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
5760 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
5761 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
5762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5763 | else |
---|
5764 | ac_check_lib_save_LIBS=$LIBS |
---|
5765 | LIBS="-lsdl $LIBS" |
---|
5766 | cat >conftest.$ac_ext <<_ACEOF |
---|
5767 | /* confdefs.h. */ |
---|
5768 | _ACEOF |
---|
5769 | cat confdefs.h >>conftest.$ac_ext |
---|
5770 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5771 | /* end confdefs.h. */ |
---|
5772 | |
---|
5773 | |
---|
5774 | int |
---|
5775 | main () |
---|
5776 | { |
---|
5777 | main (); |
---|
5778 | ; |
---|
5779 | return 0; |
---|
5780 | } |
---|
5781 | _ACEOF |
---|
5782 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5784 | (eval $ac_link) 2>conftest.er1 |
---|
5785 | ac_status=$? |
---|
5786 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5787 | rm -f conftest.er1 |
---|
5788 | cat conftest.err >&5 |
---|
5789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5790 | (exit $ac_status); } && |
---|
5791 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5792 | || test ! -s conftest.err' |
---|
5793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5794 | (eval $ac_try) 2>&5 |
---|
5795 | ac_status=$? |
---|
5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5797 | (exit $ac_status); }; } && |
---|
5798 | { ac_try='test -s conftest$ac_exeext' |
---|
5799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5800 | (eval $ac_try) 2>&5 |
---|
5801 | ac_status=$? |
---|
5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5803 | (exit $ac_status); }; }; then |
---|
5804 | ac_cv_lib_sdl_main=yes |
---|
5805 | else |
---|
5806 | echo "$as_me: failed program was:" >&5 |
---|
5807 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5808 | |
---|
5809 | ac_cv_lib_sdl_main=no |
---|
5810 | fi |
---|
5811 | rm -f conftest.err conftest.$ac_objext \ |
---|
5812 | conftest$ac_exeext conftest.$ac_ext |
---|
5813 | LIBS=$ac_check_lib_save_LIBS |
---|
5814 | fi |
---|
5815 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
5816 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
5817 | if test $ac_cv_lib_sdl_main = yes; then |
---|
5818 | FOUND_SDL=yes; LIBS="$LIBS -lsdl" |
---|
5819 | fi |
---|
5820 | |
---|
5821 | if test x$FOUND_SDL != xyes ; then |
---|
5822 | echo "------------------" |
---|
5823 | echo "SDL library not found." |
---|
5824 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5825 | echo "------------------" |
---|
5826 | exit -1 |
---|
5827 | fi |
---|
5828 | |
---|
5829 | ;; |
---|
5830 | |
---|
5831 | ######### |
---|
5832 | #-------# |
---|
5833 | # LINUX # |
---|
5834 | #-------# |
---|
5835 | ######### |
---|
5836 | *-*-linux*) |
---|
5837 | echo "Linux detected" |
---|
5838 | |
---|
5839 | Linux="yes" |
---|
5840 | |
---|
5841 | ##CPPFLAGS="-I/usr/include $CPPFLAGS" |
---|
5842 | ##LDFLAGS="-L/usr/lib $LDFLAGS" |
---|
5843 | if test x$SHARED_LIB_PATH != xno; then |
---|
5844 | echo "setting new LDFLAGS with $SHARED_LIB_PATH" |
---|
5845 | LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS" |
---|
5846 | fi |
---|
5847 | |
---|
5848 | #--------# |
---|
5849 | # openGL # |
---|
5850 | #--------# |
---|
5851 | # checking gl header |
---|
5852 | |
---|
5853 | for ac_header in GL/gl.h |
---|
5854 | do |
---|
5855 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5856 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5857 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5861 | fi |
---|
5862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5864 | else |
---|
5865 | # Is the header compilable? |
---|
5866 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5867 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5868 | cat >conftest.$ac_ext <<_ACEOF |
---|
5869 | /* confdefs.h. */ |
---|
5870 | _ACEOF |
---|
5871 | cat confdefs.h >>conftest.$ac_ext |
---|
5872 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5873 | /* end confdefs.h. */ |
---|
5874 | $ac_includes_default |
---|
5875 | #include <$ac_header> |
---|
5876 | _ACEOF |
---|
5877 | rm -f conftest.$ac_objext |
---|
5878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5879 | (eval $ac_compile) 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); } && |
---|
5886 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5887 | || test ! -s conftest.err' |
---|
5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5889 | (eval $ac_try) 2>&5 |
---|
5890 | ac_status=$? |
---|
5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5892 | (exit $ac_status); }; } && |
---|
5893 | { ac_try='test -s conftest.$ac_objext' |
---|
5894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5895 | (eval $ac_try) 2>&5 |
---|
5896 | ac_status=$? |
---|
5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5898 | (exit $ac_status); }; }; then |
---|
5899 | ac_header_compiler=yes |
---|
5900 | else |
---|
5901 | echo "$as_me: failed program was:" >&5 |
---|
5902 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5903 | |
---|
5904 | ac_header_compiler=no |
---|
5905 | fi |
---|
5906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5907 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5908 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5909 | |
---|
5910 | # Is the header present? |
---|
5911 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5912 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5913 | cat >conftest.$ac_ext <<_ACEOF |
---|
5914 | /* confdefs.h. */ |
---|
5915 | _ACEOF |
---|
5916 | cat confdefs.h >>conftest.$ac_ext |
---|
5917 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5918 | /* end confdefs.h. */ |
---|
5919 | #include <$ac_header> |
---|
5920 | _ACEOF |
---|
5921 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5922 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5923 | ac_status=$? |
---|
5924 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5925 | rm -f conftest.er1 |
---|
5926 | cat conftest.err >&5 |
---|
5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5928 | (exit $ac_status); } >/dev/null; then |
---|
5929 | if test -s conftest.err; then |
---|
5930 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5931 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5932 | else |
---|
5933 | ac_cpp_err= |
---|
5934 | fi |
---|
5935 | else |
---|
5936 | ac_cpp_err=yes |
---|
5937 | fi |
---|
5938 | if test -z "$ac_cpp_err"; then |
---|
5939 | ac_header_preproc=yes |
---|
5940 | else |
---|
5941 | echo "$as_me: failed program was:" >&5 |
---|
5942 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5943 | |
---|
5944 | ac_header_preproc=no |
---|
5945 | fi |
---|
5946 | rm -f conftest.err conftest.$ac_ext |
---|
5947 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5948 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5949 | |
---|
5950 | # So? What about this header? |
---|
5951 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5952 | yes:no: ) |
---|
5953 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5954 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5955 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5956 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5957 | ac_header_preproc=yes |
---|
5958 | ;; |
---|
5959 | no:yes:* ) |
---|
5960 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5961 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5962 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5963 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5964 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5965 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5966 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5967 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5968 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5969 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5970 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5971 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5972 | ( |
---|
5973 | cat <<\_ASBOX |
---|
5974 | ## ---------------------------------------------- ## |
---|
5975 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5976 | ## ---------------------------------------------- ## |
---|
5977 | _ASBOX |
---|
5978 | ) | |
---|
5979 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5980 | ;; |
---|
5981 | esac |
---|
5982 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5986 | else |
---|
5987 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5988 | fi |
---|
5989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5990 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5991 | |
---|
5992 | fi |
---|
5993 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5994 | cat >>confdefs.h <<_ACEOF |
---|
5995 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5996 | _ACEOF |
---|
5997 | |
---|
5998 | else |
---|
5999 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6000 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6001 | { (exit 1); exit 1; }; } |
---|
6002 | fi |
---|
6003 | |
---|
6004 | done |
---|
6005 | |
---|
6006 | |
---|
6007 | # checking for Unix GL |
---|
6008 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
6009 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
6010 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
6011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6012 | else |
---|
6013 | ac_check_lib_save_LIBS=$LIBS |
---|
6014 | LIBS="-lGL $LIBS" |
---|
6015 | cat >conftest.$ac_ext <<_ACEOF |
---|
6016 | /* confdefs.h. */ |
---|
6017 | _ACEOF |
---|
6018 | cat confdefs.h >>conftest.$ac_ext |
---|
6019 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6020 | /* end confdefs.h. */ |
---|
6021 | |
---|
6022 | |
---|
6023 | int |
---|
6024 | main () |
---|
6025 | { |
---|
6026 | main (); |
---|
6027 | ; |
---|
6028 | return 0; |
---|
6029 | } |
---|
6030 | _ACEOF |
---|
6031 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6033 | (eval $ac_link) 2>conftest.er1 |
---|
6034 | ac_status=$? |
---|
6035 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6036 | rm -f conftest.er1 |
---|
6037 | cat conftest.err >&5 |
---|
6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6039 | (exit $ac_status); } && |
---|
6040 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6041 | || test ! -s conftest.err' |
---|
6042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6043 | (eval $ac_try) 2>&5 |
---|
6044 | ac_status=$? |
---|
6045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6046 | (exit $ac_status); }; } && |
---|
6047 | { ac_try='test -s conftest$ac_exeext' |
---|
6048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6049 | (eval $ac_try) 2>&5 |
---|
6050 | ac_status=$? |
---|
6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6052 | (exit $ac_status); }; }; then |
---|
6053 | ac_cv_lib_GL_main=yes |
---|
6054 | else |
---|
6055 | echo "$as_me: failed program was:" >&5 |
---|
6056 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6057 | |
---|
6058 | ac_cv_lib_GL_main=no |
---|
6059 | fi |
---|
6060 | rm -f conftest.err conftest.$ac_objext \ |
---|
6061 | conftest$ac_exeext conftest.$ac_ext |
---|
6062 | LIBS=$ac_check_lib_save_LIBS |
---|
6063 | fi |
---|
6064 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
6065 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
6066 | if test $ac_cv_lib_GL_main = yes; then |
---|
6067 | FOUND_GL=yes; LIBS="$LIBS -lGL" |
---|
6068 | fi |
---|
6069 | |
---|
6070 | if test x$FOUND_GL != xyes ; then |
---|
6071 | echo "------------------" |
---|
6072 | echo "opengl not found." |
---|
6073 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
6074 | echo "------------------" |
---|
6075 | exit -1 |
---|
6076 | fi |
---|
6077 | |
---|
6078 | # cheking for GLU-header |
---|
6079 | |
---|
6080 | for ac_header in GL/glu.h |
---|
6081 | do |
---|
6082 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6083 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6084 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6085 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6086 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6088 | fi |
---|
6089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6090 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6091 | else |
---|
6092 | # Is the header compilable? |
---|
6093 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6094 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6095 | cat >conftest.$ac_ext <<_ACEOF |
---|
6096 | /* confdefs.h. */ |
---|
6097 | _ACEOF |
---|
6098 | cat confdefs.h >>conftest.$ac_ext |
---|
6099 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6100 | /* end confdefs.h. */ |
---|
6101 | $ac_includes_default |
---|
6102 | #include <$ac_header> |
---|
6103 | _ACEOF |
---|
6104 | rm -f conftest.$ac_objext |
---|
6105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6106 | (eval $ac_compile) 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); } && |
---|
6113 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6114 | || test ! -s conftest.err' |
---|
6115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6116 | (eval $ac_try) 2>&5 |
---|
6117 | ac_status=$? |
---|
6118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6119 | (exit $ac_status); }; } && |
---|
6120 | { ac_try='test -s conftest.$ac_objext' |
---|
6121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6122 | (eval $ac_try) 2>&5 |
---|
6123 | ac_status=$? |
---|
6124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6125 | (exit $ac_status); }; }; then |
---|
6126 | ac_header_compiler=yes |
---|
6127 | else |
---|
6128 | echo "$as_me: failed program was:" >&5 |
---|
6129 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6130 | |
---|
6131 | ac_header_compiler=no |
---|
6132 | fi |
---|
6133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6134 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6135 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6136 | |
---|
6137 | # Is the header present? |
---|
6138 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6139 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6140 | cat >conftest.$ac_ext <<_ACEOF |
---|
6141 | /* confdefs.h. */ |
---|
6142 | _ACEOF |
---|
6143 | cat confdefs.h >>conftest.$ac_ext |
---|
6144 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6145 | /* end confdefs.h. */ |
---|
6146 | #include <$ac_header> |
---|
6147 | _ACEOF |
---|
6148 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6149 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6150 | ac_status=$? |
---|
6151 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6152 | rm -f conftest.er1 |
---|
6153 | cat conftest.err >&5 |
---|
6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6155 | (exit $ac_status); } >/dev/null; then |
---|
6156 | if test -s conftest.err; then |
---|
6157 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6158 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6159 | else |
---|
6160 | ac_cpp_err= |
---|
6161 | fi |
---|
6162 | else |
---|
6163 | ac_cpp_err=yes |
---|
6164 | fi |
---|
6165 | if test -z "$ac_cpp_err"; then |
---|
6166 | ac_header_preproc=yes |
---|
6167 | else |
---|
6168 | echo "$as_me: failed program was:" >&5 |
---|
6169 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6170 | |
---|
6171 | ac_header_preproc=no |
---|
6172 | fi |
---|
6173 | rm -f conftest.err conftest.$ac_ext |
---|
6174 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6175 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6176 | |
---|
6177 | # So? What about this header? |
---|
6178 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6179 | yes:no: ) |
---|
6180 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6181 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6183 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6184 | ac_header_preproc=yes |
---|
6185 | ;; |
---|
6186 | no:yes:* ) |
---|
6187 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6188 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6189 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6190 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6191 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6192 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6193 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6194 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6196 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6197 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6198 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6199 | ( |
---|
6200 | cat <<\_ASBOX |
---|
6201 | ## ---------------------------------------------- ## |
---|
6202 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6203 | ## ---------------------------------------------- ## |
---|
6204 | _ASBOX |
---|
6205 | ) | |
---|
6206 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6207 | ;; |
---|
6208 | esac |
---|
6209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6213 | else |
---|
6214 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6215 | fi |
---|
6216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6217 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6218 | |
---|
6219 | fi |
---|
6220 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6221 | cat >>confdefs.h <<_ACEOF |
---|
6222 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6223 | _ACEOF |
---|
6224 | |
---|
6225 | else |
---|
6226 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6227 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6228 | { (exit 1); exit 1; }; } |
---|
6229 | fi |
---|
6230 | |
---|
6231 | done |
---|
6232 | |
---|
6233 | echo "$as_me:$LINENO: checking for main in -lGLU" >&5 |
---|
6234 | echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6 |
---|
6235 | if test "${ac_cv_lib_GLU_main+set}" = set; then |
---|
6236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6237 | else |
---|
6238 | ac_check_lib_save_LIBS=$LIBS |
---|
6239 | LIBS="-lGLU $LIBS" |
---|
6240 | cat >conftest.$ac_ext <<_ACEOF |
---|
6241 | /* confdefs.h. */ |
---|
6242 | _ACEOF |
---|
6243 | cat confdefs.h >>conftest.$ac_ext |
---|
6244 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6245 | /* end confdefs.h. */ |
---|
6246 | |
---|
6247 | |
---|
6248 | int |
---|
6249 | main () |
---|
6250 | { |
---|
6251 | main (); |
---|
6252 | ; |
---|
6253 | return 0; |
---|
6254 | } |
---|
6255 | _ACEOF |
---|
6256 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6258 | (eval $ac_link) 2>conftest.er1 |
---|
6259 | ac_status=$? |
---|
6260 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6261 | rm -f conftest.er1 |
---|
6262 | cat conftest.err >&5 |
---|
6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6264 | (exit $ac_status); } && |
---|
6265 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6266 | || test ! -s conftest.err' |
---|
6267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6268 | (eval $ac_try) 2>&5 |
---|
6269 | ac_status=$? |
---|
6270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6271 | (exit $ac_status); }; } && |
---|
6272 | { ac_try='test -s conftest$ac_exeext' |
---|
6273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6274 | (eval $ac_try) 2>&5 |
---|
6275 | ac_status=$? |
---|
6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6277 | (exit $ac_status); }; }; then |
---|
6278 | ac_cv_lib_GLU_main=yes |
---|
6279 | else |
---|
6280 | echo "$as_me: failed program was:" >&5 |
---|
6281 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6282 | |
---|
6283 | ac_cv_lib_GLU_main=no |
---|
6284 | fi |
---|
6285 | rm -f conftest.err conftest.$ac_objext \ |
---|
6286 | conftest$ac_exeext conftest.$ac_ext |
---|
6287 | LIBS=$ac_check_lib_save_LIBS |
---|
6288 | fi |
---|
6289 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5 |
---|
6290 | echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6 |
---|
6291 | if test $ac_cv_lib_GLU_main = yes; then |
---|
6292 | FOUND_GLU=yes; LIBS="$LIBS -lGLU" |
---|
6293 | fi |
---|
6294 | |
---|
6295 | if test x$FOUND_GLU != xyes ; then |
---|
6296 | echo "------------------" |
---|
6297 | echo "GLU library not found." |
---|
6298 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
6299 | echo "------------------" |
---|
6300 | exit -1 |
---|
6301 | fi |
---|
6302 | |
---|
6303 | # checking for GLEW-headers |
---|
6304 | |
---|
6305 | for ac_header in GL/glew.h |
---|
6306 | do |
---|
6307 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6309 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6313 | fi |
---|
6314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6316 | else |
---|
6317 | # Is the header compilable? |
---|
6318 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6320 | cat >conftest.$ac_ext <<_ACEOF |
---|
6321 | /* confdefs.h. */ |
---|
6322 | _ACEOF |
---|
6323 | cat confdefs.h >>conftest.$ac_ext |
---|
6324 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6325 | /* end confdefs.h. */ |
---|
6326 | $ac_includes_default |
---|
6327 | #include <$ac_header> |
---|
6328 | _ACEOF |
---|
6329 | rm -f conftest.$ac_objext |
---|
6330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6331 | (eval $ac_compile) 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); } && |
---|
6338 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6339 | || test ! -s conftest.err' |
---|
6340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6341 | (eval $ac_try) 2>&5 |
---|
6342 | ac_status=$? |
---|
6343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6344 | (exit $ac_status); }; } && |
---|
6345 | { ac_try='test -s conftest.$ac_objext' |
---|
6346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6347 | (eval $ac_try) 2>&5 |
---|
6348 | ac_status=$? |
---|
6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6350 | (exit $ac_status); }; }; then |
---|
6351 | ac_header_compiler=yes |
---|
6352 | else |
---|
6353 | echo "$as_me: failed program was:" >&5 |
---|
6354 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6355 | |
---|
6356 | ac_header_compiler=no |
---|
6357 | fi |
---|
6358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6360 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6361 | |
---|
6362 | # Is the header present? |
---|
6363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6365 | cat >conftest.$ac_ext <<_ACEOF |
---|
6366 | /* confdefs.h. */ |
---|
6367 | _ACEOF |
---|
6368 | cat confdefs.h >>conftest.$ac_ext |
---|
6369 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6370 | /* end confdefs.h. */ |
---|
6371 | #include <$ac_header> |
---|
6372 | _ACEOF |
---|
6373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6375 | ac_status=$? |
---|
6376 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6377 | rm -f conftest.er1 |
---|
6378 | cat conftest.err >&5 |
---|
6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6380 | (exit $ac_status); } >/dev/null; then |
---|
6381 | if test -s conftest.err; then |
---|
6382 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6384 | else |
---|
6385 | ac_cpp_err= |
---|
6386 | fi |
---|
6387 | else |
---|
6388 | ac_cpp_err=yes |
---|
6389 | fi |
---|
6390 | if test -z "$ac_cpp_err"; then |
---|
6391 | ac_header_preproc=yes |
---|
6392 | else |
---|
6393 | echo "$as_me: failed program was:" >&5 |
---|
6394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6395 | |
---|
6396 | ac_header_preproc=no |
---|
6397 | fi |
---|
6398 | rm -f conftest.err conftest.$ac_ext |
---|
6399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6400 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6401 | |
---|
6402 | # So? What about this header? |
---|
6403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6404 | yes:no: ) |
---|
6405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6408 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6409 | ac_header_preproc=yes |
---|
6410 | ;; |
---|
6411 | no:yes:* ) |
---|
6412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6416 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6417 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6418 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6419 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6421 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6422 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6423 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6424 | ( |
---|
6425 | cat <<\_ASBOX |
---|
6426 | ## ---------------------------------------------- ## |
---|
6427 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6428 | ## ---------------------------------------------- ## |
---|
6429 | _ASBOX |
---|
6430 | ) | |
---|
6431 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6432 | ;; |
---|
6433 | esac |
---|
6434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6438 | else |
---|
6439 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6440 | fi |
---|
6441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6443 | |
---|
6444 | fi |
---|
6445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6446 | cat >>confdefs.h <<_ACEOF |
---|
6447 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6448 | _ACEOF |
---|
6449 | |
---|
6450 | else |
---|
6451 | { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 |
---|
6452 | echo "$as_me: error: cannot find glew headers" >&2;} |
---|
6453 | { (exit 1); exit 1; }; } |
---|
6454 | fi |
---|
6455 | |
---|
6456 | done |
---|
6457 | |
---|
6458 | # checking for GLEW-lib |
---|
6459 | echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 |
---|
6460 | echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 |
---|
6461 | if test "${ac_cv_lib_GLEW_main+set}" = set; then |
---|
6462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6463 | else |
---|
6464 | ac_check_lib_save_LIBS=$LIBS |
---|
6465 | LIBS="-lGLEW $LIBS" |
---|
6466 | cat >conftest.$ac_ext <<_ACEOF |
---|
6467 | /* confdefs.h. */ |
---|
6468 | _ACEOF |
---|
6469 | cat confdefs.h >>conftest.$ac_ext |
---|
6470 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6471 | /* end confdefs.h. */ |
---|
6472 | |
---|
6473 | |
---|
6474 | int |
---|
6475 | main () |
---|
6476 | { |
---|
6477 | main (); |
---|
6478 | ; |
---|
6479 | return 0; |
---|
6480 | } |
---|
6481 | _ACEOF |
---|
6482 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6484 | (eval $ac_link) 2>conftest.er1 |
---|
6485 | ac_status=$? |
---|
6486 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6487 | rm -f conftest.er1 |
---|
6488 | cat conftest.err >&5 |
---|
6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6490 | (exit $ac_status); } && |
---|
6491 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6492 | || test ! -s conftest.err' |
---|
6493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6494 | (eval $ac_try) 2>&5 |
---|
6495 | ac_status=$? |
---|
6496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6497 | (exit $ac_status); }; } && |
---|
6498 | { ac_try='test -s conftest$ac_exeext' |
---|
6499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6500 | (eval $ac_try) 2>&5 |
---|
6501 | ac_status=$? |
---|
6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6503 | (exit $ac_status); }; }; then |
---|
6504 | ac_cv_lib_GLEW_main=yes |
---|
6505 | else |
---|
6506 | echo "$as_me: failed program was:" >&5 |
---|
6507 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6508 | |
---|
6509 | ac_cv_lib_GLEW_main=no |
---|
6510 | fi |
---|
6511 | rm -f conftest.err conftest.$ac_objext \ |
---|
6512 | conftest$ac_exeext conftest.$ac_ext |
---|
6513 | LIBS=$ac_check_lib_save_LIBS |
---|
6514 | fi |
---|
6515 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 |
---|
6516 | echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 |
---|
6517 | if test $ac_cv_lib_GLEW_main = yes; then |
---|
6518 | FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" |
---|
6519 | fi |
---|
6520 | |
---|
6521 | if test x$FOUND_GLEW != xyes ; then |
---|
6522 | echo "------------------" |
---|
6523 | echo "glew not found." |
---|
6524 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
6525 | echo "------------------" |
---|
6526 | exit -1 |
---|
6527 | fi |
---|
6528 | |
---|
6529 | #--------# |
---|
6530 | # openAL # |
---|
6531 | #--------# |
---|
6532 | # checking for openAL-headers |
---|
6533 | |
---|
6534 | for ac_header in AL/al.h |
---|
6535 | do |
---|
6536 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6537 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6538 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6542 | fi |
---|
6543 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6544 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6545 | else |
---|
6546 | # Is the header compilable? |
---|
6547 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6548 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6549 | cat >conftest.$ac_ext <<_ACEOF |
---|
6550 | /* confdefs.h. */ |
---|
6551 | _ACEOF |
---|
6552 | cat confdefs.h >>conftest.$ac_ext |
---|
6553 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6554 | /* end confdefs.h. */ |
---|
6555 | $ac_includes_default |
---|
6556 | #include <$ac_header> |
---|
6557 | _ACEOF |
---|
6558 | rm -f conftest.$ac_objext |
---|
6559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6560 | (eval $ac_compile) 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); } && |
---|
6567 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6568 | || test ! -s conftest.err' |
---|
6569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6570 | (eval $ac_try) 2>&5 |
---|
6571 | ac_status=$? |
---|
6572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6573 | (exit $ac_status); }; } && |
---|
6574 | { ac_try='test -s conftest.$ac_objext' |
---|
6575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6576 | (eval $ac_try) 2>&5 |
---|
6577 | ac_status=$? |
---|
6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6579 | (exit $ac_status); }; }; then |
---|
6580 | ac_header_compiler=yes |
---|
6581 | else |
---|
6582 | echo "$as_me: failed program was:" >&5 |
---|
6583 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6584 | |
---|
6585 | ac_header_compiler=no |
---|
6586 | fi |
---|
6587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6588 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6589 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6590 | |
---|
6591 | # Is the header present? |
---|
6592 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6593 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6594 | cat >conftest.$ac_ext <<_ACEOF |
---|
6595 | /* confdefs.h. */ |
---|
6596 | _ACEOF |
---|
6597 | cat confdefs.h >>conftest.$ac_ext |
---|
6598 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6599 | /* end confdefs.h. */ |
---|
6600 | #include <$ac_header> |
---|
6601 | _ACEOF |
---|
6602 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6603 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6604 | ac_status=$? |
---|
6605 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6606 | rm -f conftest.er1 |
---|
6607 | cat conftest.err >&5 |
---|
6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6609 | (exit $ac_status); } >/dev/null; then |
---|
6610 | if test -s conftest.err; then |
---|
6611 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6612 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6613 | else |
---|
6614 | ac_cpp_err= |
---|
6615 | fi |
---|
6616 | else |
---|
6617 | ac_cpp_err=yes |
---|
6618 | fi |
---|
6619 | if test -z "$ac_cpp_err"; then |
---|
6620 | ac_header_preproc=yes |
---|
6621 | else |
---|
6622 | echo "$as_me: failed program was:" >&5 |
---|
6623 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6624 | |
---|
6625 | ac_header_preproc=no |
---|
6626 | fi |
---|
6627 | rm -f conftest.err conftest.$ac_ext |
---|
6628 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6629 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6630 | |
---|
6631 | # So? What about this header? |
---|
6632 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6633 | yes:no: ) |
---|
6634 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6635 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6636 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6637 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6638 | ac_header_preproc=yes |
---|
6639 | ;; |
---|
6640 | no:yes:* ) |
---|
6641 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6642 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6643 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6644 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6645 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6646 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6647 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6648 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6649 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6650 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6651 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6652 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6653 | ( |
---|
6654 | cat <<\_ASBOX |
---|
6655 | ## ---------------------------------------------- ## |
---|
6656 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6657 | ## ---------------------------------------------- ## |
---|
6658 | _ASBOX |
---|
6659 | ) | |
---|
6660 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6661 | ;; |
---|
6662 | esac |
---|
6663 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6664 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6665 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6667 | else |
---|
6668 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6669 | fi |
---|
6670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6671 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6672 | |
---|
6673 | fi |
---|
6674 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6675 | cat >>confdefs.h <<_ACEOF |
---|
6676 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6677 | _ACEOF |
---|
6678 | |
---|
6679 | else |
---|
6680 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
6681 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
6682 | { (exit 1); exit 1; }; } |
---|
6683 | fi |
---|
6684 | |
---|
6685 | done |
---|
6686 | |
---|
6687 | # checking for openAL-lib |
---|
6688 | echo "$as_me:$LINENO: checking for main in -lopenal" >&5 |
---|
6689 | echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 |
---|
6690 | if test "${ac_cv_lib_openal_main+set}" = set; then |
---|
6691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6692 | else |
---|
6693 | ac_check_lib_save_LIBS=$LIBS |
---|
6694 | LIBS="-lopenal $LIBS" |
---|
6695 | cat >conftest.$ac_ext <<_ACEOF |
---|
6696 | /* confdefs.h. */ |
---|
6697 | _ACEOF |
---|
6698 | cat confdefs.h >>conftest.$ac_ext |
---|
6699 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6700 | /* end confdefs.h. */ |
---|
6701 | |
---|
6702 | |
---|
6703 | int |
---|
6704 | main () |
---|
6705 | { |
---|
6706 | main (); |
---|
6707 | ; |
---|
6708 | return 0; |
---|
6709 | } |
---|
6710 | _ACEOF |
---|
6711 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6713 | (eval $ac_link) 2>conftest.er1 |
---|
6714 | ac_status=$? |
---|
6715 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6716 | rm -f conftest.er1 |
---|
6717 | cat conftest.err >&5 |
---|
6718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6719 | (exit $ac_status); } && |
---|
6720 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6721 | || test ! -s conftest.err' |
---|
6722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6723 | (eval $ac_try) 2>&5 |
---|
6724 | ac_status=$? |
---|
6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6726 | (exit $ac_status); }; } && |
---|
6727 | { ac_try='test -s conftest$ac_exeext' |
---|
6728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6729 | (eval $ac_try) 2>&5 |
---|
6730 | ac_status=$? |
---|
6731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6732 | (exit $ac_status); }; }; then |
---|
6733 | ac_cv_lib_openal_main=yes |
---|
6734 | else |
---|
6735 | echo "$as_me: failed program was:" >&5 |
---|
6736 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6737 | |
---|
6738 | ac_cv_lib_openal_main=no |
---|
6739 | fi |
---|
6740 | rm -f conftest.err conftest.$ac_objext \ |
---|
6741 | conftest$ac_exeext conftest.$ac_ext |
---|
6742 | LIBS=$ac_check_lib_save_LIBS |
---|
6743 | fi |
---|
6744 | echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 |
---|
6745 | echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 |
---|
6746 | if test $ac_cv_lib_openal_main = yes; then |
---|
6747 | FOUND_OPENAL=yes; LIBS="$LIBS -lopenal" |
---|
6748 | fi |
---|
6749 | |
---|
6750 | if test x$FOUND_OPENAL != xyes ; then |
---|
6751 | echo "------------------" |
---|
6752 | echo "openal library not found." |
---|
6753 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
6754 | echo "------------------" |
---|
6755 | exit -1 |
---|
6756 | fi |
---|
6757 | # checking for alut |
---|
6758 | |
---|
6759 | for ac_header in AL/alut.h |
---|
6760 | do |
---|
6761 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6763 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6767 | fi |
---|
6768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6769 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6770 | else |
---|
6771 | # Is the header compilable? |
---|
6772 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6773 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6774 | cat >conftest.$ac_ext <<_ACEOF |
---|
6775 | /* confdefs.h. */ |
---|
6776 | _ACEOF |
---|
6777 | cat confdefs.h >>conftest.$ac_ext |
---|
6778 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6779 | /* end confdefs.h. */ |
---|
6780 | $ac_includes_default |
---|
6781 | #include <$ac_header> |
---|
6782 | _ACEOF |
---|
6783 | rm -f conftest.$ac_objext |
---|
6784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6785 | (eval $ac_compile) 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); } && |
---|
6792 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6793 | || test ! -s conftest.err' |
---|
6794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6795 | (eval $ac_try) 2>&5 |
---|
6796 | ac_status=$? |
---|
6797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6798 | (exit $ac_status); }; } && |
---|
6799 | { ac_try='test -s conftest.$ac_objext' |
---|
6800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6801 | (eval $ac_try) 2>&5 |
---|
6802 | ac_status=$? |
---|
6803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6804 | (exit $ac_status); }; }; then |
---|
6805 | ac_header_compiler=yes |
---|
6806 | else |
---|
6807 | echo "$as_me: failed program was:" >&5 |
---|
6808 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6809 | |
---|
6810 | ac_header_compiler=no |
---|
6811 | fi |
---|
6812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6813 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6814 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6815 | |
---|
6816 | # Is the header present? |
---|
6817 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6818 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6819 | cat >conftest.$ac_ext <<_ACEOF |
---|
6820 | /* confdefs.h. */ |
---|
6821 | _ACEOF |
---|
6822 | cat confdefs.h >>conftest.$ac_ext |
---|
6823 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6824 | /* end confdefs.h. */ |
---|
6825 | #include <$ac_header> |
---|
6826 | _ACEOF |
---|
6827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6829 | ac_status=$? |
---|
6830 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6831 | rm -f conftest.er1 |
---|
6832 | cat conftest.err >&5 |
---|
6833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6834 | (exit $ac_status); } >/dev/null; then |
---|
6835 | if test -s conftest.err; then |
---|
6836 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6837 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6838 | else |
---|
6839 | ac_cpp_err= |
---|
6840 | fi |
---|
6841 | else |
---|
6842 | ac_cpp_err=yes |
---|
6843 | fi |
---|
6844 | if test -z "$ac_cpp_err"; then |
---|
6845 | ac_header_preproc=yes |
---|
6846 | else |
---|
6847 | echo "$as_me: failed program was:" >&5 |
---|
6848 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6849 | |
---|
6850 | ac_header_preproc=no |
---|
6851 | fi |
---|
6852 | rm -f conftest.err conftest.$ac_ext |
---|
6853 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6854 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6855 | |
---|
6856 | # So? What about this header? |
---|
6857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6858 | yes:no: ) |
---|
6859 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6860 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6862 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6863 | ac_header_preproc=yes |
---|
6864 | ;; |
---|
6865 | no:yes:* ) |
---|
6866 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6867 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6868 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6869 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6870 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6871 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6872 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6873 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6875 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6876 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6877 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6878 | ( |
---|
6879 | cat <<\_ASBOX |
---|
6880 | ## ---------------------------------------------- ## |
---|
6881 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6882 | ## ---------------------------------------------- ## |
---|
6883 | _ASBOX |
---|
6884 | ) | |
---|
6885 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6886 | ;; |
---|
6887 | esac |
---|
6888 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6892 | else |
---|
6893 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6894 | fi |
---|
6895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6897 | |
---|
6898 | fi |
---|
6899 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6900 | cat >>confdefs.h <<_ACEOF |
---|
6901 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6902 | _ACEOF |
---|
6903 | |
---|
6904 | else |
---|
6905 | { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5 |
---|
6906 | echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;} |
---|
6907 | { (exit 1); exit 1; }; } |
---|
6908 | fi |
---|
6909 | |
---|
6910 | done |
---|
6911 | |
---|
6912 | echo "$as_me:$LINENO: checking for main in -lalut" >&5 |
---|
6913 | echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6 |
---|
6914 | if test "${ac_cv_lib_alut_main+set}" = set; then |
---|
6915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6916 | else |
---|
6917 | ac_check_lib_save_LIBS=$LIBS |
---|
6918 | LIBS="-lalut $LIBS" |
---|
6919 | cat >conftest.$ac_ext <<_ACEOF |
---|
6920 | /* confdefs.h. */ |
---|
6921 | _ACEOF |
---|
6922 | cat confdefs.h >>conftest.$ac_ext |
---|
6923 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6924 | /* end confdefs.h. */ |
---|
6925 | |
---|
6926 | |
---|
6927 | int |
---|
6928 | main () |
---|
6929 | { |
---|
6930 | main (); |
---|
6931 | ; |
---|
6932 | return 0; |
---|
6933 | } |
---|
6934 | _ACEOF |
---|
6935 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6937 | (eval $ac_link) 2>conftest.er1 |
---|
6938 | ac_status=$? |
---|
6939 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6940 | rm -f conftest.er1 |
---|
6941 | cat conftest.err >&5 |
---|
6942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6943 | (exit $ac_status); } && |
---|
6944 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6945 | || test ! -s conftest.err' |
---|
6946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6947 | (eval $ac_try) 2>&5 |
---|
6948 | ac_status=$? |
---|
6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6950 | (exit $ac_status); }; } && |
---|
6951 | { ac_try='test -s conftest$ac_exeext' |
---|
6952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6953 | (eval $ac_try) 2>&5 |
---|
6954 | ac_status=$? |
---|
6955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6956 | (exit $ac_status); }; }; then |
---|
6957 | ac_cv_lib_alut_main=yes |
---|
6958 | else |
---|
6959 | echo "$as_me: failed program was:" >&5 |
---|
6960 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6961 | |
---|
6962 | ac_cv_lib_alut_main=no |
---|
6963 | fi |
---|
6964 | rm -f conftest.err conftest.$ac_objext \ |
---|
6965 | conftest$ac_exeext conftest.$ac_ext |
---|
6966 | LIBS=$ac_check_lib_save_LIBS |
---|
6967 | fi |
---|
6968 | echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5 |
---|
6969 | echo "${ECHO_T}$ac_cv_lib_alut_main" >&6 |
---|
6970 | if test $ac_cv_lib_alut_main = yes; then |
---|
6971 | FOUND_ALUT=yes; LIBS="-lalut $LIBS" |
---|
6972 | fi |
---|
6973 | |
---|
6974 | |
---|
6975 | #-----# |
---|
6976 | # SDL # |
---|
6977 | #-----# |
---|
6978 | # checking for SDL |
---|
6979 | echo "$as_me:$LINENO: checking for SDL-version" >&5 |
---|
6980 | echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 |
---|
6981 | SDL_VERSION=`sdl-config --version` |
---|
6982 | echo $SDL_VERSION |
---|
6983 | |
---|
6984 | CPPFLAGS="$CPPFLAGS `sdl-config --cflags`" |
---|
6985 | |
---|
6986 | for ac_header in SDL.h |
---|
6987 | do |
---|
6988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6989 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6990 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6994 | fi |
---|
6995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6997 | else |
---|
6998 | # Is the header compilable? |
---|
6999 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7000 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7001 | cat >conftest.$ac_ext <<_ACEOF |
---|
7002 | /* confdefs.h. */ |
---|
7003 | _ACEOF |
---|
7004 | cat confdefs.h >>conftest.$ac_ext |
---|
7005 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7006 | /* end confdefs.h. */ |
---|
7007 | $ac_includes_default |
---|
7008 | #include <$ac_header> |
---|
7009 | _ACEOF |
---|
7010 | rm -f conftest.$ac_objext |
---|
7011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7012 | (eval $ac_compile) 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); } && |
---|
7019 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7020 | || test ! -s conftest.err' |
---|
7021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7022 | (eval $ac_try) 2>&5 |
---|
7023 | ac_status=$? |
---|
7024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7025 | (exit $ac_status); }; } && |
---|
7026 | { ac_try='test -s conftest.$ac_objext' |
---|
7027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7028 | (eval $ac_try) 2>&5 |
---|
7029 | ac_status=$? |
---|
7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7031 | (exit $ac_status); }; }; then |
---|
7032 | ac_header_compiler=yes |
---|
7033 | else |
---|
7034 | echo "$as_me: failed program was:" >&5 |
---|
7035 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7036 | |
---|
7037 | ac_header_compiler=no |
---|
7038 | fi |
---|
7039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7040 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7041 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7042 | |
---|
7043 | # Is the header present? |
---|
7044 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7045 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7046 | cat >conftest.$ac_ext <<_ACEOF |
---|
7047 | /* confdefs.h. */ |
---|
7048 | _ACEOF |
---|
7049 | cat confdefs.h >>conftest.$ac_ext |
---|
7050 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7051 | /* end confdefs.h. */ |
---|
7052 | #include <$ac_header> |
---|
7053 | _ACEOF |
---|
7054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7056 | ac_status=$? |
---|
7057 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7058 | rm -f conftest.er1 |
---|
7059 | cat conftest.err >&5 |
---|
7060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7061 | (exit $ac_status); } >/dev/null; then |
---|
7062 | if test -s conftest.err; then |
---|
7063 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7064 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7065 | else |
---|
7066 | ac_cpp_err= |
---|
7067 | fi |
---|
7068 | else |
---|
7069 | ac_cpp_err=yes |
---|
7070 | fi |
---|
7071 | if test -z "$ac_cpp_err"; then |
---|
7072 | ac_header_preproc=yes |
---|
7073 | else |
---|
7074 | echo "$as_me: failed program was:" >&5 |
---|
7075 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7076 | |
---|
7077 | ac_header_preproc=no |
---|
7078 | fi |
---|
7079 | rm -f conftest.err conftest.$ac_ext |
---|
7080 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7081 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7082 | |
---|
7083 | # So? What about this header? |
---|
7084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7085 | yes:no: ) |
---|
7086 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7087 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7089 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7090 | ac_header_preproc=yes |
---|
7091 | ;; |
---|
7092 | no:yes:* ) |
---|
7093 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7094 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7095 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7096 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7097 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7098 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7099 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7100 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7102 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7103 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7104 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7105 | ( |
---|
7106 | cat <<\_ASBOX |
---|
7107 | ## ---------------------------------------------- ## |
---|
7108 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7109 | ## ---------------------------------------------- ## |
---|
7110 | _ASBOX |
---|
7111 | ) | |
---|
7112 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7113 | ;; |
---|
7114 | esac |
---|
7115 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7116 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7119 | else |
---|
7120 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7121 | fi |
---|
7122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7123 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7124 | |
---|
7125 | fi |
---|
7126 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7127 | cat >>confdefs.h <<_ACEOF |
---|
7128 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7129 | _ACEOF |
---|
7130 | |
---|
7131 | else |
---|
7132 | |
---|
7133 | for ac_header in SDL/SDL.h |
---|
7134 | do |
---|
7135 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7136 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7137 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7141 | fi |
---|
7142 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7143 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7144 | else |
---|
7145 | # Is the header compilable? |
---|
7146 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7147 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7148 | cat >conftest.$ac_ext <<_ACEOF |
---|
7149 | /* confdefs.h. */ |
---|
7150 | _ACEOF |
---|
7151 | cat confdefs.h >>conftest.$ac_ext |
---|
7152 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7153 | /* end confdefs.h. */ |
---|
7154 | $ac_includes_default |
---|
7155 | #include <$ac_header> |
---|
7156 | _ACEOF |
---|
7157 | rm -f conftest.$ac_objext |
---|
7158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7159 | (eval $ac_compile) 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); } && |
---|
7166 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7167 | || test ! -s conftest.err' |
---|
7168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7169 | (eval $ac_try) 2>&5 |
---|
7170 | ac_status=$? |
---|
7171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7172 | (exit $ac_status); }; } && |
---|
7173 | { ac_try='test -s conftest.$ac_objext' |
---|
7174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7175 | (eval $ac_try) 2>&5 |
---|
7176 | ac_status=$? |
---|
7177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7178 | (exit $ac_status); }; }; then |
---|
7179 | ac_header_compiler=yes |
---|
7180 | else |
---|
7181 | echo "$as_me: failed program was:" >&5 |
---|
7182 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7183 | |
---|
7184 | ac_header_compiler=no |
---|
7185 | fi |
---|
7186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7187 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7188 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7189 | |
---|
7190 | # Is the header present? |
---|
7191 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7192 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7193 | cat >conftest.$ac_ext <<_ACEOF |
---|
7194 | /* confdefs.h. */ |
---|
7195 | _ACEOF |
---|
7196 | cat confdefs.h >>conftest.$ac_ext |
---|
7197 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7198 | /* end confdefs.h. */ |
---|
7199 | #include <$ac_header> |
---|
7200 | _ACEOF |
---|
7201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7202 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7203 | ac_status=$? |
---|
7204 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7205 | rm -f conftest.er1 |
---|
7206 | cat conftest.err >&5 |
---|
7207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7208 | (exit $ac_status); } >/dev/null; then |
---|
7209 | if test -s conftest.err; then |
---|
7210 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7211 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7212 | else |
---|
7213 | ac_cpp_err= |
---|
7214 | fi |
---|
7215 | else |
---|
7216 | ac_cpp_err=yes |
---|
7217 | fi |
---|
7218 | if test -z "$ac_cpp_err"; then |
---|
7219 | ac_header_preproc=yes |
---|
7220 | else |
---|
7221 | echo "$as_me: failed program was:" >&5 |
---|
7222 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7223 | |
---|
7224 | ac_header_preproc=no |
---|
7225 | fi |
---|
7226 | rm -f conftest.err conftest.$ac_ext |
---|
7227 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7228 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7229 | |
---|
7230 | # So? What about this header? |
---|
7231 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7232 | yes:no: ) |
---|
7233 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7234 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7235 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7236 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7237 | ac_header_preproc=yes |
---|
7238 | ;; |
---|
7239 | no:yes:* ) |
---|
7240 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7241 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7242 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7243 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7244 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7245 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7246 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7247 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7248 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7249 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7250 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7251 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7252 | ( |
---|
7253 | cat <<\_ASBOX |
---|
7254 | ## ---------------------------------------------- ## |
---|
7255 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7256 | ## ---------------------------------------------- ## |
---|
7257 | _ASBOX |
---|
7258 | ) | |
---|
7259 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7260 | ;; |
---|
7261 | esac |
---|
7262 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7263 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7264 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7266 | else |
---|
7267 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7268 | fi |
---|
7269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7270 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7271 | |
---|
7272 | fi |
---|
7273 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7274 | cat >>confdefs.h <<_ACEOF |
---|
7275 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7276 | _ACEOF |
---|
7277 | |
---|
7278 | else |
---|
7279 | { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 |
---|
7280 | echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} |
---|
7281 | { (exit 1); exit 1; }; } |
---|
7282 | fi |
---|
7283 | |
---|
7284 | done |
---|
7285 | |
---|
7286 | fi |
---|
7287 | |
---|
7288 | done |
---|
7289 | |
---|
7290 | LIBS="`sdl-config --libs` $LIBS" |
---|
7291 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
7292 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
7293 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
7294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7295 | else |
---|
7296 | ac_check_lib_save_LIBS=$LIBS |
---|
7297 | LIBS="-lSDL $LIBS" |
---|
7298 | cat >conftest.$ac_ext <<_ACEOF |
---|
7299 | /* confdefs.h. */ |
---|
7300 | _ACEOF |
---|
7301 | cat confdefs.h >>conftest.$ac_ext |
---|
7302 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7303 | /* end confdefs.h. */ |
---|
7304 | |
---|
7305 | |
---|
7306 | int |
---|
7307 | main () |
---|
7308 | { |
---|
7309 | main (); |
---|
7310 | ; |
---|
7311 | return 0; |
---|
7312 | } |
---|
7313 | _ACEOF |
---|
7314 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7316 | (eval $ac_link) 2>conftest.er1 |
---|
7317 | ac_status=$? |
---|
7318 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7319 | rm -f conftest.er1 |
---|
7320 | cat conftest.err >&5 |
---|
7321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7322 | (exit $ac_status); } && |
---|
7323 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7324 | || test ! -s conftest.err' |
---|
7325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7326 | (eval $ac_try) 2>&5 |
---|
7327 | ac_status=$? |
---|
7328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7329 | (exit $ac_status); }; } && |
---|
7330 | { ac_try='test -s conftest$ac_exeext' |
---|
7331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7332 | (eval $ac_try) 2>&5 |
---|
7333 | ac_status=$? |
---|
7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7335 | (exit $ac_status); }; }; then |
---|
7336 | ac_cv_lib_SDL_main=yes |
---|
7337 | else |
---|
7338 | echo "$as_me: failed program was:" >&5 |
---|
7339 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7340 | |
---|
7341 | ac_cv_lib_SDL_main=no |
---|
7342 | fi |
---|
7343 | rm -f conftest.err conftest.$ac_objext \ |
---|
7344 | conftest$ac_exeext conftest.$ac_ext |
---|
7345 | LIBS=$ac_check_lib_save_LIBS |
---|
7346 | fi |
---|
7347 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
7348 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
7349 | if test $ac_cv_lib_SDL_main = yes; then |
---|
7350 | FOUND_SDL=yes |
---|
7351 | fi |
---|
7352 | |
---|
7353 | if test x$FOUND_SDL != xyes ; then |
---|
7354 | echo "------------------" |
---|
7355 | echo "SDL library not found." |
---|
7356 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
7357 | echo "------------------" |
---|
7358 | exit -1 |
---|
7359 | fi |
---|
7360 | |
---|
7361 | ;; |
---|
7362 | |
---|
7363 | ############# |
---|
7364 | #-----------# |
---|
7365 | # MAC -OS X # |
---|
7366 | #-----------# |
---|
7367 | ############# |
---|
7368 | *darwin*) |
---|
7369 | echo "OS X detected" |
---|
7370 | |
---|
7371 | osX="yes" |
---|
7372 | |
---|
7373 | CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" |
---|
7374 | LDFLAGS="$LDFLAGS -L/sw/lib" |
---|
7375 | # checking gl header |
---|
7376 | |
---|
7377 | for ac_header in OpenGL/gl.h |
---|
7378 | do |
---|
7379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7381 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7385 | fi |
---|
7386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7388 | else |
---|
7389 | # Is the header compilable? |
---|
7390 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7391 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7392 | cat >conftest.$ac_ext <<_ACEOF |
---|
7393 | /* confdefs.h. */ |
---|
7394 | _ACEOF |
---|
7395 | cat confdefs.h >>conftest.$ac_ext |
---|
7396 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7397 | /* end confdefs.h. */ |
---|
7398 | $ac_includes_default |
---|
7399 | #include <$ac_header> |
---|
7400 | _ACEOF |
---|
7401 | rm -f conftest.$ac_objext |
---|
7402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7403 | (eval $ac_compile) 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); } && |
---|
7410 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7411 | || test ! -s conftest.err' |
---|
7412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7413 | (eval $ac_try) 2>&5 |
---|
7414 | ac_status=$? |
---|
7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7416 | (exit $ac_status); }; } && |
---|
7417 | { ac_try='test -s conftest.$ac_objext' |
---|
7418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7419 | (eval $ac_try) 2>&5 |
---|
7420 | ac_status=$? |
---|
7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7422 | (exit $ac_status); }; }; then |
---|
7423 | ac_header_compiler=yes |
---|
7424 | else |
---|
7425 | echo "$as_me: failed program was:" >&5 |
---|
7426 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7427 | |
---|
7428 | ac_header_compiler=no |
---|
7429 | fi |
---|
7430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7431 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7432 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7433 | |
---|
7434 | # Is the header present? |
---|
7435 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7436 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7437 | cat >conftest.$ac_ext <<_ACEOF |
---|
7438 | /* confdefs.h. */ |
---|
7439 | _ACEOF |
---|
7440 | cat confdefs.h >>conftest.$ac_ext |
---|
7441 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7442 | /* end confdefs.h. */ |
---|
7443 | #include <$ac_header> |
---|
7444 | _ACEOF |
---|
7445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7447 | ac_status=$? |
---|
7448 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7449 | rm -f conftest.er1 |
---|
7450 | cat conftest.err >&5 |
---|
7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7452 | (exit $ac_status); } >/dev/null; then |
---|
7453 | if test -s conftest.err; then |
---|
7454 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7455 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7456 | else |
---|
7457 | ac_cpp_err= |
---|
7458 | fi |
---|
7459 | else |
---|
7460 | ac_cpp_err=yes |
---|
7461 | fi |
---|
7462 | if test -z "$ac_cpp_err"; then |
---|
7463 | ac_header_preproc=yes |
---|
7464 | else |
---|
7465 | echo "$as_me: failed program was:" >&5 |
---|
7466 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7467 | |
---|
7468 | ac_header_preproc=no |
---|
7469 | fi |
---|
7470 | rm -f conftest.err conftest.$ac_ext |
---|
7471 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7472 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7473 | |
---|
7474 | # So? What about this header? |
---|
7475 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7476 | yes:no: ) |
---|
7477 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7478 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7479 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7480 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7481 | ac_header_preproc=yes |
---|
7482 | ;; |
---|
7483 | no:yes:* ) |
---|
7484 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7485 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7486 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7487 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7488 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7489 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7490 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7491 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7493 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7494 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7495 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7496 | ( |
---|
7497 | cat <<\_ASBOX |
---|
7498 | ## ---------------------------------------------- ## |
---|
7499 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7500 | ## ---------------------------------------------- ## |
---|
7501 | _ASBOX |
---|
7502 | ) | |
---|
7503 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7504 | ;; |
---|
7505 | esac |
---|
7506 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7510 | else |
---|
7511 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7512 | fi |
---|
7513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7515 | |
---|
7516 | fi |
---|
7517 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7518 | cat >>confdefs.h <<_ACEOF |
---|
7519 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7520 | _ACEOF |
---|
7521 | |
---|
7522 | else |
---|
7523 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
7524 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
7525 | { (exit 1); exit 1; }; } |
---|
7526 | fi |
---|
7527 | |
---|
7528 | done |
---|
7529 | |
---|
7530 | # cheking for GLU-header |
---|
7531 | |
---|
7532 | for ac_header in OpenGL/glu.h |
---|
7533 | do |
---|
7534 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7536 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7538 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7540 | fi |
---|
7541 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7542 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7543 | else |
---|
7544 | # Is the header compilable? |
---|
7545 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7546 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7547 | cat >conftest.$ac_ext <<_ACEOF |
---|
7548 | /* confdefs.h. */ |
---|
7549 | _ACEOF |
---|
7550 | cat confdefs.h >>conftest.$ac_ext |
---|
7551 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7552 | /* end confdefs.h. */ |
---|
7553 | $ac_includes_default |
---|
7554 | #include <$ac_header> |
---|
7555 | _ACEOF |
---|
7556 | rm -f conftest.$ac_objext |
---|
7557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7558 | (eval $ac_compile) 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); } && |
---|
7565 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7566 | || test ! -s conftest.err' |
---|
7567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7568 | (eval $ac_try) 2>&5 |
---|
7569 | ac_status=$? |
---|
7570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7571 | (exit $ac_status); }; } && |
---|
7572 | { ac_try='test -s conftest.$ac_objext' |
---|
7573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7574 | (eval $ac_try) 2>&5 |
---|
7575 | ac_status=$? |
---|
7576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7577 | (exit $ac_status); }; }; then |
---|
7578 | ac_header_compiler=yes |
---|
7579 | else |
---|
7580 | echo "$as_me: failed program was:" >&5 |
---|
7581 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7582 | |
---|
7583 | ac_header_compiler=no |
---|
7584 | fi |
---|
7585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7586 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7587 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7588 | |
---|
7589 | # Is the header present? |
---|
7590 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7591 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7592 | cat >conftest.$ac_ext <<_ACEOF |
---|
7593 | /* confdefs.h. */ |
---|
7594 | _ACEOF |
---|
7595 | cat confdefs.h >>conftest.$ac_ext |
---|
7596 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7597 | /* end confdefs.h. */ |
---|
7598 | #include <$ac_header> |
---|
7599 | _ACEOF |
---|
7600 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7601 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7602 | ac_status=$? |
---|
7603 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7604 | rm -f conftest.er1 |
---|
7605 | cat conftest.err >&5 |
---|
7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7607 | (exit $ac_status); } >/dev/null; then |
---|
7608 | if test -s conftest.err; then |
---|
7609 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7610 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7611 | else |
---|
7612 | ac_cpp_err= |
---|
7613 | fi |
---|
7614 | else |
---|
7615 | ac_cpp_err=yes |
---|
7616 | fi |
---|
7617 | if test -z "$ac_cpp_err"; then |
---|
7618 | ac_header_preproc=yes |
---|
7619 | else |
---|
7620 | echo "$as_me: failed program was:" >&5 |
---|
7621 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7622 | |
---|
7623 | ac_header_preproc=no |
---|
7624 | fi |
---|
7625 | rm -f conftest.err conftest.$ac_ext |
---|
7626 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7627 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7628 | |
---|
7629 | # So? What about this header? |
---|
7630 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7631 | yes:no: ) |
---|
7632 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7633 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7634 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7635 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7636 | ac_header_preproc=yes |
---|
7637 | ;; |
---|
7638 | no:yes:* ) |
---|
7639 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7640 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7641 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7642 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7643 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7644 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7645 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7646 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7647 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7648 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7649 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7650 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7651 | ( |
---|
7652 | cat <<\_ASBOX |
---|
7653 | ## ---------------------------------------------- ## |
---|
7654 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7655 | ## ---------------------------------------------- ## |
---|
7656 | _ASBOX |
---|
7657 | ) | |
---|
7658 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7659 | ;; |
---|
7660 | esac |
---|
7661 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7663 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7665 | else |
---|
7666 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7667 | fi |
---|
7668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7669 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7670 | |
---|
7671 | fi |
---|
7672 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7673 | cat >>confdefs.h <<_ACEOF |
---|
7674 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7675 | _ACEOF |
---|
7676 | |
---|
7677 | else |
---|
7678 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
7679 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
7680 | { (exit 1); exit 1; }; } |
---|
7681 | fi |
---|
7682 | |
---|
7683 | done |
---|
7684 | |
---|
7685 | |
---|
7686 | LIBS="$LIBS -framework OpenGL" |
---|
7687 | |
---|
7688 | |
---|
7689 | |
---|
7690 | # checking for GLEW-headers |
---|
7691 | |
---|
7692 | for ac_header in GL/glew.h |
---|
7693 | do |
---|
7694 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7700 | fi |
---|
7701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7702 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7703 | else |
---|
7704 | # Is the header compilable? |
---|
7705 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7706 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7707 | cat >conftest.$ac_ext <<_ACEOF |
---|
7708 | /* confdefs.h. */ |
---|
7709 | _ACEOF |
---|
7710 | cat confdefs.h >>conftest.$ac_ext |
---|
7711 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7712 | /* end confdefs.h. */ |
---|
7713 | $ac_includes_default |
---|
7714 | #include <$ac_header> |
---|
7715 | _ACEOF |
---|
7716 | rm -f conftest.$ac_objext |
---|
7717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7718 | (eval $ac_compile) 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); } && |
---|
7725 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7726 | || test ! -s conftest.err' |
---|
7727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7728 | (eval $ac_try) 2>&5 |
---|
7729 | ac_status=$? |
---|
7730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7731 | (exit $ac_status); }; } && |
---|
7732 | { ac_try='test -s conftest.$ac_objext' |
---|
7733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7734 | (eval $ac_try) 2>&5 |
---|
7735 | ac_status=$? |
---|
7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7737 | (exit $ac_status); }; }; then |
---|
7738 | ac_header_compiler=yes |
---|
7739 | else |
---|
7740 | echo "$as_me: failed program was:" >&5 |
---|
7741 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7742 | |
---|
7743 | ac_header_compiler=no |
---|
7744 | fi |
---|
7745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7746 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7747 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7748 | |
---|
7749 | # Is the header present? |
---|
7750 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7751 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7752 | cat >conftest.$ac_ext <<_ACEOF |
---|
7753 | /* confdefs.h. */ |
---|
7754 | _ACEOF |
---|
7755 | cat confdefs.h >>conftest.$ac_ext |
---|
7756 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7757 | /* end confdefs.h. */ |
---|
7758 | #include <$ac_header> |
---|
7759 | _ACEOF |
---|
7760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7762 | ac_status=$? |
---|
7763 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7764 | rm -f conftest.er1 |
---|
7765 | cat conftest.err >&5 |
---|
7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7767 | (exit $ac_status); } >/dev/null; then |
---|
7768 | if test -s conftest.err; then |
---|
7769 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7770 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7771 | else |
---|
7772 | ac_cpp_err= |
---|
7773 | fi |
---|
7774 | else |
---|
7775 | ac_cpp_err=yes |
---|
7776 | fi |
---|
7777 | if test -z "$ac_cpp_err"; then |
---|
7778 | ac_header_preproc=yes |
---|
7779 | else |
---|
7780 | echo "$as_me: failed program was:" >&5 |
---|
7781 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7782 | |
---|
7783 | ac_header_preproc=no |
---|
7784 | fi |
---|
7785 | rm -f conftest.err conftest.$ac_ext |
---|
7786 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7787 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7788 | |
---|
7789 | # So? What about this header? |
---|
7790 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7791 | yes:no: ) |
---|
7792 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7793 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7795 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7796 | ac_header_preproc=yes |
---|
7797 | ;; |
---|
7798 | no:yes:* ) |
---|
7799 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7800 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7801 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7802 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7803 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7804 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7805 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7806 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7808 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7809 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7810 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7811 | ( |
---|
7812 | cat <<\_ASBOX |
---|
7813 | ## ---------------------------------------------- ## |
---|
7814 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7815 | ## ---------------------------------------------- ## |
---|
7816 | _ASBOX |
---|
7817 | ) | |
---|
7818 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7819 | ;; |
---|
7820 | esac |
---|
7821 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7825 | else |
---|
7826 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7827 | fi |
---|
7828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7830 | |
---|
7831 | fi |
---|
7832 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7833 | cat >>confdefs.h <<_ACEOF |
---|
7834 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7835 | _ACEOF |
---|
7836 | |
---|
7837 | else |
---|
7838 | { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 |
---|
7839 | echo "$as_me: error: cannot find glew headers" >&2;} |
---|
7840 | { (exit 1); exit 1; }; } |
---|
7841 | fi |
---|
7842 | |
---|
7843 | done |
---|
7844 | |
---|
7845 | # checking for GLEW-lib |
---|
7846 | echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 |
---|
7847 | echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 |
---|
7848 | if test "${ac_cv_lib_GLEW_main+set}" = set; then |
---|
7849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7850 | else |
---|
7851 | ac_check_lib_save_LIBS=$LIBS |
---|
7852 | LIBS="-lGLEW $LIBS" |
---|
7853 | cat >conftest.$ac_ext <<_ACEOF |
---|
7854 | /* confdefs.h. */ |
---|
7855 | _ACEOF |
---|
7856 | cat confdefs.h >>conftest.$ac_ext |
---|
7857 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7858 | /* end confdefs.h. */ |
---|
7859 | |
---|
7860 | |
---|
7861 | int |
---|
7862 | main () |
---|
7863 | { |
---|
7864 | main (); |
---|
7865 | ; |
---|
7866 | return 0; |
---|
7867 | } |
---|
7868 | _ACEOF |
---|
7869 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7871 | (eval $ac_link) 2>conftest.er1 |
---|
7872 | ac_status=$? |
---|
7873 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7874 | rm -f conftest.er1 |
---|
7875 | cat conftest.err >&5 |
---|
7876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7877 | (exit $ac_status); } && |
---|
7878 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7879 | || test ! -s conftest.err' |
---|
7880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7881 | (eval $ac_try) 2>&5 |
---|
7882 | ac_status=$? |
---|
7883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7884 | (exit $ac_status); }; } && |
---|
7885 | { ac_try='test -s conftest$ac_exeext' |
---|
7886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7887 | (eval $ac_try) 2>&5 |
---|
7888 | ac_status=$? |
---|
7889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7890 | (exit $ac_status); }; }; then |
---|
7891 | ac_cv_lib_GLEW_main=yes |
---|
7892 | else |
---|
7893 | echo "$as_me: failed program was:" >&5 |
---|
7894 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7895 | |
---|
7896 | ac_cv_lib_GLEW_main=no |
---|
7897 | fi |
---|
7898 | rm -f conftest.err conftest.$ac_objext \ |
---|
7899 | conftest$ac_exeext conftest.$ac_ext |
---|
7900 | LIBS=$ac_check_lib_save_LIBS |
---|
7901 | fi |
---|
7902 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 |
---|
7903 | echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 |
---|
7904 | if test $ac_cv_lib_GLEW_main = yes; then |
---|
7905 | FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" |
---|
7906 | fi |
---|
7907 | |
---|
7908 | if test x$FOUND_GLEW != xyes ; then |
---|
7909 | echo "------------------" |
---|
7910 | echo "glew not found." |
---|
7911 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
7912 | echo "------------------" |
---|
7913 | exit -1 |
---|
7914 | fi |
---|
7915 | |
---|
7916 | |
---|
7917 | |
---|
7918 | for ac_header in OpenAL/al.h |
---|
7919 | do |
---|
7920 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7926 | fi |
---|
7927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7928 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7929 | else |
---|
7930 | # Is the header compilable? |
---|
7931 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7932 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7933 | cat >conftest.$ac_ext <<_ACEOF |
---|
7934 | /* confdefs.h. */ |
---|
7935 | _ACEOF |
---|
7936 | cat confdefs.h >>conftest.$ac_ext |
---|
7937 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7938 | /* end confdefs.h. */ |
---|
7939 | $ac_includes_default |
---|
7940 | #include <$ac_header> |
---|
7941 | _ACEOF |
---|
7942 | rm -f conftest.$ac_objext |
---|
7943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7944 | (eval $ac_compile) 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); } && |
---|
7951 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7952 | || test ! -s conftest.err' |
---|
7953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7954 | (eval $ac_try) 2>&5 |
---|
7955 | ac_status=$? |
---|
7956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7957 | (exit $ac_status); }; } && |
---|
7958 | { ac_try='test -s conftest.$ac_objext' |
---|
7959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7960 | (eval $ac_try) 2>&5 |
---|
7961 | ac_status=$? |
---|
7962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7963 | (exit $ac_status); }; }; then |
---|
7964 | ac_header_compiler=yes |
---|
7965 | else |
---|
7966 | echo "$as_me: failed program was:" >&5 |
---|
7967 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7968 | |
---|
7969 | ac_header_compiler=no |
---|
7970 | fi |
---|
7971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7972 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7973 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7974 | |
---|
7975 | # Is the header present? |
---|
7976 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7977 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7978 | cat >conftest.$ac_ext <<_ACEOF |
---|
7979 | /* confdefs.h. */ |
---|
7980 | _ACEOF |
---|
7981 | cat confdefs.h >>conftest.$ac_ext |
---|
7982 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7983 | /* end confdefs.h. */ |
---|
7984 | #include <$ac_header> |
---|
7985 | _ACEOF |
---|
7986 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7987 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7988 | ac_status=$? |
---|
7989 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7990 | rm -f conftest.er1 |
---|
7991 | cat conftest.err >&5 |
---|
7992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7993 | (exit $ac_status); } >/dev/null; then |
---|
7994 | if test -s conftest.err; then |
---|
7995 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7996 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7997 | else |
---|
7998 | ac_cpp_err= |
---|
7999 | fi |
---|
8000 | else |
---|
8001 | ac_cpp_err=yes |
---|
8002 | fi |
---|
8003 | if test -z "$ac_cpp_err"; then |
---|
8004 | ac_header_preproc=yes |
---|
8005 | else |
---|
8006 | echo "$as_me: failed program was:" >&5 |
---|
8007 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8008 | |
---|
8009 | ac_header_preproc=no |
---|
8010 | fi |
---|
8011 | rm -f conftest.err conftest.$ac_ext |
---|
8012 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8013 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8014 | |
---|
8015 | # So? What about this header? |
---|
8016 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8017 | yes:no: ) |
---|
8018 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8019 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8020 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8021 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8022 | ac_header_preproc=yes |
---|
8023 | ;; |
---|
8024 | no:yes:* ) |
---|
8025 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8026 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8027 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8028 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8029 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8030 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8031 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8032 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8034 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8035 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8036 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8037 | ( |
---|
8038 | cat <<\_ASBOX |
---|
8039 | ## ---------------------------------------------- ## |
---|
8040 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8041 | ## ---------------------------------------------- ## |
---|
8042 | _ASBOX |
---|
8043 | ) | |
---|
8044 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8045 | ;; |
---|
8046 | esac |
---|
8047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8051 | else |
---|
8052 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8053 | fi |
---|
8054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8056 | |
---|
8057 | fi |
---|
8058 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8059 | cat >>confdefs.h <<_ACEOF |
---|
8060 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8061 | _ACEOF |
---|
8062 | |
---|
8063 | else |
---|
8064 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
8065 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
8066 | { (exit 1); exit 1; }; } |
---|
8067 | fi |
---|
8068 | |
---|
8069 | done |
---|
8070 | |
---|
8071 | HAVE_OPENAL=yes |
---|
8072 | LIBS="$LIBS -framework OpenAL" |
---|
8073 | |
---|
8074 | |
---|
8075 | ## SDL-check |
---|
8076 | SDL_CFLAGS=`sdl-config --cflags` |
---|
8077 | SDL_LIBS=`sdl-config --libs` |
---|
8078 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
8079 | LIBS="$LIBS $SDL_LIBS" |
---|
8080 | |
---|
8081 | for ac_header in SDL/SDL.h |
---|
8082 | do |
---|
8083 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8085 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8089 | fi |
---|
8090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8091 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8092 | else |
---|
8093 | # Is the header compilable? |
---|
8094 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8095 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8096 | cat >conftest.$ac_ext <<_ACEOF |
---|
8097 | /* confdefs.h. */ |
---|
8098 | _ACEOF |
---|
8099 | cat confdefs.h >>conftest.$ac_ext |
---|
8100 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8101 | /* end confdefs.h. */ |
---|
8102 | $ac_includes_default |
---|
8103 | #include <$ac_header> |
---|
8104 | _ACEOF |
---|
8105 | rm -f conftest.$ac_objext |
---|
8106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8107 | (eval $ac_compile) 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); } && |
---|
8114 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8115 | || test ! -s conftest.err' |
---|
8116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8117 | (eval $ac_try) 2>&5 |
---|
8118 | ac_status=$? |
---|
8119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8120 | (exit $ac_status); }; } && |
---|
8121 | { ac_try='test -s conftest.$ac_objext' |
---|
8122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8123 | (eval $ac_try) 2>&5 |
---|
8124 | ac_status=$? |
---|
8125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8126 | (exit $ac_status); }; }; then |
---|
8127 | ac_header_compiler=yes |
---|
8128 | else |
---|
8129 | echo "$as_me: failed program was:" >&5 |
---|
8130 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8131 | |
---|
8132 | ac_header_compiler=no |
---|
8133 | fi |
---|
8134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8135 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8136 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8137 | |
---|
8138 | # Is the header present? |
---|
8139 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8140 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8141 | cat >conftest.$ac_ext <<_ACEOF |
---|
8142 | /* confdefs.h. */ |
---|
8143 | _ACEOF |
---|
8144 | cat confdefs.h >>conftest.$ac_ext |
---|
8145 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8146 | /* end confdefs.h. */ |
---|
8147 | #include <$ac_header> |
---|
8148 | _ACEOF |
---|
8149 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8150 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8151 | ac_status=$? |
---|
8152 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8153 | rm -f conftest.er1 |
---|
8154 | cat conftest.err >&5 |
---|
8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8156 | (exit $ac_status); } >/dev/null; then |
---|
8157 | if test -s conftest.err; then |
---|
8158 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8159 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8160 | else |
---|
8161 | ac_cpp_err= |
---|
8162 | fi |
---|
8163 | else |
---|
8164 | ac_cpp_err=yes |
---|
8165 | fi |
---|
8166 | if test -z "$ac_cpp_err"; then |
---|
8167 | ac_header_preproc=yes |
---|
8168 | else |
---|
8169 | echo "$as_me: failed program was:" >&5 |
---|
8170 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8171 | |
---|
8172 | ac_header_preproc=no |
---|
8173 | fi |
---|
8174 | rm -f conftest.err conftest.$ac_ext |
---|
8175 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8176 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8177 | |
---|
8178 | # So? What about this header? |
---|
8179 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8180 | yes:no: ) |
---|
8181 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8182 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8183 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8184 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8185 | ac_header_preproc=yes |
---|
8186 | ;; |
---|
8187 | no:yes:* ) |
---|
8188 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8189 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8190 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8191 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8192 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8193 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8194 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8195 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8196 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8197 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8198 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8199 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8200 | ( |
---|
8201 | cat <<\_ASBOX |
---|
8202 | ## ---------------------------------------------- ## |
---|
8203 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8204 | ## ---------------------------------------------- ## |
---|
8205 | _ASBOX |
---|
8206 | ) | |
---|
8207 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8208 | ;; |
---|
8209 | esac |
---|
8210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8214 | else |
---|
8215 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8216 | fi |
---|
8217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8219 | |
---|
8220 | fi |
---|
8221 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8222 | cat >>confdefs.h <<_ACEOF |
---|
8223 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8224 | _ACEOF |
---|
8225 | |
---|
8226 | else |
---|
8227 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
8228 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
8229 | { (exit 1); exit 1; }; } |
---|
8230 | fi |
---|
8231 | |
---|
8232 | done |
---|
8233 | |
---|
8234 | HAVE_SDL=yes |
---|
8235 | # LIBS="$LIBS -framework SDL" |
---|
8236 | |
---|
8237 | # checking for SDL-headers |
---|
8238 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
8239 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
8240 | |
---|
8241 | ## checking for SDL |
---|
8242 | # SDL_VERSION=1.2.7 |
---|
8243 | # AM_PATH_SDL($SDL_VERSION, |
---|
8244 | # :, |
---|
8245 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
8246 | # ) |
---|
8247 | |
---|
8248 | |
---|
8249 | ;; |
---|
8250 | |
---|
8251 | *) |
---|
8252 | ;; |
---|
8253 | esac |
---|
8254 | |
---|
8255 | |
---|
8256 | |
---|
8257 | ################################### |
---|
8258 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
8259 | ################################### |
---|
8260 | |
---|
8261 | #---------# |
---|
8262 | # SDL_ttf # |
---|
8263 | #---------# |
---|
8264 | # checking for SDL_ttf-headers |
---|
8265 | |
---|
8266 | for ac_header in SDL_ttf.h |
---|
8267 | do |
---|
8268 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8269 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8270 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8272 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8274 | fi |
---|
8275 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8276 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8277 | else |
---|
8278 | # Is the header compilable? |
---|
8279 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8280 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8281 | cat >conftest.$ac_ext <<_ACEOF |
---|
8282 | /* confdefs.h. */ |
---|
8283 | _ACEOF |
---|
8284 | cat confdefs.h >>conftest.$ac_ext |
---|
8285 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8286 | /* end confdefs.h. */ |
---|
8287 | $ac_includes_default |
---|
8288 | #include <$ac_header> |
---|
8289 | _ACEOF |
---|
8290 | rm -f conftest.$ac_objext |
---|
8291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8292 | (eval $ac_compile) 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); } && |
---|
8299 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8300 | || test ! -s conftest.err' |
---|
8301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8302 | (eval $ac_try) 2>&5 |
---|
8303 | ac_status=$? |
---|
8304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8305 | (exit $ac_status); }; } && |
---|
8306 | { ac_try='test -s conftest.$ac_objext' |
---|
8307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8308 | (eval $ac_try) 2>&5 |
---|
8309 | ac_status=$? |
---|
8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8311 | (exit $ac_status); }; }; then |
---|
8312 | ac_header_compiler=yes |
---|
8313 | else |
---|
8314 | echo "$as_me: failed program was:" >&5 |
---|
8315 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8316 | |
---|
8317 | ac_header_compiler=no |
---|
8318 | fi |
---|
8319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8320 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8321 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8322 | |
---|
8323 | # Is the header present? |
---|
8324 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8325 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8326 | cat >conftest.$ac_ext <<_ACEOF |
---|
8327 | /* confdefs.h. */ |
---|
8328 | _ACEOF |
---|
8329 | cat confdefs.h >>conftest.$ac_ext |
---|
8330 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8331 | /* end confdefs.h. */ |
---|
8332 | #include <$ac_header> |
---|
8333 | _ACEOF |
---|
8334 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8335 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8336 | ac_status=$? |
---|
8337 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8338 | rm -f conftest.er1 |
---|
8339 | cat conftest.err >&5 |
---|
8340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8341 | (exit $ac_status); } >/dev/null; then |
---|
8342 | if test -s conftest.err; then |
---|
8343 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8344 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8345 | else |
---|
8346 | ac_cpp_err= |
---|
8347 | fi |
---|
8348 | else |
---|
8349 | ac_cpp_err=yes |
---|
8350 | fi |
---|
8351 | if test -z "$ac_cpp_err"; then |
---|
8352 | ac_header_preproc=yes |
---|
8353 | else |
---|
8354 | echo "$as_me: failed program was:" >&5 |
---|
8355 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8356 | |
---|
8357 | ac_header_preproc=no |
---|
8358 | fi |
---|
8359 | rm -f conftest.err conftest.$ac_ext |
---|
8360 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8361 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8362 | |
---|
8363 | # So? What about this header? |
---|
8364 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8365 | yes:no: ) |
---|
8366 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8367 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8369 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8370 | ac_header_preproc=yes |
---|
8371 | ;; |
---|
8372 | no:yes:* ) |
---|
8373 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8374 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8375 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8376 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8377 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8378 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8379 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8380 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8382 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8383 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8384 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8385 | ( |
---|
8386 | cat <<\_ASBOX |
---|
8387 | ## ---------------------------------------------- ## |
---|
8388 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8389 | ## ---------------------------------------------- ## |
---|
8390 | _ASBOX |
---|
8391 | ) | |
---|
8392 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8393 | ;; |
---|
8394 | esac |
---|
8395 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8396 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8397 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8399 | else |
---|
8400 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8401 | fi |
---|
8402 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8403 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8404 | |
---|
8405 | fi |
---|
8406 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8407 | cat >>confdefs.h <<_ACEOF |
---|
8408 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8409 | _ACEOF |
---|
8410 | |
---|
8411 | else |
---|
8412 | |
---|
8413 | for ac_header in SDL/SDL_ttf.h |
---|
8414 | do |
---|
8415 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8417 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8421 | fi |
---|
8422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8423 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8424 | else |
---|
8425 | # Is the header compilable? |
---|
8426 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8427 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8428 | cat >conftest.$ac_ext <<_ACEOF |
---|
8429 | /* confdefs.h. */ |
---|
8430 | _ACEOF |
---|
8431 | cat confdefs.h >>conftest.$ac_ext |
---|
8432 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8433 | /* end confdefs.h. */ |
---|
8434 | $ac_includes_default |
---|
8435 | #include <$ac_header> |
---|
8436 | _ACEOF |
---|
8437 | rm -f conftest.$ac_objext |
---|
8438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8439 | (eval $ac_compile) 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); } && |
---|
8446 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8447 | || test ! -s conftest.err' |
---|
8448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8449 | (eval $ac_try) 2>&5 |
---|
8450 | ac_status=$? |
---|
8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8452 | (exit $ac_status); }; } && |
---|
8453 | { ac_try='test -s conftest.$ac_objext' |
---|
8454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8455 | (eval $ac_try) 2>&5 |
---|
8456 | ac_status=$? |
---|
8457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8458 | (exit $ac_status); }; }; then |
---|
8459 | ac_header_compiler=yes |
---|
8460 | else |
---|
8461 | echo "$as_me: failed program was:" >&5 |
---|
8462 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8463 | |
---|
8464 | ac_header_compiler=no |
---|
8465 | fi |
---|
8466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8467 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8468 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8469 | |
---|
8470 | # Is the header present? |
---|
8471 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8472 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8473 | cat >conftest.$ac_ext <<_ACEOF |
---|
8474 | /* confdefs.h. */ |
---|
8475 | _ACEOF |
---|
8476 | cat confdefs.h >>conftest.$ac_ext |
---|
8477 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8478 | /* end confdefs.h. */ |
---|
8479 | #include <$ac_header> |
---|
8480 | _ACEOF |
---|
8481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8483 | ac_status=$? |
---|
8484 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8485 | rm -f conftest.er1 |
---|
8486 | cat conftest.err >&5 |
---|
8487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8488 | (exit $ac_status); } >/dev/null; then |
---|
8489 | if test -s conftest.err; then |
---|
8490 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8491 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8492 | else |
---|
8493 | ac_cpp_err= |
---|
8494 | fi |
---|
8495 | else |
---|
8496 | ac_cpp_err=yes |
---|
8497 | fi |
---|
8498 | if test -z "$ac_cpp_err"; then |
---|
8499 | ac_header_preproc=yes |
---|
8500 | else |
---|
8501 | echo "$as_me: failed program was:" >&5 |
---|
8502 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8503 | |
---|
8504 | ac_header_preproc=no |
---|
8505 | fi |
---|
8506 | rm -f conftest.err conftest.$ac_ext |
---|
8507 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8508 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8509 | |
---|
8510 | # So? What about this header? |
---|
8511 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8512 | yes:no: ) |
---|
8513 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8514 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8515 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8516 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8517 | ac_header_preproc=yes |
---|
8518 | ;; |
---|
8519 | no:yes:* ) |
---|
8520 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8521 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8522 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8523 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8524 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8525 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8526 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8527 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8528 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8529 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8530 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8531 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8532 | ( |
---|
8533 | cat <<\_ASBOX |
---|
8534 | ## ---------------------------------------------- ## |
---|
8535 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8536 | ## ---------------------------------------------- ## |
---|
8537 | _ASBOX |
---|
8538 | ) | |
---|
8539 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8540 | ;; |
---|
8541 | esac |
---|
8542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8546 | else |
---|
8547 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8548 | fi |
---|
8549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8551 | |
---|
8552 | fi |
---|
8553 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8554 | cat >>confdefs.h <<_ACEOF |
---|
8555 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8556 | _ACEOF |
---|
8557 | |
---|
8558 | else |
---|
8559 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
8560 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
8561 | { (exit 1); exit 1; }; } |
---|
8562 | fi |
---|
8563 | |
---|
8564 | done |
---|
8565 | |
---|
8566 | fi |
---|
8567 | |
---|
8568 | done |
---|
8569 | |
---|
8570 | # checking for SDL_ttf-lib |
---|
8571 | echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 |
---|
8572 | echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 |
---|
8573 | if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then |
---|
8574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8575 | else |
---|
8576 | ac_check_lib_save_LIBS=$LIBS |
---|
8577 | LIBS="-lSDL_ttf $LIBS" |
---|
8578 | cat >conftest.$ac_ext <<_ACEOF |
---|
8579 | /* confdefs.h. */ |
---|
8580 | _ACEOF |
---|
8581 | cat confdefs.h >>conftest.$ac_ext |
---|
8582 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8583 | /* end confdefs.h. */ |
---|
8584 | |
---|
8585 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8586 | #ifdef __cplusplus |
---|
8587 | extern "C" |
---|
8588 | #endif |
---|
8589 | /* We use char because int might match the return type of a gcc2 |
---|
8590 | builtin and then its argument prototype would still apply. */ |
---|
8591 | char TTF_OpenFont (); |
---|
8592 | int |
---|
8593 | main () |
---|
8594 | { |
---|
8595 | TTF_OpenFont (); |
---|
8596 | ; |
---|
8597 | return 0; |
---|
8598 | } |
---|
8599 | _ACEOF |
---|
8600 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8602 | (eval $ac_link) 2>conftest.er1 |
---|
8603 | ac_status=$? |
---|
8604 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8605 | rm -f conftest.er1 |
---|
8606 | cat conftest.err >&5 |
---|
8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8608 | (exit $ac_status); } && |
---|
8609 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8610 | || test ! -s conftest.err' |
---|
8611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8612 | (eval $ac_try) 2>&5 |
---|
8613 | ac_status=$? |
---|
8614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8615 | (exit $ac_status); }; } && |
---|
8616 | { ac_try='test -s conftest$ac_exeext' |
---|
8617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8618 | (eval $ac_try) 2>&5 |
---|
8619 | ac_status=$? |
---|
8620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8621 | (exit $ac_status); }; }; then |
---|
8622 | ac_cv_lib_SDL_ttf_TTF_OpenFont=yes |
---|
8623 | else |
---|
8624 | echo "$as_me: failed program was:" >&5 |
---|
8625 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8626 | |
---|
8627 | ac_cv_lib_SDL_ttf_TTF_OpenFont=no |
---|
8628 | fi |
---|
8629 | rm -f conftest.err conftest.$ac_objext \ |
---|
8630 | conftest$ac_exeext conftest.$ac_ext |
---|
8631 | LIBS=$ac_check_lib_save_LIBS |
---|
8632 | fi |
---|
8633 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 |
---|
8634 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 |
---|
8635 | if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then |
---|
8636 | FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf" |
---|
8637 | fi |
---|
8638 | |
---|
8639 | if test x$FOUND_SDL_ttf != xyes ; then |
---|
8640 | echo "------------------" |
---|
8641 | echo "SDL_ttf library not found." |
---|
8642 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
8643 | echo "------------------" |
---|
8644 | exit -1 |
---|
8645 | fi |
---|
8646 | |
---|
8647 | #-----------# |
---|
8648 | # SDL_Image # |
---|
8649 | #-----------# |
---|
8650 | # checking for SDL_image-headers |
---|
8651 | |
---|
8652 | for ac_header in SDL_image.h |
---|
8653 | do |
---|
8654 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8656 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8657 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8658 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8660 | fi |
---|
8661 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8662 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8663 | else |
---|
8664 | # Is the header compilable? |
---|
8665 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8666 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8667 | cat >conftest.$ac_ext <<_ACEOF |
---|
8668 | /* confdefs.h. */ |
---|
8669 | _ACEOF |
---|
8670 | cat confdefs.h >>conftest.$ac_ext |
---|
8671 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8672 | /* end confdefs.h. */ |
---|
8673 | $ac_includes_default |
---|
8674 | #include <$ac_header> |
---|
8675 | _ACEOF |
---|
8676 | rm -f conftest.$ac_objext |
---|
8677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8678 | (eval $ac_compile) 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); } && |
---|
8685 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8686 | || test ! -s conftest.err' |
---|
8687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8688 | (eval $ac_try) 2>&5 |
---|
8689 | ac_status=$? |
---|
8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8691 | (exit $ac_status); }; } && |
---|
8692 | { ac_try='test -s conftest.$ac_objext' |
---|
8693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8694 | (eval $ac_try) 2>&5 |
---|
8695 | ac_status=$? |
---|
8696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8697 | (exit $ac_status); }; }; then |
---|
8698 | ac_header_compiler=yes |
---|
8699 | else |
---|
8700 | echo "$as_me: failed program was:" >&5 |
---|
8701 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8702 | |
---|
8703 | ac_header_compiler=no |
---|
8704 | fi |
---|
8705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8706 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8707 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8708 | |
---|
8709 | # Is the header present? |
---|
8710 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8711 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8712 | cat >conftest.$ac_ext <<_ACEOF |
---|
8713 | /* confdefs.h. */ |
---|
8714 | _ACEOF |
---|
8715 | cat confdefs.h >>conftest.$ac_ext |
---|
8716 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8717 | /* end confdefs.h. */ |
---|
8718 | #include <$ac_header> |
---|
8719 | _ACEOF |
---|
8720 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8721 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8722 | ac_status=$? |
---|
8723 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8724 | rm -f conftest.er1 |
---|
8725 | cat conftest.err >&5 |
---|
8726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8727 | (exit $ac_status); } >/dev/null; then |
---|
8728 | if test -s conftest.err; then |
---|
8729 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8730 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8731 | else |
---|
8732 | ac_cpp_err= |
---|
8733 | fi |
---|
8734 | else |
---|
8735 | ac_cpp_err=yes |
---|
8736 | fi |
---|
8737 | if test -z "$ac_cpp_err"; then |
---|
8738 | ac_header_preproc=yes |
---|
8739 | else |
---|
8740 | echo "$as_me: failed program was:" >&5 |
---|
8741 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8742 | |
---|
8743 | ac_header_preproc=no |
---|
8744 | fi |
---|
8745 | rm -f conftest.err conftest.$ac_ext |
---|
8746 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8747 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8748 | |
---|
8749 | # So? What about this header? |
---|
8750 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8751 | yes:no: ) |
---|
8752 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8753 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8754 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8755 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8756 | ac_header_preproc=yes |
---|
8757 | ;; |
---|
8758 | no:yes:* ) |
---|
8759 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8760 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8761 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8762 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8763 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8764 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8765 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8766 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8767 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8768 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8769 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8770 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8771 | ( |
---|
8772 | cat <<\_ASBOX |
---|
8773 | ## ---------------------------------------------- ## |
---|
8774 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8775 | ## ---------------------------------------------- ## |
---|
8776 | _ASBOX |
---|
8777 | ) | |
---|
8778 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8779 | ;; |
---|
8780 | esac |
---|
8781 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8785 | else |
---|
8786 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8787 | fi |
---|
8788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8789 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8790 | |
---|
8791 | fi |
---|
8792 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8793 | cat >>confdefs.h <<_ACEOF |
---|
8794 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8795 | _ACEOF |
---|
8796 | |
---|
8797 | else |
---|
8798 | |
---|
8799 | for ac_header in SDL/SDL_image.h |
---|
8800 | do |
---|
8801 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8803 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8804 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8807 | fi |
---|
8808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8810 | else |
---|
8811 | # Is the header compilable? |
---|
8812 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8813 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8814 | cat >conftest.$ac_ext <<_ACEOF |
---|
8815 | /* confdefs.h. */ |
---|
8816 | _ACEOF |
---|
8817 | cat confdefs.h >>conftest.$ac_ext |
---|
8818 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8819 | /* end confdefs.h. */ |
---|
8820 | $ac_includes_default |
---|
8821 | #include <$ac_header> |
---|
8822 | _ACEOF |
---|
8823 | rm -f conftest.$ac_objext |
---|
8824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8825 | (eval $ac_compile) 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); } && |
---|
8832 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8833 | || test ! -s conftest.err' |
---|
8834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8835 | (eval $ac_try) 2>&5 |
---|
8836 | ac_status=$? |
---|
8837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8838 | (exit $ac_status); }; } && |
---|
8839 | { ac_try='test -s conftest.$ac_objext' |
---|
8840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8841 | (eval $ac_try) 2>&5 |
---|
8842 | ac_status=$? |
---|
8843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8844 | (exit $ac_status); }; }; then |
---|
8845 | ac_header_compiler=yes |
---|
8846 | else |
---|
8847 | echo "$as_me: failed program was:" >&5 |
---|
8848 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8849 | |
---|
8850 | ac_header_compiler=no |
---|
8851 | fi |
---|
8852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8854 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8855 | |
---|
8856 | # Is the header present? |
---|
8857 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8858 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8859 | cat >conftest.$ac_ext <<_ACEOF |
---|
8860 | /* confdefs.h. */ |
---|
8861 | _ACEOF |
---|
8862 | cat confdefs.h >>conftest.$ac_ext |
---|
8863 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8864 | /* end confdefs.h. */ |
---|
8865 | #include <$ac_header> |
---|
8866 | _ACEOF |
---|
8867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8869 | ac_status=$? |
---|
8870 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8871 | rm -f conftest.er1 |
---|
8872 | cat conftest.err >&5 |
---|
8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8874 | (exit $ac_status); } >/dev/null; then |
---|
8875 | if test -s conftest.err; then |
---|
8876 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8878 | else |
---|
8879 | ac_cpp_err= |
---|
8880 | fi |
---|
8881 | else |
---|
8882 | ac_cpp_err=yes |
---|
8883 | fi |
---|
8884 | if test -z "$ac_cpp_err"; then |
---|
8885 | ac_header_preproc=yes |
---|
8886 | else |
---|
8887 | echo "$as_me: failed program was:" >&5 |
---|
8888 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8889 | |
---|
8890 | ac_header_preproc=no |
---|
8891 | fi |
---|
8892 | rm -f conftest.err conftest.$ac_ext |
---|
8893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8894 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8895 | |
---|
8896 | # So? What about this header? |
---|
8897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8898 | yes:no: ) |
---|
8899 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8900 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8901 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8902 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8903 | ac_header_preproc=yes |
---|
8904 | ;; |
---|
8905 | no:yes:* ) |
---|
8906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8910 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8911 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8912 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8913 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8916 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8917 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8918 | ( |
---|
8919 | cat <<\_ASBOX |
---|
8920 | ## ---------------------------------------------- ## |
---|
8921 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8922 | ## ---------------------------------------------- ## |
---|
8923 | _ASBOX |
---|
8924 | ) | |
---|
8925 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8926 | ;; |
---|
8927 | esac |
---|
8928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8932 | else |
---|
8933 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8934 | fi |
---|
8935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8937 | |
---|
8938 | fi |
---|
8939 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8940 | cat >>confdefs.h <<_ACEOF |
---|
8941 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8942 | _ACEOF |
---|
8943 | |
---|
8944 | else |
---|
8945 | { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 |
---|
8946 | echo "$as_me: error: SDL_image header not found." >&2;} |
---|
8947 | { (exit 1); exit 1; }; } |
---|
8948 | fi |
---|
8949 | |
---|
8950 | done |
---|
8951 | |
---|
8952 | fi |
---|
8953 | |
---|
8954 | done |
---|
8955 | |
---|
8956 | # checking for SDL_image-lib |
---|
8957 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
8958 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
8959 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
8960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8961 | else |
---|
8962 | ac_check_lib_save_LIBS=$LIBS |
---|
8963 | LIBS="-lSDL_image $LIBS" |
---|
8964 | cat >conftest.$ac_ext <<_ACEOF |
---|
8965 | /* confdefs.h. */ |
---|
8966 | _ACEOF |
---|
8967 | cat confdefs.h >>conftest.$ac_ext |
---|
8968 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8969 | /* end confdefs.h. */ |
---|
8970 | |
---|
8971 | |
---|
8972 | int |
---|
8973 | main () |
---|
8974 | { |
---|
8975 | main (); |
---|
8976 | ; |
---|
8977 | return 0; |
---|
8978 | } |
---|
8979 | _ACEOF |
---|
8980 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8982 | (eval $ac_link) 2>conftest.er1 |
---|
8983 | ac_status=$? |
---|
8984 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8985 | rm -f conftest.er1 |
---|
8986 | cat conftest.err >&5 |
---|
8987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8988 | (exit $ac_status); } && |
---|
8989 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8990 | || test ! -s conftest.err' |
---|
8991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8992 | (eval $ac_try) 2>&5 |
---|
8993 | ac_status=$? |
---|
8994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8995 | (exit $ac_status); }; } && |
---|
8996 | { ac_try='test -s conftest$ac_exeext' |
---|
8997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8998 | (eval $ac_try) 2>&5 |
---|
8999 | ac_status=$? |
---|
9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9001 | (exit $ac_status); }; }; then |
---|
9002 | ac_cv_lib_SDL_image_main=yes |
---|
9003 | else |
---|
9004 | echo "$as_me: failed program was:" >&5 |
---|
9005 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9006 | |
---|
9007 | ac_cv_lib_SDL_image_main=no |
---|
9008 | fi |
---|
9009 | rm -f conftest.err conftest.$ac_objext \ |
---|
9010 | conftest$ac_exeext conftest.$ac_ext |
---|
9011 | LIBS=$ac_check_lib_save_LIBS |
---|
9012 | fi |
---|
9013 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
9014 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
9015 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
9016 | FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image" |
---|
9017 | fi |
---|
9018 | |
---|
9019 | if test x$FOUND_SDL_image != xyes ; then |
---|
9020 | echo "------------------" |
---|
9021 | echo "SDL_image library not found." |
---|
9022 | echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/" |
---|
9023 | echo "------------------" |
---|
9024 | exit -1 |
---|
9025 | fi |
---|
9026 | |
---|
9027 | #-----# |
---|
9028 | # ogg # |
---|
9029 | #-----# |
---|
9030 | # checking for ogg-headers |
---|
9031 | |
---|
9032 | for ac_header in ogg/ogg.h |
---|
9033 | do |
---|
9034 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9035 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9036 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9040 | fi |
---|
9041 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9042 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9043 | else |
---|
9044 | # Is the header compilable? |
---|
9045 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9046 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9047 | cat >conftest.$ac_ext <<_ACEOF |
---|
9048 | /* confdefs.h. */ |
---|
9049 | _ACEOF |
---|
9050 | cat confdefs.h >>conftest.$ac_ext |
---|
9051 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9052 | /* end confdefs.h. */ |
---|
9053 | $ac_includes_default |
---|
9054 | #include <$ac_header> |
---|
9055 | _ACEOF |
---|
9056 | rm -f conftest.$ac_objext |
---|
9057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9058 | (eval $ac_compile) 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); } && |
---|
9065 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9066 | || test ! -s conftest.err' |
---|
9067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9068 | (eval $ac_try) 2>&5 |
---|
9069 | ac_status=$? |
---|
9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9071 | (exit $ac_status); }; } && |
---|
9072 | { ac_try='test -s conftest.$ac_objext' |
---|
9073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9074 | (eval $ac_try) 2>&5 |
---|
9075 | ac_status=$? |
---|
9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9077 | (exit $ac_status); }; }; then |
---|
9078 | ac_header_compiler=yes |
---|
9079 | else |
---|
9080 | echo "$as_me: failed program was:" >&5 |
---|
9081 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9082 | |
---|
9083 | ac_header_compiler=no |
---|
9084 | fi |
---|
9085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9086 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9087 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9088 | |
---|
9089 | # Is the header present? |
---|
9090 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9091 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9092 | cat >conftest.$ac_ext <<_ACEOF |
---|
9093 | /* confdefs.h. */ |
---|
9094 | _ACEOF |
---|
9095 | cat confdefs.h >>conftest.$ac_ext |
---|
9096 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9097 | /* end confdefs.h. */ |
---|
9098 | #include <$ac_header> |
---|
9099 | _ACEOF |
---|
9100 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9101 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9102 | ac_status=$? |
---|
9103 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9104 | rm -f conftest.er1 |
---|
9105 | cat conftest.err >&5 |
---|
9106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9107 | (exit $ac_status); } >/dev/null; then |
---|
9108 | if test -s conftest.err; then |
---|
9109 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9110 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9111 | else |
---|
9112 | ac_cpp_err= |
---|
9113 | fi |
---|
9114 | else |
---|
9115 | ac_cpp_err=yes |
---|
9116 | fi |
---|
9117 | if test -z "$ac_cpp_err"; then |
---|
9118 | ac_header_preproc=yes |
---|
9119 | else |
---|
9120 | echo "$as_me: failed program was:" >&5 |
---|
9121 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9122 | |
---|
9123 | ac_header_preproc=no |
---|
9124 | fi |
---|
9125 | rm -f conftest.err conftest.$ac_ext |
---|
9126 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9127 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9128 | |
---|
9129 | # So? What about this header? |
---|
9130 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9131 | yes:no: ) |
---|
9132 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9133 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9135 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9136 | ac_header_preproc=yes |
---|
9137 | ;; |
---|
9138 | no:yes:* ) |
---|
9139 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9140 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9141 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9142 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9143 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9144 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9145 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9146 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9148 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9149 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9150 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9151 | ( |
---|
9152 | cat <<\_ASBOX |
---|
9153 | ## ---------------------------------------------- ## |
---|
9154 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9155 | ## ---------------------------------------------- ## |
---|
9156 | _ASBOX |
---|
9157 | ) | |
---|
9158 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9159 | ;; |
---|
9160 | esac |
---|
9161 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9165 | else |
---|
9166 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9167 | fi |
---|
9168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9169 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9170 | |
---|
9171 | fi |
---|
9172 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9173 | cat >>confdefs.h <<_ACEOF |
---|
9174 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9175 | _ACEOF |
---|
9176 | |
---|
9177 | else |
---|
9178 | { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5 |
---|
9179 | echo "$as_me: error: cannot find ogg header." >&2;} |
---|
9180 | { (exit 1); exit 1; }; } |
---|
9181 | fi |
---|
9182 | |
---|
9183 | done |
---|
9184 | |
---|
9185 | # checking for ogg-lib |
---|
9186 | echo "$as_me:$LINENO: checking for main in -logg" >&5 |
---|
9187 | echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 |
---|
9188 | if test "${ac_cv_lib_ogg_main+set}" = set; then |
---|
9189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9190 | else |
---|
9191 | ac_check_lib_save_LIBS=$LIBS |
---|
9192 | LIBS="-logg $LIBS" |
---|
9193 | cat >conftest.$ac_ext <<_ACEOF |
---|
9194 | /* confdefs.h. */ |
---|
9195 | _ACEOF |
---|
9196 | cat confdefs.h >>conftest.$ac_ext |
---|
9197 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9198 | /* end confdefs.h. */ |
---|
9199 | |
---|
9200 | |
---|
9201 | int |
---|
9202 | main () |
---|
9203 | { |
---|
9204 | main (); |
---|
9205 | ; |
---|
9206 | return 0; |
---|
9207 | } |
---|
9208 | _ACEOF |
---|
9209 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9211 | (eval $ac_link) 2>conftest.er1 |
---|
9212 | ac_status=$? |
---|
9213 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9214 | rm -f conftest.er1 |
---|
9215 | cat conftest.err >&5 |
---|
9216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9217 | (exit $ac_status); } && |
---|
9218 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9219 | || test ! -s conftest.err' |
---|
9220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9221 | (eval $ac_try) 2>&5 |
---|
9222 | ac_status=$? |
---|
9223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9224 | (exit $ac_status); }; } && |
---|
9225 | { ac_try='test -s conftest$ac_exeext' |
---|
9226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9227 | (eval $ac_try) 2>&5 |
---|
9228 | ac_status=$? |
---|
9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9230 | (exit $ac_status); }; }; then |
---|
9231 | ac_cv_lib_ogg_main=yes |
---|
9232 | else |
---|
9233 | echo "$as_me: failed program was:" >&5 |
---|
9234 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9235 | |
---|
9236 | ac_cv_lib_ogg_main=no |
---|
9237 | fi |
---|
9238 | rm -f conftest.err conftest.$ac_objext \ |
---|
9239 | conftest$ac_exeext conftest.$ac_ext |
---|
9240 | LIBS=$ac_check_lib_save_LIBS |
---|
9241 | fi |
---|
9242 | echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 |
---|
9243 | echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 |
---|
9244 | if test $ac_cv_lib_ogg_main = yes; then |
---|
9245 | FOUND_ogg=yes; LIBS="$LIBS -logg" |
---|
9246 | fi |
---|
9247 | |
---|
9248 | if test x$FOUND_ogg != xyes ; then |
---|
9249 | echo "------------------" |
---|
9250 | echo "ogg library not found." |
---|
9251 | echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
9252 | echo "------------------" |
---|
9253 | exit -1 |
---|
9254 | fi |
---|
9255 | |
---|
9256 | #--------# |
---|
9257 | # vorbis # |
---|
9258 | #--------# |
---|
9259 | # checking for vorbis-lib |
---|
9260 | echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 |
---|
9261 | echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 |
---|
9262 | if test "${ac_cv_lib_vorbis_main+set}" = set; then |
---|
9263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9264 | else |
---|
9265 | ac_check_lib_save_LIBS=$LIBS |
---|
9266 | LIBS="-lvorbis $LIBS" |
---|
9267 | cat >conftest.$ac_ext <<_ACEOF |
---|
9268 | /* confdefs.h. */ |
---|
9269 | _ACEOF |
---|
9270 | cat confdefs.h >>conftest.$ac_ext |
---|
9271 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9272 | /* end confdefs.h. */ |
---|
9273 | |
---|
9274 | |
---|
9275 | int |
---|
9276 | main () |
---|
9277 | { |
---|
9278 | main (); |
---|
9279 | ; |
---|
9280 | return 0; |
---|
9281 | } |
---|
9282 | _ACEOF |
---|
9283 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9285 | (eval $ac_link) 2>conftest.er1 |
---|
9286 | ac_status=$? |
---|
9287 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9288 | rm -f conftest.er1 |
---|
9289 | cat conftest.err >&5 |
---|
9290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9291 | (exit $ac_status); } && |
---|
9292 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9293 | || test ! -s conftest.err' |
---|
9294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9295 | (eval $ac_try) 2>&5 |
---|
9296 | ac_status=$? |
---|
9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9298 | (exit $ac_status); }; } && |
---|
9299 | { ac_try='test -s conftest$ac_exeext' |
---|
9300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9301 | (eval $ac_try) 2>&5 |
---|
9302 | ac_status=$? |
---|
9303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9304 | (exit $ac_status); }; }; then |
---|
9305 | ac_cv_lib_vorbis_main=yes |
---|
9306 | else |
---|
9307 | echo "$as_me: failed program was:" >&5 |
---|
9308 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9309 | |
---|
9310 | ac_cv_lib_vorbis_main=no |
---|
9311 | fi |
---|
9312 | rm -f conftest.err conftest.$ac_objext \ |
---|
9313 | conftest$ac_exeext conftest.$ac_ext |
---|
9314 | LIBS=$ac_check_lib_save_LIBS |
---|
9315 | fi |
---|
9316 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 |
---|
9317 | echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 |
---|
9318 | if test $ac_cv_lib_vorbis_main = yes; then |
---|
9319 | FOUND_vorbis=yes; LIBS="$LIBS -lvorbis" |
---|
9320 | fi |
---|
9321 | |
---|
9322 | if test x$FOUND_vorbis != xyes ; then |
---|
9323 | echo "------------------" |
---|
9324 | echo "vorbis library not found." |
---|
9325 | echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
9326 | echo "------------------" |
---|
9327 | exit -1 |
---|
9328 | fi |
---|
9329 | |
---|
9330 | #------------# |
---|
9331 | # vorbisfile # |
---|
9332 | #------------# |
---|
9333 | # checking for vorbis-headers |
---|
9334 | |
---|
9335 | for ac_header in vorbis/vorbisfile.h |
---|
9336 | do |
---|
9337 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9338 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9339 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9340 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9343 | fi |
---|
9344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9345 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9346 | else |
---|
9347 | # Is the header compilable? |
---|
9348 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9349 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9350 | cat >conftest.$ac_ext <<_ACEOF |
---|
9351 | /* confdefs.h. */ |
---|
9352 | _ACEOF |
---|
9353 | cat confdefs.h >>conftest.$ac_ext |
---|
9354 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9355 | /* end confdefs.h. */ |
---|
9356 | $ac_includes_default |
---|
9357 | #include <$ac_header> |
---|
9358 | _ACEOF |
---|
9359 | rm -f conftest.$ac_objext |
---|
9360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9361 | (eval $ac_compile) 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); } && |
---|
9368 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9369 | || test ! -s conftest.err' |
---|
9370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9371 | (eval $ac_try) 2>&5 |
---|
9372 | ac_status=$? |
---|
9373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9374 | (exit $ac_status); }; } && |
---|
9375 | { ac_try='test -s conftest.$ac_objext' |
---|
9376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9377 | (eval $ac_try) 2>&5 |
---|
9378 | ac_status=$? |
---|
9379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9380 | (exit $ac_status); }; }; then |
---|
9381 | ac_header_compiler=yes |
---|
9382 | else |
---|
9383 | echo "$as_me: failed program was:" >&5 |
---|
9384 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9385 | |
---|
9386 | ac_header_compiler=no |
---|
9387 | fi |
---|
9388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9389 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9390 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9391 | |
---|
9392 | # Is the header present? |
---|
9393 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9394 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9395 | cat >conftest.$ac_ext <<_ACEOF |
---|
9396 | /* confdefs.h. */ |
---|
9397 | _ACEOF |
---|
9398 | cat confdefs.h >>conftest.$ac_ext |
---|
9399 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9400 | /* end confdefs.h. */ |
---|
9401 | #include <$ac_header> |
---|
9402 | _ACEOF |
---|
9403 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9404 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9405 | ac_status=$? |
---|
9406 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9407 | rm -f conftest.er1 |
---|
9408 | cat conftest.err >&5 |
---|
9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9410 | (exit $ac_status); } >/dev/null; then |
---|
9411 | if test -s conftest.err; then |
---|
9412 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9413 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9414 | else |
---|
9415 | ac_cpp_err= |
---|
9416 | fi |
---|
9417 | else |
---|
9418 | ac_cpp_err=yes |
---|
9419 | fi |
---|
9420 | if test -z "$ac_cpp_err"; then |
---|
9421 | ac_header_preproc=yes |
---|
9422 | else |
---|
9423 | echo "$as_me: failed program was:" >&5 |
---|
9424 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9425 | |
---|
9426 | ac_header_preproc=no |
---|
9427 | fi |
---|
9428 | rm -f conftest.err conftest.$ac_ext |
---|
9429 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9430 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9431 | |
---|
9432 | # So? What about this header? |
---|
9433 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9434 | yes:no: ) |
---|
9435 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9436 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9437 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9438 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9439 | ac_header_preproc=yes |
---|
9440 | ;; |
---|
9441 | no:yes:* ) |
---|
9442 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9443 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9444 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9445 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9446 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9447 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9448 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9449 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9450 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9451 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9452 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9453 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9454 | ( |
---|
9455 | cat <<\_ASBOX |
---|
9456 | ## ---------------------------------------------- ## |
---|
9457 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9458 | ## ---------------------------------------------- ## |
---|
9459 | _ASBOX |
---|
9460 | ) | |
---|
9461 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9462 | ;; |
---|
9463 | esac |
---|
9464 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9465 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9466 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9468 | else |
---|
9469 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9470 | fi |
---|
9471 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9472 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9473 | |
---|
9474 | fi |
---|
9475 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9476 | cat >>confdefs.h <<_ACEOF |
---|
9477 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9478 | _ACEOF |
---|
9479 | |
---|
9480 | else |
---|
9481 | { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 |
---|
9482 | echo "$as_me: error: cannot find vorbisfile header." >&2;} |
---|
9483 | { (exit 1); exit 1; }; } |
---|
9484 | fi |
---|
9485 | |
---|
9486 | done |
---|
9487 | |
---|
9488 | # checking for vorbisfile-lib |
---|
9489 | echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 |
---|
9490 | echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 |
---|
9491 | if test "${ac_cv_lib_vorbisfile_main+set}" = set; then |
---|
9492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9493 | else |
---|
9494 | ac_check_lib_save_LIBS=$LIBS |
---|
9495 | LIBS="-lvorbisfile $LIBS" |
---|
9496 | cat >conftest.$ac_ext <<_ACEOF |
---|
9497 | /* confdefs.h. */ |
---|
9498 | _ACEOF |
---|
9499 | cat confdefs.h >>conftest.$ac_ext |
---|
9500 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9501 | /* end confdefs.h. */ |
---|
9502 | |
---|
9503 | |
---|
9504 | int |
---|
9505 | main () |
---|
9506 | { |
---|
9507 | main (); |
---|
9508 | ; |
---|
9509 | return 0; |
---|
9510 | } |
---|
9511 | _ACEOF |
---|
9512 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9514 | (eval $ac_link) 2>conftest.er1 |
---|
9515 | ac_status=$? |
---|
9516 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9517 | rm -f conftest.er1 |
---|
9518 | cat conftest.err >&5 |
---|
9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9520 | (exit $ac_status); } && |
---|
9521 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9522 | || test ! -s conftest.err' |
---|
9523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9524 | (eval $ac_try) 2>&5 |
---|
9525 | ac_status=$? |
---|
9526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9527 | (exit $ac_status); }; } && |
---|
9528 | { ac_try='test -s conftest$ac_exeext' |
---|
9529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9530 | (eval $ac_try) 2>&5 |
---|
9531 | ac_status=$? |
---|
9532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9533 | (exit $ac_status); }; }; then |
---|
9534 | ac_cv_lib_vorbisfile_main=yes |
---|
9535 | else |
---|
9536 | echo "$as_me: failed program was:" >&5 |
---|
9537 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9538 | |
---|
9539 | ac_cv_lib_vorbisfile_main=no |
---|
9540 | fi |
---|
9541 | rm -f conftest.err conftest.$ac_objext \ |
---|
9542 | conftest$ac_exeext conftest.$ac_ext |
---|
9543 | LIBS=$ac_check_lib_save_LIBS |
---|
9544 | fi |
---|
9545 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 |
---|
9546 | echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 |
---|
9547 | if test $ac_cv_lib_vorbisfile_main = yes; then |
---|
9548 | FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile" |
---|
9549 | fi |
---|
9550 | |
---|
9551 | if test x$FOUND_vorbisfile != xyes ; then |
---|
9552 | echo "------------------" |
---|
9553 | echo "vorbisfile library not found." |
---|
9554 | echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
9555 | echo "------------------" |
---|
9556 | exit -1 |
---|
9557 | fi |
---|
9558 | |
---|
9559 | |
---|
9560 | #---------# |
---|
9561 | # libcURL # |
---|
9562 | #---------# |
---|
9563 | if test x$def_curl = xyes; then |
---|
9564 | |
---|
9565 | for ac_header in curl/curl.h |
---|
9566 | do |
---|
9567 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9568 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9569 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9573 | fi |
---|
9574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9575 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9576 | else |
---|
9577 | # Is the header compilable? |
---|
9578 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9579 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9580 | cat >conftest.$ac_ext <<_ACEOF |
---|
9581 | /* confdefs.h. */ |
---|
9582 | _ACEOF |
---|
9583 | cat confdefs.h >>conftest.$ac_ext |
---|
9584 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9585 | /* end confdefs.h. */ |
---|
9586 | $ac_includes_default |
---|
9587 | #include <$ac_header> |
---|
9588 | _ACEOF |
---|
9589 | rm -f conftest.$ac_objext |
---|
9590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9591 | (eval $ac_compile) 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); } && |
---|
9598 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9599 | || test ! -s conftest.err' |
---|
9600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9601 | (eval $ac_try) 2>&5 |
---|
9602 | ac_status=$? |
---|
9603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9604 | (exit $ac_status); }; } && |
---|
9605 | { ac_try='test -s conftest.$ac_objext' |
---|
9606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9607 | (eval $ac_try) 2>&5 |
---|
9608 | ac_status=$? |
---|
9609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9610 | (exit $ac_status); }; }; then |
---|
9611 | ac_header_compiler=yes |
---|
9612 | else |
---|
9613 | echo "$as_me: failed program was:" >&5 |
---|
9614 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9615 | |
---|
9616 | ac_header_compiler=no |
---|
9617 | fi |
---|
9618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9619 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9620 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9621 | |
---|
9622 | # Is the header present? |
---|
9623 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9624 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9625 | cat >conftest.$ac_ext <<_ACEOF |
---|
9626 | /* confdefs.h. */ |
---|
9627 | _ACEOF |
---|
9628 | cat confdefs.h >>conftest.$ac_ext |
---|
9629 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9630 | /* end confdefs.h. */ |
---|
9631 | #include <$ac_header> |
---|
9632 | _ACEOF |
---|
9633 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9634 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9635 | ac_status=$? |
---|
9636 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9637 | rm -f conftest.er1 |
---|
9638 | cat conftest.err >&5 |
---|
9639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9640 | (exit $ac_status); } >/dev/null; then |
---|
9641 | if test -s conftest.err; then |
---|
9642 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9643 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9644 | else |
---|
9645 | ac_cpp_err= |
---|
9646 | fi |
---|
9647 | else |
---|
9648 | ac_cpp_err=yes |
---|
9649 | fi |
---|
9650 | if test -z "$ac_cpp_err"; then |
---|
9651 | ac_header_preproc=yes |
---|
9652 | else |
---|
9653 | echo "$as_me: failed program was:" >&5 |
---|
9654 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9655 | |
---|
9656 | ac_header_preproc=no |
---|
9657 | fi |
---|
9658 | rm -f conftest.err conftest.$ac_ext |
---|
9659 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9660 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9661 | |
---|
9662 | # So? What about this header? |
---|
9663 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9664 | yes:no: ) |
---|
9665 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9666 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9667 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9668 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9669 | ac_header_preproc=yes |
---|
9670 | ;; |
---|
9671 | no:yes:* ) |
---|
9672 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9673 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9674 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9675 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9676 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9677 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9678 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9679 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9680 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9681 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9682 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9683 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9684 | ( |
---|
9685 | cat <<\_ASBOX |
---|
9686 | ## ---------------------------------------------- ## |
---|
9687 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9688 | ## ---------------------------------------------- ## |
---|
9689 | _ASBOX |
---|
9690 | ) | |
---|
9691 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9692 | ;; |
---|
9693 | esac |
---|
9694 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9698 | else |
---|
9699 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9700 | fi |
---|
9701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9702 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9703 | |
---|
9704 | fi |
---|
9705 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9706 | cat >>confdefs.h <<_ACEOF |
---|
9707 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9708 | _ACEOF |
---|
9709 | curlHeader=yes |
---|
9710 | else |
---|
9711 | curlHeader=no |
---|
9712 | fi |
---|
9713 | |
---|
9714 | done |
---|
9715 | |
---|
9716 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
9717 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
9718 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
9719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9720 | else |
---|
9721 | ac_check_lib_save_LIBS=$LIBS |
---|
9722 | LIBS="-lcurl $LIBS" |
---|
9723 | cat >conftest.$ac_ext <<_ACEOF |
---|
9724 | /* confdefs.h. */ |
---|
9725 | _ACEOF |
---|
9726 | cat confdefs.h >>conftest.$ac_ext |
---|
9727 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9728 | /* end confdefs.h. */ |
---|
9729 | |
---|
9730 | |
---|
9731 | int |
---|
9732 | main () |
---|
9733 | { |
---|
9734 | main (); |
---|
9735 | ; |
---|
9736 | return 0; |
---|
9737 | } |
---|
9738 | _ACEOF |
---|
9739 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9741 | (eval $ac_link) 2>conftest.er1 |
---|
9742 | ac_status=$? |
---|
9743 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9744 | rm -f conftest.er1 |
---|
9745 | cat conftest.err >&5 |
---|
9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9747 | (exit $ac_status); } && |
---|
9748 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9749 | || test ! -s conftest.err' |
---|
9750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9751 | (eval $ac_try) 2>&5 |
---|
9752 | ac_status=$? |
---|
9753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9754 | (exit $ac_status); }; } && |
---|
9755 | { ac_try='test -s conftest$ac_exeext' |
---|
9756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9757 | (eval $ac_try) 2>&5 |
---|
9758 | ac_status=$? |
---|
9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9760 | (exit $ac_status); }; }; then |
---|
9761 | ac_cv_lib_curl_main=yes |
---|
9762 | else |
---|
9763 | echo "$as_me: failed program was:" >&5 |
---|
9764 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9765 | |
---|
9766 | ac_cv_lib_curl_main=no |
---|
9767 | fi |
---|
9768 | rm -f conftest.err conftest.$ac_objext \ |
---|
9769 | conftest$ac_exeext conftest.$ac_ext |
---|
9770 | LIBS=$ac_check_lib_save_LIBS |
---|
9771 | fi |
---|
9772 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
9773 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
9774 | if test $ac_cv_lib_curl_main = yes; then |
---|
9775 | FOUND_curl=yes |
---|
9776 | fi |
---|
9777 | |
---|
9778 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
9779 | have_curl=yes |
---|
9780 | CURL_LIBS=`curl-config --libs` |
---|
9781 | CURLCFLAGS=`curl-config --cflags` |
---|
9782 | |
---|
9783 | cat >>confdefs.h <<_ACEOF |
---|
9784 | #define HAVE_CURL 1 |
---|
9785 | _ACEOF |
---|
9786 | |
---|
9787 | else |
---|
9788 | have_curl=no |
---|
9789 | fi |
---|
9790 | |
---|
9791 | fi |
---|
9792 | |
---|
9793 | |
---|
9794 | |
---|
9795 | |
---|
9796 | if test x$have_curl = xyes; then |
---|
9797 | HAVE_CURL_TRUE= |
---|
9798 | HAVE_CURL_FALSE='#' |
---|
9799 | else |
---|
9800 | HAVE_CURL_TRUE='#' |
---|
9801 | HAVE_CURL_FALSE= |
---|
9802 | fi |
---|
9803 | |
---|
9804 | |
---|
9805 | #--------# |
---|
9806 | # efence # |
---|
9807 | #--------# |
---|
9808 | if test x$def_efence = xyes ; then |
---|
9809 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
9810 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
9811 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
9812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9813 | else |
---|
9814 | ac_check_lib_save_LIBS=$LIBS |
---|
9815 | LIBS="-lefence $LIBS" |
---|
9816 | cat >conftest.$ac_ext <<_ACEOF |
---|
9817 | /* confdefs.h. */ |
---|
9818 | _ACEOF |
---|
9819 | cat confdefs.h >>conftest.$ac_ext |
---|
9820 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9821 | /* end confdefs.h. */ |
---|
9822 | |
---|
9823 | |
---|
9824 | int |
---|
9825 | main () |
---|
9826 | { |
---|
9827 | main (); |
---|
9828 | ; |
---|
9829 | return 0; |
---|
9830 | } |
---|
9831 | _ACEOF |
---|
9832 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9834 | (eval $ac_link) 2>conftest.er1 |
---|
9835 | ac_status=$? |
---|
9836 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9837 | rm -f conftest.er1 |
---|
9838 | cat conftest.err >&5 |
---|
9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9840 | (exit $ac_status); } && |
---|
9841 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9842 | || test ! -s conftest.err' |
---|
9843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9844 | (eval $ac_try) 2>&5 |
---|
9845 | ac_status=$? |
---|
9846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9847 | (exit $ac_status); }; } && |
---|
9848 | { ac_try='test -s conftest$ac_exeext' |
---|
9849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9850 | (eval $ac_try) 2>&5 |
---|
9851 | ac_status=$? |
---|
9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9853 | (exit $ac_status); }; }; then |
---|
9854 | ac_cv_lib_efence_main=yes |
---|
9855 | else |
---|
9856 | echo "$as_me: failed program was:" >&5 |
---|
9857 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9858 | |
---|
9859 | ac_cv_lib_efence_main=no |
---|
9860 | fi |
---|
9861 | rm -f conftest.err conftest.$ac_objext \ |
---|
9862 | conftest$ac_exeext conftest.$ac_ext |
---|
9863 | LIBS=$ac_check_lib_save_LIBS |
---|
9864 | fi |
---|
9865 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
9866 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
9867 | if test $ac_cv_lib_efence_main = yes; then |
---|
9868 | FOUND_efence=yes; LIBS="$LIBS -lefence" |
---|
9869 | fi |
---|
9870 | |
---|
9871 | if test x$FOUND_efence != xyes ; then |
---|
9872 | echo "efence was requested, but is not installed!! going on" |
---|
9873 | fi |
---|
9874 | |
---|
9875 | fi |
---|
9876 | |
---|
9877 | #-----# |
---|
9878 | # GTK # |
---|
9879 | #-----# |
---|
9880 | if test x$def_gtk = xyes; then |
---|
9881 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
9882 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
9883 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
9884 | if `$PKG_CONFIG --exists gtk+-2.0`; then |
---|
9885 | echo "yes" |
---|
9886 | have_gtk2=yes |
---|
9887 | GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
---|
9888 | GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
---|
9889 | |
---|
9890 | cat >>confdefs.h <<_ACEOF |
---|
9891 | #define HAVE_GTK2 1 |
---|
9892 | _ACEOF |
---|
9893 | |
---|
9894 | if test $DEBUG -ge 3; then |
---|
9895 | echo "cflags: $GTK2_CFLAGS" |
---|
9896 | echo "libs: $GTK2_LIBS" |
---|
9897 | fi |
---|
9898 | else |
---|
9899 | echo "no" |
---|
9900 | fi |
---|
9901 | |
---|
9902 | fi |
---|
9903 | |
---|
9904 | |
---|
9905 | |
---|
9906 | |
---|
9907 | if test x$have_gtk2 = xyes; then |
---|
9908 | HAVE_GTK2_TRUE= |
---|
9909 | HAVE_GTK2_FALSE='#' |
---|
9910 | else |
---|
9911 | HAVE_GTK2_TRUE='#' |
---|
9912 | HAVE_GTK2_FALSE= |
---|
9913 | fi |
---|
9914 | |
---|
9915 | |
---|
9916 | |
---|
9917 | # FIXME: Replace `main' with a function in `-lm': |
---|
9918 | |
---|
9919 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
9920 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
9921 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
9922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9923 | else |
---|
9924 | ac_check_lib_save_LIBS=$LIBS |
---|
9925 | LIBS="-lm $LIBS" |
---|
9926 | cat >conftest.$ac_ext <<_ACEOF |
---|
9927 | /* confdefs.h. */ |
---|
9928 | _ACEOF |
---|
9929 | cat confdefs.h >>conftest.$ac_ext |
---|
9930 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9931 | /* end confdefs.h. */ |
---|
9932 | |
---|
9933 | |
---|
9934 | int |
---|
9935 | main () |
---|
9936 | { |
---|
9937 | main (); |
---|
9938 | ; |
---|
9939 | return 0; |
---|
9940 | } |
---|
9941 | _ACEOF |
---|
9942 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9944 | (eval $ac_link) 2>conftest.er1 |
---|
9945 | ac_status=$? |
---|
9946 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9947 | rm -f conftest.er1 |
---|
9948 | cat conftest.err >&5 |
---|
9949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9950 | (exit $ac_status); } && |
---|
9951 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9952 | || test ! -s conftest.err' |
---|
9953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9954 | (eval $ac_try) 2>&5 |
---|
9955 | ac_status=$? |
---|
9956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9957 | (exit $ac_status); }; } && |
---|
9958 | { ac_try='test -s conftest$ac_exeext' |
---|
9959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9960 | (eval $ac_try) 2>&5 |
---|
9961 | ac_status=$? |
---|
9962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9963 | (exit $ac_status); }; }; then |
---|
9964 | ac_cv_lib_m_main=yes |
---|
9965 | else |
---|
9966 | echo "$as_me: failed program was:" >&5 |
---|
9967 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9968 | |
---|
9969 | ac_cv_lib_m_main=no |
---|
9970 | fi |
---|
9971 | rm -f conftest.err conftest.$ac_objext \ |
---|
9972 | conftest$ac_exeext conftest.$ac_ext |
---|
9973 | LIBS=$ac_check_lib_save_LIBS |
---|
9974 | fi |
---|
9975 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
9976 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
9977 | if test $ac_cv_lib_m_main = yes; then |
---|
9978 | cat >>confdefs.h <<_ACEOF |
---|
9979 | #define HAVE_LIBM 1 |
---|
9980 | _ACEOF |
---|
9981 | |
---|
9982 | LIBS="-lm $LIBS" |
---|
9983 | |
---|
9984 | fi |
---|
9985 | |
---|
9986 | |
---|
9987 | |
---|
9988 | # Checks for header files. |
---|
9989 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
9990 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
9991 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
9992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9993 | else |
---|
9994 | cat >conftest.$ac_ext <<_ACEOF |
---|
9995 | /* confdefs.h. */ |
---|
9996 | _ACEOF |
---|
9997 | cat confdefs.h >>conftest.$ac_ext |
---|
9998 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9999 | /* end confdefs.h. */ |
---|
10000 | #include <stdlib.h> |
---|
10001 | #include <stdarg.h> |
---|
10002 | #include <string.h> |
---|
10003 | #include <float.h> |
---|
10004 | |
---|
10005 | int |
---|
10006 | main () |
---|
10007 | { |
---|
10008 | |
---|
10009 | ; |
---|
10010 | return 0; |
---|
10011 | } |
---|
10012 | _ACEOF |
---|
10013 | rm -f conftest.$ac_objext |
---|
10014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10015 | (eval $ac_compile) 2>conftest.er1 |
---|
10016 | ac_status=$? |
---|
10017 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10018 | rm -f conftest.er1 |
---|
10019 | cat conftest.err >&5 |
---|
10020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10021 | (exit $ac_status); } && |
---|
10022 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10023 | || test ! -s conftest.err' |
---|
10024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10025 | (eval $ac_try) 2>&5 |
---|
10026 | ac_status=$? |
---|
10027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10028 | (exit $ac_status); }; } && |
---|
10029 | { ac_try='test -s conftest.$ac_objext' |
---|
10030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10031 | (eval $ac_try) 2>&5 |
---|
10032 | ac_status=$? |
---|
10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10034 | (exit $ac_status); }; }; then |
---|
10035 | ac_cv_header_stdc=yes |
---|
10036 | else |
---|
10037 | echo "$as_me: failed program was:" >&5 |
---|
10038 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10039 | |
---|
10040 | ac_cv_header_stdc=no |
---|
10041 | fi |
---|
10042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10043 | |
---|
10044 | if test $ac_cv_header_stdc = yes; then |
---|
10045 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
10046 | cat >conftest.$ac_ext <<_ACEOF |
---|
10047 | /* confdefs.h. */ |
---|
10048 | _ACEOF |
---|
10049 | cat confdefs.h >>conftest.$ac_ext |
---|
10050 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10051 | /* end confdefs.h. */ |
---|
10052 | #include <string.h> |
---|
10053 | |
---|
10054 | _ACEOF |
---|
10055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
10056 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
10057 | : |
---|
10058 | else |
---|
10059 | ac_cv_header_stdc=no |
---|
10060 | fi |
---|
10061 | rm -f conftest* |
---|
10062 | |
---|
10063 | fi |
---|
10064 | |
---|
10065 | if test $ac_cv_header_stdc = yes; then |
---|
10066 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
10067 | cat >conftest.$ac_ext <<_ACEOF |
---|
10068 | /* confdefs.h. */ |
---|
10069 | _ACEOF |
---|
10070 | cat confdefs.h >>conftest.$ac_ext |
---|
10071 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10072 | /* end confdefs.h. */ |
---|
10073 | #include <stdlib.h> |
---|
10074 | |
---|
10075 | _ACEOF |
---|
10076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
10077 | $EGREP "free" >/dev/null 2>&1; then |
---|
10078 | : |
---|
10079 | else |
---|
10080 | ac_cv_header_stdc=no |
---|
10081 | fi |
---|
10082 | rm -f conftest* |
---|
10083 | |
---|
10084 | fi |
---|
10085 | |
---|
10086 | if test $ac_cv_header_stdc = yes; then |
---|
10087 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
10088 | if test "$cross_compiling" = yes; then |
---|
10089 | : |
---|
10090 | else |
---|
10091 | cat >conftest.$ac_ext <<_ACEOF |
---|
10092 | /* confdefs.h. */ |
---|
10093 | _ACEOF |
---|
10094 | cat confdefs.h >>conftest.$ac_ext |
---|
10095 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10096 | /* end confdefs.h. */ |
---|
10097 | #include <ctype.h> |
---|
10098 | #if ((' ' & 0x0FF) == 0x020) |
---|
10099 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
10100 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
10101 | #else |
---|
10102 | # define ISLOWER(c) \ |
---|
10103 | (('a' <= (c) && (c) <= 'i') \ |
---|
10104 | || ('j' <= (c) && (c) <= 'r') \ |
---|
10105 | || ('s' <= (c) && (c) <= 'z')) |
---|
10106 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
10107 | #endif |
---|
10108 | |
---|
10109 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
10110 | int |
---|
10111 | main () |
---|
10112 | { |
---|
10113 | int i; |
---|
10114 | for (i = 0; i < 256; i++) |
---|
10115 | if (XOR (islower (i), ISLOWER (i)) |
---|
10116 | || toupper (i) != TOUPPER (i)) |
---|
10117 | exit(2); |
---|
10118 | exit (0); |
---|
10119 | } |
---|
10120 | _ACEOF |
---|
10121 | rm -f conftest$ac_exeext |
---|
10122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10123 | (eval $ac_link) 2>&5 |
---|
10124 | ac_status=$? |
---|
10125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10126 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
10127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10128 | (eval $ac_try) 2>&5 |
---|
10129 | ac_status=$? |
---|
10130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10131 | (exit $ac_status); }; }; then |
---|
10132 | : |
---|
10133 | else |
---|
10134 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
10135 | echo "$as_me: failed program was:" >&5 |
---|
10136 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10137 | |
---|
10138 | ( exit $ac_status ) |
---|
10139 | ac_cv_header_stdc=no |
---|
10140 | fi |
---|
10141 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
10142 | fi |
---|
10143 | fi |
---|
10144 | fi |
---|
10145 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
10146 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
10147 | if test $ac_cv_header_stdc = yes; then |
---|
10148 | |
---|
10149 | cat >>confdefs.h <<\_ACEOF |
---|
10150 | #define STDC_HEADERS 1 |
---|
10151 | _ACEOF |
---|
10152 | |
---|
10153 | fi |
---|
10154 | |
---|
10155 | |
---|
10156 | |
---|
10157 | for ac_header in stdlib.h string.h |
---|
10158 | do |
---|
10159 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10160 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10161 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10165 | fi |
---|
10166 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10167 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10168 | else |
---|
10169 | # Is the header compilable? |
---|
10170 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
10171 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
10172 | cat >conftest.$ac_ext <<_ACEOF |
---|
10173 | /* confdefs.h. */ |
---|
10174 | _ACEOF |
---|
10175 | cat confdefs.h >>conftest.$ac_ext |
---|
10176 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10177 | /* end confdefs.h. */ |
---|
10178 | $ac_includes_default |
---|
10179 | #include <$ac_header> |
---|
10180 | _ACEOF |
---|
10181 | rm -f conftest.$ac_objext |
---|
10182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10183 | (eval $ac_compile) 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); } && |
---|
10190 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10191 | || test ! -s conftest.err' |
---|
10192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10193 | (eval $ac_try) 2>&5 |
---|
10194 | ac_status=$? |
---|
10195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10196 | (exit $ac_status); }; } && |
---|
10197 | { ac_try='test -s conftest.$ac_objext' |
---|
10198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10199 | (eval $ac_try) 2>&5 |
---|
10200 | ac_status=$? |
---|
10201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10202 | (exit $ac_status); }; }; then |
---|
10203 | ac_header_compiler=yes |
---|
10204 | else |
---|
10205 | echo "$as_me: failed program was:" >&5 |
---|
10206 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10207 | |
---|
10208 | ac_header_compiler=no |
---|
10209 | fi |
---|
10210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10211 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
10212 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
10213 | |
---|
10214 | # Is the header present? |
---|
10215 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
10216 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
10217 | cat >conftest.$ac_ext <<_ACEOF |
---|
10218 | /* confdefs.h. */ |
---|
10219 | _ACEOF |
---|
10220 | cat confdefs.h >>conftest.$ac_ext |
---|
10221 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10222 | /* end confdefs.h. */ |
---|
10223 | #include <$ac_header> |
---|
10224 | _ACEOF |
---|
10225 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10226 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10227 | ac_status=$? |
---|
10228 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10229 | rm -f conftest.er1 |
---|
10230 | cat conftest.err >&5 |
---|
10231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10232 | (exit $ac_status); } >/dev/null; then |
---|
10233 | if test -s conftest.err; then |
---|
10234 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10235 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10236 | else |
---|
10237 | ac_cpp_err= |
---|
10238 | fi |
---|
10239 | else |
---|
10240 | ac_cpp_err=yes |
---|
10241 | fi |
---|
10242 | if test -z "$ac_cpp_err"; then |
---|
10243 | ac_header_preproc=yes |
---|
10244 | else |
---|
10245 | echo "$as_me: failed program was:" >&5 |
---|
10246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10247 | |
---|
10248 | ac_header_preproc=no |
---|
10249 | fi |
---|
10250 | rm -f conftest.err conftest.$ac_ext |
---|
10251 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
10252 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
10253 | |
---|
10254 | # So? What about this header? |
---|
10255 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
10256 | yes:no: ) |
---|
10257 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
10258 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
10259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
10260 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
10261 | ac_header_preproc=yes |
---|
10262 | ;; |
---|
10263 | no:yes:* ) |
---|
10264 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
10265 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
10266 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
10267 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
10268 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
10269 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
10270 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
10271 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
10272 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
10273 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
10274 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
10275 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
10276 | ( |
---|
10277 | cat <<\_ASBOX |
---|
10278 | ## ---------------------------------------------- ## |
---|
10279 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
10280 | ## ---------------------------------------------- ## |
---|
10281 | _ASBOX |
---|
10282 | ) | |
---|
10283 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
10284 | ;; |
---|
10285 | esac |
---|
10286 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10287 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10288 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10290 | else |
---|
10291 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
10292 | fi |
---|
10293 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10294 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10295 | |
---|
10296 | fi |
---|
10297 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10298 | cat >>confdefs.h <<_ACEOF |
---|
10299 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10300 | _ACEOF |
---|
10301 | |
---|
10302 | fi |
---|
10303 | |
---|
10304 | done |
---|
10305 | |
---|
10306 | |
---|
10307 | # Checks for typedefs, structures, and compiler characteristics. |
---|
10308 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
10309 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
10310 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
10311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10312 | else |
---|
10313 | cat >conftest.$ac_ext <<_ACEOF |
---|
10314 | /* confdefs.h. */ |
---|
10315 | _ACEOF |
---|
10316 | cat confdefs.h >>conftest.$ac_ext |
---|
10317 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10318 | /* end confdefs.h. */ |
---|
10319 | |
---|
10320 | #include <stdbool.h> |
---|
10321 | #ifndef bool |
---|
10322 | # error bool is not defined |
---|
10323 | #endif |
---|
10324 | #ifndef false |
---|
10325 | # error false is not defined |
---|
10326 | #endif |
---|
10327 | #if false |
---|
10328 | # error false is not 0 |
---|
10329 | #endif |
---|
10330 | #ifndef true |
---|
10331 | # error true is not defined |
---|
10332 | #endif |
---|
10333 | #if true != 1 |
---|
10334 | # error true is not 1 |
---|
10335 | #endif |
---|
10336 | #ifndef __bool_true_false_are_defined |
---|
10337 | # error __bool_true_false_are_defined is not defined |
---|
10338 | #endif |
---|
10339 | |
---|
10340 | struct s { _Bool s: 1; _Bool t; } s; |
---|
10341 | |
---|
10342 | char a[true == 1 ? 1 : -1]; |
---|
10343 | char b[false == 0 ? 1 : -1]; |
---|
10344 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
10345 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
10346 | bool e = &s; |
---|
10347 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
10348 | char g[true]; |
---|
10349 | char h[sizeof (_Bool)]; |
---|
10350 | char i[sizeof s.t]; |
---|
10351 | |
---|
10352 | int |
---|
10353 | main () |
---|
10354 | { |
---|
10355 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
10356 | ; |
---|
10357 | return 0; |
---|
10358 | } |
---|
10359 | _ACEOF |
---|
10360 | rm -f conftest.$ac_objext |
---|
10361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10362 | (eval $ac_compile) 2>conftest.er1 |
---|
10363 | ac_status=$? |
---|
10364 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10365 | rm -f conftest.er1 |
---|
10366 | cat conftest.err >&5 |
---|
10367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10368 | (exit $ac_status); } && |
---|
10369 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10370 | || test ! -s conftest.err' |
---|
10371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10372 | (eval $ac_try) 2>&5 |
---|
10373 | ac_status=$? |
---|
10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10375 | (exit $ac_status); }; } && |
---|
10376 | { ac_try='test -s conftest.$ac_objext' |
---|
10377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10378 | (eval $ac_try) 2>&5 |
---|
10379 | ac_status=$? |
---|
10380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10381 | (exit $ac_status); }; }; then |
---|
10382 | ac_cv_header_stdbool_h=yes |
---|
10383 | else |
---|
10384 | echo "$as_me: failed program was:" >&5 |
---|
10385 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10386 | |
---|
10387 | ac_cv_header_stdbool_h=no |
---|
10388 | fi |
---|
10389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10390 | fi |
---|
10391 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
10392 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
10393 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
10394 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
10395 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
10396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10397 | else |
---|
10398 | cat >conftest.$ac_ext <<_ACEOF |
---|
10399 | /* confdefs.h. */ |
---|
10400 | _ACEOF |
---|
10401 | cat confdefs.h >>conftest.$ac_ext |
---|
10402 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10403 | /* end confdefs.h. */ |
---|
10404 | $ac_includes_default |
---|
10405 | int |
---|
10406 | main () |
---|
10407 | { |
---|
10408 | if ((_Bool *) 0) |
---|
10409 | return 0; |
---|
10410 | if (sizeof (_Bool)) |
---|
10411 | return 0; |
---|
10412 | ; |
---|
10413 | return 0; |
---|
10414 | } |
---|
10415 | _ACEOF |
---|
10416 | rm -f conftest.$ac_objext |
---|
10417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10418 | (eval $ac_compile) 2>conftest.er1 |
---|
10419 | ac_status=$? |
---|
10420 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10421 | rm -f conftest.er1 |
---|
10422 | cat conftest.err >&5 |
---|
10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10424 | (exit $ac_status); } && |
---|
10425 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10426 | || test ! -s conftest.err' |
---|
10427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10428 | (eval $ac_try) 2>&5 |
---|
10429 | ac_status=$? |
---|
10430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10431 | (exit $ac_status); }; } && |
---|
10432 | { ac_try='test -s conftest.$ac_objext' |
---|
10433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10434 | (eval $ac_try) 2>&5 |
---|
10435 | ac_status=$? |
---|
10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10437 | (exit $ac_status); }; }; then |
---|
10438 | ac_cv_type__Bool=yes |
---|
10439 | else |
---|
10440 | echo "$as_me: failed program was:" >&5 |
---|
10441 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10442 | |
---|
10443 | ac_cv_type__Bool=no |
---|
10444 | fi |
---|
10445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10446 | fi |
---|
10447 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
10448 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
10449 | if test $ac_cv_type__Bool = yes; then |
---|
10450 | |
---|
10451 | cat >>confdefs.h <<_ACEOF |
---|
10452 | #define HAVE__BOOL 1 |
---|
10453 | _ACEOF |
---|
10454 | |
---|
10455 | |
---|
10456 | fi |
---|
10457 | |
---|
10458 | if test $ac_cv_header_stdbool_h = yes; then |
---|
10459 | |
---|
10460 | cat >>confdefs.h <<\_ACEOF |
---|
10461 | #define HAVE_STDBOOL_H 1 |
---|
10462 | _ACEOF |
---|
10463 | |
---|
10464 | fi |
---|
10465 | |
---|
10466 | |
---|
10467 | # Checks for library functions. |
---|
10468 | |
---|
10469 | for ac_header in stdlib.h |
---|
10470 | do |
---|
10471 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10472 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10473 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10474 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10475 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10477 | fi |
---|
10478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10479 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10480 | else |
---|
10481 | # Is the header compilable? |
---|
10482 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
10483 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
10484 | cat >conftest.$ac_ext <<_ACEOF |
---|
10485 | /* confdefs.h. */ |
---|
10486 | _ACEOF |
---|
10487 | cat confdefs.h >>conftest.$ac_ext |
---|
10488 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10489 | /* end confdefs.h. */ |
---|
10490 | $ac_includes_default |
---|
10491 | #include <$ac_header> |
---|
10492 | _ACEOF |
---|
10493 | rm -f conftest.$ac_objext |
---|
10494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
10495 | (eval $ac_compile) 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); } && |
---|
10502 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10503 | || test ! -s conftest.err' |
---|
10504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10505 | (eval $ac_try) 2>&5 |
---|
10506 | ac_status=$? |
---|
10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10508 | (exit $ac_status); }; } && |
---|
10509 | { ac_try='test -s conftest.$ac_objext' |
---|
10510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10511 | (eval $ac_try) 2>&5 |
---|
10512 | ac_status=$? |
---|
10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10514 | (exit $ac_status); }; }; then |
---|
10515 | ac_header_compiler=yes |
---|
10516 | else |
---|
10517 | echo "$as_me: failed program was:" >&5 |
---|
10518 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10519 | |
---|
10520 | ac_header_compiler=no |
---|
10521 | fi |
---|
10522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10523 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
10524 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
10525 | |
---|
10526 | # Is the header present? |
---|
10527 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
10528 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
10529 | cat >conftest.$ac_ext <<_ACEOF |
---|
10530 | /* confdefs.h. */ |
---|
10531 | _ACEOF |
---|
10532 | cat confdefs.h >>conftest.$ac_ext |
---|
10533 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10534 | /* end confdefs.h. */ |
---|
10535 | #include <$ac_header> |
---|
10536 | _ACEOF |
---|
10537 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
10538 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
10539 | ac_status=$? |
---|
10540 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10541 | rm -f conftest.er1 |
---|
10542 | cat conftest.err >&5 |
---|
10543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10544 | (exit $ac_status); } >/dev/null; then |
---|
10545 | if test -s conftest.err; then |
---|
10546 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
10547 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
10548 | else |
---|
10549 | ac_cpp_err= |
---|
10550 | fi |
---|
10551 | else |
---|
10552 | ac_cpp_err=yes |
---|
10553 | fi |
---|
10554 | if test -z "$ac_cpp_err"; then |
---|
10555 | ac_header_preproc=yes |
---|
10556 | else |
---|
10557 | echo "$as_me: failed program was:" >&5 |
---|
10558 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10559 | |
---|
10560 | ac_header_preproc=no |
---|
10561 | fi |
---|
10562 | rm -f conftest.err conftest.$ac_ext |
---|
10563 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
10564 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
10565 | |
---|
10566 | # So? What about this header? |
---|
10567 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
10568 | yes:no: ) |
---|
10569 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
10570 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
10571 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
10572 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
10573 | ac_header_preproc=yes |
---|
10574 | ;; |
---|
10575 | no:yes:* ) |
---|
10576 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
10577 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
10578 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
10579 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
10580 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
10581 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
10582 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
10583 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
10584 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
10585 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
10586 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
10587 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
10588 | ( |
---|
10589 | cat <<\_ASBOX |
---|
10590 | ## ---------------------------------------------- ## |
---|
10591 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
10592 | ## ---------------------------------------------- ## |
---|
10593 | _ASBOX |
---|
10594 | ) | |
---|
10595 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
10596 | ;; |
---|
10597 | esac |
---|
10598 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
10600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
10601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10602 | else |
---|
10603 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
10604 | fi |
---|
10605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
10606 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
10607 | |
---|
10608 | fi |
---|
10609 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10610 | cat >>confdefs.h <<_ACEOF |
---|
10611 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10612 | _ACEOF |
---|
10613 | |
---|
10614 | fi |
---|
10615 | |
---|
10616 | done |
---|
10617 | |
---|
10618 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
10619 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
10620 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
10621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10622 | else |
---|
10623 | if test "$cross_compiling" = yes; then |
---|
10624 | ac_cv_func_malloc_0_nonnull=no |
---|
10625 | else |
---|
10626 | cat >conftest.$ac_ext <<_ACEOF |
---|
10627 | /* confdefs.h. */ |
---|
10628 | _ACEOF |
---|
10629 | cat confdefs.h >>conftest.$ac_ext |
---|
10630 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10631 | /* end confdefs.h. */ |
---|
10632 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
10633 | # include <stdlib.h> |
---|
10634 | #else |
---|
10635 | char *malloc (); |
---|
10636 | #endif |
---|
10637 | |
---|
10638 | int |
---|
10639 | main () |
---|
10640 | { |
---|
10641 | exit (malloc (0) ? 0 : 1); |
---|
10642 | ; |
---|
10643 | return 0; |
---|
10644 | } |
---|
10645 | _ACEOF |
---|
10646 | rm -f conftest$ac_exeext |
---|
10647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10648 | (eval $ac_link) 2>&5 |
---|
10649 | ac_status=$? |
---|
10650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10651 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
10652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10653 | (eval $ac_try) 2>&5 |
---|
10654 | ac_status=$? |
---|
10655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10656 | (exit $ac_status); }; }; then |
---|
10657 | ac_cv_func_malloc_0_nonnull=yes |
---|
10658 | else |
---|
10659 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
10660 | echo "$as_me: failed program was:" >&5 |
---|
10661 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10662 | |
---|
10663 | ( exit $ac_status ) |
---|
10664 | ac_cv_func_malloc_0_nonnull=no |
---|
10665 | fi |
---|
10666 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
10667 | fi |
---|
10668 | fi |
---|
10669 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
10670 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
10671 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
10672 | |
---|
10673 | cat >>confdefs.h <<\_ACEOF |
---|
10674 | #define HAVE_MALLOC 1 |
---|
10675 | _ACEOF |
---|
10676 | |
---|
10677 | else |
---|
10678 | cat >>confdefs.h <<\_ACEOF |
---|
10679 | #define HAVE_MALLOC 0 |
---|
10680 | _ACEOF |
---|
10681 | |
---|
10682 | case $LIBOBJS in |
---|
10683 | "malloc.$ac_objext" | \ |
---|
10684 | *" malloc.$ac_objext" | \ |
---|
10685 | "malloc.$ac_objext "* | \ |
---|
10686 | *" malloc.$ac_objext "* ) ;; |
---|
10687 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
10688 | esac |
---|
10689 | |
---|
10690 | |
---|
10691 | cat >>confdefs.h <<\_ACEOF |
---|
10692 | #define malloc rpl_malloc |
---|
10693 | _ACEOF |
---|
10694 | |
---|
10695 | fi |
---|
10696 | |
---|
10697 | |
---|
10698 | |
---|
10699 | |
---|
10700 | |
---|
10701 | for ac_func in bzero sqrt |
---|
10702 | do |
---|
10703 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
10704 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
10705 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
10706 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
10707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10708 | else |
---|
10709 | cat >conftest.$ac_ext <<_ACEOF |
---|
10710 | /* confdefs.h. */ |
---|
10711 | _ACEOF |
---|
10712 | cat confdefs.h >>conftest.$ac_ext |
---|
10713 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10714 | /* end confdefs.h. */ |
---|
10715 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
10716 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10717 | #define $ac_func innocuous_$ac_func |
---|
10718 | |
---|
10719 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10720 | which can conflict with char $ac_func (); below. |
---|
10721 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10722 | <limits.h> exists even on freestanding compilers. */ |
---|
10723 | |
---|
10724 | #ifdef __STDC__ |
---|
10725 | # include <limits.h> |
---|
10726 | #else |
---|
10727 | # include <assert.h> |
---|
10728 | #endif |
---|
10729 | |
---|
10730 | #undef $ac_func |
---|
10731 | |
---|
10732 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10733 | #ifdef __cplusplus |
---|
10734 | extern "C" |
---|
10735 | { |
---|
10736 | #endif |
---|
10737 | /* We use char because int might match the return type of a gcc2 |
---|
10738 | builtin and then its argument prototype would still apply. */ |
---|
10739 | char $ac_func (); |
---|
10740 | /* The GNU C library defines this for functions which it implements |
---|
10741 | to always fail with ENOSYS. Some functions are actually named |
---|
10742 | something starting with __ and the normal name is an alias. */ |
---|
10743 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
10744 | choke me |
---|
10745 | #else |
---|
10746 | char (*f) () = $ac_func; |
---|
10747 | #endif |
---|
10748 | #ifdef __cplusplus |
---|
10749 | } |
---|
10750 | #endif |
---|
10751 | |
---|
10752 | int |
---|
10753 | main () |
---|
10754 | { |
---|
10755 | return f != $ac_func; |
---|
10756 | ; |
---|
10757 | return 0; |
---|
10758 | } |
---|
10759 | _ACEOF |
---|
10760 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10762 | (eval $ac_link) 2>conftest.er1 |
---|
10763 | ac_status=$? |
---|
10764 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10765 | rm -f conftest.er1 |
---|
10766 | cat conftest.err >&5 |
---|
10767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10768 | (exit $ac_status); } && |
---|
10769 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10770 | || test ! -s conftest.err' |
---|
10771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10772 | (eval $ac_try) 2>&5 |
---|
10773 | ac_status=$? |
---|
10774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10775 | (exit $ac_status); }; } && |
---|
10776 | { ac_try='test -s conftest$ac_exeext' |
---|
10777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10778 | (eval $ac_try) 2>&5 |
---|
10779 | ac_status=$? |
---|
10780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10781 | (exit $ac_status); }; }; then |
---|
10782 | eval "$as_ac_var=yes" |
---|
10783 | else |
---|
10784 | echo "$as_me: failed program was:" >&5 |
---|
10785 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10786 | |
---|
10787 | eval "$as_ac_var=no" |
---|
10788 | fi |
---|
10789 | rm -f conftest.err conftest.$ac_objext \ |
---|
10790 | conftest$ac_exeext conftest.$ac_ext |
---|
10791 | fi |
---|
10792 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
10793 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
10794 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
10795 | cat >>confdefs.h <<_ACEOF |
---|
10796 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
10797 | _ACEOF |
---|
10798 | |
---|
10799 | fi |
---|
10800 | done |
---|
10801 | |
---|
10802 | |
---|
10803 | ###################### |
---|
10804 | ## OUTPUT CONFIGURE ## |
---|
10805 | ###################### |
---|
10806 | 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" |
---|
10807 | |
---|
10808 | |
---|
10809 | cat >confcache <<\_ACEOF |
---|
10810 | # This file is a shell script that caches the results of configure |
---|
10811 | # tests run on this system so they can be shared between configure |
---|
10812 | # scripts and configure runs, see configure's option --config-cache. |
---|
10813 | # It is not useful on other systems. If it contains results you don't |
---|
10814 | # want to keep, you may remove or edit it. |
---|
10815 | # |
---|
10816 | # config.status only pays attention to the cache file if you give it |
---|
10817 | # the --recheck option to rerun configure. |
---|
10818 | # |
---|
10819 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
10820 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
10821 | # following values. |
---|
10822 | |
---|
10823 | _ACEOF |
---|
10824 | |
---|
10825 | # The following way of writing the cache mishandles newlines in values, |
---|
10826 | # but we know of no workaround that is simple, portable, and efficient. |
---|
10827 | # So, don't put newlines in cache variables' values. |
---|
10828 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
10829 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
10830 | { |
---|
10831 | (set) 2>&1 | |
---|
10832 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
10833 | *ac_space=\ *) |
---|
10834 | # `set' does not quote correctly, so add quotes (double-quote |
---|
10835 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
10836 | sed -n \ |
---|
10837 | "s/'/'\\\\''/g; |
---|
10838 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
10839 | ;; |
---|
10840 | *) |
---|
10841 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
10842 | sed -n \ |
---|
10843 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
10844 | ;; |
---|
10845 | esac; |
---|
10846 | } | |
---|
10847 | sed ' |
---|
10848 | t clear |
---|
10849 | : clear |
---|
10850 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
10851 | t end |
---|
10852 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
10853 | : end' >>confcache |
---|
10854 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
10855 | if test -w $cache_file; then |
---|
10856 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
10857 | cat confcache >$cache_file |
---|
10858 | else |
---|
10859 | echo "not updating unwritable cache $cache_file" |
---|
10860 | fi |
---|
10861 | fi |
---|
10862 | rm -f confcache |
---|
10863 | |
---|
10864 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
10865 | # Let make expand exec_prefix. |
---|
10866 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
10867 | |
---|
10868 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
10869 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
10870 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
10871 | # (actually we leave an empty line to preserve line numbers). |
---|
10872 | if test "x$srcdir" = x.; then |
---|
10873 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
10874 | s/:*\$(srcdir):*/:/; |
---|
10875 | s/:*\${srcdir}:*/:/; |
---|
10876 | s/:*@srcdir@:*/:/; |
---|
10877 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
10878 | s/:*$//; |
---|
10879 | s/^[^=]*=[ ]*$//; |
---|
10880 | }' |
---|
10881 | fi |
---|
10882 | |
---|
10883 | DEFS=-DHAVE_CONFIG_H |
---|
10884 | |
---|
10885 | ac_libobjs= |
---|
10886 | ac_ltlibobjs= |
---|
10887 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
10888 | # 1. Remove the extension, and $U if already installed. |
---|
10889 | ac_i=`echo "$ac_i" | |
---|
10890 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
10891 | # 2. Add them. |
---|
10892 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
10893 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
10894 | done |
---|
10895 | LIBOBJS=$ac_libobjs |
---|
10896 | |
---|
10897 | LTLIBOBJS=$ac_ltlibobjs |
---|
10898 | |
---|
10899 | |
---|
10900 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
10901 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
10902 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10903 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
10904 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10905 | { (exit 1); exit 1; }; } |
---|
10906 | fi |
---|
10907 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
10908 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
10909 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10910 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
10911 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10912 | { (exit 1); exit 1; }; } |
---|
10913 | fi |
---|
10914 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
10915 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
10916 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10917 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
10918 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10919 | { (exit 1); exit 1; }; } |
---|
10920 | fi |
---|
10921 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
10922 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
10923 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10924 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
10925 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10926 | { (exit 1); exit 1; }; } |
---|
10927 | fi |
---|
10928 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
10929 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
10930 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10931 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
10932 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10933 | { (exit 1); exit 1; }; } |
---|
10934 | fi |
---|
10935 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
10936 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
10937 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10938 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
10939 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10940 | { (exit 1); exit 1; }; } |
---|
10941 | fi |
---|
10942 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
10943 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
10944 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10945 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
10946 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10947 | { (exit 1); exit 1; }; } |
---|
10948 | fi |
---|
10949 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
10950 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
10951 | Usually this means the macro was only invoked conditionally." >&5 |
---|
10952 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
10953 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
10954 | { (exit 1); exit 1; }; } |
---|
10955 | fi |
---|
10956 | |
---|
10957 | : ${CONFIG_STATUS=./config.status} |
---|
10958 | ac_clean_files_save=$ac_clean_files |
---|
10959 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
10960 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
10961 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
10962 | cat >$CONFIG_STATUS <<_ACEOF |
---|
10963 | #! $SHELL |
---|
10964 | # Generated by $as_me. |
---|
10965 | # Run this file to recreate the current configuration. |
---|
10966 | # Compiler output produced by configure, useful for debugging |
---|
10967 | # configure, is in config.log if it exists. |
---|
10968 | |
---|
10969 | debug=false |
---|
10970 | ac_cs_recheck=false |
---|
10971 | ac_cs_silent=false |
---|
10972 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
10973 | _ACEOF |
---|
10974 | |
---|
10975 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10976 | ## --------------------- ## |
---|
10977 | ## M4sh Initialization. ## |
---|
10978 | ## --------------------- ## |
---|
10979 | |
---|
10980 | # Be Bourne compatible |
---|
10981 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
10982 | emulate sh |
---|
10983 | NULLCMD=: |
---|
10984 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
10985 | # is contrary to our usage. Disable this feature. |
---|
10986 | alias -g '${1+"$@"}'='"$@"' |
---|
10987 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
10988 | set -o posix |
---|
10989 | fi |
---|
10990 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
10991 | |
---|
10992 | # Support unset when possible. |
---|
10993 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
10994 | as_unset=unset |
---|
10995 | else |
---|
10996 | as_unset=false |
---|
10997 | fi |
---|
10998 | |
---|
10999 | |
---|
11000 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
11001 | $as_unset ENV MAIL MAILPATH |
---|
11002 | PS1='$ ' |
---|
11003 | PS2='> ' |
---|
11004 | PS4='+ ' |
---|
11005 | |
---|
11006 | # NLS nuisances. |
---|
11007 | for as_var in \ |
---|
11008 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
11009 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
11010 | LC_TELEPHONE LC_TIME |
---|
11011 | do |
---|
11012 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
11013 | eval $as_var=C; export $as_var |
---|
11014 | else |
---|
11015 | $as_unset $as_var |
---|
11016 | fi |
---|
11017 | done |
---|
11018 | |
---|
11019 | # Required to use basename. |
---|
11020 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
11021 | as_expr=expr |
---|
11022 | else |
---|
11023 | as_expr=false |
---|
11024 | fi |
---|
11025 | |
---|
11026 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
11027 | as_basename=basename |
---|
11028 | else |
---|
11029 | as_basename=false |
---|
11030 | fi |
---|
11031 | |
---|
11032 | |
---|
11033 | # Name of the executable. |
---|
11034 | as_me=`$as_basename "$0" || |
---|
11035 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
11036 | X"$0" : 'X\(//\)$' \| \ |
---|
11037 | X"$0" : 'X\(/\)$' \| \ |
---|
11038 | . : '\(.\)' 2>/dev/null || |
---|
11039 | echo X/"$0" | |
---|
11040 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
11041 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
11042 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
11043 | s/.*/./; q'` |
---|
11044 | |
---|
11045 | |
---|
11046 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
11047 | # Avoid depending upon Character Ranges. |
---|
11048 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
11049 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
11050 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
11051 | as_cr_digits='0123456789' |
---|
11052 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
11053 | |
---|
11054 | # The user is always right. |
---|
11055 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
11056 | echo "#! /bin/sh" >conf$$.sh |
---|
11057 | echo "exit 0" >>conf$$.sh |
---|
11058 | chmod +x conf$$.sh |
---|
11059 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
11060 | PATH_SEPARATOR=';' |
---|
11061 | else |
---|
11062 | PATH_SEPARATOR=: |
---|
11063 | fi |
---|
11064 | rm -f conf$$.sh |
---|
11065 | fi |
---|
11066 | |
---|
11067 | |
---|
11068 | as_lineno_1=$LINENO |
---|
11069 | as_lineno_2=$LINENO |
---|
11070 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
11071 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
11072 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
11073 | # Find who we are. Look in the path if we contain no path at all |
---|
11074 | # relative or not. |
---|
11075 | case $0 in |
---|
11076 | *[\\/]* ) as_myself=$0 ;; |
---|
11077 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
11078 | for as_dir in $PATH |
---|
11079 | do |
---|
11080 | IFS=$as_save_IFS |
---|
11081 | test -z "$as_dir" && as_dir=. |
---|
11082 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
11083 | done |
---|
11084 | |
---|
11085 | ;; |
---|
11086 | esac |
---|
11087 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
11088 | # in which case we are not to be found in the path. |
---|
11089 | if test "x$as_myself" = x; then |
---|
11090 | as_myself=$0 |
---|
11091 | fi |
---|
11092 | if test ! -f "$as_myself"; then |
---|
11093 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
11094 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
11095 | { (exit 1); exit 1; }; } |
---|
11096 | fi |
---|
11097 | case $CONFIG_SHELL in |
---|
11098 | '') |
---|
11099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
11100 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
11101 | do |
---|
11102 | IFS=$as_save_IFS |
---|
11103 | test -z "$as_dir" && as_dir=. |
---|
11104 | for as_base in sh bash ksh sh5; do |
---|
11105 | case $as_dir in |
---|
11106 | /*) |
---|
11107 | if ("$as_dir/$as_base" -c ' |
---|
11108 | as_lineno_1=$LINENO |
---|
11109 | as_lineno_2=$LINENO |
---|
11110 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
11111 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
11112 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
11113 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
11114 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
11115 | CONFIG_SHELL=$as_dir/$as_base |
---|
11116 | export CONFIG_SHELL |
---|
11117 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
11118 | fi;; |
---|
11119 | esac |
---|
11120 | done |
---|
11121 | done |
---|
11122 | ;; |
---|
11123 | esac |
---|
11124 | |
---|
11125 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
11126 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
11127 | # line-number line before each line; the second 'sed' does the real |
---|
11128 | # work. The second script uses 'N' to pair each line-number line |
---|
11129 | # with the numbered line, and appends trailing '-' during |
---|
11130 | # substitution so that $LINENO is not a special case at line end. |
---|
11131 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
11132 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
11133 | sed '=' <$as_myself | |
---|
11134 | sed ' |
---|
11135 | N |
---|
11136 | s,$,-, |
---|
11137 | : loop |
---|
11138 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
11139 | t loop |
---|
11140 | s,-$,, |
---|
11141 | s,^['$as_cr_digits']*\n,, |
---|
11142 | ' >$as_me.lineno && |
---|
11143 | chmod +x $as_me.lineno || |
---|
11144 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
11145 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
11146 | { (exit 1); exit 1; }; } |
---|
11147 | |
---|
11148 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
11149 | # (the dirname of $[0] is not the place where we might find the |
---|
11150 | # original and so on. Autoconf is especially sensible to this). |
---|
11151 | . ./$as_me.lineno |
---|
11152 | # Exit status is that of the last command. |
---|
11153 | exit |
---|
11154 | } |
---|
11155 | |
---|
11156 | |
---|
11157 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
11158 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
11159 | ' ECHO_T=' ' ;; |
---|
11160 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
11161 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
11162 | esac |
---|
11163 | |
---|
11164 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
11165 | as_expr=expr |
---|
11166 | else |
---|
11167 | as_expr=false |
---|
11168 | fi |
---|
11169 | |
---|
11170 | rm -f conf$$ conf$$.exe conf$$.file |
---|
11171 | echo >conf$$.file |
---|
11172 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
11173 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
11174 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
11175 | if test -f conf$$.exe; then |
---|
11176 | # Don't use ln at all; we don't have any links |
---|
11177 | as_ln_s='cp -p' |
---|
11178 | else |
---|
11179 | as_ln_s='ln -s' |
---|
11180 | fi |
---|
11181 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
11182 | as_ln_s=ln |
---|
11183 | else |
---|
11184 | as_ln_s='cp -p' |
---|
11185 | fi |
---|
11186 | rm -f conf$$ conf$$.exe conf$$.file |
---|
11187 | |
---|
11188 | if mkdir -p . 2>/dev/null; then |
---|
11189 | as_mkdir_p=: |
---|
11190 | else |
---|
11191 | test -d ./-p && rmdir ./-p |
---|
11192 | as_mkdir_p=false |
---|
11193 | fi |
---|
11194 | |
---|
11195 | as_executable_p="test -f" |
---|
11196 | |
---|
11197 | # Sed expression to map a string onto a valid CPP name. |
---|
11198 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
11199 | |
---|
11200 | # Sed expression to map a string onto a valid variable name. |
---|
11201 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
11202 | |
---|
11203 | |
---|
11204 | # IFS |
---|
11205 | # We need space, tab and new line, in precisely that order. |
---|
11206 | as_nl=' |
---|
11207 | ' |
---|
11208 | IFS=" $as_nl" |
---|
11209 | |
---|
11210 | # CDPATH. |
---|
11211 | $as_unset CDPATH |
---|
11212 | |
---|
11213 | exec 6>&1 |
---|
11214 | |
---|
11215 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
11216 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
11217 | # values after options handling. Logging --version etc. is OK. |
---|
11218 | exec 5>>config.log |
---|
11219 | { |
---|
11220 | echo |
---|
11221 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
11222 | ## Running $as_me. ## |
---|
11223 | _ASBOX |
---|
11224 | } >&5 |
---|
11225 | cat >&5 <<_CSEOF |
---|
11226 | |
---|
11227 | This file was extended by orxonox $as_me 0.3.1_alpha, which was |
---|
11228 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
11229 | |
---|
11230 | CONFIG_FILES = $CONFIG_FILES |
---|
11231 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
11232 | CONFIG_LINKS = $CONFIG_LINKS |
---|
11233 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
11234 | $ $0 $@ |
---|
11235 | |
---|
11236 | _CSEOF |
---|
11237 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
11238 | echo >&5 |
---|
11239 | _ACEOF |
---|
11240 | |
---|
11241 | # Files that config.status was made for. |
---|
11242 | if test -n "$ac_config_files"; then |
---|
11243 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
11244 | fi |
---|
11245 | |
---|
11246 | if test -n "$ac_config_headers"; then |
---|
11247 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
11248 | fi |
---|
11249 | |
---|
11250 | if test -n "$ac_config_links"; then |
---|
11251 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
11252 | fi |
---|
11253 | |
---|
11254 | if test -n "$ac_config_commands"; then |
---|
11255 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
11256 | fi |
---|
11257 | |
---|
11258 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11259 | |
---|
11260 | ac_cs_usage="\ |
---|
11261 | \`$as_me' instantiates files from templates according to the |
---|
11262 | current configuration. |
---|
11263 | |
---|
11264 | Usage: $0 [OPTIONS] [FILE]... |
---|
11265 | |
---|
11266 | -h, --help print this help, then exit |
---|
11267 | -V, --version print version number, then exit |
---|
11268 | -q, --quiet do not print progress messages |
---|
11269 | -d, --debug don't remove temporary files |
---|
11270 | --recheck update $as_me by reconfiguring in the same conditions |
---|
11271 | --file=FILE[:TEMPLATE] |
---|
11272 | instantiate the configuration file FILE |
---|
11273 | --header=FILE[:TEMPLATE] |
---|
11274 | instantiate the configuration header FILE |
---|
11275 | |
---|
11276 | Configuration files: |
---|
11277 | $config_files |
---|
11278 | |
---|
11279 | Configuration headers: |
---|
11280 | $config_headers |
---|
11281 | |
---|
11282 | Configuration commands: |
---|
11283 | $config_commands |
---|
11284 | |
---|
11285 | Report bugs to <bug-autoconf@gnu.org>." |
---|
11286 | _ACEOF |
---|
11287 | |
---|
11288 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11289 | ac_cs_version="\\ |
---|
11290 | orxonox config.status 0.3.1_alpha |
---|
11291 | configured by $0, generated by GNU Autoconf 2.59, |
---|
11292 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
11293 | |
---|
11294 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
11295 | This config.status script is free software; the Free Software Foundation |
---|
11296 | gives unlimited permission to copy, distribute and modify it." |
---|
11297 | srcdir=$srcdir |
---|
11298 | INSTALL="$INSTALL" |
---|
11299 | _ACEOF |
---|
11300 | |
---|
11301 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11302 | # If no file are specified by the user, then we need to provide default |
---|
11303 | # value. By we need to know if files were specified by the user. |
---|
11304 | ac_need_defaults=: |
---|
11305 | while test $# != 0 |
---|
11306 | do |
---|
11307 | case $1 in |
---|
11308 | --*=*) |
---|
11309 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
11310 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
11311 | ac_shift=: |
---|
11312 | ;; |
---|
11313 | -*) |
---|
11314 | ac_option=$1 |
---|
11315 | ac_optarg=$2 |
---|
11316 | ac_shift=shift |
---|
11317 | ;; |
---|
11318 | *) # This is not an option, so the user has probably given explicit |
---|
11319 | # arguments. |
---|
11320 | ac_option=$1 |
---|
11321 | ac_need_defaults=false;; |
---|
11322 | esac |
---|
11323 | |
---|
11324 | case $ac_option in |
---|
11325 | # Handling of the options. |
---|
11326 | _ACEOF |
---|
11327 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11328 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
11329 | ac_cs_recheck=: ;; |
---|
11330 | --version | --vers* | -V ) |
---|
11331 | echo "$ac_cs_version"; exit 0 ;; |
---|
11332 | --he | --h) |
---|
11333 | # Conflict between --help and --header |
---|
11334 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
11335 | Try \`$0 --help' for more information." >&5 |
---|
11336 | echo "$as_me: error: ambiguous option: $1 |
---|
11337 | Try \`$0 --help' for more information." >&2;} |
---|
11338 | { (exit 1); exit 1; }; };; |
---|
11339 | --help | --hel | -h ) |
---|
11340 | echo "$ac_cs_usage"; exit 0 ;; |
---|
11341 | --debug | --d* | -d ) |
---|
11342 | debug=: ;; |
---|
11343 | --file | --fil | --fi | --f ) |
---|
11344 | $ac_shift |
---|
11345 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
11346 | ac_need_defaults=false;; |
---|
11347 | --header | --heade | --head | --hea ) |
---|
11348 | $ac_shift |
---|
11349 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
11350 | ac_need_defaults=false;; |
---|
11351 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
11352 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
11353 | ac_cs_silent=: ;; |
---|
11354 | |
---|
11355 | # This is an error. |
---|
11356 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
11357 | Try \`$0 --help' for more information." >&5 |
---|
11358 | echo "$as_me: error: unrecognized option: $1 |
---|
11359 | Try \`$0 --help' for more information." >&2;} |
---|
11360 | { (exit 1); exit 1; }; } ;; |
---|
11361 | |
---|
11362 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
11363 | |
---|
11364 | esac |
---|
11365 | shift |
---|
11366 | done |
---|
11367 | |
---|
11368 | ac_configure_extra_args= |
---|
11369 | |
---|
11370 | if $ac_cs_silent; then |
---|
11371 | exec 6>/dev/null |
---|
11372 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
11373 | fi |
---|
11374 | |
---|
11375 | _ACEOF |
---|
11376 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11377 | if \$ac_cs_recheck; then |
---|
11378 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
11379 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
11380 | fi |
---|
11381 | |
---|
11382 | _ACEOF |
---|
11383 | |
---|
11384 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11385 | # |
---|
11386 | # INIT-COMMANDS section. |
---|
11387 | # |
---|
11388 | |
---|
11389 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
11390 | |
---|
11391 | _ACEOF |
---|
11392 | |
---|
11393 | |
---|
11394 | |
---|
11395 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11396 | for ac_config_target in $ac_config_targets |
---|
11397 | do |
---|
11398 | case "$ac_config_target" in |
---|
11399 | # Handling of arguments. |
---|
11400 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
11401 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
11402 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
11403 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
11404 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
11405 | "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;; |
---|
11406 | "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;; |
---|
11407 | "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;; |
---|
11408 | "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;; |
---|
11409 | "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;; |
---|
11410 | "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;; |
---|
11411 | "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;; |
---|
11412 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
11413 | "src/lib/gui/gtk_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gtk_gui/Makefile" ;; |
---|
11414 | "src/lib/gui/gl_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gl_gui/Makefile" ;; |
---|
11415 | "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; |
---|
11416 | "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; |
---|
11417 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
11418 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
11419 | "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;; |
---|
11420 | "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;; |
---|
11421 | "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;; |
---|
11422 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
11423 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
11424 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
11425 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
11426 | { (exit 1); exit 1; }; };; |
---|
11427 | esac |
---|
11428 | done |
---|
11429 | |
---|
11430 | # If the user did not use the arguments to specify the items to instantiate, |
---|
11431 | # then the envvar interface is used. Set only those that are not. |
---|
11432 | # We use the long form for the default assignment because of an extremely |
---|
11433 | # bizarre bug on SunOS 4.1.3. |
---|
11434 | if $ac_need_defaults; then |
---|
11435 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
11436 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
11437 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
11438 | fi |
---|
11439 | |
---|
11440 | # Have a temporary directory for convenience. Make it in the build tree |
---|
11441 | # simply because there is no reason to put it here, and in addition, |
---|
11442 | # creating and moving files from /tmp can sometimes cause problems. |
---|
11443 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
11444 | $debug || |
---|
11445 | { |
---|
11446 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
11447 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
11448 | } |
---|
11449 | |
---|
11450 | # Create a (secure) tmp directory for tmp files. |
---|
11451 | |
---|
11452 | { |
---|
11453 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
11454 | test -n "$tmp" && test -d "$tmp" |
---|
11455 | } || |
---|
11456 | { |
---|
11457 | tmp=./confstat$$-$RANDOM |
---|
11458 | (umask 077 && mkdir $tmp) |
---|
11459 | } || |
---|
11460 | { |
---|
11461 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
11462 | { (exit 1); exit 1; } |
---|
11463 | } |
---|
11464 | |
---|
11465 | _ACEOF |
---|
11466 | |
---|
11467 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11468 | |
---|
11469 | # |
---|
11470 | # CONFIG_FILES section. |
---|
11471 | # |
---|
11472 | |
---|
11473 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
11474 | # This happens for instance when ./config.status config.h |
---|
11475 | if test -n "\$CONFIG_FILES"; then |
---|
11476 | # Protect against being on the right side of a sed subst in config.status. |
---|
11477 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
11478 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
11479 | s,@SHELL@,$SHELL,;t t |
---|
11480 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
11481 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
11482 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
11483 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
11484 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
11485 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
11486 | s,@exec_prefix@,$exec_prefix,;t t |
---|
11487 | s,@prefix@,$prefix,;t t |
---|
11488 | s,@program_transform_name@,$program_transform_name,;t t |
---|
11489 | s,@bindir@,$bindir,;t t |
---|
11490 | s,@sbindir@,$sbindir,;t t |
---|
11491 | s,@libexecdir@,$libexecdir,;t t |
---|
11492 | s,@datadir@,$datadir,;t t |
---|
11493 | s,@sysconfdir@,$sysconfdir,;t t |
---|
11494 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
11495 | s,@localstatedir@,$localstatedir,;t t |
---|
11496 | s,@libdir@,$libdir,;t t |
---|
11497 | s,@includedir@,$includedir,;t t |
---|
11498 | s,@oldincludedir@,$oldincludedir,;t t |
---|
11499 | s,@infodir@,$infodir,;t t |
---|
11500 | s,@mandir@,$mandir,;t t |
---|
11501 | s,@build_alias@,$build_alias,;t t |
---|
11502 | s,@host_alias@,$host_alias,;t t |
---|
11503 | s,@target_alias@,$target_alias,;t t |
---|
11504 | s,@DEFS@,$DEFS,;t t |
---|
11505 | s,@ECHO_C@,$ECHO_C,;t t |
---|
11506 | s,@ECHO_N@,$ECHO_N,;t t |
---|
11507 | s,@ECHO_T@,$ECHO_T,;t t |
---|
11508 | s,@LIBS@,$LIBS,;t t |
---|
11509 | s,@build@,$build,;t t |
---|
11510 | s,@build_cpu@,$build_cpu,;t t |
---|
11511 | s,@build_vendor@,$build_vendor,;t t |
---|
11512 | s,@build_os@,$build_os,;t t |
---|
11513 | s,@host@,$host,;t t |
---|
11514 | s,@host_cpu@,$host_cpu,;t t |
---|
11515 | s,@host_vendor@,$host_vendor,;t t |
---|
11516 | s,@host_os@,$host_os,;t t |
---|
11517 | s,@target@,$target,;t t |
---|
11518 | s,@target_cpu@,$target_cpu,;t t |
---|
11519 | s,@target_vendor@,$target_vendor,;t t |
---|
11520 | s,@target_os@,$target_os,;t t |
---|
11521 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
11522 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
11523 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
11524 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
11525 | s,@PACKAGE@,$PACKAGE,;t t |
---|
11526 | s,@VERSION@,$VERSION,;t t |
---|
11527 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
11528 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
11529 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
11530 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
11531 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
11532 | s,@install_sh@,$install_sh,;t t |
---|
11533 | s,@STRIP@,$STRIP,;t t |
---|
11534 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
11535 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
11536 | s,@mkdir_p@,$mkdir_p,;t t |
---|
11537 | s,@AWK@,$AWK,;t t |
---|
11538 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
11539 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
11540 | s,@AMTAR@,$AMTAR,;t t |
---|
11541 | s,@am__tar@,$am__tar,;t t |
---|
11542 | s,@am__untar@,$am__untar,;t t |
---|
11543 | s,@CXX@,$CXX,;t t |
---|
11544 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
11545 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
11546 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
11547 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
11548 | s,@EXEEXT@,$EXEEXT,;t t |
---|
11549 | s,@OBJEXT@,$OBJEXT,;t t |
---|
11550 | s,@DEPDIR@,$DEPDIR,;t t |
---|
11551 | s,@am__include@,$am__include,;t t |
---|
11552 | s,@am__quote@,$am__quote,;t t |
---|
11553 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
11554 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
11555 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
11556 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
11557 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
11558 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
11559 | s,@RANLIB@,$RANLIB,;t t |
---|
11560 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
11561 | s,@CC@,$CC,;t t |
---|
11562 | s,@CFLAGS@,$CFLAGS,;t t |
---|
11563 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
11564 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
11565 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
11566 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
11567 | s,@CPP@,$CPP,;t t |
---|
11568 | s,@EGREP@,$EGREP,;t t |
---|
11569 | s,@DEBUG@,$DEBUG,;t t |
---|
11570 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
11571 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
11572 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
11573 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
11574 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
11575 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
11576 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
11577 | s,@GPROF@,$GPROF,;t t |
---|
11578 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
11579 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
11580 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
11581 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
11582 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
11583 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
11584 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
11585 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
11586 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
11587 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
11588 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
11589 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
11590 | CEOF |
---|
11591 | |
---|
11592 | _ACEOF |
---|
11593 | |
---|
11594 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11595 | # Split the substitutions into bite-sized pieces for seds with |
---|
11596 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
11597 | ac_max_sed_lines=48 |
---|
11598 | ac_sed_frag=1 # Number of current file. |
---|
11599 | ac_beg=1 # First line for current file. |
---|
11600 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
11601 | ac_more_lines=: |
---|
11602 | ac_sed_cmds= |
---|
11603 | while $ac_more_lines; do |
---|
11604 | if test $ac_beg -gt 1; then |
---|
11605 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
11606 | else |
---|
11607 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
11608 | fi |
---|
11609 | if test ! -s $tmp/subs.frag; then |
---|
11610 | ac_more_lines=false |
---|
11611 | else |
---|
11612 | # The purpose of the label and of the branching condition is to |
---|
11613 | # speed up the sed processing (if there are no `@' at all, there |
---|
11614 | # is no need to browse any of the substitutions). |
---|
11615 | # These are the two extra sed commands mentioned above. |
---|
11616 | (echo ':t |
---|
11617 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
11618 | if test -z "$ac_sed_cmds"; then |
---|
11619 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
11620 | else |
---|
11621 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
11622 | fi |
---|
11623 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
11624 | ac_beg=$ac_end |
---|
11625 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
11626 | fi |
---|
11627 | done |
---|
11628 | if test -z "$ac_sed_cmds"; then |
---|
11629 | ac_sed_cmds=cat |
---|
11630 | fi |
---|
11631 | fi # test -n "$CONFIG_FILES" |
---|
11632 | |
---|
11633 | _ACEOF |
---|
11634 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11635 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
11636 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
11637 | case $ac_file in |
---|
11638 | - | *:- | *:-:* ) # input from stdin |
---|
11639 | cat >$tmp/stdin |
---|
11640 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11641 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11642 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11643 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11644 | * ) ac_file_in=$ac_file.in ;; |
---|
11645 | esac |
---|
11646 | |
---|
11647 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
11648 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
11649 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11650 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
11651 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
11652 | X"$ac_file" : 'X\(/\)' \| \ |
---|
11653 | . : '\(.\)' 2>/dev/null || |
---|
11654 | echo X"$ac_file" | |
---|
11655 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11656 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11657 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11658 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11659 | s/.*/./; q'` |
---|
11660 | { if $as_mkdir_p; then |
---|
11661 | mkdir -p "$ac_dir" |
---|
11662 | else |
---|
11663 | as_dir="$ac_dir" |
---|
11664 | as_dirs= |
---|
11665 | while test ! -d "$as_dir"; do |
---|
11666 | as_dirs="$as_dir $as_dirs" |
---|
11667 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
11668 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11669 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
11670 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
11671 | X"$as_dir" : 'X\(/\)' \| \ |
---|
11672 | . : '\(.\)' 2>/dev/null || |
---|
11673 | echo X"$as_dir" | |
---|
11674 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11675 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11676 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11677 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11678 | s/.*/./; q'` |
---|
11679 | done |
---|
11680 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
11681 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
11682 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
11683 | { (exit 1); exit 1; }; }; } |
---|
11684 | |
---|
11685 | ac_builddir=. |
---|
11686 | |
---|
11687 | if test "$ac_dir" != .; then |
---|
11688 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
11689 | # A "../" for each directory in $ac_dir_suffix. |
---|
11690 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
11691 | else |
---|
11692 | ac_dir_suffix= ac_top_builddir= |
---|
11693 | fi |
---|
11694 | |
---|
11695 | case $srcdir in |
---|
11696 | .) # No --srcdir option. We are building in place. |
---|
11697 | ac_srcdir=. |
---|
11698 | if test -z "$ac_top_builddir"; then |
---|
11699 | ac_top_srcdir=. |
---|
11700 | else |
---|
11701 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
11702 | fi ;; |
---|
11703 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
11704 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
11705 | ac_top_srcdir=$srcdir ;; |
---|
11706 | *) # Relative path. |
---|
11707 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
11708 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
11709 | esac |
---|
11710 | |
---|
11711 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
11712 | # the directories may not exist. |
---|
11713 | case `pwd` in |
---|
11714 | .) ac_abs_builddir="$ac_dir";; |
---|
11715 | *) |
---|
11716 | case "$ac_dir" in |
---|
11717 | .) ac_abs_builddir=`pwd`;; |
---|
11718 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
11719 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
11720 | esac;; |
---|
11721 | esac |
---|
11722 | case $ac_abs_builddir in |
---|
11723 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
11724 | *) |
---|
11725 | case ${ac_top_builddir}. in |
---|
11726 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
11727 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
11728 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
11729 | esac;; |
---|
11730 | esac |
---|
11731 | case $ac_abs_builddir in |
---|
11732 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
11733 | *) |
---|
11734 | case $ac_srcdir in |
---|
11735 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
11736 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
11737 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
11738 | esac;; |
---|
11739 | esac |
---|
11740 | case $ac_abs_builddir in |
---|
11741 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
11742 | *) |
---|
11743 | case $ac_top_srcdir in |
---|
11744 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
11745 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
11746 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
11747 | esac;; |
---|
11748 | esac |
---|
11749 | |
---|
11750 | |
---|
11751 | case $INSTALL in |
---|
11752 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
11753 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
11754 | esac |
---|
11755 | |
---|
11756 | if test x"$ac_file" != x-; then |
---|
11757 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
11758 | echo "$as_me: creating $ac_file" >&6;} |
---|
11759 | rm -f "$ac_file" |
---|
11760 | fi |
---|
11761 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
11762 | # use $as_me), people would be surprised to read: |
---|
11763 | # /* config.h. Generated by config.status. */ |
---|
11764 | if test x"$ac_file" = x-; then |
---|
11765 | configure_input= |
---|
11766 | else |
---|
11767 | configure_input="$ac_file. " |
---|
11768 | fi |
---|
11769 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
11770 | sed 's,.*/,,'` by configure." |
---|
11771 | |
---|
11772 | # First look for the input files in the build tree, otherwise in the |
---|
11773 | # src tree. |
---|
11774 | ac_file_inputs=`IFS=: |
---|
11775 | for f in $ac_file_in; do |
---|
11776 | case $f in |
---|
11777 | -) echo $tmp/stdin ;; |
---|
11778 | [\\/$]*) |
---|
11779 | # Absolute (can't be DOS-style, as IFS=:) |
---|
11780 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11781 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11782 | { (exit 1); exit 1; }; } |
---|
11783 | echo "$f";; |
---|
11784 | *) # Relative |
---|
11785 | if test -f "$f"; then |
---|
11786 | # Build tree |
---|
11787 | echo "$f" |
---|
11788 | elif test -f "$srcdir/$f"; then |
---|
11789 | # Source tree |
---|
11790 | echo "$srcdir/$f" |
---|
11791 | else |
---|
11792 | # /dev/null tree |
---|
11793 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11794 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11795 | { (exit 1); exit 1; }; } |
---|
11796 | fi;; |
---|
11797 | esac |
---|
11798 | done` || { (exit 1); exit 1; } |
---|
11799 | _ACEOF |
---|
11800 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
11801 | sed "$ac_vpsub |
---|
11802 | $extrasub |
---|
11803 | _ACEOF |
---|
11804 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11805 | :t |
---|
11806 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
11807 | s,@configure_input@,$configure_input,;t t |
---|
11808 | s,@srcdir@,$ac_srcdir,;t t |
---|
11809 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
11810 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
11811 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
11812 | s,@builddir@,$ac_builddir,;t t |
---|
11813 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
11814 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
11815 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
11816 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
11817 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
11818 | rm -f $tmp/stdin |
---|
11819 | if test x"$ac_file" != x-; then |
---|
11820 | mv $tmp/out $ac_file |
---|
11821 | else |
---|
11822 | cat $tmp/out |
---|
11823 | rm -f $tmp/out |
---|
11824 | fi |
---|
11825 | |
---|
11826 | done |
---|
11827 | _ACEOF |
---|
11828 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11829 | |
---|
11830 | # |
---|
11831 | # CONFIG_HEADER section. |
---|
11832 | # |
---|
11833 | |
---|
11834 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
11835 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
11836 | # |
---|
11837 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
11838 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
11839 | ac_dB='[ ].*$,\1#\2' |
---|
11840 | ac_dC=' ' |
---|
11841 | ac_dD=',;t' |
---|
11842 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
11843 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
11844 | ac_uB='$,\1#\2define\3' |
---|
11845 | ac_uC=' ' |
---|
11846 | ac_uD=',;t' |
---|
11847 | |
---|
11848 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
11849 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
11850 | case $ac_file in |
---|
11851 | - | *:- | *:-:* ) # input from stdin |
---|
11852 | cat >$tmp/stdin |
---|
11853 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11854 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11855 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
11856 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
11857 | * ) ac_file_in=$ac_file.in ;; |
---|
11858 | esac |
---|
11859 | |
---|
11860 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
11861 | echo "$as_me: creating $ac_file" >&6;} |
---|
11862 | |
---|
11863 | # First look for the input files in the build tree, otherwise in the |
---|
11864 | # src tree. |
---|
11865 | ac_file_inputs=`IFS=: |
---|
11866 | for f in $ac_file_in; do |
---|
11867 | case $f in |
---|
11868 | -) echo $tmp/stdin ;; |
---|
11869 | [\\/$]*) |
---|
11870 | # Absolute (can't be DOS-style, as IFS=:) |
---|
11871 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11872 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11873 | { (exit 1); exit 1; }; } |
---|
11874 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
11875 | echo "$f";; |
---|
11876 | *) # Relative |
---|
11877 | if test -f "$f"; then |
---|
11878 | # Build tree |
---|
11879 | echo "$f" |
---|
11880 | elif test -f "$srcdir/$f"; then |
---|
11881 | # Source tree |
---|
11882 | echo "$srcdir/$f" |
---|
11883 | else |
---|
11884 | # /dev/null tree |
---|
11885 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
11886 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
11887 | { (exit 1); exit 1; }; } |
---|
11888 | fi;; |
---|
11889 | esac |
---|
11890 | done` || { (exit 1); exit 1; } |
---|
11891 | # Remove the trailing spaces. |
---|
11892 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
11893 | |
---|
11894 | _ACEOF |
---|
11895 | |
---|
11896 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
11897 | # `conftest.undefs', that substitutes the proper values into |
---|
11898 | # config.h.in to produce config.h. The first handles `#define' |
---|
11899 | # templates, and the second `#undef' templates. |
---|
11900 | # And first: Protect against being on the right side of a sed subst in |
---|
11901 | # config.status. Protect against being in an unquoted here document |
---|
11902 | # in config.status. |
---|
11903 | rm -f conftest.defines conftest.undefs |
---|
11904 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
11905 | # Putting comments in sed scripts is not portable. |
---|
11906 | # |
---|
11907 | # `end' is used to avoid that the second main sed command (meant for |
---|
11908 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
11909 | # See the Autoconf documentation for `clear'. |
---|
11910 | cat >confdef2sed.sed <<\_ACEOF |
---|
11911 | s/[\\&,]/\\&/g |
---|
11912 | s,[\\$`],\\&,g |
---|
11913 | t clear |
---|
11914 | : clear |
---|
11915 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
11916 | t end |
---|
11917 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
11918 | : end |
---|
11919 | _ACEOF |
---|
11920 | # If some macros were called several times there might be several times |
---|
11921 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
11922 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
11923 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
11924 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
11925 | rm -f confdef2sed.sed |
---|
11926 | |
---|
11927 | # This sed command replaces #undef with comments. This is necessary, for |
---|
11928 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
11929 | # on some systems where configure will not decide to define it. |
---|
11930 | cat >>conftest.undefs <<\_ACEOF |
---|
11931 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
11932 | _ACEOF |
---|
11933 | |
---|
11934 | # Break up conftest.defines because some shells have a limit on the size |
---|
11935 | # of here documents, and old seds have small limits too (100 cmds). |
---|
11936 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
11937 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
11938 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
11939 | echo ' :' >>$CONFIG_STATUS |
---|
11940 | rm -f conftest.tail |
---|
11941 | while grep . conftest.defines >/dev/null |
---|
11942 | do |
---|
11943 | # Write a limited-size here document to $tmp/defines.sed. |
---|
11944 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
11945 | # Speed up: don't consider the non `#define' lines. |
---|
11946 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
11947 | # Work around the forget-to-reset-the-flag bug. |
---|
11948 | echo 't clr' >>$CONFIG_STATUS |
---|
11949 | echo ': clr' >>$CONFIG_STATUS |
---|
11950 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
11951 | echo 'CEOF |
---|
11952 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
11953 | rm -f $tmp/in |
---|
11954 | mv $tmp/out $tmp/in |
---|
11955 | ' >>$CONFIG_STATUS |
---|
11956 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
11957 | rm -f conftest.defines |
---|
11958 | mv conftest.tail conftest.defines |
---|
11959 | done |
---|
11960 | rm -f conftest.defines |
---|
11961 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
11962 | echo >>$CONFIG_STATUS |
---|
11963 | |
---|
11964 | # Break up conftest.undefs because some shells have a limit on the size |
---|
11965 | # of here documents, and old seds have small limits too (100 cmds). |
---|
11966 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
11967 | rm -f conftest.tail |
---|
11968 | while grep . conftest.undefs >/dev/null |
---|
11969 | do |
---|
11970 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
11971 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
11972 | # Speed up: don't consider the non `#undef' |
---|
11973 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
11974 | # Work around the forget-to-reset-the-flag bug. |
---|
11975 | echo 't clr' >>$CONFIG_STATUS |
---|
11976 | echo ': clr' >>$CONFIG_STATUS |
---|
11977 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
11978 | echo 'CEOF |
---|
11979 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
11980 | rm -f $tmp/in |
---|
11981 | mv $tmp/out $tmp/in |
---|
11982 | ' >>$CONFIG_STATUS |
---|
11983 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
11984 | rm -f conftest.undefs |
---|
11985 | mv conftest.tail conftest.undefs |
---|
11986 | done |
---|
11987 | rm -f conftest.undefs |
---|
11988 | |
---|
11989 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11990 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
11991 | # use $as_me), people would be surprised to read: |
---|
11992 | # /* config.h. Generated by config.status. */ |
---|
11993 | if test x"$ac_file" = x-; then |
---|
11994 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
11995 | else |
---|
11996 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
11997 | fi |
---|
11998 | cat $tmp/in >>$tmp/config.h |
---|
11999 | rm -f $tmp/in |
---|
12000 | if test x"$ac_file" != x-; then |
---|
12001 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
12002 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
12003 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
12004 | else |
---|
12005 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
12006 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12007 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
12008 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
12009 | X"$ac_file" : 'X\(/\)' \| \ |
---|
12010 | . : '\(.\)' 2>/dev/null || |
---|
12011 | echo X"$ac_file" | |
---|
12012 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12013 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12014 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12015 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12016 | s/.*/./; q'` |
---|
12017 | { if $as_mkdir_p; then |
---|
12018 | mkdir -p "$ac_dir" |
---|
12019 | else |
---|
12020 | as_dir="$ac_dir" |
---|
12021 | as_dirs= |
---|
12022 | while test ! -d "$as_dir"; do |
---|
12023 | as_dirs="$as_dir $as_dirs" |
---|
12024 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
12025 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12026 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
12027 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
12028 | X"$as_dir" : 'X\(/\)' \| \ |
---|
12029 | . : '\(.\)' 2>/dev/null || |
---|
12030 | echo X"$as_dir" | |
---|
12031 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12032 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12033 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12034 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12035 | s/.*/./; q'` |
---|
12036 | done |
---|
12037 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
12038 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
12039 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
12040 | { (exit 1); exit 1; }; }; } |
---|
12041 | |
---|
12042 | rm -f $ac_file |
---|
12043 | mv $tmp/config.h $ac_file |
---|
12044 | fi |
---|
12045 | else |
---|
12046 | cat $tmp/config.h |
---|
12047 | rm -f $tmp/config.h |
---|
12048 | fi |
---|
12049 | # Compute $ac_file's index in $config_headers. |
---|
12050 | _am_stamp_count=1 |
---|
12051 | for _am_header in $config_headers :; do |
---|
12052 | case $_am_header in |
---|
12053 | $ac_file | $ac_file:* ) |
---|
12054 | break ;; |
---|
12055 | * ) |
---|
12056 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
12057 | esac |
---|
12058 | done |
---|
12059 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
12060 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12061 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
12062 | X$ac_file : 'X\(//\)$' \| \ |
---|
12063 | X$ac_file : 'X\(/\)' \| \ |
---|
12064 | . : '\(.\)' 2>/dev/null || |
---|
12065 | echo X$ac_file | |
---|
12066 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12067 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12068 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12069 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12070 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
12071 | done |
---|
12072 | _ACEOF |
---|
12073 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
12074 | |
---|
12075 | # |
---|
12076 | # CONFIG_COMMANDS section. |
---|
12077 | # |
---|
12078 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
12079 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
12080 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
12081 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
12082 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12083 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
12084 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
12085 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
12086 | . : '\(.\)' 2>/dev/null || |
---|
12087 | echo X"$ac_dest" | |
---|
12088 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12089 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12090 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12091 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12092 | s/.*/./; q'` |
---|
12093 | { if $as_mkdir_p; then |
---|
12094 | mkdir -p "$ac_dir" |
---|
12095 | else |
---|
12096 | as_dir="$ac_dir" |
---|
12097 | as_dirs= |
---|
12098 | while test ! -d "$as_dir"; do |
---|
12099 | as_dirs="$as_dir $as_dirs" |
---|
12100 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
12101 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12102 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
12103 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
12104 | X"$as_dir" : 'X\(/\)' \| \ |
---|
12105 | . : '\(.\)' 2>/dev/null || |
---|
12106 | echo X"$as_dir" | |
---|
12107 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12108 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12109 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12110 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12111 | s/.*/./; q'` |
---|
12112 | done |
---|
12113 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
12114 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
12115 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
12116 | { (exit 1); exit 1; }; }; } |
---|
12117 | |
---|
12118 | ac_builddir=. |
---|
12119 | |
---|
12120 | if test "$ac_dir" != .; then |
---|
12121 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
12122 | # A "../" for each directory in $ac_dir_suffix. |
---|
12123 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
12124 | else |
---|
12125 | ac_dir_suffix= ac_top_builddir= |
---|
12126 | fi |
---|
12127 | |
---|
12128 | case $srcdir in |
---|
12129 | .) # No --srcdir option. We are building in place. |
---|
12130 | ac_srcdir=. |
---|
12131 | if test -z "$ac_top_builddir"; then |
---|
12132 | ac_top_srcdir=. |
---|
12133 | else |
---|
12134 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
12135 | fi ;; |
---|
12136 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
12137 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
12138 | ac_top_srcdir=$srcdir ;; |
---|
12139 | *) # Relative path. |
---|
12140 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
12141 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
12142 | esac |
---|
12143 | |
---|
12144 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
12145 | # the directories may not exist. |
---|
12146 | case `pwd` in |
---|
12147 | .) ac_abs_builddir="$ac_dir";; |
---|
12148 | *) |
---|
12149 | case "$ac_dir" in |
---|
12150 | .) ac_abs_builddir=`pwd`;; |
---|
12151 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
12152 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
12153 | esac;; |
---|
12154 | esac |
---|
12155 | case $ac_abs_builddir in |
---|
12156 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
12157 | *) |
---|
12158 | case ${ac_top_builddir}. in |
---|
12159 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
12160 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
12161 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
12162 | esac;; |
---|
12163 | esac |
---|
12164 | case $ac_abs_builddir in |
---|
12165 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
12166 | *) |
---|
12167 | case $ac_srcdir in |
---|
12168 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
12169 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
12170 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
12171 | esac;; |
---|
12172 | esac |
---|
12173 | case $ac_abs_builddir in |
---|
12174 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
12175 | *) |
---|
12176 | case $ac_top_srcdir in |
---|
12177 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
12178 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
12179 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
12180 | esac;; |
---|
12181 | esac |
---|
12182 | |
---|
12183 | |
---|
12184 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
12185 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
12186 | case $ac_dest in |
---|
12187 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
12188 | # Strip MF so we end up with the name of the file. |
---|
12189 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
12190 | # Check whether this is an Automake generated Makefile or not. |
---|
12191 | # We used to match only the files named `Makefile.in', but |
---|
12192 | # some people rename them; so instead we look at the file content. |
---|
12193 | # Grep'ing the first line is not enough: some people post-process |
---|
12194 | # each Makefile.in and add a new line on top of each file to say so. |
---|
12195 | # So let's grep whole file. |
---|
12196 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
12197 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
12198 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12199 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
12200 | X"$mf" : 'X\(//\)$' \| \ |
---|
12201 | X"$mf" : 'X\(/\)' \| \ |
---|
12202 | . : '\(.\)' 2>/dev/null || |
---|
12203 | echo X"$mf" | |
---|
12204 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12205 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12206 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12207 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12208 | s/.*/./; q'` |
---|
12209 | else |
---|
12210 | continue |
---|
12211 | fi |
---|
12212 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
12213 | # from the Makefile without running `make'. |
---|
12214 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
12215 | test -z "$DEPDIR" && continue |
---|
12216 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
12217 | test -z "am__include" && continue |
---|
12218 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
12219 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
12220 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
12221 | # Find all dependency output files, they are included files with |
---|
12222 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
12223 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
12224 | # expansion. |
---|
12225 | for file in `sed -n " |
---|
12226 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
12227 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
12228 | # Make sure the directory exists. |
---|
12229 | test -f "$dirpart/$file" && continue |
---|
12230 | fdir=`(dirname "$file") 2>/dev/null || |
---|
12231 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12232 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
12233 | X"$file" : 'X\(//\)$' \| \ |
---|
12234 | X"$file" : 'X\(/\)' \| \ |
---|
12235 | . : '\(.\)' 2>/dev/null || |
---|
12236 | echo X"$file" | |
---|
12237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12238 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12239 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12240 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12241 | s/.*/./; q'` |
---|
12242 | { if $as_mkdir_p; then |
---|
12243 | mkdir -p $dirpart/$fdir |
---|
12244 | else |
---|
12245 | as_dir=$dirpart/$fdir |
---|
12246 | as_dirs= |
---|
12247 | while test ! -d "$as_dir"; do |
---|
12248 | as_dirs="$as_dir $as_dirs" |
---|
12249 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
12250 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
12251 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
12252 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
12253 | X"$as_dir" : 'X\(/\)' \| \ |
---|
12254 | . : '\(.\)' 2>/dev/null || |
---|
12255 | echo X"$as_dir" | |
---|
12256 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
12257 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
12258 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
12259 | /^X\(\/\).*/{ s//\1/; q; } |
---|
12260 | s/.*/./; q'` |
---|
12261 | done |
---|
12262 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
12263 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
12264 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
12265 | { (exit 1); exit 1; }; }; } |
---|
12266 | |
---|
12267 | # echo "creating $dirpart/$file" |
---|
12268 | echo '# dummy' > "$dirpart/$file" |
---|
12269 | done |
---|
12270 | done |
---|
12271 | ;; |
---|
12272 | esac |
---|
12273 | done |
---|
12274 | _ACEOF |
---|
12275 | |
---|
12276 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
12277 | |
---|
12278 | { (exit 0); exit 0; } |
---|
12279 | _ACEOF |
---|
12280 | chmod +x $CONFIG_STATUS |
---|
12281 | ac_clean_files=$ac_clean_files_save |
---|
12282 | |
---|
12283 | |
---|
12284 | # configure is writing to config.log, and then calls config.status. |
---|
12285 | # config.status does its own redirection, appending to config.log. |
---|
12286 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
12287 | # by configure, so config.status won't be able to write to it; its |
---|
12288 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
12289 | # effectively closing config.log, so it can be properly (re)opened and |
---|
12290 | # appended to by config.status. When coming back to configure, we |
---|
12291 | # need to make the FD available again. |
---|
12292 | if test "$no_create" != yes; then |
---|
12293 | ac_cs_success=: |
---|
12294 | ac_config_status_args= |
---|
12295 | test "$silent" = yes && |
---|
12296 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
12297 | exec 5>/dev/null |
---|
12298 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
12299 | exec 5>>config.log |
---|
12300 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
12301 | # would make configure fail if this is the last instruction. |
---|
12302 | $ac_cs_success || { (exit 1); exit 1; } |
---|
12303 | fi |
---|
12304 | |
---|