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 | # FIXME: Replace `main' with a function in `-lOSMesa': |
---|
4397 | |
---|
4398 | echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 |
---|
4399 | echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 |
---|
4400 | if test "${ac_cv_lib_OSMesa_main+set}" = set; then |
---|
4401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4402 | else |
---|
4403 | ac_check_lib_save_LIBS=$LIBS |
---|
4404 | LIBS="-lOSMesa $LIBS" |
---|
4405 | cat >conftest.$ac_ext <<_ACEOF |
---|
4406 | /* confdefs.h. */ |
---|
4407 | _ACEOF |
---|
4408 | cat confdefs.h >>conftest.$ac_ext |
---|
4409 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4410 | /* end confdefs.h. */ |
---|
4411 | |
---|
4412 | |
---|
4413 | int |
---|
4414 | main () |
---|
4415 | { |
---|
4416 | main (); |
---|
4417 | ; |
---|
4418 | return 0; |
---|
4419 | } |
---|
4420 | _ACEOF |
---|
4421 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4423 | (eval $ac_link) 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_exeext' |
---|
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_cv_lib_OSMesa_main=yes |
---|
4444 | else |
---|
4445 | echo "$as_me: failed program was:" >&5 |
---|
4446 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4447 | |
---|
4448 | ac_cv_lib_OSMesa_main=no |
---|
4449 | fi |
---|
4450 | rm -f conftest.err conftest.$ac_objext \ |
---|
4451 | conftest$ac_exeext conftest.$ac_ext |
---|
4452 | LIBS=$ac_check_lib_save_LIBS |
---|
4453 | fi |
---|
4454 | echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 |
---|
4455 | echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 |
---|
4456 | if test $ac_cv_lib_OSMesa_main = yes; then |
---|
4457 | cat >>confdefs.h <<_ACEOF |
---|
4458 | #define HAVE_LIBOSMESA 1 |
---|
4459 | _ACEOF |
---|
4460 | |
---|
4461 | LIBS="-lOSMesa $LIBS" |
---|
4462 | |
---|
4463 | fi |
---|
4464 | |
---|
4465 | # FIXME: Replace `main' with a function in `-lX11': |
---|
4466 | |
---|
4467 | echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
---|
4468 | echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
---|
4469 | if test "${ac_cv_lib_X11_main+set}" = set; then |
---|
4470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4471 | else |
---|
4472 | ac_check_lib_save_LIBS=$LIBS |
---|
4473 | LIBS="-lX11 $LIBS" |
---|
4474 | cat >conftest.$ac_ext <<_ACEOF |
---|
4475 | /* confdefs.h. */ |
---|
4476 | _ACEOF |
---|
4477 | cat confdefs.h >>conftest.$ac_ext |
---|
4478 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4479 | /* end confdefs.h. */ |
---|
4480 | |
---|
4481 | |
---|
4482 | int |
---|
4483 | main () |
---|
4484 | { |
---|
4485 | main (); |
---|
4486 | ; |
---|
4487 | return 0; |
---|
4488 | } |
---|
4489 | _ACEOF |
---|
4490 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4492 | (eval $ac_link) 2>conftest.er1 |
---|
4493 | ac_status=$? |
---|
4494 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4495 | rm -f conftest.er1 |
---|
4496 | cat conftest.err >&5 |
---|
4497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4498 | (exit $ac_status); } && |
---|
4499 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4500 | || test ! -s conftest.err' |
---|
4501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4502 | (eval $ac_try) 2>&5 |
---|
4503 | ac_status=$? |
---|
4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4505 | (exit $ac_status); }; } && |
---|
4506 | { ac_try='test -s conftest$ac_exeext' |
---|
4507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4508 | (eval $ac_try) 2>&5 |
---|
4509 | ac_status=$? |
---|
4510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4511 | (exit $ac_status); }; }; then |
---|
4512 | ac_cv_lib_X11_main=yes |
---|
4513 | else |
---|
4514 | echo "$as_me: failed program was:" >&5 |
---|
4515 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4516 | |
---|
4517 | ac_cv_lib_X11_main=no |
---|
4518 | fi |
---|
4519 | rm -f conftest.err conftest.$ac_objext \ |
---|
4520 | conftest$ac_exeext conftest.$ac_ext |
---|
4521 | LIBS=$ac_check_lib_save_LIBS |
---|
4522 | fi |
---|
4523 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 |
---|
4524 | echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 |
---|
4525 | if test $ac_cv_lib_X11_main = yes; then |
---|
4526 | cat >>confdefs.h <<_ACEOF |
---|
4527 | #define HAVE_LIBX11 1 |
---|
4528 | _ACEOF |
---|
4529 | |
---|
4530 | LIBS="-lX11 $LIBS" |
---|
4531 | |
---|
4532 | fi |
---|
4533 | |
---|
4534 | # FIXME: Replace `main' with a function in `-lXt': |
---|
4535 | |
---|
4536 | echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
---|
4537 | echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
---|
4538 | if test "${ac_cv_lib_Xt_main+set}" = set; then |
---|
4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4540 | else |
---|
4541 | ac_check_lib_save_LIBS=$LIBS |
---|
4542 | LIBS="-lXt $LIBS" |
---|
4543 | cat >conftest.$ac_ext <<_ACEOF |
---|
4544 | /* confdefs.h. */ |
---|
4545 | _ACEOF |
---|
4546 | cat confdefs.h >>conftest.$ac_ext |
---|
4547 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4548 | /* end confdefs.h. */ |
---|
4549 | |
---|
4550 | |
---|
4551 | int |
---|
4552 | main () |
---|
4553 | { |
---|
4554 | main (); |
---|
4555 | ; |
---|
4556 | return 0; |
---|
4557 | } |
---|
4558 | _ACEOF |
---|
4559 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4561 | (eval $ac_link) 2>conftest.er1 |
---|
4562 | ac_status=$? |
---|
4563 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4564 | rm -f conftest.er1 |
---|
4565 | cat conftest.err >&5 |
---|
4566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4567 | (exit $ac_status); } && |
---|
4568 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4569 | || test ! -s conftest.err' |
---|
4570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4571 | (eval $ac_try) 2>&5 |
---|
4572 | ac_status=$? |
---|
4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4574 | (exit $ac_status); }; } && |
---|
4575 | { ac_try='test -s conftest$ac_exeext' |
---|
4576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4577 | (eval $ac_try) 2>&5 |
---|
4578 | ac_status=$? |
---|
4579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4580 | (exit $ac_status); }; }; then |
---|
4581 | ac_cv_lib_Xt_main=yes |
---|
4582 | else |
---|
4583 | echo "$as_me: failed program was:" >&5 |
---|
4584 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4585 | |
---|
4586 | ac_cv_lib_Xt_main=no |
---|
4587 | fi |
---|
4588 | rm -f conftest.err conftest.$ac_objext \ |
---|
4589 | conftest$ac_exeext conftest.$ac_ext |
---|
4590 | LIBS=$ac_check_lib_save_LIBS |
---|
4591 | fi |
---|
4592 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 |
---|
4593 | echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 |
---|
4594 | if test $ac_cv_lib_Xt_main = yes; then |
---|
4595 | cat >>confdefs.h <<_ACEOF |
---|
4596 | #define HAVE_LIBXT 1 |
---|
4597 | _ACEOF |
---|
4598 | |
---|
4599 | LIBS="-lXt $LIBS" |
---|
4600 | |
---|
4601 | fi |
---|
4602 | |
---|
4603 | |
---|
4604 | ## mingw CHECK |
---|
4605 | if test $mingw = yes ; then |
---|
4606 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4607 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4608 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4610 | else |
---|
4611 | ac_check_lib_save_LIBS=$LIBS |
---|
4612 | LIBS="-lmingw32 $LIBS" |
---|
4613 | cat >conftest.$ac_ext <<_ACEOF |
---|
4614 | /* confdefs.h. */ |
---|
4615 | _ACEOF |
---|
4616 | cat confdefs.h >>conftest.$ac_ext |
---|
4617 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4618 | /* end confdefs.h. */ |
---|
4619 | |
---|
4620 | |
---|
4621 | int |
---|
4622 | main () |
---|
4623 | { |
---|
4624 | main (); |
---|
4625 | ; |
---|
4626 | return 0; |
---|
4627 | } |
---|
4628 | _ACEOF |
---|
4629 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4631 | (eval $ac_link) 2>conftest.er1 |
---|
4632 | ac_status=$? |
---|
4633 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4634 | rm -f conftest.er1 |
---|
4635 | cat conftest.err >&5 |
---|
4636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4637 | (exit $ac_status); } && |
---|
4638 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4639 | || test ! -s conftest.err' |
---|
4640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4641 | (eval $ac_try) 2>&5 |
---|
4642 | ac_status=$? |
---|
4643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4644 | (exit $ac_status); }; } && |
---|
4645 | { ac_try='test -s conftest$ac_exeext' |
---|
4646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4647 | (eval $ac_try) 2>&5 |
---|
4648 | ac_status=$? |
---|
4649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4650 | (exit $ac_status); }; }; then |
---|
4651 | ac_cv_lib_mingw32_main=yes |
---|
4652 | else |
---|
4653 | echo "$as_me: failed program was:" >&5 |
---|
4654 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4655 | |
---|
4656 | ac_cv_lib_mingw32_main=no |
---|
4657 | fi |
---|
4658 | rm -f conftest.err conftest.$ac_objext \ |
---|
4659 | conftest$ac_exeext conftest.$ac_ext |
---|
4660 | LIBS=$ac_check_lib_save_LIBS |
---|
4661 | fi |
---|
4662 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4663 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4664 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4665 | FOUND_mingw32=yes |
---|
4666 | fi |
---|
4667 | |
---|
4668 | if test $FOUND_mingw32 = "yes"; then |
---|
4669 | LIBS="$LIBS -lmingw32" |
---|
4670 | fi |
---|
4671 | fi |
---|
4672 | |
---|
4673 | ## SDL CHECK |
---|
4674 | |
---|
4675 | #checking for SDL libs |
---|
4676 | |
---|
4677 | for ac_header in SDL/SDL.h |
---|
4678 | do |
---|
4679 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4680 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4681 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4682 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4683 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4685 | fi |
---|
4686 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4687 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4688 | else |
---|
4689 | # Is the header compilable? |
---|
4690 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4691 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4692 | cat >conftest.$ac_ext <<_ACEOF |
---|
4693 | /* confdefs.h. */ |
---|
4694 | _ACEOF |
---|
4695 | cat confdefs.h >>conftest.$ac_ext |
---|
4696 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4697 | /* end confdefs.h. */ |
---|
4698 | $ac_includes_default |
---|
4699 | #include <$ac_header> |
---|
4700 | _ACEOF |
---|
4701 | rm -f conftest.$ac_objext |
---|
4702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4703 | (eval $ac_compile) 2>conftest.er1 |
---|
4704 | ac_status=$? |
---|
4705 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4706 | rm -f conftest.er1 |
---|
4707 | cat conftest.err >&5 |
---|
4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4709 | (exit $ac_status); } && |
---|
4710 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4711 | || test ! -s conftest.err' |
---|
4712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4713 | (eval $ac_try) 2>&5 |
---|
4714 | ac_status=$? |
---|
4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4716 | (exit $ac_status); }; } && |
---|
4717 | { ac_try='test -s conftest.$ac_objext' |
---|
4718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4719 | (eval $ac_try) 2>&5 |
---|
4720 | ac_status=$? |
---|
4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4722 | (exit $ac_status); }; }; then |
---|
4723 | ac_header_compiler=yes |
---|
4724 | else |
---|
4725 | echo "$as_me: failed program was:" >&5 |
---|
4726 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4727 | |
---|
4728 | ac_header_compiler=no |
---|
4729 | fi |
---|
4730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4731 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4732 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4733 | |
---|
4734 | # Is the header present? |
---|
4735 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4736 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4737 | cat >conftest.$ac_ext <<_ACEOF |
---|
4738 | /* confdefs.h. */ |
---|
4739 | _ACEOF |
---|
4740 | cat confdefs.h >>conftest.$ac_ext |
---|
4741 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4742 | /* end confdefs.h. */ |
---|
4743 | #include <$ac_header> |
---|
4744 | _ACEOF |
---|
4745 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4746 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4747 | ac_status=$? |
---|
4748 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4749 | rm -f conftest.er1 |
---|
4750 | cat conftest.err >&5 |
---|
4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4752 | (exit $ac_status); } >/dev/null; then |
---|
4753 | if test -s conftest.err; then |
---|
4754 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4755 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4756 | else |
---|
4757 | ac_cpp_err= |
---|
4758 | fi |
---|
4759 | else |
---|
4760 | ac_cpp_err=yes |
---|
4761 | fi |
---|
4762 | if test -z "$ac_cpp_err"; then |
---|
4763 | ac_header_preproc=yes |
---|
4764 | else |
---|
4765 | echo "$as_me: failed program was:" >&5 |
---|
4766 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4767 | |
---|
4768 | ac_header_preproc=no |
---|
4769 | fi |
---|
4770 | rm -f conftest.err conftest.$ac_ext |
---|
4771 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4772 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4773 | |
---|
4774 | # So? What about this header? |
---|
4775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4776 | yes:no: ) |
---|
4777 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4778 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4779 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4780 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4781 | ac_header_preproc=yes |
---|
4782 | ;; |
---|
4783 | no:yes:* ) |
---|
4784 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4785 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4786 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4787 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4788 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4789 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4790 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4791 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4792 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4793 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4794 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4795 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4796 | ( |
---|
4797 | cat <<\_ASBOX |
---|
4798 | ## ------------------------------------------- ## |
---|
4799 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4800 | ## ------------------------------------------- ## |
---|
4801 | _ASBOX |
---|
4802 | ) | |
---|
4803 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4804 | ;; |
---|
4805 | esac |
---|
4806 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4807 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4810 | else |
---|
4811 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4812 | fi |
---|
4813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4814 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4815 | |
---|
4816 | fi |
---|
4817 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4818 | cat >>confdefs.h <<_ACEOF |
---|
4819 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4820 | _ACEOF |
---|
4821 | |
---|
4822 | else |
---|
4823 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4824 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4825 | { (exit 1); exit 1; }; } |
---|
4826 | fi |
---|
4827 | |
---|
4828 | done |
---|
4829 | |
---|
4830 | if test $mingw = no ; then |
---|
4831 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
4832 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
4833 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
4834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4835 | else |
---|
4836 | ac_check_lib_save_LIBS=$LIBS |
---|
4837 | LIBS="-lSDL $LIBS" |
---|
4838 | cat >conftest.$ac_ext <<_ACEOF |
---|
4839 | /* confdefs.h. */ |
---|
4840 | _ACEOF |
---|
4841 | cat confdefs.h >>conftest.$ac_ext |
---|
4842 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4843 | /* end confdefs.h. */ |
---|
4844 | |
---|
4845 | |
---|
4846 | int |
---|
4847 | main () |
---|
4848 | { |
---|
4849 | main (); |
---|
4850 | ; |
---|
4851 | return 0; |
---|
4852 | } |
---|
4853 | _ACEOF |
---|
4854 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4856 | (eval $ac_link) 2>conftest.er1 |
---|
4857 | ac_status=$? |
---|
4858 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4859 | rm -f conftest.er1 |
---|
4860 | cat conftest.err >&5 |
---|
4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4862 | (exit $ac_status); } && |
---|
4863 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4864 | || test ! -s conftest.err' |
---|
4865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4866 | (eval $ac_try) 2>&5 |
---|
4867 | ac_status=$? |
---|
4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4869 | (exit $ac_status); }; } && |
---|
4870 | { ac_try='test -s conftest$ac_exeext' |
---|
4871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4872 | (eval $ac_try) 2>&5 |
---|
4873 | ac_status=$? |
---|
4874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4875 | (exit $ac_status); }; }; then |
---|
4876 | ac_cv_lib_SDL_main=yes |
---|
4877 | else |
---|
4878 | echo "$as_me: failed program was:" >&5 |
---|
4879 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4880 | |
---|
4881 | ac_cv_lib_SDL_main=no |
---|
4882 | fi |
---|
4883 | rm -f conftest.err conftest.$ac_objext \ |
---|
4884 | conftest$ac_exeext conftest.$ac_ext |
---|
4885 | LIBS=$ac_check_lib_save_LIBS |
---|
4886 | fi |
---|
4887 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
4888 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
4889 | if test $ac_cv_lib_SDL_main = yes; then |
---|
4890 | FOUND_SDL=yes |
---|
4891 | fi |
---|
4892 | |
---|
4893 | if test "$FOUND_SDL" = "yes" ; then |
---|
4894 | LIBS="$LIBS -lSDL" |
---|
4895 | fi |
---|
4896 | # checking for Windows sdl library |
---|
4897 | else |
---|
4898 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
4899 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
4900 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
4901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4902 | else |
---|
4903 | ac_check_lib_save_LIBS=$LIBS |
---|
4904 | LIBS="-lsdlmain $LIBS" |
---|
4905 | cat >conftest.$ac_ext <<_ACEOF |
---|
4906 | /* confdefs.h. */ |
---|
4907 | _ACEOF |
---|
4908 | cat confdefs.h >>conftest.$ac_ext |
---|
4909 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4910 | /* end confdefs.h. */ |
---|
4911 | |
---|
4912 | |
---|
4913 | int |
---|
4914 | main () |
---|
4915 | { |
---|
4916 | main (); |
---|
4917 | ; |
---|
4918 | return 0; |
---|
4919 | } |
---|
4920 | _ACEOF |
---|
4921 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4923 | (eval $ac_link) 2>conftest.er1 |
---|
4924 | ac_status=$? |
---|
4925 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4926 | rm -f conftest.er1 |
---|
4927 | cat conftest.err >&5 |
---|
4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4929 | (exit $ac_status); } && |
---|
4930 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4931 | || test ! -s conftest.err' |
---|
4932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4933 | (eval $ac_try) 2>&5 |
---|
4934 | ac_status=$? |
---|
4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4936 | (exit $ac_status); }; } && |
---|
4937 | { ac_try='test -s conftest$ac_exeext' |
---|
4938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4939 | (eval $ac_try) 2>&5 |
---|
4940 | ac_status=$? |
---|
4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4942 | (exit $ac_status); }; }; then |
---|
4943 | ac_cv_lib_sdlmain_main=yes |
---|
4944 | else |
---|
4945 | echo "$as_me: failed program was:" >&5 |
---|
4946 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4947 | |
---|
4948 | ac_cv_lib_sdlmain_main=no |
---|
4949 | fi |
---|
4950 | rm -f conftest.err conftest.$ac_objext \ |
---|
4951 | conftest$ac_exeext conftest.$ac_ext |
---|
4952 | LIBS=$ac_check_lib_save_LIBS |
---|
4953 | fi |
---|
4954 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
4955 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
4956 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
4957 | FOUND_sdlmain=yes |
---|
4958 | fi |
---|
4959 | |
---|
4960 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
4961 | LIBS="$LIBS -lsdlmain" |
---|
4962 | fi |
---|
4963 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
4964 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
4965 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4967 | else |
---|
4968 | ac_check_lib_save_LIBS=$LIBS |
---|
4969 | LIBS="-lsdl $LIBS" |
---|
4970 | cat >conftest.$ac_ext <<_ACEOF |
---|
4971 | /* confdefs.h. */ |
---|
4972 | _ACEOF |
---|
4973 | cat confdefs.h >>conftest.$ac_ext |
---|
4974 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4975 | /* end confdefs.h. */ |
---|
4976 | |
---|
4977 | |
---|
4978 | int |
---|
4979 | main () |
---|
4980 | { |
---|
4981 | main (); |
---|
4982 | ; |
---|
4983 | return 0; |
---|
4984 | } |
---|
4985 | _ACEOF |
---|
4986 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4988 | (eval $ac_link) 2>conftest.er1 |
---|
4989 | ac_status=$? |
---|
4990 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4991 | rm -f conftest.er1 |
---|
4992 | cat conftest.err >&5 |
---|
4993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4994 | (exit $ac_status); } && |
---|
4995 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4996 | || test ! -s conftest.err' |
---|
4997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4998 | (eval $ac_try) 2>&5 |
---|
4999 | ac_status=$? |
---|
5000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5001 | (exit $ac_status); }; } && |
---|
5002 | { ac_try='test -s conftest$ac_exeext' |
---|
5003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5004 | (eval $ac_try) 2>&5 |
---|
5005 | ac_status=$? |
---|
5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5007 | (exit $ac_status); }; }; then |
---|
5008 | ac_cv_lib_sdl_main=yes |
---|
5009 | else |
---|
5010 | echo "$as_me: failed program was:" >&5 |
---|
5011 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5012 | |
---|
5013 | ac_cv_lib_sdl_main=no |
---|
5014 | fi |
---|
5015 | rm -f conftest.err conftest.$ac_objext \ |
---|
5016 | conftest$ac_exeext conftest.$ac_ext |
---|
5017 | LIBS=$ac_check_lib_save_LIBS |
---|
5018 | fi |
---|
5019 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
5020 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
5021 | if test $ac_cv_lib_sdl_main = yes; then |
---|
5022 | FOUND_sdl=yes |
---|
5023 | fi |
---|
5024 | |
---|
5025 | if test "$FOUND_sdl" = "yes" ; then |
---|
5026 | LIBS="$LIBS -lsdl" |
---|
5027 | fi |
---|
5028 | fi |
---|
5029 | |
---|
5030 | #checking for pthread libs |
---|
5031 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
5032 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
5033 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
5034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5035 | else |
---|
5036 | ac_check_lib_save_LIBS=$LIBS |
---|
5037 | LIBS="-lpthread $LIBS" |
---|
5038 | cat >conftest.$ac_ext <<_ACEOF |
---|
5039 | /* confdefs.h. */ |
---|
5040 | _ACEOF |
---|
5041 | cat confdefs.h >>conftest.$ac_ext |
---|
5042 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5043 | /* end confdefs.h. */ |
---|
5044 | |
---|
5045 | |
---|
5046 | int |
---|
5047 | main () |
---|
5048 | { |
---|
5049 | main (); |
---|
5050 | ; |
---|
5051 | return 0; |
---|
5052 | } |
---|
5053 | _ACEOF |
---|
5054 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5056 | (eval $ac_link) 2>conftest.er1 |
---|
5057 | ac_status=$? |
---|
5058 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5059 | rm -f conftest.er1 |
---|
5060 | cat conftest.err >&5 |
---|
5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5062 | (exit $ac_status); } && |
---|
5063 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5064 | || test ! -s conftest.err' |
---|
5065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5066 | (eval $ac_try) 2>&5 |
---|
5067 | ac_status=$? |
---|
5068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5069 | (exit $ac_status); }; } && |
---|
5070 | { ac_try='test -s conftest$ac_exeext' |
---|
5071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5072 | (eval $ac_try) 2>&5 |
---|
5073 | ac_status=$? |
---|
5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5075 | (exit $ac_status); }; }; then |
---|
5076 | ac_cv_lib_pthread_main=yes |
---|
5077 | else |
---|
5078 | echo "$as_me: failed program was:" >&5 |
---|
5079 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5080 | |
---|
5081 | ac_cv_lib_pthread_main=no |
---|
5082 | fi |
---|
5083 | rm -f conftest.err conftest.$ac_objext \ |
---|
5084 | conftest$ac_exeext conftest.$ac_ext |
---|
5085 | LIBS=$ac_check_lib_save_LIBS |
---|
5086 | fi |
---|
5087 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
5088 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
5089 | if test $ac_cv_lib_pthread_main = yes; then |
---|
5090 | FOUND_pthread=yes |
---|
5091 | fi |
---|
5092 | |
---|
5093 | if test "$FOUND_pthread" = "yes" ; then |
---|
5094 | LIBS="$LIBS -lpthread" |
---|
5095 | fi |
---|
5096 | |
---|
5097 | |
---|
5098 | |
---|
5099 | |
---|
5100 | # FIXME: Replace `main' with a function in `-lm': |
---|
5101 | |
---|
5102 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
5103 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
5104 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
5105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5106 | else |
---|
5107 | ac_check_lib_save_LIBS=$LIBS |
---|
5108 | LIBS="-lm $LIBS" |
---|
5109 | cat >conftest.$ac_ext <<_ACEOF |
---|
5110 | /* confdefs.h. */ |
---|
5111 | _ACEOF |
---|
5112 | cat confdefs.h >>conftest.$ac_ext |
---|
5113 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5114 | /* end confdefs.h. */ |
---|
5115 | |
---|
5116 | |
---|
5117 | int |
---|
5118 | main () |
---|
5119 | { |
---|
5120 | main (); |
---|
5121 | ; |
---|
5122 | return 0; |
---|
5123 | } |
---|
5124 | _ACEOF |
---|
5125 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5127 | (eval $ac_link) 2>conftest.er1 |
---|
5128 | ac_status=$? |
---|
5129 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5130 | rm -f conftest.er1 |
---|
5131 | cat conftest.err >&5 |
---|
5132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5133 | (exit $ac_status); } && |
---|
5134 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5135 | || test ! -s conftest.err' |
---|
5136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5137 | (eval $ac_try) 2>&5 |
---|
5138 | ac_status=$? |
---|
5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5140 | (exit $ac_status); }; } && |
---|
5141 | { ac_try='test -s conftest$ac_exeext' |
---|
5142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5143 | (eval $ac_try) 2>&5 |
---|
5144 | ac_status=$? |
---|
5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5146 | (exit $ac_status); }; }; then |
---|
5147 | ac_cv_lib_m_main=yes |
---|
5148 | else |
---|
5149 | echo "$as_me: failed program was:" >&5 |
---|
5150 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5151 | |
---|
5152 | ac_cv_lib_m_main=no |
---|
5153 | fi |
---|
5154 | rm -f conftest.err conftest.$ac_objext \ |
---|
5155 | conftest$ac_exeext conftest.$ac_ext |
---|
5156 | LIBS=$ac_check_lib_save_LIBS |
---|
5157 | fi |
---|
5158 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
5159 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
5160 | if test $ac_cv_lib_m_main = yes; then |
---|
5161 | cat >>confdefs.h <<_ACEOF |
---|
5162 | #define HAVE_LIBM 1 |
---|
5163 | _ACEOF |
---|
5164 | |
---|
5165 | LIBS="-lm $LIBS" |
---|
5166 | |
---|
5167 | fi |
---|
5168 | |
---|
5169 | |
---|
5170 | LIBS="$LIBS `pkg-config --libs gtk+-2.0`" |
---|
5171 | |
---|
5172 | |
---|
5173 | # Checks for header files. |
---|
5174 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5175 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5176 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5178 | else |
---|
5179 | cat >conftest.$ac_ext <<_ACEOF |
---|
5180 | /* confdefs.h. */ |
---|
5181 | _ACEOF |
---|
5182 | cat confdefs.h >>conftest.$ac_ext |
---|
5183 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5184 | /* end confdefs.h. */ |
---|
5185 | #include <stdlib.h> |
---|
5186 | #include <stdarg.h> |
---|
5187 | #include <string.h> |
---|
5188 | #include <float.h> |
---|
5189 | |
---|
5190 | int |
---|
5191 | main () |
---|
5192 | { |
---|
5193 | |
---|
5194 | ; |
---|
5195 | return 0; |
---|
5196 | } |
---|
5197 | _ACEOF |
---|
5198 | rm -f conftest.$ac_objext |
---|
5199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5200 | (eval $ac_compile) 2>conftest.er1 |
---|
5201 | ac_status=$? |
---|
5202 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5203 | rm -f conftest.er1 |
---|
5204 | cat conftest.err >&5 |
---|
5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5206 | (exit $ac_status); } && |
---|
5207 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5208 | || test ! -s conftest.err' |
---|
5209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5210 | (eval $ac_try) 2>&5 |
---|
5211 | ac_status=$? |
---|
5212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5213 | (exit $ac_status); }; } && |
---|
5214 | { ac_try='test -s conftest.$ac_objext' |
---|
5215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5216 | (eval $ac_try) 2>&5 |
---|
5217 | ac_status=$? |
---|
5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5219 | (exit $ac_status); }; }; then |
---|
5220 | ac_cv_header_stdc=yes |
---|
5221 | else |
---|
5222 | echo "$as_me: failed program was:" >&5 |
---|
5223 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5224 | |
---|
5225 | ac_cv_header_stdc=no |
---|
5226 | fi |
---|
5227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5228 | |
---|
5229 | if test $ac_cv_header_stdc = yes; then |
---|
5230 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5231 | cat >conftest.$ac_ext <<_ACEOF |
---|
5232 | /* confdefs.h. */ |
---|
5233 | _ACEOF |
---|
5234 | cat confdefs.h >>conftest.$ac_ext |
---|
5235 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5236 | /* end confdefs.h. */ |
---|
5237 | #include <string.h> |
---|
5238 | |
---|
5239 | _ACEOF |
---|
5240 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5241 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
5242 | : |
---|
5243 | else |
---|
5244 | ac_cv_header_stdc=no |
---|
5245 | fi |
---|
5246 | rm -f conftest* |
---|
5247 | |
---|
5248 | fi |
---|
5249 | |
---|
5250 | if test $ac_cv_header_stdc = yes; then |
---|
5251 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5252 | cat >conftest.$ac_ext <<_ACEOF |
---|
5253 | /* confdefs.h. */ |
---|
5254 | _ACEOF |
---|
5255 | cat confdefs.h >>conftest.$ac_ext |
---|
5256 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5257 | /* end confdefs.h. */ |
---|
5258 | #include <stdlib.h> |
---|
5259 | |
---|
5260 | _ACEOF |
---|
5261 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5262 | $EGREP "free" >/dev/null 2>&1; then |
---|
5263 | : |
---|
5264 | else |
---|
5265 | ac_cv_header_stdc=no |
---|
5266 | fi |
---|
5267 | rm -f conftest* |
---|
5268 | |
---|
5269 | fi |
---|
5270 | |
---|
5271 | if test $ac_cv_header_stdc = yes; then |
---|
5272 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5273 | if test "$cross_compiling" = yes; then |
---|
5274 | : |
---|
5275 | else |
---|
5276 | cat >conftest.$ac_ext <<_ACEOF |
---|
5277 | /* confdefs.h. */ |
---|
5278 | _ACEOF |
---|
5279 | cat confdefs.h >>conftest.$ac_ext |
---|
5280 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5281 | /* end confdefs.h. */ |
---|
5282 | #include <ctype.h> |
---|
5283 | #if ((' ' & 0x0FF) == 0x020) |
---|
5284 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5285 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5286 | #else |
---|
5287 | # define ISLOWER(c) \ |
---|
5288 | (('a' <= (c) && (c) <= 'i') \ |
---|
5289 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5290 | || ('s' <= (c) && (c) <= 'z')) |
---|
5291 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5292 | #endif |
---|
5293 | |
---|
5294 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5295 | int |
---|
5296 | main () |
---|
5297 | { |
---|
5298 | int i; |
---|
5299 | for (i = 0; i < 256; i++) |
---|
5300 | if (XOR (islower (i), ISLOWER (i)) |
---|
5301 | || toupper (i) != TOUPPER (i)) |
---|
5302 | exit(2); |
---|
5303 | exit (0); |
---|
5304 | } |
---|
5305 | _ACEOF |
---|
5306 | rm -f conftest$ac_exeext |
---|
5307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5308 | (eval $ac_link) 2>&5 |
---|
5309 | ac_status=$? |
---|
5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5311 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5313 | (eval $ac_try) 2>&5 |
---|
5314 | ac_status=$? |
---|
5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5316 | (exit $ac_status); }; }; then |
---|
5317 | : |
---|
5318 | else |
---|
5319 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5320 | echo "$as_me: failed program was:" >&5 |
---|
5321 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5322 | |
---|
5323 | ( exit $ac_status ) |
---|
5324 | ac_cv_header_stdc=no |
---|
5325 | fi |
---|
5326 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5327 | fi |
---|
5328 | fi |
---|
5329 | fi |
---|
5330 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
5331 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
5332 | if test $ac_cv_header_stdc = yes; then |
---|
5333 | |
---|
5334 | cat >>confdefs.h <<\_ACEOF |
---|
5335 | #define STDC_HEADERS 1 |
---|
5336 | _ACEOF |
---|
5337 | |
---|
5338 | fi |
---|
5339 | |
---|
5340 | |
---|
5341 | |
---|
5342 | for ac_header in stdlib.h string.h |
---|
5343 | do |
---|
5344 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5350 | fi |
---|
5351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5352 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5353 | else |
---|
5354 | # Is the header compilable? |
---|
5355 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5356 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5357 | cat >conftest.$ac_ext <<_ACEOF |
---|
5358 | /* confdefs.h. */ |
---|
5359 | _ACEOF |
---|
5360 | cat confdefs.h >>conftest.$ac_ext |
---|
5361 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5362 | /* end confdefs.h. */ |
---|
5363 | $ac_includes_default |
---|
5364 | #include <$ac_header> |
---|
5365 | _ACEOF |
---|
5366 | rm -f conftest.$ac_objext |
---|
5367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5368 | (eval $ac_compile) 2>conftest.er1 |
---|
5369 | ac_status=$? |
---|
5370 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5371 | rm -f conftest.er1 |
---|
5372 | cat conftest.err >&5 |
---|
5373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5374 | (exit $ac_status); } && |
---|
5375 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5376 | || test ! -s conftest.err' |
---|
5377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5378 | (eval $ac_try) 2>&5 |
---|
5379 | ac_status=$? |
---|
5380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5381 | (exit $ac_status); }; } && |
---|
5382 | { ac_try='test -s conftest.$ac_objext' |
---|
5383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5384 | (eval $ac_try) 2>&5 |
---|
5385 | ac_status=$? |
---|
5386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5387 | (exit $ac_status); }; }; then |
---|
5388 | ac_header_compiler=yes |
---|
5389 | else |
---|
5390 | echo "$as_me: failed program was:" >&5 |
---|
5391 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5392 | |
---|
5393 | ac_header_compiler=no |
---|
5394 | fi |
---|
5395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5396 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5397 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5398 | |
---|
5399 | # Is the header present? |
---|
5400 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5401 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5402 | cat >conftest.$ac_ext <<_ACEOF |
---|
5403 | /* confdefs.h. */ |
---|
5404 | _ACEOF |
---|
5405 | cat confdefs.h >>conftest.$ac_ext |
---|
5406 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5407 | /* end confdefs.h. */ |
---|
5408 | #include <$ac_header> |
---|
5409 | _ACEOF |
---|
5410 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5411 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5412 | ac_status=$? |
---|
5413 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5414 | rm -f conftest.er1 |
---|
5415 | cat conftest.err >&5 |
---|
5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5417 | (exit $ac_status); } >/dev/null; then |
---|
5418 | if test -s conftest.err; then |
---|
5419 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5420 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5421 | else |
---|
5422 | ac_cpp_err= |
---|
5423 | fi |
---|
5424 | else |
---|
5425 | ac_cpp_err=yes |
---|
5426 | fi |
---|
5427 | if test -z "$ac_cpp_err"; then |
---|
5428 | ac_header_preproc=yes |
---|
5429 | else |
---|
5430 | echo "$as_me: failed program was:" >&5 |
---|
5431 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5432 | |
---|
5433 | ac_header_preproc=no |
---|
5434 | fi |
---|
5435 | rm -f conftest.err conftest.$ac_ext |
---|
5436 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5437 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5438 | |
---|
5439 | # So? What about this header? |
---|
5440 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5441 | yes:no: ) |
---|
5442 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5443 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5444 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5445 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5446 | ac_header_preproc=yes |
---|
5447 | ;; |
---|
5448 | no:yes:* ) |
---|
5449 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5450 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5451 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5452 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5453 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5454 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5455 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5456 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5457 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5458 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5459 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5460 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5461 | ( |
---|
5462 | cat <<\_ASBOX |
---|
5463 | ## ------------------------------------------- ## |
---|
5464 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5465 | ## ------------------------------------------- ## |
---|
5466 | _ASBOX |
---|
5467 | ) | |
---|
5468 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5469 | ;; |
---|
5470 | esac |
---|
5471 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5473 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5475 | else |
---|
5476 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5477 | fi |
---|
5478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5479 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5480 | |
---|
5481 | fi |
---|
5482 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5483 | cat >>confdefs.h <<_ACEOF |
---|
5484 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5485 | _ACEOF |
---|
5486 | |
---|
5487 | fi |
---|
5488 | |
---|
5489 | done |
---|
5490 | |
---|
5491 | |
---|
5492 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5493 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
5494 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
5495 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
5496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5497 | else |
---|
5498 | cat >conftest.$ac_ext <<_ACEOF |
---|
5499 | /* confdefs.h. */ |
---|
5500 | _ACEOF |
---|
5501 | cat confdefs.h >>conftest.$ac_ext |
---|
5502 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5503 | /* end confdefs.h. */ |
---|
5504 | |
---|
5505 | #include <stdbool.h> |
---|
5506 | #ifndef bool |
---|
5507 | # error bool is not defined |
---|
5508 | #endif |
---|
5509 | #ifndef false |
---|
5510 | # error false is not defined |
---|
5511 | #endif |
---|
5512 | #if false |
---|
5513 | # error false is not 0 |
---|
5514 | #endif |
---|
5515 | #ifndef true |
---|
5516 | # error true is not defined |
---|
5517 | #endif |
---|
5518 | #if true != 1 |
---|
5519 | # error true is not 1 |
---|
5520 | #endif |
---|
5521 | #ifndef __bool_true_false_are_defined |
---|
5522 | # error __bool_true_false_are_defined is not defined |
---|
5523 | #endif |
---|
5524 | |
---|
5525 | struct s { _Bool s: 1; _Bool t; } s; |
---|
5526 | |
---|
5527 | char a[true == 1 ? 1 : -1]; |
---|
5528 | char b[false == 0 ? 1 : -1]; |
---|
5529 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
5530 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
5531 | bool e = &s; |
---|
5532 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
5533 | char g[true]; |
---|
5534 | char h[sizeof (_Bool)]; |
---|
5535 | char i[sizeof s.t]; |
---|
5536 | |
---|
5537 | int |
---|
5538 | main () |
---|
5539 | { |
---|
5540 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
5541 | ; |
---|
5542 | return 0; |
---|
5543 | } |
---|
5544 | _ACEOF |
---|
5545 | rm -f conftest.$ac_objext |
---|
5546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5547 | (eval $ac_compile) 2>conftest.er1 |
---|
5548 | ac_status=$? |
---|
5549 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5550 | rm -f conftest.er1 |
---|
5551 | cat conftest.err >&5 |
---|
5552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5553 | (exit $ac_status); } && |
---|
5554 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5555 | || test ! -s conftest.err' |
---|
5556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5557 | (eval $ac_try) 2>&5 |
---|
5558 | ac_status=$? |
---|
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5560 | (exit $ac_status); }; } && |
---|
5561 | { ac_try='test -s conftest.$ac_objext' |
---|
5562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5563 | (eval $ac_try) 2>&5 |
---|
5564 | ac_status=$? |
---|
5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5566 | (exit $ac_status); }; }; then |
---|
5567 | ac_cv_header_stdbool_h=yes |
---|
5568 | else |
---|
5569 | echo "$as_me: failed program was:" >&5 |
---|
5570 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5571 | |
---|
5572 | ac_cv_header_stdbool_h=no |
---|
5573 | fi |
---|
5574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5575 | fi |
---|
5576 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
5577 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
5578 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
5579 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
5580 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
5581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5582 | else |
---|
5583 | cat >conftest.$ac_ext <<_ACEOF |
---|
5584 | /* confdefs.h. */ |
---|
5585 | _ACEOF |
---|
5586 | cat confdefs.h >>conftest.$ac_ext |
---|
5587 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5588 | /* end confdefs.h. */ |
---|
5589 | $ac_includes_default |
---|
5590 | int |
---|
5591 | main () |
---|
5592 | { |
---|
5593 | if ((_Bool *) 0) |
---|
5594 | return 0; |
---|
5595 | if (sizeof (_Bool)) |
---|
5596 | return 0; |
---|
5597 | ; |
---|
5598 | return 0; |
---|
5599 | } |
---|
5600 | _ACEOF |
---|
5601 | rm -f conftest.$ac_objext |
---|
5602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5603 | (eval $ac_compile) 2>conftest.er1 |
---|
5604 | ac_status=$? |
---|
5605 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5606 | rm -f conftest.er1 |
---|
5607 | cat conftest.err >&5 |
---|
5608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5609 | (exit $ac_status); } && |
---|
5610 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5611 | || test ! -s conftest.err' |
---|
5612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5613 | (eval $ac_try) 2>&5 |
---|
5614 | ac_status=$? |
---|
5615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5616 | (exit $ac_status); }; } && |
---|
5617 | { ac_try='test -s conftest.$ac_objext' |
---|
5618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5619 | (eval $ac_try) 2>&5 |
---|
5620 | ac_status=$? |
---|
5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5622 | (exit $ac_status); }; }; then |
---|
5623 | ac_cv_type__Bool=yes |
---|
5624 | else |
---|
5625 | echo "$as_me: failed program was:" >&5 |
---|
5626 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5627 | |
---|
5628 | ac_cv_type__Bool=no |
---|
5629 | fi |
---|
5630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5631 | fi |
---|
5632 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
5633 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
5634 | if test $ac_cv_type__Bool = yes; then |
---|
5635 | |
---|
5636 | cat >>confdefs.h <<_ACEOF |
---|
5637 | #define HAVE__BOOL 1 |
---|
5638 | _ACEOF |
---|
5639 | |
---|
5640 | |
---|
5641 | fi |
---|
5642 | |
---|
5643 | if test $ac_cv_header_stdbool_h = yes; then |
---|
5644 | |
---|
5645 | cat >>confdefs.h <<\_ACEOF |
---|
5646 | #define HAVE_STDBOOL_H 1 |
---|
5647 | _ACEOF |
---|
5648 | |
---|
5649 | fi |
---|
5650 | |
---|
5651 | |
---|
5652 | # Checks for library functions. |
---|
5653 | |
---|
5654 | for ac_header in stdlib.h |
---|
5655 | do |
---|
5656 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5658 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5659 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5662 | fi |
---|
5663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5664 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5665 | else |
---|
5666 | # Is the header compilable? |
---|
5667 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5668 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5669 | cat >conftest.$ac_ext <<_ACEOF |
---|
5670 | /* confdefs.h. */ |
---|
5671 | _ACEOF |
---|
5672 | cat confdefs.h >>conftest.$ac_ext |
---|
5673 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5674 | /* end confdefs.h. */ |
---|
5675 | $ac_includes_default |
---|
5676 | #include <$ac_header> |
---|
5677 | _ACEOF |
---|
5678 | rm -f conftest.$ac_objext |
---|
5679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5680 | (eval $ac_compile) 2>conftest.er1 |
---|
5681 | ac_status=$? |
---|
5682 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5683 | rm -f conftest.er1 |
---|
5684 | cat conftest.err >&5 |
---|
5685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5686 | (exit $ac_status); } && |
---|
5687 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5688 | || test ! -s conftest.err' |
---|
5689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5690 | (eval $ac_try) 2>&5 |
---|
5691 | ac_status=$? |
---|
5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5693 | (exit $ac_status); }; } && |
---|
5694 | { ac_try='test -s conftest.$ac_objext' |
---|
5695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5696 | (eval $ac_try) 2>&5 |
---|
5697 | ac_status=$? |
---|
5698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5699 | (exit $ac_status); }; }; then |
---|
5700 | ac_header_compiler=yes |
---|
5701 | else |
---|
5702 | echo "$as_me: failed program was:" >&5 |
---|
5703 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5704 | |
---|
5705 | ac_header_compiler=no |
---|
5706 | fi |
---|
5707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5708 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5709 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5710 | |
---|
5711 | # Is the header present? |
---|
5712 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5713 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5714 | cat >conftest.$ac_ext <<_ACEOF |
---|
5715 | /* confdefs.h. */ |
---|
5716 | _ACEOF |
---|
5717 | cat confdefs.h >>conftest.$ac_ext |
---|
5718 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5719 | /* end confdefs.h. */ |
---|
5720 | #include <$ac_header> |
---|
5721 | _ACEOF |
---|
5722 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5723 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5724 | ac_status=$? |
---|
5725 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5726 | rm -f conftest.er1 |
---|
5727 | cat conftest.err >&5 |
---|
5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5729 | (exit $ac_status); } >/dev/null; then |
---|
5730 | if test -s conftest.err; then |
---|
5731 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5732 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5733 | else |
---|
5734 | ac_cpp_err= |
---|
5735 | fi |
---|
5736 | else |
---|
5737 | ac_cpp_err=yes |
---|
5738 | fi |
---|
5739 | if test -z "$ac_cpp_err"; then |
---|
5740 | ac_header_preproc=yes |
---|
5741 | else |
---|
5742 | echo "$as_me: failed program was:" >&5 |
---|
5743 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5744 | |
---|
5745 | ac_header_preproc=no |
---|
5746 | fi |
---|
5747 | rm -f conftest.err conftest.$ac_ext |
---|
5748 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5749 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5750 | |
---|
5751 | # So? What about this header? |
---|
5752 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5753 | yes:no: ) |
---|
5754 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5755 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5756 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5757 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5758 | ac_header_preproc=yes |
---|
5759 | ;; |
---|
5760 | no:yes:* ) |
---|
5761 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5762 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5763 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5764 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5765 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5766 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5767 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5768 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5769 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5770 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5771 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5772 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5773 | ( |
---|
5774 | cat <<\_ASBOX |
---|
5775 | ## ------------------------------------------- ## |
---|
5776 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5777 | ## ------------------------------------------- ## |
---|
5778 | _ASBOX |
---|
5779 | ) | |
---|
5780 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5781 | ;; |
---|
5782 | esac |
---|
5783 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5787 | else |
---|
5788 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5789 | fi |
---|
5790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5792 | |
---|
5793 | fi |
---|
5794 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5795 | cat >>confdefs.h <<_ACEOF |
---|
5796 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5797 | _ACEOF |
---|
5798 | |
---|
5799 | fi |
---|
5800 | |
---|
5801 | done |
---|
5802 | |
---|
5803 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
5804 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
5805 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
5806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5807 | else |
---|
5808 | if test "$cross_compiling" = yes; then |
---|
5809 | ac_cv_func_malloc_0_nonnull=no |
---|
5810 | else |
---|
5811 | cat >conftest.$ac_ext <<_ACEOF |
---|
5812 | /* confdefs.h. */ |
---|
5813 | _ACEOF |
---|
5814 | cat confdefs.h >>conftest.$ac_ext |
---|
5815 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5816 | /* end confdefs.h. */ |
---|
5817 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
5818 | # include <stdlib.h> |
---|
5819 | #else |
---|
5820 | char *malloc (); |
---|
5821 | #endif |
---|
5822 | |
---|
5823 | int |
---|
5824 | main () |
---|
5825 | { |
---|
5826 | exit (malloc (0) ? 0 : 1); |
---|
5827 | ; |
---|
5828 | return 0; |
---|
5829 | } |
---|
5830 | _ACEOF |
---|
5831 | rm -f conftest$ac_exeext |
---|
5832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5833 | (eval $ac_link) 2>&5 |
---|
5834 | ac_status=$? |
---|
5835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5836 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5838 | (eval $ac_try) 2>&5 |
---|
5839 | ac_status=$? |
---|
5840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5841 | (exit $ac_status); }; }; then |
---|
5842 | ac_cv_func_malloc_0_nonnull=yes |
---|
5843 | else |
---|
5844 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5845 | echo "$as_me: failed program was:" >&5 |
---|
5846 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5847 | |
---|
5848 | ( exit $ac_status ) |
---|
5849 | ac_cv_func_malloc_0_nonnull=no |
---|
5850 | fi |
---|
5851 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5852 | fi |
---|
5853 | fi |
---|
5854 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
5855 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
5856 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
5857 | |
---|
5858 | cat >>confdefs.h <<\_ACEOF |
---|
5859 | #define HAVE_MALLOC 1 |
---|
5860 | _ACEOF |
---|
5861 | |
---|
5862 | else |
---|
5863 | cat >>confdefs.h <<\_ACEOF |
---|
5864 | #define HAVE_MALLOC 0 |
---|
5865 | _ACEOF |
---|
5866 | |
---|
5867 | case $LIBOBJS in |
---|
5868 | "malloc.$ac_objext" | \ |
---|
5869 | *" malloc.$ac_objext" | \ |
---|
5870 | "malloc.$ac_objext "* | \ |
---|
5871 | *" malloc.$ac_objext "* ) ;; |
---|
5872 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
5873 | esac |
---|
5874 | |
---|
5875 | |
---|
5876 | cat >>confdefs.h <<\_ACEOF |
---|
5877 | #define malloc rpl_malloc |
---|
5878 | _ACEOF |
---|
5879 | |
---|
5880 | fi |
---|
5881 | |
---|
5882 | |
---|
5883 | |
---|
5884 | |
---|
5885 | |
---|
5886 | for ac_func in bzero sqrt |
---|
5887 | do |
---|
5888 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5889 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
5890 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
5891 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
5892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5893 | else |
---|
5894 | cat >conftest.$ac_ext <<_ACEOF |
---|
5895 | /* confdefs.h. */ |
---|
5896 | _ACEOF |
---|
5897 | cat confdefs.h >>conftest.$ac_ext |
---|
5898 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5899 | /* end confdefs.h. */ |
---|
5900 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
5901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
5902 | #define $ac_func innocuous_$ac_func |
---|
5903 | |
---|
5904 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5905 | which can conflict with char $ac_func (); below. |
---|
5906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5907 | <limits.h> exists even on freestanding compilers. */ |
---|
5908 | |
---|
5909 | #ifdef __STDC__ |
---|
5910 | # include <limits.h> |
---|
5911 | #else |
---|
5912 | # include <assert.h> |
---|
5913 | #endif |
---|
5914 | |
---|
5915 | #undef $ac_func |
---|
5916 | |
---|
5917 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5918 | #ifdef __cplusplus |
---|
5919 | extern "C" |
---|
5920 | { |
---|
5921 | #endif |
---|
5922 | /* We use char because int might match the return type of a gcc2 |
---|
5923 | builtin and then its argument prototype would still apply. */ |
---|
5924 | char $ac_func (); |
---|
5925 | /* The GNU C library defines this for functions which it implements |
---|
5926 | to always fail with ENOSYS. Some functions are actually named |
---|
5927 | something starting with __ and the normal name is an alias. */ |
---|
5928 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5929 | choke me |
---|
5930 | #else |
---|
5931 | char (*f) () = $ac_func; |
---|
5932 | #endif |
---|
5933 | #ifdef __cplusplus |
---|
5934 | } |
---|
5935 | #endif |
---|
5936 | |
---|
5937 | int |
---|
5938 | main () |
---|
5939 | { |
---|
5940 | return f != $ac_func; |
---|
5941 | ; |
---|
5942 | return 0; |
---|
5943 | } |
---|
5944 | _ACEOF |
---|
5945 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5947 | (eval $ac_link) 2>conftest.er1 |
---|
5948 | ac_status=$? |
---|
5949 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5950 | rm -f conftest.er1 |
---|
5951 | cat conftest.err >&5 |
---|
5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5953 | (exit $ac_status); } && |
---|
5954 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5955 | || test ! -s conftest.err' |
---|
5956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5957 | (eval $ac_try) 2>&5 |
---|
5958 | ac_status=$? |
---|
5959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5960 | (exit $ac_status); }; } && |
---|
5961 | { ac_try='test -s conftest$ac_exeext' |
---|
5962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5963 | (eval $ac_try) 2>&5 |
---|
5964 | ac_status=$? |
---|
5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5966 | (exit $ac_status); }; }; then |
---|
5967 | eval "$as_ac_var=yes" |
---|
5968 | else |
---|
5969 | echo "$as_me: failed program was:" >&5 |
---|
5970 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5971 | |
---|
5972 | eval "$as_ac_var=no" |
---|
5973 | fi |
---|
5974 | rm -f conftest.err conftest.$ac_objext \ |
---|
5975 | conftest$ac_exeext conftest.$ac_ext |
---|
5976 | fi |
---|
5977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
5978 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
5979 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
5980 | cat >>confdefs.h <<_ACEOF |
---|
5981 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5982 | _ACEOF |
---|
5983 | |
---|
5984 | fi |
---|
5985 | done |
---|
5986 | |
---|
5987 | |
---|
5988 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile" |
---|
5989 | |
---|
5990 | cat >confcache <<\_ACEOF |
---|
5991 | # This file is a shell script that caches the results of configure |
---|
5992 | # tests run on this system so they can be shared between configure |
---|
5993 | # scripts and configure runs, see configure's option --config-cache. |
---|
5994 | # It is not useful on other systems. If it contains results you don't |
---|
5995 | # want to keep, you may remove or edit it. |
---|
5996 | # |
---|
5997 | # config.status only pays attention to the cache file if you give it |
---|
5998 | # the --recheck option to rerun configure. |
---|
5999 | # |
---|
6000 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6001 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6002 | # following values. |
---|
6003 | |
---|
6004 | _ACEOF |
---|
6005 | |
---|
6006 | # The following way of writing the cache mishandles newlines in values, |
---|
6007 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6008 | # So, don't put newlines in cache variables' values. |
---|
6009 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6010 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6011 | { |
---|
6012 | (set) 2>&1 | |
---|
6013 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
6014 | *ac_space=\ *) |
---|
6015 | # `set' does not quote correctly, so add quotes (double-quote |
---|
6016 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
6017 | sed -n \ |
---|
6018 | "s/'/'\\\\''/g; |
---|
6019 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6020 | ;; |
---|
6021 | *) |
---|
6022 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6023 | sed -n \ |
---|
6024 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
6025 | ;; |
---|
6026 | esac; |
---|
6027 | } | |
---|
6028 | sed ' |
---|
6029 | t clear |
---|
6030 | : clear |
---|
6031 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6032 | t end |
---|
6033 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6034 | : end' >>confcache |
---|
6035 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
6036 | if test -w $cache_file; then |
---|
6037 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
6038 | cat confcache >$cache_file |
---|
6039 | else |
---|
6040 | echo "not updating unwritable cache $cache_file" |
---|
6041 | fi |
---|
6042 | fi |
---|
6043 | rm -f confcache |
---|
6044 | |
---|
6045 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6046 | # Let make expand exec_prefix. |
---|
6047 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6048 | |
---|
6049 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
6050 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
6051 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6052 | # (actually we leave an empty line to preserve line numbers). |
---|
6053 | if test "x$srcdir" = x.; then |
---|
6054 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
6055 | s/:*\$(srcdir):*/:/; |
---|
6056 | s/:*\${srcdir}:*/:/; |
---|
6057 | s/:*@srcdir@:*/:/; |
---|
6058 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
6059 | s/:*$//; |
---|
6060 | s/^[^=]*=[ ]*$//; |
---|
6061 | }' |
---|
6062 | fi |
---|
6063 | |
---|
6064 | DEFS=-DHAVE_CONFIG_H |
---|
6065 | |
---|
6066 | ac_libobjs= |
---|
6067 | ac_ltlibobjs= |
---|
6068 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6069 | # 1. Remove the extension, and $U if already installed. |
---|
6070 | ac_i=`echo "$ac_i" | |
---|
6071 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
6072 | # 2. Add them. |
---|
6073 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
6074 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
6075 | done |
---|
6076 | LIBOBJS=$ac_libobjs |
---|
6077 | |
---|
6078 | LTLIBOBJS=$ac_ltlibobjs |
---|
6079 | |
---|
6080 | |
---|
6081 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6082 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
6083 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6084 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
6085 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6086 | { (exit 1); exit 1; }; } |
---|
6087 | fi |
---|
6088 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6089 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6090 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6091 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6092 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6093 | { (exit 1); exit 1; }; } |
---|
6094 | fi |
---|
6095 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6096 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
6097 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6098 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
6099 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6100 | { (exit 1); exit 1; }; } |
---|
6101 | fi |
---|
6102 | |
---|
6103 | : ${CONFIG_STATUS=./config.status} |
---|
6104 | ac_clean_files_save=$ac_clean_files |
---|
6105 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6106 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
6107 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6108 | cat >$CONFIG_STATUS <<_ACEOF |
---|
6109 | #! $SHELL |
---|
6110 | # Generated by $as_me. |
---|
6111 | # Run this file to recreate the current configuration. |
---|
6112 | # Compiler output produced by configure, useful for debugging |
---|
6113 | # configure, is in config.log if it exists. |
---|
6114 | |
---|
6115 | debug=false |
---|
6116 | ac_cs_recheck=false |
---|
6117 | ac_cs_silent=false |
---|
6118 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6119 | _ACEOF |
---|
6120 | |
---|
6121 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6122 | ## --------------------- ## |
---|
6123 | ## M4sh Initialization. ## |
---|
6124 | ## --------------------- ## |
---|
6125 | |
---|
6126 | # Be Bourne compatible |
---|
6127 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
6128 | emulate sh |
---|
6129 | NULLCMD=: |
---|
6130 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
6131 | # is contrary to our usage. Disable this feature. |
---|
6132 | alias -g '${1+"$@"}'='"$@"' |
---|
6133 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
6134 | set -o posix |
---|
6135 | fi |
---|
6136 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6137 | |
---|
6138 | # Support unset when possible. |
---|
6139 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
6140 | as_unset=unset |
---|
6141 | else |
---|
6142 | as_unset=false |
---|
6143 | fi |
---|
6144 | |
---|
6145 | |
---|
6146 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
6147 | $as_unset ENV MAIL MAILPATH |
---|
6148 | PS1='$ ' |
---|
6149 | PS2='> ' |
---|
6150 | PS4='+ ' |
---|
6151 | |
---|
6152 | # NLS nuisances. |
---|
6153 | for as_var in \ |
---|
6154 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
6155 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
6156 | LC_TELEPHONE LC_TIME |
---|
6157 | do |
---|
6158 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
6159 | eval $as_var=C; export $as_var |
---|
6160 | else |
---|
6161 | $as_unset $as_var |
---|
6162 | fi |
---|
6163 | done |
---|
6164 | |
---|
6165 | # Required to use basename. |
---|
6166 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6167 | as_expr=expr |
---|
6168 | else |
---|
6169 | as_expr=false |
---|
6170 | fi |
---|
6171 | |
---|
6172 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
6173 | as_basename=basename |
---|
6174 | else |
---|
6175 | as_basename=false |
---|
6176 | fi |
---|
6177 | |
---|
6178 | |
---|
6179 | # Name of the executable. |
---|
6180 | as_me=`$as_basename "$0" || |
---|
6181 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6182 | X"$0" : 'X\(//\)$' \| \ |
---|
6183 | X"$0" : 'X\(/\)$' \| \ |
---|
6184 | . : '\(.\)' 2>/dev/null || |
---|
6185 | echo X/"$0" | |
---|
6186 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
6187 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
6188 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
6189 | s/.*/./; q'` |
---|
6190 | |
---|
6191 | |
---|
6192 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
6193 | # Avoid depending upon Character Ranges. |
---|
6194 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6195 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6196 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6197 | as_cr_digits='0123456789' |
---|
6198 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6199 | |
---|
6200 | # The user is always right. |
---|
6201 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6202 | echo "#! /bin/sh" >conf$$.sh |
---|
6203 | echo "exit 0" >>conf$$.sh |
---|
6204 | chmod +x conf$$.sh |
---|
6205 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
6206 | PATH_SEPARATOR=';' |
---|
6207 | else |
---|
6208 | PATH_SEPARATOR=: |
---|
6209 | fi |
---|
6210 | rm -f conf$$.sh |
---|
6211 | fi |
---|
6212 | |
---|
6213 | |
---|
6214 | as_lineno_1=$LINENO |
---|
6215 | as_lineno_2=$LINENO |
---|
6216 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6217 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6218 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
6219 | # Find who we are. Look in the path if we contain no path at all |
---|
6220 | # relative or not. |
---|
6221 | case $0 in |
---|
6222 | *[\\/]* ) as_myself=$0 ;; |
---|
6223 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6224 | for as_dir in $PATH |
---|
6225 | do |
---|
6226 | IFS=$as_save_IFS |
---|
6227 | test -z "$as_dir" && as_dir=. |
---|
6228 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6229 | done |
---|
6230 | |
---|
6231 | ;; |
---|
6232 | esac |
---|
6233 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6234 | # in which case we are not to be found in the path. |
---|
6235 | if test "x$as_myself" = x; then |
---|
6236 | as_myself=$0 |
---|
6237 | fi |
---|
6238 | if test ! -f "$as_myself"; then |
---|
6239 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
6240 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
6241 | { (exit 1); exit 1; }; } |
---|
6242 | fi |
---|
6243 | case $CONFIG_SHELL in |
---|
6244 | '') |
---|
6245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6246 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
6247 | do |
---|
6248 | IFS=$as_save_IFS |
---|
6249 | test -z "$as_dir" && as_dir=. |
---|
6250 | for as_base in sh bash ksh sh5; do |
---|
6251 | case $as_dir in |
---|
6252 | /*) |
---|
6253 | if ("$as_dir/$as_base" -c ' |
---|
6254 | as_lineno_1=$LINENO |
---|
6255 | as_lineno_2=$LINENO |
---|
6256 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6257 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6258 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
6259 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
6260 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
6261 | CONFIG_SHELL=$as_dir/$as_base |
---|
6262 | export CONFIG_SHELL |
---|
6263 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
6264 | fi;; |
---|
6265 | esac |
---|
6266 | done |
---|
6267 | done |
---|
6268 | ;; |
---|
6269 | esac |
---|
6270 | |
---|
6271 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
6272 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
6273 | # line-number line before each line; the second 'sed' does the real |
---|
6274 | # work. The second script uses 'N' to pair each line-number line |
---|
6275 | # with the numbered line, and appends trailing '-' during |
---|
6276 | # substitution so that $LINENO is not a special case at line end. |
---|
6277 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
6278 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
6279 | sed '=' <$as_myself | |
---|
6280 | sed ' |
---|
6281 | N |
---|
6282 | s,$,-, |
---|
6283 | : loop |
---|
6284 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
6285 | t loop |
---|
6286 | s,-$,, |
---|
6287 | s,^['$as_cr_digits']*\n,, |
---|
6288 | ' >$as_me.lineno && |
---|
6289 | chmod +x $as_me.lineno || |
---|
6290 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
6291 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
6292 | { (exit 1); exit 1; }; } |
---|
6293 | |
---|
6294 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
6295 | # (the dirname of $[0] is not the place where we might find the |
---|
6296 | # original and so on. Autoconf is especially sensible to this). |
---|
6297 | . ./$as_me.lineno |
---|
6298 | # Exit status is that of the last command. |
---|
6299 | exit |
---|
6300 | } |
---|
6301 | |
---|
6302 | |
---|
6303 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
6304 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
6305 | ' ECHO_T=' ' ;; |
---|
6306 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
6307 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
6308 | esac |
---|
6309 | |
---|
6310 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6311 | as_expr=expr |
---|
6312 | else |
---|
6313 | as_expr=false |
---|
6314 | fi |
---|
6315 | |
---|
6316 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6317 | echo >conf$$.file |
---|
6318 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6319 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
6320 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
6321 | if test -f conf$$.exe; then |
---|
6322 | # Don't use ln at all; we don't have any links |
---|
6323 | as_ln_s='cp -p' |
---|
6324 | else |
---|
6325 | as_ln_s='ln -s' |
---|
6326 | fi |
---|
6327 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6328 | as_ln_s=ln |
---|
6329 | else |
---|
6330 | as_ln_s='cp -p' |
---|
6331 | fi |
---|
6332 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6333 | |
---|
6334 | if mkdir -p . 2>/dev/null; then |
---|
6335 | as_mkdir_p=: |
---|
6336 | else |
---|
6337 | test -d ./-p && rmdir ./-p |
---|
6338 | as_mkdir_p=false |
---|
6339 | fi |
---|
6340 | |
---|
6341 | as_executable_p="test -f" |
---|
6342 | |
---|
6343 | # Sed expression to map a string onto a valid CPP name. |
---|
6344 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6345 | |
---|
6346 | # Sed expression to map a string onto a valid variable name. |
---|
6347 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6348 | |
---|
6349 | |
---|
6350 | # IFS |
---|
6351 | # We need space, tab and new line, in precisely that order. |
---|
6352 | as_nl=' |
---|
6353 | ' |
---|
6354 | IFS=" $as_nl" |
---|
6355 | |
---|
6356 | # CDPATH. |
---|
6357 | $as_unset CDPATH |
---|
6358 | |
---|
6359 | exec 6>&1 |
---|
6360 | |
---|
6361 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
6362 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6363 | # values after options handling. Logging --version etc. is OK. |
---|
6364 | exec 5>>config.log |
---|
6365 | { |
---|
6366 | echo |
---|
6367 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6368 | ## Running $as_me. ## |
---|
6369 | _ASBOX |
---|
6370 | } >&5 |
---|
6371 | cat >&5 <<_CSEOF |
---|
6372 | |
---|
6373 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
6374 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
6375 | |
---|
6376 | CONFIG_FILES = $CONFIG_FILES |
---|
6377 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6378 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6379 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6380 | $ $0 $@ |
---|
6381 | |
---|
6382 | _CSEOF |
---|
6383 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
6384 | echo >&5 |
---|
6385 | _ACEOF |
---|
6386 | |
---|
6387 | # Files that config.status was made for. |
---|
6388 | if test -n "$ac_config_files"; then |
---|
6389 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
6390 | fi |
---|
6391 | |
---|
6392 | if test -n "$ac_config_headers"; then |
---|
6393 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
6394 | fi |
---|
6395 | |
---|
6396 | if test -n "$ac_config_links"; then |
---|
6397 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
6398 | fi |
---|
6399 | |
---|
6400 | if test -n "$ac_config_commands"; then |
---|
6401 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
6402 | fi |
---|
6403 | |
---|
6404 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6405 | |
---|
6406 | ac_cs_usage="\ |
---|
6407 | \`$as_me' instantiates files from templates according to the |
---|
6408 | current configuration. |
---|
6409 | |
---|
6410 | Usage: $0 [OPTIONS] [FILE]... |
---|
6411 | |
---|
6412 | -h, --help print this help, then exit |
---|
6413 | -V, --version print version number, then exit |
---|
6414 | -q, --quiet do not print progress messages |
---|
6415 | -d, --debug don't remove temporary files |
---|
6416 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6417 | --file=FILE[:TEMPLATE] |
---|
6418 | instantiate the configuration file FILE |
---|
6419 | --header=FILE[:TEMPLATE] |
---|
6420 | instantiate the configuration header FILE |
---|
6421 | |
---|
6422 | Configuration files: |
---|
6423 | $config_files |
---|
6424 | |
---|
6425 | Configuration headers: |
---|
6426 | $config_headers |
---|
6427 | |
---|
6428 | Configuration commands: |
---|
6429 | $config_commands |
---|
6430 | |
---|
6431 | Report bugs to <bug-autoconf@gnu.org>." |
---|
6432 | _ACEOF |
---|
6433 | |
---|
6434 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6435 | ac_cs_version="\\ |
---|
6436 | orxonox config.status 0.1-pre-alpha |
---|
6437 | configured by $0, generated by GNU Autoconf 2.59, |
---|
6438 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
6439 | |
---|
6440 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
6441 | This config.status script is free software; the Free Software Foundation |
---|
6442 | gives unlimited permission to copy, distribute and modify it." |
---|
6443 | srcdir=$srcdir |
---|
6444 | INSTALL="$INSTALL" |
---|
6445 | _ACEOF |
---|
6446 | |
---|
6447 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6448 | # If no file are specified by the user, then we need to provide default |
---|
6449 | # value. By we need to know if files were specified by the user. |
---|
6450 | ac_need_defaults=: |
---|
6451 | while test $# != 0 |
---|
6452 | do |
---|
6453 | case $1 in |
---|
6454 | --*=*) |
---|
6455 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
6456 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
6457 | ac_shift=: |
---|
6458 | ;; |
---|
6459 | -*) |
---|
6460 | ac_option=$1 |
---|
6461 | ac_optarg=$2 |
---|
6462 | ac_shift=shift |
---|
6463 | ;; |
---|
6464 | *) # This is not an option, so the user has probably given explicit |
---|
6465 | # arguments. |
---|
6466 | ac_option=$1 |
---|
6467 | ac_need_defaults=false;; |
---|
6468 | esac |
---|
6469 | |
---|
6470 | case $ac_option in |
---|
6471 | # Handling of the options. |
---|
6472 | _ACEOF |
---|
6473 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6474 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6475 | ac_cs_recheck=: ;; |
---|
6476 | --version | --vers* | -V ) |
---|
6477 | echo "$ac_cs_version"; exit 0 ;; |
---|
6478 | --he | --h) |
---|
6479 | # Conflict between --help and --header |
---|
6480 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
6481 | Try \`$0 --help' for more information." >&5 |
---|
6482 | echo "$as_me: error: ambiguous option: $1 |
---|
6483 | Try \`$0 --help' for more information." >&2;} |
---|
6484 | { (exit 1); exit 1; }; };; |
---|
6485 | --help | --hel | -h ) |
---|
6486 | echo "$ac_cs_usage"; exit 0 ;; |
---|
6487 | --debug | --d* | -d ) |
---|
6488 | debug=: ;; |
---|
6489 | --file | --fil | --fi | --f ) |
---|
6490 | $ac_shift |
---|
6491 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
6492 | ac_need_defaults=false;; |
---|
6493 | --header | --heade | --head | --hea ) |
---|
6494 | $ac_shift |
---|
6495 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
6496 | ac_need_defaults=false;; |
---|
6497 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6498 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6499 | ac_cs_silent=: ;; |
---|
6500 | |
---|
6501 | # This is an error. |
---|
6502 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
6503 | Try \`$0 --help' for more information." >&5 |
---|
6504 | echo "$as_me: error: unrecognized option: $1 |
---|
6505 | Try \`$0 --help' for more information." >&2;} |
---|
6506 | { (exit 1); exit 1; }; } ;; |
---|
6507 | |
---|
6508 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
6509 | |
---|
6510 | esac |
---|
6511 | shift |
---|
6512 | done |
---|
6513 | |
---|
6514 | ac_configure_extra_args= |
---|
6515 | |
---|
6516 | if $ac_cs_silent; then |
---|
6517 | exec 6>/dev/null |
---|
6518 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6519 | fi |
---|
6520 | |
---|
6521 | _ACEOF |
---|
6522 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6523 | if \$ac_cs_recheck; then |
---|
6524 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
6525 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6526 | fi |
---|
6527 | |
---|
6528 | _ACEOF |
---|
6529 | |
---|
6530 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6531 | # |
---|
6532 | # INIT-COMMANDS section. |
---|
6533 | # |
---|
6534 | |
---|
6535 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6536 | |
---|
6537 | _ACEOF |
---|
6538 | |
---|
6539 | |
---|
6540 | |
---|
6541 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6542 | for ac_config_target in $ac_config_targets |
---|
6543 | do |
---|
6544 | case "$ac_config_target" in |
---|
6545 | # Handling of arguments. |
---|
6546 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6547 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
6548 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
6549 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6550 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
6551 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6552 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
6553 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
6554 | { (exit 1); exit 1; }; };; |
---|
6555 | esac |
---|
6556 | done |
---|
6557 | |
---|
6558 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6559 | # then the envvar interface is used. Set only those that are not. |
---|
6560 | # We use the long form for the default assignment because of an extremely |
---|
6561 | # bizarre bug on SunOS 4.1.3. |
---|
6562 | if $ac_need_defaults; then |
---|
6563 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6564 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6565 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6566 | fi |
---|
6567 | |
---|
6568 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6569 | # simply because there is no reason to put it here, and in addition, |
---|
6570 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6571 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
6572 | $debug || |
---|
6573 | { |
---|
6574 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
6575 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
6576 | } |
---|
6577 | |
---|
6578 | # Create a (secure) tmp directory for tmp files. |
---|
6579 | |
---|
6580 | { |
---|
6581 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
6582 | test -n "$tmp" && test -d "$tmp" |
---|
6583 | } || |
---|
6584 | { |
---|
6585 | tmp=./confstat$$-$RANDOM |
---|
6586 | (umask 077 && mkdir $tmp) |
---|
6587 | } || |
---|
6588 | { |
---|
6589 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
6590 | { (exit 1); exit 1; } |
---|
6591 | } |
---|
6592 | |
---|
6593 | _ACEOF |
---|
6594 | |
---|
6595 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6596 | |
---|
6597 | # |
---|
6598 | # CONFIG_FILES section. |
---|
6599 | # |
---|
6600 | |
---|
6601 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
6602 | # This happens for instance when ./config.status config.h |
---|
6603 | if test -n "\$CONFIG_FILES"; then |
---|
6604 | # Protect against being on the right side of a sed subst in config.status. |
---|
6605 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
6606 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
6607 | s,@SHELL@,$SHELL,;t t |
---|
6608 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
6609 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
6610 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
6611 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
6612 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
6613 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
6614 | s,@exec_prefix@,$exec_prefix,;t t |
---|
6615 | s,@prefix@,$prefix,;t t |
---|
6616 | s,@program_transform_name@,$program_transform_name,;t t |
---|
6617 | s,@bindir@,$bindir,;t t |
---|
6618 | s,@sbindir@,$sbindir,;t t |
---|
6619 | s,@libexecdir@,$libexecdir,;t t |
---|
6620 | s,@datadir@,$datadir,;t t |
---|
6621 | s,@sysconfdir@,$sysconfdir,;t t |
---|
6622 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
6623 | s,@localstatedir@,$localstatedir,;t t |
---|
6624 | s,@libdir@,$libdir,;t t |
---|
6625 | s,@includedir@,$includedir,;t t |
---|
6626 | s,@oldincludedir@,$oldincludedir,;t t |
---|
6627 | s,@infodir@,$infodir,;t t |
---|
6628 | s,@mandir@,$mandir,;t t |
---|
6629 | s,@build_alias@,$build_alias,;t t |
---|
6630 | s,@host_alias@,$host_alias,;t t |
---|
6631 | s,@target_alias@,$target_alias,;t t |
---|
6632 | s,@DEFS@,$DEFS,;t t |
---|
6633 | s,@ECHO_C@,$ECHO_C,;t t |
---|
6634 | s,@ECHO_N@,$ECHO_N,;t t |
---|
6635 | s,@ECHO_T@,$ECHO_T,;t t |
---|
6636 | s,@LIBS@,$LIBS,;t t |
---|
6637 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
6638 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
6639 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
6640 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
6641 | s,@PACKAGE@,$PACKAGE,;t t |
---|
6642 | s,@VERSION@,$VERSION,;t t |
---|
6643 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
6644 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
6645 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
6646 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
6647 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
6648 | s,@AMTAR@,$AMTAR,;t t |
---|
6649 | s,@install_sh@,$install_sh,;t t |
---|
6650 | s,@STRIP@,$STRIP,;t t |
---|
6651 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
6652 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
6653 | s,@AWK@,$AWK,;t t |
---|
6654 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
6655 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
6656 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
6657 | s,@CXX@,$CXX,;t t |
---|
6658 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
6659 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
6660 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
6661 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
6662 | s,@EXEEXT@,$EXEEXT,;t t |
---|
6663 | s,@OBJEXT@,$OBJEXT,;t t |
---|
6664 | s,@DEPDIR@,$DEPDIR,;t t |
---|
6665 | s,@am__include@,$am__include,;t t |
---|
6666 | s,@am__quote@,$am__quote,;t t |
---|
6667 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
6668 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
6669 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
6670 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
6671 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
6672 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
6673 | s,@CC@,$CC,;t t |
---|
6674 | s,@CFLAGS@,$CFLAGS,;t t |
---|
6675 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
6676 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
6677 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
6678 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
6679 | s,@CPP@,$CPP,;t t |
---|
6680 | s,@EGREP@,$EGREP,;t t |
---|
6681 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
6682 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
6683 | CEOF |
---|
6684 | |
---|
6685 | _ACEOF |
---|
6686 | |
---|
6687 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6688 | # Split the substitutions into bite-sized pieces for seds with |
---|
6689 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
6690 | ac_max_sed_lines=48 |
---|
6691 | ac_sed_frag=1 # Number of current file. |
---|
6692 | ac_beg=1 # First line for current file. |
---|
6693 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
6694 | ac_more_lines=: |
---|
6695 | ac_sed_cmds= |
---|
6696 | while $ac_more_lines; do |
---|
6697 | if test $ac_beg -gt 1; then |
---|
6698 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6699 | else |
---|
6700 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6701 | fi |
---|
6702 | if test ! -s $tmp/subs.frag; then |
---|
6703 | ac_more_lines=false |
---|
6704 | else |
---|
6705 | # The purpose of the label and of the branching condition is to |
---|
6706 | # speed up the sed processing (if there are no `@' at all, there |
---|
6707 | # is no need to browse any of the substitutions). |
---|
6708 | # These are the two extra sed commands mentioned above. |
---|
6709 | (echo ':t |
---|
6710 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
6711 | if test -z "$ac_sed_cmds"; then |
---|
6712 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6713 | else |
---|
6714 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6715 | fi |
---|
6716 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
6717 | ac_beg=$ac_end |
---|
6718 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
6719 | fi |
---|
6720 | done |
---|
6721 | if test -z "$ac_sed_cmds"; then |
---|
6722 | ac_sed_cmds=cat |
---|
6723 | fi |
---|
6724 | fi # test -n "$CONFIG_FILES" |
---|
6725 | |
---|
6726 | _ACEOF |
---|
6727 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6728 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
6729 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6730 | case $ac_file in |
---|
6731 | - | *:- | *:-:* ) # input from stdin |
---|
6732 | cat >$tmp/stdin |
---|
6733 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6734 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6735 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6736 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6737 | * ) ac_file_in=$ac_file.in ;; |
---|
6738 | esac |
---|
6739 | |
---|
6740 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
6741 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6742 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6743 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6744 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6745 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6746 | . : '\(.\)' 2>/dev/null || |
---|
6747 | echo X"$ac_file" | |
---|
6748 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6749 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6750 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6751 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6752 | s/.*/./; q'` |
---|
6753 | { if $as_mkdir_p; then |
---|
6754 | mkdir -p "$ac_dir" |
---|
6755 | else |
---|
6756 | as_dir="$ac_dir" |
---|
6757 | as_dirs= |
---|
6758 | while test ! -d "$as_dir"; do |
---|
6759 | as_dirs="$as_dir $as_dirs" |
---|
6760 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
6761 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6762 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6763 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6764 | X"$as_dir" : 'X\(/\)' \| \ |
---|
6765 | . : '\(.\)' 2>/dev/null || |
---|
6766 | echo X"$as_dir" | |
---|
6767 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6768 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6769 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6770 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6771 | s/.*/./; q'` |
---|
6772 | done |
---|
6773 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
6774 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
6775 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
6776 | { (exit 1); exit 1; }; }; } |
---|
6777 | |
---|
6778 | ac_builddir=. |
---|
6779 | |
---|
6780 | if test "$ac_dir" != .; then |
---|
6781 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
6782 | # A "../" for each directory in $ac_dir_suffix. |
---|
6783 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
6784 | else |
---|
6785 | ac_dir_suffix= ac_top_builddir= |
---|
6786 | fi |
---|
6787 | |
---|
6788 | case $srcdir in |
---|
6789 | .) # No --srcdir option. We are building in place. |
---|
6790 | ac_srcdir=. |
---|
6791 | if test -z "$ac_top_builddir"; then |
---|
6792 | ac_top_srcdir=. |
---|
6793 | else |
---|
6794 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
6795 | fi ;; |
---|
6796 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
6797 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6798 | ac_top_srcdir=$srcdir ;; |
---|
6799 | *) # Relative path. |
---|
6800 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
6801 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
6802 | esac |
---|
6803 | |
---|
6804 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
6805 | # the directories may not exist. |
---|
6806 | case `pwd` in |
---|
6807 | .) ac_abs_builddir="$ac_dir";; |
---|
6808 | *) |
---|
6809 | case "$ac_dir" in |
---|
6810 | .) ac_abs_builddir=`pwd`;; |
---|
6811 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
6812 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
6813 | esac;; |
---|
6814 | esac |
---|
6815 | case $ac_abs_builddir in |
---|
6816 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
6817 | *) |
---|
6818 | case ${ac_top_builddir}. in |
---|
6819 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
6820 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
6821 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
6822 | esac;; |
---|
6823 | esac |
---|
6824 | case $ac_abs_builddir in |
---|
6825 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
6826 | *) |
---|
6827 | case $ac_srcdir in |
---|
6828 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
6829 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
6830 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
6831 | esac;; |
---|
6832 | esac |
---|
6833 | case $ac_abs_builddir in |
---|
6834 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
6835 | *) |
---|
6836 | case $ac_top_srcdir in |
---|
6837 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
6838 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
6839 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
6840 | esac;; |
---|
6841 | esac |
---|
6842 | |
---|
6843 | |
---|
6844 | case $INSTALL in |
---|
6845 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6846 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
6847 | esac |
---|
6848 | |
---|
6849 | if test x"$ac_file" != x-; then |
---|
6850 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6851 | echo "$as_me: creating $ac_file" >&6;} |
---|
6852 | rm -f "$ac_file" |
---|
6853 | fi |
---|
6854 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6855 | # use $as_me), people would be surprised to read: |
---|
6856 | # /* config.h. Generated by config.status. */ |
---|
6857 | if test x"$ac_file" = x-; then |
---|
6858 | configure_input= |
---|
6859 | else |
---|
6860 | configure_input="$ac_file. " |
---|
6861 | fi |
---|
6862 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
6863 | sed 's,.*/,,'` by configure." |
---|
6864 | |
---|
6865 | # First look for the input files in the build tree, otherwise in the |
---|
6866 | # src tree. |
---|
6867 | ac_file_inputs=`IFS=: |
---|
6868 | for f in $ac_file_in; do |
---|
6869 | case $f in |
---|
6870 | -) echo $tmp/stdin ;; |
---|
6871 | [\\/$]*) |
---|
6872 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6873 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6874 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6875 | { (exit 1); exit 1; }; } |
---|
6876 | echo "$f";; |
---|
6877 | *) # Relative |
---|
6878 | if test -f "$f"; then |
---|
6879 | # Build tree |
---|
6880 | echo "$f" |
---|
6881 | elif test -f "$srcdir/$f"; then |
---|
6882 | # Source tree |
---|
6883 | echo "$srcdir/$f" |
---|
6884 | else |
---|
6885 | # /dev/null tree |
---|
6886 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6887 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6888 | { (exit 1); exit 1; }; } |
---|
6889 | fi;; |
---|
6890 | esac |
---|
6891 | done` || { (exit 1); exit 1; } |
---|
6892 | _ACEOF |
---|
6893 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6894 | sed "$ac_vpsub |
---|
6895 | $extrasub |
---|
6896 | _ACEOF |
---|
6897 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6898 | :t |
---|
6899 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6900 | s,@configure_input@,$configure_input,;t t |
---|
6901 | s,@srcdir@,$ac_srcdir,;t t |
---|
6902 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
6903 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
6904 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
6905 | s,@builddir@,$ac_builddir,;t t |
---|
6906 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
6907 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
6908 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
6909 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
6910 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
6911 | rm -f $tmp/stdin |
---|
6912 | if test x"$ac_file" != x-; then |
---|
6913 | mv $tmp/out $ac_file |
---|
6914 | else |
---|
6915 | cat $tmp/out |
---|
6916 | rm -f $tmp/out |
---|
6917 | fi |
---|
6918 | |
---|
6919 | done |
---|
6920 | _ACEOF |
---|
6921 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6922 | |
---|
6923 | # |
---|
6924 | # CONFIG_HEADER section. |
---|
6925 | # |
---|
6926 | |
---|
6927 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
6928 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
6929 | # |
---|
6930 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
6931 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
6932 | ac_dB='[ ].*$,\1#\2' |
---|
6933 | ac_dC=' ' |
---|
6934 | ac_dD=',;t' |
---|
6935 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
6936 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
6937 | ac_uB='$,\1#\2define\3' |
---|
6938 | ac_uC=' ' |
---|
6939 | ac_uD=',;t' |
---|
6940 | |
---|
6941 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
6942 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6943 | case $ac_file in |
---|
6944 | - | *:- | *:-:* ) # input from stdin |
---|
6945 | cat >$tmp/stdin |
---|
6946 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6947 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6948 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6949 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6950 | * ) ac_file_in=$ac_file.in ;; |
---|
6951 | esac |
---|
6952 | |
---|
6953 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6954 | echo "$as_me: creating $ac_file" >&6;} |
---|
6955 | |
---|
6956 | # First look for the input files in the build tree, otherwise in the |
---|
6957 | # src tree. |
---|
6958 | ac_file_inputs=`IFS=: |
---|
6959 | for f in $ac_file_in; do |
---|
6960 | case $f in |
---|
6961 | -) echo $tmp/stdin ;; |
---|
6962 | [\\/$]*) |
---|
6963 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6964 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6965 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6966 | { (exit 1); exit 1; }; } |
---|
6967 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
6968 | echo "$f";; |
---|
6969 | *) # Relative |
---|
6970 | if test -f "$f"; then |
---|
6971 | # Build tree |
---|
6972 | echo "$f" |
---|
6973 | elif test -f "$srcdir/$f"; then |
---|
6974 | # Source tree |
---|
6975 | echo "$srcdir/$f" |
---|
6976 | else |
---|
6977 | # /dev/null tree |
---|
6978 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6979 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6980 | { (exit 1); exit 1; }; } |
---|
6981 | fi;; |
---|
6982 | esac |
---|
6983 | done` || { (exit 1); exit 1; } |
---|
6984 | # Remove the trailing spaces. |
---|
6985 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
6986 | |
---|
6987 | _ACEOF |
---|
6988 | |
---|
6989 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
6990 | # `conftest.undefs', that substitutes the proper values into |
---|
6991 | # config.h.in to produce config.h. The first handles `#define' |
---|
6992 | # templates, and the second `#undef' templates. |
---|
6993 | # And first: Protect against being on the right side of a sed subst in |
---|
6994 | # config.status. Protect against being in an unquoted here document |
---|
6995 | # in config.status. |
---|
6996 | rm -f conftest.defines conftest.undefs |
---|
6997 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
6998 | # Putting comments in sed scripts is not portable. |
---|
6999 | # |
---|
7000 | # `end' is used to avoid that the second main sed command (meant for |
---|
7001 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
7002 | # See the Autoconf documentation for `clear'. |
---|
7003 | cat >confdef2sed.sed <<\_ACEOF |
---|
7004 | s/[\\&,]/\\&/g |
---|
7005 | s,[\\$`],\\&,g |
---|
7006 | t clear |
---|
7007 | : clear |
---|
7008 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
7009 | t end |
---|
7010 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
7011 | : end |
---|
7012 | _ACEOF |
---|
7013 | # If some macros were called several times there might be several times |
---|
7014 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
7015 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
7016 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
7017 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
7018 | rm -f confdef2sed.sed |
---|
7019 | |
---|
7020 | # This sed command replaces #undef with comments. This is necessary, for |
---|
7021 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
7022 | # on some systems where configure will not decide to define it. |
---|
7023 | cat >>conftest.undefs <<\_ACEOF |
---|
7024 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
7025 | _ACEOF |
---|
7026 | |
---|
7027 | # Break up conftest.defines because some shells have a limit on the size |
---|
7028 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7029 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
7030 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
7031 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
7032 | echo ' :' >>$CONFIG_STATUS |
---|
7033 | rm -f conftest.tail |
---|
7034 | while grep . conftest.defines >/dev/null |
---|
7035 | do |
---|
7036 | # Write a limited-size here document to $tmp/defines.sed. |
---|
7037 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
7038 | # Speed up: don't consider the non `#define' lines. |
---|
7039 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
7040 | # Work around the forget-to-reset-the-flag bug. |
---|
7041 | echo 't clr' >>$CONFIG_STATUS |
---|
7042 | echo ': clr' >>$CONFIG_STATUS |
---|
7043 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
7044 | echo 'CEOF |
---|
7045 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
7046 | rm -f $tmp/in |
---|
7047 | mv $tmp/out $tmp/in |
---|
7048 | ' >>$CONFIG_STATUS |
---|
7049 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
7050 | rm -f conftest.defines |
---|
7051 | mv conftest.tail conftest.defines |
---|
7052 | done |
---|
7053 | rm -f conftest.defines |
---|
7054 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
7055 | echo >>$CONFIG_STATUS |
---|
7056 | |
---|
7057 | # Break up conftest.undefs because some shells have a limit on the size |
---|
7058 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7059 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
7060 | rm -f conftest.tail |
---|
7061 | while grep . conftest.undefs >/dev/null |
---|
7062 | do |
---|
7063 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
7064 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
7065 | # Speed up: don't consider the non `#undef' |
---|
7066 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
7067 | # Work around the forget-to-reset-the-flag bug. |
---|
7068 | echo 't clr' >>$CONFIG_STATUS |
---|
7069 | echo ': clr' >>$CONFIG_STATUS |
---|
7070 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
7071 | echo 'CEOF |
---|
7072 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
7073 | rm -f $tmp/in |
---|
7074 | mv $tmp/out $tmp/in |
---|
7075 | ' >>$CONFIG_STATUS |
---|
7076 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
7077 | rm -f conftest.undefs |
---|
7078 | mv conftest.tail conftest.undefs |
---|
7079 | done |
---|
7080 | rm -f conftest.undefs |
---|
7081 | |
---|
7082 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7083 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7084 | # use $as_me), people would be surprised to read: |
---|
7085 | # /* config.h. Generated by config.status. */ |
---|
7086 | if test x"$ac_file" = x-; then |
---|
7087 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
7088 | else |
---|
7089 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
7090 | fi |
---|
7091 | cat $tmp/in >>$tmp/config.h |
---|
7092 | rm -f $tmp/in |
---|
7093 | if test x"$ac_file" != x-; then |
---|
7094 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
7095 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
7096 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7097 | else |
---|
7098 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
7099 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7100 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7101 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7102 | X"$ac_file" : 'X\(/\)' \| \ |
---|
7103 | . : '\(.\)' 2>/dev/null || |
---|
7104 | echo X"$ac_file" | |
---|
7105 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7106 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7107 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7108 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7109 | s/.*/./; q'` |
---|
7110 | { if $as_mkdir_p; then |
---|
7111 | mkdir -p "$ac_dir" |
---|
7112 | else |
---|
7113 | as_dir="$ac_dir" |
---|
7114 | as_dirs= |
---|
7115 | while test ! -d "$as_dir"; do |
---|
7116 | as_dirs="$as_dir $as_dirs" |
---|
7117 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7118 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7119 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7120 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7121 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7122 | . : '\(.\)' 2>/dev/null || |
---|
7123 | echo X"$as_dir" | |
---|
7124 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7125 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7126 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7127 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7128 | s/.*/./; q'` |
---|
7129 | done |
---|
7130 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7131 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7132 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7133 | { (exit 1); exit 1; }; }; } |
---|
7134 | |
---|
7135 | rm -f $ac_file |
---|
7136 | mv $tmp/config.h $ac_file |
---|
7137 | fi |
---|
7138 | else |
---|
7139 | cat $tmp/config.h |
---|
7140 | rm -f $tmp/config.h |
---|
7141 | fi |
---|
7142 | # Compute $ac_file's index in $config_headers. |
---|
7143 | _am_stamp_count=1 |
---|
7144 | for _am_header in $config_headers :; do |
---|
7145 | case $_am_header in |
---|
7146 | $ac_file | $ac_file:* ) |
---|
7147 | break ;; |
---|
7148 | * ) |
---|
7149 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7150 | esac |
---|
7151 | done |
---|
7152 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
7153 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7154 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
7155 | X$ac_file : 'X\(//\)$' \| \ |
---|
7156 | X$ac_file : 'X\(/\)' \| \ |
---|
7157 | . : '\(.\)' 2>/dev/null || |
---|
7158 | echo X$ac_file | |
---|
7159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7160 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7161 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7162 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7163 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7164 | done |
---|
7165 | _ACEOF |
---|
7166 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7167 | |
---|
7168 | # |
---|
7169 | # CONFIG_COMMANDS section. |
---|
7170 | # |
---|
7171 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
7172 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
7173 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7174 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
7175 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7176 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
7177 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
7178 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
7179 | . : '\(.\)' 2>/dev/null || |
---|
7180 | echo X"$ac_dest" | |
---|
7181 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7182 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7183 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7184 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7185 | s/.*/./; q'` |
---|
7186 | { if $as_mkdir_p; then |
---|
7187 | mkdir -p "$ac_dir" |
---|
7188 | else |
---|
7189 | as_dir="$ac_dir" |
---|
7190 | as_dirs= |
---|
7191 | while test ! -d "$as_dir"; do |
---|
7192 | as_dirs="$as_dir $as_dirs" |
---|
7193 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7194 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7195 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7196 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7197 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7198 | . : '\(.\)' 2>/dev/null || |
---|
7199 | echo X"$as_dir" | |
---|
7200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7201 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7202 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7203 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7204 | s/.*/./; q'` |
---|
7205 | done |
---|
7206 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7207 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7208 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7209 | { (exit 1); exit 1; }; }; } |
---|
7210 | |
---|
7211 | ac_builddir=. |
---|
7212 | |
---|
7213 | if test "$ac_dir" != .; then |
---|
7214 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7215 | # A "../" for each directory in $ac_dir_suffix. |
---|
7216 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7217 | else |
---|
7218 | ac_dir_suffix= ac_top_builddir= |
---|
7219 | fi |
---|
7220 | |
---|
7221 | case $srcdir in |
---|
7222 | .) # No --srcdir option. We are building in place. |
---|
7223 | ac_srcdir=. |
---|
7224 | if test -z "$ac_top_builddir"; then |
---|
7225 | ac_top_srcdir=. |
---|
7226 | else |
---|
7227 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7228 | fi ;; |
---|
7229 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7230 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7231 | ac_top_srcdir=$srcdir ;; |
---|
7232 | *) # Relative path. |
---|
7233 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7234 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7235 | esac |
---|
7236 | |
---|
7237 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
7238 | # the directories may not exist. |
---|
7239 | case `pwd` in |
---|
7240 | .) ac_abs_builddir="$ac_dir";; |
---|
7241 | *) |
---|
7242 | case "$ac_dir" in |
---|
7243 | .) ac_abs_builddir=`pwd`;; |
---|
7244 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
7245 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
7246 | esac;; |
---|
7247 | esac |
---|
7248 | case $ac_abs_builddir in |
---|
7249 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7250 | *) |
---|
7251 | case ${ac_top_builddir}. in |
---|
7252 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
7253 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7254 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
7255 | esac;; |
---|
7256 | esac |
---|
7257 | case $ac_abs_builddir in |
---|
7258 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
7259 | *) |
---|
7260 | case $ac_srcdir in |
---|
7261 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
7262 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
7263 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
7264 | esac;; |
---|
7265 | esac |
---|
7266 | case $ac_abs_builddir in |
---|
7267 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7268 | *) |
---|
7269 | case $ac_top_srcdir in |
---|
7270 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
7271 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7272 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
7273 | esac;; |
---|
7274 | esac |
---|
7275 | |
---|
7276 | |
---|
7277 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
7278 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
7279 | case $ac_dest in |
---|
7280 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
7281 | # Strip MF so we end up with the name of the file. |
---|
7282 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7283 | # Check whether this is an Automake generated Makefile or not. |
---|
7284 | # We used to match only the files named `Makefile.in', but |
---|
7285 | # some people rename them; so instead we look at the file content. |
---|
7286 | # Grep'ing the first line is not enough: some people post-process |
---|
7287 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7288 | # So let's grep whole file. |
---|
7289 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
7290 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
7291 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7292 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7293 | X"$mf" : 'X\(//\)$' \| \ |
---|
7294 | X"$mf" : 'X\(/\)' \| \ |
---|
7295 | . : '\(.\)' 2>/dev/null || |
---|
7296 | echo X"$mf" | |
---|
7297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7298 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7299 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7300 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7301 | s/.*/./; q'` |
---|
7302 | else |
---|
7303 | continue |
---|
7304 | fi |
---|
7305 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
7306 | # Extract the definition of DEP_FILES from the Makefile without |
---|
7307 | # running `make'. |
---|
7308 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
7309 | test -z "$DEPDIR" && continue |
---|
7310 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7311 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
7312 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
7313 | # We invoke sed twice because it is the simplest approach to |
---|
7314 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
7315 | for file in `sed -n -e ' |
---|
7316 | /^DEP_FILES = .*\\\\$/ { |
---|
7317 | s/^DEP_FILES = // |
---|
7318 | :loop |
---|
7319 | s/\\\\$// |
---|
7320 | p |
---|
7321 | n |
---|
7322 | /\\\\$/ b loop |
---|
7323 | p |
---|
7324 | } |
---|
7325 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
7326 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7327 | # Make sure the directory exists. |
---|
7328 | test -f "$dirpart/$file" && continue |
---|
7329 | fdir=`(dirname "$file") 2>/dev/null || |
---|
7330 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7331 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7332 | X"$file" : 'X\(//\)$' \| \ |
---|
7333 | X"$file" : 'X\(/\)' \| \ |
---|
7334 | . : '\(.\)' 2>/dev/null || |
---|
7335 | echo X"$file" | |
---|
7336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7337 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7338 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7339 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7340 | s/.*/./; q'` |
---|
7341 | { if $as_mkdir_p; then |
---|
7342 | mkdir -p $dirpart/$fdir |
---|
7343 | else |
---|
7344 | as_dir=$dirpart/$fdir |
---|
7345 | as_dirs= |
---|
7346 | while test ! -d "$as_dir"; do |
---|
7347 | as_dirs="$as_dir $as_dirs" |
---|
7348 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7349 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7350 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7351 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7352 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7353 | . : '\(.\)' 2>/dev/null || |
---|
7354 | echo X"$as_dir" | |
---|
7355 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7356 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7357 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7358 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7359 | s/.*/./; q'` |
---|
7360 | done |
---|
7361 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7362 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
7363 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
7364 | { (exit 1); exit 1; }; }; } |
---|
7365 | |
---|
7366 | # echo "creating $dirpart/$file" |
---|
7367 | echo '# dummy' > "$dirpart/$file" |
---|
7368 | done |
---|
7369 | done |
---|
7370 | ;; |
---|
7371 | esac |
---|
7372 | done |
---|
7373 | _ACEOF |
---|
7374 | |
---|
7375 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7376 | |
---|
7377 | { (exit 0); exit 0; } |
---|
7378 | _ACEOF |
---|
7379 | chmod +x $CONFIG_STATUS |
---|
7380 | ac_clean_files=$ac_clean_files_save |
---|
7381 | |
---|
7382 | |
---|
7383 | # configure is writing to config.log, and then calls config.status. |
---|
7384 | # config.status does its own redirection, appending to config.log. |
---|
7385 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7386 | # by configure, so config.status won't be able to write to it; its |
---|
7387 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7388 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7389 | # appended to by config.status. When coming back to configure, we |
---|
7390 | # need to make the FD available again. |
---|
7391 | if test "$no_create" != yes; then |
---|
7392 | ac_cs_success=: |
---|
7393 | ac_config_status_args= |
---|
7394 | test "$silent" = yes && |
---|
7395 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7396 | exec 5>/dev/null |
---|
7397 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7398 | exec 5>>config.log |
---|
7399 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7400 | # would make configure fail if this is the last instruction. |
---|
7401 | $ac_cs_success || { (exit 1); exit 1; } |
---|
7402 | fi |
---|
7403 | |
---|