1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for orxonox 0.1-pre-alpha. |
---|
4 | # |
---|
5 | # Report bugs to <orxonox-dev@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.1-pre-alpha' |
---|
273 | PACKAGE_STRING='orxonox 0.1-pre-alpha' |
---|
274 | PACKAGE_BUGREPORT='orxonox-dev@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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MSBITFIELDS 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 CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP 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.1-pre-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 | _ACEOF |
---|
849 | fi |
---|
850 | |
---|
851 | if test -n "$ac_init_help"; then |
---|
852 | case $ac_init_help in |
---|
853 | short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";; |
---|
854 | esac |
---|
855 | cat <<\_ACEOF |
---|
856 | |
---|
857 | Optional Features: |
---|
858 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
859 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
860 | --disable-dependency-tracking Speeds up one-time builds |
---|
861 | --enable-dependency-tracking Do not reject slow dependency extractors |
---|
862 | |
---|
863 | Some influential environment variables: |
---|
864 | CXX C++ compiler command |
---|
865 | CXXFLAGS C++ compiler flags |
---|
866 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
867 | nonstandard directory <lib dir> |
---|
868 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
869 | headers in a nonstandard directory <include dir> |
---|
870 | CC C compiler command |
---|
871 | CFLAGS C compiler flags |
---|
872 | CPP C preprocessor |
---|
873 | |
---|
874 | Use these variables to override the choices made by `configure' or to help |
---|
875 | it to find libraries and programs with nonstandard names/locations. |
---|
876 | |
---|
877 | Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
878 | _ACEOF |
---|
879 | fi |
---|
880 | |
---|
881 | if test "$ac_init_help" = "recursive"; then |
---|
882 | # If there are subdirs, report their specific --help. |
---|
883 | ac_popdir=`pwd` |
---|
884 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
885 | test -d $ac_dir || continue |
---|
886 | ac_builddir=. |
---|
887 | |
---|
888 | if test "$ac_dir" != .; then |
---|
889 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
890 | # A "../" for each directory in $ac_dir_suffix. |
---|
891 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
892 | else |
---|
893 | ac_dir_suffix= ac_top_builddir= |
---|
894 | fi |
---|
895 | |
---|
896 | case $srcdir in |
---|
897 | .) # No --srcdir option. We are building in place. |
---|
898 | ac_srcdir=. |
---|
899 | if test -z "$ac_top_builddir"; then |
---|
900 | ac_top_srcdir=. |
---|
901 | else |
---|
902 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
903 | fi ;; |
---|
904 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
905 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
906 | ac_top_srcdir=$srcdir ;; |
---|
907 | *) # Relative path. |
---|
908 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
909 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
910 | esac |
---|
911 | |
---|
912 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
913 | # the directories may not exist. |
---|
914 | case `pwd` in |
---|
915 | .) ac_abs_builddir="$ac_dir";; |
---|
916 | *) |
---|
917 | case "$ac_dir" in |
---|
918 | .) ac_abs_builddir=`pwd`;; |
---|
919 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
920 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
921 | esac;; |
---|
922 | esac |
---|
923 | case $ac_abs_builddir in |
---|
924 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
925 | *) |
---|
926 | case ${ac_top_builddir}. in |
---|
927 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
928 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
929 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
930 | esac;; |
---|
931 | esac |
---|
932 | case $ac_abs_builddir in |
---|
933 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
934 | *) |
---|
935 | case $ac_srcdir in |
---|
936 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
937 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
938 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
939 | esac;; |
---|
940 | esac |
---|
941 | case $ac_abs_builddir in |
---|
942 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
943 | *) |
---|
944 | case $ac_top_srcdir in |
---|
945 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
946 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
947 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
948 | esac;; |
---|
949 | esac |
---|
950 | |
---|
951 | cd $ac_dir |
---|
952 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
953 | if test -f $ac_srcdir/configure.gnu; then |
---|
954 | echo |
---|
955 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
956 | elif test -f $ac_srcdir/configure; then |
---|
957 | echo |
---|
958 | $SHELL $ac_srcdir/configure --help=recursive |
---|
959 | elif test -f $ac_srcdir/configure.ac || |
---|
960 | test -f $ac_srcdir/configure.in; then |
---|
961 | echo |
---|
962 | $ac_configure --help |
---|
963 | else |
---|
964 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
965 | fi |
---|
966 | cd $ac_popdir |
---|
967 | done |
---|
968 | fi |
---|
969 | |
---|
970 | test -n "$ac_init_help" && exit 0 |
---|
971 | if $ac_init_version; then |
---|
972 | cat <<\_ACEOF |
---|
973 | orxonox configure 0.1-pre-alpha |
---|
974 | generated by GNU Autoconf 2.59 |
---|
975 | |
---|
976 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
977 | This configure script is free software; the Free Software Foundation |
---|
978 | gives unlimited permission to copy, distribute and modify it. |
---|
979 | _ACEOF |
---|
980 | exit 0 |
---|
981 | fi |
---|
982 | exec 5>config.log |
---|
983 | cat >&5 <<_ACEOF |
---|
984 | This file contains any messages produced by compilers while |
---|
985 | running configure, to aid debugging if configure makes a mistake. |
---|
986 | |
---|
987 | It was created by orxonox $as_me 0.1-pre-alpha, which was |
---|
988 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
989 | |
---|
990 | $ $0 $@ |
---|
991 | |
---|
992 | _ACEOF |
---|
993 | { |
---|
994 | cat <<_ASUNAME |
---|
995 | ## --------- ## |
---|
996 | ## Platform. ## |
---|
997 | ## --------- ## |
---|
998 | |
---|
999 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1000 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1001 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1002 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1003 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1004 | |
---|
1005 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1006 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1007 | |
---|
1008 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1009 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1010 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1011 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1012 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1013 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1014 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1015 | |
---|
1016 | _ASUNAME |
---|
1017 | |
---|
1018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1019 | for as_dir in $PATH |
---|
1020 | do |
---|
1021 | IFS=$as_save_IFS |
---|
1022 | test -z "$as_dir" && as_dir=. |
---|
1023 | echo "PATH: $as_dir" |
---|
1024 | done |
---|
1025 | |
---|
1026 | } >&5 |
---|
1027 | |
---|
1028 | cat >&5 <<_ACEOF |
---|
1029 | |
---|
1030 | |
---|
1031 | ## ----------- ## |
---|
1032 | ## Core tests. ## |
---|
1033 | ## ----------- ## |
---|
1034 | |
---|
1035 | _ACEOF |
---|
1036 | |
---|
1037 | |
---|
1038 | # Keep a trace of the command line. |
---|
1039 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1040 | # Strip out --silent because we don't want to record it for future runs. |
---|
1041 | # Also quote any args containing shell meta-characters. |
---|
1042 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1043 | ac_configure_args= |
---|
1044 | ac_configure_args0= |
---|
1045 | ac_configure_args1= |
---|
1046 | ac_sep= |
---|
1047 | ac_must_keep_next=false |
---|
1048 | for ac_pass in 1 2 |
---|
1049 | do |
---|
1050 | for ac_arg |
---|
1051 | do |
---|
1052 | case $ac_arg in |
---|
1053 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1054 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1055 | | -silent | --silent | --silen | --sile | --sil) |
---|
1056 | continue ;; |
---|
1057 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1058 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1059 | esac |
---|
1060 | case $ac_pass in |
---|
1061 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1062 | 2) |
---|
1063 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1064 | if test $ac_must_keep_next = true; then |
---|
1065 | ac_must_keep_next=false # Got value, back to normal. |
---|
1066 | else |
---|
1067 | case $ac_arg in |
---|
1068 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1069 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1070 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1071 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1072 | case "$ac_configure_args0 " in |
---|
1073 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1074 | esac |
---|
1075 | ;; |
---|
1076 | -* ) ac_must_keep_next=true ;; |
---|
1077 | esac |
---|
1078 | fi |
---|
1079 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1080 | # Get rid of the leading space. |
---|
1081 | ac_sep=" " |
---|
1082 | ;; |
---|
1083 | esac |
---|
1084 | done |
---|
1085 | done |
---|
1086 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1087 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1088 | |
---|
1089 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1090 | # config.log. We remove comments because anyway the quotes in there |
---|
1091 | # would cause problems or look ugly. |
---|
1092 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1093 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1094 | trap 'exit_status=$? |
---|
1095 | # Save into config.log some information that might help in debugging. |
---|
1096 | { |
---|
1097 | echo |
---|
1098 | |
---|
1099 | cat <<\_ASBOX |
---|
1100 | ## ---------------- ## |
---|
1101 | ## Cache variables. ## |
---|
1102 | ## ---------------- ## |
---|
1103 | _ASBOX |
---|
1104 | echo |
---|
1105 | # The following way of writing the cache mishandles newlines in values, |
---|
1106 | { |
---|
1107 | (set) 2>&1 | |
---|
1108 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1109 | *ac_space=\ *) |
---|
1110 | sed -n \ |
---|
1111 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1112 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1113 | ;; |
---|
1114 | *) |
---|
1115 | sed -n \ |
---|
1116 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1117 | ;; |
---|
1118 | esac; |
---|
1119 | } |
---|
1120 | echo |
---|
1121 | |
---|
1122 | cat <<\_ASBOX |
---|
1123 | ## ----------------- ## |
---|
1124 | ## Output variables. ## |
---|
1125 | ## ----------------- ## |
---|
1126 | _ASBOX |
---|
1127 | echo |
---|
1128 | for ac_var in $ac_subst_vars |
---|
1129 | do |
---|
1130 | eval ac_val=$`echo $ac_var` |
---|
1131 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1132 | done | sort |
---|
1133 | echo |
---|
1134 | |
---|
1135 | if test -n "$ac_subst_files"; then |
---|
1136 | cat <<\_ASBOX |
---|
1137 | ## ------------- ## |
---|
1138 | ## Output files. ## |
---|
1139 | ## ------------- ## |
---|
1140 | _ASBOX |
---|
1141 | echo |
---|
1142 | for ac_var in $ac_subst_files |
---|
1143 | do |
---|
1144 | eval ac_val=$`echo $ac_var` |
---|
1145 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1146 | done | sort |
---|
1147 | echo |
---|
1148 | fi |
---|
1149 | |
---|
1150 | if test -s confdefs.h; then |
---|
1151 | cat <<\_ASBOX |
---|
1152 | ## ----------- ## |
---|
1153 | ## confdefs.h. ## |
---|
1154 | ## ----------- ## |
---|
1155 | _ASBOX |
---|
1156 | echo |
---|
1157 | sed "/^$/d" confdefs.h | sort |
---|
1158 | echo |
---|
1159 | fi |
---|
1160 | test "$ac_signal" != 0 && |
---|
1161 | echo "$as_me: caught signal $ac_signal" |
---|
1162 | echo "$as_me: exit $exit_status" |
---|
1163 | } >&5 |
---|
1164 | rm -f core *.core && |
---|
1165 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1166 | exit $exit_status |
---|
1167 | ' 0 |
---|
1168 | for ac_signal in 1 2 13 15; do |
---|
1169 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1170 | done |
---|
1171 | ac_signal=0 |
---|
1172 | |
---|
1173 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1174 | rm -rf conftest* confdefs.h |
---|
1175 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1176 | echo >confdefs.h |
---|
1177 | |
---|
1178 | # Predefined preprocessor variables. |
---|
1179 | |
---|
1180 | cat >>confdefs.h <<_ACEOF |
---|
1181 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1182 | _ACEOF |
---|
1183 | |
---|
1184 | |
---|
1185 | cat >>confdefs.h <<_ACEOF |
---|
1186 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1187 | _ACEOF |
---|
1188 | |
---|
1189 | |
---|
1190 | cat >>confdefs.h <<_ACEOF |
---|
1191 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1192 | _ACEOF |
---|
1193 | |
---|
1194 | |
---|
1195 | cat >>confdefs.h <<_ACEOF |
---|
1196 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1197 | _ACEOF |
---|
1198 | |
---|
1199 | |
---|
1200 | cat >>confdefs.h <<_ACEOF |
---|
1201 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1202 | _ACEOF |
---|
1203 | |
---|
1204 | |
---|
1205 | # Let the site file select an alternate cache file if it wants to. |
---|
1206 | # Prefer explicitly selected file to automatically selected ones. |
---|
1207 | if test -z "$CONFIG_SITE"; then |
---|
1208 | if test "x$prefix" != xNONE; then |
---|
1209 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1210 | else |
---|
1211 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1212 | fi |
---|
1213 | fi |
---|
1214 | for ac_site_file in $CONFIG_SITE; do |
---|
1215 | if test -r "$ac_site_file"; then |
---|
1216 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1217 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1218 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1219 | . "$ac_site_file" |
---|
1220 | fi |
---|
1221 | done |
---|
1222 | |
---|
1223 | if test -r "$cache_file"; then |
---|
1224 | # Some versions of bash will fail to source /dev/null (special |
---|
1225 | # files actually), so we avoid doing that. |
---|
1226 | if test -f "$cache_file"; then |
---|
1227 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1228 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1229 | case $cache_file in |
---|
1230 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1231 | *) . ./$cache_file;; |
---|
1232 | esac |
---|
1233 | fi |
---|
1234 | else |
---|
1235 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1236 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1237 | >$cache_file |
---|
1238 | fi |
---|
1239 | |
---|
1240 | # Check that the precious variables saved in the cache have kept the same |
---|
1241 | # value. |
---|
1242 | ac_cache_corrupted=false |
---|
1243 | for ac_var in `(set) 2>&1 | |
---|
1244 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1245 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1246 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1247 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1248 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1249 | case $ac_old_set,$ac_new_set in |
---|
1250 | set,) |
---|
1251 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1252 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1253 | ac_cache_corrupted=: ;; |
---|
1254 | ,set) |
---|
1255 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1256 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1257 | ac_cache_corrupted=: ;; |
---|
1258 | ,);; |
---|
1259 | *) |
---|
1260 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1262 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1263 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1264 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1265 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1266 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1267 | ac_cache_corrupted=: |
---|
1268 | fi;; |
---|
1269 | esac |
---|
1270 | # Pass precious variables to config.status. |
---|
1271 | if test "$ac_new_set" = set; then |
---|
1272 | case $ac_new_val in |
---|
1273 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1274 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1275 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1276 | esac |
---|
1277 | case " $ac_configure_args " in |
---|
1278 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1279 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1280 | esac |
---|
1281 | fi |
---|
1282 | done |
---|
1283 | if $ac_cache_corrupted; then |
---|
1284 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1285 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1286 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1287 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1288 | { (exit 1); exit 1; }; } |
---|
1289 | fi |
---|
1290 | |
---|
1291 | ac_ext=c |
---|
1292 | ac_cpp='$CPP $CPPFLAGS' |
---|
1293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1296 | |
---|
1297 | |
---|
1298 | |
---|
1299 | |
---|
1300 | |
---|
1301 | |
---|
1302 | |
---|
1303 | |
---|
1304 | |
---|
1305 | |
---|
1306 | |
---|
1307 | |
---|
1308 | |
---|
1309 | |
---|
1310 | |
---|
1311 | |
---|
1312 | |
---|
1313 | |
---|
1314 | |
---|
1315 | |
---|
1316 | |
---|
1317 | |
---|
1318 | |
---|
1319 | |
---|
1320 | |
---|
1321 | |
---|
1322 | |
---|
1323 | am__api_version="1.7" |
---|
1324 | ac_aux_dir= |
---|
1325 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1326 | if test -f $ac_dir/install-sh; then |
---|
1327 | ac_aux_dir=$ac_dir |
---|
1328 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1329 | break |
---|
1330 | elif test -f $ac_dir/install.sh; then |
---|
1331 | ac_aux_dir=$ac_dir |
---|
1332 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1333 | break |
---|
1334 | elif test -f $ac_dir/shtool; then |
---|
1335 | ac_aux_dir=$ac_dir |
---|
1336 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1337 | break |
---|
1338 | fi |
---|
1339 | done |
---|
1340 | if test -z "$ac_aux_dir"; then |
---|
1341 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1342 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1343 | { (exit 1); exit 1; }; } |
---|
1344 | fi |
---|
1345 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1346 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1347 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1348 | |
---|
1349 | # Find a good install program. We prefer a C program (faster), |
---|
1350 | # so one script is as good as another. But avoid the broken or |
---|
1351 | # incompatible versions: |
---|
1352 | # SysV /etc/install, /usr/sbin/install |
---|
1353 | # SunOS /usr/etc/install |
---|
1354 | # IRIX /sbin/install |
---|
1355 | # AIX /bin/install |
---|
1356 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1357 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1358 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1359 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1360 | # OS/2's system install, which has a completely different semantic |
---|
1361 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1362 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1363 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1364 | if test -z "$INSTALL"; then |
---|
1365 | if test "${ac_cv_path_install+set}" = set; then |
---|
1366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1367 | else |
---|
1368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1369 | for as_dir in $PATH |
---|
1370 | do |
---|
1371 | IFS=$as_save_IFS |
---|
1372 | test -z "$as_dir" && as_dir=. |
---|
1373 | # Account for people who put trailing slashes in PATH elements. |
---|
1374 | case $as_dir/ in |
---|
1375 | ./ | .// | /cC/* | \ |
---|
1376 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1377 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1378 | /usr/ucb/* ) ;; |
---|
1379 | *) |
---|
1380 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1381 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1382 | # by default. |
---|
1383 | for ac_prog in ginstall scoinst install; do |
---|
1384 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1385 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1386 | if test $ac_prog = install && |
---|
1387 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1388 | # AIX install. It has an incompatible calling convention. |
---|
1389 | : |
---|
1390 | elif test $ac_prog = install && |
---|
1391 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1392 | # program-specific install script used by HP pwplus--don't use. |
---|
1393 | : |
---|
1394 | else |
---|
1395 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1396 | break 3 |
---|
1397 | fi |
---|
1398 | fi |
---|
1399 | done |
---|
1400 | done |
---|
1401 | ;; |
---|
1402 | esac |
---|
1403 | done |
---|
1404 | |
---|
1405 | |
---|
1406 | fi |
---|
1407 | if test "${ac_cv_path_install+set}" = set; then |
---|
1408 | INSTALL=$ac_cv_path_install |
---|
1409 | else |
---|
1410 | # As a last resort, use the slow shell script. We don't cache a |
---|
1411 | # path for INSTALL within a source directory, because that will |
---|
1412 | # break other packages using the cache if that directory is |
---|
1413 | # removed, or if the path is relative. |
---|
1414 | INSTALL=$ac_install_sh |
---|
1415 | fi |
---|
1416 | fi |
---|
1417 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1418 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1419 | |
---|
1420 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1421 | # It thinks the first close brace ends the variable substitution. |
---|
1422 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1423 | |
---|
1424 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1425 | |
---|
1426 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1427 | |
---|
1428 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1429 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1430 | # Just in case |
---|
1431 | sleep 1 |
---|
1432 | echo timestamp > conftest.file |
---|
1433 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1434 | # arguments. Must try -L first in case configure is actually a |
---|
1435 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1436 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1437 | # directory). |
---|
1438 | if ( |
---|
1439 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1440 | if test "$*" = "X"; then |
---|
1441 | # -L didn't work. |
---|
1442 | set X `ls -t $srcdir/configure conftest.file` |
---|
1443 | fi |
---|
1444 | rm -f conftest.file |
---|
1445 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1446 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1447 | |
---|
1448 | # If neither matched, then we have a broken ls. This can happen |
---|
1449 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1450 | # broken ls alias from the environment. This has actually |
---|
1451 | # happened. Such a system could not be considered "sane". |
---|
1452 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1453 | alias in your environment" >&5 |
---|
1454 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1455 | alias in your environment" >&2;} |
---|
1456 | { (exit 1); exit 1; }; } |
---|
1457 | fi |
---|
1458 | |
---|
1459 | test "$2" = conftest.file |
---|
1460 | ) |
---|
1461 | then |
---|
1462 | # Ok. |
---|
1463 | : |
---|
1464 | else |
---|
1465 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1466 | Check your system clock" >&5 |
---|
1467 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1468 | Check your system clock" >&2;} |
---|
1469 | { (exit 1); exit 1; }; } |
---|
1470 | fi |
---|
1471 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1472 | echo "${ECHO_T}yes" >&6 |
---|
1473 | test "$program_prefix" != NONE && |
---|
1474 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1475 | # Use a double $ so make ignores it. |
---|
1476 | test "$program_suffix" != NONE && |
---|
1477 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1478 | # Double any \ or $. echo might interpret backslashes. |
---|
1479 | # By default was `s,x,x', remove it if useless. |
---|
1480 | cat <<\_ACEOF >conftest.sed |
---|
1481 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1482 | _ACEOF |
---|
1483 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1484 | rm conftest.sed |
---|
1485 | |
---|
1486 | |
---|
1487 | # expand $ac_aux_dir to an absolute path |
---|
1488 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1489 | |
---|
1490 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1491 | # Use eval to expand $SHELL |
---|
1492 | if eval "$MISSING --run true"; then |
---|
1493 | am_missing_run="$MISSING --run " |
---|
1494 | else |
---|
1495 | am_missing_run= |
---|
1496 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1497 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1498 | fi |
---|
1499 | |
---|
1500 | for ac_prog in gawk mawk nawk awk |
---|
1501 | do |
---|
1502 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1503 | set dummy $ac_prog; ac_word=$2 |
---|
1504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1506 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1508 | else |
---|
1509 | if test -n "$AWK"; then |
---|
1510 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1511 | else |
---|
1512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1513 | for as_dir in $PATH |
---|
1514 | do |
---|
1515 | IFS=$as_save_IFS |
---|
1516 | test -z "$as_dir" && as_dir=. |
---|
1517 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1519 | ac_cv_prog_AWK="$ac_prog" |
---|
1520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1521 | break 2 |
---|
1522 | fi |
---|
1523 | done |
---|
1524 | done |
---|
1525 | |
---|
1526 | fi |
---|
1527 | fi |
---|
1528 | AWK=$ac_cv_prog_AWK |
---|
1529 | if test -n "$AWK"; then |
---|
1530 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1531 | echo "${ECHO_T}$AWK" >&6 |
---|
1532 | else |
---|
1533 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1534 | echo "${ECHO_T}no" >&6 |
---|
1535 | fi |
---|
1536 | |
---|
1537 | test -n "$AWK" && break |
---|
1538 | done |
---|
1539 | |
---|
1540 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1541 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1542 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1543 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1545 | else |
---|
1546 | cat >conftest.make <<\_ACEOF |
---|
1547 | all: |
---|
1548 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1549 | _ACEOF |
---|
1550 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1551 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1552 | if test -n "$ac_maketemp"; then |
---|
1553 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1554 | else |
---|
1555 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1556 | fi |
---|
1557 | rm -f conftest.make |
---|
1558 | fi |
---|
1559 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1560 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1561 | echo "${ECHO_T}yes" >&6 |
---|
1562 | SET_MAKE= |
---|
1563 | else |
---|
1564 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1565 | echo "${ECHO_T}no" >&6 |
---|
1566 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1567 | fi |
---|
1568 | |
---|
1569 | rm -rf .tst 2>/dev/null |
---|
1570 | mkdir .tst 2>/dev/null |
---|
1571 | if test -d .tst; then |
---|
1572 | am__leading_dot=. |
---|
1573 | else |
---|
1574 | am__leading_dot=_ |
---|
1575 | fi |
---|
1576 | rmdir .tst 2>/dev/null |
---|
1577 | |
---|
1578 | # test to see if srcdir already configured |
---|
1579 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1580 | test -f $srcdir/config.status; then |
---|
1581 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1582 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1583 | { (exit 1); exit 1; }; } |
---|
1584 | fi |
---|
1585 | |
---|
1586 | # test whether we have cygpath |
---|
1587 | if test -z "$CYGPATH_W"; then |
---|
1588 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1589 | CYGPATH_W='cygpath -w' |
---|
1590 | else |
---|
1591 | CYGPATH_W=echo |
---|
1592 | fi |
---|
1593 | fi |
---|
1594 | |
---|
1595 | |
---|
1596 | # Define the identity of the package. |
---|
1597 | PACKAGE='orxonox' |
---|
1598 | VERSION='0.1-pre-alpha' |
---|
1599 | |
---|
1600 | |
---|
1601 | cat >>confdefs.h <<_ACEOF |
---|
1602 | #define PACKAGE "$PACKAGE" |
---|
1603 | _ACEOF |
---|
1604 | |
---|
1605 | |
---|
1606 | cat >>confdefs.h <<_ACEOF |
---|
1607 | #define VERSION "$VERSION" |
---|
1608 | _ACEOF |
---|
1609 | |
---|
1610 | # Some tools Automake needs. |
---|
1611 | |
---|
1612 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1613 | |
---|
1614 | |
---|
1615 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1616 | |
---|
1617 | |
---|
1618 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1619 | |
---|
1620 | |
---|
1621 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1622 | |
---|
1623 | |
---|
1624 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1625 | |
---|
1626 | |
---|
1627 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1628 | |
---|
1629 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1630 | |
---|
1631 | # Installed binaries are usually stripped using `strip' when the user |
---|
1632 | # run `make install-strip'. However `strip' might not be the right |
---|
1633 | # tool to use in cross-compilation environments, therefore Automake |
---|
1634 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1635 | if test "$cross_compiling" != no; then |
---|
1636 | if test -n "$ac_tool_prefix"; then |
---|
1637 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1638 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1641 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1643 | else |
---|
1644 | if test -n "$STRIP"; then |
---|
1645 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1646 | else |
---|
1647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1648 | for as_dir in $PATH |
---|
1649 | do |
---|
1650 | IFS=$as_save_IFS |
---|
1651 | test -z "$as_dir" && as_dir=. |
---|
1652 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1654 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1656 | break 2 |
---|
1657 | fi |
---|
1658 | done |
---|
1659 | done |
---|
1660 | |
---|
1661 | fi |
---|
1662 | fi |
---|
1663 | STRIP=$ac_cv_prog_STRIP |
---|
1664 | if test -n "$STRIP"; then |
---|
1665 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1666 | echo "${ECHO_T}$STRIP" >&6 |
---|
1667 | else |
---|
1668 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1669 | echo "${ECHO_T}no" >&6 |
---|
1670 | fi |
---|
1671 | |
---|
1672 | fi |
---|
1673 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1674 | ac_ct_STRIP=$STRIP |
---|
1675 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1676 | set dummy strip; ac_word=$2 |
---|
1677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1679 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1681 | else |
---|
1682 | if test -n "$ac_ct_STRIP"; then |
---|
1683 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1684 | else |
---|
1685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1686 | for as_dir in $PATH |
---|
1687 | do |
---|
1688 | IFS=$as_save_IFS |
---|
1689 | test -z "$as_dir" && as_dir=. |
---|
1690 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1691 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1692 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1694 | break 2 |
---|
1695 | fi |
---|
1696 | done |
---|
1697 | done |
---|
1698 | |
---|
1699 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1700 | fi |
---|
1701 | fi |
---|
1702 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1703 | if test -n "$ac_ct_STRIP"; then |
---|
1704 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1705 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1706 | else |
---|
1707 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1708 | echo "${ECHO_T}no" >&6 |
---|
1709 | fi |
---|
1710 | |
---|
1711 | STRIP=$ac_ct_STRIP |
---|
1712 | else |
---|
1713 | STRIP="$ac_cv_prog_STRIP" |
---|
1714 | fi |
---|
1715 | |
---|
1716 | fi |
---|
1717 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1718 | |
---|
1719 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1720 | # some platforms. |
---|
1721 | |
---|
1722 | |
---|
1723 | |
---|
1724 | |
---|
1725 | ac_config_headers="$ac_config_headers config.h" |
---|
1726 | |
---|
1727 | |
---|
1728 | echo "$as_me:$LINENO: checking for mingw" >&5 |
---|
1729 | echo $ECHO_N "checking for mingw... $ECHO_C" >&6 |
---|
1730 | case `uname` in |
---|
1731 | *MINGW*) |
---|
1732 | mingw=yes |
---|
1733 | MSBITFIELDS="-mms-bitfields" |
---|
1734 | MWINDOWS="-mwindows" |
---|
1735 | ;; |
---|
1736 | *) |
---|
1737 | mingw=no |
---|
1738 | ;; |
---|
1739 | esac |
---|
1740 | echo "$as_me:$LINENO: result: $mingw" >&5 |
---|
1741 | echo "${ECHO_T}$mingw" >&6 |
---|
1742 | |
---|
1743 | |
---|
1744 | |
---|
1745 | # Checks for programs. |
---|
1746 | ac_ext=cc |
---|
1747 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1748 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1749 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1750 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1751 | if test -n "$ac_tool_prefix"; then |
---|
1752 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1753 | do |
---|
1754 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1755 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1758 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1760 | else |
---|
1761 | if test -n "$CXX"; then |
---|
1762 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1763 | else |
---|
1764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1765 | for as_dir in $PATH |
---|
1766 | do |
---|
1767 | IFS=$as_save_IFS |
---|
1768 | test -z "$as_dir" && as_dir=. |
---|
1769 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1771 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1773 | break 2 |
---|
1774 | fi |
---|
1775 | done |
---|
1776 | done |
---|
1777 | |
---|
1778 | fi |
---|
1779 | fi |
---|
1780 | CXX=$ac_cv_prog_CXX |
---|
1781 | if test -n "$CXX"; then |
---|
1782 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1783 | echo "${ECHO_T}$CXX" >&6 |
---|
1784 | else |
---|
1785 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1786 | echo "${ECHO_T}no" >&6 |
---|
1787 | fi |
---|
1788 | |
---|
1789 | test -n "$CXX" && break |
---|
1790 | done |
---|
1791 | fi |
---|
1792 | if test -z "$CXX"; then |
---|
1793 | ac_ct_CXX=$CXX |
---|
1794 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1795 | do |
---|
1796 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1797 | set dummy $ac_prog; ac_word=$2 |
---|
1798 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1800 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1802 | else |
---|
1803 | if test -n "$ac_ct_CXX"; then |
---|
1804 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1805 | else |
---|
1806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1807 | for as_dir in $PATH |
---|
1808 | do |
---|
1809 | IFS=$as_save_IFS |
---|
1810 | test -z "$as_dir" && as_dir=. |
---|
1811 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1812 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1813 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1815 | break 2 |
---|
1816 | fi |
---|
1817 | done |
---|
1818 | done |
---|
1819 | |
---|
1820 | fi |
---|
1821 | fi |
---|
1822 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1823 | if test -n "$ac_ct_CXX"; then |
---|
1824 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1825 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1826 | else |
---|
1827 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1828 | echo "${ECHO_T}no" >&6 |
---|
1829 | fi |
---|
1830 | |
---|
1831 | test -n "$ac_ct_CXX" && break |
---|
1832 | done |
---|
1833 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1834 | |
---|
1835 | CXX=$ac_ct_CXX |
---|
1836 | fi |
---|
1837 | |
---|
1838 | |
---|
1839 | # Provide some information about the compiler. |
---|
1840 | echo "$as_me:$LINENO:" \ |
---|
1841 | "checking for C++ compiler version" >&5 |
---|
1842 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1843 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1844 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1845 | ac_status=$? |
---|
1846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1847 | (exit $ac_status); } |
---|
1848 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1849 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1850 | ac_status=$? |
---|
1851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1852 | (exit $ac_status); } |
---|
1853 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1854 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1855 | ac_status=$? |
---|
1856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1857 | (exit $ac_status); } |
---|
1858 | |
---|
1859 | cat >conftest.$ac_ext <<_ACEOF |
---|
1860 | /* confdefs.h. */ |
---|
1861 | _ACEOF |
---|
1862 | cat confdefs.h >>conftest.$ac_ext |
---|
1863 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1864 | /* end confdefs.h. */ |
---|
1865 | |
---|
1866 | int |
---|
1867 | main () |
---|
1868 | { |
---|
1869 | |
---|
1870 | ; |
---|
1871 | return 0; |
---|
1872 | } |
---|
1873 | _ACEOF |
---|
1874 | ac_clean_files_save=$ac_clean_files |
---|
1875 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1876 | # Try to create an executable without -o first, disregard a.out. |
---|
1877 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1878 | # of exeext. |
---|
1879 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1880 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1881 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1882 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1883 | (eval $ac_link_default) 2>&5 |
---|
1884 | ac_status=$? |
---|
1885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1886 | (exit $ac_status); }; then |
---|
1887 | # Find the output, starting from the most likely. This scheme is |
---|
1888 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1889 | # resort. |
---|
1890 | |
---|
1891 | # Be careful to initialize this variable, since it used to be cached. |
---|
1892 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1893 | ac_cv_exeext= |
---|
1894 | # b.out is created by i960 compilers. |
---|
1895 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
1896 | do |
---|
1897 | test -f "$ac_file" || continue |
---|
1898 | case $ac_file in |
---|
1899 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
1900 | ;; |
---|
1901 | conftest.$ac_ext ) |
---|
1902 | # This is the source file. |
---|
1903 | ;; |
---|
1904 | [ab].out ) |
---|
1905 | # We found the default executable, but exeext='' is most |
---|
1906 | # certainly right. |
---|
1907 | break;; |
---|
1908 | *.* ) |
---|
1909 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1910 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
1911 | # but it would be cool to find out if it's true. Does anybody |
---|
1912 | # maintain Libtool? --akim. |
---|
1913 | export ac_cv_exeext |
---|
1914 | break;; |
---|
1915 | * ) |
---|
1916 | break;; |
---|
1917 | esac |
---|
1918 | done |
---|
1919 | else |
---|
1920 | echo "$as_me: failed program was:" >&5 |
---|
1921 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1922 | |
---|
1923 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
1924 | See \`config.log' for more details." >&5 |
---|
1925 | echo "$as_me: error: C++ compiler cannot create executables |
---|
1926 | See \`config.log' for more details." >&2;} |
---|
1927 | { (exit 77); exit 77; }; } |
---|
1928 | fi |
---|
1929 | |
---|
1930 | ac_exeext=$ac_cv_exeext |
---|
1931 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
1932 | echo "${ECHO_T}$ac_file" >&6 |
---|
1933 | |
---|
1934 | # Check the compiler produces executables we can run. If not, either |
---|
1935 | # the compiler is broken, or we cross compile. |
---|
1936 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
1937 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
1938 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
1939 | # If not cross compiling, check that we can run a simple program. |
---|
1940 | if test "$cross_compiling" != yes; then |
---|
1941 | if { ac_try='./$ac_file' |
---|
1942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1943 | (eval $ac_try) 2>&5 |
---|
1944 | ac_status=$? |
---|
1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1946 | (exit $ac_status); }; }; then |
---|
1947 | cross_compiling=no |
---|
1948 | else |
---|
1949 | if test "$cross_compiling" = maybe; then |
---|
1950 | cross_compiling=yes |
---|
1951 | else |
---|
1952 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
1953 | If you meant to cross compile, use \`--host'. |
---|
1954 | See \`config.log' for more details." >&5 |
---|
1955 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
1956 | If you meant to cross compile, use \`--host'. |
---|
1957 | See \`config.log' for more details." >&2;} |
---|
1958 | { (exit 1); exit 1; }; } |
---|
1959 | fi |
---|
1960 | fi |
---|
1961 | fi |
---|
1962 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1963 | echo "${ECHO_T}yes" >&6 |
---|
1964 | |
---|
1965 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
1966 | ac_clean_files=$ac_clean_files_save |
---|
1967 | # Check the compiler produces executables we can run. If not, either |
---|
1968 | # the compiler is broken, or we cross compile. |
---|
1969 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
1970 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
1971 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
1972 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
1973 | |
---|
1974 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
1975 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
1976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
1977 | (eval $ac_link) 2>&5 |
---|
1978 | ac_status=$? |
---|
1979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1980 | (exit $ac_status); }; then |
---|
1981 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
1982 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
1983 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
1984 | # `rm'. |
---|
1985 | for ac_file in conftest.exe conftest conftest.*; do |
---|
1986 | test -f "$ac_file" || continue |
---|
1987 | case $ac_file in |
---|
1988 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
1989 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1990 | export ac_cv_exeext |
---|
1991 | break;; |
---|
1992 | * ) break;; |
---|
1993 | esac |
---|
1994 | done |
---|
1995 | else |
---|
1996 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
1997 | See \`config.log' for more details." >&5 |
---|
1998 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
1999 | See \`config.log' for more details." >&2;} |
---|
2000 | { (exit 1); exit 1; }; } |
---|
2001 | fi |
---|
2002 | |
---|
2003 | rm -f conftest$ac_cv_exeext |
---|
2004 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2005 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2006 | |
---|
2007 | rm -f conftest.$ac_ext |
---|
2008 | EXEEXT=$ac_cv_exeext |
---|
2009 | ac_exeext=$EXEEXT |
---|
2010 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2011 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2012 | if test "${ac_cv_objext+set}" = set; then |
---|
2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2014 | else |
---|
2015 | cat >conftest.$ac_ext <<_ACEOF |
---|
2016 | /* confdefs.h. */ |
---|
2017 | _ACEOF |
---|
2018 | cat confdefs.h >>conftest.$ac_ext |
---|
2019 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2020 | /* end confdefs.h. */ |
---|
2021 | |
---|
2022 | int |
---|
2023 | main () |
---|
2024 | { |
---|
2025 | |
---|
2026 | ; |
---|
2027 | return 0; |
---|
2028 | } |
---|
2029 | _ACEOF |
---|
2030 | rm -f conftest.o conftest.obj |
---|
2031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2032 | (eval $ac_compile) 2>&5 |
---|
2033 | ac_status=$? |
---|
2034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2035 | (exit $ac_status); }; then |
---|
2036 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2037 | case $ac_file in |
---|
2038 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2039 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2040 | break;; |
---|
2041 | esac |
---|
2042 | done |
---|
2043 | else |
---|
2044 | echo "$as_me: failed program was:" >&5 |
---|
2045 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2046 | |
---|
2047 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2048 | See \`config.log' for more details." >&5 |
---|
2049 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2050 | See \`config.log' for more details." >&2;} |
---|
2051 | { (exit 1); exit 1; }; } |
---|
2052 | fi |
---|
2053 | |
---|
2054 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2055 | fi |
---|
2056 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2057 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2058 | OBJEXT=$ac_cv_objext |
---|
2059 | ac_objext=$OBJEXT |
---|
2060 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2061 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2062 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2064 | else |
---|
2065 | cat >conftest.$ac_ext <<_ACEOF |
---|
2066 | /* confdefs.h. */ |
---|
2067 | _ACEOF |
---|
2068 | cat confdefs.h >>conftest.$ac_ext |
---|
2069 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2070 | /* end confdefs.h. */ |
---|
2071 | |
---|
2072 | int |
---|
2073 | main () |
---|
2074 | { |
---|
2075 | #ifndef __GNUC__ |
---|
2076 | choke me |
---|
2077 | #endif |
---|
2078 | |
---|
2079 | ; |
---|
2080 | return 0; |
---|
2081 | } |
---|
2082 | _ACEOF |
---|
2083 | rm -f conftest.$ac_objext |
---|
2084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2085 | (eval $ac_compile) 2>conftest.er1 |
---|
2086 | ac_status=$? |
---|
2087 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2088 | rm -f conftest.er1 |
---|
2089 | cat conftest.err >&5 |
---|
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2091 | (exit $ac_status); } && |
---|
2092 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2093 | || test ! -s conftest.err' |
---|
2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2095 | (eval $ac_try) 2>&5 |
---|
2096 | ac_status=$? |
---|
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2098 | (exit $ac_status); }; } && |
---|
2099 | { ac_try='test -s conftest.$ac_objext' |
---|
2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2101 | (eval $ac_try) 2>&5 |
---|
2102 | ac_status=$? |
---|
2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2104 | (exit $ac_status); }; }; then |
---|
2105 | ac_compiler_gnu=yes |
---|
2106 | else |
---|
2107 | echo "$as_me: failed program was:" >&5 |
---|
2108 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2109 | |
---|
2110 | ac_compiler_gnu=no |
---|
2111 | fi |
---|
2112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2113 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2114 | |
---|
2115 | fi |
---|
2116 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2117 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2118 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2119 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2120 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2121 | CXXFLAGS="-g" |
---|
2122 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2123 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2124 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2126 | else |
---|
2127 | cat >conftest.$ac_ext <<_ACEOF |
---|
2128 | /* confdefs.h. */ |
---|
2129 | _ACEOF |
---|
2130 | cat confdefs.h >>conftest.$ac_ext |
---|
2131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2132 | /* end confdefs.h. */ |
---|
2133 | |
---|
2134 | int |
---|
2135 | main () |
---|
2136 | { |
---|
2137 | |
---|
2138 | ; |
---|
2139 | return 0; |
---|
2140 | } |
---|
2141 | _ACEOF |
---|
2142 | rm -f conftest.$ac_objext |
---|
2143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2144 | (eval $ac_compile) 2>conftest.er1 |
---|
2145 | ac_status=$? |
---|
2146 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2147 | rm -f conftest.er1 |
---|
2148 | cat conftest.err >&5 |
---|
2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2150 | (exit $ac_status); } && |
---|
2151 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2152 | || test ! -s conftest.err' |
---|
2153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2154 | (eval $ac_try) 2>&5 |
---|
2155 | ac_status=$? |
---|
2156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2157 | (exit $ac_status); }; } && |
---|
2158 | { ac_try='test -s conftest.$ac_objext' |
---|
2159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2160 | (eval $ac_try) 2>&5 |
---|
2161 | ac_status=$? |
---|
2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2163 | (exit $ac_status); }; }; then |
---|
2164 | ac_cv_prog_cxx_g=yes |
---|
2165 | else |
---|
2166 | echo "$as_me: failed program was:" >&5 |
---|
2167 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2168 | |
---|
2169 | ac_cv_prog_cxx_g=no |
---|
2170 | fi |
---|
2171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2172 | fi |
---|
2173 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2174 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2175 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2176 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2177 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2178 | if test "$GXX" = yes; then |
---|
2179 | CXXFLAGS="-g -O2" |
---|
2180 | else |
---|
2181 | CXXFLAGS="-g" |
---|
2182 | fi |
---|
2183 | else |
---|
2184 | if test "$GXX" = yes; then |
---|
2185 | CXXFLAGS="-O2" |
---|
2186 | else |
---|
2187 | CXXFLAGS= |
---|
2188 | fi |
---|
2189 | fi |
---|
2190 | for ac_declaration in \ |
---|
2191 | '' \ |
---|
2192 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2193 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2194 | 'extern "C" void exit (int) throw ();' \ |
---|
2195 | 'extern "C" void exit (int);' \ |
---|
2196 | 'void exit (int);' |
---|
2197 | do |
---|
2198 | cat >conftest.$ac_ext <<_ACEOF |
---|
2199 | /* confdefs.h. */ |
---|
2200 | _ACEOF |
---|
2201 | cat confdefs.h >>conftest.$ac_ext |
---|
2202 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2203 | /* end confdefs.h. */ |
---|
2204 | $ac_declaration |
---|
2205 | #include <stdlib.h> |
---|
2206 | int |
---|
2207 | main () |
---|
2208 | { |
---|
2209 | exit (42); |
---|
2210 | ; |
---|
2211 | return 0; |
---|
2212 | } |
---|
2213 | _ACEOF |
---|
2214 | rm -f conftest.$ac_objext |
---|
2215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2216 | (eval $ac_compile) 2>conftest.er1 |
---|
2217 | ac_status=$? |
---|
2218 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2219 | rm -f conftest.er1 |
---|
2220 | cat conftest.err >&5 |
---|
2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2222 | (exit $ac_status); } && |
---|
2223 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2224 | || test ! -s conftest.err' |
---|
2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2226 | (eval $ac_try) 2>&5 |
---|
2227 | ac_status=$? |
---|
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2229 | (exit $ac_status); }; } && |
---|
2230 | { ac_try='test -s conftest.$ac_objext' |
---|
2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2232 | (eval $ac_try) 2>&5 |
---|
2233 | ac_status=$? |
---|
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2235 | (exit $ac_status); }; }; then |
---|
2236 | : |
---|
2237 | else |
---|
2238 | echo "$as_me: failed program was:" >&5 |
---|
2239 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2240 | |
---|
2241 | continue |
---|
2242 | fi |
---|
2243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2244 | cat >conftest.$ac_ext <<_ACEOF |
---|
2245 | /* confdefs.h. */ |
---|
2246 | _ACEOF |
---|
2247 | cat confdefs.h >>conftest.$ac_ext |
---|
2248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2249 | /* end confdefs.h. */ |
---|
2250 | $ac_declaration |
---|
2251 | int |
---|
2252 | main () |
---|
2253 | { |
---|
2254 | exit (42); |
---|
2255 | ; |
---|
2256 | return 0; |
---|
2257 | } |
---|
2258 | _ACEOF |
---|
2259 | rm -f conftest.$ac_objext |
---|
2260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2261 | (eval $ac_compile) 2>conftest.er1 |
---|
2262 | ac_status=$? |
---|
2263 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2264 | rm -f conftest.er1 |
---|
2265 | cat conftest.err >&5 |
---|
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2267 | (exit $ac_status); } && |
---|
2268 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2269 | || test ! -s conftest.err' |
---|
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2271 | (eval $ac_try) 2>&5 |
---|
2272 | ac_status=$? |
---|
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2274 | (exit $ac_status); }; } && |
---|
2275 | { ac_try='test -s conftest.$ac_objext' |
---|
2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2277 | (eval $ac_try) 2>&5 |
---|
2278 | ac_status=$? |
---|
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2280 | (exit $ac_status); }; }; then |
---|
2281 | break |
---|
2282 | else |
---|
2283 | echo "$as_me: failed program was:" >&5 |
---|
2284 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2285 | |
---|
2286 | fi |
---|
2287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2288 | done |
---|
2289 | rm -f conftest* |
---|
2290 | if test -n "$ac_declaration"; then |
---|
2291 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2292 | echo $ac_declaration >>confdefs.h |
---|
2293 | echo '#endif' >>confdefs.h |
---|
2294 | fi |
---|
2295 | |
---|
2296 | ac_ext=c |
---|
2297 | ac_cpp='$CPP $CPPFLAGS' |
---|
2298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2301 | DEPDIR="${am__leading_dot}deps" |
---|
2302 | |
---|
2303 | ac_config_commands="$ac_config_commands depfiles" |
---|
2304 | |
---|
2305 | |
---|
2306 | am_make=${MAKE-make} |
---|
2307 | cat > confinc << 'END' |
---|
2308 | am__doit: |
---|
2309 | @echo done |
---|
2310 | .PHONY: am__doit |
---|
2311 | END |
---|
2312 | # If we don't find an include directive, just comment out the code. |
---|
2313 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2314 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2315 | am__include="#" |
---|
2316 | am__quote= |
---|
2317 | _am_result=none |
---|
2318 | # First try GNU make style include. |
---|
2319 | echo "include confinc" > confmf |
---|
2320 | # We grep out `Entering directory' and `Leaving directory' |
---|
2321 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2322 | # In particular we don't look at `^make:' because GNU make might |
---|
2323 | # be invoked under some other name (usually "gmake"), in which |
---|
2324 | # case it prints its new name instead of `make'. |
---|
2325 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2326 | am__include=include |
---|
2327 | am__quote= |
---|
2328 | _am_result=GNU |
---|
2329 | fi |
---|
2330 | # Now try BSD make style include. |
---|
2331 | if test "$am__include" = "#"; then |
---|
2332 | echo '.include "confinc"' > confmf |
---|
2333 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2334 | am__include=.include |
---|
2335 | am__quote="\"" |
---|
2336 | _am_result=BSD |
---|
2337 | fi |
---|
2338 | fi |
---|
2339 | |
---|
2340 | |
---|
2341 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2342 | echo "${ECHO_T}$_am_result" >&6 |
---|
2343 | rm -f confinc confmf |
---|
2344 | |
---|
2345 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2346 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2347 | enableval="$enable_dependency_tracking" |
---|
2348 | |
---|
2349 | fi; |
---|
2350 | if test "x$enable_dependency_tracking" != xno; then |
---|
2351 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2352 | AMDEPBACKSLASH='\' |
---|
2353 | fi |
---|
2354 | |
---|
2355 | |
---|
2356 | if test "x$enable_dependency_tracking" != xno; then |
---|
2357 | AMDEP_TRUE= |
---|
2358 | AMDEP_FALSE='#' |
---|
2359 | else |
---|
2360 | AMDEP_TRUE='#' |
---|
2361 | AMDEP_FALSE= |
---|
2362 | fi |
---|
2363 | |
---|
2364 | |
---|
2365 | |
---|
2366 | |
---|
2367 | depcc="$CXX" am_compiler_list= |
---|
2368 | |
---|
2369 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2370 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2371 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2373 | else |
---|
2374 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2375 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2376 | # making bogus files that we don't know about and never remove. For |
---|
2377 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2378 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2379 | # in D'. |
---|
2380 | mkdir conftest.dir |
---|
2381 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2382 | # using a relative directory. |
---|
2383 | cp "$am_depcomp" conftest.dir |
---|
2384 | cd conftest.dir |
---|
2385 | # We will build objects and dependencies in a subdirectory because |
---|
2386 | # it helps to detect inapplicable dependency modes. For instance |
---|
2387 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2388 | # side effect of compilation, but ICC will put the dependencies in |
---|
2389 | # the current directory while Tru64 will put them in the object |
---|
2390 | # directory. |
---|
2391 | mkdir sub |
---|
2392 | |
---|
2393 | am_cv_CXX_dependencies_compiler_type=none |
---|
2394 | if test "$am_compiler_list" = ""; then |
---|
2395 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2396 | fi |
---|
2397 | for depmode in $am_compiler_list; do |
---|
2398 | # Setup a source with many dependencies, because some compilers |
---|
2399 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2400 | # we should not choose a depcomp mode which is confused by this. |
---|
2401 | # |
---|
2402 | # We need to recreate these files for each test, as the compiler may |
---|
2403 | # overwrite some of them when testing with obscure command lines. |
---|
2404 | # This happens at least with the AIX C compiler. |
---|
2405 | : > sub/conftest.c |
---|
2406 | for i in 1 2 3 4 5 6; do |
---|
2407 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2408 | : > sub/conftst$i.h |
---|
2409 | done |
---|
2410 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2411 | |
---|
2412 | case $depmode in |
---|
2413 | nosideeffect) |
---|
2414 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2415 | # only be used when explicitly requested |
---|
2416 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2417 | continue |
---|
2418 | else |
---|
2419 | break |
---|
2420 | fi |
---|
2421 | ;; |
---|
2422 | none) break ;; |
---|
2423 | esac |
---|
2424 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2425 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2426 | # handle `-M -o', and we need to detect this. |
---|
2427 | if depmode=$depmode \ |
---|
2428 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2429 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2430 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2431 | >/dev/null 2>conftest.err && |
---|
2432 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2433 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2434 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2435 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2436 | # (even with -Werror). So we grep stderr for any message |
---|
2437 | # that says an option was ignored. |
---|
2438 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
2439 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2440 | break |
---|
2441 | fi |
---|
2442 | fi |
---|
2443 | done |
---|
2444 | |
---|
2445 | cd .. |
---|
2446 | rm -rf conftest.dir |
---|
2447 | else |
---|
2448 | am_cv_CXX_dependencies_compiler_type=none |
---|
2449 | fi |
---|
2450 | |
---|
2451 | fi |
---|
2452 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2453 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2454 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2455 | |
---|
2456 | |
---|
2457 | |
---|
2458 | if |
---|
2459 | test "x$enable_dependency_tracking" != xno \ |
---|
2460 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2461 | am__fastdepCXX_TRUE= |
---|
2462 | am__fastdepCXX_FALSE='#' |
---|
2463 | else |
---|
2464 | am__fastdepCXX_TRUE='#' |
---|
2465 | am__fastdepCXX_FALSE= |
---|
2466 | fi |
---|
2467 | |
---|
2468 | |
---|
2469 | ac_ext=c |
---|
2470 | ac_cpp='$CPP $CPPFLAGS' |
---|
2471 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2472 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2473 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2474 | if test -n "$ac_tool_prefix"; then |
---|
2475 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2476 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2479 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2481 | else |
---|
2482 | if test -n "$CC"; then |
---|
2483 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2484 | else |
---|
2485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2486 | for as_dir in $PATH |
---|
2487 | do |
---|
2488 | IFS=$as_save_IFS |
---|
2489 | test -z "$as_dir" && as_dir=. |
---|
2490 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2491 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2492 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2494 | break 2 |
---|
2495 | fi |
---|
2496 | done |
---|
2497 | done |
---|
2498 | |
---|
2499 | fi |
---|
2500 | fi |
---|
2501 | CC=$ac_cv_prog_CC |
---|
2502 | if test -n "$CC"; then |
---|
2503 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2504 | echo "${ECHO_T}$CC" >&6 |
---|
2505 | else |
---|
2506 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2507 | echo "${ECHO_T}no" >&6 |
---|
2508 | fi |
---|
2509 | |
---|
2510 | fi |
---|
2511 | if test -z "$ac_cv_prog_CC"; then |
---|
2512 | ac_ct_CC=$CC |
---|
2513 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2514 | set dummy gcc; ac_word=$2 |
---|
2515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2517 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2519 | else |
---|
2520 | if test -n "$ac_ct_CC"; then |
---|
2521 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2522 | else |
---|
2523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2524 | for as_dir in $PATH |
---|
2525 | do |
---|
2526 | IFS=$as_save_IFS |
---|
2527 | test -z "$as_dir" && as_dir=. |
---|
2528 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2529 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2530 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2532 | break 2 |
---|
2533 | fi |
---|
2534 | done |
---|
2535 | done |
---|
2536 | |
---|
2537 | fi |
---|
2538 | fi |
---|
2539 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2540 | if test -n "$ac_ct_CC"; then |
---|
2541 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2542 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2543 | else |
---|
2544 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2545 | echo "${ECHO_T}no" >&6 |
---|
2546 | fi |
---|
2547 | |
---|
2548 | CC=$ac_ct_CC |
---|
2549 | else |
---|
2550 | CC="$ac_cv_prog_CC" |
---|
2551 | fi |
---|
2552 | |
---|
2553 | if test -z "$CC"; then |
---|
2554 | if test -n "$ac_tool_prefix"; then |
---|
2555 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2556 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2559 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2561 | else |
---|
2562 | if test -n "$CC"; then |
---|
2563 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2564 | else |
---|
2565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2566 | for as_dir in $PATH |
---|
2567 | do |
---|
2568 | IFS=$as_save_IFS |
---|
2569 | test -z "$as_dir" && as_dir=. |
---|
2570 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2572 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2574 | break 2 |
---|
2575 | fi |
---|
2576 | done |
---|
2577 | done |
---|
2578 | |
---|
2579 | fi |
---|
2580 | fi |
---|
2581 | CC=$ac_cv_prog_CC |
---|
2582 | if test -n "$CC"; then |
---|
2583 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2584 | echo "${ECHO_T}$CC" >&6 |
---|
2585 | else |
---|
2586 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2587 | echo "${ECHO_T}no" >&6 |
---|
2588 | fi |
---|
2589 | |
---|
2590 | fi |
---|
2591 | if test -z "$ac_cv_prog_CC"; then |
---|
2592 | ac_ct_CC=$CC |
---|
2593 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2594 | set dummy cc; ac_word=$2 |
---|
2595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2597 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2599 | else |
---|
2600 | if test -n "$ac_ct_CC"; then |
---|
2601 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2602 | else |
---|
2603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2604 | for as_dir in $PATH |
---|
2605 | do |
---|
2606 | IFS=$as_save_IFS |
---|
2607 | test -z "$as_dir" && as_dir=. |
---|
2608 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2610 | ac_cv_prog_ac_ct_CC="cc" |
---|
2611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2612 | break 2 |
---|
2613 | fi |
---|
2614 | done |
---|
2615 | done |
---|
2616 | |
---|
2617 | fi |
---|
2618 | fi |
---|
2619 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2620 | if test -n "$ac_ct_CC"; then |
---|
2621 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2622 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2623 | else |
---|
2624 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2625 | echo "${ECHO_T}no" >&6 |
---|
2626 | fi |
---|
2627 | |
---|
2628 | CC=$ac_ct_CC |
---|
2629 | else |
---|
2630 | CC="$ac_cv_prog_CC" |
---|
2631 | fi |
---|
2632 | |
---|
2633 | fi |
---|
2634 | if test -z "$CC"; then |
---|
2635 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2636 | set dummy cc; ac_word=$2 |
---|
2637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2639 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2641 | else |
---|
2642 | if test -n "$CC"; then |
---|
2643 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2644 | else |
---|
2645 | ac_prog_rejected=no |
---|
2646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2647 | for as_dir in $PATH |
---|
2648 | do |
---|
2649 | IFS=$as_save_IFS |
---|
2650 | test -z "$as_dir" && as_dir=. |
---|
2651 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2652 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2653 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2654 | ac_prog_rejected=yes |
---|
2655 | continue |
---|
2656 | fi |
---|
2657 | ac_cv_prog_CC="cc" |
---|
2658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2659 | break 2 |
---|
2660 | fi |
---|
2661 | done |
---|
2662 | done |
---|
2663 | |
---|
2664 | if test $ac_prog_rejected = yes; then |
---|
2665 | # We found a bogon in the path, so make sure we never use it. |
---|
2666 | set dummy $ac_cv_prog_CC |
---|
2667 | shift |
---|
2668 | if test $# != 0; then |
---|
2669 | # We chose a different compiler from the bogus one. |
---|
2670 | # However, it has the same basename, so the bogon will be chosen |
---|
2671 | # first if we set CC to just the basename; use the full file name. |
---|
2672 | shift |
---|
2673 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2674 | fi |
---|
2675 | fi |
---|
2676 | fi |
---|
2677 | fi |
---|
2678 | CC=$ac_cv_prog_CC |
---|
2679 | if test -n "$CC"; then |
---|
2680 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2681 | echo "${ECHO_T}$CC" >&6 |
---|
2682 | else |
---|
2683 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2684 | echo "${ECHO_T}no" >&6 |
---|
2685 | fi |
---|
2686 | |
---|
2687 | fi |
---|
2688 | if test -z "$CC"; then |
---|
2689 | if test -n "$ac_tool_prefix"; then |
---|
2690 | for ac_prog in cl |
---|
2691 | do |
---|
2692 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2693 | set dummy $ac_tool_prefix$ac_prog; 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$ac_prog" |
---|
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 | test -n "$CC" && break |
---|
2728 | done |
---|
2729 | fi |
---|
2730 | if test -z "$CC"; then |
---|
2731 | ac_ct_CC=$CC |
---|
2732 | for ac_prog in cl |
---|
2733 | do |
---|
2734 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2735 | set dummy $ac_prog; ac_word=$2 |
---|
2736 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2738 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2740 | else |
---|
2741 | if test -n "$ac_ct_CC"; then |
---|
2742 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2743 | else |
---|
2744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2745 | for as_dir in $PATH |
---|
2746 | do |
---|
2747 | IFS=$as_save_IFS |
---|
2748 | test -z "$as_dir" && as_dir=. |
---|
2749 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2750 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2751 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2753 | break 2 |
---|
2754 | fi |
---|
2755 | done |
---|
2756 | done |
---|
2757 | |
---|
2758 | fi |
---|
2759 | fi |
---|
2760 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2761 | if test -n "$ac_ct_CC"; then |
---|
2762 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2763 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2764 | else |
---|
2765 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2766 | echo "${ECHO_T}no" >&6 |
---|
2767 | fi |
---|
2768 | |
---|
2769 | test -n "$ac_ct_CC" && break |
---|
2770 | done |
---|
2771 | |
---|
2772 | CC=$ac_ct_CC |
---|
2773 | fi |
---|
2774 | |
---|
2775 | fi |
---|
2776 | |
---|
2777 | |
---|
2778 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2779 | See \`config.log' for more details." >&5 |
---|
2780 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2781 | See \`config.log' for more details." >&2;} |
---|
2782 | { (exit 1); exit 1; }; } |
---|
2783 | |
---|
2784 | # Provide some information about the compiler. |
---|
2785 | echo "$as_me:$LINENO:" \ |
---|
2786 | "checking for C compiler version" >&5 |
---|
2787 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2788 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2789 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2790 | ac_status=$? |
---|
2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2792 | (exit $ac_status); } |
---|
2793 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2794 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2795 | ac_status=$? |
---|
2796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2797 | (exit $ac_status); } |
---|
2798 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2799 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2800 | ac_status=$? |
---|
2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2802 | (exit $ac_status); } |
---|
2803 | |
---|
2804 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2805 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2806 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2808 | else |
---|
2809 | cat >conftest.$ac_ext <<_ACEOF |
---|
2810 | /* confdefs.h. */ |
---|
2811 | _ACEOF |
---|
2812 | cat confdefs.h >>conftest.$ac_ext |
---|
2813 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2814 | /* end confdefs.h. */ |
---|
2815 | |
---|
2816 | int |
---|
2817 | main () |
---|
2818 | { |
---|
2819 | #ifndef __GNUC__ |
---|
2820 | choke me |
---|
2821 | #endif |
---|
2822 | |
---|
2823 | ; |
---|
2824 | return 0; |
---|
2825 | } |
---|
2826 | _ACEOF |
---|
2827 | rm -f conftest.$ac_objext |
---|
2828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2829 | (eval $ac_compile) 2>conftest.er1 |
---|
2830 | ac_status=$? |
---|
2831 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2832 | rm -f conftest.er1 |
---|
2833 | cat conftest.err >&5 |
---|
2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2835 | (exit $ac_status); } && |
---|
2836 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2837 | || test ! -s conftest.err' |
---|
2838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2839 | (eval $ac_try) 2>&5 |
---|
2840 | ac_status=$? |
---|
2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2842 | (exit $ac_status); }; } && |
---|
2843 | { ac_try='test -s conftest.$ac_objext' |
---|
2844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2845 | (eval $ac_try) 2>&5 |
---|
2846 | ac_status=$? |
---|
2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2848 | (exit $ac_status); }; }; then |
---|
2849 | ac_compiler_gnu=yes |
---|
2850 | else |
---|
2851 | echo "$as_me: failed program was:" >&5 |
---|
2852 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2853 | |
---|
2854 | ac_compiler_gnu=no |
---|
2855 | fi |
---|
2856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2857 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2858 | |
---|
2859 | fi |
---|
2860 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2861 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2862 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2863 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2864 | ac_save_CFLAGS=$CFLAGS |
---|
2865 | CFLAGS="-g" |
---|
2866 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2867 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2868 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2870 | else |
---|
2871 | cat >conftest.$ac_ext <<_ACEOF |
---|
2872 | /* confdefs.h. */ |
---|
2873 | _ACEOF |
---|
2874 | cat confdefs.h >>conftest.$ac_ext |
---|
2875 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2876 | /* end confdefs.h. */ |
---|
2877 | |
---|
2878 | int |
---|
2879 | main () |
---|
2880 | { |
---|
2881 | |
---|
2882 | ; |
---|
2883 | return 0; |
---|
2884 | } |
---|
2885 | _ACEOF |
---|
2886 | rm -f conftest.$ac_objext |
---|
2887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2888 | (eval $ac_compile) 2>conftest.er1 |
---|
2889 | ac_status=$? |
---|
2890 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2891 | rm -f conftest.er1 |
---|
2892 | cat conftest.err >&5 |
---|
2893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2894 | (exit $ac_status); } && |
---|
2895 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2896 | || test ! -s conftest.err' |
---|
2897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2898 | (eval $ac_try) 2>&5 |
---|
2899 | ac_status=$? |
---|
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2901 | (exit $ac_status); }; } && |
---|
2902 | { ac_try='test -s conftest.$ac_objext' |
---|
2903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2904 | (eval $ac_try) 2>&5 |
---|
2905 | ac_status=$? |
---|
2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2907 | (exit $ac_status); }; }; then |
---|
2908 | ac_cv_prog_cc_g=yes |
---|
2909 | else |
---|
2910 | echo "$as_me: failed program was:" >&5 |
---|
2911 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2912 | |
---|
2913 | ac_cv_prog_cc_g=no |
---|
2914 | fi |
---|
2915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2916 | fi |
---|
2917 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2918 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2919 | if test "$ac_test_CFLAGS" = set; then |
---|
2920 | CFLAGS=$ac_save_CFLAGS |
---|
2921 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2922 | if test "$GCC" = yes; then |
---|
2923 | CFLAGS="-g -O2" |
---|
2924 | else |
---|
2925 | CFLAGS="-g" |
---|
2926 | fi |
---|
2927 | else |
---|
2928 | if test "$GCC" = yes; then |
---|
2929 | CFLAGS="-O2" |
---|
2930 | else |
---|
2931 | CFLAGS= |
---|
2932 | fi |
---|
2933 | fi |
---|
2934 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2935 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2936 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2938 | else |
---|
2939 | ac_cv_prog_cc_stdc=no |
---|
2940 | ac_save_CC=$CC |
---|
2941 | cat >conftest.$ac_ext <<_ACEOF |
---|
2942 | /* confdefs.h. */ |
---|
2943 | _ACEOF |
---|
2944 | cat confdefs.h >>conftest.$ac_ext |
---|
2945 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2946 | /* end confdefs.h. */ |
---|
2947 | #include <stdarg.h> |
---|
2948 | #include <stdio.h> |
---|
2949 | #include <sys/types.h> |
---|
2950 | #include <sys/stat.h> |
---|
2951 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2952 | struct buf { int x; }; |
---|
2953 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2954 | static char *e (p, i) |
---|
2955 | char **p; |
---|
2956 | int i; |
---|
2957 | { |
---|
2958 | return p[i]; |
---|
2959 | } |
---|
2960 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2961 | { |
---|
2962 | char *s; |
---|
2963 | va_list v; |
---|
2964 | va_start (v,p); |
---|
2965 | s = g (p, va_arg (v,int)); |
---|
2966 | va_end (v); |
---|
2967 | return s; |
---|
2968 | } |
---|
2969 | |
---|
2970 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2971 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2972 | These don't provoke an error unfortunately, instead are silently treated |
---|
2973 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2974 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2975 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2976 | that's true only with -std1. */ |
---|
2977 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2978 | |
---|
2979 | int test (int i, double x); |
---|
2980 | struct s1 {int (*f) (int a);}; |
---|
2981 | struct s2 {int (*f) (double a);}; |
---|
2982 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2983 | int argc; |
---|
2984 | char **argv; |
---|
2985 | int |
---|
2986 | main () |
---|
2987 | { |
---|
2988 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2989 | ; |
---|
2990 | return 0; |
---|
2991 | } |
---|
2992 | _ACEOF |
---|
2993 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2994 | # breaks some systems' header files. |
---|
2995 | # AIX -qlanglvl=ansi |
---|
2996 | # Ultrix and OSF/1 -std1 |
---|
2997 | # HP-UX 10.20 and later -Ae |
---|
2998 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2999 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3000 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3001 | do |
---|
3002 | CC="$ac_save_CC $ac_arg" |
---|
3003 | rm -f conftest.$ac_objext |
---|
3004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3005 | (eval $ac_compile) 2>conftest.er1 |
---|
3006 | ac_status=$? |
---|
3007 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3008 | rm -f conftest.er1 |
---|
3009 | cat conftest.err >&5 |
---|
3010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3011 | (exit $ac_status); } && |
---|
3012 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3013 | || test ! -s conftest.err' |
---|
3014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3015 | (eval $ac_try) 2>&5 |
---|
3016 | ac_status=$? |
---|
3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3018 | (exit $ac_status); }; } && |
---|
3019 | { ac_try='test -s conftest.$ac_objext' |
---|
3020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3021 | (eval $ac_try) 2>&5 |
---|
3022 | ac_status=$? |
---|
3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3024 | (exit $ac_status); }; }; then |
---|
3025 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3026 | break |
---|
3027 | else |
---|
3028 | echo "$as_me: failed program was:" >&5 |
---|
3029 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3030 | |
---|
3031 | fi |
---|
3032 | rm -f conftest.err conftest.$ac_objext |
---|
3033 | done |
---|
3034 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3035 | CC=$ac_save_CC |
---|
3036 | |
---|
3037 | fi |
---|
3038 | |
---|
3039 | case "x$ac_cv_prog_cc_stdc" in |
---|
3040 | x|xno) |
---|
3041 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3042 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3043 | *) |
---|
3044 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3045 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3046 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3047 | esac |
---|
3048 | |
---|
3049 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3050 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3051 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3052 | # the declaration of exit, since it's the most demanding environment. |
---|
3053 | cat >conftest.$ac_ext <<_ACEOF |
---|
3054 | #ifndef __cplusplus |
---|
3055 | choke me |
---|
3056 | #endif |
---|
3057 | _ACEOF |
---|
3058 | rm -f conftest.$ac_objext |
---|
3059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3060 | (eval $ac_compile) 2>conftest.er1 |
---|
3061 | ac_status=$? |
---|
3062 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3063 | rm -f conftest.er1 |
---|
3064 | cat conftest.err >&5 |
---|
3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3066 | (exit $ac_status); } && |
---|
3067 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3068 | || test ! -s conftest.err' |
---|
3069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3070 | (eval $ac_try) 2>&5 |
---|
3071 | ac_status=$? |
---|
3072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3073 | (exit $ac_status); }; } && |
---|
3074 | { ac_try='test -s conftest.$ac_objext' |
---|
3075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3076 | (eval $ac_try) 2>&5 |
---|
3077 | ac_status=$? |
---|
3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3079 | (exit $ac_status); }; }; then |
---|
3080 | for ac_declaration in \ |
---|
3081 | '' \ |
---|
3082 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3083 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3084 | 'extern "C" void exit (int) throw ();' \ |
---|
3085 | 'extern "C" void exit (int);' \ |
---|
3086 | 'void exit (int);' |
---|
3087 | do |
---|
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 | $ac_declaration |
---|
3095 | #include <stdlib.h> |
---|
3096 | int |
---|
3097 | main () |
---|
3098 | { |
---|
3099 | exit (42); |
---|
3100 | ; |
---|
3101 | return 0; |
---|
3102 | } |
---|
3103 | _ACEOF |
---|
3104 | rm -f conftest.$ac_objext |
---|
3105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3106 | (eval $ac_compile) 2>conftest.er1 |
---|
3107 | ac_status=$? |
---|
3108 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3109 | rm -f conftest.er1 |
---|
3110 | cat conftest.err >&5 |
---|
3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3112 | (exit $ac_status); } && |
---|
3113 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3114 | || test ! -s conftest.err' |
---|
3115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3116 | (eval $ac_try) 2>&5 |
---|
3117 | ac_status=$? |
---|
3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3119 | (exit $ac_status); }; } && |
---|
3120 | { ac_try='test -s conftest.$ac_objext' |
---|
3121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3122 | (eval $ac_try) 2>&5 |
---|
3123 | ac_status=$? |
---|
3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3125 | (exit $ac_status); }; }; then |
---|
3126 | : |
---|
3127 | else |
---|
3128 | echo "$as_me: failed program was:" >&5 |
---|
3129 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3130 | |
---|
3131 | continue |
---|
3132 | fi |
---|
3133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3134 | cat >conftest.$ac_ext <<_ACEOF |
---|
3135 | /* confdefs.h. */ |
---|
3136 | _ACEOF |
---|
3137 | cat confdefs.h >>conftest.$ac_ext |
---|
3138 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3139 | /* end confdefs.h. */ |
---|
3140 | $ac_declaration |
---|
3141 | int |
---|
3142 | main () |
---|
3143 | { |
---|
3144 | exit (42); |
---|
3145 | ; |
---|
3146 | return 0; |
---|
3147 | } |
---|
3148 | _ACEOF |
---|
3149 | rm -f conftest.$ac_objext |
---|
3150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3151 | (eval $ac_compile) 2>conftest.er1 |
---|
3152 | ac_status=$? |
---|
3153 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3154 | rm -f conftest.er1 |
---|
3155 | cat conftest.err >&5 |
---|
3156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3157 | (exit $ac_status); } && |
---|
3158 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3159 | || test ! -s conftest.err' |
---|
3160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3161 | (eval $ac_try) 2>&5 |
---|
3162 | ac_status=$? |
---|
3163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3164 | (exit $ac_status); }; } && |
---|
3165 | { ac_try='test -s conftest.$ac_objext' |
---|
3166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3167 | (eval $ac_try) 2>&5 |
---|
3168 | ac_status=$? |
---|
3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3170 | (exit $ac_status); }; }; then |
---|
3171 | break |
---|
3172 | else |
---|
3173 | echo "$as_me: failed program was:" >&5 |
---|
3174 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3175 | |
---|
3176 | fi |
---|
3177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3178 | done |
---|
3179 | rm -f conftest* |
---|
3180 | if test -n "$ac_declaration"; then |
---|
3181 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3182 | echo $ac_declaration >>confdefs.h |
---|
3183 | echo '#endif' >>confdefs.h |
---|
3184 | fi |
---|
3185 | |
---|
3186 | else |
---|
3187 | echo "$as_me: failed program was:" >&5 |
---|
3188 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3189 | |
---|
3190 | fi |
---|
3191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3192 | ac_ext=c |
---|
3193 | ac_cpp='$CPP $CPPFLAGS' |
---|
3194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3197 | |
---|
3198 | depcc="$CC" am_compiler_list= |
---|
3199 | |
---|
3200 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3201 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3202 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3204 | else |
---|
3205 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3206 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3207 | # making bogus files that we don't know about and never remove. For |
---|
3208 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3209 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3210 | # in D'. |
---|
3211 | mkdir conftest.dir |
---|
3212 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3213 | # using a relative directory. |
---|
3214 | cp "$am_depcomp" conftest.dir |
---|
3215 | cd conftest.dir |
---|
3216 | # We will build objects and dependencies in a subdirectory because |
---|
3217 | # it helps to detect inapplicable dependency modes. For instance |
---|
3218 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3219 | # side effect of compilation, but ICC will put the dependencies in |
---|
3220 | # the current directory while Tru64 will put them in the object |
---|
3221 | # directory. |
---|
3222 | mkdir sub |
---|
3223 | |
---|
3224 | am_cv_CC_dependencies_compiler_type=none |
---|
3225 | if test "$am_compiler_list" = ""; then |
---|
3226 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3227 | fi |
---|
3228 | for depmode in $am_compiler_list; do |
---|
3229 | # Setup a source with many dependencies, because some compilers |
---|
3230 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3231 | # we should not choose a depcomp mode which is confused by this. |
---|
3232 | # |
---|
3233 | # We need to recreate these files for each test, as the compiler may |
---|
3234 | # overwrite some of them when testing with obscure command lines. |
---|
3235 | # This happens at least with the AIX C compiler. |
---|
3236 | : > sub/conftest.c |
---|
3237 | for i in 1 2 3 4 5 6; do |
---|
3238 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3239 | : > sub/conftst$i.h |
---|
3240 | done |
---|
3241 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3242 | |
---|
3243 | case $depmode in |
---|
3244 | nosideeffect) |
---|
3245 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3246 | # only be used when explicitly requested |
---|
3247 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3248 | continue |
---|
3249 | else |
---|
3250 | break |
---|
3251 | fi |
---|
3252 | ;; |
---|
3253 | none) break ;; |
---|
3254 | esac |
---|
3255 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3256 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3257 | # handle `-M -o', and we need to detect this. |
---|
3258 | if depmode=$depmode \ |
---|
3259 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3260 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3261 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3262 | >/dev/null 2>conftest.err && |
---|
3263 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3264 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3265 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3266 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3267 | # (even with -Werror). So we grep stderr for any message |
---|
3268 | # that says an option was ignored. |
---|
3269 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
3270 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3271 | break |
---|
3272 | fi |
---|
3273 | fi |
---|
3274 | done |
---|
3275 | |
---|
3276 | cd .. |
---|
3277 | rm -rf conftest.dir |
---|
3278 | else |
---|
3279 | am_cv_CC_dependencies_compiler_type=none |
---|
3280 | fi |
---|
3281 | |
---|
3282 | fi |
---|
3283 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3284 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3285 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3286 | |
---|
3287 | |
---|
3288 | |
---|
3289 | if |
---|
3290 | test "x$enable_dependency_tracking" != xno \ |
---|
3291 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3292 | am__fastdepCC_TRUE= |
---|
3293 | am__fastdepCC_FALSE='#' |
---|
3294 | else |
---|
3295 | am__fastdepCC_TRUE='#' |
---|
3296 | am__fastdepCC_FALSE= |
---|
3297 | fi |
---|
3298 | |
---|
3299 | |
---|
3300 | |
---|
3301 | # Checks for libraries. |
---|
3302 | |
---|
3303 | # cheking for libGL |
---|
3304 | |
---|
3305 | ac_ext=c |
---|
3306 | ac_cpp='$CPP $CPPFLAGS' |
---|
3307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3310 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3311 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3312 | # On Suns, sometimes $CPP names a directory. |
---|
3313 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3314 | CPP= |
---|
3315 | fi |
---|
3316 | if test -z "$CPP"; then |
---|
3317 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3319 | else |
---|
3320 | # Double quotes because CPP needs to be expanded |
---|
3321 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3322 | do |
---|
3323 | ac_preproc_ok=false |
---|
3324 | for ac_c_preproc_warn_flag in '' yes |
---|
3325 | do |
---|
3326 | # Use a header file that comes with gcc, so configuring glibc |
---|
3327 | # with a fresh cross-compiler works. |
---|
3328 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3329 | # <limits.h> exists even on freestanding compilers. |
---|
3330 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3331 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3332 | cat >conftest.$ac_ext <<_ACEOF |
---|
3333 | /* confdefs.h. */ |
---|
3334 | _ACEOF |
---|
3335 | cat confdefs.h >>conftest.$ac_ext |
---|
3336 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3337 | /* end confdefs.h. */ |
---|
3338 | #ifdef __STDC__ |
---|
3339 | # include <limits.h> |
---|
3340 | #else |
---|
3341 | # include <assert.h> |
---|
3342 | #endif |
---|
3343 | Syntax error |
---|
3344 | _ACEOF |
---|
3345 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3347 | ac_status=$? |
---|
3348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3349 | rm -f conftest.er1 |
---|
3350 | cat conftest.err >&5 |
---|
3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3352 | (exit $ac_status); } >/dev/null; then |
---|
3353 | if test -s conftest.err; then |
---|
3354 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3356 | else |
---|
3357 | ac_cpp_err= |
---|
3358 | fi |
---|
3359 | else |
---|
3360 | ac_cpp_err=yes |
---|
3361 | fi |
---|
3362 | if test -z "$ac_cpp_err"; then |
---|
3363 | : |
---|
3364 | else |
---|
3365 | echo "$as_me: failed program was:" >&5 |
---|
3366 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3367 | |
---|
3368 | # Broken: fails on valid input. |
---|
3369 | continue |
---|
3370 | fi |
---|
3371 | rm -f conftest.err conftest.$ac_ext |
---|
3372 | |
---|
3373 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3374 | # can be detected and how. |
---|
3375 | cat >conftest.$ac_ext <<_ACEOF |
---|
3376 | /* confdefs.h. */ |
---|
3377 | _ACEOF |
---|
3378 | cat confdefs.h >>conftest.$ac_ext |
---|
3379 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3380 | /* end confdefs.h. */ |
---|
3381 | #include <ac_nonexistent.h> |
---|
3382 | _ACEOF |
---|
3383 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3384 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3385 | ac_status=$? |
---|
3386 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3387 | rm -f conftest.er1 |
---|
3388 | cat conftest.err >&5 |
---|
3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3390 | (exit $ac_status); } >/dev/null; then |
---|
3391 | if test -s conftest.err; then |
---|
3392 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3393 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3394 | else |
---|
3395 | ac_cpp_err= |
---|
3396 | fi |
---|
3397 | else |
---|
3398 | ac_cpp_err=yes |
---|
3399 | fi |
---|
3400 | if test -z "$ac_cpp_err"; then |
---|
3401 | # Broken: success on invalid input. |
---|
3402 | continue |
---|
3403 | else |
---|
3404 | echo "$as_me: failed program was:" >&5 |
---|
3405 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3406 | |
---|
3407 | # Passes both tests. |
---|
3408 | ac_preproc_ok=: |
---|
3409 | break |
---|
3410 | fi |
---|
3411 | rm -f conftest.err conftest.$ac_ext |
---|
3412 | |
---|
3413 | done |
---|
3414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3415 | rm -f conftest.err conftest.$ac_ext |
---|
3416 | if $ac_preproc_ok; then |
---|
3417 | break |
---|
3418 | fi |
---|
3419 | |
---|
3420 | done |
---|
3421 | ac_cv_prog_CPP=$CPP |
---|
3422 | |
---|
3423 | fi |
---|
3424 | CPP=$ac_cv_prog_CPP |
---|
3425 | else |
---|
3426 | ac_cv_prog_CPP=$CPP |
---|
3427 | fi |
---|
3428 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3429 | echo "${ECHO_T}$CPP" >&6 |
---|
3430 | ac_preproc_ok=false |
---|
3431 | for ac_c_preproc_warn_flag in '' yes |
---|
3432 | do |
---|
3433 | # Use a header file that comes with gcc, so configuring glibc |
---|
3434 | # with a fresh cross-compiler works. |
---|
3435 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3436 | # <limits.h> exists even on freestanding compilers. |
---|
3437 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3438 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3439 | cat >conftest.$ac_ext <<_ACEOF |
---|
3440 | /* confdefs.h. */ |
---|
3441 | _ACEOF |
---|
3442 | cat confdefs.h >>conftest.$ac_ext |
---|
3443 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3444 | /* end confdefs.h. */ |
---|
3445 | #ifdef __STDC__ |
---|
3446 | # include <limits.h> |
---|
3447 | #else |
---|
3448 | # include <assert.h> |
---|
3449 | #endif |
---|
3450 | Syntax error |
---|
3451 | _ACEOF |
---|
3452 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3453 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3454 | ac_status=$? |
---|
3455 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3456 | rm -f conftest.er1 |
---|
3457 | cat conftest.err >&5 |
---|
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3459 | (exit $ac_status); } >/dev/null; then |
---|
3460 | if test -s conftest.err; then |
---|
3461 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3462 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3463 | else |
---|
3464 | ac_cpp_err= |
---|
3465 | fi |
---|
3466 | else |
---|
3467 | ac_cpp_err=yes |
---|
3468 | fi |
---|
3469 | if test -z "$ac_cpp_err"; then |
---|
3470 | : |
---|
3471 | else |
---|
3472 | echo "$as_me: failed program was:" >&5 |
---|
3473 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3474 | |
---|
3475 | # Broken: fails on valid input. |
---|
3476 | continue |
---|
3477 | fi |
---|
3478 | rm -f conftest.err conftest.$ac_ext |
---|
3479 | |
---|
3480 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3481 | # can be detected and how. |
---|
3482 | cat >conftest.$ac_ext <<_ACEOF |
---|
3483 | /* confdefs.h. */ |
---|
3484 | _ACEOF |
---|
3485 | cat confdefs.h >>conftest.$ac_ext |
---|
3486 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3487 | /* end confdefs.h. */ |
---|
3488 | #include <ac_nonexistent.h> |
---|
3489 | _ACEOF |
---|
3490 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3491 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3492 | ac_status=$? |
---|
3493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3494 | rm -f conftest.er1 |
---|
3495 | cat conftest.err >&5 |
---|
3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3497 | (exit $ac_status); } >/dev/null; then |
---|
3498 | if test -s conftest.err; then |
---|
3499 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3500 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3501 | else |
---|
3502 | ac_cpp_err= |
---|
3503 | fi |
---|
3504 | else |
---|
3505 | ac_cpp_err=yes |
---|
3506 | fi |
---|
3507 | if test -z "$ac_cpp_err"; then |
---|
3508 | # Broken: success on invalid input. |
---|
3509 | continue |
---|
3510 | else |
---|
3511 | echo "$as_me: failed program was:" >&5 |
---|
3512 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3513 | |
---|
3514 | # Passes both tests. |
---|
3515 | ac_preproc_ok=: |
---|
3516 | break |
---|
3517 | fi |
---|
3518 | rm -f conftest.err conftest.$ac_ext |
---|
3519 | |
---|
3520 | done |
---|
3521 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3522 | rm -f conftest.err conftest.$ac_ext |
---|
3523 | if $ac_preproc_ok; then |
---|
3524 | : |
---|
3525 | else |
---|
3526 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3527 | See \`config.log' for more details." >&5 |
---|
3528 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3529 | See \`config.log' for more details." >&2;} |
---|
3530 | { (exit 1); exit 1; }; } |
---|
3531 | fi |
---|
3532 | |
---|
3533 | ac_ext=c |
---|
3534 | ac_cpp='$CPP $CPPFLAGS' |
---|
3535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3538 | |
---|
3539 | |
---|
3540 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3541 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3542 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3544 | else |
---|
3545 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3546 | then ac_cv_prog_egrep='grep -E' |
---|
3547 | else ac_cv_prog_egrep='egrep' |
---|
3548 | fi |
---|
3549 | fi |
---|
3550 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3551 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3552 | EGREP=$ac_cv_prog_egrep |
---|
3553 | |
---|
3554 | |
---|
3555 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3556 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3557 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3559 | else |
---|
3560 | cat >conftest.$ac_ext <<_ACEOF |
---|
3561 | /* confdefs.h. */ |
---|
3562 | _ACEOF |
---|
3563 | cat confdefs.h >>conftest.$ac_ext |
---|
3564 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3565 | /* end confdefs.h. */ |
---|
3566 | #include <stdlib.h> |
---|
3567 | #include <stdarg.h> |
---|
3568 | #include <string.h> |
---|
3569 | #include <float.h> |
---|
3570 | |
---|
3571 | int |
---|
3572 | main () |
---|
3573 | { |
---|
3574 | |
---|
3575 | ; |
---|
3576 | return 0; |
---|
3577 | } |
---|
3578 | _ACEOF |
---|
3579 | rm -f conftest.$ac_objext |
---|
3580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3581 | (eval $ac_compile) 2>conftest.er1 |
---|
3582 | ac_status=$? |
---|
3583 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3584 | rm -f conftest.er1 |
---|
3585 | cat conftest.err >&5 |
---|
3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3587 | (exit $ac_status); } && |
---|
3588 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3589 | || test ! -s conftest.err' |
---|
3590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3591 | (eval $ac_try) 2>&5 |
---|
3592 | ac_status=$? |
---|
3593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3594 | (exit $ac_status); }; } && |
---|
3595 | { ac_try='test -s conftest.$ac_objext' |
---|
3596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3597 | (eval $ac_try) 2>&5 |
---|
3598 | ac_status=$? |
---|
3599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3600 | (exit $ac_status); }; }; then |
---|
3601 | ac_cv_header_stdc=yes |
---|
3602 | else |
---|
3603 | echo "$as_me: failed program was:" >&5 |
---|
3604 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3605 | |
---|
3606 | ac_cv_header_stdc=no |
---|
3607 | fi |
---|
3608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3609 | |
---|
3610 | if test $ac_cv_header_stdc = yes; then |
---|
3611 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3612 | cat >conftest.$ac_ext <<_ACEOF |
---|
3613 | /* confdefs.h. */ |
---|
3614 | _ACEOF |
---|
3615 | cat confdefs.h >>conftest.$ac_ext |
---|
3616 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3617 | /* end confdefs.h. */ |
---|
3618 | #include <string.h> |
---|
3619 | |
---|
3620 | _ACEOF |
---|
3621 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3622 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3623 | : |
---|
3624 | else |
---|
3625 | ac_cv_header_stdc=no |
---|
3626 | fi |
---|
3627 | rm -f conftest* |
---|
3628 | |
---|
3629 | fi |
---|
3630 | |
---|
3631 | if test $ac_cv_header_stdc = yes; then |
---|
3632 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3633 | cat >conftest.$ac_ext <<_ACEOF |
---|
3634 | /* confdefs.h. */ |
---|
3635 | _ACEOF |
---|
3636 | cat confdefs.h >>conftest.$ac_ext |
---|
3637 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3638 | /* end confdefs.h. */ |
---|
3639 | #include <stdlib.h> |
---|
3640 | |
---|
3641 | _ACEOF |
---|
3642 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3643 | $EGREP "free" >/dev/null 2>&1; then |
---|
3644 | : |
---|
3645 | else |
---|
3646 | ac_cv_header_stdc=no |
---|
3647 | fi |
---|
3648 | rm -f conftest* |
---|
3649 | |
---|
3650 | fi |
---|
3651 | |
---|
3652 | if test $ac_cv_header_stdc = yes; then |
---|
3653 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3654 | if test "$cross_compiling" = yes; then |
---|
3655 | : |
---|
3656 | else |
---|
3657 | cat >conftest.$ac_ext <<_ACEOF |
---|
3658 | /* confdefs.h. */ |
---|
3659 | _ACEOF |
---|
3660 | cat confdefs.h >>conftest.$ac_ext |
---|
3661 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3662 | /* end confdefs.h. */ |
---|
3663 | #include <ctype.h> |
---|
3664 | #if ((' ' & 0x0FF) == 0x020) |
---|
3665 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3666 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3667 | #else |
---|
3668 | # define ISLOWER(c) \ |
---|
3669 | (('a' <= (c) && (c) <= 'i') \ |
---|
3670 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3671 | || ('s' <= (c) && (c) <= 'z')) |
---|
3672 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3673 | #endif |
---|
3674 | |
---|
3675 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3676 | int |
---|
3677 | main () |
---|
3678 | { |
---|
3679 | int i; |
---|
3680 | for (i = 0; i < 256; i++) |
---|
3681 | if (XOR (islower (i), ISLOWER (i)) |
---|
3682 | || toupper (i) != TOUPPER (i)) |
---|
3683 | exit(2); |
---|
3684 | exit (0); |
---|
3685 | } |
---|
3686 | _ACEOF |
---|
3687 | rm -f conftest$ac_exeext |
---|
3688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3689 | (eval $ac_link) 2>&5 |
---|
3690 | ac_status=$? |
---|
3691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3694 | (eval $ac_try) 2>&5 |
---|
3695 | ac_status=$? |
---|
3696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3697 | (exit $ac_status); }; }; then |
---|
3698 | : |
---|
3699 | else |
---|
3700 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3701 | echo "$as_me: failed program was:" >&5 |
---|
3702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3703 | |
---|
3704 | ( exit $ac_status ) |
---|
3705 | ac_cv_header_stdc=no |
---|
3706 | fi |
---|
3707 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3708 | fi |
---|
3709 | fi |
---|
3710 | fi |
---|
3711 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3712 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3713 | if test $ac_cv_header_stdc = yes; then |
---|
3714 | |
---|
3715 | cat >>confdefs.h <<\_ACEOF |
---|
3716 | #define STDC_HEADERS 1 |
---|
3717 | _ACEOF |
---|
3718 | |
---|
3719 | fi |
---|
3720 | |
---|
3721 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3722 | |
---|
3723 | |
---|
3724 | |
---|
3725 | |
---|
3726 | |
---|
3727 | |
---|
3728 | |
---|
3729 | |
---|
3730 | |
---|
3731 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3732 | inttypes.h stdint.h unistd.h |
---|
3733 | do |
---|
3734 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3739 | else |
---|
3740 | cat >conftest.$ac_ext <<_ACEOF |
---|
3741 | /* confdefs.h. */ |
---|
3742 | _ACEOF |
---|
3743 | cat confdefs.h >>conftest.$ac_ext |
---|
3744 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3745 | /* end confdefs.h. */ |
---|
3746 | $ac_includes_default |
---|
3747 | |
---|
3748 | #include <$ac_header> |
---|
3749 | _ACEOF |
---|
3750 | rm -f conftest.$ac_objext |
---|
3751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3752 | (eval $ac_compile) 2>conftest.er1 |
---|
3753 | ac_status=$? |
---|
3754 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3755 | rm -f conftest.er1 |
---|
3756 | cat conftest.err >&5 |
---|
3757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3758 | (exit $ac_status); } && |
---|
3759 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3760 | || test ! -s conftest.err' |
---|
3761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3762 | (eval $ac_try) 2>&5 |
---|
3763 | ac_status=$? |
---|
3764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3765 | (exit $ac_status); }; } && |
---|
3766 | { ac_try='test -s conftest.$ac_objext' |
---|
3767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3768 | (eval $ac_try) 2>&5 |
---|
3769 | ac_status=$? |
---|
3770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3771 | (exit $ac_status); }; }; then |
---|
3772 | eval "$as_ac_Header=yes" |
---|
3773 | else |
---|
3774 | echo "$as_me: failed program was:" >&5 |
---|
3775 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3776 | |
---|
3777 | eval "$as_ac_Header=no" |
---|
3778 | fi |
---|
3779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3780 | fi |
---|
3781 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3782 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3783 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3784 | cat >>confdefs.h <<_ACEOF |
---|
3785 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3786 | _ACEOF |
---|
3787 | |
---|
3788 | fi |
---|
3789 | |
---|
3790 | done |
---|
3791 | |
---|
3792 | |
---|
3793 | |
---|
3794 | for ac_header in GL/gl.h |
---|
3795 | do |
---|
3796 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3797 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3798 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3799 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3802 | fi |
---|
3803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3804 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3805 | else |
---|
3806 | # Is the header compilable? |
---|
3807 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3808 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3809 | cat >conftest.$ac_ext <<_ACEOF |
---|
3810 | /* confdefs.h. */ |
---|
3811 | _ACEOF |
---|
3812 | cat confdefs.h >>conftest.$ac_ext |
---|
3813 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3814 | /* end confdefs.h. */ |
---|
3815 | $ac_includes_default |
---|
3816 | #include <$ac_header> |
---|
3817 | _ACEOF |
---|
3818 | rm -f conftest.$ac_objext |
---|
3819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3820 | (eval $ac_compile) 2>conftest.er1 |
---|
3821 | ac_status=$? |
---|
3822 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3823 | rm -f conftest.er1 |
---|
3824 | cat conftest.err >&5 |
---|
3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3826 | (exit $ac_status); } && |
---|
3827 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3828 | || test ! -s conftest.err' |
---|
3829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3830 | (eval $ac_try) 2>&5 |
---|
3831 | ac_status=$? |
---|
3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3833 | (exit $ac_status); }; } && |
---|
3834 | { ac_try='test -s conftest.$ac_objext' |
---|
3835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3836 | (eval $ac_try) 2>&5 |
---|
3837 | ac_status=$? |
---|
3838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3839 | (exit $ac_status); }; }; then |
---|
3840 | ac_header_compiler=yes |
---|
3841 | else |
---|
3842 | echo "$as_me: failed program was:" >&5 |
---|
3843 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3844 | |
---|
3845 | ac_header_compiler=no |
---|
3846 | fi |
---|
3847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3848 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3849 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3850 | |
---|
3851 | # Is the header present? |
---|
3852 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3853 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3854 | cat >conftest.$ac_ext <<_ACEOF |
---|
3855 | /* confdefs.h. */ |
---|
3856 | _ACEOF |
---|
3857 | cat confdefs.h >>conftest.$ac_ext |
---|
3858 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3859 | /* end confdefs.h. */ |
---|
3860 | #include <$ac_header> |
---|
3861 | _ACEOF |
---|
3862 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3863 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3864 | ac_status=$? |
---|
3865 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3866 | rm -f conftest.er1 |
---|
3867 | cat conftest.err >&5 |
---|
3868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3869 | (exit $ac_status); } >/dev/null; then |
---|
3870 | if test -s conftest.err; then |
---|
3871 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3872 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3873 | else |
---|
3874 | ac_cpp_err= |
---|
3875 | fi |
---|
3876 | else |
---|
3877 | ac_cpp_err=yes |
---|
3878 | fi |
---|
3879 | if test -z "$ac_cpp_err"; then |
---|
3880 | ac_header_preproc=yes |
---|
3881 | else |
---|
3882 | echo "$as_me: failed program was:" >&5 |
---|
3883 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3884 | |
---|
3885 | ac_header_preproc=no |
---|
3886 | fi |
---|
3887 | rm -f conftest.err conftest.$ac_ext |
---|
3888 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3889 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3890 | |
---|
3891 | # So? What about this header? |
---|
3892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
3893 | yes:no: ) |
---|
3894 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3895 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
3897 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
3898 | ac_header_preproc=yes |
---|
3899 | ;; |
---|
3900 | no:yes:* ) |
---|
3901 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3902 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3903 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3904 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3905 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
3906 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
3907 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
3908 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
3909 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3910 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3911 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
3912 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
3913 | ( |
---|
3914 | cat <<\_ASBOX |
---|
3915 | ## ------------------------------------------- ## |
---|
3916 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
3917 | ## ------------------------------------------- ## |
---|
3918 | _ASBOX |
---|
3919 | ) | |
---|
3920 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3921 | ;; |
---|
3922 | esac |
---|
3923 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3924 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3925 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3927 | else |
---|
3928 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
3929 | fi |
---|
3930 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3931 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3932 | |
---|
3933 | fi |
---|
3934 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3935 | cat >>confdefs.h <<_ACEOF |
---|
3936 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3937 | _ACEOF |
---|
3938 | |
---|
3939 | else |
---|
3940 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
3941 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
3942 | { (exit 1); exit 1; }; } |
---|
3943 | fi |
---|
3944 | |
---|
3945 | done |
---|
3946 | |
---|
3947 | |
---|
3948 | # checking for Unix GL |
---|
3949 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
3950 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
3951 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
3952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3953 | else |
---|
3954 | ac_check_lib_save_LIBS=$LIBS |
---|
3955 | LIBS="-lGL $LIBS" |
---|
3956 | cat >conftest.$ac_ext <<_ACEOF |
---|
3957 | /* confdefs.h. */ |
---|
3958 | _ACEOF |
---|
3959 | cat confdefs.h >>conftest.$ac_ext |
---|
3960 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3961 | /* end confdefs.h. */ |
---|
3962 | |
---|
3963 | |
---|
3964 | int |
---|
3965 | main () |
---|
3966 | { |
---|
3967 | main (); |
---|
3968 | ; |
---|
3969 | return 0; |
---|
3970 | } |
---|
3971 | _ACEOF |
---|
3972 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3974 | (eval $ac_link) 2>conftest.er1 |
---|
3975 | ac_status=$? |
---|
3976 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3977 | rm -f conftest.er1 |
---|
3978 | cat conftest.err >&5 |
---|
3979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3980 | (exit $ac_status); } && |
---|
3981 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3982 | || test ! -s conftest.err' |
---|
3983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3984 | (eval $ac_try) 2>&5 |
---|
3985 | ac_status=$? |
---|
3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3987 | (exit $ac_status); }; } && |
---|
3988 | { ac_try='test -s conftest$ac_exeext' |
---|
3989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3990 | (eval $ac_try) 2>&5 |
---|
3991 | ac_status=$? |
---|
3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3993 | (exit $ac_status); }; }; then |
---|
3994 | ac_cv_lib_GL_main=yes |
---|
3995 | else |
---|
3996 | echo "$as_me: failed program was:" >&5 |
---|
3997 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3998 | |
---|
3999 | ac_cv_lib_GL_main=no |
---|
4000 | fi |
---|
4001 | rm -f conftest.err conftest.$ac_objext \ |
---|
4002 | conftest$ac_exeext conftest.$ac_ext |
---|
4003 | LIBS=$ac_check_lib_save_LIBS |
---|
4004 | fi |
---|
4005 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
4006 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
4007 | if test $ac_cv_lib_GL_main = yes; then |
---|
4008 | FOUND_GL=yes |
---|
4009 | fi |
---|
4010 | |
---|
4011 | if test "$FOUND_GL" = "yes" ; then |
---|
4012 | LIBS="$LIBS -lGL" |
---|
4013 | # checking for Windows openGl library |
---|
4014 | else |
---|
4015 | echo "We did not find the Linux opengl Library. Checking for Windows Library" |
---|
4016 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4017 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4018 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4020 | else |
---|
4021 | ac_check_lib_save_LIBS=$LIBS |
---|
4022 | LIBS="-lopengl32 $LIBS" |
---|
4023 | cat >conftest.$ac_ext <<_ACEOF |
---|
4024 | /* confdefs.h. */ |
---|
4025 | _ACEOF |
---|
4026 | cat confdefs.h >>conftest.$ac_ext |
---|
4027 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4028 | /* end confdefs.h. */ |
---|
4029 | |
---|
4030 | |
---|
4031 | int |
---|
4032 | main () |
---|
4033 | { |
---|
4034 | main (); |
---|
4035 | ; |
---|
4036 | return 0; |
---|
4037 | } |
---|
4038 | _ACEOF |
---|
4039 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4041 | (eval $ac_link) 2>conftest.er1 |
---|
4042 | ac_status=$? |
---|
4043 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4044 | rm -f conftest.er1 |
---|
4045 | cat conftest.err >&5 |
---|
4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4047 | (exit $ac_status); } && |
---|
4048 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4049 | || test ! -s conftest.err' |
---|
4050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4051 | (eval $ac_try) 2>&5 |
---|
4052 | ac_status=$? |
---|
4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4054 | (exit $ac_status); }; } && |
---|
4055 | { ac_try='test -s conftest$ac_exeext' |
---|
4056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4057 | (eval $ac_try) 2>&5 |
---|
4058 | ac_status=$? |
---|
4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4060 | (exit $ac_status); }; }; then |
---|
4061 | ac_cv_lib_opengl32_main=yes |
---|
4062 | else |
---|
4063 | echo "$as_me: failed program was:" >&5 |
---|
4064 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4065 | |
---|
4066 | ac_cv_lib_opengl32_main=no |
---|
4067 | fi |
---|
4068 | rm -f conftest.err conftest.$ac_objext \ |
---|
4069 | conftest$ac_exeext conftest.$ac_ext |
---|
4070 | LIBS=$ac_check_lib_save_LIBS |
---|
4071 | fi |
---|
4072 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4073 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4074 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4075 | FOUND_opengl32=yes |
---|
4076 | else |
---|
4077 | "gl/gl.h" |
---|
4078 | fi |
---|
4079 | |
---|
4080 | if test "$FOUND_opengl32" = "yes" ; then |
---|
4081 | LIBS="$LIBS -lopengl32" |
---|
4082 | |
---|
4083 | else |
---|
4084 | echo "------------------" |
---|
4085 | echo "opengl not found." |
---|
4086 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4087 | echo "------------------" |
---|
4088 | exit -1 |
---|
4089 | fi |
---|
4090 | fi |
---|
4091 | |
---|
4092 | # cheking for libGLU |
---|
4093 | |
---|
4094 | for ac_header in GL/glu.h |
---|
4095 | do |
---|
4096 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4097 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4098 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4099 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4100 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4102 | fi |
---|
4103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4104 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4105 | else |
---|
4106 | # Is the header compilable? |
---|
4107 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4108 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4109 | cat >conftest.$ac_ext <<_ACEOF |
---|
4110 | /* confdefs.h. */ |
---|
4111 | _ACEOF |
---|
4112 | cat confdefs.h >>conftest.$ac_ext |
---|
4113 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4114 | /* end confdefs.h. */ |
---|
4115 | $ac_includes_default |
---|
4116 | #include <$ac_header> |
---|
4117 | _ACEOF |
---|
4118 | rm -f conftest.$ac_objext |
---|
4119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4120 | (eval $ac_compile) 2>conftest.er1 |
---|
4121 | ac_status=$? |
---|
4122 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4123 | rm -f conftest.er1 |
---|
4124 | cat conftest.err >&5 |
---|
4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4126 | (exit $ac_status); } && |
---|
4127 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4128 | || test ! -s conftest.err' |
---|
4129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4130 | (eval $ac_try) 2>&5 |
---|
4131 | ac_status=$? |
---|
4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4133 | (exit $ac_status); }; } && |
---|
4134 | { ac_try='test -s conftest.$ac_objext' |
---|
4135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4136 | (eval $ac_try) 2>&5 |
---|
4137 | ac_status=$? |
---|
4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4139 | (exit $ac_status); }; }; then |
---|
4140 | ac_header_compiler=yes |
---|
4141 | else |
---|
4142 | echo "$as_me: failed program was:" >&5 |
---|
4143 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4144 | |
---|
4145 | ac_header_compiler=no |
---|
4146 | fi |
---|
4147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4148 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4149 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4150 | |
---|
4151 | # Is the header present? |
---|
4152 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4153 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4154 | cat >conftest.$ac_ext <<_ACEOF |
---|
4155 | /* confdefs.h. */ |
---|
4156 | _ACEOF |
---|
4157 | cat confdefs.h >>conftest.$ac_ext |
---|
4158 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4159 | /* end confdefs.h. */ |
---|
4160 | #include <$ac_header> |
---|
4161 | _ACEOF |
---|
4162 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4163 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4164 | ac_status=$? |
---|
4165 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4166 | rm -f conftest.er1 |
---|
4167 | cat conftest.err >&5 |
---|
4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4169 | (exit $ac_status); } >/dev/null; then |
---|
4170 | if test -s conftest.err; then |
---|
4171 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4172 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4173 | else |
---|
4174 | ac_cpp_err= |
---|
4175 | fi |
---|
4176 | else |
---|
4177 | ac_cpp_err=yes |
---|
4178 | fi |
---|
4179 | if test -z "$ac_cpp_err"; then |
---|
4180 | ac_header_preproc=yes |
---|
4181 | else |
---|
4182 | echo "$as_me: failed program was:" >&5 |
---|
4183 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4184 | |
---|
4185 | ac_header_preproc=no |
---|
4186 | fi |
---|
4187 | rm -f conftest.err conftest.$ac_ext |
---|
4188 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4189 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4190 | |
---|
4191 | # So? What about this header? |
---|
4192 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4193 | yes:no: ) |
---|
4194 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4195 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4196 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4197 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4198 | ac_header_preproc=yes |
---|
4199 | ;; |
---|
4200 | no:yes:* ) |
---|
4201 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4202 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4203 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4204 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4205 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4206 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4207 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4208 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4209 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4210 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4211 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4212 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4213 | ( |
---|
4214 | cat <<\_ASBOX |
---|
4215 | ## ------------------------------------------- ## |
---|
4216 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4217 | ## ------------------------------------------- ## |
---|
4218 | _ASBOX |
---|
4219 | ) | |
---|
4220 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4221 | ;; |
---|
4222 | esac |
---|
4223 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4224 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4227 | else |
---|
4228 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4229 | fi |
---|
4230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4231 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4232 | |
---|
4233 | fi |
---|
4234 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4235 | cat >>confdefs.h <<_ACEOF |
---|
4236 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4237 | _ACEOF |
---|
4238 | |
---|
4239 | else |
---|
4240 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4241 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4242 | { (exit 1); exit 1; }; } |
---|
4243 | fi |
---|
4244 | |
---|
4245 | done |
---|
4246 | |
---|
4247 | |
---|
4248 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
4249 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
4250 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
4251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4252 | else |
---|
4253 | ac_check_lib_save_LIBS=$LIBS |
---|
4254 | LIBS="-lGLU $LIBS" |
---|
4255 | cat >conftest.$ac_ext <<_ACEOF |
---|
4256 | /* confdefs.h. */ |
---|
4257 | _ACEOF |
---|
4258 | cat confdefs.h >>conftest.$ac_ext |
---|
4259 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4260 | /* end confdefs.h. */ |
---|
4261 | |
---|
4262 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4263 | #ifdef __cplusplus |
---|
4264 | extern "C" |
---|
4265 | #endif |
---|
4266 | /* We use char because int might match the return type of a gcc2 |
---|
4267 | builtin and then its argument prototype would still apply. */ |
---|
4268 | char gluProject (); |
---|
4269 | int |
---|
4270 | main () |
---|
4271 | { |
---|
4272 | gluProject (); |
---|
4273 | ; |
---|
4274 | return 0; |
---|
4275 | } |
---|
4276 | _ACEOF |
---|
4277 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4279 | (eval $ac_link) 2>conftest.er1 |
---|
4280 | ac_status=$? |
---|
4281 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4282 | rm -f conftest.er1 |
---|
4283 | cat conftest.err >&5 |
---|
4284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4285 | (exit $ac_status); } && |
---|
4286 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4287 | || test ! -s conftest.err' |
---|
4288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4289 | (eval $ac_try) 2>&5 |
---|
4290 | ac_status=$? |
---|
4291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4292 | (exit $ac_status); }; } && |
---|
4293 | { ac_try='test -s conftest$ac_exeext' |
---|
4294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4295 | (eval $ac_try) 2>&5 |
---|
4296 | ac_status=$? |
---|
4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4298 | (exit $ac_status); }; }; then |
---|
4299 | ac_cv_lib_GLU_gluProject=yes |
---|
4300 | else |
---|
4301 | echo "$as_me: failed program was:" >&5 |
---|
4302 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4303 | |
---|
4304 | ac_cv_lib_GLU_gluProject=no |
---|
4305 | fi |
---|
4306 | rm -f conftest.err conftest.$ac_objext \ |
---|
4307 | conftest$ac_exeext conftest.$ac_ext |
---|
4308 | LIBS=$ac_check_lib_save_LIBS |
---|
4309 | fi |
---|
4310 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
4311 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
4312 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
4313 | FOUND_GLU=yes |
---|
4314 | fi |
---|
4315 | |
---|
4316 | if test "$FOUND_GLU" = "yes" ; then |
---|
4317 | LIBS="$LIBS -lGLU" |
---|
4318 | # checking for Windows GLU32 library |
---|
4319 | else |
---|
4320 | echo "We did not find the Linux GLU Library. Checking for Windows Library" |
---|
4321 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4322 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4323 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4325 | else |
---|
4326 | ac_check_lib_save_LIBS=$LIBS |
---|
4327 | LIBS="-lglu32 $LIBS" |
---|
4328 | cat >conftest.$ac_ext <<_ACEOF |
---|
4329 | /* confdefs.h. */ |
---|
4330 | _ACEOF |
---|
4331 | cat confdefs.h >>conftest.$ac_ext |
---|
4332 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4333 | /* end confdefs.h. */ |
---|
4334 | |
---|
4335 | |
---|
4336 | int |
---|
4337 | main () |
---|
4338 | { |
---|
4339 | main (); |
---|
4340 | ; |
---|
4341 | return 0; |
---|
4342 | } |
---|
4343 | _ACEOF |
---|
4344 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4346 | (eval $ac_link) 2>conftest.er1 |
---|
4347 | ac_status=$? |
---|
4348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4349 | rm -f conftest.er1 |
---|
4350 | cat conftest.err >&5 |
---|
4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4352 | (exit $ac_status); } && |
---|
4353 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4354 | || test ! -s conftest.err' |
---|
4355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4356 | (eval $ac_try) 2>&5 |
---|
4357 | ac_status=$? |
---|
4358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4359 | (exit $ac_status); }; } && |
---|
4360 | { ac_try='test -s conftest$ac_exeext' |
---|
4361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4362 | (eval $ac_try) 2>&5 |
---|
4363 | ac_status=$? |
---|
4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4365 | (exit $ac_status); }; }; then |
---|
4366 | ac_cv_lib_glu32_main=yes |
---|
4367 | else |
---|
4368 | echo "$as_me: failed program was:" >&5 |
---|
4369 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4370 | |
---|
4371 | ac_cv_lib_glu32_main=no |
---|
4372 | fi |
---|
4373 | rm -f conftest.err conftest.$ac_objext \ |
---|
4374 | conftest$ac_exeext conftest.$ac_ext |
---|
4375 | LIBS=$ac_check_lib_save_LIBS |
---|
4376 | fi |
---|
4377 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4378 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4379 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4380 | FOUND_glu32=yes |
---|
4381 | fi |
---|
4382 | |
---|
4383 | if test "$FOUND_glu32" = "yes" ; then |
---|
4384 | LIBS="$LIBS -lGLU32" |
---|
4385 | |
---|
4386 | else |
---|
4387 | echo "------------------" |
---|
4388 | echo "GLU library not found." |
---|
4389 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4390 | echo "------------------" |
---|
4391 | exit -1 |
---|
4392 | fi |
---|
4393 | fi |
---|
4394 | |
---|
4395 | # FIXME: Replace `main' with a function in `-lOSMesa': |
---|
4396 | |
---|
4397 | echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 |
---|
4398 | echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 |
---|
4399 | if test "${ac_cv_lib_OSMesa_main+set}" = set; then |
---|
4400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4401 | else |
---|
4402 | ac_check_lib_save_LIBS=$LIBS |
---|
4403 | LIBS="-lOSMesa $LIBS" |
---|
4404 | cat >conftest.$ac_ext <<_ACEOF |
---|
4405 | /* confdefs.h. */ |
---|
4406 | _ACEOF |
---|
4407 | cat confdefs.h >>conftest.$ac_ext |
---|
4408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4409 | /* end confdefs.h. */ |
---|
4410 | |
---|
4411 | |
---|
4412 | int |
---|
4413 | main () |
---|
4414 | { |
---|
4415 | main (); |
---|
4416 | ; |
---|
4417 | return 0; |
---|
4418 | } |
---|
4419 | _ACEOF |
---|
4420 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4422 | (eval $ac_link) 2>conftest.er1 |
---|
4423 | ac_status=$? |
---|
4424 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4425 | rm -f conftest.er1 |
---|
4426 | cat conftest.err >&5 |
---|
4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4428 | (exit $ac_status); } && |
---|
4429 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4430 | || test ! -s conftest.err' |
---|
4431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4432 | (eval $ac_try) 2>&5 |
---|
4433 | ac_status=$? |
---|
4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4435 | (exit $ac_status); }; } && |
---|
4436 | { ac_try='test -s conftest$ac_exeext' |
---|
4437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4438 | (eval $ac_try) 2>&5 |
---|
4439 | ac_status=$? |
---|
4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4441 | (exit $ac_status); }; }; then |
---|
4442 | ac_cv_lib_OSMesa_main=yes |
---|
4443 | else |
---|
4444 | echo "$as_me: failed program was:" >&5 |
---|
4445 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4446 | |
---|
4447 | ac_cv_lib_OSMesa_main=no |
---|
4448 | fi |
---|
4449 | rm -f conftest.err conftest.$ac_objext \ |
---|
4450 | conftest$ac_exeext conftest.$ac_ext |
---|
4451 | LIBS=$ac_check_lib_save_LIBS |
---|
4452 | fi |
---|
4453 | echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 |
---|
4454 | echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 |
---|
4455 | if test $ac_cv_lib_OSMesa_main = yes; then |
---|
4456 | cat >>confdefs.h <<_ACEOF |
---|
4457 | #define HAVE_LIBOSMESA 1 |
---|
4458 | _ACEOF |
---|
4459 | |
---|
4460 | LIBS="-lOSMesa $LIBS" |
---|
4461 | |
---|
4462 | fi |
---|
4463 | |
---|
4464 | # FIXME: Replace `main' with a function in `-lX11': |
---|
4465 | |
---|
4466 | echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
---|
4467 | echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
---|
4468 | if test "${ac_cv_lib_X11_main+set}" = set; then |
---|
4469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4470 | else |
---|
4471 | ac_check_lib_save_LIBS=$LIBS |
---|
4472 | LIBS="-lX11 $LIBS" |
---|
4473 | cat >conftest.$ac_ext <<_ACEOF |
---|
4474 | /* confdefs.h. */ |
---|
4475 | _ACEOF |
---|
4476 | cat confdefs.h >>conftest.$ac_ext |
---|
4477 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4478 | /* end confdefs.h. */ |
---|
4479 | |
---|
4480 | |
---|
4481 | int |
---|
4482 | main () |
---|
4483 | { |
---|
4484 | main (); |
---|
4485 | ; |
---|
4486 | return 0; |
---|
4487 | } |
---|
4488 | _ACEOF |
---|
4489 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4491 | (eval $ac_link) 2>conftest.er1 |
---|
4492 | ac_status=$? |
---|
4493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4494 | rm -f conftest.er1 |
---|
4495 | cat conftest.err >&5 |
---|
4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4497 | (exit $ac_status); } && |
---|
4498 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4499 | || test ! -s conftest.err' |
---|
4500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4501 | (eval $ac_try) 2>&5 |
---|
4502 | ac_status=$? |
---|
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4504 | (exit $ac_status); }; } && |
---|
4505 | { ac_try='test -s conftest$ac_exeext' |
---|
4506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4507 | (eval $ac_try) 2>&5 |
---|
4508 | ac_status=$? |
---|
4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4510 | (exit $ac_status); }; }; then |
---|
4511 | ac_cv_lib_X11_main=yes |
---|
4512 | else |
---|
4513 | echo "$as_me: failed program was:" >&5 |
---|
4514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4515 | |
---|
4516 | ac_cv_lib_X11_main=no |
---|
4517 | fi |
---|
4518 | rm -f conftest.err conftest.$ac_objext \ |
---|
4519 | conftest$ac_exeext conftest.$ac_ext |
---|
4520 | LIBS=$ac_check_lib_save_LIBS |
---|
4521 | fi |
---|
4522 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 |
---|
4523 | echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 |
---|
4524 | if test $ac_cv_lib_X11_main = yes; then |
---|
4525 | cat >>confdefs.h <<_ACEOF |
---|
4526 | #define HAVE_LIBX11 1 |
---|
4527 | _ACEOF |
---|
4528 | |
---|
4529 | LIBS="-lX11 $LIBS" |
---|
4530 | |
---|
4531 | fi |
---|
4532 | |
---|
4533 | # FIXME: Replace `main' with a function in `-lXt': |
---|
4534 | |
---|
4535 | echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
---|
4536 | echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
---|
4537 | if test "${ac_cv_lib_Xt_main+set}" = set; then |
---|
4538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4539 | else |
---|
4540 | ac_check_lib_save_LIBS=$LIBS |
---|
4541 | LIBS="-lXt $LIBS" |
---|
4542 | cat >conftest.$ac_ext <<_ACEOF |
---|
4543 | /* confdefs.h. */ |
---|
4544 | _ACEOF |
---|
4545 | cat confdefs.h >>conftest.$ac_ext |
---|
4546 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4547 | /* end confdefs.h. */ |
---|
4548 | |
---|
4549 | |
---|
4550 | int |
---|
4551 | main () |
---|
4552 | { |
---|
4553 | main (); |
---|
4554 | ; |
---|
4555 | return 0; |
---|
4556 | } |
---|
4557 | _ACEOF |
---|
4558 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4560 | (eval $ac_link) 2>conftest.er1 |
---|
4561 | ac_status=$? |
---|
4562 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4563 | rm -f conftest.er1 |
---|
4564 | cat conftest.err >&5 |
---|
4565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4566 | (exit $ac_status); } && |
---|
4567 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4568 | || test ! -s conftest.err' |
---|
4569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4570 | (eval $ac_try) 2>&5 |
---|
4571 | ac_status=$? |
---|
4572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4573 | (exit $ac_status); }; } && |
---|
4574 | { ac_try='test -s conftest$ac_exeext' |
---|
4575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4576 | (eval $ac_try) 2>&5 |
---|
4577 | ac_status=$? |
---|
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4579 | (exit $ac_status); }; }; then |
---|
4580 | ac_cv_lib_Xt_main=yes |
---|
4581 | else |
---|
4582 | echo "$as_me: failed program was:" >&5 |
---|
4583 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4584 | |
---|
4585 | ac_cv_lib_Xt_main=no |
---|
4586 | fi |
---|
4587 | rm -f conftest.err conftest.$ac_objext \ |
---|
4588 | conftest$ac_exeext conftest.$ac_ext |
---|
4589 | LIBS=$ac_check_lib_save_LIBS |
---|
4590 | fi |
---|
4591 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 |
---|
4592 | echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 |
---|
4593 | if test $ac_cv_lib_Xt_main = yes; then |
---|
4594 | cat >>confdefs.h <<_ACEOF |
---|
4595 | #define HAVE_LIBXT 1 |
---|
4596 | _ACEOF |
---|
4597 | |
---|
4598 | LIBS="-lXt $LIBS" |
---|
4599 | |
---|
4600 | fi |
---|
4601 | |
---|
4602 | |
---|
4603 | # cheking for libglut32 |
---|
4604 | |
---|
4605 | for ac_header in GL/glut.h |
---|
4606 | do |
---|
4607 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4608 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4609 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4610 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4611 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4613 | fi |
---|
4614 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4615 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4616 | else |
---|
4617 | # Is the header compilable? |
---|
4618 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4619 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4620 | cat >conftest.$ac_ext <<_ACEOF |
---|
4621 | /* confdefs.h. */ |
---|
4622 | _ACEOF |
---|
4623 | cat confdefs.h >>conftest.$ac_ext |
---|
4624 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4625 | /* end confdefs.h. */ |
---|
4626 | $ac_includes_default |
---|
4627 | #include <$ac_header> |
---|
4628 | _ACEOF |
---|
4629 | rm -f conftest.$ac_objext |
---|
4630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4631 | (eval $ac_compile) 2>conftest.er1 |
---|
4632 | ac_status=$? |
---|
4633 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4634 | rm -f conftest.er1 |
---|
4635 | cat conftest.err >&5 |
---|
4636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4637 | (exit $ac_status); } && |
---|
4638 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4639 | || test ! -s conftest.err' |
---|
4640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4641 | (eval $ac_try) 2>&5 |
---|
4642 | ac_status=$? |
---|
4643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4644 | (exit $ac_status); }; } && |
---|
4645 | { ac_try='test -s conftest.$ac_objext' |
---|
4646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4647 | (eval $ac_try) 2>&5 |
---|
4648 | ac_status=$? |
---|
4649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4650 | (exit $ac_status); }; }; then |
---|
4651 | ac_header_compiler=yes |
---|
4652 | else |
---|
4653 | echo "$as_me: failed program was:" >&5 |
---|
4654 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4655 | |
---|
4656 | ac_header_compiler=no |
---|
4657 | fi |
---|
4658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4659 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4660 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4661 | |
---|
4662 | # Is the header present? |
---|
4663 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4664 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4665 | cat >conftest.$ac_ext <<_ACEOF |
---|
4666 | /* confdefs.h. */ |
---|
4667 | _ACEOF |
---|
4668 | cat confdefs.h >>conftest.$ac_ext |
---|
4669 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4670 | /* end confdefs.h. */ |
---|
4671 | #include <$ac_header> |
---|
4672 | _ACEOF |
---|
4673 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4674 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4675 | ac_status=$? |
---|
4676 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4677 | rm -f conftest.er1 |
---|
4678 | cat conftest.err >&5 |
---|
4679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4680 | (exit $ac_status); } >/dev/null; then |
---|
4681 | if test -s conftest.err; then |
---|
4682 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4683 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4684 | else |
---|
4685 | ac_cpp_err= |
---|
4686 | fi |
---|
4687 | else |
---|
4688 | ac_cpp_err=yes |
---|
4689 | fi |
---|
4690 | if test -z "$ac_cpp_err"; then |
---|
4691 | ac_header_preproc=yes |
---|
4692 | else |
---|
4693 | echo "$as_me: failed program was:" >&5 |
---|
4694 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4695 | |
---|
4696 | ac_header_preproc=no |
---|
4697 | fi |
---|
4698 | rm -f conftest.err conftest.$ac_ext |
---|
4699 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4700 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4701 | |
---|
4702 | # So? What about this header? |
---|
4703 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4704 | yes:no: ) |
---|
4705 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4706 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4708 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4709 | ac_header_preproc=yes |
---|
4710 | ;; |
---|
4711 | no:yes:* ) |
---|
4712 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4713 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4714 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4715 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4716 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4717 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4718 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4719 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4721 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4722 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4723 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4724 | ( |
---|
4725 | cat <<\_ASBOX |
---|
4726 | ## ------------------------------------------- ## |
---|
4727 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4728 | ## ------------------------------------------- ## |
---|
4729 | _ASBOX |
---|
4730 | ) | |
---|
4731 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4732 | ;; |
---|
4733 | esac |
---|
4734 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4738 | else |
---|
4739 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4740 | fi |
---|
4741 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4742 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4743 | |
---|
4744 | fi |
---|
4745 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4746 | cat >>confdefs.h <<_ACEOF |
---|
4747 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4748 | _ACEOF |
---|
4749 | |
---|
4750 | else |
---|
4751 | { { echo "$as_me:$LINENO: error: cannot find glut headers" >&5 |
---|
4752 | echo "$as_me: error: cannot find glut headers" >&2;} |
---|
4753 | { (exit 1); exit 1; }; } |
---|
4754 | fi |
---|
4755 | |
---|
4756 | done |
---|
4757 | |
---|
4758 | echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5 |
---|
4759 | echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6 |
---|
4760 | if test "${ac_cv_lib_glut_glutInit+set}" = set; then |
---|
4761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4762 | else |
---|
4763 | ac_check_lib_save_LIBS=$LIBS |
---|
4764 | LIBS="-lglut $LIBS" |
---|
4765 | cat >conftest.$ac_ext <<_ACEOF |
---|
4766 | /* confdefs.h. */ |
---|
4767 | _ACEOF |
---|
4768 | cat confdefs.h >>conftest.$ac_ext |
---|
4769 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4770 | /* end confdefs.h. */ |
---|
4771 | |
---|
4772 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4773 | #ifdef __cplusplus |
---|
4774 | extern "C" |
---|
4775 | #endif |
---|
4776 | /* We use char because int might match the return type of a gcc2 |
---|
4777 | builtin and then its argument prototype would still apply. */ |
---|
4778 | char glutInit (); |
---|
4779 | int |
---|
4780 | main () |
---|
4781 | { |
---|
4782 | glutInit (); |
---|
4783 | ; |
---|
4784 | return 0; |
---|
4785 | } |
---|
4786 | _ACEOF |
---|
4787 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4789 | (eval $ac_link) 2>conftest.er1 |
---|
4790 | ac_status=$? |
---|
4791 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4792 | rm -f conftest.er1 |
---|
4793 | cat conftest.err >&5 |
---|
4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4795 | (exit $ac_status); } && |
---|
4796 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4797 | || test ! -s conftest.err' |
---|
4798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4799 | (eval $ac_try) 2>&5 |
---|
4800 | ac_status=$? |
---|
4801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4802 | (exit $ac_status); }; } && |
---|
4803 | { ac_try='test -s conftest$ac_exeext' |
---|
4804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4805 | (eval $ac_try) 2>&5 |
---|
4806 | ac_status=$? |
---|
4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4808 | (exit $ac_status); }; }; then |
---|
4809 | ac_cv_lib_glut_glutInit=yes |
---|
4810 | else |
---|
4811 | echo "$as_me: failed program was:" >&5 |
---|
4812 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4813 | |
---|
4814 | ac_cv_lib_glut_glutInit=no |
---|
4815 | fi |
---|
4816 | rm -f conftest.err conftest.$ac_objext \ |
---|
4817 | conftest$ac_exeext conftest.$ac_ext |
---|
4818 | LIBS=$ac_check_lib_save_LIBS |
---|
4819 | fi |
---|
4820 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5 |
---|
4821 | echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6 |
---|
4822 | if test $ac_cv_lib_glut_glutInit = yes; then |
---|
4823 | FOUND_glut=yes |
---|
4824 | fi |
---|
4825 | |
---|
4826 | if test "$FOUND_glut" = "yes" ; then |
---|
4827 | LIBS="$LIBS -lglut" |
---|
4828 | # checking for Windows glut32 library |
---|
4829 | else |
---|
4830 | echo "We did not find the Linux glut Library. Checking for Windows Library" |
---|
4831 | echo "$as_me:$LINENO: checking for main in -lglut32" >&5 |
---|
4832 | echo $ECHO_N "checking for main in -lglut32... $ECHO_C" >&6 |
---|
4833 | if test "${ac_cv_lib_glut32_main+set}" = set; then |
---|
4834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4835 | else |
---|
4836 | ac_check_lib_save_LIBS=$LIBS |
---|
4837 | LIBS="-lglut32 $LIBS" |
---|
4838 | cat >conftest.$ac_ext <<_ACEOF |
---|
4839 | /* confdefs.h. */ |
---|
4840 | _ACEOF |
---|
4841 | cat confdefs.h >>conftest.$ac_ext |
---|
4842 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4843 | /* end confdefs.h. */ |
---|
4844 | |
---|
4845 | |
---|
4846 | int |
---|
4847 | main () |
---|
4848 | { |
---|
4849 | main (); |
---|
4850 | ; |
---|
4851 | return 0; |
---|
4852 | } |
---|
4853 | _ACEOF |
---|
4854 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4856 | (eval $ac_link) 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); } && |
---|
4863 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4864 | || test ! -s conftest.err' |
---|
4865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4866 | (eval $ac_try) 2>&5 |
---|
4867 | ac_status=$? |
---|
4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4869 | (exit $ac_status); }; } && |
---|
4870 | { ac_try='test -s conftest$ac_exeext' |
---|
4871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4872 | (eval $ac_try) 2>&5 |
---|
4873 | ac_status=$? |
---|
4874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4875 | (exit $ac_status); }; }; then |
---|
4876 | ac_cv_lib_glut32_main=yes |
---|
4877 | else |
---|
4878 | echo "$as_me: failed program was:" >&5 |
---|
4879 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4880 | |
---|
4881 | ac_cv_lib_glut32_main=no |
---|
4882 | fi |
---|
4883 | rm -f conftest.err conftest.$ac_objext \ |
---|
4884 | conftest$ac_exeext conftest.$ac_ext |
---|
4885 | LIBS=$ac_check_lib_save_LIBS |
---|
4886 | fi |
---|
4887 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut32_main" >&5 |
---|
4888 | echo "${ECHO_T}$ac_cv_lib_glut32_main" >&6 |
---|
4889 | if test $ac_cv_lib_glut32_main = yes; then |
---|
4890 | FOUND_glut32=yes |
---|
4891 | fi |
---|
4892 | |
---|
4893 | if test "$FOUND_glut32" = "yes" ; then |
---|
4894 | LIBS="$LIBS -lglut32" |
---|
4895 | else |
---|
4896 | echo "------------------" |
---|
4897 | echo "glut library not found." |
---|
4898 | echo "please install the glut library, which can be found at http://www.xmission.com/~nate/glut.html" |
---|
4899 | echo "------------------" |
---|
4900 | exit -1 |
---|
4901 | fi |
---|
4902 | fi |
---|
4903 | |
---|
4904 | ## SDL CHECK |
---|
4905 | |
---|
4906 | #checking for SDL libs |
---|
4907 | |
---|
4908 | for ac_header in SDL/SDL.h |
---|
4909 | do |
---|
4910 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4911 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4912 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4913 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4916 | fi |
---|
4917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4919 | else |
---|
4920 | # Is the header compilable? |
---|
4921 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4922 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4923 | cat >conftest.$ac_ext <<_ACEOF |
---|
4924 | /* confdefs.h. */ |
---|
4925 | _ACEOF |
---|
4926 | cat confdefs.h >>conftest.$ac_ext |
---|
4927 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4928 | /* end confdefs.h. */ |
---|
4929 | $ac_includes_default |
---|
4930 | #include <$ac_header> |
---|
4931 | _ACEOF |
---|
4932 | rm -f conftest.$ac_objext |
---|
4933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4934 | (eval $ac_compile) 2>conftest.er1 |
---|
4935 | ac_status=$? |
---|
4936 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4937 | rm -f conftest.er1 |
---|
4938 | cat conftest.err >&5 |
---|
4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4940 | (exit $ac_status); } && |
---|
4941 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4942 | || test ! -s conftest.err' |
---|
4943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4944 | (eval $ac_try) 2>&5 |
---|
4945 | ac_status=$? |
---|
4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4947 | (exit $ac_status); }; } && |
---|
4948 | { ac_try='test -s conftest.$ac_objext' |
---|
4949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4950 | (eval $ac_try) 2>&5 |
---|
4951 | ac_status=$? |
---|
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4953 | (exit $ac_status); }; }; then |
---|
4954 | ac_header_compiler=yes |
---|
4955 | else |
---|
4956 | echo "$as_me: failed program was:" >&5 |
---|
4957 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4958 | |
---|
4959 | ac_header_compiler=no |
---|
4960 | fi |
---|
4961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4962 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4963 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4964 | |
---|
4965 | # Is the header present? |
---|
4966 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4967 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4968 | cat >conftest.$ac_ext <<_ACEOF |
---|
4969 | /* confdefs.h. */ |
---|
4970 | _ACEOF |
---|
4971 | cat confdefs.h >>conftest.$ac_ext |
---|
4972 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4973 | /* end confdefs.h. */ |
---|
4974 | #include <$ac_header> |
---|
4975 | _ACEOF |
---|
4976 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4977 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4978 | ac_status=$? |
---|
4979 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4980 | rm -f conftest.er1 |
---|
4981 | cat conftest.err >&5 |
---|
4982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4983 | (exit $ac_status); } >/dev/null; then |
---|
4984 | if test -s conftest.err; then |
---|
4985 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4986 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4987 | else |
---|
4988 | ac_cpp_err= |
---|
4989 | fi |
---|
4990 | else |
---|
4991 | ac_cpp_err=yes |
---|
4992 | fi |
---|
4993 | if test -z "$ac_cpp_err"; then |
---|
4994 | ac_header_preproc=yes |
---|
4995 | else |
---|
4996 | echo "$as_me: failed program was:" >&5 |
---|
4997 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4998 | |
---|
4999 | ac_header_preproc=no |
---|
5000 | fi |
---|
5001 | rm -f conftest.err conftest.$ac_ext |
---|
5002 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5003 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5004 | |
---|
5005 | # So? What about this header? |
---|
5006 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5007 | yes:no: ) |
---|
5008 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5009 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5010 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5011 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5012 | ac_header_preproc=yes |
---|
5013 | ;; |
---|
5014 | no:yes:* ) |
---|
5015 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5016 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5017 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5018 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5019 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5020 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5021 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5022 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5023 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5024 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5025 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5026 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5027 | ( |
---|
5028 | cat <<\_ASBOX |
---|
5029 | ## ------------------------------------------- ## |
---|
5030 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5031 | ## ------------------------------------------- ## |
---|
5032 | _ASBOX |
---|
5033 | ) | |
---|
5034 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5035 | ;; |
---|
5036 | esac |
---|
5037 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5038 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5039 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5041 | else |
---|
5042 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5043 | fi |
---|
5044 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5045 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5046 | |
---|
5047 | fi |
---|
5048 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5049 | cat >>confdefs.h <<_ACEOF |
---|
5050 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5051 | _ACEOF |
---|
5052 | |
---|
5053 | else |
---|
5054 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
5055 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
5056 | { (exit 1); exit 1; }; } |
---|
5057 | fi |
---|
5058 | |
---|
5059 | done |
---|
5060 | |
---|
5061 | |
---|
5062 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
5063 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
5064 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
5065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5066 | else |
---|
5067 | ac_check_lib_save_LIBS=$LIBS |
---|
5068 | LIBS="-lSDL $LIBS" |
---|
5069 | cat >conftest.$ac_ext <<_ACEOF |
---|
5070 | /* confdefs.h. */ |
---|
5071 | _ACEOF |
---|
5072 | cat confdefs.h >>conftest.$ac_ext |
---|
5073 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5074 | /* end confdefs.h. */ |
---|
5075 | |
---|
5076 | |
---|
5077 | int |
---|
5078 | main () |
---|
5079 | { |
---|
5080 | main (); |
---|
5081 | ; |
---|
5082 | return 0; |
---|
5083 | } |
---|
5084 | _ACEOF |
---|
5085 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5087 | (eval $ac_link) 2>conftest.er1 |
---|
5088 | ac_status=$? |
---|
5089 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5090 | rm -f conftest.er1 |
---|
5091 | cat conftest.err >&5 |
---|
5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5093 | (exit $ac_status); } && |
---|
5094 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5095 | || test ! -s conftest.err' |
---|
5096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5097 | (eval $ac_try) 2>&5 |
---|
5098 | ac_status=$? |
---|
5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5100 | (exit $ac_status); }; } && |
---|
5101 | { ac_try='test -s conftest$ac_exeext' |
---|
5102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5103 | (eval $ac_try) 2>&5 |
---|
5104 | ac_status=$? |
---|
5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5106 | (exit $ac_status); }; }; then |
---|
5107 | ac_cv_lib_SDL_main=yes |
---|
5108 | else |
---|
5109 | echo "$as_me: failed program was:" >&5 |
---|
5110 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5111 | |
---|
5112 | ac_cv_lib_SDL_main=no |
---|
5113 | fi |
---|
5114 | rm -f conftest.err conftest.$ac_objext \ |
---|
5115 | conftest$ac_exeext conftest.$ac_ext |
---|
5116 | LIBS=$ac_check_lib_save_LIBS |
---|
5117 | fi |
---|
5118 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
5119 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
5120 | if test $ac_cv_lib_SDL_main = yes; then |
---|
5121 | FOUND_SDL=yes |
---|
5122 | fi |
---|
5123 | |
---|
5124 | if test "$FOUND_SDL" = "yes" ; then |
---|
5125 | LIBS="$LIBS -lSDL" |
---|
5126 | # checking for Windows sdl library |
---|
5127 | else |
---|
5128 | echo "We did not find the Linux sdl Library. Checking for Windows Library" |
---|
5129 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
5130 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
5131 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
5132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5133 | else |
---|
5134 | ac_check_lib_save_LIBS=$LIBS |
---|
5135 | LIBS="-lsdlmain $LIBS" |
---|
5136 | cat >conftest.$ac_ext <<_ACEOF |
---|
5137 | /* confdefs.h. */ |
---|
5138 | _ACEOF |
---|
5139 | cat confdefs.h >>conftest.$ac_ext |
---|
5140 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5141 | /* end confdefs.h. */ |
---|
5142 | |
---|
5143 | |
---|
5144 | int |
---|
5145 | main () |
---|
5146 | { |
---|
5147 | main (); |
---|
5148 | ; |
---|
5149 | return 0; |
---|
5150 | } |
---|
5151 | _ACEOF |
---|
5152 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5154 | (eval $ac_link) 2>conftest.er1 |
---|
5155 | ac_status=$? |
---|
5156 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5157 | rm -f conftest.er1 |
---|
5158 | cat conftest.err >&5 |
---|
5159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5160 | (exit $ac_status); } && |
---|
5161 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5162 | || test ! -s conftest.err' |
---|
5163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5164 | (eval $ac_try) 2>&5 |
---|
5165 | ac_status=$? |
---|
5166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5167 | (exit $ac_status); }; } && |
---|
5168 | { ac_try='test -s conftest$ac_exeext' |
---|
5169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5170 | (eval $ac_try) 2>&5 |
---|
5171 | ac_status=$? |
---|
5172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5173 | (exit $ac_status); }; }; then |
---|
5174 | ac_cv_lib_sdlmain_main=yes |
---|
5175 | else |
---|
5176 | echo "$as_me: failed program was:" >&5 |
---|
5177 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5178 | |
---|
5179 | ac_cv_lib_sdlmain_main=no |
---|
5180 | fi |
---|
5181 | rm -f conftest.err conftest.$ac_objext \ |
---|
5182 | conftest$ac_exeext conftest.$ac_ext |
---|
5183 | LIBS=$ac_check_lib_save_LIBS |
---|
5184 | fi |
---|
5185 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
5186 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
5187 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
5188 | FOUND_sdlmain=yes |
---|
5189 | fi |
---|
5190 | |
---|
5191 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
5192 | LIBS="$LIBS -lsdlmain -lsdl" |
---|
5193 | else |
---|
5194 | echo "------------------" |
---|
5195 | echo "sdl library not found." |
---|
5196 | echo "please install the libsdl, which can be found at http://www.libsdl.org" |
---|
5197 | echo "------------------" |
---|
5198 | exit -1 |
---|
5199 | fi |
---|
5200 | fi |
---|
5201 | |
---|
5202 | #checking for pthread libs |
---|
5203 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
5204 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
5205 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
5206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5207 | else |
---|
5208 | ac_check_lib_save_LIBS=$LIBS |
---|
5209 | LIBS="-lpthread $LIBS" |
---|
5210 | cat >conftest.$ac_ext <<_ACEOF |
---|
5211 | /* confdefs.h. */ |
---|
5212 | _ACEOF |
---|
5213 | cat confdefs.h >>conftest.$ac_ext |
---|
5214 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5215 | /* end confdefs.h. */ |
---|
5216 | |
---|
5217 | |
---|
5218 | int |
---|
5219 | main () |
---|
5220 | { |
---|
5221 | main (); |
---|
5222 | ; |
---|
5223 | return 0; |
---|
5224 | } |
---|
5225 | _ACEOF |
---|
5226 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5228 | (eval $ac_link) 2>conftest.er1 |
---|
5229 | ac_status=$? |
---|
5230 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5231 | rm -f conftest.er1 |
---|
5232 | cat conftest.err >&5 |
---|
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5234 | (exit $ac_status); } && |
---|
5235 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5236 | || test ! -s conftest.err' |
---|
5237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5238 | (eval $ac_try) 2>&5 |
---|
5239 | ac_status=$? |
---|
5240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5241 | (exit $ac_status); }; } && |
---|
5242 | { ac_try='test -s conftest$ac_exeext' |
---|
5243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5244 | (eval $ac_try) 2>&5 |
---|
5245 | ac_status=$? |
---|
5246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5247 | (exit $ac_status); }; }; then |
---|
5248 | ac_cv_lib_pthread_main=yes |
---|
5249 | else |
---|
5250 | echo "$as_me: failed program was:" >&5 |
---|
5251 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5252 | |
---|
5253 | ac_cv_lib_pthread_main=no |
---|
5254 | fi |
---|
5255 | rm -f conftest.err conftest.$ac_objext \ |
---|
5256 | conftest$ac_exeext conftest.$ac_ext |
---|
5257 | LIBS=$ac_check_lib_save_LIBS |
---|
5258 | fi |
---|
5259 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
5260 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
5261 | if test $ac_cv_lib_pthread_main = yes; then |
---|
5262 | FOUND_pthread=yes |
---|
5263 | fi |
---|
5264 | |
---|
5265 | if test "$FOUND_pthread" = "yes" ; then |
---|
5266 | LIBS="$LIBS -lpthread" |
---|
5267 | fi |
---|
5268 | |
---|
5269 | #checking for libs |
---|
5270 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
5271 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
5272 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
5273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5274 | else |
---|
5275 | ac_check_lib_save_LIBS=$LIBS |
---|
5276 | LIBS="-lpthread $LIBS" |
---|
5277 | cat >conftest.$ac_ext <<_ACEOF |
---|
5278 | /* confdefs.h. */ |
---|
5279 | _ACEOF |
---|
5280 | cat confdefs.h >>conftest.$ac_ext |
---|
5281 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5282 | /* end confdefs.h. */ |
---|
5283 | |
---|
5284 | |
---|
5285 | int |
---|
5286 | main () |
---|
5287 | { |
---|
5288 | main (); |
---|
5289 | ; |
---|
5290 | return 0; |
---|
5291 | } |
---|
5292 | _ACEOF |
---|
5293 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5295 | (eval $ac_link) 2>conftest.er1 |
---|
5296 | ac_status=$? |
---|
5297 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5298 | rm -f conftest.er1 |
---|
5299 | cat conftest.err >&5 |
---|
5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5301 | (exit $ac_status); } && |
---|
5302 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5303 | || test ! -s conftest.err' |
---|
5304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5305 | (eval $ac_try) 2>&5 |
---|
5306 | ac_status=$? |
---|
5307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5308 | (exit $ac_status); }; } && |
---|
5309 | { ac_try='test -s conftest$ac_exeext' |
---|
5310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5311 | (eval $ac_try) 2>&5 |
---|
5312 | ac_status=$? |
---|
5313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5314 | (exit $ac_status); }; }; then |
---|
5315 | ac_cv_lib_pthread_main=yes |
---|
5316 | else |
---|
5317 | echo "$as_me: failed program was:" >&5 |
---|
5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5319 | |
---|
5320 | ac_cv_lib_pthread_main=no |
---|
5321 | fi |
---|
5322 | rm -f conftest.err conftest.$ac_objext \ |
---|
5323 | conftest$ac_exeext conftest.$ac_ext |
---|
5324 | LIBS=$ac_check_lib_save_LIBS |
---|
5325 | fi |
---|
5326 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
5327 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
5328 | if test $ac_cv_lib_pthread_main = yes; then |
---|
5329 | FOUND_pthread=yes |
---|
5330 | fi |
---|
5331 | |
---|
5332 | if test "$FOUND_pthread" = "yes" ; then |
---|
5333 | LIBS="$LIBS -lpthread" |
---|
5334 | fi |
---|
5335 | |
---|
5336 | |
---|
5337 | |
---|
5338 | |
---|
5339 | |
---|
5340 | # FIXME: Replace `main' with a function in `-lm': |
---|
5341 | |
---|
5342 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
5343 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
5344 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
5345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5346 | else |
---|
5347 | ac_check_lib_save_LIBS=$LIBS |
---|
5348 | LIBS="-lm $LIBS" |
---|
5349 | cat >conftest.$ac_ext <<_ACEOF |
---|
5350 | /* confdefs.h. */ |
---|
5351 | _ACEOF |
---|
5352 | cat confdefs.h >>conftest.$ac_ext |
---|
5353 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5354 | /* end confdefs.h. */ |
---|
5355 | |
---|
5356 | |
---|
5357 | int |
---|
5358 | main () |
---|
5359 | { |
---|
5360 | main (); |
---|
5361 | ; |
---|
5362 | return 0; |
---|
5363 | } |
---|
5364 | _ACEOF |
---|
5365 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5367 | (eval $ac_link) 2>conftest.er1 |
---|
5368 | ac_status=$? |
---|
5369 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5370 | rm -f conftest.er1 |
---|
5371 | cat conftest.err >&5 |
---|
5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5373 | (exit $ac_status); } && |
---|
5374 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5375 | || test ! -s conftest.err' |
---|
5376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5377 | (eval $ac_try) 2>&5 |
---|
5378 | ac_status=$? |
---|
5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5380 | (exit $ac_status); }; } && |
---|
5381 | { ac_try='test -s conftest$ac_exeext' |
---|
5382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5383 | (eval $ac_try) 2>&5 |
---|
5384 | ac_status=$? |
---|
5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5386 | (exit $ac_status); }; }; then |
---|
5387 | ac_cv_lib_m_main=yes |
---|
5388 | else |
---|
5389 | echo "$as_me: failed program was:" >&5 |
---|
5390 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5391 | |
---|
5392 | ac_cv_lib_m_main=no |
---|
5393 | fi |
---|
5394 | rm -f conftest.err conftest.$ac_objext \ |
---|
5395 | conftest$ac_exeext conftest.$ac_ext |
---|
5396 | LIBS=$ac_check_lib_save_LIBS |
---|
5397 | fi |
---|
5398 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
5399 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
5400 | if test $ac_cv_lib_m_main = yes; then |
---|
5401 | cat >>confdefs.h <<_ACEOF |
---|
5402 | #define HAVE_LIBM 1 |
---|
5403 | _ACEOF |
---|
5404 | |
---|
5405 | LIBS="-lm $LIBS" |
---|
5406 | |
---|
5407 | fi |
---|
5408 | |
---|
5409 | |
---|
5410 | LIBS="$LIBS `pkg-config --libs gtk+-2.0`" |
---|
5411 | |
---|
5412 | |
---|
5413 | # Checks for header files. |
---|
5414 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5415 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5416 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5418 | else |
---|
5419 | cat >conftest.$ac_ext <<_ACEOF |
---|
5420 | /* confdefs.h. */ |
---|
5421 | _ACEOF |
---|
5422 | cat confdefs.h >>conftest.$ac_ext |
---|
5423 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5424 | /* end confdefs.h. */ |
---|
5425 | #include <stdlib.h> |
---|
5426 | #include <stdarg.h> |
---|
5427 | #include <string.h> |
---|
5428 | #include <float.h> |
---|
5429 | |
---|
5430 | int |
---|
5431 | main () |
---|
5432 | { |
---|
5433 | |
---|
5434 | ; |
---|
5435 | return 0; |
---|
5436 | } |
---|
5437 | _ACEOF |
---|
5438 | rm -f conftest.$ac_objext |
---|
5439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5440 | (eval $ac_compile) 2>conftest.er1 |
---|
5441 | ac_status=$? |
---|
5442 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5443 | rm -f conftest.er1 |
---|
5444 | cat conftest.err >&5 |
---|
5445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5446 | (exit $ac_status); } && |
---|
5447 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5448 | || test ! -s conftest.err' |
---|
5449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5450 | (eval $ac_try) 2>&5 |
---|
5451 | ac_status=$? |
---|
5452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5453 | (exit $ac_status); }; } && |
---|
5454 | { ac_try='test -s conftest.$ac_objext' |
---|
5455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5456 | (eval $ac_try) 2>&5 |
---|
5457 | ac_status=$? |
---|
5458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5459 | (exit $ac_status); }; }; then |
---|
5460 | ac_cv_header_stdc=yes |
---|
5461 | else |
---|
5462 | echo "$as_me: failed program was:" >&5 |
---|
5463 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5464 | |
---|
5465 | ac_cv_header_stdc=no |
---|
5466 | fi |
---|
5467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5468 | |
---|
5469 | if test $ac_cv_header_stdc = yes; then |
---|
5470 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5471 | cat >conftest.$ac_ext <<_ACEOF |
---|
5472 | /* confdefs.h. */ |
---|
5473 | _ACEOF |
---|
5474 | cat confdefs.h >>conftest.$ac_ext |
---|
5475 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5476 | /* end confdefs.h. */ |
---|
5477 | #include <string.h> |
---|
5478 | |
---|
5479 | _ACEOF |
---|
5480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5481 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
5482 | : |
---|
5483 | else |
---|
5484 | ac_cv_header_stdc=no |
---|
5485 | fi |
---|
5486 | rm -f conftest* |
---|
5487 | |
---|
5488 | fi |
---|
5489 | |
---|
5490 | if test $ac_cv_header_stdc = yes; then |
---|
5491 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5492 | cat >conftest.$ac_ext <<_ACEOF |
---|
5493 | /* confdefs.h. */ |
---|
5494 | _ACEOF |
---|
5495 | cat confdefs.h >>conftest.$ac_ext |
---|
5496 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5497 | /* end confdefs.h. */ |
---|
5498 | #include <stdlib.h> |
---|
5499 | |
---|
5500 | _ACEOF |
---|
5501 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5502 | $EGREP "free" >/dev/null 2>&1; then |
---|
5503 | : |
---|
5504 | else |
---|
5505 | ac_cv_header_stdc=no |
---|
5506 | fi |
---|
5507 | rm -f conftest* |
---|
5508 | |
---|
5509 | fi |
---|
5510 | |
---|
5511 | if test $ac_cv_header_stdc = yes; then |
---|
5512 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5513 | if test "$cross_compiling" = yes; then |
---|
5514 | : |
---|
5515 | else |
---|
5516 | cat >conftest.$ac_ext <<_ACEOF |
---|
5517 | /* confdefs.h. */ |
---|
5518 | _ACEOF |
---|
5519 | cat confdefs.h >>conftest.$ac_ext |
---|
5520 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5521 | /* end confdefs.h. */ |
---|
5522 | #include <ctype.h> |
---|
5523 | #if ((' ' & 0x0FF) == 0x020) |
---|
5524 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5525 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5526 | #else |
---|
5527 | # define ISLOWER(c) \ |
---|
5528 | (('a' <= (c) && (c) <= 'i') \ |
---|
5529 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5530 | || ('s' <= (c) && (c) <= 'z')) |
---|
5531 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5532 | #endif |
---|
5533 | |
---|
5534 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5535 | int |
---|
5536 | main () |
---|
5537 | { |
---|
5538 | int i; |
---|
5539 | for (i = 0; i < 256; i++) |
---|
5540 | if (XOR (islower (i), ISLOWER (i)) |
---|
5541 | || toupper (i) != TOUPPER (i)) |
---|
5542 | exit(2); |
---|
5543 | exit (0); |
---|
5544 | } |
---|
5545 | _ACEOF |
---|
5546 | rm -f conftest$ac_exeext |
---|
5547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5548 | (eval $ac_link) 2>&5 |
---|
5549 | ac_status=$? |
---|
5550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5551 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5553 | (eval $ac_try) 2>&5 |
---|
5554 | ac_status=$? |
---|
5555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5556 | (exit $ac_status); }; }; then |
---|
5557 | : |
---|
5558 | else |
---|
5559 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5560 | echo "$as_me: failed program was:" >&5 |
---|
5561 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5562 | |
---|
5563 | ( exit $ac_status ) |
---|
5564 | ac_cv_header_stdc=no |
---|
5565 | fi |
---|
5566 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5567 | fi |
---|
5568 | fi |
---|
5569 | fi |
---|
5570 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
5571 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
5572 | if test $ac_cv_header_stdc = yes; then |
---|
5573 | |
---|
5574 | cat >>confdefs.h <<\_ACEOF |
---|
5575 | #define STDC_HEADERS 1 |
---|
5576 | _ACEOF |
---|
5577 | |
---|
5578 | fi |
---|
5579 | |
---|
5580 | |
---|
5581 | |
---|
5582 | for ac_header in stdlib.h string.h |
---|
5583 | do |
---|
5584 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5586 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5587 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5588 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5590 | fi |
---|
5591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5592 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5593 | else |
---|
5594 | # Is the header compilable? |
---|
5595 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5596 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5597 | cat >conftest.$ac_ext <<_ACEOF |
---|
5598 | /* confdefs.h. */ |
---|
5599 | _ACEOF |
---|
5600 | cat confdefs.h >>conftest.$ac_ext |
---|
5601 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5602 | /* end confdefs.h. */ |
---|
5603 | $ac_includes_default |
---|
5604 | #include <$ac_header> |
---|
5605 | _ACEOF |
---|
5606 | rm -f conftest.$ac_objext |
---|
5607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5608 | (eval $ac_compile) 2>conftest.er1 |
---|
5609 | ac_status=$? |
---|
5610 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5611 | rm -f conftest.er1 |
---|
5612 | cat conftest.err >&5 |
---|
5613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5614 | (exit $ac_status); } && |
---|
5615 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5616 | || test ! -s conftest.err' |
---|
5617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5618 | (eval $ac_try) 2>&5 |
---|
5619 | ac_status=$? |
---|
5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5621 | (exit $ac_status); }; } && |
---|
5622 | { ac_try='test -s conftest.$ac_objext' |
---|
5623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5624 | (eval $ac_try) 2>&5 |
---|
5625 | ac_status=$? |
---|
5626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5627 | (exit $ac_status); }; }; then |
---|
5628 | ac_header_compiler=yes |
---|
5629 | else |
---|
5630 | echo "$as_me: failed program was:" >&5 |
---|
5631 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5632 | |
---|
5633 | ac_header_compiler=no |
---|
5634 | fi |
---|
5635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5636 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5637 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5638 | |
---|
5639 | # Is the header present? |
---|
5640 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5641 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5642 | cat >conftest.$ac_ext <<_ACEOF |
---|
5643 | /* confdefs.h. */ |
---|
5644 | _ACEOF |
---|
5645 | cat confdefs.h >>conftest.$ac_ext |
---|
5646 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5647 | /* end confdefs.h. */ |
---|
5648 | #include <$ac_header> |
---|
5649 | _ACEOF |
---|
5650 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5651 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5652 | ac_status=$? |
---|
5653 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5654 | rm -f conftest.er1 |
---|
5655 | cat conftest.err >&5 |
---|
5656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5657 | (exit $ac_status); } >/dev/null; then |
---|
5658 | if test -s conftest.err; then |
---|
5659 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5660 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5661 | else |
---|
5662 | ac_cpp_err= |
---|
5663 | fi |
---|
5664 | else |
---|
5665 | ac_cpp_err=yes |
---|
5666 | fi |
---|
5667 | if test -z "$ac_cpp_err"; then |
---|
5668 | ac_header_preproc=yes |
---|
5669 | else |
---|
5670 | echo "$as_me: failed program was:" >&5 |
---|
5671 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5672 | |
---|
5673 | ac_header_preproc=no |
---|
5674 | fi |
---|
5675 | rm -f conftest.err conftest.$ac_ext |
---|
5676 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5677 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5678 | |
---|
5679 | # So? What about this header? |
---|
5680 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5681 | yes:no: ) |
---|
5682 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5683 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5684 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5685 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5686 | ac_header_preproc=yes |
---|
5687 | ;; |
---|
5688 | no:yes:* ) |
---|
5689 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5690 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5691 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5692 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5693 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5694 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5695 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5696 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5697 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5698 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5699 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5700 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5701 | ( |
---|
5702 | cat <<\_ASBOX |
---|
5703 | ## ------------------------------------------- ## |
---|
5704 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5705 | ## ------------------------------------------- ## |
---|
5706 | _ASBOX |
---|
5707 | ) | |
---|
5708 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5709 | ;; |
---|
5710 | esac |
---|
5711 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5712 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5713 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5715 | else |
---|
5716 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5717 | fi |
---|
5718 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5719 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5720 | |
---|
5721 | fi |
---|
5722 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5723 | cat >>confdefs.h <<_ACEOF |
---|
5724 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5725 | _ACEOF |
---|
5726 | |
---|
5727 | fi |
---|
5728 | |
---|
5729 | done |
---|
5730 | |
---|
5731 | |
---|
5732 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5733 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
5734 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
5735 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
5736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5737 | else |
---|
5738 | cat >conftest.$ac_ext <<_ACEOF |
---|
5739 | /* confdefs.h. */ |
---|
5740 | _ACEOF |
---|
5741 | cat confdefs.h >>conftest.$ac_ext |
---|
5742 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5743 | /* end confdefs.h. */ |
---|
5744 | |
---|
5745 | #include <stdbool.h> |
---|
5746 | #ifndef bool |
---|
5747 | # error bool is not defined |
---|
5748 | #endif |
---|
5749 | #ifndef false |
---|
5750 | # error false is not defined |
---|
5751 | #endif |
---|
5752 | #if false |
---|
5753 | # error false is not 0 |
---|
5754 | #endif |
---|
5755 | #ifndef true |
---|
5756 | # error true is not defined |
---|
5757 | #endif |
---|
5758 | #if true != 1 |
---|
5759 | # error true is not 1 |
---|
5760 | #endif |
---|
5761 | #ifndef __bool_true_false_are_defined |
---|
5762 | # error __bool_true_false_are_defined is not defined |
---|
5763 | #endif |
---|
5764 | |
---|
5765 | struct s { _Bool s: 1; _Bool t; } s; |
---|
5766 | |
---|
5767 | char a[true == 1 ? 1 : -1]; |
---|
5768 | char b[false == 0 ? 1 : -1]; |
---|
5769 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
5770 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
5771 | bool e = &s; |
---|
5772 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
5773 | char g[true]; |
---|
5774 | char h[sizeof (_Bool)]; |
---|
5775 | char i[sizeof s.t]; |
---|
5776 | |
---|
5777 | int |
---|
5778 | main () |
---|
5779 | { |
---|
5780 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
5781 | ; |
---|
5782 | return 0; |
---|
5783 | } |
---|
5784 | _ACEOF |
---|
5785 | rm -f conftest.$ac_objext |
---|
5786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5787 | (eval $ac_compile) 2>conftest.er1 |
---|
5788 | ac_status=$? |
---|
5789 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5790 | rm -f conftest.er1 |
---|
5791 | cat conftest.err >&5 |
---|
5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5793 | (exit $ac_status); } && |
---|
5794 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5795 | || test ! -s conftest.err' |
---|
5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5797 | (eval $ac_try) 2>&5 |
---|
5798 | ac_status=$? |
---|
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5800 | (exit $ac_status); }; } && |
---|
5801 | { ac_try='test -s conftest.$ac_objext' |
---|
5802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5803 | (eval $ac_try) 2>&5 |
---|
5804 | ac_status=$? |
---|
5805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5806 | (exit $ac_status); }; }; then |
---|
5807 | ac_cv_header_stdbool_h=yes |
---|
5808 | else |
---|
5809 | echo "$as_me: failed program was:" >&5 |
---|
5810 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5811 | |
---|
5812 | ac_cv_header_stdbool_h=no |
---|
5813 | fi |
---|
5814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5815 | fi |
---|
5816 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
5817 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
5818 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
5819 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
5820 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
5821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5822 | else |
---|
5823 | cat >conftest.$ac_ext <<_ACEOF |
---|
5824 | /* confdefs.h. */ |
---|
5825 | _ACEOF |
---|
5826 | cat confdefs.h >>conftest.$ac_ext |
---|
5827 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5828 | /* end confdefs.h. */ |
---|
5829 | $ac_includes_default |
---|
5830 | int |
---|
5831 | main () |
---|
5832 | { |
---|
5833 | if ((_Bool *) 0) |
---|
5834 | return 0; |
---|
5835 | if (sizeof (_Bool)) |
---|
5836 | return 0; |
---|
5837 | ; |
---|
5838 | return 0; |
---|
5839 | } |
---|
5840 | _ACEOF |
---|
5841 | rm -f conftest.$ac_objext |
---|
5842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5843 | (eval $ac_compile) 2>conftest.er1 |
---|
5844 | ac_status=$? |
---|
5845 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5846 | rm -f conftest.er1 |
---|
5847 | cat conftest.err >&5 |
---|
5848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5849 | (exit $ac_status); } && |
---|
5850 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5851 | || test ! -s conftest.err' |
---|
5852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5853 | (eval $ac_try) 2>&5 |
---|
5854 | ac_status=$? |
---|
5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5856 | (exit $ac_status); }; } && |
---|
5857 | { ac_try='test -s conftest.$ac_objext' |
---|
5858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5859 | (eval $ac_try) 2>&5 |
---|
5860 | ac_status=$? |
---|
5861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5862 | (exit $ac_status); }; }; then |
---|
5863 | ac_cv_type__Bool=yes |
---|
5864 | else |
---|
5865 | echo "$as_me: failed program was:" >&5 |
---|
5866 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5867 | |
---|
5868 | ac_cv_type__Bool=no |
---|
5869 | fi |
---|
5870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5871 | fi |
---|
5872 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
5873 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
5874 | if test $ac_cv_type__Bool = yes; then |
---|
5875 | |
---|
5876 | cat >>confdefs.h <<_ACEOF |
---|
5877 | #define HAVE__BOOL 1 |
---|
5878 | _ACEOF |
---|
5879 | |
---|
5880 | |
---|
5881 | fi |
---|
5882 | |
---|
5883 | if test $ac_cv_header_stdbool_h = yes; then |
---|
5884 | |
---|
5885 | cat >>confdefs.h <<\_ACEOF |
---|
5886 | #define HAVE_STDBOOL_H 1 |
---|
5887 | _ACEOF |
---|
5888 | |
---|
5889 | fi |
---|
5890 | |
---|
5891 | |
---|
5892 | # Checks for library functions. |
---|
5893 | |
---|
5894 | for ac_header in stdlib.h |
---|
5895 | do |
---|
5896 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5897 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5898 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5900 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5902 | fi |
---|
5903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5904 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5905 | else |
---|
5906 | # Is the header compilable? |
---|
5907 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5908 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5909 | cat >conftest.$ac_ext <<_ACEOF |
---|
5910 | /* confdefs.h. */ |
---|
5911 | _ACEOF |
---|
5912 | cat confdefs.h >>conftest.$ac_ext |
---|
5913 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5914 | /* end confdefs.h. */ |
---|
5915 | $ac_includes_default |
---|
5916 | #include <$ac_header> |
---|
5917 | _ACEOF |
---|
5918 | rm -f conftest.$ac_objext |
---|
5919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5920 | (eval $ac_compile) 2>conftest.er1 |
---|
5921 | ac_status=$? |
---|
5922 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5923 | rm -f conftest.er1 |
---|
5924 | cat conftest.err >&5 |
---|
5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5926 | (exit $ac_status); } && |
---|
5927 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5928 | || test ! -s conftest.err' |
---|
5929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5930 | (eval $ac_try) 2>&5 |
---|
5931 | ac_status=$? |
---|
5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5933 | (exit $ac_status); }; } && |
---|
5934 | { ac_try='test -s conftest.$ac_objext' |
---|
5935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5936 | (eval $ac_try) 2>&5 |
---|
5937 | ac_status=$? |
---|
5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5939 | (exit $ac_status); }; }; then |
---|
5940 | ac_header_compiler=yes |
---|
5941 | else |
---|
5942 | echo "$as_me: failed program was:" >&5 |
---|
5943 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5944 | |
---|
5945 | ac_header_compiler=no |
---|
5946 | fi |
---|
5947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5948 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5949 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5950 | |
---|
5951 | # Is the header present? |
---|
5952 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5953 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5954 | cat >conftest.$ac_ext <<_ACEOF |
---|
5955 | /* confdefs.h. */ |
---|
5956 | _ACEOF |
---|
5957 | cat confdefs.h >>conftest.$ac_ext |
---|
5958 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5959 | /* end confdefs.h. */ |
---|
5960 | #include <$ac_header> |
---|
5961 | _ACEOF |
---|
5962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5964 | ac_status=$? |
---|
5965 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5966 | rm -f conftest.er1 |
---|
5967 | cat conftest.err >&5 |
---|
5968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5969 | (exit $ac_status); } >/dev/null; then |
---|
5970 | if test -s conftest.err; then |
---|
5971 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5972 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5973 | else |
---|
5974 | ac_cpp_err= |
---|
5975 | fi |
---|
5976 | else |
---|
5977 | ac_cpp_err=yes |
---|
5978 | fi |
---|
5979 | if test -z "$ac_cpp_err"; then |
---|
5980 | ac_header_preproc=yes |
---|
5981 | else |
---|
5982 | echo "$as_me: failed program was:" >&5 |
---|
5983 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5984 | |
---|
5985 | ac_header_preproc=no |
---|
5986 | fi |
---|
5987 | rm -f conftest.err conftest.$ac_ext |
---|
5988 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5989 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5990 | |
---|
5991 | # So? What about this header? |
---|
5992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5993 | yes:no: ) |
---|
5994 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5995 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5997 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5998 | ac_header_preproc=yes |
---|
5999 | ;; |
---|
6000 | no:yes:* ) |
---|
6001 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6002 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6003 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6004 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6005 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6006 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6007 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6008 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6010 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6011 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6012 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6013 | ( |
---|
6014 | cat <<\_ASBOX |
---|
6015 | ## ------------------------------------------- ## |
---|
6016 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
6017 | ## ------------------------------------------- ## |
---|
6018 | _ASBOX |
---|
6019 | ) | |
---|
6020 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6021 | ;; |
---|
6022 | esac |
---|
6023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6027 | else |
---|
6028 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6029 | fi |
---|
6030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6032 | |
---|
6033 | fi |
---|
6034 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6035 | cat >>confdefs.h <<_ACEOF |
---|
6036 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6037 | _ACEOF |
---|
6038 | |
---|
6039 | fi |
---|
6040 | |
---|
6041 | done |
---|
6042 | |
---|
6043 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
6044 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
6045 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
6046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6047 | else |
---|
6048 | if test "$cross_compiling" = yes; then |
---|
6049 | ac_cv_func_malloc_0_nonnull=no |
---|
6050 | else |
---|
6051 | cat >conftest.$ac_ext <<_ACEOF |
---|
6052 | /* confdefs.h. */ |
---|
6053 | _ACEOF |
---|
6054 | cat confdefs.h >>conftest.$ac_ext |
---|
6055 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6056 | /* end confdefs.h. */ |
---|
6057 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
6058 | # include <stdlib.h> |
---|
6059 | #else |
---|
6060 | char *malloc (); |
---|
6061 | #endif |
---|
6062 | |
---|
6063 | int |
---|
6064 | main () |
---|
6065 | { |
---|
6066 | exit (malloc (0) ? 0 : 1); |
---|
6067 | ; |
---|
6068 | return 0; |
---|
6069 | } |
---|
6070 | _ACEOF |
---|
6071 | rm -f conftest$ac_exeext |
---|
6072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6073 | (eval $ac_link) 2>&5 |
---|
6074 | ac_status=$? |
---|
6075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6076 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6078 | (eval $ac_try) 2>&5 |
---|
6079 | ac_status=$? |
---|
6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6081 | (exit $ac_status); }; }; then |
---|
6082 | ac_cv_func_malloc_0_nonnull=yes |
---|
6083 | else |
---|
6084 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6085 | echo "$as_me: failed program was:" >&5 |
---|
6086 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6087 | |
---|
6088 | ( exit $ac_status ) |
---|
6089 | ac_cv_func_malloc_0_nonnull=no |
---|
6090 | fi |
---|
6091 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6092 | fi |
---|
6093 | fi |
---|
6094 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
6095 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
6096 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
6097 | |
---|
6098 | cat >>confdefs.h <<\_ACEOF |
---|
6099 | #define HAVE_MALLOC 1 |
---|
6100 | _ACEOF |
---|
6101 | |
---|
6102 | else |
---|
6103 | cat >>confdefs.h <<\_ACEOF |
---|
6104 | #define HAVE_MALLOC 0 |
---|
6105 | _ACEOF |
---|
6106 | |
---|
6107 | case $LIBOBJS in |
---|
6108 | "malloc.$ac_objext" | \ |
---|
6109 | *" malloc.$ac_objext" | \ |
---|
6110 | "malloc.$ac_objext "* | \ |
---|
6111 | *" malloc.$ac_objext "* ) ;; |
---|
6112 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
6113 | esac |
---|
6114 | |
---|
6115 | |
---|
6116 | cat >>confdefs.h <<\_ACEOF |
---|
6117 | #define malloc rpl_malloc |
---|
6118 | _ACEOF |
---|
6119 | |
---|
6120 | fi |
---|
6121 | |
---|
6122 | |
---|
6123 | |
---|
6124 | |
---|
6125 | |
---|
6126 | for ac_func in bzero sqrt |
---|
6127 | do |
---|
6128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6129 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
6130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
6131 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
6132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6133 | else |
---|
6134 | cat >conftest.$ac_ext <<_ACEOF |
---|
6135 | /* confdefs.h. */ |
---|
6136 | _ACEOF |
---|
6137 | cat confdefs.h >>conftest.$ac_ext |
---|
6138 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6139 | /* end confdefs.h. */ |
---|
6140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
6141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
6142 | #define $ac_func innocuous_$ac_func |
---|
6143 | |
---|
6144 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6145 | which can conflict with char $ac_func (); below. |
---|
6146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6147 | <limits.h> exists even on freestanding compilers. */ |
---|
6148 | |
---|
6149 | #ifdef __STDC__ |
---|
6150 | # include <limits.h> |
---|
6151 | #else |
---|
6152 | # include <assert.h> |
---|
6153 | #endif |
---|
6154 | |
---|
6155 | #undef $ac_func |
---|
6156 | |
---|
6157 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6158 | #ifdef __cplusplus |
---|
6159 | extern "C" |
---|
6160 | { |
---|
6161 | #endif |
---|
6162 | /* We use char because int might match the return type of a gcc2 |
---|
6163 | builtin and then its argument prototype would still apply. */ |
---|
6164 | char $ac_func (); |
---|
6165 | /* The GNU C library defines this for functions which it implements |
---|
6166 | to always fail with ENOSYS. Some functions are actually named |
---|
6167 | something starting with __ and the normal name is an alias. */ |
---|
6168 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6169 | choke me |
---|
6170 | #else |
---|
6171 | char (*f) () = $ac_func; |
---|
6172 | #endif |
---|
6173 | #ifdef __cplusplus |
---|
6174 | } |
---|
6175 | #endif |
---|
6176 | |
---|
6177 | int |
---|
6178 | main () |
---|
6179 | { |
---|
6180 | return f != $ac_func; |
---|
6181 | ; |
---|
6182 | return 0; |
---|
6183 | } |
---|
6184 | _ACEOF |
---|
6185 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6187 | (eval $ac_link) 2>conftest.er1 |
---|
6188 | ac_status=$? |
---|
6189 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6190 | rm -f conftest.er1 |
---|
6191 | cat conftest.err >&5 |
---|
6192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6193 | (exit $ac_status); } && |
---|
6194 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6195 | || test ! -s conftest.err' |
---|
6196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6197 | (eval $ac_try) 2>&5 |
---|
6198 | ac_status=$? |
---|
6199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6200 | (exit $ac_status); }; } && |
---|
6201 | { ac_try='test -s conftest$ac_exeext' |
---|
6202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6203 | (eval $ac_try) 2>&5 |
---|
6204 | ac_status=$? |
---|
6205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6206 | (exit $ac_status); }; }; then |
---|
6207 | eval "$as_ac_var=yes" |
---|
6208 | else |
---|
6209 | echo "$as_me: failed program was:" >&5 |
---|
6210 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6211 | |
---|
6212 | eval "$as_ac_var=no" |
---|
6213 | fi |
---|
6214 | rm -f conftest.err conftest.$ac_objext \ |
---|
6215 | conftest$ac_exeext conftest.$ac_ext |
---|
6216 | fi |
---|
6217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
6218 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
6219 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
6220 | cat >>confdefs.h <<_ACEOF |
---|
6221 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6222 | _ACEOF |
---|
6223 | |
---|
6224 | fi |
---|
6225 | done |
---|
6226 | |
---|
6227 | |
---|
6228 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile" |
---|
6229 | |
---|
6230 | cat >confcache <<\_ACEOF |
---|
6231 | # This file is a shell script that caches the results of configure |
---|
6232 | # tests run on this system so they can be shared between configure |
---|
6233 | # scripts and configure runs, see configure's option --config-cache. |
---|
6234 | # It is not useful on other systems. If it contains results you don't |
---|
6235 | # want to keep, you may remove or edit it. |
---|
6236 | # |
---|
6237 | # config.status only pays attention to the cache file if you give it |
---|
6238 | # the --recheck option to rerun configure. |
---|
6239 | # |
---|
6240 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6241 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6242 | # following values. |
---|
6243 | |
---|
6244 | _ACEOF |
---|
6245 | |
---|
6246 | # The following way of writing the cache mishandles newlines in values, |
---|
6247 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6248 | # So, don't put newlines in cache variables' values. |
---|
6249 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6250 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6251 | { |
---|
6252 | (set) 2>&1 | |
---|
6253 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
6254 | *ac_space=\ *) |
---|
6255 | # `set' does not quote correctly, so add quotes (double-quote |
---|
6256 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
6257 | sed -n \ |
---|
6258 | "s/'/'\\\\''/g; |
---|
6259 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6260 | ;; |
---|
6261 | *) |
---|
6262 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6263 | sed -n \ |
---|
6264 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
6265 | ;; |
---|
6266 | esac; |
---|
6267 | } | |
---|
6268 | sed ' |
---|
6269 | t clear |
---|
6270 | : clear |
---|
6271 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6272 | t end |
---|
6273 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6274 | : end' >>confcache |
---|
6275 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
6276 | if test -w $cache_file; then |
---|
6277 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
6278 | cat confcache >$cache_file |
---|
6279 | else |
---|
6280 | echo "not updating unwritable cache $cache_file" |
---|
6281 | fi |
---|
6282 | fi |
---|
6283 | rm -f confcache |
---|
6284 | |
---|
6285 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6286 | # Let make expand exec_prefix. |
---|
6287 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6288 | |
---|
6289 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
6290 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
6291 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6292 | # (actually we leave an empty line to preserve line numbers). |
---|
6293 | if test "x$srcdir" = x.; then |
---|
6294 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
6295 | s/:*\$(srcdir):*/:/; |
---|
6296 | s/:*\${srcdir}:*/:/; |
---|
6297 | s/:*@srcdir@:*/:/; |
---|
6298 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
6299 | s/:*$//; |
---|
6300 | s/^[^=]*=[ ]*$//; |
---|
6301 | }' |
---|
6302 | fi |
---|
6303 | |
---|
6304 | DEFS=-DHAVE_CONFIG_H |
---|
6305 | |
---|
6306 | ac_libobjs= |
---|
6307 | ac_ltlibobjs= |
---|
6308 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6309 | # 1. Remove the extension, and $U if already installed. |
---|
6310 | ac_i=`echo "$ac_i" | |
---|
6311 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
6312 | # 2. Add them. |
---|
6313 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
6314 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
6315 | done |
---|
6316 | LIBOBJS=$ac_libobjs |
---|
6317 | |
---|
6318 | LTLIBOBJS=$ac_ltlibobjs |
---|
6319 | |
---|
6320 | |
---|
6321 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6322 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
6323 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6324 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
6325 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6326 | { (exit 1); exit 1; }; } |
---|
6327 | fi |
---|
6328 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6329 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6330 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6331 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6332 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6333 | { (exit 1); exit 1; }; } |
---|
6334 | fi |
---|
6335 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6336 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
6337 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6338 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
6339 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6340 | { (exit 1); exit 1; }; } |
---|
6341 | fi |
---|
6342 | |
---|
6343 | : ${CONFIG_STATUS=./config.status} |
---|
6344 | ac_clean_files_save=$ac_clean_files |
---|
6345 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6346 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
6347 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6348 | cat >$CONFIG_STATUS <<_ACEOF |
---|
6349 | #! $SHELL |
---|
6350 | # Generated by $as_me. |
---|
6351 | # Run this file to recreate the current configuration. |
---|
6352 | # Compiler output produced by configure, useful for debugging |
---|
6353 | # configure, is in config.log if it exists. |
---|
6354 | |
---|
6355 | debug=false |
---|
6356 | ac_cs_recheck=false |
---|
6357 | ac_cs_silent=false |
---|
6358 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6359 | _ACEOF |
---|
6360 | |
---|
6361 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6362 | ## --------------------- ## |
---|
6363 | ## M4sh Initialization. ## |
---|
6364 | ## --------------------- ## |
---|
6365 | |
---|
6366 | # Be Bourne compatible |
---|
6367 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
6368 | emulate sh |
---|
6369 | NULLCMD=: |
---|
6370 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
6371 | # is contrary to our usage. Disable this feature. |
---|
6372 | alias -g '${1+"$@"}'='"$@"' |
---|
6373 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
6374 | set -o posix |
---|
6375 | fi |
---|
6376 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6377 | |
---|
6378 | # Support unset when possible. |
---|
6379 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
6380 | as_unset=unset |
---|
6381 | else |
---|
6382 | as_unset=false |
---|
6383 | fi |
---|
6384 | |
---|
6385 | |
---|
6386 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
6387 | $as_unset ENV MAIL MAILPATH |
---|
6388 | PS1='$ ' |
---|
6389 | PS2='> ' |
---|
6390 | PS4='+ ' |
---|
6391 | |
---|
6392 | # NLS nuisances. |
---|
6393 | for as_var in \ |
---|
6394 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
6395 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
6396 | LC_TELEPHONE LC_TIME |
---|
6397 | do |
---|
6398 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
6399 | eval $as_var=C; export $as_var |
---|
6400 | else |
---|
6401 | $as_unset $as_var |
---|
6402 | fi |
---|
6403 | done |
---|
6404 | |
---|
6405 | # Required to use basename. |
---|
6406 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6407 | as_expr=expr |
---|
6408 | else |
---|
6409 | as_expr=false |
---|
6410 | fi |
---|
6411 | |
---|
6412 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
6413 | as_basename=basename |
---|
6414 | else |
---|
6415 | as_basename=false |
---|
6416 | fi |
---|
6417 | |
---|
6418 | |
---|
6419 | # Name of the executable. |
---|
6420 | as_me=`$as_basename "$0" || |
---|
6421 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6422 | X"$0" : 'X\(//\)$' \| \ |
---|
6423 | X"$0" : 'X\(/\)$' \| \ |
---|
6424 | . : '\(.\)' 2>/dev/null || |
---|
6425 | echo X/"$0" | |
---|
6426 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
6427 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
6428 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
6429 | s/.*/./; q'` |
---|
6430 | |
---|
6431 | |
---|
6432 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
6433 | # Avoid depending upon Character Ranges. |
---|
6434 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6435 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6436 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6437 | as_cr_digits='0123456789' |
---|
6438 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6439 | |
---|
6440 | # The user is always right. |
---|
6441 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6442 | echo "#! /bin/sh" >conf$$.sh |
---|
6443 | echo "exit 0" >>conf$$.sh |
---|
6444 | chmod +x conf$$.sh |
---|
6445 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
6446 | PATH_SEPARATOR=';' |
---|
6447 | else |
---|
6448 | PATH_SEPARATOR=: |
---|
6449 | fi |
---|
6450 | rm -f conf$$.sh |
---|
6451 | fi |
---|
6452 | |
---|
6453 | |
---|
6454 | as_lineno_1=$LINENO |
---|
6455 | as_lineno_2=$LINENO |
---|
6456 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6457 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6458 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
6459 | # Find who we are. Look in the path if we contain no path at all |
---|
6460 | # relative or not. |
---|
6461 | case $0 in |
---|
6462 | *[\\/]* ) as_myself=$0 ;; |
---|
6463 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6464 | for as_dir in $PATH |
---|
6465 | do |
---|
6466 | IFS=$as_save_IFS |
---|
6467 | test -z "$as_dir" && as_dir=. |
---|
6468 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6469 | done |
---|
6470 | |
---|
6471 | ;; |
---|
6472 | esac |
---|
6473 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6474 | # in which case we are not to be found in the path. |
---|
6475 | if test "x$as_myself" = x; then |
---|
6476 | as_myself=$0 |
---|
6477 | fi |
---|
6478 | if test ! -f "$as_myself"; then |
---|
6479 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
6480 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
6481 | { (exit 1); exit 1; }; } |
---|
6482 | fi |
---|
6483 | case $CONFIG_SHELL in |
---|
6484 | '') |
---|
6485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6486 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
6487 | do |
---|
6488 | IFS=$as_save_IFS |
---|
6489 | test -z "$as_dir" && as_dir=. |
---|
6490 | for as_base in sh bash ksh sh5; do |
---|
6491 | case $as_dir in |
---|
6492 | /*) |
---|
6493 | if ("$as_dir/$as_base" -c ' |
---|
6494 | as_lineno_1=$LINENO |
---|
6495 | as_lineno_2=$LINENO |
---|
6496 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6497 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6498 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
6499 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
6500 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
6501 | CONFIG_SHELL=$as_dir/$as_base |
---|
6502 | export CONFIG_SHELL |
---|
6503 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
6504 | fi;; |
---|
6505 | esac |
---|
6506 | done |
---|
6507 | done |
---|
6508 | ;; |
---|
6509 | esac |
---|
6510 | |
---|
6511 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
6512 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
6513 | # line-number line before each line; the second 'sed' does the real |
---|
6514 | # work. The second script uses 'N' to pair each line-number line |
---|
6515 | # with the numbered line, and appends trailing '-' during |
---|
6516 | # substitution so that $LINENO is not a special case at line end. |
---|
6517 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
6518 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
6519 | sed '=' <$as_myself | |
---|
6520 | sed ' |
---|
6521 | N |
---|
6522 | s,$,-, |
---|
6523 | : loop |
---|
6524 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
6525 | t loop |
---|
6526 | s,-$,, |
---|
6527 | s,^['$as_cr_digits']*\n,, |
---|
6528 | ' >$as_me.lineno && |
---|
6529 | chmod +x $as_me.lineno || |
---|
6530 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
6531 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
6532 | { (exit 1); exit 1; }; } |
---|
6533 | |
---|
6534 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
6535 | # (the dirname of $[0] is not the place where we might find the |
---|
6536 | # original and so on. Autoconf is especially sensible to this). |
---|
6537 | . ./$as_me.lineno |
---|
6538 | # Exit status is that of the last command. |
---|
6539 | exit |
---|
6540 | } |
---|
6541 | |
---|
6542 | |
---|
6543 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
6544 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
6545 | ' ECHO_T=' ' ;; |
---|
6546 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
6547 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
6548 | esac |
---|
6549 | |
---|
6550 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6551 | as_expr=expr |
---|
6552 | else |
---|
6553 | as_expr=false |
---|
6554 | fi |
---|
6555 | |
---|
6556 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6557 | echo >conf$$.file |
---|
6558 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6559 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
6560 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
6561 | if test -f conf$$.exe; then |
---|
6562 | # Don't use ln at all; we don't have any links |
---|
6563 | as_ln_s='cp -p' |
---|
6564 | else |
---|
6565 | as_ln_s='ln -s' |
---|
6566 | fi |
---|
6567 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6568 | as_ln_s=ln |
---|
6569 | else |
---|
6570 | as_ln_s='cp -p' |
---|
6571 | fi |
---|
6572 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6573 | |
---|
6574 | if mkdir -p . 2>/dev/null; then |
---|
6575 | as_mkdir_p=: |
---|
6576 | else |
---|
6577 | test -d ./-p && rmdir ./-p |
---|
6578 | as_mkdir_p=false |
---|
6579 | fi |
---|
6580 | |
---|
6581 | as_executable_p="test -f" |
---|
6582 | |
---|
6583 | # Sed expression to map a string onto a valid CPP name. |
---|
6584 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6585 | |
---|
6586 | # Sed expression to map a string onto a valid variable name. |
---|
6587 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6588 | |
---|
6589 | |
---|
6590 | # IFS |
---|
6591 | # We need space, tab and new line, in precisely that order. |
---|
6592 | as_nl=' |
---|
6593 | ' |
---|
6594 | IFS=" $as_nl" |
---|
6595 | |
---|
6596 | # CDPATH. |
---|
6597 | $as_unset CDPATH |
---|
6598 | |
---|
6599 | exec 6>&1 |
---|
6600 | |
---|
6601 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
6602 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6603 | # values after options handling. Logging --version etc. is OK. |
---|
6604 | exec 5>>config.log |
---|
6605 | { |
---|
6606 | echo |
---|
6607 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6608 | ## Running $as_me. ## |
---|
6609 | _ASBOX |
---|
6610 | } >&5 |
---|
6611 | cat >&5 <<_CSEOF |
---|
6612 | |
---|
6613 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
6614 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
6615 | |
---|
6616 | CONFIG_FILES = $CONFIG_FILES |
---|
6617 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6618 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6619 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6620 | $ $0 $@ |
---|
6621 | |
---|
6622 | _CSEOF |
---|
6623 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
6624 | echo >&5 |
---|
6625 | _ACEOF |
---|
6626 | |
---|
6627 | # Files that config.status was made for. |
---|
6628 | if test -n "$ac_config_files"; then |
---|
6629 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
6630 | fi |
---|
6631 | |
---|
6632 | if test -n "$ac_config_headers"; then |
---|
6633 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
6634 | fi |
---|
6635 | |
---|
6636 | if test -n "$ac_config_links"; then |
---|
6637 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
6638 | fi |
---|
6639 | |
---|
6640 | if test -n "$ac_config_commands"; then |
---|
6641 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
6642 | fi |
---|
6643 | |
---|
6644 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6645 | |
---|
6646 | ac_cs_usage="\ |
---|
6647 | \`$as_me' instantiates files from templates according to the |
---|
6648 | current configuration. |
---|
6649 | |
---|
6650 | Usage: $0 [OPTIONS] [FILE]... |
---|
6651 | |
---|
6652 | -h, --help print this help, then exit |
---|
6653 | -V, --version print version number, then exit |
---|
6654 | -q, --quiet do not print progress messages |
---|
6655 | -d, --debug don't remove temporary files |
---|
6656 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6657 | --file=FILE[:TEMPLATE] |
---|
6658 | instantiate the configuration file FILE |
---|
6659 | --header=FILE[:TEMPLATE] |
---|
6660 | instantiate the configuration header FILE |
---|
6661 | |
---|
6662 | Configuration files: |
---|
6663 | $config_files |
---|
6664 | |
---|
6665 | Configuration headers: |
---|
6666 | $config_headers |
---|
6667 | |
---|
6668 | Configuration commands: |
---|
6669 | $config_commands |
---|
6670 | |
---|
6671 | Report bugs to <bug-autoconf@gnu.org>." |
---|
6672 | _ACEOF |
---|
6673 | |
---|
6674 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6675 | ac_cs_version="\\ |
---|
6676 | orxonox config.status 0.1-pre-alpha |
---|
6677 | configured by $0, generated by GNU Autoconf 2.59, |
---|
6678 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
6679 | |
---|
6680 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
6681 | This config.status script is free software; the Free Software Foundation |
---|
6682 | gives unlimited permission to copy, distribute and modify it." |
---|
6683 | srcdir=$srcdir |
---|
6684 | INSTALL="$INSTALL" |
---|
6685 | _ACEOF |
---|
6686 | |
---|
6687 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6688 | # If no file are specified by the user, then we need to provide default |
---|
6689 | # value. By we need to know if files were specified by the user. |
---|
6690 | ac_need_defaults=: |
---|
6691 | while test $# != 0 |
---|
6692 | do |
---|
6693 | case $1 in |
---|
6694 | --*=*) |
---|
6695 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
6696 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
6697 | ac_shift=: |
---|
6698 | ;; |
---|
6699 | -*) |
---|
6700 | ac_option=$1 |
---|
6701 | ac_optarg=$2 |
---|
6702 | ac_shift=shift |
---|
6703 | ;; |
---|
6704 | *) # This is not an option, so the user has probably given explicit |
---|
6705 | # arguments. |
---|
6706 | ac_option=$1 |
---|
6707 | ac_need_defaults=false;; |
---|
6708 | esac |
---|
6709 | |
---|
6710 | case $ac_option in |
---|
6711 | # Handling of the options. |
---|
6712 | _ACEOF |
---|
6713 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6714 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6715 | ac_cs_recheck=: ;; |
---|
6716 | --version | --vers* | -V ) |
---|
6717 | echo "$ac_cs_version"; exit 0 ;; |
---|
6718 | --he | --h) |
---|
6719 | # Conflict between --help and --header |
---|
6720 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
6721 | Try \`$0 --help' for more information." >&5 |
---|
6722 | echo "$as_me: error: ambiguous option: $1 |
---|
6723 | Try \`$0 --help' for more information." >&2;} |
---|
6724 | { (exit 1); exit 1; }; };; |
---|
6725 | --help | --hel | -h ) |
---|
6726 | echo "$ac_cs_usage"; exit 0 ;; |
---|
6727 | --debug | --d* | -d ) |
---|
6728 | debug=: ;; |
---|
6729 | --file | --fil | --fi | --f ) |
---|
6730 | $ac_shift |
---|
6731 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
6732 | ac_need_defaults=false;; |
---|
6733 | --header | --heade | --head | --hea ) |
---|
6734 | $ac_shift |
---|
6735 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
6736 | ac_need_defaults=false;; |
---|
6737 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6738 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6739 | ac_cs_silent=: ;; |
---|
6740 | |
---|
6741 | # This is an error. |
---|
6742 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
6743 | Try \`$0 --help' for more information." >&5 |
---|
6744 | echo "$as_me: error: unrecognized option: $1 |
---|
6745 | Try \`$0 --help' for more information." >&2;} |
---|
6746 | { (exit 1); exit 1; }; } ;; |
---|
6747 | |
---|
6748 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
6749 | |
---|
6750 | esac |
---|
6751 | shift |
---|
6752 | done |
---|
6753 | |
---|
6754 | ac_configure_extra_args= |
---|
6755 | |
---|
6756 | if $ac_cs_silent; then |
---|
6757 | exec 6>/dev/null |
---|
6758 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6759 | fi |
---|
6760 | |
---|
6761 | _ACEOF |
---|
6762 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6763 | if \$ac_cs_recheck; then |
---|
6764 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
6765 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6766 | fi |
---|
6767 | |
---|
6768 | _ACEOF |
---|
6769 | |
---|
6770 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6771 | # |
---|
6772 | # INIT-COMMANDS section. |
---|
6773 | # |
---|
6774 | |
---|
6775 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6776 | |
---|
6777 | _ACEOF |
---|
6778 | |
---|
6779 | |
---|
6780 | |
---|
6781 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6782 | for ac_config_target in $ac_config_targets |
---|
6783 | do |
---|
6784 | case "$ac_config_target" in |
---|
6785 | # Handling of arguments. |
---|
6786 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6787 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
6788 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
6789 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6790 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
6791 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6792 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
6793 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
6794 | { (exit 1); exit 1; }; };; |
---|
6795 | esac |
---|
6796 | done |
---|
6797 | |
---|
6798 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6799 | # then the envvar interface is used. Set only those that are not. |
---|
6800 | # We use the long form for the default assignment because of an extremely |
---|
6801 | # bizarre bug on SunOS 4.1.3. |
---|
6802 | if $ac_need_defaults; then |
---|
6803 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6804 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6805 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6806 | fi |
---|
6807 | |
---|
6808 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6809 | # simply because there is no reason to put it here, and in addition, |
---|
6810 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6811 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
6812 | $debug || |
---|
6813 | { |
---|
6814 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
6815 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
6816 | } |
---|
6817 | |
---|
6818 | # Create a (secure) tmp directory for tmp files. |
---|
6819 | |
---|
6820 | { |
---|
6821 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
6822 | test -n "$tmp" && test -d "$tmp" |
---|
6823 | } || |
---|
6824 | { |
---|
6825 | tmp=./confstat$$-$RANDOM |
---|
6826 | (umask 077 && mkdir $tmp) |
---|
6827 | } || |
---|
6828 | { |
---|
6829 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
6830 | { (exit 1); exit 1; } |
---|
6831 | } |
---|
6832 | |
---|
6833 | _ACEOF |
---|
6834 | |
---|
6835 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6836 | |
---|
6837 | # |
---|
6838 | # CONFIG_FILES section. |
---|
6839 | # |
---|
6840 | |
---|
6841 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
6842 | # This happens for instance when ./config.status config.h |
---|
6843 | if test -n "\$CONFIG_FILES"; then |
---|
6844 | # Protect against being on the right side of a sed subst in config.status. |
---|
6845 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
6846 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
6847 | s,@SHELL@,$SHELL,;t t |
---|
6848 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
6849 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
6850 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
6851 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
6852 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
6853 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
6854 | s,@exec_prefix@,$exec_prefix,;t t |
---|
6855 | s,@prefix@,$prefix,;t t |
---|
6856 | s,@program_transform_name@,$program_transform_name,;t t |
---|
6857 | s,@bindir@,$bindir,;t t |
---|
6858 | s,@sbindir@,$sbindir,;t t |
---|
6859 | s,@libexecdir@,$libexecdir,;t t |
---|
6860 | s,@datadir@,$datadir,;t t |
---|
6861 | s,@sysconfdir@,$sysconfdir,;t t |
---|
6862 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
6863 | s,@localstatedir@,$localstatedir,;t t |
---|
6864 | s,@libdir@,$libdir,;t t |
---|
6865 | s,@includedir@,$includedir,;t t |
---|
6866 | s,@oldincludedir@,$oldincludedir,;t t |
---|
6867 | s,@infodir@,$infodir,;t t |
---|
6868 | s,@mandir@,$mandir,;t t |
---|
6869 | s,@build_alias@,$build_alias,;t t |
---|
6870 | s,@host_alias@,$host_alias,;t t |
---|
6871 | s,@target_alias@,$target_alias,;t t |
---|
6872 | s,@DEFS@,$DEFS,;t t |
---|
6873 | s,@ECHO_C@,$ECHO_C,;t t |
---|
6874 | s,@ECHO_N@,$ECHO_N,;t t |
---|
6875 | s,@ECHO_T@,$ECHO_T,;t t |
---|
6876 | s,@LIBS@,$LIBS,;t t |
---|
6877 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
6878 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
6879 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
6880 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
6881 | s,@PACKAGE@,$PACKAGE,;t t |
---|
6882 | s,@VERSION@,$VERSION,;t t |
---|
6883 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
6884 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
6885 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
6886 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
6887 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
6888 | s,@AMTAR@,$AMTAR,;t t |
---|
6889 | s,@install_sh@,$install_sh,;t t |
---|
6890 | s,@STRIP@,$STRIP,;t t |
---|
6891 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
6892 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
6893 | s,@AWK@,$AWK,;t t |
---|
6894 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
6895 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
6896 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
6897 | s,@CXX@,$CXX,;t t |
---|
6898 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
6899 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
6900 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
6901 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
6902 | s,@EXEEXT@,$EXEEXT,;t t |
---|
6903 | s,@OBJEXT@,$OBJEXT,;t t |
---|
6904 | s,@DEPDIR@,$DEPDIR,;t t |
---|
6905 | s,@am__include@,$am__include,;t t |
---|
6906 | s,@am__quote@,$am__quote,;t t |
---|
6907 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
6908 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
6909 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
6910 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
6911 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
6912 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
6913 | s,@CC@,$CC,;t t |
---|
6914 | s,@CFLAGS@,$CFLAGS,;t t |
---|
6915 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
6916 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
6917 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
6918 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
6919 | s,@CPP@,$CPP,;t t |
---|
6920 | s,@EGREP@,$EGREP,;t t |
---|
6921 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
6922 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
6923 | CEOF |
---|
6924 | |
---|
6925 | _ACEOF |
---|
6926 | |
---|
6927 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6928 | # Split the substitutions into bite-sized pieces for seds with |
---|
6929 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
6930 | ac_max_sed_lines=48 |
---|
6931 | ac_sed_frag=1 # Number of current file. |
---|
6932 | ac_beg=1 # First line for current file. |
---|
6933 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
6934 | ac_more_lines=: |
---|
6935 | ac_sed_cmds= |
---|
6936 | while $ac_more_lines; do |
---|
6937 | if test $ac_beg -gt 1; then |
---|
6938 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6939 | else |
---|
6940 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6941 | fi |
---|
6942 | if test ! -s $tmp/subs.frag; then |
---|
6943 | ac_more_lines=false |
---|
6944 | else |
---|
6945 | # The purpose of the label and of the branching condition is to |
---|
6946 | # speed up the sed processing (if there are no `@' at all, there |
---|
6947 | # is no need to browse any of the substitutions). |
---|
6948 | # These are the two extra sed commands mentioned above. |
---|
6949 | (echo ':t |
---|
6950 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
6951 | if test -z "$ac_sed_cmds"; then |
---|
6952 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6953 | else |
---|
6954 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6955 | fi |
---|
6956 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
6957 | ac_beg=$ac_end |
---|
6958 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
6959 | fi |
---|
6960 | done |
---|
6961 | if test -z "$ac_sed_cmds"; then |
---|
6962 | ac_sed_cmds=cat |
---|
6963 | fi |
---|
6964 | fi # test -n "$CONFIG_FILES" |
---|
6965 | |
---|
6966 | _ACEOF |
---|
6967 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6968 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
6969 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6970 | case $ac_file in |
---|
6971 | - | *:- | *:-:* ) # input from stdin |
---|
6972 | cat >$tmp/stdin |
---|
6973 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6974 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6975 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6976 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6977 | * ) ac_file_in=$ac_file.in ;; |
---|
6978 | esac |
---|
6979 | |
---|
6980 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
6981 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6982 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6983 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6984 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6985 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6986 | . : '\(.\)' 2>/dev/null || |
---|
6987 | echo X"$ac_file" | |
---|
6988 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6989 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6990 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6991 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6992 | s/.*/./; q'` |
---|
6993 | { if $as_mkdir_p; then |
---|
6994 | mkdir -p "$ac_dir" |
---|
6995 | else |
---|
6996 | as_dir="$ac_dir" |
---|
6997 | as_dirs= |
---|
6998 | while test ! -d "$as_dir"; do |
---|
6999 | as_dirs="$as_dir $as_dirs" |
---|
7000 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7001 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7002 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7003 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7004 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7005 | . : '\(.\)' 2>/dev/null || |
---|
7006 | echo X"$as_dir" | |
---|
7007 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7008 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7009 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7010 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7011 | s/.*/./; q'` |
---|
7012 | done |
---|
7013 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7014 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7015 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7016 | { (exit 1); exit 1; }; }; } |
---|
7017 | |
---|
7018 | ac_builddir=. |
---|
7019 | |
---|
7020 | if test "$ac_dir" != .; then |
---|
7021 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7022 | # A "../" for each directory in $ac_dir_suffix. |
---|
7023 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7024 | else |
---|
7025 | ac_dir_suffix= ac_top_builddir= |
---|
7026 | fi |
---|
7027 | |
---|
7028 | case $srcdir in |
---|
7029 | .) # No --srcdir option. We are building in place. |
---|
7030 | ac_srcdir=. |
---|
7031 | if test -z "$ac_top_builddir"; then |
---|
7032 | ac_top_srcdir=. |
---|
7033 | else |
---|
7034 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7035 | fi ;; |
---|
7036 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7037 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7038 | ac_top_srcdir=$srcdir ;; |
---|
7039 | *) # Relative path. |
---|
7040 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7041 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7042 | esac |
---|
7043 | |
---|
7044 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
7045 | # the directories may not exist. |
---|
7046 | case `pwd` in |
---|
7047 | .) ac_abs_builddir="$ac_dir";; |
---|
7048 | *) |
---|
7049 | case "$ac_dir" in |
---|
7050 | .) ac_abs_builddir=`pwd`;; |
---|
7051 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
7052 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
7053 | esac;; |
---|
7054 | esac |
---|
7055 | case $ac_abs_builddir in |
---|
7056 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7057 | *) |
---|
7058 | case ${ac_top_builddir}. in |
---|
7059 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
7060 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7061 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
7062 | esac;; |
---|
7063 | esac |
---|
7064 | case $ac_abs_builddir in |
---|
7065 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
7066 | *) |
---|
7067 | case $ac_srcdir in |
---|
7068 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
7069 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
7070 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
7071 | esac;; |
---|
7072 | esac |
---|
7073 | case $ac_abs_builddir in |
---|
7074 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7075 | *) |
---|
7076 | case $ac_top_srcdir in |
---|
7077 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
7078 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7079 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
7080 | esac;; |
---|
7081 | esac |
---|
7082 | |
---|
7083 | |
---|
7084 | case $INSTALL in |
---|
7085 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7086 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
7087 | esac |
---|
7088 | |
---|
7089 | if test x"$ac_file" != x-; then |
---|
7090 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7091 | echo "$as_me: creating $ac_file" >&6;} |
---|
7092 | rm -f "$ac_file" |
---|
7093 | fi |
---|
7094 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7095 | # use $as_me), people would be surprised to read: |
---|
7096 | # /* config.h. Generated by config.status. */ |
---|
7097 | if test x"$ac_file" = x-; then |
---|
7098 | configure_input= |
---|
7099 | else |
---|
7100 | configure_input="$ac_file. " |
---|
7101 | fi |
---|
7102 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
7103 | sed 's,.*/,,'` by configure." |
---|
7104 | |
---|
7105 | # First look for the input files in the build tree, otherwise in the |
---|
7106 | # src tree. |
---|
7107 | ac_file_inputs=`IFS=: |
---|
7108 | for f in $ac_file_in; do |
---|
7109 | case $f in |
---|
7110 | -) echo $tmp/stdin ;; |
---|
7111 | [\\/$]*) |
---|
7112 | # Absolute (can't be DOS-style, as IFS=:) |
---|
7113 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7114 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7115 | { (exit 1); exit 1; }; } |
---|
7116 | echo "$f";; |
---|
7117 | *) # Relative |
---|
7118 | if test -f "$f"; then |
---|
7119 | # Build tree |
---|
7120 | echo "$f" |
---|
7121 | elif test -f "$srcdir/$f"; then |
---|
7122 | # Source tree |
---|
7123 | echo "$srcdir/$f" |
---|
7124 | else |
---|
7125 | # /dev/null tree |
---|
7126 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7127 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7128 | { (exit 1); exit 1; }; } |
---|
7129 | fi;; |
---|
7130 | esac |
---|
7131 | done` || { (exit 1); exit 1; } |
---|
7132 | _ACEOF |
---|
7133 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7134 | sed "$ac_vpsub |
---|
7135 | $extrasub |
---|
7136 | _ACEOF |
---|
7137 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7138 | :t |
---|
7139 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7140 | s,@configure_input@,$configure_input,;t t |
---|
7141 | s,@srcdir@,$ac_srcdir,;t t |
---|
7142 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
7143 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
7144 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
7145 | s,@builddir@,$ac_builddir,;t t |
---|
7146 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
7147 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
7148 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
7149 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
7150 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
7151 | rm -f $tmp/stdin |
---|
7152 | if test x"$ac_file" != x-; then |
---|
7153 | mv $tmp/out $ac_file |
---|
7154 | else |
---|
7155 | cat $tmp/out |
---|
7156 | rm -f $tmp/out |
---|
7157 | fi |
---|
7158 | |
---|
7159 | done |
---|
7160 | _ACEOF |
---|
7161 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7162 | |
---|
7163 | # |
---|
7164 | # CONFIG_HEADER section. |
---|
7165 | # |
---|
7166 | |
---|
7167 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
7168 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
7169 | # |
---|
7170 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
7171 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
7172 | ac_dB='[ ].*$,\1#\2' |
---|
7173 | ac_dC=' ' |
---|
7174 | ac_dD=',;t' |
---|
7175 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
7176 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7177 | ac_uB='$,\1#\2define\3' |
---|
7178 | ac_uC=' ' |
---|
7179 | ac_uD=',;t' |
---|
7180 | |
---|
7181 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
7182 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7183 | case $ac_file in |
---|
7184 | - | *:- | *:-:* ) # input from stdin |
---|
7185 | cat >$tmp/stdin |
---|
7186 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7187 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7188 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7189 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7190 | * ) ac_file_in=$ac_file.in ;; |
---|
7191 | esac |
---|
7192 | |
---|
7193 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7194 | echo "$as_me: creating $ac_file" >&6;} |
---|
7195 | |
---|
7196 | # First look for the input files in the build tree, otherwise in the |
---|
7197 | # src tree. |
---|
7198 | ac_file_inputs=`IFS=: |
---|
7199 | for f in $ac_file_in; do |
---|
7200 | case $f in |
---|
7201 | -) echo $tmp/stdin ;; |
---|
7202 | [\\/$]*) |
---|
7203 | # Absolute (can't be DOS-style, as IFS=:) |
---|
7204 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7205 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7206 | { (exit 1); exit 1; }; } |
---|
7207 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
7208 | echo "$f";; |
---|
7209 | *) # Relative |
---|
7210 | if test -f "$f"; then |
---|
7211 | # Build tree |
---|
7212 | echo "$f" |
---|
7213 | elif test -f "$srcdir/$f"; then |
---|
7214 | # Source tree |
---|
7215 | echo "$srcdir/$f" |
---|
7216 | else |
---|
7217 | # /dev/null tree |
---|
7218 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7219 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7220 | { (exit 1); exit 1; }; } |
---|
7221 | fi;; |
---|
7222 | esac |
---|
7223 | done` || { (exit 1); exit 1; } |
---|
7224 | # Remove the trailing spaces. |
---|
7225 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
7226 | |
---|
7227 | _ACEOF |
---|
7228 | |
---|
7229 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
7230 | # `conftest.undefs', that substitutes the proper values into |
---|
7231 | # config.h.in to produce config.h. The first handles `#define' |
---|
7232 | # templates, and the second `#undef' templates. |
---|
7233 | # And first: Protect against being on the right side of a sed subst in |
---|
7234 | # config.status. Protect against being in an unquoted here document |
---|
7235 | # in config.status. |
---|
7236 | rm -f conftest.defines conftest.undefs |
---|
7237 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
7238 | # Putting comments in sed scripts is not portable. |
---|
7239 | # |
---|
7240 | # `end' is used to avoid that the second main sed command (meant for |
---|
7241 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
7242 | # See the Autoconf documentation for `clear'. |
---|
7243 | cat >confdef2sed.sed <<\_ACEOF |
---|
7244 | s/[\\&,]/\\&/g |
---|
7245 | s,[\\$`],\\&,g |
---|
7246 | t clear |
---|
7247 | : clear |
---|
7248 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
7249 | t end |
---|
7250 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
7251 | : end |
---|
7252 | _ACEOF |
---|
7253 | # If some macros were called several times there might be several times |
---|
7254 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
7255 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
7256 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
7257 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
7258 | rm -f confdef2sed.sed |
---|
7259 | |
---|
7260 | # This sed command replaces #undef with comments. This is necessary, for |
---|
7261 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
7262 | # on some systems where configure will not decide to define it. |
---|
7263 | cat >>conftest.undefs <<\_ACEOF |
---|
7264 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
7265 | _ACEOF |
---|
7266 | |
---|
7267 | # Break up conftest.defines because some shells have a limit on the size |
---|
7268 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7269 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
7270 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
7271 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
7272 | echo ' :' >>$CONFIG_STATUS |
---|
7273 | rm -f conftest.tail |
---|
7274 | while grep . conftest.defines >/dev/null |
---|
7275 | do |
---|
7276 | # Write a limited-size here document to $tmp/defines.sed. |
---|
7277 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
7278 | # Speed up: don't consider the non `#define' lines. |
---|
7279 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
7280 | # Work around the forget-to-reset-the-flag bug. |
---|
7281 | echo 't clr' >>$CONFIG_STATUS |
---|
7282 | echo ': clr' >>$CONFIG_STATUS |
---|
7283 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
7284 | echo 'CEOF |
---|
7285 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
7286 | rm -f $tmp/in |
---|
7287 | mv $tmp/out $tmp/in |
---|
7288 | ' >>$CONFIG_STATUS |
---|
7289 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
7290 | rm -f conftest.defines |
---|
7291 | mv conftest.tail conftest.defines |
---|
7292 | done |
---|
7293 | rm -f conftest.defines |
---|
7294 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
7295 | echo >>$CONFIG_STATUS |
---|
7296 | |
---|
7297 | # Break up conftest.undefs because some shells have a limit on the size |
---|
7298 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7299 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
7300 | rm -f conftest.tail |
---|
7301 | while grep . conftest.undefs >/dev/null |
---|
7302 | do |
---|
7303 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
7304 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
7305 | # Speed up: don't consider the non `#undef' |
---|
7306 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
7307 | # Work around the forget-to-reset-the-flag bug. |
---|
7308 | echo 't clr' >>$CONFIG_STATUS |
---|
7309 | echo ': clr' >>$CONFIG_STATUS |
---|
7310 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
7311 | echo 'CEOF |
---|
7312 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
7313 | rm -f $tmp/in |
---|
7314 | mv $tmp/out $tmp/in |
---|
7315 | ' >>$CONFIG_STATUS |
---|
7316 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
7317 | rm -f conftest.undefs |
---|
7318 | mv conftest.tail conftest.undefs |
---|
7319 | done |
---|
7320 | rm -f conftest.undefs |
---|
7321 | |
---|
7322 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7323 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7324 | # use $as_me), people would be surprised to read: |
---|
7325 | # /* config.h. Generated by config.status. */ |
---|
7326 | if test x"$ac_file" = x-; then |
---|
7327 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
7328 | else |
---|
7329 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
7330 | fi |
---|
7331 | cat $tmp/in >>$tmp/config.h |
---|
7332 | rm -f $tmp/in |
---|
7333 | if test x"$ac_file" != x-; then |
---|
7334 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
7335 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
7336 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7337 | else |
---|
7338 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
7339 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7340 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7341 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7342 | X"$ac_file" : 'X\(/\)' \| \ |
---|
7343 | . : '\(.\)' 2>/dev/null || |
---|
7344 | echo X"$ac_file" | |
---|
7345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7346 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7347 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7348 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7349 | s/.*/./; q'` |
---|
7350 | { if $as_mkdir_p; then |
---|
7351 | mkdir -p "$ac_dir" |
---|
7352 | else |
---|
7353 | as_dir="$ac_dir" |
---|
7354 | as_dirs= |
---|
7355 | while test ! -d "$as_dir"; do |
---|
7356 | as_dirs="$as_dir $as_dirs" |
---|
7357 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7358 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7359 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7360 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7361 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7362 | . : '\(.\)' 2>/dev/null || |
---|
7363 | echo X"$as_dir" | |
---|
7364 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7365 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7366 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7367 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7368 | s/.*/./; q'` |
---|
7369 | done |
---|
7370 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7371 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7372 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7373 | { (exit 1); exit 1; }; }; } |
---|
7374 | |
---|
7375 | rm -f $ac_file |
---|
7376 | mv $tmp/config.h $ac_file |
---|
7377 | fi |
---|
7378 | else |
---|
7379 | cat $tmp/config.h |
---|
7380 | rm -f $tmp/config.h |
---|
7381 | fi |
---|
7382 | # Compute $ac_file's index in $config_headers. |
---|
7383 | _am_stamp_count=1 |
---|
7384 | for _am_header in $config_headers :; do |
---|
7385 | case $_am_header in |
---|
7386 | $ac_file | $ac_file:* ) |
---|
7387 | break ;; |
---|
7388 | * ) |
---|
7389 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7390 | esac |
---|
7391 | done |
---|
7392 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
7393 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7394 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
7395 | X$ac_file : 'X\(//\)$' \| \ |
---|
7396 | X$ac_file : 'X\(/\)' \| \ |
---|
7397 | . : '\(.\)' 2>/dev/null || |
---|
7398 | echo X$ac_file | |
---|
7399 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7400 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7401 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7402 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7403 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7404 | done |
---|
7405 | _ACEOF |
---|
7406 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7407 | |
---|
7408 | # |
---|
7409 | # CONFIG_COMMANDS section. |
---|
7410 | # |
---|
7411 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
7412 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
7413 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7414 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
7415 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7416 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
7417 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
7418 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
7419 | . : '\(.\)' 2>/dev/null || |
---|
7420 | echo X"$ac_dest" | |
---|
7421 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7422 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7423 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7424 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7425 | s/.*/./; q'` |
---|
7426 | { if $as_mkdir_p; then |
---|
7427 | mkdir -p "$ac_dir" |
---|
7428 | else |
---|
7429 | as_dir="$ac_dir" |
---|
7430 | as_dirs= |
---|
7431 | while test ! -d "$as_dir"; do |
---|
7432 | as_dirs="$as_dir $as_dirs" |
---|
7433 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7434 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7435 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7436 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7437 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7438 | . : '\(.\)' 2>/dev/null || |
---|
7439 | echo X"$as_dir" | |
---|
7440 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7441 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7442 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7443 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7444 | s/.*/./; q'` |
---|
7445 | done |
---|
7446 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7447 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7448 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7449 | { (exit 1); exit 1; }; }; } |
---|
7450 | |
---|
7451 | ac_builddir=. |
---|
7452 | |
---|
7453 | if test "$ac_dir" != .; then |
---|
7454 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7455 | # A "../" for each directory in $ac_dir_suffix. |
---|
7456 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7457 | else |
---|
7458 | ac_dir_suffix= ac_top_builddir= |
---|
7459 | fi |
---|
7460 | |
---|
7461 | case $srcdir in |
---|
7462 | .) # No --srcdir option. We are building in place. |
---|
7463 | ac_srcdir=. |
---|
7464 | if test -z "$ac_top_builddir"; then |
---|
7465 | ac_top_srcdir=. |
---|
7466 | else |
---|
7467 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7468 | fi ;; |
---|
7469 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7470 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7471 | ac_top_srcdir=$srcdir ;; |
---|
7472 | *) # Relative path. |
---|
7473 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7474 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7475 | esac |
---|
7476 | |
---|
7477 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
7478 | # the directories may not exist. |
---|
7479 | case `pwd` in |
---|
7480 | .) ac_abs_builddir="$ac_dir";; |
---|
7481 | *) |
---|
7482 | case "$ac_dir" in |
---|
7483 | .) ac_abs_builddir=`pwd`;; |
---|
7484 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
7485 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
7486 | esac;; |
---|
7487 | esac |
---|
7488 | case $ac_abs_builddir in |
---|
7489 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7490 | *) |
---|
7491 | case ${ac_top_builddir}. in |
---|
7492 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
7493 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7494 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
7495 | esac;; |
---|
7496 | esac |
---|
7497 | case $ac_abs_builddir in |
---|
7498 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
7499 | *) |
---|
7500 | case $ac_srcdir in |
---|
7501 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
7502 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
7503 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
7504 | esac;; |
---|
7505 | esac |
---|
7506 | case $ac_abs_builddir in |
---|
7507 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7508 | *) |
---|
7509 | case $ac_top_srcdir in |
---|
7510 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
7511 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7512 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
7513 | esac;; |
---|
7514 | esac |
---|
7515 | |
---|
7516 | |
---|
7517 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
7518 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
7519 | case $ac_dest in |
---|
7520 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
7521 | # Strip MF so we end up with the name of the file. |
---|
7522 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7523 | # Check whether this is an Automake generated Makefile or not. |
---|
7524 | # We used to match only the files named `Makefile.in', but |
---|
7525 | # some people rename them; so instead we look at the file content. |
---|
7526 | # Grep'ing the first line is not enough: some people post-process |
---|
7527 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7528 | # So let's grep whole file. |
---|
7529 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
7530 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
7531 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7532 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7533 | X"$mf" : 'X\(//\)$' \| \ |
---|
7534 | X"$mf" : 'X\(/\)' \| \ |
---|
7535 | . : '\(.\)' 2>/dev/null || |
---|
7536 | echo X"$mf" | |
---|
7537 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7538 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7539 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7540 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7541 | s/.*/./; q'` |
---|
7542 | else |
---|
7543 | continue |
---|
7544 | fi |
---|
7545 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
7546 | # Extract the definition of DEP_FILES from the Makefile without |
---|
7547 | # running `make'. |
---|
7548 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
7549 | test -z "$DEPDIR" && continue |
---|
7550 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7551 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
7552 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
7553 | # We invoke sed twice because it is the simplest approach to |
---|
7554 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
7555 | for file in `sed -n -e ' |
---|
7556 | /^DEP_FILES = .*\\\\$/ { |
---|
7557 | s/^DEP_FILES = // |
---|
7558 | :loop |
---|
7559 | s/\\\\$// |
---|
7560 | p |
---|
7561 | n |
---|
7562 | /\\\\$/ b loop |
---|
7563 | p |
---|
7564 | } |
---|
7565 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
7566 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7567 | # Make sure the directory exists. |
---|
7568 | test -f "$dirpart/$file" && continue |
---|
7569 | fdir=`(dirname "$file") 2>/dev/null || |
---|
7570 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7571 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7572 | X"$file" : 'X\(//\)$' \| \ |
---|
7573 | X"$file" : 'X\(/\)' \| \ |
---|
7574 | . : '\(.\)' 2>/dev/null || |
---|
7575 | echo X"$file" | |
---|
7576 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7577 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7578 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7579 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7580 | s/.*/./; q'` |
---|
7581 | { if $as_mkdir_p; then |
---|
7582 | mkdir -p $dirpart/$fdir |
---|
7583 | else |
---|
7584 | as_dir=$dirpart/$fdir |
---|
7585 | as_dirs= |
---|
7586 | while test ! -d "$as_dir"; do |
---|
7587 | as_dirs="$as_dir $as_dirs" |
---|
7588 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7589 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7590 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7591 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7592 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7593 | . : '\(.\)' 2>/dev/null || |
---|
7594 | echo X"$as_dir" | |
---|
7595 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7596 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7597 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7598 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7599 | s/.*/./; q'` |
---|
7600 | done |
---|
7601 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7602 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
7603 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
7604 | { (exit 1); exit 1; }; }; } |
---|
7605 | |
---|
7606 | # echo "creating $dirpart/$file" |
---|
7607 | echo '# dummy' > "$dirpart/$file" |
---|
7608 | done |
---|
7609 | done |
---|
7610 | ;; |
---|
7611 | esac |
---|
7612 | done |
---|
7613 | _ACEOF |
---|
7614 | |
---|
7615 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7616 | |
---|
7617 | { (exit 0); exit 0; } |
---|
7618 | _ACEOF |
---|
7619 | chmod +x $CONFIG_STATUS |
---|
7620 | ac_clean_files=$ac_clean_files_save |
---|
7621 | |
---|
7622 | |
---|
7623 | # configure is writing to config.log, and then calls config.status. |
---|
7624 | # config.status does its own redirection, appending to config.log. |
---|
7625 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7626 | # by configure, so config.status won't be able to write to it; its |
---|
7627 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7628 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7629 | # appended to by config.status. When coming back to configure, we |
---|
7630 | # need to make the FD available again. |
---|
7631 | if test "$no_create" != yes; then |
---|
7632 | ac_cs_success=: |
---|
7633 | ac_config_status_args= |
---|
7634 | test "$silent" = yes && |
---|
7635 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7636 | exec 5>/dev/null |
---|
7637 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7638 | exec 5>>config.log |
---|
7639 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7640 | # would make configure fail if this is the last instruction. |
---|
7641 | $ac_cs_success || { (exit 1); exit 1; } |
---|
7642 | fi |
---|
7643 | |
---|