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 | |
---|
1726 | ac_config_headers="$ac_config_headers config.h" |
---|
1727 | |
---|
1728 | |
---|
1729 | echo "$as_me:$LINENO: checking for mingw" >&5 |
---|
1730 | echo $ECHO_N "checking for mingw... $ECHO_C" >&6 |
---|
1731 | case `uname` in |
---|
1732 | *MINGW*) |
---|
1733 | mingw="yes" |
---|
1734 | MSBITFIELDS="-mms-bitfields" |
---|
1735 | MWINDOWS="-mwindows" |
---|
1736 | ;; |
---|
1737 | *) |
---|
1738 | mingw="no" |
---|
1739 | ;; |
---|
1740 | esac |
---|
1741 | echo "$as_me:$LINENO: result: $mingw" >&5 |
---|
1742 | echo "${ECHO_T}$mingw" >&6 |
---|
1743 | |
---|
1744 | |
---|
1745 | |
---|
1746 | # Checks for programs. |
---|
1747 | ac_ext=cc |
---|
1748 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1749 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1750 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1751 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1752 | if test -n "$ac_tool_prefix"; then |
---|
1753 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1754 | do |
---|
1755 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1756 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1757 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1758 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1759 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1761 | else |
---|
1762 | if test -n "$CXX"; then |
---|
1763 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1764 | else |
---|
1765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1766 | for as_dir in $PATH |
---|
1767 | do |
---|
1768 | IFS=$as_save_IFS |
---|
1769 | test -z "$as_dir" && as_dir=. |
---|
1770 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1771 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1772 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1773 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1774 | break 2 |
---|
1775 | fi |
---|
1776 | done |
---|
1777 | done |
---|
1778 | |
---|
1779 | fi |
---|
1780 | fi |
---|
1781 | CXX=$ac_cv_prog_CXX |
---|
1782 | if test -n "$CXX"; then |
---|
1783 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1784 | echo "${ECHO_T}$CXX" >&6 |
---|
1785 | else |
---|
1786 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1787 | echo "${ECHO_T}no" >&6 |
---|
1788 | fi |
---|
1789 | |
---|
1790 | test -n "$CXX" && break |
---|
1791 | done |
---|
1792 | fi |
---|
1793 | if test -z "$CXX"; then |
---|
1794 | ac_ct_CXX=$CXX |
---|
1795 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1796 | do |
---|
1797 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1798 | set dummy $ac_prog; ac_word=$2 |
---|
1799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1801 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1803 | else |
---|
1804 | if test -n "$ac_ct_CXX"; then |
---|
1805 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1806 | else |
---|
1807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1808 | for as_dir in $PATH |
---|
1809 | do |
---|
1810 | IFS=$as_save_IFS |
---|
1811 | test -z "$as_dir" && as_dir=. |
---|
1812 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1814 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1816 | break 2 |
---|
1817 | fi |
---|
1818 | done |
---|
1819 | done |
---|
1820 | |
---|
1821 | fi |
---|
1822 | fi |
---|
1823 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1824 | if test -n "$ac_ct_CXX"; then |
---|
1825 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1826 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1827 | else |
---|
1828 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1829 | echo "${ECHO_T}no" >&6 |
---|
1830 | fi |
---|
1831 | |
---|
1832 | test -n "$ac_ct_CXX" && break |
---|
1833 | done |
---|
1834 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1835 | |
---|
1836 | CXX=$ac_ct_CXX |
---|
1837 | fi |
---|
1838 | |
---|
1839 | |
---|
1840 | # Provide some information about the compiler. |
---|
1841 | echo "$as_me:$LINENO:" \ |
---|
1842 | "checking for C++ compiler version" >&5 |
---|
1843 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1844 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1845 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1846 | ac_status=$? |
---|
1847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1848 | (exit $ac_status); } |
---|
1849 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1850 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1851 | ac_status=$? |
---|
1852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1853 | (exit $ac_status); } |
---|
1854 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1855 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1856 | ac_status=$? |
---|
1857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1858 | (exit $ac_status); } |
---|
1859 | |
---|
1860 | cat >conftest.$ac_ext <<_ACEOF |
---|
1861 | /* confdefs.h. */ |
---|
1862 | _ACEOF |
---|
1863 | cat confdefs.h >>conftest.$ac_ext |
---|
1864 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1865 | /* end confdefs.h. */ |
---|
1866 | |
---|
1867 | int |
---|
1868 | main () |
---|
1869 | { |
---|
1870 | |
---|
1871 | ; |
---|
1872 | return 0; |
---|
1873 | } |
---|
1874 | _ACEOF |
---|
1875 | ac_clean_files_save=$ac_clean_files |
---|
1876 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1877 | # Try to create an executable without -o first, disregard a.out. |
---|
1878 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1879 | # of exeext. |
---|
1880 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1881 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1882 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1883 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1884 | (eval $ac_link_default) 2>&5 |
---|
1885 | ac_status=$? |
---|
1886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1887 | (exit $ac_status); }; then |
---|
1888 | # Find the output, starting from the most likely. This scheme is |
---|
1889 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1890 | # resort. |
---|
1891 | |
---|
1892 | # Be careful to initialize this variable, since it used to be cached. |
---|
1893 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1894 | ac_cv_exeext= |
---|
1895 | # b.out is created by i960 compilers. |
---|
1896 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
1897 | do |
---|
1898 | test -f "$ac_file" || continue |
---|
1899 | case $ac_file in |
---|
1900 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
1901 | ;; |
---|
1902 | conftest.$ac_ext ) |
---|
1903 | # This is the source file. |
---|
1904 | ;; |
---|
1905 | [ab].out ) |
---|
1906 | # We found the default executable, but exeext='' is most |
---|
1907 | # certainly right. |
---|
1908 | break;; |
---|
1909 | *.* ) |
---|
1910 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1911 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
1912 | # but it would be cool to find out if it's true. Does anybody |
---|
1913 | # maintain Libtool? --akim. |
---|
1914 | export ac_cv_exeext |
---|
1915 | break;; |
---|
1916 | * ) |
---|
1917 | break;; |
---|
1918 | esac |
---|
1919 | done |
---|
1920 | else |
---|
1921 | echo "$as_me: failed program was:" >&5 |
---|
1922 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1923 | |
---|
1924 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
1925 | See \`config.log' for more details." >&5 |
---|
1926 | echo "$as_me: error: C++ compiler cannot create executables |
---|
1927 | See \`config.log' for more details." >&2;} |
---|
1928 | { (exit 77); exit 77; }; } |
---|
1929 | fi |
---|
1930 | |
---|
1931 | ac_exeext=$ac_cv_exeext |
---|
1932 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
1933 | echo "${ECHO_T}$ac_file" >&6 |
---|
1934 | |
---|
1935 | # Check the compiler produces executables we can run. If not, either |
---|
1936 | # the compiler is broken, or we cross compile. |
---|
1937 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
1938 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
1939 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
1940 | # If not cross compiling, check that we can run a simple program. |
---|
1941 | if test "$cross_compiling" != yes; then |
---|
1942 | if { ac_try='./$ac_file' |
---|
1943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1944 | (eval $ac_try) 2>&5 |
---|
1945 | ac_status=$? |
---|
1946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1947 | (exit $ac_status); }; }; then |
---|
1948 | cross_compiling=no |
---|
1949 | else |
---|
1950 | if test "$cross_compiling" = maybe; then |
---|
1951 | cross_compiling=yes |
---|
1952 | else |
---|
1953 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
1954 | If you meant to cross compile, use \`--host'. |
---|
1955 | See \`config.log' for more details." >&5 |
---|
1956 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
1957 | If you meant to cross compile, use \`--host'. |
---|
1958 | See \`config.log' for more details." >&2;} |
---|
1959 | { (exit 1); exit 1; }; } |
---|
1960 | fi |
---|
1961 | fi |
---|
1962 | fi |
---|
1963 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1964 | echo "${ECHO_T}yes" >&6 |
---|
1965 | |
---|
1966 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
1967 | ac_clean_files=$ac_clean_files_save |
---|
1968 | # Check the compiler produces executables we can run. If not, either |
---|
1969 | # the compiler is broken, or we cross compile. |
---|
1970 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
1971 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
1972 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
1973 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
1974 | |
---|
1975 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
1976 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
1977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
1978 | (eval $ac_link) 2>&5 |
---|
1979 | ac_status=$? |
---|
1980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1981 | (exit $ac_status); }; then |
---|
1982 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
1983 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
1984 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
1985 | # `rm'. |
---|
1986 | for ac_file in conftest.exe conftest conftest.*; do |
---|
1987 | test -f "$ac_file" || continue |
---|
1988 | case $ac_file in |
---|
1989 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
1990 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1991 | export ac_cv_exeext |
---|
1992 | break;; |
---|
1993 | * ) break;; |
---|
1994 | esac |
---|
1995 | done |
---|
1996 | else |
---|
1997 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
1998 | See \`config.log' for more details." >&5 |
---|
1999 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2000 | See \`config.log' for more details." >&2;} |
---|
2001 | { (exit 1); exit 1; }; } |
---|
2002 | fi |
---|
2003 | |
---|
2004 | rm -f conftest$ac_cv_exeext |
---|
2005 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2006 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2007 | |
---|
2008 | rm -f conftest.$ac_ext |
---|
2009 | EXEEXT=$ac_cv_exeext |
---|
2010 | ac_exeext=$EXEEXT |
---|
2011 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2012 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2013 | if test "${ac_cv_objext+set}" = set; then |
---|
2014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2015 | else |
---|
2016 | cat >conftest.$ac_ext <<_ACEOF |
---|
2017 | /* confdefs.h. */ |
---|
2018 | _ACEOF |
---|
2019 | cat confdefs.h >>conftest.$ac_ext |
---|
2020 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2021 | /* end confdefs.h. */ |
---|
2022 | |
---|
2023 | int |
---|
2024 | main () |
---|
2025 | { |
---|
2026 | |
---|
2027 | ; |
---|
2028 | return 0; |
---|
2029 | } |
---|
2030 | _ACEOF |
---|
2031 | rm -f conftest.o conftest.obj |
---|
2032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2033 | (eval $ac_compile) 2>&5 |
---|
2034 | ac_status=$? |
---|
2035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2036 | (exit $ac_status); }; then |
---|
2037 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2038 | case $ac_file in |
---|
2039 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2040 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2041 | break;; |
---|
2042 | esac |
---|
2043 | done |
---|
2044 | else |
---|
2045 | echo "$as_me: failed program was:" >&5 |
---|
2046 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2047 | |
---|
2048 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2049 | See \`config.log' for more details." >&5 |
---|
2050 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2051 | See \`config.log' for more details." >&2;} |
---|
2052 | { (exit 1); exit 1; }; } |
---|
2053 | fi |
---|
2054 | |
---|
2055 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2056 | fi |
---|
2057 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2058 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2059 | OBJEXT=$ac_cv_objext |
---|
2060 | ac_objext=$OBJEXT |
---|
2061 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2062 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2063 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2065 | else |
---|
2066 | cat >conftest.$ac_ext <<_ACEOF |
---|
2067 | /* confdefs.h. */ |
---|
2068 | _ACEOF |
---|
2069 | cat confdefs.h >>conftest.$ac_ext |
---|
2070 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2071 | /* end confdefs.h. */ |
---|
2072 | |
---|
2073 | int |
---|
2074 | main () |
---|
2075 | { |
---|
2076 | #ifndef __GNUC__ |
---|
2077 | choke me |
---|
2078 | #endif |
---|
2079 | |
---|
2080 | ; |
---|
2081 | return 0; |
---|
2082 | } |
---|
2083 | _ACEOF |
---|
2084 | rm -f conftest.$ac_objext |
---|
2085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2086 | (eval $ac_compile) 2>conftest.er1 |
---|
2087 | ac_status=$? |
---|
2088 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2089 | rm -f conftest.er1 |
---|
2090 | cat conftest.err >&5 |
---|
2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2092 | (exit $ac_status); } && |
---|
2093 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2094 | || test ! -s conftest.err' |
---|
2095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2096 | (eval $ac_try) 2>&5 |
---|
2097 | ac_status=$? |
---|
2098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2099 | (exit $ac_status); }; } && |
---|
2100 | { ac_try='test -s conftest.$ac_objext' |
---|
2101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2102 | (eval $ac_try) 2>&5 |
---|
2103 | ac_status=$? |
---|
2104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2105 | (exit $ac_status); }; }; then |
---|
2106 | ac_compiler_gnu=yes |
---|
2107 | else |
---|
2108 | echo "$as_me: failed program was:" >&5 |
---|
2109 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2110 | |
---|
2111 | ac_compiler_gnu=no |
---|
2112 | fi |
---|
2113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2114 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2115 | |
---|
2116 | fi |
---|
2117 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2118 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2119 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2120 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2121 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2122 | CXXFLAGS="-g" |
---|
2123 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2124 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2125 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2127 | else |
---|
2128 | cat >conftest.$ac_ext <<_ACEOF |
---|
2129 | /* confdefs.h. */ |
---|
2130 | _ACEOF |
---|
2131 | cat confdefs.h >>conftest.$ac_ext |
---|
2132 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2133 | /* end confdefs.h. */ |
---|
2134 | |
---|
2135 | int |
---|
2136 | main () |
---|
2137 | { |
---|
2138 | |
---|
2139 | ; |
---|
2140 | return 0; |
---|
2141 | } |
---|
2142 | _ACEOF |
---|
2143 | rm -f conftest.$ac_objext |
---|
2144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2145 | (eval $ac_compile) 2>conftest.er1 |
---|
2146 | ac_status=$? |
---|
2147 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2148 | rm -f conftest.er1 |
---|
2149 | cat conftest.err >&5 |
---|
2150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2151 | (exit $ac_status); } && |
---|
2152 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2153 | || test ! -s conftest.err' |
---|
2154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2155 | (eval $ac_try) 2>&5 |
---|
2156 | ac_status=$? |
---|
2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2158 | (exit $ac_status); }; } && |
---|
2159 | { ac_try='test -s conftest.$ac_objext' |
---|
2160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2161 | (eval $ac_try) 2>&5 |
---|
2162 | ac_status=$? |
---|
2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2164 | (exit $ac_status); }; }; then |
---|
2165 | ac_cv_prog_cxx_g=yes |
---|
2166 | else |
---|
2167 | echo "$as_me: failed program was:" >&5 |
---|
2168 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2169 | |
---|
2170 | ac_cv_prog_cxx_g=no |
---|
2171 | fi |
---|
2172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2173 | fi |
---|
2174 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2175 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2176 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2177 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2178 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2179 | if test "$GXX" = yes; then |
---|
2180 | CXXFLAGS="-g -O2" |
---|
2181 | else |
---|
2182 | CXXFLAGS="-g" |
---|
2183 | fi |
---|
2184 | else |
---|
2185 | if test "$GXX" = yes; then |
---|
2186 | CXXFLAGS="-O2" |
---|
2187 | else |
---|
2188 | CXXFLAGS= |
---|
2189 | fi |
---|
2190 | fi |
---|
2191 | for ac_declaration in \ |
---|
2192 | '' \ |
---|
2193 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2194 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2195 | 'extern "C" void exit (int) throw ();' \ |
---|
2196 | 'extern "C" void exit (int);' \ |
---|
2197 | 'void exit (int);' |
---|
2198 | do |
---|
2199 | cat >conftest.$ac_ext <<_ACEOF |
---|
2200 | /* confdefs.h. */ |
---|
2201 | _ACEOF |
---|
2202 | cat confdefs.h >>conftest.$ac_ext |
---|
2203 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2204 | /* end confdefs.h. */ |
---|
2205 | $ac_declaration |
---|
2206 | #include <stdlib.h> |
---|
2207 | int |
---|
2208 | main () |
---|
2209 | { |
---|
2210 | exit (42); |
---|
2211 | ; |
---|
2212 | return 0; |
---|
2213 | } |
---|
2214 | _ACEOF |
---|
2215 | rm -f conftest.$ac_objext |
---|
2216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2217 | (eval $ac_compile) 2>conftest.er1 |
---|
2218 | ac_status=$? |
---|
2219 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2220 | rm -f conftest.er1 |
---|
2221 | cat conftest.err >&5 |
---|
2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2223 | (exit $ac_status); } && |
---|
2224 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2225 | || test ! -s conftest.err' |
---|
2226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2227 | (eval $ac_try) 2>&5 |
---|
2228 | ac_status=$? |
---|
2229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2230 | (exit $ac_status); }; } && |
---|
2231 | { ac_try='test -s conftest.$ac_objext' |
---|
2232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2233 | (eval $ac_try) 2>&5 |
---|
2234 | ac_status=$? |
---|
2235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2236 | (exit $ac_status); }; }; then |
---|
2237 | : |
---|
2238 | else |
---|
2239 | echo "$as_me: failed program was:" >&5 |
---|
2240 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2241 | |
---|
2242 | continue |
---|
2243 | fi |
---|
2244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2245 | cat >conftest.$ac_ext <<_ACEOF |
---|
2246 | /* confdefs.h. */ |
---|
2247 | _ACEOF |
---|
2248 | cat confdefs.h >>conftest.$ac_ext |
---|
2249 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2250 | /* end confdefs.h. */ |
---|
2251 | $ac_declaration |
---|
2252 | int |
---|
2253 | main () |
---|
2254 | { |
---|
2255 | exit (42); |
---|
2256 | ; |
---|
2257 | return 0; |
---|
2258 | } |
---|
2259 | _ACEOF |
---|
2260 | rm -f conftest.$ac_objext |
---|
2261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2262 | (eval $ac_compile) 2>conftest.er1 |
---|
2263 | ac_status=$? |
---|
2264 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2265 | rm -f conftest.er1 |
---|
2266 | cat conftest.err >&5 |
---|
2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2268 | (exit $ac_status); } && |
---|
2269 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2270 | || test ! -s conftest.err' |
---|
2271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2272 | (eval $ac_try) 2>&5 |
---|
2273 | ac_status=$? |
---|
2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2275 | (exit $ac_status); }; } && |
---|
2276 | { ac_try='test -s conftest.$ac_objext' |
---|
2277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2278 | (eval $ac_try) 2>&5 |
---|
2279 | ac_status=$? |
---|
2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2281 | (exit $ac_status); }; }; then |
---|
2282 | break |
---|
2283 | else |
---|
2284 | echo "$as_me: failed program was:" >&5 |
---|
2285 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2286 | |
---|
2287 | fi |
---|
2288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2289 | done |
---|
2290 | rm -f conftest* |
---|
2291 | if test -n "$ac_declaration"; then |
---|
2292 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2293 | echo $ac_declaration >>confdefs.h |
---|
2294 | echo '#endif' >>confdefs.h |
---|
2295 | fi |
---|
2296 | |
---|
2297 | ac_ext=c |
---|
2298 | ac_cpp='$CPP $CPPFLAGS' |
---|
2299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2302 | DEPDIR="${am__leading_dot}deps" |
---|
2303 | |
---|
2304 | ac_config_commands="$ac_config_commands depfiles" |
---|
2305 | |
---|
2306 | |
---|
2307 | am_make=${MAKE-make} |
---|
2308 | cat > confinc << 'END' |
---|
2309 | am__doit: |
---|
2310 | @echo done |
---|
2311 | .PHONY: am__doit |
---|
2312 | END |
---|
2313 | # If we don't find an include directive, just comment out the code. |
---|
2314 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2315 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2316 | am__include="#" |
---|
2317 | am__quote= |
---|
2318 | _am_result=none |
---|
2319 | # First try GNU make style include. |
---|
2320 | echo "include confinc" > confmf |
---|
2321 | # We grep out `Entering directory' and `Leaving directory' |
---|
2322 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2323 | # In particular we don't look at `^make:' because GNU make might |
---|
2324 | # be invoked under some other name (usually "gmake"), in which |
---|
2325 | # case it prints its new name instead of `make'. |
---|
2326 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2327 | am__include=include |
---|
2328 | am__quote= |
---|
2329 | _am_result=GNU |
---|
2330 | fi |
---|
2331 | # Now try BSD make style include. |
---|
2332 | if test "$am__include" = "#"; then |
---|
2333 | echo '.include "confinc"' > confmf |
---|
2334 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2335 | am__include=.include |
---|
2336 | am__quote="\"" |
---|
2337 | _am_result=BSD |
---|
2338 | fi |
---|
2339 | fi |
---|
2340 | |
---|
2341 | |
---|
2342 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2343 | echo "${ECHO_T}$_am_result" >&6 |
---|
2344 | rm -f confinc confmf |
---|
2345 | |
---|
2346 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2347 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2348 | enableval="$enable_dependency_tracking" |
---|
2349 | |
---|
2350 | fi; |
---|
2351 | if test "x$enable_dependency_tracking" != xno; then |
---|
2352 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2353 | AMDEPBACKSLASH='\' |
---|
2354 | fi |
---|
2355 | |
---|
2356 | |
---|
2357 | if test "x$enable_dependency_tracking" != xno; then |
---|
2358 | AMDEP_TRUE= |
---|
2359 | AMDEP_FALSE='#' |
---|
2360 | else |
---|
2361 | AMDEP_TRUE='#' |
---|
2362 | AMDEP_FALSE= |
---|
2363 | fi |
---|
2364 | |
---|
2365 | |
---|
2366 | |
---|
2367 | |
---|
2368 | depcc="$CXX" am_compiler_list= |
---|
2369 | |
---|
2370 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2371 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2372 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2374 | else |
---|
2375 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2376 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2377 | # making bogus files that we don't know about and never remove. For |
---|
2378 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2379 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2380 | # in D'. |
---|
2381 | mkdir conftest.dir |
---|
2382 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2383 | # using a relative directory. |
---|
2384 | cp "$am_depcomp" conftest.dir |
---|
2385 | cd conftest.dir |
---|
2386 | # We will build objects and dependencies in a subdirectory because |
---|
2387 | # it helps to detect inapplicable dependency modes. For instance |
---|
2388 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2389 | # side effect of compilation, but ICC will put the dependencies in |
---|
2390 | # the current directory while Tru64 will put them in the object |
---|
2391 | # directory. |
---|
2392 | mkdir sub |
---|
2393 | |
---|
2394 | am_cv_CXX_dependencies_compiler_type=none |
---|
2395 | if test "$am_compiler_list" = ""; then |
---|
2396 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2397 | fi |
---|
2398 | for depmode in $am_compiler_list; do |
---|
2399 | # Setup a source with many dependencies, because some compilers |
---|
2400 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2401 | # we should not choose a depcomp mode which is confused by this. |
---|
2402 | # |
---|
2403 | # We need to recreate these files for each test, as the compiler may |
---|
2404 | # overwrite some of them when testing with obscure command lines. |
---|
2405 | # This happens at least with the AIX C compiler. |
---|
2406 | : > sub/conftest.c |
---|
2407 | for i in 1 2 3 4 5 6; do |
---|
2408 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2409 | : > sub/conftst$i.h |
---|
2410 | done |
---|
2411 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2412 | |
---|
2413 | case $depmode in |
---|
2414 | nosideeffect) |
---|
2415 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2416 | # only be used when explicitly requested |
---|
2417 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2418 | continue |
---|
2419 | else |
---|
2420 | break |
---|
2421 | fi |
---|
2422 | ;; |
---|
2423 | none) break ;; |
---|
2424 | esac |
---|
2425 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2426 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2427 | # handle `-M -o', and we need to detect this. |
---|
2428 | if depmode=$depmode \ |
---|
2429 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2430 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2431 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2432 | >/dev/null 2>conftest.err && |
---|
2433 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2434 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2435 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2436 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2437 | # (even with -Werror). So we grep stderr for any message |
---|
2438 | # that says an option was ignored. |
---|
2439 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
2440 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2441 | break |
---|
2442 | fi |
---|
2443 | fi |
---|
2444 | done |
---|
2445 | |
---|
2446 | cd .. |
---|
2447 | rm -rf conftest.dir |
---|
2448 | else |
---|
2449 | am_cv_CXX_dependencies_compiler_type=none |
---|
2450 | fi |
---|
2451 | |
---|
2452 | fi |
---|
2453 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2454 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2455 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2456 | |
---|
2457 | |
---|
2458 | |
---|
2459 | if |
---|
2460 | test "x$enable_dependency_tracking" != xno \ |
---|
2461 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2462 | am__fastdepCXX_TRUE= |
---|
2463 | am__fastdepCXX_FALSE='#' |
---|
2464 | else |
---|
2465 | am__fastdepCXX_TRUE='#' |
---|
2466 | am__fastdepCXX_FALSE= |
---|
2467 | fi |
---|
2468 | |
---|
2469 | |
---|
2470 | ac_ext=c |
---|
2471 | ac_cpp='$CPP $CPPFLAGS' |
---|
2472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2475 | if test -n "$ac_tool_prefix"; then |
---|
2476 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2477 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2480 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2482 | else |
---|
2483 | if test -n "$CC"; then |
---|
2484 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2485 | else |
---|
2486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2487 | for as_dir in $PATH |
---|
2488 | do |
---|
2489 | IFS=$as_save_IFS |
---|
2490 | test -z "$as_dir" && as_dir=. |
---|
2491 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2493 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2495 | break 2 |
---|
2496 | fi |
---|
2497 | done |
---|
2498 | done |
---|
2499 | |
---|
2500 | fi |
---|
2501 | fi |
---|
2502 | CC=$ac_cv_prog_CC |
---|
2503 | if test -n "$CC"; then |
---|
2504 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2505 | echo "${ECHO_T}$CC" >&6 |
---|
2506 | else |
---|
2507 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2508 | echo "${ECHO_T}no" >&6 |
---|
2509 | fi |
---|
2510 | |
---|
2511 | fi |
---|
2512 | if test -z "$ac_cv_prog_CC"; then |
---|
2513 | ac_ct_CC=$CC |
---|
2514 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2515 | set dummy gcc; ac_word=$2 |
---|
2516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2518 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2520 | else |
---|
2521 | if test -n "$ac_ct_CC"; then |
---|
2522 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2523 | else |
---|
2524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2525 | for as_dir in $PATH |
---|
2526 | do |
---|
2527 | IFS=$as_save_IFS |
---|
2528 | test -z "$as_dir" && as_dir=. |
---|
2529 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2530 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2531 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2533 | break 2 |
---|
2534 | fi |
---|
2535 | done |
---|
2536 | done |
---|
2537 | |
---|
2538 | fi |
---|
2539 | fi |
---|
2540 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2541 | if test -n "$ac_ct_CC"; then |
---|
2542 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2543 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2544 | else |
---|
2545 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2546 | echo "${ECHO_T}no" >&6 |
---|
2547 | fi |
---|
2548 | |
---|
2549 | CC=$ac_ct_CC |
---|
2550 | else |
---|
2551 | CC="$ac_cv_prog_CC" |
---|
2552 | fi |
---|
2553 | |
---|
2554 | if test -z "$CC"; then |
---|
2555 | if test -n "$ac_tool_prefix"; then |
---|
2556 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2557 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2558 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2560 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2562 | else |
---|
2563 | if test -n "$CC"; then |
---|
2564 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2565 | else |
---|
2566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2567 | for as_dir in $PATH |
---|
2568 | do |
---|
2569 | IFS=$as_save_IFS |
---|
2570 | test -z "$as_dir" && as_dir=. |
---|
2571 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2572 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2573 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2574 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2575 | break 2 |
---|
2576 | fi |
---|
2577 | done |
---|
2578 | done |
---|
2579 | |
---|
2580 | fi |
---|
2581 | fi |
---|
2582 | CC=$ac_cv_prog_CC |
---|
2583 | if test -n "$CC"; then |
---|
2584 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2585 | echo "${ECHO_T}$CC" >&6 |
---|
2586 | else |
---|
2587 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2588 | echo "${ECHO_T}no" >&6 |
---|
2589 | fi |
---|
2590 | |
---|
2591 | fi |
---|
2592 | if test -z "$ac_cv_prog_CC"; then |
---|
2593 | ac_ct_CC=$CC |
---|
2594 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2595 | set dummy cc; ac_word=$2 |
---|
2596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2598 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2600 | else |
---|
2601 | if test -n "$ac_ct_CC"; then |
---|
2602 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2603 | else |
---|
2604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2605 | for as_dir in $PATH |
---|
2606 | do |
---|
2607 | IFS=$as_save_IFS |
---|
2608 | test -z "$as_dir" && as_dir=. |
---|
2609 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2611 | ac_cv_prog_ac_ct_CC="cc" |
---|
2612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2613 | break 2 |
---|
2614 | fi |
---|
2615 | done |
---|
2616 | done |
---|
2617 | |
---|
2618 | fi |
---|
2619 | fi |
---|
2620 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2621 | if test -n "$ac_ct_CC"; then |
---|
2622 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2623 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2624 | else |
---|
2625 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2626 | echo "${ECHO_T}no" >&6 |
---|
2627 | fi |
---|
2628 | |
---|
2629 | CC=$ac_ct_CC |
---|
2630 | else |
---|
2631 | CC="$ac_cv_prog_CC" |
---|
2632 | fi |
---|
2633 | |
---|
2634 | fi |
---|
2635 | if test -z "$CC"; then |
---|
2636 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2637 | set dummy cc; ac_word=$2 |
---|
2638 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2640 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2642 | else |
---|
2643 | if test -n "$CC"; then |
---|
2644 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2645 | else |
---|
2646 | ac_prog_rejected=no |
---|
2647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2648 | for as_dir in $PATH |
---|
2649 | do |
---|
2650 | IFS=$as_save_IFS |
---|
2651 | test -z "$as_dir" && as_dir=. |
---|
2652 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2654 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2655 | ac_prog_rejected=yes |
---|
2656 | continue |
---|
2657 | fi |
---|
2658 | ac_cv_prog_CC="cc" |
---|
2659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2660 | break 2 |
---|
2661 | fi |
---|
2662 | done |
---|
2663 | done |
---|
2664 | |
---|
2665 | if test $ac_prog_rejected = yes; then |
---|
2666 | # We found a bogon in the path, so make sure we never use it. |
---|
2667 | set dummy $ac_cv_prog_CC |
---|
2668 | shift |
---|
2669 | if test $# != 0; then |
---|
2670 | # We chose a different compiler from the bogus one. |
---|
2671 | # However, it has the same basename, so the bogon will be chosen |
---|
2672 | # first if we set CC to just the basename; use the full file name. |
---|
2673 | shift |
---|
2674 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2675 | fi |
---|
2676 | fi |
---|
2677 | fi |
---|
2678 | fi |
---|
2679 | CC=$ac_cv_prog_CC |
---|
2680 | if test -n "$CC"; then |
---|
2681 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2682 | echo "${ECHO_T}$CC" >&6 |
---|
2683 | else |
---|
2684 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2685 | echo "${ECHO_T}no" >&6 |
---|
2686 | fi |
---|
2687 | |
---|
2688 | fi |
---|
2689 | if test -z "$CC"; then |
---|
2690 | if test -n "$ac_tool_prefix"; then |
---|
2691 | for ac_prog in cl |
---|
2692 | do |
---|
2693 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2694 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2697 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2699 | else |
---|
2700 | if test -n "$CC"; then |
---|
2701 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2702 | else |
---|
2703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2704 | for as_dir in $PATH |
---|
2705 | do |
---|
2706 | IFS=$as_save_IFS |
---|
2707 | test -z "$as_dir" && as_dir=. |
---|
2708 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2709 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2710 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2711 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2712 | break 2 |
---|
2713 | fi |
---|
2714 | done |
---|
2715 | done |
---|
2716 | |
---|
2717 | fi |
---|
2718 | fi |
---|
2719 | CC=$ac_cv_prog_CC |
---|
2720 | if test -n "$CC"; then |
---|
2721 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2722 | echo "${ECHO_T}$CC" >&6 |
---|
2723 | else |
---|
2724 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2725 | echo "${ECHO_T}no" >&6 |
---|
2726 | fi |
---|
2727 | |
---|
2728 | test -n "$CC" && break |
---|
2729 | done |
---|
2730 | fi |
---|
2731 | if test -z "$CC"; then |
---|
2732 | ac_ct_CC=$CC |
---|
2733 | for ac_prog in cl |
---|
2734 | do |
---|
2735 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2736 | set dummy $ac_prog; ac_word=$2 |
---|
2737 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2739 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2741 | else |
---|
2742 | if test -n "$ac_ct_CC"; then |
---|
2743 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2744 | else |
---|
2745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2746 | for as_dir in $PATH |
---|
2747 | do |
---|
2748 | IFS=$as_save_IFS |
---|
2749 | test -z "$as_dir" && as_dir=. |
---|
2750 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2751 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2752 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2753 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2754 | break 2 |
---|
2755 | fi |
---|
2756 | done |
---|
2757 | done |
---|
2758 | |
---|
2759 | fi |
---|
2760 | fi |
---|
2761 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2762 | if test -n "$ac_ct_CC"; then |
---|
2763 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2764 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2765 | else |
---|
2766 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2767 | echo "${ECHO_T}no" >&6 |
---|
2768 | fi |
---|
2769 | |
---|
2770 | test -n "$ac_ct_CC" && break |
---|
2771 | done |
---|
2772 | |
---|
2773 | CC=$ac_ct_CC |
---|
2774 | fi |
---|
2775 | |
---|
2776 | fi |
---|
2777 | |
---|
2778 | |
---|
2779 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2780 | See \`config.log' for more details." >&5 |
---|
2781 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2782 | See \`config.log' for more details." >&2;} |
---|
2783 | { (exit 1); exit 1; }; } |
---|
2784 | |
---|
2785 | # Provide some information about the compiler. |
---|
2786 | echo "$as_me:$LINENO:" \ |
---|
2787 | "checking for C compiler version" >&5 |
---|
2788 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2789 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2790 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2791 | ac_status=$? |
---|
2792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2793 | (exit $ac_status); } |
---|
2794 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2795 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2796 | ac_status=$? |
---|
2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2798 | (exit $ac_status); } |
---|
2799 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2800 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2801 | ac_status=$? |
---|
2802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2803 | (exit $ac_status); } |
---|
2804 | |
---|
2805 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2806 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2807 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2809 | else |
---|
2810 | cat >conftest.$ac_ext <<_ACEOF |
---|
2811 | /* confdefs.h. */ |
---|
2812 | _ACEOF |
---|
2813 | cat confdefs.h >>conftest.$ac_ext |
---|
2814 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2815 | /* end confdefs.h. */ |
---|
2816 | |
---|
2817 | int |
---|
2818 | main () |
---|
2819 | { |
---|
2820 | #ifndef __GNUC__ |
---|
2821 | choke me |
---|
2822 | #endif |
---|
2823 | |
---|
2824 | ; |
---|
2825 | return 0; |
---|
2826 | } |
---|
2827 | _ACEOF |
---|
2828 | rm -f conftest.$ac_objext |
---|
2829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2830 | (eval $ac_compile) 2>conftest.er1 |
---|
2831 | ac_status=$? |
---|
2832 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2833 | rm -f conftest.er1 |
---|
2834 | cat conftest.err >&5 |
---|
2835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2836 | (exit $ac_status); } && |
---|
2837 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2838 | || test ! -s conftest.err' |
---|
2839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2840 | (eval $ac_try) 2>&5 |
---|
2841 | ac_status=$? |
---|
2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2843 | (exit $ac_status); }; } && |
---|
2844 | { ac_try='test -s conftest.$ac_objext' |
---|
2845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2846 | (eval $ac_try) 2>&5 |
---|
2847 | ac_status=$? |
---|
2848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2849 | (exit $ac_status); }; }; then |
---|
2850 | ac_compiler_gnu=yes |
---|
2851 | else |
---|
2852 | echo "$as_me: failed program was:" >&5 |
---|
2853 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2854 | |
---|
2855 | ac_compiler_gnu=no |
---|
2856 | fi |
---|
2857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2858 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2859 | |
---|
2860 | fi |
---|
2861 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2862 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2863 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2864 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2865 | ac_save_CFLAGS=$CFLAGS |
---|
2866 | CFLAGS="-g" |
---|
2867 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2868 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2869 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2871 | else |
---|
2872 | cat >conftest.$ac_ext <<_ACEOF |
---|
2873 | /* confdefs.h. */ |
---|
2874 | _ACEOF |
---|
2875 | cat confdefs.h >>conftest.$ac_ext |
---|
2876 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2877 | /* end confdefs.h. */ |
---|
2878 | |
---|
2879 | int |
---|
2880 | main () |
---|
2881 | { |
---|
2882 | |
---|
2883 | ; |
---|
2884 | return 0; |
---|
2885 | } |
---|
2886 | _ACEOF |
---|
2887 | rm -f conftest.$ac_objext |
---|
2888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2889 | (eval $ac_compile) 2>conftest.er1 |
---|
2890 | ac_status=$? |
---|
2891 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2892 | rm -f conftest.er1 |
---|
2893 | cat conftest.err >&5 |
---|
2894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2895 | (exit $ac_status); } && |
---|
2896 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2897 | || test ! -s conftest.err' |
---|
2898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2899 | (eval $ac_try) 2>&5 |
---|
2900 | ac_status=$? |
---|
2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2902 | (exit $ac_status); }; } && |
---|
2903 | { ac_try='test -s conftest.$ac_objext' |
---|
2904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2905 | (eval $ac_try) 2>&5 |
---|
2906 | ac_status=$? |
---|
2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2908 | (exit $ac_status); }; }; then |
---|
2909 | ac_cv_prog_cc_g=yes |
---|
2910 | else |
---|
2911 | echo "$as_me: failed program was:" >&5 |
---|
2912 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2913 | |
---|
2914 | ac_cv_prog_cc_g=no |
---|
2915 | fi |
---|
2916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2917 | fi |
---|
2918 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2919 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2920 | if test "$ac_test_CFLAGS" = set; then |
---|
2921 | CFLAGS=$ac_save_CFLAGS |
---|
2922 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2923 | if test "$GCC" = yes; then |
---|
2924 | CFLAGS="-g -O2" |
---|
2925 | else |
---|
2926 | CFLAGS="-g" |
---|
2927 | fi |
---|
2928 | else |
---|
2929 | if test "$GCC" = yes; then |
---|
2930 | CFLAGS="-O2" |
---|
2931 | else |
---|
2932 | CFLAGS= |
---|
2933 | fi |
---|
2934 | fi |
---|
2935 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2936 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2937 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2939 | else |
---|
2940 | ac_cv_prog_cc_stdc=no |
---|
2941 | ac_save_CC=$CC |
---|
2942 | cat >conftest.$ac_ext <<_ACEOF |
---|
2943 | /* confdefs.h. */ |
---|
2944 | _ACEOF |
---|
2945 | cat confdefs.h >>conftest.$ac_ext |
---|
2946 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2947 | /* end confdefs.h. */ |
---|
2948 | #include <stdarg.h> |
---|
2949 | #include <stdio.h> |
---|
2950 | #include <sys/types.h> |
---|
2951 | #include <sys/stat.h> |
---|
2952 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2953 | struct buf { int x; }; |
---|
2954 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2955 | static char *e (p, i) |
---|
2956 | char **p; |
---|
2957 | int i; |
---|
2958 | { |
---|
2959 | return p[i]; |
---|
2960 | } |
---|
2961 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2962 | { |
---|
2963 | char *s; |
---|
2964 | va_list v; |
---|
2965 | va_start (v,p); |
---|
2966 | s = g (p, va_arg (v,int)); |
---|
2967 | va_end (v); |
---|
2968 | return s; |
---|
2969 | } |
---|
2970 | |
---|
2971 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2972 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2973 | These don't provoke an error unfortunately, instead are silently treated |
---|
2974 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2975 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2976 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2977 | that's true only with -std1. */ |
---|
2978 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2979 | |
---|
2980 | int test (int i, double x); |
---|
2981 | struct s1 {int (*f) (int a);}; |
---|
2982 | struct s2 {int (*f) (double a);}; |
---|
2983 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2984 | int argc; |
---|
2985 | char **argv; |
---|
2986 | int |
---|
2987 | main () |
---|
2988 | { |
---|
2989 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2990 | ; |
---|
2991 | return 0; |
---|
2992 | } |
---|
2993 | _ACEOF |
---|
2994 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2995 | # breaks some systems' header files. |
---|
2996 | # AIX -qlanglvl=ansi |
---|
2997 | # Ultrix and OSF/1 -std1 |
---|
2998 | # HP-UX 10.20 and later -Ae |
---|
2999 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3000 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3001 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3002 | do |
---|
3003 | CC="$ac_save_CC $ac_arg" |
---|
3004 | rm -f conftest.$ac_objext |
---|
3005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3006 | (eval $ac_compile) 2>conftest.er1 |
---|
3007 | ac_status=$? |
---|
3008 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3009 | rm -f conftest.er1 |
---|
3010 | cat conftest.err >&5 |
---|
3011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3012 | (exit $ac_status); } && |
---|
3013 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3014 | || test ! -s conftest.err' |
---|
3015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3016 | (eval $ac_try) 2>&5 |
---|
3017 | ac_status=$? |
---|
3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3019 | (exit $ac_status); }; } && |
---|
3020 | { ac_try='test -s conftest.$ac_objext' |
---|
3021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3022 | (eval $ac_try) 2>&5 |
---|
3023 | ac_status=$? |
---|
3024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3025 | (exit $ac_status); }; }; then |
---|
3026 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3027 | break |
---|
3028 | else |
---|
3029 | echo "$as_me: failed program was:" >&5 |
---|
3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3031 | |
---|
3032 | fi |
---|
3033 | rm -f conftest.err conftest.$ac_objext |
---|
3034 | done |
---|
3035 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3036 | CC=$ac_save_CC |
---|
3037 | |
---|
3038 | fi |
---|
3039 | |
---|
3040 | case "x$ac_cv_prog_cc_stdc" in |
---|
3041 | x|xno) |
---|
3042 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3043 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3044 | *) |
---|
3045 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3046 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3047 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3048 | esac |
---|
3049 | |
---|
3050 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3051 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3052 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3053 | # the declaration of exit, since it's the most demanding environment. |
---|
3054 | cat >conftest.$ac_ext <<_ACEOF |
---|
3055 | #ifndef __cplusplus |
---|
3056 | choke me |
---|
3057 | #endif |
---|
3058 | _ACEOF |
---|
3059 | rm -f conftest.$ac_objext |
---|
3060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3061 | (eval $ac_compile) 2>conftest.er1 |
---|
3062 | ac_status=$? |
---|
3063 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3064 | rm -f conftest.er1 |
---|
3065 | cat conftest.err >&5 |
---|
3066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3067 | (exit $ac_status); } && |
---|
3068 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3069 | || test ! -s conftest.err' |
---|
3070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3071 | (eval $ac_try) 2>&5 |
---|
3072 | ac_status=$? |
---|
3073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3074 | (exit $ac_status); }; } && |
---|
3075 | { ac_try='test -s conftest.$ac_objext' |
---|
3076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3077 | (eval $ac_try) 2>&5 |
---|
3078 | ac_status=$? |
---|
3079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3080 | (exit $ac_status); }; }; then |
---|
3081 | for ac_declaration in \ |
---|
3082 | '' \ |
---|
3083 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3084 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3085 | 'extern "C" void exit (int) throw ();' \ |
---|
3086 | 'extern "C" void exit (int);' \ |
---|
3087 | 'void exit (int);' |
---|
3088 | do |
---|
3089 | cat >conftest.$ac_ext <<_ACEOF |
---|
3090 | /* confdefs.h. */ |
---|
3091 | _ACEOF |
---|
3092 | cat confdefs.h >>conftest.$ac_ext |
---|
3093 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3094 | /* end confdefs.h. */ |
---|
3095 | $ac_declaration |
---|
3096 | #include <stdlib.h> |
---|
3097 | int |
---|
3098 | main () |
---|
3099 | { |
---|
3100 | exit (42); |
---|
3101 | ; |
---|
3102 | return 0; |
---|
3103 | } |
---|
3104 | _ACEOF |
---|
3105 | rm -f conftest.$ac_objext |
---|
3106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3107 | (eval $ac_compile) 2>conftest.er1 |
---|
3108 | ac_status=$? |
---|
3109 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3110 | rm -f conftest.er1 |
---|
3111 | cat conftest.err >&5 |
---|
3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3113 | (exit $ac_status); } && |
---|
3114 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3115 | || test ! -s conftest.err' |
---|
3116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3117 | (eval $ac_try) 2>&5 |
---|
3118 | ac_status=$? |
---|
3119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3120 | (exit $ac_status); }; } && |
---|
3121 | { ac_try='test -s conftest.$ac_objext' |
---|
3122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3123 | (eval $ac_try) 2>&5 |
---|
3124 | ac_status=$? |
---|
3125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3126 | (exit $ac_status); }; }; then |
---|
3127 | : |
---|
3128 | else |
---|
3129 | echo "$as_me: failed program was:" >&5 |
---|
3130 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3131 | |
---|
3132 | continue |
---|
3133 | fi |
---|
3134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3135 | cat >conftest.$ac_ext <<_ACEOF |
---|
3136 | /* confdefs.h. */ |
---|
3137 | _ACEOF |
---|
3138 | cat confdefs.h >>conftest.$ac_ext |
---|
3139 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3140 | /* end confdefs.h. */ |
---|
3141 | $ac_declaration |
---|
3142 | int |
---|
3143 | main () |
---|
3144 | { |
---|
3145 | exit (42); |
---|
3146 | ; |
---|
3147 | return 0; |
---|
3148 | } |
---|
3149 | _ACEOF |
---|
3150 | rm -f conftest.$ac_objext |
---|
3151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3152 | (eval $ac_compile) 2>conftest.er1 |
---|
3153 | ac_status=$? |
---|
3154 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3155 | rm -f conftest.er1 |
---|
3156 | cat conftest.err >&5 |
---|
3157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3158 | (exit $ac_status); } && |
---|
3159 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3160 | || test ! -s conftest.err' |
---|
3161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3162 | (eval $ac_try) 2>&5 |
---|
3163 | ac_status=$? |
---|
3164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3165 | (exit $ac_status); }; } && |
---|
3166 | { ac_try='test -s conftest.$ac_objext' |
---|
3167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3168 | (eval $ac_try) 2>&5 |
---|
3169 | ac_status=$? |
---|
3170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3171 | (exit $ac_status); }; }; then |
---|
3172 | break |
---|
3173 | else |
---|
3174 | echo "$as_me: failed program was:" >&5 |
---|
3175 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3176 | |
---|
3177 | fi |
---|
3178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3179 | done |
---|
3180 | rm -f conftest* |
---|
3181 | if test -n "$ac_declaration"; then |
---|
3182 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3183 | echo $ac_declaration >>confdefs.h |
---|
3184 | echo '#endif' >>confdefs.h |
---|
3185 | fi |
---|
3186 | |
---|
3187 | else |
---|
3188 | echo "$as_me: failed program was:" >&5 |
---|
3189 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3190 | |
---|
3191 | fi |
---|
3192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3193 | ac_ext=c |
---|
3194 | ac_cpp='$CPP $CPPFLAGS' |
---|
3195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3198 | |
---|
3199 | depcc="$CC" am_compiler_list= |
---|
3200 | |
---|
3201 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3202 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3203 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3205 | else |
---|
3206 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3207 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3208 | # making bogus files that we don't know about and never remove. For |
---|
3209 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3210 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3211 | # in D'. |
---|
3212 | mkdir conftest.dir |
---|
3213 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3214 | # using a relative directory. |
---|
3215 | cp "$am_depcomp" conftest.dir |
---|
3216 | cd conftest.dir |
---|
3217 | # We will build objects and dependencies in a subdirectory because |
---|
3218 | # it helps to detect inapplicable dependency modes. For instance |
---|
3219 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3220 | # side effect of compilation, but ICC will put the dependencies in |
---|
3221 | # the current directory while Tru64 will put them in the object |
---|
3222 | # directory. |
---|
3223 | mkdir sub |
---|
3224 | |
---|
3225 | am_cv_CC_dependencies_compiler_type=none |
---|
3226 | if test "$am_compiler_list" = ""; then |
---|
3227 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3228 | fi |
---|
3229 | for depmode in $am_compiler_list; do |
---|
3230 | # Setup a source with many dependencies, because some compilers |
---|
3231 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3232 | # we should not choose a depcomp mode which is confused by this. |
---|
3233 | # |
---|
3234 | # We need to recreate these files for each test, as the compiler may |
---|
3235 | # overwrite some of them when testing with obscure command lines. |
---|
3236 | # This happens at least with the AIX C compiler. |
---|
3237 | : > sub/conftest.c |
---|
3238 | for i in 1 2 3 4 5 6; do |
---|
3239 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3240 | : > sub/conftst$i.h |
---|
3241 | done |
---|
3242 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3243 | |
---|
3244 | case $depmode in |
---|
3245 | nosideeffect) |
---|
3246 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3247 | # only be used when explicitly requested |
---|
3248 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3249 | continue |
---|
3250 | else |
---|
3251 | break |
---|
3252 | fi |
---|
3253 | ;; |
---|
3254 | none) break ;; |
---|
3255 | esac |
---|
3256 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3257 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3258 | # handle `-M -o', and we need to detect this. |
---|
3259 | if depmode=$depmode \ |
---|
3260 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3261 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3262 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3263 | >/dev/null 2>conftest.err && |
---|
3264 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3265 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3266 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3267 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3268 | # (even with -Werror). So we grep stderr for any message |
---|
3269 | # that says an option was ignored. |
---|
3270 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
3271 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3272 | break |
---|
3273 | fi |
---|
3274 | fi |
---|
3275 | done |
---|
3276 | |
---|
3277 | cd .. |
---|
3278 | rm -rf conftest.dir |
---|
3279 | else |
---|
3280 | am_cv_CC_dependencies_compiler_type=none |
---|
3281 | fi |
---|
3282 | |
---|
3283 | fi |
---|
3284 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3285 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3286 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3287 | |
---|
3288 | |
---|
3289 | |
---|
3290 | if |
---|
3291 | test "x$enable_dependency_tracking" != xno \ |
---|
3292 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3293 | am__fastdepCC_TRUE= |
---|
3294 | am__fastdepCC_FALSE='#' |
---|
3295 | else |
---|
3296 | am__fastdepCC_TRUE='#' |
---|
3297 | am__fastdepCC_FALSE= |
---|
3298 | fi |
---|
3299 | |
---|
3300 | |
---|
3301 | |
---|
3302 | # Checks for libraries. |
---|
3303 | |
---|
3304 | # cheking for libGL |
---|
3305 | |
---|
3306 | ac_ext=c |
---|
3307 | ac_cpp='$CPP $CPPFLAGS' |
---|
3308 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3309 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3310 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3311 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3312 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3313 | # On Suns, sometimes $CPP names a directory. |
---|
3314 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3315 | CPP= |
---|
3316 | fi |
---|
3317 | if test -z "$CPP"; then |
---|
3318 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3320 | else |
---|
3321 | # Double quotes because CPP needs to be expanded |
---|
3322 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3323 | do |
---|
3324 | ac_preproc_ok=false |
---|
3325 | for ac_c_preproc_warn_flag in '' yes |
---|
3326 | do |
---|
3327 | # Use a header file that comes with gcc, so configuring glibc |
---|
3328 | # with a fresh cross-compiler works. |
---|
3329 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3330 | # <limits.h> exists even on freestanding compilers. |
---|
3331 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3332 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3333 | cat >conftest.$ac_ext <<_ACEOF |
---|
3334 | /* confdefs.h. */ |
---|
3335 | _ACEOF |
---|
3336 | cat confdefs.h >>conftest.$ac_ext |
---|
3337 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3338 | /* end confdefs.h. */ |
---|
3339 | #ifdef __STDC__ |
---|
3340 | # include <limits.h> |
---|
3341 | #else |
---|
3342 | # include <assert.h> |
---|
3343 | #endif |
---|
3344 | Syntax error |
---|
3345 | _ACEOF |
---|
3346 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3347 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3348 | ac_status=$? |
---|
3349 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3350 | rm -f conftest.er1 |
---|
3351 | cat conftest.err >&5 |
---|
3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3353 | (exit $ac_status); } >/dev/null; then |
---|
3354 | if test -s conftest.err; then |
---|
3355 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3356 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3357 | else |
---|
3358 | ac_cpp_err= |
---|
3359 | fi |
---|
3360 | else |
---|
3361 | ac_cpp_err=yes |
---|
3362 | fi |
---|
3363 | if test -z "$ac_cpp_err"; then |
---|
3364 | : |
---|
3365 | else |
---|
3366 | echo "$as_me: failed program was:" >&5 |
---|
3367 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3368 | |
---|
3369 | # Broken: fails on valid input. |
---|
3370 | continue |
---|
3371 | fi |
---|
3372 | rm -f conftest.err conftest.$ac_ext |
---|
3373 | |
---|
3374 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3375 | # can be detected and how. |
---|
3376 | cat >conftest.$ac_ext <<_ACEOF |
---|
3377 | /* confdefs.h. */ |
---|
3378 | _ACEOF |
---|
3379 | cat confdefs.h >>conftest.$ac_ext |
---|
3380 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3381 | /* end confdefs.h. */ |
---|
3382 | #include <ac_nonexistent.h> |
---|
3383 | _ACEOF |
---|
3384 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3385 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3386 | ac_status=$? |
---|
3387 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3388 | rm -f conftest.er1 |
---|
3389 | cat conftest.err >&5 |
---|
3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3391 | (exit $ac_status); } >/dev/null; then |
---|
3392 | if test -s conftest.err; then |
---|
3393 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3394 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3395 | else |
---|
3396 | ac_cpp_err= |
---|
3397 | fi |
---|
3398 | else |
---|
3399 | ac_cpp_err=yes |
---|
3400 | fi |
---|
3401 | if test -z "$ac_cpp_err"; then |
---|
3402 | # Broken: success on invalid input. |
---|
3403 | continue |
---|
3404 | else |
---|
3405 | echo "$as_me: failed program was:" >&5 |
---|
3406 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3407 | |
---|
3408 | # Passes both tests. |
---|
3409 | ac_preproc_ok=: |
---|
3410 | break |
---|
3411 | fi |
---|
3412 | rm -f conftest.err conftest.$ac_ext |
---|
3413 | |
---|
3414 | done |
---|
3415 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3416 | rm -f conftest.err conftest.$ac_ext |
---|
3417 | if $ac_preproc_ok; then |
---|
3418 | break |
---|
3419 | fi |
---|
3420 | |
---|
3421 | done |
---|
3422 | ac_cv_prog_CPP=$CPP |
---|
3423 | |
---|
3424 | fi |
---|
3425 | CPP=$ac_cv_prog_CPP |
---|
3426 | else |
---|
3427 | ac_cv_prog_CPP=$CPP |
---|
3428 | fi |
---|
3429 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3430 | echo "${ECHO_T}$CPP" >&6 |
---|
3431 | ac_preproc_ok=false |
---|
3432 | for ac_c_preproc_warn_flag in '' yes |
---|
3433 | do |
---|
3434 | # Use a header file that comes with gcc, so configuring glibc |
---|
3435 | # with a fresh cross-compiler works. |
---|
3436 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3437 | # <limits.h> exists even on freestanding compilers. |
---|
3438 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3439 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3440 | cat >conftest.$ac_ext <<_ACEOF |
---|
3441 | /* confdefs.h. */ |
---|
3442 | _ACEOF |
---|
3443 | cat confdefs.h >>conftest.$ac_ext |
---|
3444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3445 | /* end confdefs.h. */ |
---|
3446 | #ifdef __STDC__ |
---|
3447 | # include <limits.h> |
---|
3448 | #else |
---|
3449 | # include <assert.h> |
---|
3450 | #endif |
---|
3451 | Syntax error |
---|
3452 | _ACEOF |
---|
3453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3455 | ac_status=$? |
---|
3456 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3457 | rm -f conftest.er1 |
---|
3458 | cat conftest.err >&5 |
---|
3459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3460 | (exit $ac_status); } >/dev/null; then |
---|
3461 | if test -s conftest.err; then |
---|
3462 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3463 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3464 | else |
---|
3465 | ac_cpp_err= |
---|
3466 | fi |
---|
3467 | else |
---|
3468 | ac_cpp_err=yes |
---|
3469 | fi |
---|
3470 | if test -z "$ac_cpp_err"; then |
---|
3471 | : |
---|
3472 | else |
---|
3473 | echo "$as_me: failed program was:" >&5 |
---|
3474 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3475 | |
---|
3476 | # Broken: fails on valid input. |
---|
3477 | continue |
---|
3478 | fi |
---|
3479 | rm -f conftest.err conftest.$ac_ext |
---|
3480 | |
---|
3481 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3482 | # can be detected and how. |
---|
3483 | cat >conftest.$ac_ext <<_ACEOF |
---|
3484 | /* confdefs.h. */ |
---|
3485 | _ACEOF |
---|
3486 | cat confdefs.h >>conftest.$ac_ext |
---|
3487 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3488 | /* end confdefs.h. */ |
---|
3489 | #include <ac_nonexistent.h> |
---|
3490 | _ACEOF |
---|
3491 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3492 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3493 | ac_status=$? |
---|
3494 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3495 | rm -f conftest.er1 |
---|
3496 | cat conftest.err >&5 |
---|
3497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3498 | (exit $ac_status); } >/dev/null; then |
---|
3499 | if test -s conftest.err; then |
---|
3500 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3501 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3502 | else |
---|
3503 | ac_cpp_err= |
---|
3504 | fi |
---|
3505 | else |
---|
3506 | ac_cpp_err=yes |
---|
3507 | fi |
---|
3508 | if test -z "$ac_cpp_err"; then |
---|
3509 | # Broken: success on invalid input. |
---|
3510 | continue |
---|
3511 | else |
---|
3512 | echo "$as_me: failed program was:" >&5 |
---|
3513 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3514 | |
---|
3515 | # Passes both tests. |
---|
3516 | ac_preproc_ok=: |
---|
3517 | break |
---|
3518 | fi |
---|
3519 | rm -f conftest.err conftest.$ac_ext |
---|
3520 | |
---|
3521 | done |
---|
3522 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3523 | rm -f conftest.err conftest.$ac_ext |
---|
3524 | if $ac_preproc_ok; then |
---|
3525 | : |
---|
3526 | else |
---|
3527 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3528 | See \`config.log' for more details." >&5 |
---|
3529 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3530 | See \`config.log' for more details." >&2;} |
---|
3531 | { (exit 1); exit 1; }; } |
---|
3532 | fi |
---|
3533 | |
---|
3534 | ac_ext=c |
---|
3535 | ac_cpp='$CPP $CPPFLAGS' |
---|
3536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3539 | |
---|
3540 | |
---|
3541 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3542 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3543 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3545 | else |
---|
3546 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3547 | then ac_cv_prog_egrep='grep -E' |
---|
3548 | else ac_cv_prog_egrep='egrep' |
---|
3549 | fi |
---|
3550 | fi |
---|
3551 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3552 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3553 | EGREP=$ac_cv_prog_egrep |
---|
3554 | |
---|
3555 | |
---|
3556 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3557 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3558 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3560 | else |
---|
3561 | cat >conftest.$ac_ext <<_ACEOF |
---|
3562 | /* confdefs.h. */ |
---|
3563 | _ACEOF |
---|
3564 | cat confdefs.h >>conftest.$ac_ext |
---|
3565 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3566 | /* end confdefs.h. */ |
---|
3567 | #include <stdlib.h> |
---|
3568 | #include <stdarg.h> |
---|
3569 | #include <string.h> |
---|
3570 | #include <float.h> |
---|
3571 | |
---|
3572 | int |
---|
3573 | main () |
---|
3574 | { |
---|
3575 | |
---|
3576 | ; |
---|
3577 | return 0; |
---|
3578 | } |
---|
3579 | _ACEOF |
---|
3580 | rm -f conftest.$ac_objext |
---|
3581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3582 | (eval $ac_compile) 2>conftest.er1 |
---|
3583 | ac_status=$? |
---|
3584 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3585 | rm -f conftest.er1 |
---|
3586 | cat conftest.err >&5 |
---|
3587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3588 | (exit $ac_status); } && |
---|
3589 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3590 | || test ! -s conftest.err' |
---|
3591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3592 | (eval $ac_try) 2>&5 |
---|
3593 | ac_status=$? |
---|
3594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3595 | (exit $ac_status); }; } && |
---|
3596 | { ac_try='test -s conftest.$ac_objext' |
---|
3597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3598 | (eval $ac_try) 2>&5 |
---|
3599 | ac_status=$? |
---|
3600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3601 | (exit $ac_status); }; }; then |
---|
3602 | ac_cv_header_stdc=yes |
---|
3603 | else |
---|
3604 | echo "$as_me: failed program was:" >&5 |
---|
3605 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3606 | |
---|
3607 | ac_cv_header_stdc=no |
---|
3608 | fi |
---|
3609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3610 | |
---|
3611 | if test $ac_cv_header_stdc = yes; then |
---|
3612 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3613 | cat >conftest.$ac_ext <<_ACEOF |
---|
3614 | /* confdefs.h. */ |
---|
3615 | _ACEOF |
---|
3616 | cat confdefs.h >>conftest.$ac_ext |
---|
3617 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3618 | /* end confdefs.h. */ |
---|
3619 | #include <string.h> |
---|
3620 | |
---|
3621 | _ACEOF |
---|
3622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3623 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3624 | : |
---|
3625 | else |
---|
3626 | ac_cv_header_stdc=no |
---|
3627 | fi |
---|
3628 | rm -f conftest* |
---|
3629 | |
---|
3630 | fi |
---|
3631 | |
---|
3632 | if test $ac_cv_header_stdc = yes; then |
---|
3633 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3634 | cat >conftest.$ac_ext <<_ACEOF |
---|
3635 | /* confdefs.h. */ |
---|
3636 | _ACEOF |
---|
3637 | cat confdefs.h >>conftest.$ac_ext |
---|
3638 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3639 | /* end confdefs.h. */ |
---|
3640 | #include <stdlib.h> |
---|
3641 | |
---|
3642 | _ACEOF |
---|
3643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3644 | $EGREP "free" >/dev/null 2>&1; then |
---|
3645 | : |
---|
3646 | else |
---|
3647 | ac_cv_header_stdc=no |
---|
3648 | fi |
---|
3649 | rm -f conftest* |
---|
3650 | |
---|
3651 | fi |
---|
3652 | |
---|
3653 | if test $ac_cv_header_stdc = yes; then |
---|
3654 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3655 | if test "$cross_compiling" = yes; then |
---|
3656 | : |
---|
3657 | else |
---|
3658 | cat >conftest.$ac_ext <<_ACEOF |
---|
3659 | /* confdefs.h. */ |
---|
3660 | _ACEOF |
---|
3661 | cat confdefs.h >>conftest.$ac_ext |
---|
3662 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3663 | /* end confdefs.h. */ |
---|
3664 | #include <ctype.h> |
---|
3665 | #if ((' ' & 0x0FF) == 0x020) |
---|
3666 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3667 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3668 | #else |
---|
3669 | # define ISLOWER(c) \ |
---|
3670 | (('a' <= (c) && (c) <= 'i') \ |
---|
3671 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3672 | || ('s' <= (c) && (c) <= 'z')) |
---|
3673 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3674 | #endif |
---|
3675 | |
---|
3676 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3677 | int |
---|
3678 | main () |
---|
3679 | { |
---|
3680 | int i; |
---|
3681 | for (i = 0; i < 256; i++) |
---|
3682 | if (XOR (islower (i), ISLOWER (i)) |
---|
3683 | || toupper (i) != TOUPPER (i)) |
---|
3684 | exit(2); |
---|
3685 | exit (0); |
---|
3686 | } |
---|
3687 | _ACEOF |
---|
3688 | rm -f conftest$ac_exeext |
---|
3689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3690 | (eval $ac_link) 2>&5 |
---|
3691 | ac_status=$? |
---|
3692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3693 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3695 | (eval $ac_try) 2>&5 |
---|
3696 | ac_status=$? |
---|
3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3698 | (exit $ac_status); }; }; then |
---|
3699 | : |
---|
3700 | else |
---|
3701 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3702 | echo "$as_me: failed program was:" >&5 |
---|
3703 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3704 | |
---|
3705 | ( exit $ac_status ) |
---|
3706 | ac_cv_header_stdc=no |
---|
3707 | fi |
---|
3708 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3709 | fi |
---|
3710 | fi |
---|
3711 | fi |
---|
3712 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3713 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3714 | if test $ac_cv_header_stdc = yes; then |
---|
3715 | |
---|
3716 | cat >>confdefs.h <<\_ACEOF |
---|
3717 | #define STDC_HEADERS 1 |
---|
3718 | _ACEOF |
---|
3719 | |
---|
3720 | fi |
---|
3721 | |
---|
3722 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3723 | |
---|
3724 | |
---|
3725 | |
---|
3726 | |
---|
3727 | |
---|
3728 | |
---|
3729 | |
---|
3730 | |
---|
3731 | |
---|
3732 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3733 | inttypes.h stdint.h unistd.h |
---|
3734 | do |
---|
3735 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3736 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3737 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3740 | else |
---|
3741 | cat >conftest.$ac_ext <<_ACEOF |
---|
3742 | /* confdefs.h. */ |
---|
3743 | _ACEOF |
---|
3744 | cat confdefs.h >>conftest.$ac_ext |
---|
3745 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3746 | /* end confdefs.h. */ |
---|
3747 | $ac_includes_default |
---|
3748 | |
---|
3749 | #include <$ac_header> |
---|
3750 | _ACEOF |
---|
3751 | rm -f conftest.$ac_objext |
---|
3752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3753 | (eval $ac_compile) 2>conftest.er1 |
---|
3754 | ac_status=$? |
---|
3755 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3756 | rm -f conftest.er1 |
---|
3757 | cat conftest.err >&5 |
---|
3758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3759 | (exit $ac_status); } && |
---|
3760 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3761 | || test ! -s conftest.err' |
---|
3762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3763 | (eval $ac_try) 2>&5 |
---|
3764 | ac_status=$? |
---|
3765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3766 | (exit $ac_status); }; } && |
---|
3767 | { ac_try='test -s conftest.$ac_objext' |
---|
3768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3769 | (eval $ac_try) 2>&5 |
---|
3770 | ac_status=$? |
---|
3771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3772 | (exit $ac_status); }; }; then |
---|
3773 | eval "$as_ac_Header=yes" |
---|
3774 | else |
---|
3775 | echo "$as_me: failed program was:" >&5 |
---|
3776 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3777 | |
---|
3778 | eval "$as_ac_Header=no" |
---|
3779 | fi |
---|
3780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3781 | fi |
---|
3782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3783 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3784 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3785 | cat >>confdefs.h <<_ACEOF |
---|
3786 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3787 | _ACEOF |
---|
3788 | |
---|
3789 | fi |
---|
3790 | |
---|
3791 | done |
---|
3792 | |
---|
3793 | |
---|
3794 | |
---|
3795 | for ac_header in GL/gl.h |
---|
3796 | do |
---|
3797 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3798 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3799 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3800 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3803 | fi |
---|
3804 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3805 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3806 | else |
---|
3807 | # Is the header compilable? |
---|
3808 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3809 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3810 | cat >conftest.$ac_ext <<_ACEOF |
---|
3811 | /* confdefs.h. */ |
---|
3812 | _ACEOF |
---|
3813 | cat confdefs.h >>conftest.$ac_ext |
---|
3814 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3815 | /* end confdefs.h. */ |
---|
3816 | $ac_includes_default |
---|
3817 | #include <$ac_header> |
---|
3818 | _ACEOF |
---|
3819 | rm -f conftest.$ac_objext |
---|
3820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3821 | (eval $ac_compile) 2>conftest.er1 |
---|
3822 | ac_status=$? |
---|
3823 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3824 | rm -f conftest.er1 |
---|
3825 | cat conftest.err >&5 |
---|
3826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3827 | (exit $ac_status); } && |
---|
3828 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3829 | || test ! -s conftest.err' |
---|
3830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3831 | (eval $ac_try) 2>&5 |
---|
3832 | ac_status=$? |
---|
3833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3834 | (exit $ac_status); }; } && |
---|
3835 | { ac_try='test -s conftest.$ac_objext' |
---|
3836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3837 | (eval $ac_try) 2>&5 |
---|
3838 | ac_status=$? |
---|
3839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3840 | (exit $ac_status); }; }; then |
---|
3841 | ac_header_compiler=yes |
---|
3842 | else |
---|
3843 | echo "$as_me: failed program was:" >&5 |
---|
3844 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3845 | |
---|
3846 | ac_header_compiler=no |
---|
3847 | fi |
---|
3848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3849 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3850 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3851 | |
---|
3852 | # Is the header present? |
---|
3853 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3854 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3855 | cat >conftest.$ac_ext <<_ACEOF |
---|
3856 | /* confdefs.h. */ |
---|
3857 | _ACEOF |
---|
3858 | cat confdefs.h >>conftest.$ac_ext |
---|
3859 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3860 | /* end confdefs.h. */ |
---|
3861 | #include <$ac_header> |
---|
3862 | _ACEOF |
---|
3863 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3864 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3865 | ac_status=$? |
---|
3866 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3867 | rm -f conftest.er1 |
---|
3868 | cat conftest.err >&5 |
---|
3869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3870 | (exit $ac_status); } >/dev/null; then |
---|
3871 | if test -s conftest.err; then |
---|
3872 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3873 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3874 | else |
---|
3875 | ac_cpp_err= |
---|
3876 | fi |
---|
3877 | else |
---|
3878 | ac_cpp_err=yes |
---|
3879 | fi |
---|
3880 | if test -z "$ac_cpp_err"; then |
---|
3881 | ac_header_preproc=yes |
---|
3882 | else |
---|
3883 | echo "$as_me: failed program was:" >&5 |
---|
3884 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3885 | |
---|
3886 | ac_header_preproc=no |
---|
3887 | fi |
---|
3888 | rm -f conftest.err conftest.$ac_ext |
---|
3889 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3890 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3891 | |
---|
3892 | # So? What about this header? |
---|
3893 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
3894 | yes:no: ) |
---|
3895 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3896 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3897 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
3898 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
3899 | ac_header_preproc=yes |
---|
3900 | ;; |
---|
3901 | no:yes:* ) |
---|
3902 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3903 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3904 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3905 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3906 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
3907 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
3908 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
3909 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
3910 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3911 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3912 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
3913 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
3914 | ( |
---|
3915 | cat <<\_ASBOX |
---|
3916 | ## ------------------------------------------- ## |
---|
3917 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
3918 | ## ------------------------------------------- ## |
---|
3919 | _ASBOX |
---|
3920 | ) | |
---|
3921 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3922 | ;; |
---|
3923 | esac |
---|
3924 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3928 | else |
---|
3929 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
3930 | fi |
---|
3931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3932 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3933 | |
---|
3934 | fi |
---|
3935 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3936 | cat >>confdefs.h <<_ACEOF |
---|
3937 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3938 | _ACEOF |
---|
3939 | |
---|
3940 | else |
---|
3941 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
3942 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
3943 | { (exit 1); exit 1; }; } |
---|
3944 | fi |
---|
3945 | |
---|
3946 | done |
---|
3947 | |
---|
3948 | |
---|
3949 | # checking for Unix GL |
---|
3950 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
3951 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
3952 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
3953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3954 | else |
---|
3955 | ac_check_lib_save_LIBS=$LIBS |
---|
3956 | LIBS="-lGL $LIBS" |
---|
3957 | cat >conftest.$ac_ext <<_ACEOF |
---|
3958 | /* confdefs.h. */ |
---|
3959 | _ACEOF |
---|
3960 | cat confdefs.h >>conftest.$ac_ext |
---|
3961 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3962 | /* end confdefs.h. */ |
---|
3963 | |
---|
3964 | |
---|
3965 | int |
---|
3966 | main () |
---|
3967 | { |
---|
3968 | main (); |
---|
3969 | ; |
---|
3970 | return 0; |
---|
3971 | } |
---|
3972 | _ACEOF |
---|
3973 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3975 | (eval $ac_link) 2>conftest.er1 |
---|
3976 | ac_status=$? |
---|
3977 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3978 | rm -f conftest.er1 |
---|
3979 | cat conftest.err >&5 |
---|
3980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3981 | (exit $ac_status); } && |
---|
3982 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3983 | || test ! -s conftest.err' |
---|
3984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3985 | (eval $ac_try) 2>&5 |
---|
3986 | ac_status=$? |
---|
3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3988 | (exit $ac_status); }; } && |
---|
3989 | { ac_try='test -s conftest$ac_exeext' |
---|
3990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3991 | (eval $ac_try) 2>&5 |
---|
3992 | ac_status=$? |
---|
3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3994 | (exit $ac_status); }; }; then |
---|
3995 | ac_cv_lib_GL_main=yes |
---|
3996 | else |
---|
3997 | echo "$as_me: failed program was:" >&5 |
---|
3998 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3999 | |
---|
4000 | ac_cv_lib_GL_main=no |
---|
4001 | fi |
---|
4002 | rm -f conftest.err conftest.$ac_objext \ |
---|
4003 | conftest$ac_exeext conftest.$ac_ext |
---|
4004 | LIBS=$ac_check_lib_save_LIBS |
---|
4005 | fi |
---|
4006 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
4007 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
4008 | if test $ac_cv_lib_GL_main = yes; then |
---|
4009 | FOUND_GL=yes |
---|
4010 | fi |
---|
4011 | |
---|
4012 | if test "$FOUND_GL" = "yes" ; then |
---|
4013 | LIBS="$LIBS -lGL" |
---|
4014 | # checking for Windows openGl library |
---|
4015 | else |
---|
4016 | echo "We did not find the Linux opengl Library. Checking for Windows Library" |
---|
4017 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4018 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4019 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4021 | else |
---|
4022 | ac_check_lib_save_LIBS=$LIBS |
---|
4023 | LIBS="-lopengl32 $LIBS" |
---|
4024 | cat >conftest.$ac_ext <<_ACEOF |
---|
4025 | /* confdefs.h. */ |
---|
4026 | _ACEOF |
---|
4027 | cat confdefs.h >>conftest.$ac_ext |
---|
4028 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4029 | /* end confdefs.h. */ |
---|
4030 | |
---|
4031 | |
---|
4032 | int |
---|
4033 | main () |
---|
4034 | { |
---|
4035 | main (); |
---|
4036 | ; |
---|
4037 | return 0; |
---|
4038 | } |
---|
4039 | _ACEOF |
---|
4040 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4042 | (eval $ac_link) 2>conftest.er1 |
---|
4043 | ac_status=$? |
---|
4044 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4045 | rm -f conftest.er1 |
---|
4046 | cat conftest.err >&5 |
---|
4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4048 | (exit $ac_status); } && |
---|
4049 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4050 | || test ! -s conftest.err' |
---|
4051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4052 | (eval $ac_try) 2>&5 |
---|
4053 | ac_status=$? |
---|
4054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4055 | (exit $ac_status); }; } && |
---|
4056 | { ac_try='test -s conftest$ac_exeext' |
---|
4057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4058 | (eval $ac_try) 2>&5 |
---|
4059 | ac_status=$? |
---|
4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4061 | (exit $ac_status); }; }; then |
---|
4062 | ac_cv_lib_opengl32_main=yes |
---|
4063 | else |
---|
4064 | echo "$as_me: failed program was:" >&5 |
---|
4065 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4066 | |
---|
4067 | ac_cv_lib_opengl32_main=no |
---|
4068 | fi |
---|
4069 | rm -f conftest.err conftest.$ac_objext \ |
---|
4070 | conftest$ac_exeext conftest.$ac_ext |
---|
4071 | LIBS=$ac_check_lib_save_LIBS |
---|
4072 | fi |
---|
4073 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4074 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4075 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4076 | FOUND_opengl32=yes |
---|
4077 | else |
---|
4078 | "gl/gl.h" |
---|
4079 | fi |
---|
4080 | |
---|
4081 | if test "$FOUND_opengl32" = "yes" ; then |
---|
4082 | LIBS="$LIBS -lopengl32" |
---|
4083 | |
---|
4084 | else |
---|
4085 | echo "------------------" |
---|
4086 | echo "opengl not found." |
---|
4087 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4088 | echo "------------------" |
---|
4089 | exit -1 |
---|
4090 | fi |
---|
4091 | fi |
---|
4092 | |
---|
4093 | # cheking for libGLU |
---|
4094 | |
---|
4095 | for ac_header in GL/glu.h |
---|
4096 | do |
---|
4097 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4099 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4103 | fi |
---|
4104 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4105 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4106 | else |
---|
4107 | # Is the header compilable? |
---|
4108 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4109 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4110 | cat >conftest.$ac_ext <<_ACEOF |
---|
4111 | /* confdefs.h. */ |
---|
4112 | _ACEOF |
---|
4113 | cat confdefs.h >>conftest.$ac_ext |
---|
4114 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4115 | /* end confdefs.h. */ |
---|
4116 | $ac_includes_default |
---|
4117 | #include <$ac_header> |
---|
4118 | _ACEOF |
---|
4119 | rm -f conftest.$ac_objext |
---|
4120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4121 | (eval $ac_compile) 2>conftest.er1 |
---|
4122 | ac_status=$? |
---|
4123 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4124 | rm -f conftest.er1 |
---|
4125 | cat conftest.err >&5 |
---|
4126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4127 | (exit $ac_status); } && |
---|
4128 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4129 | || test ! -s conftest.err' |
---|
4130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4131 | (eval $ac_try) 2>&5 |
---|
4132 | ac_status=$? |
---|
4133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4134 | (exit $ac_status); }; } && |
---|
4135 | { ac_try='test -s conftest.$ac_objext' |
---|
4136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4137 | (eval $ac_try) 2>&5 |
---|
4138 | ac_status=$? |
---|
4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4140 | (exit $ac_status); }; }; then |
---|
4141 | ac_header_compiler=yes |
---|
4142 | else |
---|
4143 | echo "$as_me: failed program was:" >&5 |
---|
4144 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4145 | |
---|
4146 | ac_header_compiler=no |
---|
4147 | fi |
---|
4148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4149 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4150 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4151 | |
---|
4152 | # Is the header present? |
---|
4153 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4154 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4155 | cat >conftest.$ac_ext <<_ACEOF |
---|
4156 | /* confdefs.h. */ |
---|
4157 | _ACEOF |
---|
4158 | cat confdefs.h >>conftest.$ac_ext |
---|
4159 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4160 | /* end confdefs.h. */ |
---|
4161 | #include <$ac_header> |
---|
4162 | _ACEOF |
---|
4163 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4164 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4165 | ac_status=$? |
---|
4166 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4167 | rm -f conftest.er1 |
---|
4168 | cat conftest.err >&5 |
---|
4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4170 | (exit $ac_status); } >/dev/null; then |
---|
4171 | if test -s conftest.err; then |
---|
4172 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4173 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4174 | else |
---|
4175 | ac_cpp_err= |
---|
4176 | fi |
---|
4177 | else |
---|
4178 | ac_cpp_err=yes |
---|
4179 | fi |
---|
4180 | if test -z "$ac_cpp_err"; then |
---|
4181 | ac_header_preproc=yes |
---|
4182 | else |
---|
4183 | echo "$as_me: failed program was:" >&5 |
---|
4184 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4185 | |
---|
4186 | ac_header_preproc=no |
---|
4187 | fi |
---|
4188 | rm -f conftest.err conftest.$ac_ext |
---|
4189 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4190 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4191 | |
---|
4192 | # So? What about this header? |
---|
4193 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4194 | yes:no: ) |
---|
4195 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4196 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4197 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4198 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4199 | ac_header_preproc=yes |
---|
4200 | ;; |
---|
4201 | no:yes:* ) |
---|
4202 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4203 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4204 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4205 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4206 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4207 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4208 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4209 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4210 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4211 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4212 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4213 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4214 | ( |
---|
4215 | cat <<\_ASBOX |
---|
4216 | ## ------------------------------------------- ## |
---|
4217 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4218 | ## ------------------------------------------- ## |
---|
4219 | _ASBOX |
---|
4220 | ) | |
---|
4221 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4222 | ;; |
---|
4223 | esac |
---|
4224 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4225 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4228 | else |
---|
4229 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4230 | fi |
---|
4231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4232 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4233 | |
---|
4234 | fi |
---|
4235 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4236 | cat >>confdefs.h <<_ACEOF |
---|
4237 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4238 | _ACEOF |
---|
4239 | |
---|
4240 | else |
---|
4241 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4242 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4243 | { (exit 1); exit 1; }; } |
---|
4244 | fi |
---|
4245 | |
---|
4246 | done |
---|
4247 | |
---|
4248 | |
---|
4249 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
4250 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
4251 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
4252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4253 | else |
---|
4254 | ac_check_lib_save_LIBS=$LIBS |
---|
4255 | LIBS="-lGLU $LIBS" |
---|
4256 | cat >conftest.$ac_ext <<_ACEOF |
---|
4257 | /* confdefs.h. */ |
---|
4258 | _ACEOF |
---|
4259 | cat confdefs.h >>conftest.$ac_ext |
---|
4260 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4261 | /* end confdefs.h. */ |
---|
4262 | |
---|
4263 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4264 | #ifdef __cplusplus |
---|
4265 | extern "C" |
---|
4266 | #endif |
---|
4267 | /* We use char because int might match the return type of a gcc2 |
---|
4268 | builtin and then its argument prototype would still apply. */ |
---|
4269 | char gluProject (); |
---|
4270 | int |
---|
4271 | main () |
---|
4272 | { |
---|
4273 | gluProject (); |
---|
4274 | ; |
---|
4275 | return 0; |
---|
4276 | } |
---|
4277 | _ACEOF |
---|
4278 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4280 | (eval $ac_link) 2>conftest.er1 |
---|
4281 | ac_status=$? |
---|
4282 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4283 | rm -f conftest.er1 |
---|
4284 | cat conftest.err >&5 |
---|
4285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4286 | (exit $ac_status); } && |
---|
4287 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4288 | || test ! -s conftest.err' |
---|
4289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4290 | (eval $ac_try) 2>&5 |
---|
4291 | ac_status=$? |
---|
4292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4293 | (exit $ac_status); }; } && |
---|
4294 | { ac_try='test -s conftest$ac_exeext' |
---|
4295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4296 | (eval $ac_try) 2>&5 |
---|
4297 | ac_status=$? |
---|
4298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4299 | (exit $ac_status); }; }; then |
---|
4300 | ac_cv_lib_GLU_gluProject=yes |
---|
4301 | else |
---|
4302 | echo "$as_me: failed program was:" >&5 |
---|
4303 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4304 | |
---|
4305 | ac_cv_lib_GLU_gluProject=no |
---|
4306 | fi |
---|
4307 | rm -f conftest.err conftest.$ac_objext \ |
---|
4308 | conftest$ac_exeext conftest.$ac_ext |
---|
4309 | LIBS=$ac_check_lib_save_LIBS |
---|
4310 | fi |
---|
4311 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
4312 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
4313 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
4314 | FOUND_GLU=yes |
---|
4315 | fi |
---|
4316 | |
---|
4317 | if test "$FOUND_GLU" = "yes" ; then |
---|
4318 | LIBS="$LIBS -lGLU" |
---|
4319 | # checking for Windows GLU32 library |
---|
4320 | else |
---|
4321 | echo "We did not find the Linux GLU Library. Checking for Windows Library" |
---|
4322 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4323 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4324 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4326 | else |
---|
4327 | ac_check_lib_save_LIBS=$LIBS |
---|
4328 | LIBS="-lglu32 $LIBS" |
---|
4329 | cat >conftest.$ac_ext <<_ACEOF |
---|
4330 | /* confdefs.h. */ |
---|
4331 | _ACEOF |
---|
4332 | cat confdefs.h >>conftest.$ac_ext |
---|
4333 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4334 | /* end confdefs.h. */ |
---|
4335 | |
---|
4336 | |
---|
4337 | int |
---|
4338 | main () |
---|
4339 | { |
---|
4340 | main (); |
---|
4341 | ; |
---|
4342 | return 0; |
---|
4343 | } |
---|
4344 | _ACEOF |
---|
4345 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4347 | (eval $ac_link) 2>conftest.er1 |
---|
4348 | ac_status=$? |
---|
4349 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4350 | rm -f conftest.er1 |
---|
4351 | cat conftest.err >&5 |
---|
4352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4353 | (exit $ac_status); } && |
---|
4354 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4355 | || test ! -s conftest.err' |
---|
4356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4357 | (eval $ac_try) 2>&5 |
---|
4358 | ac_status=$? |
---|
4359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4360 | (exit $ac_status); }; } && |
---|
4361 | { ac_try='test -s conftest$ac_exeext' |
---|
4362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4363 | (eval $ac_try) 2>&5 |
---|
4364 | ac_status=$? |
---|
4365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4366 | (exit $ac_status); }; }; then |
---|
4367 | ac_cv_lib_glu32_main=yes |
---|
4368 | else |
---|
4369 | echo "$as_me: failed program was:" >&5 |
---|
4370 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4371 | |
---|
4372 | ac_cv_lib_glu32_main=no |
---|
4373 | fi |
---|
4374 | rm -f conftest.err conftest.$ac_objext \ |
---|
4375 | conftest$ac_exeext conftest.$ac_ext |
---|
4376 | LIBS=$ac_check_lib_save_LIBS |
---|
4377 | fi |
---|
4378 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4379 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4380 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4381 | FOUND_glu32=yes |
---|
4382 | fi |
---|
4383 | |
---|
4384 | if test "$FOUND_glu32" = "yes" ; then |
---|
4385 | LIBS="$LIBS -lGLU32" |
---|
4386 | |
---|
4387 | else |
---|
4388 | echo "------------------" |
---|
4389 | echo "GLU library not found." |
---|
4390 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4391 | echo "------------------" |
---|
4392 | exit -1 |
---|
4393 | fi |
---|
4394 | fi |
---|
4395 | |
---|
4396 | |
---|
4397 | for ac_header in SDL/SDL_mixer.h |
---|
4398 | do |
---|
4399 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4400 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4401 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4402 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4403 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4405 | fi |
---|
4406 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4407 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4408 | else |
---|
4409 | # Is the header compilable? |
---|
4410 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4411 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4412 | cat >conftest.$ac_ext <<_ACEOF |
---|
4413 | /* confdefs.h. */ |
---|
4414 | _ACEOF |
---|
4415 | cat confdefs.h >>conftest.$ac_ext |
---|
4416 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4417 | /* end confdefs.h. */ |
---|
4418 | $ac_includes_default |
---|
4419 | #include <$ac_header> |
---|
4420 | _ACEOF |
---|
4421 | rm -f conftest.$ac_objext |
---|
4422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4423 | (eval $ac_compile) 2>conftest.er1 |
---|
4424 | ac_status=$? |
---|
4425 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4426 | rm -f conftest.er1 |
---|
4427 | cat conftest.err >&5 |
---|
4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4429 | (exit $ac_status); } && |
---|
4430 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4431 | || test ! -s conftest.err' |
---|
4432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4433 | (eval $ac_try) 2>&5 |
---|
4434 | ac_status=$? |
---|
4435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4436 | (exit $ac_status); }; } && |
---|
4437 | { ac_try='test -s conftest.$ac_objext' |
---|
4438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4439 | (eval $ac_try) 2>&5 |
---|
4440 | ac_status=$? |
---|
4441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4442 | (exit $ac_status); }; }; then |
---|
4443 | ac_header_compiler=yes |
---|
4444 | else |
---|
4445 | echo "$as_me: failed program was:" >&5 |
---|
4446 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4447 | |
---|
4448 | ac_header_compiler=no |
---|
4449 | fi |
---|
4450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4451 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4452 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4453 | |
---|
4454 | # Is the header present? |
---|
4455 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4456 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4457 | cat >conftest.$ac_ext <<_ACEOF |
---|
4458 | /* confdefs.h. */ |
---|
4459 | _ACEOF |
---|
4460 | cat confdefs.h >>conftest.$ac_ext |
---|
4461 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4462 | /* end confdefs.h. */ |
---|
4463 | #include <$ac_header> |
---|
4464 | _ACEOF |
---|
4465 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4466 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4467 | ac_status=$? |
---|
4468 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4469 | rm -f conftest.er1 |
---|
4470 | cat conftest.err >&5 |
---|
4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4472 | (exit $ac_status); } >/dev/null; then |
---|
4473 | if test -s conftest.err; then |
---|
4474 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4475 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4476 | else |
---|
4477 | ac_cpp_err= |
---|
4478 | fi |
---|
4479 | else |
---|
4480 | ac_cpp_err=yes |
---|
4481 | fi |
---|
4482 | if test -z "$ac_cpp_err"; then |
---|
4483 | ac_header_preproc=yes |
---|
4484 | else |
---|
4485 | echo "$as_me: failed program was:" >&5 |
---|
4486 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4487 | |
---|
4488 | ac_header_preproc=no |
---|
4489 | fi |
---|
4490 | rm -f conftest.err conftest.$ac_ext |
---|
4491 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4492 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4493 | |
---|
4494 | # So? What about this header? |
---|
4495 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4496 | yes:no: ) |
---|
4497 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4498 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4500 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4501 | ac_header_preproc=yes |
---|
4502 | ;; |
---|
4503 | no:yes:* ) |
---|
4504 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4505 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4506 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4507 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4508 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4509 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4510 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4511 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4512 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4513 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4514 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4515 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4516 | ( |
---|
4517 | cat <<\_ASBOX |
---|
4518 | ## ------------------------------------------- ## |
---|
4519 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4520 | ## ------------------------------------------- ## |
---|
4521 | _ASBOX |
---|
4522 | ) | |
---|
4523 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4524 | ;; |
---|
4525 | esac |
---|
4526 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4530 | else |
---|
4531 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4532 | fi |
---|
4533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4535 | |
---|
4536 | fi |
---|
4537 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4538 | cat >>confdefs.h <<_ACEOF |
---|
4539 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4540 | _ACEOF |
---|
4541 | |
---|
4542 | else |
---|
4543 | { { echo "$as_me:$LINENO: error: cannot find sdlmixer headers" >&5 |
---|
4544 | echo "$as_me: error: cannot find sdlmixer headers" >&2;} |
---|
4545 | { (exit 1); exit 1; }; } |
---|
4546 | fi |
---|
4547 | |
---|
4548 | done |
---|
4549 | |
---|
4550 | |
---|
4551 | LIBS="$LIBS -lSDL_mixer" |
---|
4552 | |
---|
4553 | # FIXME: Replace `main' with a function in `-lOSMesa': |
---|
4554 | |
---|
4555 | echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 |
---|
4556 | echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 |
---|
4557 | if test "${ac_cv_lib_OSMesa_main+set}" = set; then |
---|
4558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4559 | else |
---|
4560 | ac_check_lib_save_LIBS=$LIBS |
---|
4561 | LIBS="-lOSMesa $LIBS" |
---|
4562 | cat >conftest.$ac_ext <<_ACEOF |
---|
4563 | /* confdefs.h. */ |
---|
4564 | _ACEOF |
---|
4565 | cat confdefs.h >>conftest.$ac_ext |
---|
4566 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4567 | /* end confdefs.h. */ |
---|
4568 | |
---|
4569 | |
---|
4570 | int |
---|
4571 | main () |
---|
4572 | { |
---|
4573 | main (); |
---|
4574 | ; |
---|
4575 | return 0; |
---|
4576 | } |
---|
4577 | _ACEOF |
---|
4578 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4580 | (eval $ac_link) 2>conftest.er1 |
---|
4581 | ac_status=$? |
---|
4582 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4583 | rm -f conftest.er1 |
---|
4584 | cat conftest.err >&5 |
---|
4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4586 | (exit $ac_status); } && |
---|
4587 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4588 | || test ! -s conftest.err' |
---|
4589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4590 | (eval $ac_try) 2>&5 |
---|
4591 | ac_status=$? |
---|
4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4593 | (exit $ac_status); }; } && |
---|
4594 | { ac_try='test -s conftest$ac_exeext' |
---|
4595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4596 | (eval $ac_try) 2>&5 |
---|
4597 | ac_status=$? |
---|
4598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4599 | (exit $ac_status); }; }; then |
---|
4600 | ac_cv_lib_OSMesa_main=yes |
---|
4601 | else |
---|
4602 | echo "$as_me: failed program was:" >&5 |
---|
4603 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4604 | |
---|
4605 | ac_cv_lib_OSMesa_main=no |
---|
4606 | fi |
---|
4607 | rm -f conftest.err conftest.$ac_objext \ |
---|
4608 | conftest$ac_exeext conftest.$ac_ext |
---|
4609 | LIBS=$ac_check_lib_save_LIBS |
---|
4610 | fi |
---|
4611 | echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 |
---|
4612 | echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 |
---|
4613 | if test $ac_cv_lib_OSMesa_main = yes; then |
---|
4614 | cat >>confdefs.h <<_ACEOF |
---|
4615 | #define HAVE_LIBOSMESA 1 |
---|
4616 | _ACEOF |
---|
4617 | |
---|
4618 | LIBS="-lOSMesa $LIBS" |
---|
4619 | |
---|
4620 | fi |
---|
4621 | |
---|
4622 | # FIXME: Replace `main' with a function in `-lX11': |
---|
4623 | |
---|
4624 | echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
---|
4625 | echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
---|
4626 | if test "${ac_cv_lib_X11_main+set}" = set; then |
---|
4627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4628 | else |
---|
4629 | ac_check_lib_save_LIBS=$LIBS |
---|
4630 | LIBS="-lX11 $LIBS" |
---|
4631 | cat >conftest.$ac_ext <<_ACEOF |
---|
4632 | /* confdefs.h. */ |
---|
4633 | _ACEOF |
---|
4634 | cat confdefs.h >>conftest.$ac_ext |
---|
4635 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4636 | /* end confdefs.h. */ |
---|
4637 | |
---|
4638 | |
---|
4639 | int |
---|
4640 | main () |
---|
4641 | { |
---|
4642 | main (); |
---|
4643 | ; |
---|
4644 | return 0; |
---|
4645 | } |
---|
4646 | _ACEOF |
---|
4647 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4649 | (eval $ac_link) 2>conftest.er1 |
---|
4650 | ac_status=$? |
---|
4651 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4652 | rm -f conftest.er1 |
---|
4653 | cat conftest.err >&5 |
---|
4654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4655 | (exit $ac_status); } && |
---|
4656 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4657 | || test ! -s conftest.err' |
---|
4658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4659 | (eval $ac_try) 2>&5 |
---|
4660 | ac_status=$? |
---|
4661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4662 | (exit $ac_status); }; } && |
---|
4663 | { ac_try='test -s conftest$ac_exeext' |
---|
4664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4665 | (eval $ac_try) 2>&5 |
---|
4666 | ac_status=$? |
---|
4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4668 | (exit $ac_status); }; }; then |
---|
4669 | ac_cv_lib_X11_main=yes |
---|
4670 | else |
---|
4671 | echo "$as_me: failed program was:" >&5 |
---|
4672 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4673 | |
---|
4674 | ac_cv_lib_X11_main=no |
---|
4675 | fi |
---|
4676 | rm -f conftest.err conftest.$ac_objext \ |
---|
4677 | conftest$ac_exeext conftest.$ac_ext |
---|
4678 | LIBS=$ac_check_lib_save_LIBS |
---|
4679 | fi |
---|
4680 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 |
---|
4681 | echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 |
---|
4682 | if test $ac_cv_lib_X11_main = yes; then |
---|
4683 | cat >>confdefs.h <<_ACEOF |
---|
4684 | #define HAVE_LIBX11 1 |
---|
4685 | _ACEOF |
---|
4686 | |
---|
4687 | LIBS="-lX11 $LIBS" |
---|
4688 | |
---|
4689 | fi |
---|
4690 | |
---|
4691 | # FIXME: Replace `main' with a function in `-lXt': |
---|
4692 | |
---|
4693 | echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
---|
4694 | echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
---|
4695 | if test "${ac_cv_lib_Xt_main+set}" = set; then |
---|
4696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4697 | else |
---|
4698 | ac_check_lib_save_LIBS=$LIBS |
---|
4699 | LIBS="-lXt $LIBS" |
---|
4700 | cat >conftest.$ac_ext <<_ACEOF |
---|
4701 | /* confdefs.h. */ |
---|
4702 | _ACEOF |
---|
4703 | cat confdefs.h >>conftest.$ac_ext |
---|
4704 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4705 | /* end confdefs.h. */ |
---|
4706 | |
---|
4707 | |
---|
4708 | int |
---|
4709 | main () |
---|
4710 | { |
---|
4711 | main (); |
---|
4712 | ; |
---|
4713 | return 0; |
---|
4714 | } |
---|
4715 | _ACEOF |
---|
4716 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4718 | (eval $ac_link) 2>conftest.er1 |
---|
4719 | ac_status=$? |
---|
4720 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4721 | rm -f conftest.er1 |
---|
4722 | cat conftest.err >&5 |
---|
4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4724 | (exit $ac_status); } && |
---|
4725 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4726 | || test ! -s conftest.err' |
---|
4727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4728 | (eval $ac_try) 2>&5 |
---|
4729 | ac_status=$? |
---|
4730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4731 | (exit $ac_status); }; } && |
---|
4732 | { ac_try='test -s conftest$ac_exeext' |
---|
4733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4734 | (eval $ac_try) 2>&5 |
---|
4735 | ac_status=$? |
---|
4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4737 | (exit $ac_status); }; }; then |
---|
4738 | ac_cv_lib_Xt_main=yes |
---|
4739 | else |
---|
4740 | echo "$as_me: failed program was:" >&5 |
---|
4741 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4742 | |
---|
4743 | ac_cv_lib_Xt_main=no |
---|
4744 | fi |
---|
4745 | rm -f conftest.err conftest.$ac_objext \ |
---|
4746 | conftest$ac_exeext conftest.$ac_ext |
---|
4747 | LIBS=$ac_check_lib_save_LIBS |
---|
4748 | fi |
---|
4749 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 |
---|
4750 | echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 |
---|
4751 | if test $ac_cv_lib_Xt_main = yes; then |
---|
4752 | cat >>confdefs.h <<_ACEOF |
---|
4753 | #define HAVE_LIBXT 1 |
---|
4754 | _ACEOF |
---|
4755 | |
---|
4756 | LIBS="-lXt $LIBS" |
---|
4757 | |
---|
4758 | fi |
---|
4759 | |
---|
4760 | |
---|
4761 | ## mingw CHECK |
---|
4762 | if test $mingw = yes ; then |
---|
4763 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4764 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4765 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4767 | else |
---|
4768 | ac_check_lib_save_LIBS=$LIBS |
---|
4769 | LIBS="-lmingw32 $LIBS" |
---|
4770 | cat >conftest.$ac_ext <<_ACEOF |
---|
4771 | /* confdefs.h. */ |
---|
4772 | _ACEOF |
---|
4773 | cat confdefs.h >>conftest.$ac_ext |
---|
4774 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4775 | /* end confdefs.h. */ |
---|
4776 | |
---|
4777 | |
---|
4778 | int |
---|
4779 | main () |
---|
4780 | { |
---|
4781 | main (); |
---|
4782 | ; |
---|
4783 | return 0; |
---|
4784 | } |
---|
4785 | _ACEOF |
---|
4786 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4788 | (eval $ac_link) 2>conftest.er1 |
---|
4789 | ac_status=$? |
---|
4790 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4791 | rm -f conftest.er1 |
---|
4792 | cat conftest.err >&5 |
---|
4793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4794 | (exit $ac_status); } && |
---|
4795 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4796 | || test ! -s conftest.err' |
---|
4797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4798 | (eval $ac_try) 2>&5 |
---|
4799 | ac_status=$? |
---|
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4801 | (exit $ac_status); }; } && |
---|
4802 | { ac_try='test -s conftest$ac_exeext' |
---|
4803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4804 | (eval $ac_try) 2>&5 |
---|
4805 | ac_status=$? |
---|
4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4807 | (exit $ac_status); }; }; then |
---|
4808 | ac_cv_lib_mingw32_main=yes |
---|
4809 | else |
---|
4810 | echo "$as_me: failed program was:" >&5 |
---|
4811 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4812 | |
---|
4813 | ac_cv_lib_mingw32_main=no |
---|
4814 | fi |
---|
4815 | rm -f conftest.err conftest.$ac_objext \ |
---|
4816 | conftest$ac_exeext conftest.$ac_ext |
---|
4817 | LIBS=$ac_check_lib_save_LIBS |
---|
4818 | fi |
---|
4819 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4820 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4821 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4822 | FOUND_mingw32=yes |
---|
4823 | fi |
---|
4824 | |
---|
4825 | if test $FOUND_mingw32 = "yes"; then |
---|
4826 | LIBS="$LIBS -lmingw32" |
---|
4827 | fi |
---|
4828 | fi |
---|
4829 | |
---|
4830 | ## SDL CHECK |
---|
4831 | |
---|
4832 | #checking for SDL libs |
---|
4833 | |
---|
4834 | for ac_header in SDL/SDL.h |
---|
4835 | do |
---|
4836 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4837 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4838 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4839 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4840 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4842 | fi |
---|
4843 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4844 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4845 | else |
---|
4846 | # Is the header compilable? |
---|
4847 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4848 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4849 | cat >conftest.$ac_ext <<_ACEOF |
---|
4850 | /* confdefs.h. */ |
---|
4851 | _ACEOF |
---|
4852 | cat confdefs.h >>conftest.$ac_ext |
---|
4853 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4854 | /* end confdefs.h. */ |
---|
4855 | $ac_includes_default |
---|
4856 | #include <$ac_header> |
---|
4857 | _ACEOF |
---|
4858 | rm -f conftest.$ac_objext |
---|
4859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4860 | (eval $ac_compile) 2>conftest.er1 |
---|
4861 | ac_status=$? |
---|
4862 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4863 | rm -f conftest.er1 |
---|
4864 | cat conftest.err >&5 |
---|
4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4866 | (exit $ac_status); } && |
---|
4867 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4868 | || test ! -s conftest.err' |
---|
4869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4870 | (eval $ac_try) 2>&5 |
---|
4871 | ac_status=$? |
---|
4872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4873 | (exit $ac_status); }; } && |
---|
4874 | { ac_try='test -s conftest.$ac_objext' |
---|
4875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4876 | (eval $ac_try) 2>&5 |
---|
4877 | ac_status=$? |
---|
4878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4879 | (exit $ac_status); }; }; then |
---|
4880 | ac_header_compiler=yes |
---|
4881 | else |
---|
4882 | echo "$as_me: failed program was:" >&5 |
---|
4883 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4884 | |
---|
4885 | ac_header_compiler=no |
---|
4886 | fi |
---|
4887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4888 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4889 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4890 | |
---|
4891 | # Is the header present? |
---|
4892 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4893 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4894 | cat >conftest.$ac_ext <<_ACEOF |
---|
4895 | /* confdefs.h. */ |
---|
4896 | _ACEOF |
---|
4897 | cat confdefs.h >>conftest.$ac_ext |
---|
4898 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4899 | /* end confdefs.h. */ |
---|
4900 | #include <$ac_header> |
---|
4901 | _ACEOF |
---|
4902 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4903 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4904 | ac_status=$? |
---|
4905 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4906 | rm -f conftest.er1 |
---|
4907 | cat conftest.err >&5 |
---|
4908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4909 | (exit $ac_status); } >/dev/null; then |
---|
4910 | if test -s conftest.err; then |
---|
4911 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4912 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4913 | else |
---|
4914 | ac_cpp_err= |
---|
4915 | fi |
---|
4916 | else |
---|
4917 | ac_cpp_err=yes |
---|
4918 | fi |
---|
4919 | if test -z "$ac_cpp_err"; then |
---|
4920 | ac_header_preproc=yes |
---|
4921 | else |
---|
4922 | echo "$as_me: failed program was:" >&5 |
---|
4923 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4924 | |
---|
4925 | ac_header_preproc=no |
---|
4926 | fi |
---|
4927 | rm -f conftest.err conftest.$ac_ext |
---|
4928 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4929 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4930 | |
---|
4931 | # So? What about this header? |
---|
4932 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4933 | yes:no: ) |
---|
4934 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4935 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4936 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4937 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4938 | ac_header_preproc=yes |
---|
4939 | ;; |
---|
4940 | no:yes:* ) |
---|
4941 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4942 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4943 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4944 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4945 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4946 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4947 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4948 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4950 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4951 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4952 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4953 | ( |
---|
4954 | cat <<\_ASBOX |
---|
4955 | ## ------------------------------------------- ## |
---|
4956 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4957 | ## ------------------------------------------- ## |
---|
4958 | _ASBOX |
---|
4959 | ) | |
---|
4960 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4961 | ;; |
---|
4962 | esac |
---|
4963 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4964 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4965 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4967 | else |
---|
4968 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4969 | fi |
---|
4970 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4971 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4972 | |
---|
4973 | fi |
---|
4974 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4975 | cat >>confdefs.h <<_ACEOF |
---|
4976 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4977 | _ACEOF |
---|
4978 | |
---|
4979 | else |
---|
4980 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4981 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4982 | { (exit 1); exit 1; }; } |
---|
4983 | fi |
---|
4984 | |
---|
4985 | done |
---|
4986 | |
---|
4987 | if test $mingw = no ; then |
---|
4988 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
4989 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
4990 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
4991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4992 | else |
---|
4993 | ac_check_lib_save_LIBS=$LIBS |
---|
4994 | LIBS="-lSDL $LIBS" |
---|
4995 | cat >conftest.$ac_ext <<_ACEOF |
---|
4996 | /* confdefs.h. */ |
---|
4997 | _ACEOF |
---|
4998 | cat confdefs.h >>conftest.$ac_ext |
---|
4999 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5000 | /* end confdefs.h. */ |
---|
5001 | |
---|
5002 | |
---|
5003 | int |
---|
5004 | main () |
---|
5005 | { |
---|
5006 | main (); |
---|
5007 | ; |
---|
5008 | return 0; |
---|
5009 | } |
---|
5010 | _ACEOF |
---|
5011 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5013 | (eval $ac_link) 2>conftest.er1 |
---|
5014 | ac_status=$? |
---|
5015 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5016 | rm -f conftest.er1 |
---|
5017 | cat conftest.err >&5 |
---|
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5019 | (exit $ac_status); } && |
---|
5020 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5021 | || test ! -s conftest.err' |
---|
5022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5023 | (eval $ac_try) 2>&5 |
---|
5024 | ac_status=$? |
---|
5025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5026 | (exit $ac_status); }; } && |
---|
5027 | { ac_try='test -s conftest$ac_exeext' |
---|
5028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5029 | (eval $ac_try) 2>&5 |
---|
5030 | ac_status=$? |
---|
5031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5032 | (exit $ac_status); }; }; then |
---|
5033 | ac_cv_lib_SDL_main=yes |
---|
5034 | else |
---|
5035 | echo "$as_me: failed program was:" >&5 |
---|
5036 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5037 | |
---|
5038 | ac_cv_lib_SDL_main=no |
---|
5039 | fi |
---|
5040 | rm -f conftest.err conftest.$ac_objext \ |
---|
5041 | conftest$ac_exeext conftest.$ac_ext |
---|
5042 | LIBS=$ac_check_lib_save_LIBS |
---|
5043 | fi |
---|
5044 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
5045 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
5046 | if test $ac_cv_lib_SDL_main = yes; then |
---|
5047 | FOUND_SDL=yes |
---|
5048 | fi |
---|
5049 | |
---|
5050 | if test "$FOUND_SDL" = "yes" ; then |
---|
5051 | LIBS="$LIBS -lSDL" |
---|
5052 | fi |
---|
5053 | # checking for Windows sdl library |
---|
5054 | else |
---|
5055 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
5056 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
5057 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
5058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5059 | else |
---|
5060 | ac_check_lib_save_LIBS=$LIBS |
---|
5061 | LIBS="-lsdlmain $LIBS" |
---|
5062 | cat >conftest.$ac_ext <<_ACEOF |
---|
5063 | /* confdefs.h. */ |
---|
5064 | _ACEOF |
---|
5065 | cat confdefs.h >>conftest.$ac_ext |
---|
5066 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5067 | /* end confdefs.h. */ |
---|
5068 | |
---|
5069 | |
---|
5070 | int |
---|
5071 | main () |
---|
5072 | { |
---|
5073 | main (); |
---|
5074 | ; |
---|
5075 | return 0; |
---|
5076 | } |
---|
5077 | _ACEOF |
---|
5078 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5080 | (eval $ac_link) 2>conftest.er1 |
---|
5081 | ac_status=$? |
---|
5082 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5083 | rm -f conftest.er1 |
---|
5084 | cat conftest.err >&5 |
---|
5085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5086 | (exit $ac_status); } && |
---|
5087 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5088 | || test ! -s conftest.err' |
---|
5089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5090 | (eval $ac_try) 2>&5 |
---|
5091 | ac_status=$? |
---|
5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5093 | (exit $ac_status); }; } && |
---|
5094 | { ac_try='test -s conftest$ac_exeext' |
---|
5095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5096 | (eval $ac_try) 2>&5 |
---|
5097 | ac_status=$? |
---|
5098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5099 | (exit $ac_status); }; }; then |
---|
5100 | ac_cv_lib_sdlmain_main=yes |
---|
5101 | else |
---|
5102 | echo "$as_me: failed program was:" >&5 |
---|
5103 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5104 | |
---|
5105 | ac_cv_lib_sdlmain_main=no |
---|
5106 | fi |
---|
5107 | rm -f conftest.err conftest.$ac_objext \ |
---|
5108 | conftest$ac_exeext conftest.$ac_ext |
---|
5109 | LIBS=$ac_check_lib_save_LIBS |
---|
5110 | fi |
---|
5111 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
5112 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
5113 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
5114 | FOUND_sdlmain=yes |
---|
5115 | fi |
---|
5116 | |
---|
5117 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
5118 | LIBS="$LIBS -lsdlmain" |
---|
5119 | fi |
---|
5120 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
5121 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
5122 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
5123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5124 | else |
---|
5125 | ac_check_lib_save_LIBS=$LIBS |
---|
5126 | LIBS="-lsdl $LIBS" |
---|
5127 | cat >conftest.$ac_ext <<_ACEOF |
---|
5128 | /* confdefs.h. */ |
---|
5129 | _ACEOF |
---|
5130 | cat confdefs.h >>conftest.$ac_ext |
---|
5131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5132 | /* end confdefs.h. */ |
---|
5133 | |
---|
5134 | |
---|
5135 | int |
---|
5136 | main () |
---|
5137 | { |
---|
5138 | main (); |
---|
5139 | ; |
---|
5140 | return 0; |
---|
5141 | } |
---|
5142 | _ACEOF |
---|
5143 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5145 | (eval $ac_link) 2>conftest.er1 |
---|
5146 | ac_status=$? |
---|
5147 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5148 | rm -f conftest.er1 |
---|
5149 | cat conftest.err >&5 |
---|
5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5151 | (exit $ac_status); } && |
---|
5152 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5153 | || test ! -s conftest.err' |
---|
5154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5155 | (eval $ac_try) 2>&5 |
---|
5156 | ac_status=$? |
---|
5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5158 | (exit $ac_status); }; } && |
---|
5159 | { ac_try='test -s conftest$ac_exeext' |
---|
5160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5161 | (eval $ac_try) 2>&5 |
---|
5162 | ac_status=$? |
---|
5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5164 | (exit $ac_status); }; }; then |
---|
5165 | ac_cv_lib_sdl_main=yes |
---|
5166 | else |
---|
5167 | echo "$as_me: failed program was:" >&5 |
---|
5168 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5169 | |
---|
5170 | ac_cv_lib_sdl_main=no |
---|
5171 | fi |
---|
5172 | rm -f conftest.err conftest.$ac_objext \ |
---|
5173 | conftest$ac_exeext conftest.$ac_ext |
---|
5174 | LIBS=$ac_check_lib_save_LIBS |
---|
5175 | fi |
---|
5176 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
5177 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
5178 | if test $ac_cv_lib_sdl_main = yes; then |
---|
5179 | FOUND_sdl=yes |
---|
5180 | fi |
---|
5181 | |
---|
5182 | if test "$FOUND_sdl" = "yes" ; then |
---|
5183 | LIBS="$LIBS -lsdl" |
---|
5184 | fi |
---|
5185 | fi |
---|
5186 | |
---|
5187 | #checking for pthread libs |
---|
5188 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
5189 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
5190 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
5191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5192 | else |
---|
5193 | ac_check_lib_save_LIBS=$LIBS |
---|
5194 | LIBS="-lpthread $LIBS" |
---|
5195 | cat >conftest.$ac_ext <<_ACEOF |
---|
5196 | /* confdefs.h. */ |
---|
5197 | _ACEOF |
---|
5198 | cat confdefs.h >>conftest.$ac_ext |
---|
5199 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5200 | /* end confdefs.h. */ |
---|
5201 | |
---|
5202 | |
---|
5203 | int |
---|
5204 | main () |
---|
5205 | { |
---|
5206 | main (); |
---|
5207 | ; |
---|
5208 | return 0; |
---|
5209 | } |
---|
5210 | _ACEOF |
---|
5211 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5213 | (eval $ac_link) 2>conftest.er1 |
---|
5214 | ac_status=$? |
---|
5215 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5216 | rm -f conftest.er1 |
---|
5217 | cat conftest.err >&5 |
---|
5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5219 | (exit $ac_status); } && |
---|
5220 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5221 | || test ! -s conftest.err' |
---|
5222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5223 | (eval $ac_try) 2>&5 |
---|
5224 | ac_status=$? |
---|
5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5226 | (exit $ac_status); }; } && |
---|
5227 | { ac_try='test -s conftest$ac_exeext' |
---|
5228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5229 | (eval $ac_try) 2>&5 |
---|
5230 | ac_status=$? |
---|
5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5232 | (exit $ac_status); }; }; then |
---|
5233 | ac_cv_lib_pthread_main=yes |
---|
5234 | else |
---|
5235 | echo "$as_me: failed program was:" >&5 |
---|
5236 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5237 | |
---|
5238 | ac_cv_lib_pthread_main=no |
---|
5239 | fi |
---|
5240 | rm -f conftest.err conftest.$ac_objext \ |
---|
5241 | conftest$ac_exeext conftest.$ac_ext |
---|
5242 | LIBS=$ac_check_lib_save_LIBS |
---|
5243 | fi |
---|
5244 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
5245 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
5246 | if test $ac_cv_lib_pthread_main = yes; then |
---|
5247 | FOUND_pthread=yes |
---|
5248 | fi |
---|
5249 | |
---|
5250 | if test "$FOUND_pthread" = "yes" ; then |
---|
5251 | LIBS="$LIBS -lpthread" |
---|
5252 | fi |
---|
5253 | |
---|
5254 | |
---|
5255 | |
---|
5256 | |
---|
5257 | # FIXME: Replace `main' with a function in `-lm': |
---|
5258 | |
---|
5259 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
5260 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
5261 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
5262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5263 | else |
---|
5264 | ac_check_lib_save_LIBS=$LIBS |
---|
5265 | LIBS="-lm $LIBS" |
---|
5266 | cat >conftest.$ac_ext <<_ACEOF |
---|
5267 | /* confdefs.h. */ |
---|
5268 | _ACEOF |
---|
5269 | cat confdefs.h >>conftest.$ac_ext |
---|
5270 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5271 | /* end confdefs.h. */ |
---|
5272 | |
---|
5273 | |
---|
5274 | int |
---|
5275 | main () |
---|
5276 | { |
---|
5277 | main (); |
---|
5278 | ; |
---|
5279 | return 0; |
---|
5280 | } |
---|
5281 | _ACEOF |
---|
5282 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5284 | (eval $ac_link) 2>conftest.er1 |
---|
5285 | ac_status=$? |
---|
5286 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5287 | rm -f conftest.er1 |
---|
5288 | cat conftest.err >&5 |
---|
5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5290 | (exit $ac_status); } && |
---|
5291 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5292 | || test ! -s conftest.err' |
---|
5293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5294 | (eval $ac_try) 2>&5 |
---|
5295 | ac_status=$? |
---|
5296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5297 | (exit $ac_status); }; } && |
---|
5298 | { ac_try='test -s conftest$ac_exeext' |
---|
5299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5300 | (eval $ac_try) 2>&5 |
---|
5301 | ac_status=$? |
---|
5302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5303 | (exit $ac_status); }; }; then |
---|
5304 | ac_cv_lib_m_main=yes |
---|
5305 | else |
---|
5306 | echo "$as_me: failed program was:" >&5 |
---|
5307 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5308 | |
---|
5309 | ac_cv_lib_m_main=no |
---|
5310 | fi |
---|
5311 | rm -f conftest.err conftest.$ac_objext \ |
---|
5312 | conftest$ac_exeext conftest.$ac_ext |
---|
5313 | LIBS=$ac_check_lib_save_LIBS |
---|
5314 | fi |
---|
5315 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
5316 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
5317 | if test $ac_cv_lib_m_main = yes; then |
---|
5318 | cat >>confdefs.h <<_ACEOF |
---|
5319 | #define HAVE_LIBM 1 |
---|
5320 | _ACEOF |
---|
5321 | |
---|
5322 | LIBS="-lm $LIBS" |
---|
5323 | |
---|
5324 | fi |
---|
5325 | |
---|
5326 | |
---|
5327 | LIBS="$LIBS `pkg-config --libs gtk+-2.0`" |
---|
5328 | |
---|
5329 | |
---|
5330 | # Checks for header files. |
---|
5331 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5332 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5333 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5335 | else |
---|
5336 | cat >conftest.$ac_ext <<_ACEOF |
---|
5337 | /* confdefs.h. */ |
---|
5338 | _ACEOF |
---|
5339 | cat confdefs.h >>conftest.$ac_ext |
---|
5340 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5341 | /* end confdefs.h. */ |
---|
5342 | #include <stdlib.h> |
---|
5343 | #include <stdarg.h> |
---|
5344 | #include <string.h> |
---|
5345 | #include <float.h> |
---|
5346 | |
---|
5347 | int |
---|
5348 | main () |
---|
5349 | { |
---|
5350 | |
---|
5351 | ; |
---|
5352 | return 0; |
---|
5353 | } |
---|
5354 | _ACEOF |
---|
5355 | rm -f conftest.$ac_objext |
---|
5356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5357 | (eval $ac_compile) 2>conftest.er1 |
---|
5358 | ac_status=$? |
---|
5359 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5360 | rm -f conftest.er1 |
---|
5361 | cat conftest.err >&5 |
---|
5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5363 | (exit $ac_status); } && |
---|
5364 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5365 | || test ! -s conftest.err' |
---|
5366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5367 | (eval $ac_try) 2>&5 |
---|
5368 | ac_status=$? |
---|
5369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5370 | (exit $ac_status); }; } && |
---|
5371 | { ac_try='test -s conftest.$ac_objext' |
---|
5372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5373 | (eval $ac_try) 2>&5 |
---|
5374 | ac_status=$? |
---|
5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5376 | (exit $ac_status); }; }; then |
---|
5377 | ac_cv_header_stdc=yes |
---|
5378 | else |
---|
5379 | echo "$as_me: failed program was:" >&5 |
---|
5380 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5381 | |
---|
5382 | ac_cv_header_stdc=no |
---|
5383 | fi |
---|
5384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5385 | |
---|
5386 | if test $ac_cv_header_stdc = yes; then |
---|
5387 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5388 | cat >conftest.$ac_ext <<_ACEOF |
---|
5389 | /* confdefs.h. */ |
---|
5390 | _ACEOF |
---|
5391 | cat confdefs.h >>conftest.$ac_ext |
---|
5392 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5393 | /* end confdefs.h. */ |
---|
5394 | #include <string.h> |
---|
5395 | |
---|
5396 | _ACEOF |
---|
5397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5398 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
5399 | : |
---|
5400 | else |
---|
5401 | ac_cv_header_stdc=no |
---|
5402 | fi |
---|
5403 | rm -f conftest* |
---|
5404 | |
---|
5405 | fi |
---|
5406 | |
---|
5407 | if test $ac_cv_header_stdc = yes; then |
---|
5408 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5409 | cat >conftest.$ac_ext <<_ACEOF |
---|
5410 | /* confdefs.h. */ |
---|
5411 | _ACEOF |
---|
5412 | cat confdefs.h >>conftest.$ac_ext |
---|
5413 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5414 | /* end confdefs.h. */ |
---|
5415 | #include <stdlib.h> |
---|
5416 | |
---|
5417 | _ACEOF |
---|
5418 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5419 | $EGREP "free" >/dev/null 2>&1; then |
---|
5420 | : |
---|
5421 | else |
---|
5422 | ac_cv_header_stdc=no |
---|
5423 | fi |
---|
5424 | rm -f conftest* |
---|
5425 | |
---|
5426 | fi |
---|
5427 | |
---|
5428 | if test $ac_cv_header_stdc = yes; then |
---|
5429 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5430 | if test "$cross_compiling" = yes; then |
---|
5431 | : |
---|
5432 | else |
---|
5433 | cat >conftest.$ac_ext <<_ACEOF |
---|
5434 | /* confdefs.h. */ |
---|
5435 | _ACEOF |
---|
5436 | cat confdefs.h >>conftest.$ac_ext |
---|
5437 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5438 | /* end confdefs.h. */ |
---|
5439 | #include <ctype.h> |
---|
5440 | #if ((' ' & 0x0FF) == 0x020) |
---|
5441 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5442 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5443 | #else |
---|
5444 | # define ISLOWER(c) \ |
---|
5445 | (('a' <= (c) && (c) <= 'i') \ |
---|
5446 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5447 | || ('s' <= (c) && (c) <= 'z')) |
---|
5448 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5449 | #endif |
---|
5450 | |
---|
5451 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5452 | int |
---|
5453 | main () |
---|
5454 | { |
---|
5455 | int i; |
---|
5456 | for (i = 0; i < 256; i++) |
---|
5457 | if (XOR (islower (i), ISLOWER (i)) |
---|
5458 | || toupper (i) != TOUPPER (i)) |
---|
5459 | exit(2); |
---|
5460 | exit (0); |
---|
5461 | } |
---|
5462 | _ACEOF |
---|
5463 | rm -f conftest$ac_exeext |
---|
5464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5465 | (eval $ac_link) 2>&5 |
---|
5466 | ac_status=$? |
---|
5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5468 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5470 | (eval $ac_try) 2>&5 |
---|
5471 | ac_status=$? |
---|
5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5473 | (exit $ac_status); }; }; then |
---|
5474 | : |
---|
5475 | else |
---|
5476 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5477 | echo "$as_me: failed program was:" >&5 |
---|
5478 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5479 | |
---|
5480 | ( exit $ac_status ) |
---|
5481 | ac_cv_header_stdc=no |
---|
5482 | fi |
---|
5483 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5484 | fi |
---|
5485 | fi |
---|
5486 | fi |
---|
5487 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
5488 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
5489 | if test $ac_cv_header_stdc = yes; then |
---|
5490 | |
---|
5491 | cat >>confdefs.h <<\_ACEOF |
---|
5492 | #define STDC_HEADERS 1 |
---|
5493 | _ACEOF |
---|
5494 | |
---|
5495 | fi |
---|
5496 | |
---|
5497 | |
---|
5498 | |
---|
5499 | for ac_header in stdlib.h string.h |
---|
5500 | do |
---|
5501 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5502 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5503 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5504 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5505 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5507 | fi |
---|
5508 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5509 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5510 | else |
---|
5511 | # Is the header compilable? |
---|
5512 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5513 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5514 | cat >conftest.$ac_ext <<_ACEOF |
---|
5515 | /* confdefs.h. */ |
---|
5516 | _ACEOF |
---|
5517 | cat confdefs.h >>conftest.$ac_ext |
---|
5518 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5519 | /* end confdefs.h. */ |
---|
5520 | $ac_includes_default |
---|
5521 | #include <$ac_header> |
---|
5522 | _ACEOF |
---|
5523 | rm -f conftest.$ac_objext |
---|
5524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5525 | (eval $ac_compile) 2>conftest.er1 |
---|
5526 | ac_status=$? |
---|
5527 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5528 | rm -f conftest.er1 |
---|
5529 | cat conftest.err >&5 |
---|
5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5531 | (exit $ac_status); } && |
---|
5532 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5533 | || test ! -s conftest.err' |
---|
5534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5535 | (eval $ac_try) 2>&5 |
---|
5536 | ac_status=$? |
---|
5537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5538 | (exit $ac_status); }; } && |
---|
5539 | { ac_try='test -s conftest.$ac_objext' |
---|
5540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5541 | (eval $ac_try) 2>&5 |
---|
5542 | ac_status=$? |
---|
5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5544 | (exit $ac_status); }; }; then |
---|
5545 | ac_header_compiler=yes |
---|
5546 | else |
---|
5547 | echo "$as_me: failed program was:" >&5 |
---|
5548 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5549 | |
---|
5550 | ac_header_compiler=no |
---|
5551 | fi |
---|
5552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5553 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5554 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5555 | |
---|
5556 | # Is the header present? |
---|
5557 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5558 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5559 | cat >conftest.$ac_ext <<_ACEOF |
---|
5560 | /* confdefs.h. */ |
---|
5561 | _ACEOF |
---|
5562 | cat confdefs.h >>conftest.$ac_ext |
---|
5563 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5564 | /* end confdefs.h. */ |
---|
5565 | #include <$ac_header> |
---|
5566 | _ACEOF |
---|
5567 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5568 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5569 | ac_status=$? |
---|
5570 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5571 | rm -f conftest.er1 |
---|
5572 | cat conftest.err >&5 |
---|
5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5574 | (exit $ac_status); } >/dev/null; then |
---|
5575 | if test -s conftest.err; then |
---|
5576 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5577 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5578 | else |
---|
5579 | ac_cpp_err= |
---|
5580 | fi |
---|
5581 | else |
---|
5582 | ac_cpp_err=yes |
---|
5583 | fi |
---|
5584 | if test -z "$ac_cpp_err"; then |
---|
5585 | ac_header_preproc=yes |
---|
5586 | else |
---|
5587 | echo "$as_me: failed program was:" >&5 |
---|
5588 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5589 | |
---|
5590 | ac_header_preproc=no |
---|
5591 | fi |
---|
5592 | rm -f conftest.err conftest.$ac_ext |
---|
5593 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5594 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5595 | |
---|
5596 | # So? What about this header? |
---|
5597 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5598 | yes:no: ) |
---|
5599 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5600 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5601 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5602 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5603 | ac_header_preproc=yes |
---|
5604 | ;; |
---|
5605 | no:yes:* ) |
---|
5606 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5607 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5608 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5609 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5610 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5611 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5612 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5613 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5615 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5616 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5617 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5618 | ( |
---|
5619 | cat <<\_ASBOX |
---|
5620 | ## ------------------------------------------- ## |
---|
5621 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5622 | ## ------------------------------------------- ## |
---|
5623 | _ASBOX |
---|
5624 | ) | |
---|
5625 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5626 | ;; |
---|
5627 | esac |
---|
5628 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5629 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5630 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5632 | else |
---|
5633 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5634 | fi |
---|
5635 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5636 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5637 | |
---|
5638 | fi |
---|
5639 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5640 | cat >>confdefs.h <<_ACEOF |
---|
5641 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5642 | _ACEOF |
---|
5643 | |
---|
5644 | fi |
---|
5645 | |
---|
5646 | done |
---|
5647 | |
---|
5648 | |
---|
5649 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5650 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
5651 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
5652 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
5653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5654 | else |
---|
5655 | cat >conftest.$ac_ext <<_ACEOF |
---|
5656 | /* confdefs.h. */ |
---|
5657 | _ACEOF |
---|
5658 | cat confdefs.h >>conftest.$ac_ext |
---|
5659 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5660 | /* end confdefs.h. */ |
---|
5661 | |
---|
5662 | #include <stdbool.h> |
---|
5663 | #ifndef bool |
---|
5664 | # error bool is not defined |
---|
5665 | #endif |
---|
5666 | #ifndef false |
---|
5667 | # error false is not defined |
---|
5668 | #endif |
---|
5669 | #if false |
---|
5670 | # error false is not 0 |
---|
5671 | #endif |
---|
5672 | #ifndef true |
---|
5673 | # error true is not defined |
---|
5674 | #endif |
---|
5675 | #if true != 1 |
---|
5676 | # error true is not 1 |
---|
5677 | #endif |
---|
5678 | #ifndef __bool_true_false_are_defined |
---|
5679 | # error __bool_true_false_are_defined is not defined |
---|
5680 | #endif |
---|
5681 | |
---|
5682 | struct s { _Bool s: 1; _Bool t; } s; |
---|
5683 | |
---|
5684 | char a[true == 1 ? 1 : -1]; |
---|
5685 | char b[false == 0 ? 1 : -1]; |
---|
5686 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
5687 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
5688 | bool e = &s; |
---|
5689 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
5690 | char g[true]; |
---|
5691 | char h[sizeof (_Bool)]; |
---|
5692 | char i[sizeof s.t]; |
---|
5693 | |
---|
5694 | int |
---|
5695 | main () |
---|
5696 | { |
---|
5697 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
5698 | ; |
---|
5699 | return 0; |
---|
5700 | } |
---|
5701 | _ACEOF |
---|
5702 | rm -f conftest.$ac_objext |
---|
5703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5704 | (eval $ac_compile) 2>conftest.er1 |
---|
5705 | ac_status=$? |
---|
5706 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5707 | rm -f conftest.er1 |
---|
5708 | cat conftest.err >&5 |
---|
5709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5710 | (exit $ac_status); } && |
---|
5711 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5712 | || test ! -s conftest.err' |
---|
5713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5714 | (eval $ac_try) 2>&5 |
---|
5715 | ac_status=$? |
---|
5716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5717 | (exit $ac_status); }; } && |
---|
5718 | { ac_try='test -s conftest.$ac_objext' |
---|
5719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5720 | (eval $ac_try) 2>&5 |
---|
5721 | ac_status=$? |
---|
5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5723 | (exit $ac_status); }; }; then |
---|
5724 | ac_cv_header_stdbool_h=yes |
---|
5725 | else |
---|
5726 | echo "$as_me: failed program was:" >&5 |
---|
5727 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5728 | |
---|
5729 | ac_cv_header_stdbool_h=no |
---|
5730 | fi |
---|
5731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5732 | fi |
---|
5733 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
5734 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
5735 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
5736 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
5737 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
5738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5739 | else |
---|
5740 | cat >conftest.$ac_ext <<_ACEOF |
---|
5741 | /* confdefs.h. */ |
---|
5742 | _ACEOF |
---|
5743 | cat confdefs.h >>conftest.$ac_ext |
---|
5744 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5745 | /* end confdefs.h. */ |
---|
5746 | $ac_includes_default |
---|
5747 | int |
---|
5748 | main () |
---|
5749 | { |
---|
5750 | if ((_Bool *) 0) |
---|
5751 | return 0; |
---|
5752 | if (sizeof (_Bool)) |
---|
5753 | return 0; |
---|
5754 | ; |
---|
5755 | return 0; |
---|
5756 | } |
---|
5757 | _ACEOF |
---|
5758 | rm -f conftest.$ac_objext |
---|
5759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5760 | (eval $ac_compile) 2>conftest.er1 |
---|
5761 | ac_status=$? |
---|
5762 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5763 | rm -f conftest.er1 |
---|
5764 | cat conftest.err >&5 |
---|
5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5766 | (exit $ac_status); } && |
---|
5767 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5768 | || test ! -s conftest.err' |
---|
5769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5770 | (eval $ac_try) 2>&5 |
---|
5771 | ac_status=$? |
---|
5772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5773 | (exit $ac_status); }; } && |
---|
5774 | { ac_try='test -s conftest.$ac_objext' |
---|
5775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5776 | (eval $ac_try) 2>&5 |
---|
5777 | ac_status=$? |
---|
5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5779 | (exit $ac_status); }; }; then |
---|
5780 | ac_cv_type__Bool=yes |
---|
5781 | else |
---|
5782 | echo "$as_me: failed program was:" >&5 |
---|
5783 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5784 | |
---|
5785 | ac_cv_type__Bool=no |
---|
5786 | fi |
---|
5787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5788 | fi |
---|
5789 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
5790 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
5791 | if test $ac_cv_type__Bool = yes; then |
---|
5792 | |
---|
5793 | cat >>confdefs.h <<_ACEOF |
---|
5794 | #define HAVE__BOOL 1 |
---|
5795 | _ACEOF |
---|
5796 | |
---|
5797 | |
---|
5798 | fi |
---|
5799 | |
---|
5800 | if test $ac_cv_header_stdbool_h = yes; then |
---|
5801 | |
---|
5802 | cat >>confdefs.h <<\_ACEOF |
---|
5803 | #define HAVE_STDBOOL_H 1 |
---|
5804 | _ACEOF |
---|
5805 | |
---|
5806 | fi |
---|
5807 | |
---|
5808 | |
---|
5809 | # Checks for library functions. |
---|
5810 | |
---|
5811 | for ac_header in stdlib.h |
---|
5812 | do |
---|
5813 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5814 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5815 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5816 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5817 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5819 | fi |
---|
5820 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5821 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5822 | else |
---|
5823 | # Is the header compilable? |
---|
5824 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5825 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5826 | cat >conftest.$ac_ext <<_ACEOF |
---|
5827 | /* confdefs.h. */ |
---|
5828 | _ACEOF |
---|
5829 | cat confdefs.h >>conftest.$ac_ext |
---|
5830 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5831 | /* end confdefs.h. */ |
---|
5832 | $ac_includes_default |
---|
5833 | #include <$ac_header> |
---|
5834 | _ACEOF |
---|
5835 | rm -f conftest.$ac_objext |
---|
5836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5837 | (eval $ac_compile) 2>conftest.er1 |
---|
5838 | ac_status=$? |
---|
5839 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5840 | rm -f conftest.er1 |
---|
5841 | cat conftest.err >&5 |
---|
5842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5843 | (exit $ac_status); } && |
---|
5844 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5845 | || test ! -s conftest.err' |
---|
5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5847 | (eval $ac_try) 2>&5 |
---|
5848 | ac_status=$? |
---|
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5850 | (exit $ac_status); }; } && |
---|
5851 | { ac_try='test -s conftest.$ac_objext' |
---|
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); }; }; then |
---|
5857 | ac_header_compiler=yes |
---|
5858 | else |
---|
5859 | echo "$as_me: failed program was:" >&5 |
---|
5860 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5861 | |
---|
5862 | ac_header_compiler=no |
---|
5863 | fi |
---|
5864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5865 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5866 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5867 | |
---|
5868 | # Is the header present? |
---|
5869 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5870 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5871 | cat >conftest.$ac_ext <<_ACEOF |
---|
5872 | /* confdefs.h. */ |
---|
5873 | _ACEOF |
---|
5874 | cat confdefs.h >>conftest.$ac_ext |
---|
5875 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5876 | /* end confdefs.h. */ |
---|
5877 | #include <$ac_header> |
---|
5878 | _ACEOF |
---|
5879 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5880 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5881 | ac_status=$? |
---|
5882 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5883 | rm -f conftest.er1 |
---|
5884 | cat conftest.err >&5 |
---|
5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5886 | (exit $ac_status); } >/dev/null; then |
---|
5887 | if test -s conftest.err; then |
---|
5888 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5889 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5890 | else |
---|
5891 | ac_cpp_err= |
---|
5892 | fi |
---|
5893 | else |
---|
5894 | ac_cpp_err=yes |
---|
5895 | fi |
---|
5896 | if test -z "$ac_cpp_err"; then |
---|
5897 | ac_header_preproc=yes |
---|
5898 | else |
---|
5899 | echo "$as_me: failed program was:" >&5 |
---|
5900 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5901 | |
---|
5902 | ac_header_preproc=no |
---|
5903 | fi |
---|
5904 | rm -f conftest.err conftest.$ac_ext |
---|
5905 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5906 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5907 | |
---|
5908 | # So? What about this header? |
---|
5909 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5910 | yes:no: ) |
---|
5911 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5912 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5914 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5915 | ac_header_preproc=yes |
---|
5916 | ;; |
---|
5917 | no:yes:* ) |
---|
5918 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5919 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5920 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5921 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5922 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5923 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5924 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5925 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5926 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5927 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5928 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5929 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5930 | ( |
---|
5931 | cat <<\_ASBOX |
---|
5932 | ## ------------------------------------------- ## |
---|
5933 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5934 | ## ------------------------------------------- ## |
---|
5935 | _ASBOX |
---|
5936 | ) | |
---|
5937 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5938 | ;; |
---|
5939 | esac |
---|
5940 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5944 | else |
---|
5945 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5946 | fi |
---|
5947 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5948 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5949 | |
---|
5950 | fi |
---|
5951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5952 | cat >>confdefs.h <<_ACEOF |
---|
5953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5954 | _ACEOF |
---|
5955 | |
---|
5956 | fi |
---|
5957 | |
---|
5958 | done |
---|
5959 | |
---|
5960 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
5961 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
5962 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
5963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5964 | else |
---|
5965 | if test "$cross_compiling" = yes; then |
---|
5966 | ac_cv_func_malloc_0_nonnull=no |
---|
5967 | else |
---|
5968 | cat >conftest.$ac_ext <<_ACEOF |
---|
5969 | /* confdefs.h. */ |
---|
5970 | _ACEOF |
---|
5971 | cat confdefs.h >>conftest.$ac_ext |
---|
5972 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5973 | /* end confdefs.h. */ |
---|
5974 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
5975 | # include <stdlib.h> |
---|
5976 | #else |
---|
5977 | char *malloc (); |
---|
5978 | #endif |
---|
5979 | |
---|
5980 | int |
---|
5981 | main () |
---|
5982 | { |
---|
5983 | exit (malloc (0) ? 0 : 1); |
---|
5984 | ; |
---|
5985 | return 0; |
---|
5986 | } |
---|
5987 | _ACEOF |
---|
5988 | rm -f conftest$ac_exeext |
---|
5989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5990 | (eval $ac_link) 2>&5 |
---|
5991 | ac_status=$? |
---|
5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5993 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5995 | (eval $ac_try) 2>&5 |
---|
5996 | ac_status=$? |
---|
5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5998 | (exit $ac_status); }; }; then |
---|
5999 | ac_cv_func_malloc_0_nonnull=yes |
---|
6000 | else |
---|
6001 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6002 | echo "$as_me: failed program was:" >&5 |
---|
6003 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6004 | |
---|
6005 | ( exit $ac_status ) |
---|
6006 | ac_cv_func_malloc_0_nonnull=no |
---|
6007 | fi |
---|
6008 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6009 | fi |
---|
6010 | fi |
---|
6011 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
6012 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
6013 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
6014 | |
---|
6015 | cat >>confdefs.h <<\_ACEOF |
---|
6016 | #define HAVE_MALLOC 1 |
---|
6017 | _ACEOF |
---|
6018 | |
---|
6019 | else |
---|
6020 | cat >>confdefs.h <<\_ACEOF |
---|
6021 | #define HAVE_MALLOC 0 |
---|
6022 | _ACEOF |
---|
6023 | |
---|
6024 | case $LIBOBJS in |
---|
6025 | "malloc.$ac_objext" | \ |
---|
6026 | *" malloc.$ac_objext" | \ |
---|
6027 | "malloc.$ac_objext "* | \ |
---|
6028 | *" malloc.$ac_objext "* ) ;; |
---|
6029 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
6030 | esac |
---|
6031 | |
---|
6032 | |
---|
6033 | cat >>confdefs.h <<\_ACEOF |
---|
6034 | #define malloc rpl_malloc |
---|
6035 | _ACEOF |
---|
6036 | |
---|
6037 | fi |
---|
6038 | |
---|
6039 | |
---|
6040 | |
---|
6041 | |
---|
6042 | |
---|
6043 | for ac_func in bzero sqrt |
---|
6044 | do |
---|
6045 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6046 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
6047 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
6048 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
6049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
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 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
6058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
6059 | #define $ac_func innocuous_$ac_func |
---|
6060 | |
---|
6061 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6062 | which can conflict with char $ac_func (); below. |
---|
6063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6064 | <limits.h> exists even on freestanding compilers. */ |
---|
6065 | |
---|
6066 | #ifdef __STDC__ |
---|
6067 | # include <limits.h> |
---|
6068 | #else |
---|
6069 | # include <assert.h> |
---|
6070 | #endif |
---|
6071 | |
---|
6072 | #undef $ac_func |
---|
6073 | |
---|
6074 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6075 | #ifdef __cplusplus |
---|
6076 | extern "C" |
---|
6077 | { |
---|
6078 | #endif |
---|
6079 | /* We use char because int might match the return type of a gcc2 |
---|
6080 | builtin and then its argument prototype would still apply. */ |
---|
6081 | char $ac_func (); |
---|
6082 | /* The GNU C library defines this for functions which it implements |
---|
6083 | to always fail with ENOSYS. Some functions are actually named |
---|
6084 | something starting with __ and the normal name is an alias. */ |
---|
6085 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6086 | choke me |
---|
6087 | #else |
---|
6088 | char (*f) () = $ac_func; |
---|
6089 | #endif |
---|
6090 | #ifdef __cplusplus |
---|
6091 | } |
---|
6092 | #endif |
---|
6093 | |
---|
6094 | int |
---|
6095 | main () |
---|
6096 | { |
---|
6097 | return f != $ac_func; |
---|
6098 | ; |
---|
6099 | return 0; |
---|
6100 | } |
---|
6101 | _ACEOF |
---|
6102 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6104 | (eval $ac_link) 2>conftest.er1 |
---|
6105 | ac_status=$? |
---|
6106 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6107 | rm -f conftest.er1 |
---|
6108 | cat conftest.err >&5 |
---|
6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6110 | (exit $ac_status); } && |
---|
6111 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6112 | || test ! -s conftest.err' |
---|
6113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6114 | (eval $ac_try) 2>&5 |
---|
6115 | ac_status=$? |
---|
6116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6117 | (exit $ac_status); }; } && |
---|
6118 | { ac_try='test -s conftest$ac_exeext' |
---|
6119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6120 | (eval $ac_try) 2>&5 |
---|
6121 | ac_status=$? |
---|
6122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6123 | (exit $ac_status); }; }; then |
---|
6124 | eval "$as_ac_var=yes" |
---|
6125 | else |
---|
6126 | echo "$as_me: failed program was:" >&5 |
---|
6127 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6128 | |
---|
6129 | eval "$as_ac_var=no" |
---|
6130 | fi |
---|
6131 | rm -f conftest.err conftest.$ac_objext \ |
---|
6132 | conftest$ac_exeext conftest.$ac_ext |
---|
6133 | fi |
---|
6134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
6135 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
6136 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
6137 | cat >>confdefs.h <<_ACEOF |
---|
6138 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6139 | _ACEOF |
---|
6140 | |
---|
6141 | fi |
---|
6142 | done |
---|
6143 | |
---|
6144 | |
---|
6145 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile" |
---|
6146 | |
---|
6147 | cat >confcache <<\_ACEOF |
---|
6148 | # This file is a shell script that caches the results of configure |
---|
6149 | # tests run on this system so they can be shared between configure |
---|
6150 | # scripts and configure runs, see configure's option --config-cache. |
---|
6151 | # It is not useful on other systems. If it contains results you don't |
---|
6152 | # want to keep, you may remove or edit it. |
---|
6153 | # |
---|
6154 | # config.status only pays attention to the cache file if you give it |
---|
6155 | # the --recheck option to rerun configure. |
---|
6156 | # |
---|
6157 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6158 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6159 | # following values. |
---|
6160 | |
---|
6161 | _ACEOF |
---|
6162 | |
---|
6163 | # The following way of writing the cache mishandles newlines in values, |
---|
6164 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6165 | # So, don't put newlines in cache variables' values. |
---|
6166 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6167 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6168 | { |
---|
6169 | (set) 2>&1 | |
---|
6170 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
6171 | *ac_space=\ *) |
---|
6172 | # `set' does not quote correctly, so add quotes (double-quote |
---|
6173 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
6174 | sed -n \ |
---|
6175 | "s/'/'\\\\''/g; |
---|
6176 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6177 | ;; |
---|
6178 | *) |
---|
6179 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6180 | sed -n \ |
---|
6181 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
6182 | ;; |
---|
6183 | esac; |
---|
6184 | } | |
---|
6185 | sed ' |
---|
6186 | t clear |
---|
6187 | : clear |
---|
6188 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6189 | t end |
---|
6190 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6191 | : end' >>confcache |
---|
6192 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
6193 | if test -w $cache_file; then |
---|
6194 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
6195 | cat confcache >$cache_file |
---|
6196 | else |
---|
6197 | echo "not updating unwritable cache $cache_file" |
---|
6198 | fi |
---|
6199 | fi |
---|
6200 | rm -f confcache |
---|
6201 | |
---|
6202 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6203 | # Let make expand exec_prefix. |
---|
6204 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6205 | |
---|
6206 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
6207 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
6208 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6209 | # (actually we leave an empty line to preserve line numbers). |
---|
6210 | if test "x$srcdir" = x.; then |
---|
6211 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
6212 | s/:*\$(srcdir):*/:/; |
---|
6213 | s/:*\${srcdir}:*/:/; |
---|
6214 | s/:*@srcdir@:*/:/; |
---|
6215 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
6216 | s/:*$//; |
---|
6217 | s/^[^=]*=[ ]*$//; |
---|
6218 | }' |
---|
6219 | fi |
---|
6220 | |
---|
6221 | DEFS=-DHAVE_CONFIG_H |
---|
6222 | |
---|
6223 | ac_libobjs= |
---|
6224 | ac_ltlibobjs= |
---|
6225 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6226 | # 1. Remove the extension, and $U if already installed. |
---|
6227 | ac_i=`echo "$ac_i" | |
---|
6228 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
6229 | # 2. Add them. |
---|
6230 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
6231 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
6232 | done |
---|
6233 | LIBOBJS=$ac_libobjs |
---|
6234 | |
---|
6235 | LTLIBOBJS=$ac_ltlibobjs |
---|
6236 | |
---|
6237 | |
---|
6238 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6239 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
6240 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6241 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
6242 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6243 | { (exit 1); exit 1; }; } |
---|
6244 | fi |
---|
6245 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6246 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6247 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6248 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6249 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6250 | { (exit 1); exit 1; }; } |
---|
6251 | fi |
---|
6252 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6253 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
6254 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6255 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
6256 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6257 | { (exit 1); exit 1; }; } |
---|
6258 | fi |
---|
6259 | |
---|
6260 | : ${CONFIG_STATUS=./config.status} |
---|
6261 | ac_clean_files_save=$ac_clean_files |
---|
6262 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6263 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
6264 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6265 | cat >$CONFIG_STATUS <<_ACEOF |
---|
6266 | #! $SHELL |
---|
6267 | # Generated by $as_me. |
---|
6268 | # Run this file to recreate the current configuration. |
---|
6269 | # Compiler output produced by configure, useful for debugging |
---|
6270 | # configure, is in config.log if it exists. |
---|
6271 | |
---|
6272 | debug=false |
---|
6273 | ac_cs_recheck=false |
---|
6274 | ac_cs_silent=false |
---|
6275 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6276 | _ACEOF |
---|
6277 | |
---|
6278 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6279 | ## --------------------- ## |
---|
6280 | ## M4sh Initialization. ## |
---|
6281 | ## --------------------- ## |
---|
6282 | |
---|
6283 | # Be Bourne compatible |
---|
6284 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
6285 | emulate sh |
---|
6286 | NULLCMD=: |
---|
6287 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
6288 | # is contrary to our usage. Disable this feature. |
---|
6289 | alias -g '${1+"$@"}'='"$@"' |
---|
6290 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
6291 | set -o posix |
---|
6292 | fi |
---|
6293 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6294 | |
---|
6295 | # Support unset when possible. |
---|
6296 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
6297 | as_unset=unset |
---|
6298 | else |
---|
6299 | as_unset=false |
---|
6300 | fi |
---|
6301 | |
---|
6302 | |
---|
6303 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
6304 | $as_unset ENV MAIL MAILPATH |
---|
6305 | PS1='$ ' |
---|
6306 | PS2='> ' |
---|
6307 | PS4='+ ' |
---|
6308 | |
---|
6309 | # NLS nuisances. |
---|
6310 | for as_var in \ |
---|
6311 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
6312 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
6313 | LC_TELEPHONE LC_TIME |
---|
6314 | do |
---|
6315 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
6316 | eval $as_var=C; export $as_var |
---|
6317 | else |
---|
6318 | $as_unset $as_var |
---|
6319 | fi |
---|
6320 | done |
---|
6321 | |
---|
6322 | # Required to use basename. |
---|
6323 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6324 | as_expr=expr |
---|
6325 | else |
---|
6326 | as_expr=false |
---|
6327 | fi |
---|
6328 | |
---|
6329 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
6330 | as_basename=basename |
---|
6331 | else |
---|
6332 | as_basename=false |
---|
6333 | fi |
---|
6334 | |
---|
6335 | |
---|
6336 | # Name of the executable. |
---|
6337 | as_me=`$as_basename "$0" || |
---|
6338 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6339 | X"$0" : 'X\(//\)$' \| \ |
---|
6340 | X"$0" : 'X\(/\)$' \| \ |
---|
6341 | . : '\(.\)' 2>/dev/null || |
---|
6342 | echo X/"$0" | |
---|
6343 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
6344 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
6345 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
6346 | s/.*/./; q'` |
---|
6347 | |
---|
6348 | |
---|
6349 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
6350 | # Avoid depending upon Character Ranges. |
---|
6351 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6352 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6353 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6354 | as_cr_digits='0123456789' |
---|
6355 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6356 | |
---|
6357 | # The user is always right. |
---|
6358 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6359 | echo "#! /bin/sh" >conf$$.sh |
---|
6360 | echo "exit 0" >>conf$$.sh |
---|
6361 | chmod +x conf$$.sh |
---|
6362 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
6363 | PATH_SEPARATOR=';' |
---|
6364 | else |
---|
6365 | PATH_SEPARATOR=: |
---|
6366 | fi |
---|
6367 | rm -f conf$$.sh |
---|
6368 | fi |
---|
6369 | |
---|
6370 | |
---|
6371 | as_lineno_1=$LINENO |
---|
6372 | as_lineno_2=$LINENO |
---|
6373 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6374 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6375 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
6376 | # Find who we are. Look in the path if we contain no path at all |
---|
6377 | # relative or not. |
---|
6378 | case $0 in |
---|
6379 | *[\\/]* ) as_myself=$0 ;; |
---|
6380 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6381 | for as_dir in $PATH |
---|
6382 | do |
---|
6383 | IFS=$as_save_IFS |
---|
6384 | test -z "$as_dir" && as_dir=. |
---|
6385 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6386 | done |
---|
6387 | |
---|
6388 | ;; |
---|
6389 | esac |
---|
6390 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6391 | # in which case we are not to be found in the path. |
---|
6392 | if test "x$as_myself" = x; then |
---|
6393 | as_myself=$0 |
---|
6394 | fi |
---|
6395 | if test ! -f "$as_myself"; then |
---|
6396 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
6397 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
6398 | { (exit 1); exit 1; }; } |
---|
6399 | fi |
---|
6400 | case $CONFIG_SHELL in |
---|
6401 | '') |
---|
6402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6403 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
6404 | do |
---|
6405 | IFS=$as_save_IFS |
---|
6406 | test -z "$as_dir" && as_dir=. |
---|
6407 | for as_base in sh bash ksh sh5; do |
---|
6408 | case $as_dir in |
---|
6409 | /*) |
---|
6410 | if ("$as_dir/$as_base" -c ' |
---|
6411 | as_lineno_1=$LINENO |
---|
6412 | as_lineno_2=$LINENO |
---|
6413 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6414 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6415 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
6416 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
6417 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
6418 | CONFIG_SHELL=$as_dir/$as_base |
---|
6419 | export CONFIG_SHELL |
---|
6420 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
6421 | fi;; |
---|
6422 | esac |
---|
6423 | done |
---|
6424 | done |
---|
6425 | ;; |
---|
6426 | esac |
---|
6427 | |
---|
6428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
6429 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
6430 | # line-number line before each line; the second 'sed' does the real |
---|
6431 | # work. The second script uses 'N' to pair each line-number line |
---|
6432 | # with the numbered line, and appends trailing '-' during |
---|
6433 | # substitution so that $LINENO is not a special case at line end. |
---|
6434 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
6435 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
6436 | sed '=' <$as_myself | |
---|
6437 | sed ' |
---|
6438 | N |
---|
6439 | s,$,-, |
---|
6440 | : loop |
---|
6441 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
6442 | t loop |
---|
6443 | s,-$,, |
---|
6444 | s,^['$as_cr_digits']*\n,, |
---|
6445 | ' >$as_me.lineno && |
---|
6446 | chmod +x $as_me.lineno || |
---|
6447 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
6448 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
6449 | { (exit 1); exit 1; }; } |
---|
6450 | |
---|
6451 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
6452 | # (the dirname of $[0] is not the place where we might find the |
---|
6453 | # original and so on. Autoconf is especially sensible to this). |
---|
6454 | . ./$as_me.lineno |
---|
6455 | # Exit status is that of the last command. |
---|
6456 | exit |
---|
6457 | } |
---|
6458 | |
---|
6459 | |
---|
6460 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
6461 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
6462 | ' ECHO_T=' ' ;; |
---|
6463 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
6464 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
6465 | esac |
---|
6466 | |
---|
6467 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6468 | as_expr=expr |
---|
6469 | else |
---|
6470 | as_expr=false |
---|
6471 | fi |
---|
6472 | |
---|
6473 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6474 | echo >conf$$.file |
---|
6475 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6476 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
6477 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
6478 | if test -f conf$$.exe; then |
---|
6479 | # Don't use ln at all; we don't have any links |
---|
6480 | as_ln_s='cp -p' |
---|
6481 | else |
---|
6482 | as_ln_s='ln -s' |
---|
6483 | fi |
---|
6484 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6485 | as_ln_s=ln |
---|
6486 | else |
---|
6487 | as_ln_s='cp -p' |
---|
6488 | fi |
---|
6489 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6490 | |
---|
6491 | if mkdir -p . 2>/dev/null; then |
---|
6492 | as_mkdir_p=: |
---|
6493 | else |
---|
6494 | test -d ./-p && rmdir ./-p |
---|
6495 | as_mkdir_p=false |
---|
6496 | fi |
---|
6497 | |
---|
6498 | as_executable_p="test -f" |
---|
6499 | |
---|
6500 | # Sed expression to map a string onto a valid CPP name. |
---|
6501 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6502 | |
---|
6503 | # Sed expression to map a string onto a valid variable name. |
---|
6504 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6505 | |
---|
6506 | |
---|
6507 | # IFS |
---|
6508 | # We need space, tab and new line, in precisely that order. |
---|
6509 | as_nl=' |
---|
6510 | ' |
---|
6511 | IFS=" $as_nl" |
---|
6512 | |
---|
6513 | # CDPATH. |
---|
6514 | $as_unset CDPATH |
---|
6515 | |
---|
6516 | exec 6>&1 |
---|
6517 | |
---|
6518 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
6519 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6520 | # values after options handling. Logging --version etc. is OK. |
---|
6521 | exec 5>>config.log |
---|
6522 | { |
---|
6523 | echo |
---|
6524 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6525 | ## Running $as_me. ## |
---|
6526 | _ASBOX |
---|
6527 | } >&5 |
---|
6528 | cat >&5 <<_CSEOF |
---|
6529 | |
---|
6530 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
6531 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
6532 | |
---|
6533 | CONFIG_FILES = $CONFIG_FILES |
---|
6534 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6535 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6536 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6537 | $ $0 $@ |
---|
6538 | |
---|
6539 | _CSEOF |
---|
6540 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
6541 | echo >&5 |
---|
6542 | _ACEOF |
---|
6543 | |
---|
6544 | # Files that config.status was made for. |
---|
6545 | if test -n "$ac_config_files"; then |
---|
6546 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
6547 | fi |
---|
6548 | |
---|
6549 | if test -n "$ac_config_headers"; then |
---|
6550 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
6551 | fi |
---|
6552 | |
---|
6553 | if test -n "$ac_config_links"; then |
---|
6554 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
6555 | fi |
---|
6556 | |
---|
6557 | if test -n "$ac_config_commands"; then |
---|
6558 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
6559 | fi |
---|
6560 | |
---|
6561 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6562 | |
---|
6563 | ac_cs_usage="\ |
---|
6564 | \`$as_me' instantiates files from templates according to the |
---|
6565 | current configuration. |
---|
6566 | |
---|
6567 | Usage: $0 [OPTIONS] [FILE]... |
---|
6568 | |
---|
6569 | -h, --help print this help, then exit |
---|
6570 | -V, --version print version number, then exit |
---|
6571 | -q, --quiet do not print progress messages |
---|
6572 | -d, --debug don't remove temporary files |
---|
6573 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6574 | --file=FILE[:TEMPLATE] |
---|
6575 | instantiate the configuration file FILE |
---|
6576 | --header=FILE[:TEMPLATE] |
---|
6577 | instantiate the configuration header FILE |
---|
6578 | |
---|
6579 | Configuration files: |
---|
6580 | $config_files |
---|
6581 | |
---|
6582 | Configuration headers: |
---|
6583 | $config_headers |
---|
6584 | |
---|
6585 | Configuration commands: |
---|
6586 | $config_commands |
---|
6587 | |
---|
6588 | Report bugs to <bug-autoconf@gnu.org>." |
---|
6589 | _ACEOF |
---|
6590 | |
---|
6591 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6592 | ac_cs_version="\\ |
---|
6593 | orxonox config.status 0.1-pre-alpha |
---|
6594 | configured by $0, generated by GNU Autoconf 2.59, |
---|
6595 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
6596 | |
---|
6597 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
6598 | This config.status script is free software; the Free Software Foundation |
---|
6599 | gives unlimited permission to copy, distribute and modify it." |
---|
6600 | srcdir=$srcdir |
---|
6601 | INSTALL="$INSTALL" |
---|
6602 | _ACEOF |
---|
6603 | |
---|
6604 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6605 | # If no file are specified by the user, then we need to provide default |
---|
6606 | # value. By we need to know if files were specified by the user. |
---|
6607 | ac_need_defaults=: |
---|
6608 | while test $# != 0 |
---|
6609 | do |
---|
6610 | case $1 in |
---|
6611 | --*=*) |
---|
6612 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
6613 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
6614 | ac_shift=: |
---|
6615 | ;; |
---|
6616 | -*) |
---|
6617 | ac_option=$1 |
---|
6618 | ac_optarg=$2 |
---|
6619 | ac_shift=shift |
---|
6620 | ;; |
---|
6621 | *) # This is not an option, so the user has probably given explicit |
---|
6622 | # arguments. |
---|
6623 | ac_option=$1 |
---|
6624 | ac_need_defaults=false;; |
---|
6625 | esac |
---|
6626 | |
---|
6627 | case $ac_option in |
---|
6628 | # Handling of the options. |
---|
6629 | _ACEOF |
---|
6630 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6631 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6632 | ac_cs_recheck=: ;; |
---|
6633 | --version | --vers* | -V ) |
---|
6634 | echo "$ac_cs_version"; exit 0 ;; |
---|
6635 | --he | --h) |
---|
6636 | # Conflict between --help and --header |
---|
6637 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
6638 | Try \`$0 --help' for more information." >&5 |
---|
6639 | echo "$as_me: error: ambiguous option: $1 |
---|
6640 | Try \`$0 --help' for more information." >&2;} |
---|
6641 | { (exit 1); exit 1; }; };; |
---|
6642 | --help | --hel | -h ) |
---|
6643 | echo "$ac_cs_usage"; exit 0 ;; |
---|
6644 | --debug | --d* | -d ) |
---|
6645 | debug=: ;; |
---|
6646 | --file | --fil | --fi | --f ) |
---|
6647 | $ac_shift |
---|
6648 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
6649 | ac_need_defaults=false;; |
---|
6650 | --header | --heade | --head | --hea ) |
---|
6651 | $ac_shift |
---|
6652 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
6653 | ac_need_defaults=false;; |
---|
6654 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6655 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6656 | ac_cs_silent=: ;; |
---|
6657 | |
---|
6658 | # This is an error. |
---|
6659 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
6660 | Try \`$0 --help' for more information." >&5 |
---|
6661 | echo "$as_me: error: unrecognized option: $1 |
---|
6662 | Try \`$0 --help' for more information." >&2;} |
---|
6663 | { (exit 1); exit 1; }; } ;; |
---|
6664 | |
---|
6665 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
6666 | |
---|
6667 | esac |
---|
6668 | shift |
---|
6669 | done |
---|
6670 | |
---|
6671 | ac_configure_extra_args= |
---|
6672 | |
---|
6673 | if $ac_cs_silent; then |
---|
6674 | exec 6>/dev/null |
---|
6675 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6676 | fi |
---|
6677 | |
---|
6678 | _ACEOF |
---|
6679 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6680 | if \$ac_cs_recheck; then |
---|
6681 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
6682 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6683 | fi |
---|
6684 | |
---|
6685 | _ACEOF |
---|
6686 | |
---|
6687 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6688 | # |
---|
6689 | # INIT-COMMANDS section. |
---|
6690 | # |
---|
6691 | |
---|
6692 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6693 | |
---|
6694 | _ACEOF |
---|
6695 | |
---|
6696 | |
---|
6697 | |
---|
6698 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6699 | for ac_config_target in $ac_config_targets |
---|
6700 | do |
---|
6701 | case "$ac_config_target" in |
---|
6702 | # Handling of arguments. |
---|
6703 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6704 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
6705 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
6706 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6707 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
6708 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6709 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
6710 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
6711 | { (exit 1); exit 1; }; };; |
---|
6712 | esac |
---|
6713 | done |
---|
6714 | |
---|
6715 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6716 | # then the envvar interface is used. Set only those that are not. |
---|
6717 | # We use the long form for the default assignment because of an extremely |
---|
6718 | # bizarre bug on SunOS 4.1.3. |
---|
6719 | if $ac_need_defaults; then |
---|
6720 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6721 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6722 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6723 | fi |
---|
6724 | |
---|
6725 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6726 | # simply because there is no reason to put it here, and in addition, |
---|
6727 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6728 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
6729 | $debug || |
---|
6730 | { |
---|
6731 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
6732 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
6733 | } |
---|
6734 | |
---|
6735 | # Create a (secure) tmp directory for tmp files. |
---|
6736 | |
---|
6737 | { |
---|
6738 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
6739 | test -n "$tmp" && test -d "$tmp" |
---|
6740 | } || |
---|
6741 | { |
---|
6742 | tmp=./confstat$$-$RANDOM |
---|
6743 | (umask 077 && mkdir $tmp) |
---|
6744 | } || |
---|
6745 | { |
---|
6746 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
6747 | { (exit 1); exit 1; } |
---|
6748 | } |
---|
6749 | |
---|
6750 | _ACEOF |
---|
6751 | |
---|
6752 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6753 | |
---|
6754 | # |
---|
6755 | # CONFIG_FILES section. |
---|
6756 | # |
---|
6757 | |
---|
6758 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
6759 | # This happens for instance when ./config.status config.h |
---|
6760 | if test -n "\$CONFIG_FILES"; then |
---|
6761 | # Protect against being on the right side of a sed subst in config.status. |
---|
6762 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
6763 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
6764 | s,@SHELL@,$SHELL,;t t |
---|
6765 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
6766 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
6767 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
6768 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
6769 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
6770 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
6771 | s,@exec_prefix@,$exec_prefix,;t t |
---|
6772 | s,@prefix@,$prefix,;t t |
---|
6773 | s,@program_transform_name@,$program_transform_name,;t t |
---|
6774 | s,@bindir@,$bindir,;t t |
---|
6775 | s,@sbindir@,$sbindir,;t t |
---|
6776 | s,@libexecdir@,$libexecdir,;t t |
---|
6777 | s,@datadir@,$datadir,;t t |
---|
6778 | s,@sysconfdir@,$sysconfdir,;t t |
---|
6779 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
6780 | s,@localstatedir@,$localstatedir,;t t |
---|
6781 | s,@libdir@,$libdir,;t t |
---|
6782 | s,@includedir@,$includedir,;t t |
---|
6783 | s,@oldincludedir@,$oldincludedir,;t t |
---|
6784 | s,@infodir@,$infodir,;t t |
---|
6785 | s,@mandir@,$mandir,;t t |
---|
6786 | s,@build_alias@,$build_alias,;t t |
---|
6787 | s,@host_alias@,$host_alias,;t t |
---|
6788 | s,@target_alias@,$target_alias,;t t |
---|
6789 | s,@DEFS@,$DEFS,;t t |
---|
6790 | s,@ECHO_C@,$ECHO_C,;t t |
---|
6791 | s,@ECHO_N@,$ECHO_N,;t t |
---|
6792 | s,@ECHO_T@,$ECHO_T,;t t |
---|
6793 | s,@LIBS@,$LIBS,;t t |
---|
6794 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
6795 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
6796 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
6797 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
6798 | s,@PACKAGE@,$PACKAGE,;t t |
---|
6799 | s,@VERSION@,$VERSION,;t t |
---|
6800 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
6801 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
6802 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
6803 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
6804 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
6805 | s,@AMTAR@,$AMTAR,;t t |
---|
6806 | s,@install_sh@,$install_sh,;t t |
---|
6807 | s,@STRIP@,$STRIP,;t t |
---|
6808 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
6809 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
6810 | s,@AWK@,$AWK,;t t |
---|
6811 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
6812 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
6813 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
6814 | s,@CXX@,$CXX,;t t |
---|
6815 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
6816 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
6817 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
6818 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
6819 | s,@EXEEXT@,$EXEEXT,;t t |
---|
6820 | s,@OBJEXT@,$OBJEXT,;t t |
---|
6821 | s,@DEPDIR@,$DEPDIR,;t t |
---|
6822 | s,@am__include@,$am__include,;t t |
---|
6823 | s,@am__quote@,$am__quote,;t t |
---|
6824 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
6825 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
6826 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
6827 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
6828 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
6829 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
6830 | s,@CC@,$CC,;t t |
---|
6831 | s,@CFLAGS@,$CFLAGS,;t t |
---|
6832 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
6833 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
6834 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
6835 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
6836 | s,@CPP@,$CPP,;t t |
---|
6837 | s,@EGREP@,$EGREP,;t t |
---|
6838 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
6839 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
6840 | CEOF |
---|
6841 | |
---|
6842 | _ACEOF |
---|
6843 | |
---|
6844 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6845 | # Split the substitutions into bite-sized pieces for seds with |
---|
6846 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
6847 | ac_max_sed_lines=48 |
---|
6848 | ac_sed_frag=1 # Number of current file. |
---|
6849 | ac_beg=1 # First line for current file. |
---|
6850 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
6851 | ac_more_lines=: |
---|
6852 | ac_sed_cmds= |
---|
6853 | while $ac_more_lines; do |
---|
6854 | if test $ac_beg -gt 1; then |
---|
6855 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6856 | else |
---|
6857 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6858 | fi |
---|
6859 | if test ! -s $tmp/subs.frag; then |
---|
6860 | ac_more_lines=false |
---|
6861 | else |
---|
6862 | # The purpose of the label and of the branching condition is to |
---|
6863 | # speed up the sed processing (if there are no `@' at all, there |
---|
6864 | # is no need to browse any of the substitutions). |
---|
6865 | # These are the two extra sed commands mentioned above. |
---|
6866 | (echo ':t |
---|
6867 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
6868 | if test -z "$ac_sed_cmds"; then |
---|
6869 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6870 | else |
---|
6871 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6872 | fi |
---|
6873 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
6874 | ac_beg=$ac_end |
---|
6875 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
6876 | fi |
---|
6877 | done |
---|
6878 | if test -z "$ac_sed_cmds"; then |
---|
6879 | ac_sed_cmds=cat |
---|
6880 | fi |
---|
6881 | fi # test -n "$CONFIG_FILES" |
---|
6882 | |
---|
6883 | _ACEOF |
---|
6884 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6885 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
6886 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6887 | case $ac_file in |
---|
6888 | - | *:- | *:-:* ) # input from stdin |
---|
6889 | cat >$tmp/stdin |
---|
6890 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6891 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6892 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6893 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6894 | * ) ac_file_in=$ac_file.in ;; |
---|
6895 | esac |
---|
6896 | |
---|
6897 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
6898 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6899 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6900 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6901 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6902 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6903 | . : '\(.\)' 2>/dev/null || |
---|
6904 | echo X"$ac_file" | |
---|
6905 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6906 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6907 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6908 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6909 | s/.*/./; q'` |
---|
6910 | { if $as_mkdir_p; then |
---|
6911 | mkdir -p "$ac_dir" |
---|
6912 | else |
---|
6913 | as_dir="$ac_dir" |
---|
6914 | as_dirs= |
---|
6915 | while test ! -d "$as_dir"; do |
---|
6916 | as_dirs="$as_dir $as_dirs" |
---|
6917 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
6918 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6919 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6920 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6921 | X"$as_dir" : 'X\(/\)' \| \ |
---|
6922 | . : '\(.\)' 2>/dev/null || |
---|
6923 | echo X"$as_dir" | |
---|
6924 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6925 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6926 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6927 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6928 | s/.*/./; q'` |
---|
6929 | done |
---|
6930 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
6931 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
6932 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
6933 | { (exit 1); exit 1; }; }; } |
---|
6934 | |
---|
6935 | ac_builddir=. |
---|
6936 | |
---|
6937 | if test "$ac_dir" != .; then |
---|
6938 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
6939 | # A "../" for each directory in $ac_dir_suffix. |
---|
6940 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
6941 | else |
---|
6942 | ac_dir_suffix= ac_top_builddir= |
---|
6943 | fi |
---|
6944 | |
---|
6945 | case $srcdir in |
---|
6946 | .) # No --srcdir option. We are building in place. |
---|
6947 | ac_srcdir=. |
---|
6948 | if test -z "$ac_top_builddir"; then |
---|
6949 | ac_top_srcdir=. |
---|
6950 | else |
---|
6951 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
6952 | fi ;; |
---|
6953 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
6954 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6955 | ac_top_srcdir=$srcdir ;; |
---|
6956 | *) # Relative path. |
---|
6957 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
6958 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
6959 | esac |
---|
6960 | |
---|
6961 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
6962 | # the directories may not exist. |
---|
6963 | case `pwd` in |
---|
6964 | .) ac_abs_builddir="$ac_dir";; |
---|
6965 | *) |
---|
6966 | case "$ac_dir" in |
---|
6967 | .) ac_abs_builddir=`pwd`;; |
---|
6968 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
6969 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
6970 | esac;; |
---|
6971 | esac |
---|
6972 | case $ac_abs_builddir in |
---|
6973 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
6974 | *) |
---|
6975 | case ${ac_top_builddir}. in |
---|
6976 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
6977 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
6978 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
6979 | esac;; |
---|
6980 | esac |
---|
6981 | case $ac_abs_builddir in |
---|
6982 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
6983 | *) |
---|
6984 | case $ac_srcdir in |
---|
6985 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
6986 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
6987 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
6988 | esac;; |
---|
6989 | esac |
---|
6990 | case $ac_abs_builddir in |
---|
6991 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
6992 | *) |
---|
6993 | case $ac_top_srcdir in |
---|
6994 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
6995 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
6996 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
6997 | esac;; |
---|
6998 | esac |
---|
6999 | |
---|
7000 | |
---|
7001 | case $INSTALL in |
---|
7002 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7003 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
7004 | esac |
---|
7005 | |
---|
7006 | if test x"$ac_file" != x-; then |
---|
7007 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7008 | echo "$as_me: creating $ac_file" >&6;} |
---|
7009 | rm -f "$ac_file" |
---|
7010 | fi |
---|
7011 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7012 | # use $as_me), people would be surprised to read: |
---|
7013 | # /* config.h. Generated by config.status. */ |
---|
7014 | if test x"$ac_file" = x-; then |
---|
7015 | configure_input= |
---|
7016 | else |
---|
7017 | configure_input="$ac_file. " |
---|
7018 | fi |
---|
7019 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
7020 | sed 's,.*/,,'` by configure." |
---|
7021 | |
---|
7022 | # First look for the input files in the build tree, otherwise in the |
---|
7023 | # src tree. |
---|
7024 | ac_file_inputs=`IFS=: |
---|
7025 | for f in $ac_file_in; do |
---|
7026 | case $f in |
---|
7027 | -) echo $tmp/stdin ;; |
---|
7028 | [\\/$]*) |
---|
7029 | # Absolute (can't be DOS-style, as IFS=:) |
---|
7030 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7031 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7032 | { (exit 1); exit 1; }; } |
---|
7033 | echo "$f";; |
---|
7034 | *) # Relative |
---|
7035 | if test -f "$f"; then |
---|
7036 | # Build tree |
---|
7037 | echo "$f" |
---|
7038 | elif test -f "$srcdir/$f"; then |
---|
7039 | # Source tree |
---|
7040 | echo "$srcdir/$f" |
---|
7041 | else |
---|
7042 | # /dev/null tree |
---|
7043 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7044 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7045 | { (exit 1); exit 1; }; } |
---|
7046 | fi;; |
---|
7047 | esac |
---|
7048 | done` || { (exit 1); exit 1; } |
---|
7049 | _ACEOF |
---|
7050 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7051 | sed "$ac_vpsub |
---|
7052 | $extrasub |
---|
7053 | _ACEOF |
---|
7054 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7055 | :t |
---|
7056 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7057 | s,@configure_input@,$configure_input,;t t |
---|
7058 | s,@srcdir@,$ac_srcdir,;t t |
---|
7059 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
7060 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
7061 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
7062 | s,@builddir@,$ac_builddir,;t t |
---|
7063 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
7064 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
7065 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
7066 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
7067 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
7068 | rm -f $tmp/stdin |
---|
7069 | if test x"$ac_file" != x-; then |
---|
7070 | mv $tmp/out $ac_file |
---|
7071 | else |
---|
7072 | cat $tmp/out |
---|
7073 | rm -f $tmp/out |
---|
7074 | fi |
---|
7075 | |
---|
7076 | done |
---|
7077 | _ACEOF |
---|
7078 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7079 | |
---|
7080 | # |
---|
7081 | # CONFIG_HEADER section. |
---|
7082 | # |
---|
7083 | |
---|
7084 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
7085 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
7086 | # |
---|
7087 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
7088 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
7089 | ac_dB='[ ].*$,\1#\2' |
---|
7090 | ac_dC=' ' |
---|
7091 | ac_dD=',;t' |
---|
7092 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
7093 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7094 | ac_uB='$,\1#\2define\3' |
---|
7095 | ac_uC=' ' |
---|
7096 | ac_uD=',;t' |
---|
7097 | |
---|
7098 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
7099 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7100 | case $ac_file in |
---|
7101 | - | *:- | *:-:* ) # input from stdin |
---|
7102 | cat >$tmp/stdin |
---|
7103 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7104 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7105 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7106 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7107 | * ) ac_file_in=$ac_file.in ;; |
---|
7108 | esac |
---|
7109 | |
---|
7110 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7111 | echo "$as_me: creating $ac_file" >&6;} |
---|
7112 | |
---|
7113 | # First look for the input files in the build tree, otherwise in the |
---|
7114 | # src tree. |
---|
7115 | ac_file_inputs=`IFS=: |
---|
7116 | for f in $ac_file_in; do |
---|
7117 | case $f in |
---|
7118 | -) echo $tmp/stdin ;; |
---|
7119 | [\\/$]*) |
---|
7120 | # Absolute (can't be DOS-style, as IFS=:) |
---|
7121 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7122 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7123 | { (exit 1); exit 1; }; } |
---|
7124 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
7125 | echo "$f";; |
---|
7126 | *) # Relative |
---|
7127 | if test -f "$f"; then |
---|
7128 | # Build tree |
---|
7129 | echo "$f" |
---|
7130 | elif test -f "$srcdir/$f"; then |
---|
7131 | # Source tree |
---|
7132 | echo "$srcdir/$f" |
---|
7133 | else |
---|
7134 | # /dev/null tree |
---|
7135 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7136 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7137 | { (exit 1); exit 1; }; } |
---|
7138 | fi;; |
---|
7139 | esac |
---|
7140 | done` || { (exit 1); exit 1; } |
---|
7141 | # Remove the trailing spaces. |
---|
7142 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
7143 | |
---|
7144 | _ACEOF |
---|
7145 | |
---|
7146 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
7147 | # `conftest.undefs', that substitutes the proper values into |
---|
7148 | # config.h.in to produce config.h. The first handles `#define' |
---|
7149 | # templates, and the second `#undef' templates. |
---|
7150 | # And first: Protect against being on the right side of a sed subst in |
---|
7151 | # config.status. Protect against being in an unquoted here document |
---|
7152 | # in config.status. |
---|
7153 | rm -f conftest.defines conftest.undefs |
---|
7154 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
7155 | # Putting comments in sed scripts is not portable. |
---|
7156 | # |
---|
7157 | # `end' is used to avoid that the second main sed command (meant for |
---|
7158 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
7159 | # See the Autoconf documentation for `clear'. |
---|
7160 | cat >confdef2sed.sed <<\_ACEOF |
---|
7161 | s/[\\&,]/\\&/g |
---|
7162 | s,[\\$`],\\&,g |
---|
7163 | t clear |
---|
7164 | : clear |
---|
7165 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
7166 | t end |
---|
7167 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
7168 | : end |
---|
7169 | _ACEOF |
---|
7170 | # If some macros were called several times there might be several times |
---|
7171 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
7172 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
7173 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
7174 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
7175 | rm -f confdef2sed.sed |
---|
7176 | |
---|
7177 | # This sed command replaces #undef with comments. This is necessary, for |
---|
7178 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
7179 | # on some systems where configure will not decide to define it. |
---|
7180 | cat >>conftest.undefs <<\_ACEOF |
---|
7181 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
7182 | _ACEOF |
---|
7183 | |
---|
7184 | # Break up conftest.defines because some shells have a limit on the size |
---|
7185 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7186 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
7187 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
7188 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
7189 | echo ' :' >>$CONFIG_STATUS |
---|
7190 | rm -f conftest.tail |
---|
7191 | while grep . conftest.defines >/dev/null |
---|
7192 | do |
---|
7193 | # Write a limited-size here document to $tmp/defines.sed. |
---|
7194 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
7195 | # Speed up: don't consider the non `#define' lines. |
---|
7196 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
7197 | # Work around the forget-to-reset-the-flag bug. |
---|
7198 | echo 't clr' >>$CONFIG_STATUS |
---|
7199 | echo ': clr' >>$CONFIG_STATUS |
---|
7200 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
7201 | echo 'CEOF |
---|
7202 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
7203 | rm -f $tmp/in |
---|
7204 | mv $tmp/out $tmp/in |
---|
7205 | ' >>$CONFIG_STATUS |
---|
7206 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
7207 | rm -f conftest.defines |
---|
7208 | mv conftest.tail conftest.defines |
---|
7209 | done |
---|
7210 | rm -f conftest.defines |
---|
7211 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
7212 | echo >>$CONFIG_STATUS |
---|
7213 | |
---|
7214 | # Break up conftest.undefs because some shells have a limit on the size |
---|
7215 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7216 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
7217 | rm -f conftest.tail |
---|
7218 | while grep . conftest.undefs >/dev/null |
---|
7219 | do |
---|
7220 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
7221 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
7222 | # Speed up: don't consider the non `#undef' |
---|
7223 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
7224 | # Work around the forget-to-reset-the-flag bug. |
---|
7225 | echo 't clr' >>$CONFIG_STATUS |
---|
7226 | echo ': clr' >>$CONFIG_STATUS |
---|
7227 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
7228 | echo 'CEOF |
---|
7229 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
7230 | rm -f $tmp/in |
---|
7231 | mv $tmp/out $tmp/in |
---|
7232 | ' >>$CONFIG_STATUS |
---|
7233 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
7234 | rm -f conftest.undefs |
---|
7235 | mv conftest.tail conftest.undefs |
---|
7236 | done |
---|
7237 | rm -f conftest.undefs |
---|
7238 | |
---|
7239 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7240 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7241 | # use $as_me), people would be surprised to read: |
---|
7242 | # /* config.h. Generated by config.status. */ |
---|
7243 | if test x"$ac_file" = x-; then |
---|
7244 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
7245 | else |
---|
7246 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
7247 | fi |
---|
7248 | cat $tmp/in >>$tmp/config.h |
---|
7249 | rm -f $tmp/in |
---|
7250 | if test x"$ac_file" != x-; then |
---|
7251 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
7252 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
7253 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7254 | else |
---|
7255 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
7256 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7257 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7258 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7259 | X"$ac_file" : 'X\(/\)' \| \ |
---|
7260 | . : '\(.\)' 2>/dev/null || |
---|
7261 | echo X"$ac_file" | |
---|
7262 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7263 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7264 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7265 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7266 | s/.*/./; q'` |
---|
7267 | { if $as_mkdir_p; then |
---|
7268 | mkdir -p "$ac_dir" |
---|
7269 | else |
---|
7270 | as_dir="$ac_dir" |
---|
7271 | as_dirs= |
---|
7272 | while test ! -d "$as_dir"; do |
---|
7273 | as_dirs="$as_dir $as_dirs" |
---|
7274 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7275 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7276 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7277 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7278 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7279 | . : '\(.\)' 2>/dev/null || |
---|
7280 | echo X"$as_dir" | |
---|
7281 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7282 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7283 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7284 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7285 | s/.*/./; q'` |
---|
7286 | done |
---|
7287 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7288 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7289 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7290 | { (exit 1); exit 1; }; }; } |
---|
7291 | |
---|
7292 | rm -f $ac_file |
---|
7293 | mv $tmp/config.h $ac_file |
---|
7294 | fi |
---|
7295 | else |
---|
7296 | cat $tmp/config.h |
---|
7297 | rm -f $tmp/config.h |
---|
7298 | fi |
---|
7299 | # Compute $ac_file's index in $config_headers. |
---|
7300 | _am_stamp_count=1 |
---|
7301 | for _am_header in $config_headers :; do |
---|
7302 | case $_am_header in |
---|
7303 | $ac_file | $ac_file:* ) |
---|
7304 | break ;; |
---|
7305 | * ) |
---|
7306 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7307 | esac |
---|
7308 | done |
---|
7309 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
7310 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7311 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
7312 | X$ac_file : 'X\(//\)$' \| \ |
---|
7313 | X$ac_file : 'X\(/\)' \| \ |
---|
7314 | . : '\(.\)' 2>/dev/null || |
---|
7315 | echo X$ac_file | |
---|
7316 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7317 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7318 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7319 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7320 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7321 | done |
---|
7322 | _ACEOF |
---|
7323 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7324 | |
---|
7325 | # |
---|
7326 | # CONFIG_COMMANDS section. |
---|
7327 | # |
---|
7328 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
7329 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
7330 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7331 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
7332 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7333 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
7334 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
7335 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
7336 | . : '\(.\)' 2>/dev/null || |
---|
7337 | echo X"$ac_dest" | |
---|
7338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7339 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7340 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7341 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7342 | s/.*/./; q'` |
---|
7343 | { if $as_mkdir_p; then |
---|
7344 | mkdir -p "$ac_dir" |
---|
7345 | else |
---|
7346 | as_dir="$ac_dir" |
---|
7347 | as_dirs= |
---|
7348 | while test ! -d "$as_dir"; do |
---|
7349 | as_dirs="$as_dir $as_dirs" |
---|
7350 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7351 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7352 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7353 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7354 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7355 | . : '\(.\)' 2>/dev/null || |
---|
7356 | echo X"$as_dir" | |
---|
7357 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7358 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7359 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7360 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7361 | s/.*/./; q'` |
---|
7362 | done |
---|
7363 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7364 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7365 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7366 | { (exit 1); exit 1; }; }; } |
---|
7367 | |
---|
7368 | ac_builddir=. |
---|
7369 | |
---|
7370 | if test "$ac_dir" != .; then |
---|
7371 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7372 | # A "../" for each directory in $ac_dir_suffix. |
---|
7373 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7374 | else |
---|
7375 | ac_dir_suffix= ac_top_builddir= |
---|
7376 | fi |
---|
7377 | |
---|
7378 | case $srcdir in |
---|
7379 | .) # No --srcdir option. We are building in place. |
---|
7380 | ac_srcdir=. |
---|
7381 | if test -z "$ac_top_builddir"; then |
---|
7382 | ac_top_srcdir=. |
---|
7383 | else |
---|
7384 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7385 | fi ;; |
---|
7386 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7387 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7388 | ac_top_srcdir=$srcdir ;; |
---|
7389 | *) # Relative path. |
---|
7390 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7391 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7392 | esac |
---|
7393 | |
---|
7394 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
7395 | # the directories may not exist. |
---|
7396 | case `pwd` in |
---|
7397 | .) ac_abs_builddir="$ac_dir";; |
---|
7398 | *) |
---|
7399 | case "$ac_dir" in |
---|
7400 | .) ac_abs_builddir=`pwd`;; |
---|
7401 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
7402 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
7403 | esac;; |
---|
7404 | esac |
---|
7405 | case $ac_abs_builddir in |
---|
7406 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7407 | *) |
---|
7408 | case ${ac_top_builddir}. in |
---|
7409 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
7410 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7411 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
7412 | esac;; |
---|
7413 | esac |
---|
7414 | case $ac_abs_builddir in |
---|
7415 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
7416 | *) |
---|
7417 | case $ac_srcdir in |
---|
7418 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
7419 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
7420 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
7421 | esac;; |
---|
7422 | esac |
---|
7423 | case $ac_abs_builddir in |
---|
7424 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7425 | *) |
---|
7426 | case $ac_top_srcdir in |
---|
7427 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
7428 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7429 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
7430 | esac;; |
---|
7431 | esac |
---|
7432 | |
---|
7433 | |
---|
7434 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
7435 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
7436 | case $ac_dest in |
---|
7437 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
7438 | # Strip MF so we end up with the name of the file. |
---|
7439 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7440 | # Check whether this is an Automake generated Makefile or not. |
---|
7441 | # We used to match only the files named `Makefile.in', but |
---|
7442 | # some people rename them; so instead we look at the file content. |
---|
7443 | # Grep'ing the first line is not enough: some people post-process |
---|
7444 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7445 | # So let's grep whole file. |
---|
7446 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
7447 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
7448 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7449 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7450 | X"$mf" : 'X\(//\)$' \| \ |
---|
7451 | X"$mf" : 'X\(/\)' \| \ |
---|
7452 | . : '\(.\)' 2>/dev/null || |
---|
7453 | echo X"$mf" | |
---|
7454 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7455 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7456 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7457 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7458 | s/.*/./; q'` |
---|
7459 | else |
---|
7460 | continue |
---|
7461 | fi |
---|
7462 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
7463 | # Extract the definition of DEP_FILES from the Makefile without |
---|
7464 | # running `make'. |
---|
7465 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
7466 | test -z "$DEPDIR" && continue |
---|
7467 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7468 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
7469 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
7470 | # We invoke sed twice because it is the simplest approach to |
---|
7471 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
7472 | for file in `sed -n -e ' |
---|
7473 | /^DEP_FILES = .*\\\\$/ { |
---|
7474 | s/^DEP_FILES = // |
---|
7475 | :loop |
---|
7476 | s/\\\\$// |
---|
7477 | p |
---|
7478 | n |
---|
7479 | /\\\\$/ b loop |
---|
7480 | p |
---|
7481 | } |
---|
7482 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
7483 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7484 | # Make sure the directory exists. |
---|
7485 | test -f "$dirpart/$file" && continue |
---|
7486 | fdir=`(dirname "$file") 2>/dev/null || |
---|
7487 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7488 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7489 | X"$file" : 'X\(//\)$' \| \ |
---|
7490 | X"$file" : 'X\(/\)' \| \ |
---|
7491 | . : '\(.\)' 2>/dev/null || |
---|
7492 | echo X"$file" | |
---|
7493 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7494 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7495 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7496 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7497 | s/.*/./; q'` |
---|
7498 | { if $as_mkdir_p; then |
---|
7499 | mkdir -p $dirpart/$fdir |
---|
7500 | else |
---|
7501 | as_dir=$dirpart/$fdir |
---|
7502 | as_dirs= |
---|
7503 | while test ! -d "$as_dir"; do |
---|
7504 | as_dirs="$as_dir $as_dirs" |
---|
7505 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7506 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7507 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7508 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7509 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7510 | . : '\(.\)' 2>/dev/null || |
---|
7511 | echo X"$as_dir" | |
---|
7512 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7513 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7514 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7515 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7516 | s/.*/./; q'` |
---|
7517 | done |
---|
7518 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7519 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
7520 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
7521 | { (exit 1); exit 1; }; }; } |
---|
7522 | |
---|
7523 | # echo "creating $dirpart/$file" |
---|
7524 | echo '# dummy' > "$dirpart/$file" |
---|
7525 | done |
---|
7526 | done |
---|
7527 | ;; |
---|
7528 | esac |
---|
7529 | done |
---|
7530 | _ACEOF |
---|
7531 | |
---|
7532 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7533 | |
---|
7534 | { (exit 0); exit 0; } |
---|
7535 | _ACEOF |
---|
7536 | chmod +x $CONFIG_STATUS |
---|
7537 | ac_clean_files=$ac_clean_files_save |
---|
7538 | |
---|
7539 | |
---|
7540 | # configure is writing to config.log, and then calls config.status. |
---|
7541 | # config.status does its own redirection, appending to config.log. |
---|
7542 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7543 | # by configure, so config.status won't be able to write to it; its |
---|
7544 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7545 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7546 | # appended to by config.status. When coming back to configure, we |
---|
7547 | # need to make the FD available again. |
---|
7548 | if test "$no_create" != yes; then |
---|
7549 | ac_cs_success=: |
---|
7550 | ac_config_status_args= |
---|
7551 | test "$silent" = yes && |
---|
7552 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7553 | exec 5>/dev/null |
---|
7554 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7555 | exec 5>>config.log |
---|
7556 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7557 | # would make configure fail if this is the last instruction. |
---|
7558 | $ac_cs_success || { (exit 1); exit 1; } |
---|
7559 | fi |
---|
7560 | |
---|