1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.3-pre-alpha. |
---|
4 | # |
---|
5 | # Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | ## --------------------- ## |
---|
11 | ## M4sh Initialization. ## |
---|
12 | ## --------------------- ## |
---|
13 | |
---|
14 | # Be Bourne compatible |
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
16 | emulate sh |
---|
17 | NULLCMD=: |
---|
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
19 | # is contrary to our usage. Disable this feature. |
---|
20 | alias -g '${1+"$@"}'='"$@"' |
---|
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
22 | set -o posix |
---|
23 | fi |
---|
24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
25 | |
---|
26 | # Support unset when possible. |
---|
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
28 | as_unset=unset |
---|
29 | else |
---|
30 | as_unset=false |
---|
31 | fi |
---|
32 | |
---|
33 | |
---|
34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
35 | $as_unset ENV MAIL MAILPATH |
---|
36 | PS1='$ ' |
---|
37 | PS2='> ' |
---|
38 | PS4='+ ' |
---|
39 | |
---|
40 | # NLS nuisances. |
---|
41 | for as_var in \ |
---|
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
44 | LC_TELEPHONE LC_TIME |
---|
45 | do |
---|
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
47 | eval $as_var=C; export $as_var |
---|
48 | else |
---|
49 | $as_unset $as_var |
---|
50 | fi |
---|
51 | done |
---|
52 | |
---|
53 | # Required to use basename. |
---|
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
55 | as_expr=expr |
---|
56 | else |
---|
57 | as_expr=false |
---|
58 | fi |
---|
59 | |
---|
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
61 | as_basename=basename |
---|
62 | else |
---|
63 | as_basename=false |
---|
64 | fi |
---|
65 | |
---|
66 | |
---|
67 | # Name of the executable. |
---|
68 | as_me=`$as_basename "$0" || |
---|
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
70 | X"$0" : 'X\(//\)$' \| \ |
---|
71 | X"$0" : 'X\(/\)$' \| \ |
---|
72 | . : '\(.\)' 2>/dev/null || |
---|
73 | echo X/"$0" | |
---|
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
77 | s/.*/./; q'` |
---|
78 | |
---|
79 | |
---|
80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
81 | # Avoid depending upon Character Ranges. |
---|
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
85 | as_cr_digits='0123456789' |
---|
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
87 | |
---|
88 | # The user is always right. |
---|
89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
90 | echo "#! /bin/sh" >conf$$.sh |
---|
91 | echo "exit 0" >>conf$$.sh |
---|
92 | chmod +x conf$$.sh |
---|
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
94 | PATH_SEPARATOR=';' |
---|
95 | else |
---|
96 | PATH_SEPARATOR=: |
---|
97 | fi |
---|
98 | rm -f conf$$.sh |
---|
99 | fi |
---|
100 | |
---|
101 | |
---|
102 | as_lineno_1=$LINENO |
---|
103 | as_lineno_2=$LINENO |
---|
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
107 | # Find who we are. Look in the path if we contain no path at all |
---|
108 | # relative or not. |
---|
109 | case $0 in |
---|
110 | *[\\/]* ) as_myself=$0 ;; |
---|
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
112 | for as_dir in $PATH |
---|
113 | do |
---|
114 | IFS=$as_save_IFS |
---|
115 | test -z "$as_dir" && as_dir=. |
---|
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
117 | done |
---|
118 | |
---|
119 | ;; |
---|
120 | esac |
---|
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
122 | # in which case we are not to be found in the path. |
---|
123 | if test "x$as_myself" = x; then |
---|
124 | as_myself=$0 |
---|
125 | fi |
---|
126 | if test ! -f "$as_myself"; then |
---|
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
128 | { (exit 1); exit 1; }; } |
---|
129 | fi |
---|
130 | case $CONFIG_SHELL in |
---|
131 | '') |
---|
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
134 | do |
---|
135 | IFS=$as_save_IFS |
---|
136 | test -z "$as_dir" && as_dir=. |
---|
137 | for as_base in sh bash ksh sh5; do |
---|
138 | case $as_dir in |
---|
139 | /*) |
---|
140 | if ("$as_dir/$as_base" -c ' |
---|
141 | as_lineno_1=$LINENO |
---|
142 | as_lineno_2=$LINENO |
---|
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
148 | CONFIG_SHELL=$as_dir/$as_base |
---|
149 | export CONFIG_SHELL |
---|
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
151 | fi;; |
---|
152 | esac |
---|
153 | done |
---|
154 | done |
---|
155 | ;; |
---|
156 | esac |
---|
157 | |
---|
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
160 | # line-number line before each line; the second 'sed' does the real |
---|
161 | # work. The second script uses 'N' to pair each line-number line |
---|
162 | # with the numbered line, and appends trailing '-' during |
---|
163 | # substitution so that $LINENO is not a special case at line end. |
---|
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
166 | sed '=' <$as_myself | |
---|
167 | sed ' |
---|
168 | N |
---|
169 | s,$,-, |
---|
170 | : loop |
---|
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
172 | t loop |
---|
173 | s,-$,, |
---|
174 | s,^['$as_cr_digits']*\n,, |
---|
175 | ' >$as_me.lineno && |
---|
176 | chmod +x $as_me.lineno || |
---|
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
178 | { (exit 1); exit 1; }; } |
---|
179 | |
---|
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
181 | # (the dirname of $[0] is not the place where we might find the |
---|
182 | # original and so on. Autoconf is especially sensible to this). |
---|
183 | . ./$as_me.lineno |
---|
184 | # Exit status is that of the last command. |
---|
185 | exit |
---|
186 | } |
---|
187 | |
---|
188 | |
---|
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
191 | ' ECHO_T=' ' ;; |
---|
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
194 | esac |
---|
195 | |
---|
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
197 | as_expr=expr |
---|
198 | else |
---|
199 | as_expr=false |
---|
200 | fi |
---|
201 | |
---|
202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
203 | echo >conf$$.file |
---|
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
207 | if test -f conf$$.exe; then |
---|
208 | # Don't use ln at all; we don't have any links |
---|
209 | as_ln_s='cp -p' |
---|
210 | else |
---|
211 | as_ln_s='ln -s' |
---|
212 | fi |
---|
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
214 | as_ln_s=ln |
---|
215 | else |
---|
216 | as_ln_s='cp -p' |
---|
217 | fi |
---|
218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
219 | |
---|
220 | if mkdir -p . 2>/dev/null; then |
---|
221 | as_mkdir_p=: |
---|
222 | else |
---|
223 | test -d ./-p && rmdir ./-p |
---|
224 | as_mkdir_p=false |
---|
225 | fi |
---|
226 | |
---|
227 | as_executable_p="test -f" |
---|
228 | |
---|
229 | # Sed expression to map a string onto a valid CPP name. |
---|
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
231 | |
---|
232 | # Sed expression to map a string onto a valid variable name. |
---|
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
234 | |
---|
235 | |
---|
236 | # IFS |
---|
237 | # We need space, tab and new line, in precisely that order. |
---|
238 | as_nl=' |
---|
239 | ' |
---|
240 | IFS=" $as_nl" |
---|
241 | |
---|
242 | # CDPATH. |
---|
243 | $as_unset CDPATH |
---|
244 | |
---|
245 | |
---|
246 | # Name of the host. |
---|
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
248 | # so uname gets run too. |
---|
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
250 | |
---|
251 | exec 6>&1 |
---|
252 | |
---|
253 | # |
---|
254 | # Initializations. |
---|
255 | # |
---|
256 | ac_default_prefix=/usr/local |
---|
257 | ac_config_libobj_dir=. |
---|
258 | cross_compiling=no |
---|
259 | subdirs= |
---|
260 | MFLAGS= |
---|
261 | MAKEFLAGS= |
---|
262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
263 | |
---|
264 | # Maximum number of lines to put in a shell here document. |
---|
265 | # This variable seems obsolete. It should probably be removed, and |
---|
266 | # only ac_max_sed_lines should be used. |
---|
267 | : ${ac_max_here_lines=38} |
---|
268 | |
---|
269 | # Identity of this package. |
---|
270 | PACKAGE_NAME='orxonox' |
---|
271 | PACKAGE_TARNAME='orxonox' |
---|
272 | PACKAGE_VERSION='0.2.3-pre-alpha' |
---|
273 | PACKAGE_STRING='orxonox 0.2.3-pre-alpha' |
---|
274 | PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch' |
---|
275 | |
---|
276 | ac_unique_file="." |
---|
277 | # Factoring default headers for most tests. |
---|
278 | ac_includes_default="\ |
---|
279 | #include <stdio.h> |
---|
280 | #if HAVE_SYS_TYPES_H |
---|
281 | # include <sys/types.h> |
---|
282 | #endif |
---|
283 | #if HAVE_SYS_STAT_H |
---|
284 | # include <sys/stat.h> |
---|
285 | #endif |
---|
286 | #if STDC_HEADERS |
---|
287 | # include <stdlib.h> |
---|
288 | # include <stddef.h> |
---|
289 | #else |
---|
290 | # if HAVE_STDLIB_H |
---|
291 | # include <stdlib.h> |
---|
292 | # endif |
---|
293 | #endif |
---|
294 | #if HAVE_STRING_H |
---|
295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
296 | # include <memory.h> |
---|
297 | # endif |
---|
298 | # include <string.h> |
---|
299 | #endif |
---|
300 | #if HAVE_STRINGS_H |
---|
301 | # include <strings.h> |
---|
302 | #endif |
---|
303 | #if HAVE_INTTYPES_H |
---|
304 | # include <inttypes.h> |
---|
305 | #else |
---|
306 | # if HAVE_STDINT_H |
---|
307 | # include <stdint.h> |
---|
308 | # endif |
---|
309 | #endif |
---|
310 | #if HAVE_UNISTD_H |
---|
311 | # include <unistd.h> |
---|
312 | #endif" |
---|
313 | |
---|
314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE GTHREAD_LIBS GTHREAD_CFLAGS HAVE_GTHREAD_TRUE HAVE_GTHREAD_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS' |
---|
315 | ac_subst_files='' |
---|
316 | |
---|
317 | # Initialize some variables set by options. |
---|
318 | ac_init_help= |
---|
319 | ac_init_version=false |
---|
320 | # The variables have the same names as the options, with |
---|
321 | # dashes changed to underlines. |
---|
322 | cache_file=/dev/null |
---|
323 | exec_prefix=NONE |
---|
324 | no_create= |
---|
325 | no_recursion= |
---|
326 | prefix=NONE |
---|
327 | program_prefix=NONE |
---|
328 | program_suffix=NONE |
---|
329 | program_transform_name=s,x,x, |
---|
330 | silent= |
---|
331 | site= |
---|
332 | srcdir= |
---|
333 | verbose= |
---|
334 | x_includes=NONE |
---|
335 | x_libraries=NONE |
---|
336 | |
---|
337 | # Installation directory options. |
---|
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
339 | # and all the variables that are supposed to be based on exec_prefix |
---|
340 | # by default will actually change. |
---|
341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
342 | bindir='${exec_prefix}/bin' |
---|
343 | sbindir='${exec_prefix}/sbin' |
---|
344 | libexecdir='${exec_prefix}/libexec' |
---|
345 | datadir='${prefix}/share' |
---|
346 | sysconfdir='${prefix}/etc' |
---|
347 | sharedstatedir='${prefix}/com' |
---|
348 | localstatedir='${prefix}/var' |
---|
349 | libdir='${exec_prefix}/lib' |
---|
350 | includedir='${prefix}/include' |
---|
351 | oldincludedir='/usr/include' |
---|
352 | infodir='${prefix}/info' |
---|
353 | mandir='${prefix}/man' |
---|
354 | |
---|
355 | ac_prev= |
---|
356 | for ac_option |
---|
357 | do |
---|
358 | # If the previous option needs an argument, assign it. |
---|
359 | if test -n "$ac_prev"; then |
---|
360 | eval "$ac_prev=\$ac_option" |
---|
361 | ac_prev= |
---|
362 | continue |
---|
363 | fi |
---|
364 | |
---|
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
366 | |
---|
367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
368 | |
---|
369 | case $ac_option in |
---|
370 | |
---|
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
372 | ac_prev=bindir ;; |
---|
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
374 | bindir=$ac_optarg ;; |
---|
375 | |
---|
376 | -build | --build | --buil | --bui | --bu) |
---|
377 | ac_prev=build_alias ;; |
---|
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
379 | build_alias=$ac_optarg ;; |
---|
380 | |
---|
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
383 | ac_prev=cache_file ;; |
---|
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
386 | cache_file=$ac_optarg ;; |
---|
387 | |
---|
388 | --config-cache | -C) |
---|
389 | cache_file=config.cache ;; |
---|
390 | |
---|
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
392 | ac_prev=datadir ;; |
---|
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
394 | | --da=*) |
---|
395 | datadir=$ac_optarg ;; |
---|
396 | |
---|
397 | -disable-* | --disable-*) |
---|
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
399 | # Reject names that are not valid shell variable names. |
---|
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
402 | { (exit 1); exit 1; }; } |
---|
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
404 | eval "enable_$ac_feature=no" ;; |
---|
405 | |
---|
406 | -enable-* | --enable-*) |
---|
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
408 | # Reject names that are not valid shell variable names. |
---|
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
411 | { (exit 1); exit 1; }; } |
---|
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
413 | case $ac_option in |
---|
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
415 | *) ac_optarg=yes ;; |
---|
416 | esac |
---|
417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
418 | |
---|
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
421 | | --exec | --exe | --ex) |
---|
422 | ac_prev=exec_prefix ;; |
---|
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
425 | | --exec=* | --exe=* | --ex=*) |
---|
426 | exec_prefix=$ac_optarg ;; |
---|
427 | |
---|
428 | -gas | --gas | --ga | --g) |
---|
429 | # Obsolete; use --with-gas. |
---|
430 | with_gas=yes ;; |
---|
431 | |
---|
432 | -help | --help | --hel | --he | -h) |
---|
433 | ac_init_help=long ;; |
---|
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
435 | ac_init_help=recursive ;; |
---|
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
437 | ac_init_help=short ;; |
---|
438 | |
---|
439 | -host | --host | --hos | --ho) |
---|
440 | ac_prev=host_alias ;; |
---|
441 | -host=* | --host=* | --hos=* | --ho=*) |
---|
442 | host_alias=$ac_optarg ;; |
---|
443 | |
---|
444 | -includedir | --includedir | --includedi | --included | --include \ |
---|
445 | | --includ | --inclu | --incl | --inc) |
---|
446 | ac_prev=includedir ;; |
---|
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
449 | includedir=$ac_optarg ;; |
---|
450 | |
---|
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
452 | ac_prev=infodir ;; |
---|
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
454 | infodir=$ac_optarg ;; |
---|
455 | |
---|
456 | -libdir | --libdir | --libdi | --libd) |
---|
457 | ac_prev=libdir ;; |
---|
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
459 | libdir=$ac_optarg ;; |
---|
460 | |
---|
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
462 | | --libexe | --libex | --libe) |
---|
463 | ac_prev=libexecdir ;; |
---|
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
465 | | --libexe=* | --libex=* | --libe=*) |
---|
466 | libexecdir=$ac_optarg ;; |
---|
467 | |
---|
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
469 | | --localstate | --localstat | --localsta | --localst \ |
---|
470 | | --locals | --local | --loca | --loc | --lo) |
---|
471 | ac_prev=localstatedir ;; |
---|
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
475 | localstatedir=$ac_optarg ;; |
---|
476 | |
---|
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
478 | ac_prev=mandir ;; |
---|
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
480 | mandir=$ac_optarg ;; |
---|
481 | |
---|
482 | -nfp | --nfp | --nf) |
---|
483 | # Obsolete; use --without-fp. |
---|
484 | with_fp=no ;; |
---|
485 | |
---|
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
487 | | --no-cr | --no-c | -n) |
---|
488 | no_create=yes ;; |
---|
489 | |
---|
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
492 | no_recursion=yes ;; |
---|
493 | |
---|
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
496 | | --oldin | --oldi | --old | --ol | --o) |
---|
497 | ac_prev=oldincludedir ;; |
---|
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
501 | oldincludedir=$ac_optarg ;; |
---|
502 | |
---|
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
504 | ac_prev=prefix ;; |
---|
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
506 | prefix=$ac_optarg ;; |
---|
507 | |
---|
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
509 | | --program-pre | --program-pr | --program-p) |
---|
510 | ac_prev=program_prefix ;; |
---|
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
513 | program_prefix=$ac_optarg ;; |
---|
514 | |
---|
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
516 | | --program-suf | --program-su | --program-s) |
---|
517 | ac_prev=program_suffix ;; |
---|
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
520 | program_suffix=$ac_optarg ;; |
---|
521 | |
---|
522 | -program-transform-name | --program-transform-name \ |
---|
523 | | --program-transform-nam | --program-transform-na \ |
---|
524 | | --program-transform-n | --program-transform- \ |
---|
525 | | --program-transform | --program-transfor \ |
---|
526 | | --program-transfo | --program-transf \ |
---|
527 | | --program-trans | --program-tran \ |
---|
528 | | --progr-tra | --program-tr | --program-t) |
---|
529 | ac_prev=program_transform_name ;; |
---|
530 | -program-transform-name=* | --program-transform-name=* \ |
---|
531 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
532 | | --program-transform-n=* | --program-transform-=* \ |
---|
533 | | --program-transform=* | --program-transfor=* \ |
---|
534 | | --program-transfo=* | --program-transf=* \ |
---|
535 | | --program-trans=* | --program-tran=* \ |
---|
536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
537 | program_transform_name=$ac_optarg ;; |
---|
538 | |
---|
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
540 | | -silent | --silent | --silen | --sile | --sil) |
---|
541 | silent=yes ;; |
---|
542 | |
---|
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
544 | ac_prev=sbindir ;; |
---|
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
546 | | --sbi=* | --sb=*) |
---|
547 | sbindir=$ac_optarg ;; |
---|
548 | |
---|
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
551 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
552 | | --sha | --sh) |
---|
553 | ac_prev=sharedstatedir ;; |
---|
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
557 | | --sha=* | --sh=*) |
---|
558 | sharedstatedir=$ac_optarg ;; |
---|
559 | |
---|
560 | -site | --site | --sit) |
---|
561 | ac_prev=site ;; |
---|
562 | -site=* | --site=* | --sit=*) |
---|
563 | site=$ac_optarg ;; |
---|
564 | |
---|
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
566 | ac_prev=srcdir ;; |
---|
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
568 | srcdir=$ac_optarg ;; |
---|
569 | |
---|
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
571 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
572 | ac_prev=sysconfdir ;; |
---|
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
575 | sysconfdir=$ac_optarg ;; |
---|
576 | |
---|
577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
578 | ac_prev=target_alias ;; |
---|
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
580 | target_alias=$ac_optarg ;; |
---|
581 | |
---|
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
583 | verbose=yes ;; |
---|
584 | |
---|
585 | -version | --version | --versio | --versi | --vers | -V) |
---|
586 | ac_init_version=: ;; |
---|
587 | |
---|
588 | -with-* | --with-*) |
---|
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
590 | # Reject names that are not valid shell variable names. |
---|
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
593 | { (exit 1); exit 1; }; } |
---|
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
595 | case $ac_option in |
---|
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
597 | *) ac_optarg=yes ;; |
---|
598 | esac |
---|
599 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
600 | |
---|
601 | -without-* | --without-*) |
---|
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
603 | # Reject names that are not valid shell variable names. |
---|
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
606 | { (exit 1); exit 1; }; } |
---|
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
608 | eval "with_$ac_package=no" ;; |
---|
609 | |
---|
610 | --x) |
---|
611 | # Obsolete; use --with-x. |
---|
612 | with_x=yes ;; |
---|
613 | |
---|
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
615 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
616 | ac_prev=x_includes ;; |
---|
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
619 | x_includes=$ac_optarg ;; |
---|
620 | |
---|
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
623 | ac_prev=x_libraries ;; |
---|
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
626 | x_libraries=$ac_optarg ;; |
---|
627 | |
---|
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
629 | Try \`$0 --help' for more information." >&2 |
---|
630 | { (exit 1); exit 1; }; } |
---|
631 | ;; |
---|
632 | |
---|
633 | *=*) |
---|
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
635 | # Reject names that are not valid shell variable names. |
---|
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
638 | { (exit 1); exit 1; }; } |
---|
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
640 | eval "$ac_envvar='$ac_optarg'" |
---|
641 | export $ac_envvar ;; |
---|
642 | |
---|
643 | *) |
---|
644 | # FIXME: should be removed in autoconf 3.0. |
---|
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
649 | ;; |
---|
650 | |
---|
651 | esac |
---|
652 | done |
---|
653 | |
---|
654 | if test -n "$ac_prev"; then |
---|
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
657 | { (exit 1); exit 1; }; } |
---|
658 | fi |
---|
659 | |
---|
660 | # Be sure to have absolute paths. |
---|
661 | for ac_var in exec_prefix prefix |
---|
662 | do |
---|
663 | eval ac_val=$`echo $ac_var` |
---|
664 | case $ac_val in |
---|
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
667 | { (exit 1); exit 1; }; };; |
---|
668 | esac |
---|
669 | done |
---|
670 | |
---|
671 | # Be sure to have absolute paths. |
---|
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
673 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
674 | do |
---|
675 | eval ac_val=$`echo $ac_var` |
---|
676 | case $ac_val in |
---|
677 | [\\/$]* | ?:[\\/]* ) ;; |
---|
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
679 | { (exit 1); exit 1; }; };; |
---|
680 | esac |
---|
681 | done |
---|
682 | |
---|
683 | # There might be people who depend on the old broken behavior: `$host' |
---|
684 | # used to hold the argument of --host etc. |
---|
685 | # FIXME: To remove some day. |
---|
686 | build=$build_alias |
---|
687 | host=$host_alias |
---|
688 | target=$target_alias |
---|
689 | |
---|
690 | # FIXME: To remove some day. |
---|
691 | if test "x$host_alias" != x; then |
---|
692 | if test "x$build_alias" = x; then |
---|
693 | cross_compiling=maybe |
---|
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
696 | elif test "x$build_alias" != "x$host_alias"; then |
---|
697 | cross_compiling=yes |
---|
698 | fi |
---|
699 | fi |
---|
700 | |
---|
701 | ac_tool_prefix= |
---|
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
703 | |
---|
704 | test "$silent" = yes && exec 6>/dev/null |
---|
705 | |
---|
706 | |
---|
707 | # Find the source files, if location was not specified. |
---|
708 | if test -z "$srcdir"; then |
---|
709 | ac_srcdir_defaulted=yes |
---|
710 | # Try the directory containing this script, then its parent. |
---|
711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
713 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
714 | X"$0" : 'X\(//\)$' \| \ |
---|
715 | X"$0" : 'X\(/\)' \| \ |
---|
716 | . : '\(.\)' 2>/dev/null || |
---|
717 | echo X"$0" | |
---|
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
722 | s/.*/./; q'` |
---|
723 | srcdir=$ac_confdir |
---|
724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
725 | srcdir=.. |
---|
726 | fi |
---|
727 | else |
---|
728 | ac_srcdir_defaulted=no |
---|
729 | fi |
---|
730 | if test ! -r $srcdir/$ac_unique_file; then |
---|
731 | if test "$ac_srcdir_defaulted" = yes; then |
---|
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
733 | { (exit 1); exit 1; }; } |
---|
734 | else |
---|
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
736 | { (exit 1); exit 1; }; } |
---|
737 | fi |
---|
738 | fi |
---|
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
741 | { (exit 1); exit 1; }; } |
---|
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
743 | ac_env_build_alias_set=${build_alias+set} |
---|
744 | ac_env_build_alias_value=$build_alias |
---|
745 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
746 | ac_cv_env_build_alias_value=$build_alias |
---|
747 | ac_env_host_alias_set=${host_alias+set} |
---|
748 | ac_env_host_alias_value=$host_alias |
---|
749 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
750 | ac_cv_env_host_alias_value=$host_alias |
---|
751 | ac_env_target_alias_set=${target_alias+set} |
---|
752 | ac_env_target_alias_value=$target_alias |
---|
753 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
754 | ac_cv_env_target_alias_value=$target_alias |
---|
755 | ac_env_CXX_set=${CXX+set} |
---|
756 | ac_env_CXX_value=$CXX |
---|
757 | ac_cv_env_CXX_set=${CXX+set} |
---|
758 | ac_cv_env_CXX_value=$CXX |
---|
759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
760 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
764 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
771 | ac_env_CC_set=${CC+set} |
---|
772 | ac_env_CC_value=$CC |
---|
773 | ac_cv_env_CC_set=${CC+set} |
---|
774 | ac_cv_env_CC_value=$CC |
---|
775 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
776 | ac_env_CFLAGS_value=$CFLAGS |
---|
777 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
778 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
779 | ac_env_CPP_set=${CPP+set} |
---|
780 | ac_env_CPP_value=$CPP |
---|
781 | ac_cv_env_CPP_set=${CPP+set} |
---|
782 | ac_cv_env_CPP_value=$CPP |
---|
783 | |
---|
784 | # |
---|
785 | # Report the --help message. |
---|
786 | # |
---|
787 | if test "$ac_init_help" = "long"; then |
---|
788 | # Omit some internal or obsolete options to make the list less imposing. |
---|
789 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
790 | cat <<_ACEOF |
---|
791 | \`configure' configures orxonox 0.2.3-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 | |
---|
849 | System types: |
---|
850 | --build=BUILD configure for building on BUILD [guessed] |
---|
851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
852 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
853 | _ACEOF |
---|
854 | fi |
---|
855 | |
---|
856 | if test -n "$ac_init_help"; then |
---|
857 | case $ac_init_help in |
---|
858 | short | recursive ) echo "Configuration of orxonox 0.2.3-pre-alpha:";; |
---|
859 | esac |
---|
860 | cat <<\_ACEOF |
---|
861 | |
---|
862 | Optional Features: |
---|
863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
865 | --disable-dependency-tracking speeds up one-time build |
---|
866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
868 | game. |
---|
869 | --disable-modular-debug compiles in modular-debug mode, that logs |
---|
870 | differently on the many modules of orxonox. |
---|
871 | --enable-sub-projects also builds the subProjects while make from srcdir |
---|
872 | --enable-profile builds orxonox with profiling support |
---|
873 | --enable-efence builds orxonox with efence support |
---|
874 | --enable-documentation also builds the sDocumentation while make from |
---|
875 | srcdir |
---|
876 | |
---|
877 | Optional Packages: |
---|
878 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
879 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
880 | --without-gtk Prevents GTK from being loaded |
---|
881 | --without-gthread Prevents gThread from being loaded |
---|
882 | --without-pthread Prevents pthread from being loaded |
---|
883 | --without-curl Prevents libcURL from being loaded |
---|
884 | |
---|
885 | Some influential environment variables: |
---|
886 | CXX C++ compiler command |
---|
887 | CXXFLAGS C++ compiler flags |
---|
888 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
889 | nonstandard directory <lib dir> |
---|
890 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
891 | headers in a nonstandard directory <include dir> |
---|
892 | CC C compiler command |
---|
893 | CFLAGS C compiler flags |
---|
894 | CPP C preprocessor |
---|
895 | |
---|
896 | Use these variables to override the choices made by `configure' or to help |
---|
897 | it to find libraries and programs with nonstandard names/locations. |
---|
898 | |
---|
899 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
900 | _ACEOF |
---|
901 | fi |
---|
902 | |
---|
903 | if test "$ac_init_help" = "recursive"; then |
---|
904 | # If there are subdirs, report their specific --help. |
---|
905 | ac_popdir=`pwd` |
---|
906 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
907 | test -d $ac_dir || continue |
---|
908 | ac_builddir=. |
---|
909 | |
---|
910 | if test "$ac_dir" != .; then |
---|
911 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
912 | # A "../" for each directory in $ac_dir_suffix. |
---|
913 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
914 | else |
---|
915 | ac_dir_suffix= ac_top_builddir= |
---|
916 | fi |
---|
917 | |
---|
918 | case $srcdir in |
---|
919 | .) # No --srcdir option. We are building in place. |
---|
920 | ac_srcdir=. |
---|
921 | if test -z "$ac_top_builddir"; then |
---|
922 | ac_top_srcdir=. |
---|
923 | else |
---|
924 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
925 | fi ;; |
---|
926 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
927 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
928 | ac_top_srcdir=$srcdir ;; |
---|
929 | *) # Relative path. |
---|
930 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
931 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
932 | esac |
---|
933 | |
---|
934 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
935 | # the directories may not exist. |
---|
936 | case `pwd` in |
---|
937 | .) ac_abs_builddir="$ac_dir";; |
---|
938 | *) |
---|
939 | case "$ac_dir" in |
---|
940 | .) ac_abs_builddir=`pwd`;; |
---|
941 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
942 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
943 | esac;; |
---|
944 | esac |
---|
945 | case $ac_abs_builddir in |
---|
946 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
947 | *) |
---|
948 | case ${ac_top_builddir}. in |
---|
949 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
950 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
951 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
952 | esac;; |
---|
953 | esac |
---|
954 | case $ac_abs_builddir in |
---|
955 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
956 | *) |
---|
957 | case $ac_srcdir in |
---|
958 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
959 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
960 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
961 | esac;; |
---|
962 | esac |
---|
963 | case $ac_abs_builddir in |
---|
964 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
965 | *) |
---|
966 | case $ac_top_srcdir in |
---|
967 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
968 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
969 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
970 | esac;; |
---|
971 | esac |
---|
972 | |
---|
973 | cd $ac_dir |
---|
974 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
975 | if test -f $ac_srcdir/configure.gnu; then |
---|
976 | echo |
---|
977 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
978 | elif test -f $ac_srcdir/configure; then |
---|
979 | echo |
---|
980 | $SHELL $ac_srcdir/configure --help=recursive |
---|
981 | elif test -f $ac_srcdir/configure.ac || |
---|
982 | test -f $ac_srcdir/configure.in; then |
---|
983 | echo |
---|
984 | $ac_configure --help |
---|
985 | else |
---|
986 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
987 | fi |
---|
988 | cd $ac_popdir |
---|
989 | done |
---|
990 | fi |
---|
991 | |
---|
992 | test -n "$ac_init_help" && exit 0 |
---|
993 | if $ac_init_version; then |
---|
994 | cat <<\_ACEOF |
---|
995 | orxonox configure 0.2.3-pre-alpha |
---|
996 | generated by GNU Autoconf 2.59 |
---|
997 | |
---|
998 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
999 | This configure script is free software; the Free Software Foundation |
---|
1000 | gives unlimited permission to copy, distribute and modify it. |
---|
1001 | _ACEOF |
---|
1002 | exit 0 |
---|
1003 | fi |
---|
1004 | exec 5>config.log |
---|
1005 | cat >&5 <<_ACEOF |
---|
1006 | This file contains any messages produced by compilers while |
---|
1007 | running configure, to aid debugging if configure makes a mistake. |
---|
1008 | |
---|
1009 | It was created by orxonox $as_me 0.2.3-pre-alpha, which was |
---|
1010 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1011 | |
---|
1012 | $ $0 $@ |
---|
1013 | |
---|
1014 | _ACEOF |
---|
1015 | { |
---|
1016 | cat <<_ASUNAME |
---|
1017 | ## --------- ## |
---|
1018 | ## Platform. ## |
---|
1019 | ## --------- ## |
---|
1020 | |
---|
1021 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1022 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1023 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1024 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1025 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1026 | |
---|
1027 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1028 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1029 | |
---|
1030 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1031 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1032 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1033 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1034 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1035 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1036 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1037 | |
---|
1038 | _ASUNAME |
---|
1039 | |
---|
1040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1041 | for as_dir in $PATH |
---|
1042 | do |
---|
1043 | IFS=$as_save_IFS |
---|
1044 | test -z "$as_dir" && as_dir=. |
---|
1045 | echo "PATH: $as_dir" |
---|
1046 | done |
---|
1047 | |
---|
1048 | } >&5 |
---|
1049 | |
---|
1050 | cat >&5 <<_ACEOF |
---|
1051 | |
---|
1052 | |
---|
1053 | ## ----------- ## |
---|
1054 | ## Core tests. ## |
---|
1055 | ## ----------- ## |
---|
1056 | |
---|
1057 | _ACEOF |
---|
1058 | |
---|
1059 | |
---|
1060 | # Keep a trace of the command line. |
---|
1061 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1062 | # Strip out --silent because we don't want to record it for future runs. |
---|
1063 | # Also quote any args containing shell meta-characters. |
---|
1064 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1065 | ac_configure_args= |
---|
1066 | ac_configure_args0= |
---|
1067 | ac_configure_args1= |
---|
1068 | ac_sep= |
---|
1069 | ac_must_keep_next=false |
---|
1070 | for ac_pass in 1 2 |
---|
1071 | do |
---|
1072 | for ac_arg |
---|
1073 | do |
---|
1074 | case $ac_arg in |
---|
1075 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1076 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1077 | | -silent | --silent | --silen | --sile | --sil) |
---|
1078 | continue ;; |
---|
1079 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1080 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1081 | esac |
---|
1082 | case $ac_pass in |
---|
1083 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1084 | 2) |
---|
1085 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1086 | if test $ac_must_keep_next = true; then |
---|
1087 | ac_must_keep_next=false # Got value, back to normal. |
---|
1088 | else |
---|
1089 | case $ac_arg in |
---|
1090 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1091 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1092 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1093 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1094 | case "$ac_configure_args0 " in |
---|
1095 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1096 | esac |
---|
1097 | ;; |
---|
1098 | -* ) ac_must_keep_next=true ;; |
---|
1099 | esac |
---|
1100 | fi |
---|
1101 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1102 | # Get rid of the leading space. |
---|
1103 | ac_sep=" " |
---|
1104 | ;; |
---|
1105 | esac |
---|
1106 | done |
---|
1107 | done |
---|
1108 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1109 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1110 | |
---|
1111 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1112 | # config.log. We remove comments because anyway the quotes in there |
---|
1113 | # would cause problems or look ugly. |
---|
1114 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1115 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1116 | trap 'exit_status=$? |
---|
1117 | # Save into config.log some information that might help in debugging. |
---|
1118 | { |
---|
1119 | echo |
---|
1120 | |
---|
1121 | cat <<\_ASBOX |
---|
1122 | ## ---------------- ## |
---|
1123 | ## Cache variables. ## |
---|
1124 | ## ---------------- ## |
---|
1125 | _ASBOX |
---|
1126 | echo |
---|
1127 | # The following way of writing the cache mishandles newlines in values, |
---|
1128 | { |
---|
1129 | (set) 2>&1 | |
---|
1130 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1131 | *ac_space=\ *) |
---|
1132 | sed -n \ |
---|
1133 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1134 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1135 | ;; |
---|
1136 | *) |
---|
1137 | sed -n \ |
---|
1138 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1139 | ;; |
---|
1140 | esac; |
---|
1141 | } |
---|
1142 | echo |
---|
1143 | |
---|
1144 | cat <<\_ASBOX |
---|
1145 | ## ----------------- ## |
---|
1146 | ## Output variables. ## |
---|
1147 | ## ----------------- ## |
---|
1148 | _ASBOX |
---|
1149 | echo |
---|
1150 | for ac_var in $ac_subst_vars |
---|
1151 | do |
---|
1152 | eval ac_val=$`echo $ac_var` |
---|
1153 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1154 | done | sort |
---|
1155 | echo |
---|
1156 | |
---|
1157 | if test -n "$ac_subst_files"; then |
---|
1158 | cat <<\_ASBOX |
---|
1159 | ## ------------- ## |
---|
1160 | ## Output files. ## |
---|
1161 | ## ------------- ## |
---|
1162 | _ASBOX |
---|
1163 | echo |
---|
1164 | for ac_var in $ac_subst_files |
---|
1165 | do |
---|
1166 | eval ac_val=$`echo $ac_var` |
---|
1167 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1168 | done | sort |
---|
1169 | echo |
---|
1170 | fi |
---|
1171 | |
---|
1172 | if test -s confdefs.h; then |
---|
1173 | cat <<\_ASBOX |
---|
1174 | ## ----------- ## |
---|
1175 | ## confdefs.h. ## |
---|
1176 | ## ----------- ## |
---|
1177 | _ASBOX |
---|
1178 | echo |
---|
1179 | sed "/^$/d" confdefs.h | sort |
---|
1180 | echo |
---|
1181 | fi |
---|
1182 | test "$ac_signal" != 0 && |
---|
1183 | echo "$as_me: caught signal $ac_signal" |
---|
1184 | echo "$as_me: exit $exit_status" |
---|
1185 | } >&5 |
---|
1186 | rm -f core *.core && |
---|
1187 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1188 | exit $exit_status |
---|
1189 | ' 0 |
---|
1190 | for ac_signal in 1 2 13 15; do |
---|
1191 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1192 | done |
---|
1193 | ac_signal=0 |
---|
1194 | |
---|
1195 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1196 | rm -rf conftest* confdefs.h |
---|
1197 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1198 | echo >confdefs.h |
---|
1199 | |
---|
1200 | # Predefined preprocessor variables. |
---|
1201 | |
---|
1202 | cat >>confdefs.h <<_ACEOF |
---|
1203 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1204 | _ACEOF |
---|
1205 | |
---|
1206 | |
---|
1207 | cat >>confdefs.h <<_ACEOF |
---|
1208 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1209 | _ACEOF |
---|
1210 | |
---|
1211 | |
---|
1212 | cat >>confdefs.h <<_ACEOF |
---|
1213 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1214 | _ACEOF |
---|
1215 | |
---|
1216 | |
---|
1217 | cat >>confdefs.h <<_ACEOF |
---|
1218 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1219 | _ACEOF |
---|
1220 | |
---|
1221 | |
---|
1222 | cat >>confdefs.h <<_ACEOF |
---|
1223 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1224 | _ACEOF |
---|
1225 | |
---|
1226 | |
---|
1227 | # Let the site file select an alternate cache file if it wants to. |
---|
1228 | # Prefer explicitly selected file to automatically selected ones. |
---|
1229 | if test -z "$CONFIG_SITE"; then |
---|
1230 | if test "x$prefix" != xNONE; then |
---|
1231 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1232 | else |
---|
1233 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1234 | fi |
---|
1235 | fi |
---|
1236 | for ac_site_file in $CONFIG_SITE; do |
---|
1237 | if test -r "$ac_site_file"; then |
---|
1238 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1239 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1240 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1241 | . "$ac_site_file" |
---|
1242 | fi |
---|
1243 | done |
---|
1244 | |
---|
1245 | if test -r "$cache_file"; then |
---|
1246 | # Some versions of bash will fail to source /dev/null (special |
---|
1247 | # files actually), so we avoid doing that. |
---|
1248 | if test -f "$cache_file"; then |
---|
1249 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1250 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1251 | case $cache_file in |
---|
1252 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1253 | *) . ./$cache_file;; |
---|
1254 | esac |
---|
1255 | fi |
---|
1256 | else |
---|
1257 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1258 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1259 | >$cache_file |
---|
1260 | fi |
---|
1261 | |
---|
1262 | # Check that the precious variables saved in the cache have kept the same |
---|
1263 | # value. |
---|
1264 | ac_cache_corrupted=false |
---|
1265 | for ac_var in `(set) 2>&1 | |
---|
1266 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1267 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1268 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1269 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1270 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1271 | case $ac_old_set,$ac_new_set in |
---|
1272 | set,) |
---|
1273 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1274 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1275 | ac_cache_corrupted=: ;; |
---|
1276 | ,set) |
---|
1277 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1278 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1279 | ac_cache_corrupted=: ;; |
---|
1280 | ,);; |
---|
1281 | *) |
---|
1282 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1283 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1284 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1285 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1286 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1287 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1288 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1289 | ac_cache_corrupted=: |
---|
1290 | fi;; |
---|
1291 | esac |
---|
1292 | # Pass precious variables to config.status. |
---|
1293 | if test "$ac_new_set" = set; then |
---|
1294 | case $ac_new_val in |
---|
1295 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1296 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1297 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1298 | esac |
---|
1299 | case " $ac_configure_args " in |
---|
1300 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1301 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1302 | esac |
---|
1303 | fi |
---|
1304 | done |
---|
1305 | if $ac_cache_corrupted; then |
---|
1306 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1307 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1308 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1309 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1310 | { (exit 1); exit 1; }; } |
---|
1311 | fi |
---|
1312 | |
---|
1313 | ac_ext=c |
---|
1314 | ac_cpp='$CPP $CPPFLAGS' |
---|
1315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1318 | |
---|
1319 | |
---|
1320 | |
---|
1321 | |
---|
1322 | |
---|
1323 | |
---|
1324 | |
---|
1325 | |
---|
1326 | |
---|
1327 | |
---|
1328 | |
---|
1329 | |
---|
1330 | |
---|
1331 | |
---|
1332 | |
---|
1333 | |
---|
1334 | |
---|
1335 | |
---|
1336 | |
---|
1337 | |
---|
1338 | |
---|
1339 | |
---|
1340 | |
---|
1341 | |
---|
1342 | |
---|
1343 | |
---|
1344 | |
---|
1345 | |
---|
1346 | ## Detect the canonical host and target build environment. |
---|
1347 | ac_aux_dir= |
---|
1348 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1349 | if test -f $ac_dir/install-sh; then |
---|
1350 | ac_aux_dir=$ac_dir |
---|
1351 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1352 | break |
---|
1353 | elif test -f $ac_dir/install.sh; then |
---|
1354 | ac_aux_dir=$ac_dir |
---|
1355 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1356 | break |
---|
1357 | elif test -f $ac_dir/shtool; then |
---|
1358 | ac_aux_dir=$ac_dir |
---|
1359 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1360 | break |
---|
1361 | fi |
---|
1362 | done |
---|
1363 | if test -z "$ac_aux_dir"; then |
---|
1364 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1365 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1366 | { (exit 1); exit 1; }; } |
---|
1367 | fi |
---|
1368 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1369 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1370 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1371 | |
---|
1372 | # Make sure we can run config.sub. |
---|
1373 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1374 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1375 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1376 | { (exit 1); exit 1; }; } |
---|
1377 | |
---|
1378 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1379 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1380 | if test "${ac_cv_build+set}" = set; then |
---|
1381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1382 | else |
---|
1383 | ac_cv_build_alias=$build_alias |
---|
1384 | test -z "$ac_cv_build_alias" && |
---|
1385 | ac_cv_build_alias=`$ac_config_guess` |
---|
1386 | test -z "$ac_cv_build_alias" && |
---|
1387 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1388 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1389 | { (exit 1); exit 1; }; } |
---|
1390 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1391 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1392 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1393 | { (exit 1); exit 1; }; } |
---|
1394 | |
---|
1395 | fi |
---|
1396 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1397 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1398 | build=$ac_cv_build |
---|
1399 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1400 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1401 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1402 | |
---|
1403 | |
---|
1404 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1405 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1406 | if test "${ac_cv_host+set}" = set; then |
---|
1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1408 | else |
---|
1409 | ac_cv_host_alias=$host_alias |
---|
1410 | test -z "$ac_cv_host_alias" && |
---|
1411 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1412 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1413 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1414 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1415 | { (exit 1); exit 1; }; } |
---|
1416 | |
---|
1417 | fi |
---|
1418 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1419 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1420 | host=$ac_cv_host |
---|
1421 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1422 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1423 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1424 | |
---|
1425 | |
---|
1426 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1427 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1428 | if test "${ac_cv_target+set}" = set; then |
---|
1429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1430 | else |
---|
1431 | ac_cv_target_alias=$target_alias |
---|
1432 | test "x$ac_cv_target_alias" = "x" && |
---|
1433 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1434 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1435 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1436 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1437 | { (exit 1); exit 1; }; } |
---|
1438 | |
---|
1439 | fi |
---|
1440 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1441 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1442 | target=$ac_cv_target |
---|
1443 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1444 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1445 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1446 | |
---|
1447 | |
---|
1448 | # The aliases save the names the user supplied, while $host etc. |
---|
1449 | # will get canonicalized. |
---|
1450 | test -n "$target_alias" && |
---|
1451 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1452 | NONENONEs,x,x, && |
---|
1453 | program_prefix=${target_alias}- |
---|
1454 | |
---|
1455 | am__api_version="1.8" |
---|
1456 | # Find a good install program. We prefer a C program (faster), |
---|
1457 | # so one script is as good as another. But avoid the broken or |
---|
1458 | # incompatible versions: |
---|
1459 | # SysV /etc/install, /usr/sbin/install |
---|
1460 | # SunOS /usr/etc/install |
---|
1461 | # IRIX /sbin/install |
---|
1462 | # AIX /bin/install |
---|
1463 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1464 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1465 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1466 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1467 | # OS/2's system install, which has a completely different semantic |
---|
1468 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1469 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1470 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1471 | if test -z "$INSTALL"; then |
---|
1472 | if test "${ac_cv_path_install+set}" = set; then |
---|
1473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1474 | else |
---|
1475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1476 | for as_dir in $PATH |
---|
1477 | do |
---|
1478 | IFS=$as_save_IFS |
---|
1479 | test -z "$as_dir" && as_dir=. |
---|
1480 | # Account for people who put trailing slashes in PATH elements. |
---|
1481 | case $as_dir/ in |
---|
1482 | ./ | .// | /cC/* | \ |
---|
1483 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1484 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1485 | /usr/ucb/* ) ;; |
---|
1486 | *) |
---|
1487 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1488 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1489 | # by default. |
---|
1490 | for ac_prog in ginstall scoinst install; do |
---|
1491 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1492 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1493 | if test $ac_prog = install && |
---|
1494 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1495 | # AIX install. It has an incompatible calling convention. |
---|
1496 | : |
---|
1497 | elif test $ac_prog = install && |
---|
1498 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1499 | # program-specific install script used by HP pwplus--don't use. |
---|
1500 | : |
---|
1501 | else |
---|
1502 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1503 | break 3 |
---|
1504 | fi |
---|
1505 | fi |
---|
1506 | done |
---|
1507 | done |
---|
1508 | ;; |
---|
1509 | esac |
---|
1510 | done |
---|
1511 | |
---|
1512 | |
---|
1513 | fi |
---|
1514 | if test "${ac_cv_path_install+set}" = set; then |
---|
1515 | INSTALL=$ac_cv_path_install |
---|
1516 | else |
---|
1517 | # As a last resort, use the slow shell script. We don't cache a |
---|
1518 | # path for INSTALL within a source directory, because that will |
---|
1519 | # break other packages using the cache if that directory is |
---|
1520 | # removed, or if the path is relative. |
---|
1521 | INSTALL=$ac_install_sh |
---|
1522 | fi |
---|
1523 | fi |
---|
1524 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1525 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1526 | |
---|
1527 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1528 | # It thinks the first close brace ends the variable substitution. |
---|
1529 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1530 | |
---|
1531 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1532 | |
---|
1533 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1534 | |
---|
1535 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1536 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1537 | # Just in case |
---|
1538 | sleep 1 |
---|
1539 | echo timestamp > conftest.file |
---|
1540 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1541 | # arguments. Must try -L first in case configure is actually a |
---|
1542 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1543 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1544 | # directory). |
---|
1545 | if ( |
---|
1546 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1547 | if test "$*" = "X"; then |
---|
1548 | # -L didn't work. |
---|
1549 | set X `ls -t $srcdir/configure conftest.file` |
---|
1550 | fi |
---|
1551 | rm -f conftest.file |
---|
1552 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1553 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1554 | |
---|
1555 | # If neither matched, then we have a broken ls. This can happen |
---|
1556 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1557 | # broken ls alias from the environment. This has actually |
---|
1558 | # happened. Such a system could not be considered "sane". |
---|
1559 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1560 | alias in your environment" >&5 |
---|
1561 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1562 | alias in your environment" >&2;} |
---|
1563 | { (exit 1); exit 1; }; } |
---|
1564 | fi |
---|
1565 | |
---|
1566 | test "$2" = conftest.file |
---|
1567 | ) |
---|
1568 | then |
---|
1569 | # Ok. |
---|
1570 | : |
---|
1571 | else |
---|
1572 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1573 | Check your system clock" >&5 |
---|
1574 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1575 | Check your system clock" >&2;} |
---|
1576 | { (exit 1); exit 1; }; } |
---|
1577 | fi |
---|
1578 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1579 | echo "${ECHO_T}yes" >&6 |
---|
1580 | test "$program_prefix" != NONE && |
---|
1581 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1582 | # Use a double $ so make ignores it. |
---|
1583 | test "$program_suffix" != NONE && |
---|
1584 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1585 | # Double any \ or $. echo might interpret backslashes. |
---|
1586 | # By default was `s,x,x', remove it if useless. |
---|
1587 | cat <<\_ACEOF >conftest.sed |
---|
1588 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1589 | _ACEOF |
---|
1590 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1591 | rm conftest.sed |
---|
1592 | |
---|
1593 | # expand $ac_aux_dir to an absolute path |
---|
1594 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1595 | |
---|
1596 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1597 | # Use eval to expand $SHELL |
---|
1598 | if eval "$MISSING --run true"; then |
---|
1599 | am_missing_run="$MISSING --run " |
---|
1600 | else |
---|
1601 | am_missing_run= |
---|
1602 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1603 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1604 | fi |
---|
1605 | |
---|
1606 | if mkdir -p -- . 2>/dev/null; then |
---|
1607 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
1608 | # argument. Indeed, we sometimes output rules like |
---|
1609 | # $(mkdir_p) $(somedir) |
---|
1610 | # where $(somedir) is conditionally defined. |
---|
1611 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
1612 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
1613 | mkdir_p='mkdir -p -- .' |
---|
1614 | else |
---|
1615 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1616 | # recognize any option. It will interpret all options as |
---|
1617 | # directories to create, and then abort because `.' already |
---|
1618 | # exists. |
---|
1619 | for d in ./-p ./--; |
---|
1620 | do |
---|
1621 | test -d $d && rmdir $d |
---|
1622 | done |
---|
1623 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1624 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1625 | mkdir_p='$(mkinstalldirs)' |
---|
1626 | else |
---|
1627 | mkdir_p='$(install_sh) -d' |
---|
1628 | fi |
---|
1629 | fi |
---|
1630 | |
---|
1631 | for ac_prog in gawk mawk nawk awk |
---|
1632 | do |
---|
1633 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1634 | set dummy $ac_prog; ac_word=$2 |
---|
1635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1637 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1639 | else |
---|
1640 | if test -n "$AWK"; then |
---|
1641 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1642 | else |
---|
1643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1644 | for as_dir in $PATH |
---|
1645 | do |
---|
1646 | IFS=$as_save_IFS |
---|
1647 | test -z "$as_dir" && as_dir=. |
---|
1648 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1649 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1650 | ac_cv_prog_AWK="$ac_prog" |
---|
1651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1652 | break 2 |
---|
1653 | fi |
---|
1654 | done |
---|
1655 | done |
---|
1656 | |
---|
1657 | fi |
---|
1658 | fi |
---|
1659 | AWK=$ac_cv_prog_AWK |
---|
1660 | if test -n "$AWK"; then |
---|
1661 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1662 | echo "${ECHO_T}$AWK" >&6 |
---|
1663 | else |
---|
1664 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1665 | echo "${ECHO_T}no" >&6 |
---|
1666 | fi |
---|
1667 | |
---|
1668 | test -n "$AWK" && break |
---|
1669 | done |
---|
1670 | |
---|
1671 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1672 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1673 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1674 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1676 | else |
---|
1677 | cat >conftest.make <<\_ACEOF |
---|
1678 | all: |
---|
1679 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1680 | _ACEOF |
---|
1681 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1682 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1683 | if test -n "$ac_maketemp"; then |
---|
1684 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1685 | else |
---|
1686 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1687 | fi |
---|
1688 | rm -f conftest.make |
---|
1689 | fi |
---|
1690 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1691 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1692 | echo "${ECHO_T}yes" >&6 |
---|
1693 | SET_MAKE= |
---|
1694 | else |
---|
1695 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1696 | echo "${ECHO_T}no" >&6 |
---|
1697 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1698 | fi |
---|
1699 | |
---|
1700 | rm -rf .tst 2>/dev/null |
---|
1701 | mkdir .tst 2>/dev/null |
---|
1702 | if test -d .tst; then |
---|
1703 | am__leading_dot=. |
---|
1704 | else |
---|
1705 | am__leading_dot=_ |
---|
1706 | fi |
---|
1707 | rmdir .tst 2>/dev/null |
---|
1708 | |
---|
1709 | # test to see if srcdir already configured |
---|
1710 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1711 | test -f $srcdir/config.status; then |
---|
1712 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1713 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1714 | { (exit 1); exit 1; }; } |
---|
1715 | fi |
---|
1716 | |
---|
1717 | # test whether we have cygpath |
---|
1718 | if test -z "$CYGPATH_W"; then |
---|
1719 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1720 | CYGPATH_W='cygpath -w' |
---|
1721 | else |
---|
1722 | CYGPATH_W=echo |
---|
1723 | fi |
---|
1724 | fi |
---|
1725 | |
---|
1726 | |
---|
1727 | # Define the identity of the package. |
---|
1728 | PACKAGE='orxonox' |
---|
1729 | VERSION='0.2.3-pre-alpha' |
---|
1730 | |
---|
1731 | |
---|
1732 | cat >>confdefs.h <<_ACEOF |
---|
1733 | #define PACKAGE "$PACKAGE" |
---|
1734 | _ACEOF |
---|
1735 | |
---|
1736 | |
---|
1737 | cat >>confdefs.h <<_ACEOF |
---|
1738 | #define VERSION "$VERSION" |
---|
1739 | _ACEOF |
---|
1740 | |
---|
1741 | # Some tools Automake needs. |
---|
1742 | |
---|
1743 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1744 | |
---|
1745 | |
---|
1746 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1747 | |
---|
1748 | |
---|
1749 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1750 | |
---|
1751 | |
---|
1752 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1753 | |
---|
1754 | |
---|
1755 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1756 | |
---|
1757 | |
---|
1758 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1759 | |
---|
1760 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1761 | |
---|
1762 | # Installed binaries are usually stripped using `strip' when the user |
---|
1763 | # run `make install-strip'. However `strip' might not be the right |
---|
1764 | # tool to use in cross-compilation environments, therefore Automake |
---|
1765 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1766 | if test "$cross_compiling" != no; then |
---|
1767 | if test -n "$ac_tool_prefix"; then |
---|
1768 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1769 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1772 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1774 | else |
---|
1775 | if test -n "$STRIP"; then |
---|
1776 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1777 | else |
---|
1778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1779 | for as_dir in $PATH |
---|
1780 | do |
---|
1781 | IFS=$as_save_IFS |
---|
1782 | test -z "$as_dir" && as_dir=. |
---|
1783 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1785 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1787 | break 2 |
---|
1788 | fi |
---|
1789 | done |
---|
1790 | done |
---|
1791 | |
---|
1792 | fi |
---|
1793 | fi |
---|
1794 | STRIP=$ac_cv_prog_STRIP |
---|
1795 | if test -n "$STRIP"; then |
---|
1796 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1797 | echo "${ECHO_T}$STRIP" >&6 |
---|
1798 | else |
---|
1799 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1800 | echo "${ECHO_T}no" >&6 |
---|
1801 | fi |
---|
1802 | |
---|
1803 | fi |
---|
1804 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1805 | ac_ct_STRIP=$STRIP |
---|
1806 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1807 | set dummy strip; ac_word=$2 |
---|
1808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1810 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1812 | else |
---|
1813 | if test -n "$ac_ct_STRIP"; then |
---|
1814 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1815 | else |
---|
1816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1817 | for as_dir in $PATH |
---|
1818 | do |
---|
1819 | IFS=$as_save_IFS |
---|
1820 | test -z "$as_dir" && as_dir=. |
---|
1821 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1823 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1825 | break 2 |
---|
1826 | fi |
---|
1827 | done |
---|
1828 | done |
---|
1829 | |
---|
1830 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1831 | fi |
---|
1832 | fi |
---|
1833 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1834 | if test -n "$ac_ct_STRIP"; then |
---|
1835 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1836 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1837 | else |
---|
1838 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1839 | echo "${ECHO_T}no" >&6 |
---|
1840 | fi |
---|
1841 | |
---|
1842 | STRIP=$ac_ct_STRIP |
---|
1843 | else |
---|
1844 | STRIP="$ac_cv_prog_STRIP" |
---|
1845 | fi |
---|
1846 | |
---|
1847 | fi |
---|
1848 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1849 | |
---|
1850 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1851 | # some platforms. |
---|
1852 | |
---|
1853 | |
---|
1854 | |
---|
1855 | |
---|
1856 | |
---|
1857 | ac_config_headers="$ac_config_headers config.h" |
---|
1858 | |
---|
1859 | |
---|
1860 | ######################### |
---|
1861 | ## Checks for programs ## |
---|
1862 | ######################### |
---|
1863 | ac_ext=cc |
---|
1864 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1865 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1866 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1867 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1868 | if test -n "$ac_tool_prefix"; then |
---|
1869 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1870 | do |
---|
1871 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1872 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1875 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1877 | else |
---|
1878 | if test -n "$CXX"; then |
---|
1879 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1880 | else |
---|
1881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1882 | for as_dir in $PATH |
---|
1883 | do |
---|
1884 | IFS=$as_save_IFS |
---|
1885 | test -z "$as_dir" && as_dir=. |
---|
1886 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1888 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1890 | break 2 |
---|
1891 | fi |
---|
1892 | done |
---|
1893 | done |
---|
1894 | |
---|
1895 | fi |
---|
1896 | fi |
---|
1897 | CXX=$ac_cv_prog_CXX |
---|
1898 | if test -n "$CXX"; then |
---|
1899 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1900 | echo "${ECHO_T}$CXX" >&6 |
---|
1901 | else |
---|
1902 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1903 | echo "${ECHO_T}no" >&6 |
---|
1904 | fi |
---|
1905 | |
---|
1906 | test -n "$CXX" && break |
---|
1907 | done |
---|
1908 | fi |
---|
1909 | if test -z "$CXX"; then |
---|
1910 | ac_ct_CXX=$CXX |
---|
1911 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1912 | do |
---|
1913 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1914 | set dummy $ac_prog; ac_word=$2 |
---|
1915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1917 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1919 | else |
---|
1920 | if test -n "$ac_ct_CXX"; then |
---|
1921 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1922 | else |
---|
1923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1924 | for as_dir in $PATH |
---|
1925 | do |
---|
1926 | IFS=$as_save_IFS |
---|
1927 | test -z "$as_dir" && as_dir=. |
---|
1928 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1930 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1932 | break 2 |
---|
1933 | fi |
---|
1934 | done |
---|
1935 | done |
---|
1936 | |
---|
1937 | fi |
---|
1938 | fi |
---|
1939 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1940 | if test -n "$ac_ct_CXX"; then |
---|
1941 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1942 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1943 | else |
---|
1944 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1945 | echo "${ECHO_T}no" >&6 |
---|
1946 | fi |
---|
1947 | |
---|
1948 | test -n "$ac_ct_CXX" && break |
---|
1949 | done |
---|
1950 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1951 | |
---|
1952 | CXX=$ac_ct_CXX |
---|
1953 | fi |
---|
1954 | |
---|
1955 | |
---|
1956 | # Provide some information about the compiler. |
---|
1957 | echo "$as_me:$LINENO:" \ |
---|
1958 | "checking for C++ compiler version" >&5 |
---|
1959 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1961 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1962 | ac_status=$? |
---|
1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1964 | (exit $ac_status); } |
---|
1965 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1966 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1967 | ac_status=$? |
---|
1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1969 | (exit $ac_status); } |
---|
1970 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1971 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1972 | ac_status=$? |
---|
1973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1974 | (exit $ac_status); } |
---|
1975 | |
---|
1976 | cat >conftest.$ac_ext <<_ACEOF |
---|
1977 | /* confdefs.h. */ |
---|
1978 | _ACEOF |
---|
1979 | cat confdefs.h >>conftest.$ac_ext |
---|
1980 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1981 | /* end confdefs.h. */ |
---|
1982 | |
---|
1983 | int |
---|
1984 | main () |
---|
1985 | { |
---|
1986 | |
---|
1987 | ; |
---|
1988 | return 0; |
---|
1989 | } |
---|
1990 | _ACEOF |
---|
1991 | ac_clean_files_save=$ac_clean_files |
---|
1992 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1993 | # Try to create an executable without -o first, disregard a.out. |
---|
1994 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1995 | # of exeext. |
---|
1996 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1997 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1998 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1999 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2000 | (eval $ac_link_default) 2>&5 |
---|
2001 | ac_status=$? |
---|
2002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2003 | (exit $ac_status); }; then |
---|
2004 | # Find the output, starting from the most likely. This scheme is |
---|
2005 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2006 | # resort. |
---|
2007 | |
---|
2008 | # Be careful to initialize this variable, since it used to be cached. |
---|
2009 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2010 | ac_cv_exeext= |
---|
2011 | # b.out is created by i960 compilers. |
---|
2012 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2013 | do |
---|
2014 | test -f "$ac_file" || continue |
---|
2015 | case $ac_file in |
---|
2016 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2017 | ;; |
---|
2018 | conftest.$ac_ext ) |
---|
2019 | # This is the source file. |
---|
2020 | ;; |
---|
2021 | [ab].out ) |
---|
2022 | # We found the default executable, but exeext='' is most |
---|
2023 | # certainly right. |
---|
2024 | break;; |
---|
2025 | *.* ) |
---|
2026 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2027 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2028 | # but it would be cool to find out if it's true. Does anybody |
---|
2029 | # maintain Libtool? --akim. |
---|
2030 | export ac_cv_exeext |
---|
2031 | break;; |
---|
2032 | * ) |
---|
2033 | break;; |
---|
2034 | esac |
---|
2035 | done |
---|
2036 | else |
---|
2037 | echo "$as_me: failed program was:" >&5 |
---|
2038 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2039 | |
---|
2040 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
2041 | See \`config.log' for more details." >&5 |
---|
2042 | echo "$as_me: error: C++ compiler cannot create executables |
---|
2043 | See \`config.log' for more details." >&2;} |
---|
2044 | { (exit 77); exit 77; }; } |
---|
2045 | fi |
---|
2046 | |
---|
2047 | ac_exeext=$ac_cv_exeext |
---|
2048 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2049 | echo "${ECHO_T}$ac_file" >&6 |
---|
2050 | |
---|
2051 | # Check the compiler produces executables we can run. If not, either |
---|
2052 | # the compiler is broken, or we cross compile. |
---|
2053 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
2054 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
2055 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2056 | # If not cross compiling, check that we can run a simple program. |
---|
2057 | if test "$cross_compiling" != yes; then |
---|
2058 | if { ac_try='./$ac_file' |
---|
2059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2060 | (eval $ac_try) 2>&5 |
---|
2061 | ac_status=$? |
---|
2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2063 | (exit $ac_status); }; }; then |
---|
2064 | cross_compiling=no |
---|
2065 | else |
---|
2066 | if test "$cross_compiling" = maybe; then |
---|
2067 | cross_compiling=yes |
---|
2068 | else |
---|
2069 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2070 | If you meant to cross compile, use \`--host'. |
---|
2071 | See \`config.log' for more details." >&5 |
---|
2072 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2073 | If you meant to cross compile, use \`--host'. |
---|
2074 | See \`config.log' for more details." >&2;} |
---|
2075 | { (exit 1); exit 1; }; } |
---|
2076 | fi |
---|
2077 | fi |
---|
2078 | fi |
---|
2079 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2080 | echo "${ECHO_T}yes" >&6 |
---|
2081 | |
---|
2082 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2083 | ac_clean_files=$ac_clean_files_save |
---|
2084 | # Check the compiler produces executables we can run. If not, either |
---|
2085 | # the compiler is broken, or we cross compile. |
---|
2086 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2087 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2088 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2089 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2090 | |
---|
2091 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2092 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2094 | (eval $ac_link) 2>&5 |
---|
2095 | ac_status=$? |
---|
2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2097 | (exit $ac_status); }; then |
---|
2098 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2099 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2100 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2101 | # `rm'. |
---|
2102 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2103 | test -f "$ac_file" || continue |
---|
2104 | case $ac_file in |
---|
2105 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2106 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2107 | export ac_cv_exeext |
---|
2108 | break;; |
---|
2109 | * ) break;; |
---|
2110 | esac |
---|
2111 | done |
---|
2112 | else |
---|
2113 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2114 | See \`config.log' for more details." >&5 |
---|
2115 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2116 | See \`config.log' for more details." >&2;} |
---|
2117 | { (exit 1); exit 1; }; } |
---|
2118 | fi |
---|
2119 | |
---|
2120 | rm -f conftest$ac_cv_exeext |
---|
2121 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2122 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2123 | |
---|
2124 | rm -f conftest.$ac_ext |
---|
2125 | EXEEXT=$ac_cv_exeext |
---|
2126 | ac_exeext=$EXEEXT |
---|
2127 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2128 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2129 | if test "${ac_cv_objext+set}" = set; then |
---|
2130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2131 | else |
---|
2132 | cat >conftest.$ac_ext <<_ACEOF |
---|
2133 | /* confdefs.h. */ |
---|
2134 | _ACEOF |
---|
2135 | cat confdefs.h >>conftest.$ac_ext |
---|
2136 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2137 | /* end confdefs.h. */ |
---|
2138 | |
---|
2139 | int |
---|
2140 | main () |
---|
2141 | { |
---|
2142 | |
---|
2143 | ; |
---|
2144 | return 0; |
---|
2145 | } |
---|
2146 | _ACEOF |
---|
2147 | rm -f conftest.o conftest.obj |
---|
2148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2149 | (eval $ac_compile) 2>&5 |
---|
2150 | ac_status=$? |
---|
2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2152 | (exit $ac_status); }; then |
---|
2153 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2154 | case $ac_file in |
---|
2155 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2156 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2157 | break;; |
---|
2158 | esac |
---|
2159 | done |
---|
2160 | else |
---|
2161 | echo "$as_me: failed program was:" >&5 |
---|
2162 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2163 | |
---|
2164 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2165 | See \`config.log' for more details." >&5 |
---|
2166 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2167 | See \`config.log' for more details." >&2;} |
---|
2168 | { (exit 1); exit 1; }; } |
---|
2169 | fi |
---|
2170 | |
---|
2171 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2172 | fi |
---|
2173 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2174 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2175 | OBJEXT=$ac_cv_objext |
---|
2176 | ac_objext=$OBJEXT |
---|
2177 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2178 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2179 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2181 | else |
---|
2182 | cat >conftest.$ac_ext <<_ACEOF |
---|
2183 | /* confdefs.h. */ |
---|
2184 | _ACEOF |
---|
2185 | cat confdefs.h >>conftest.$ac_ext |
---|
2186 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2187 | /* end confdefs.h. */ |
---|
2188 | |
---|
2189 | int |
---|
2190 | main () |
---|
2191 | { |
---|
2192 | #ifndef __GNUC__ |
---|
2193 | choke me |
---|
2194 | #endif |
---|
2195 | |
---|
2196 | ; |
---|
2197 | return 0; |
---|
2198 | } |
---|
2199 | _ACEOF |
---|
2200 | rm -f conftest.$ac_objext |
---|
2201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2202 | (eval $ac_compile) 2>conftest.er1 |
---|
2203 | ac_status=$? |
---|
2204 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2205 | rm -f conftest.er1 |
---|
2206 | cat conftest.err >&5 |
---|
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2208 | (exit $ac_status); } && |
---|
2209 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2210 | || test ! -s conftest.err' |
---|
2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2212 | (eval $ac_try) 2>&5 |
---|
2213 | ac_status=$? |
---|
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2215 | (exit $ac_status); }; } && |
---|
2216 | { ac_try='test -s conftest.$ac_objext' |
---|
2217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2218 | (eval $ac_try) 2>&5 |
---|
2219 | ac_status=$? |
---|
2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2221 | (exit $ac_status); }; }; then |
---|
2222 | ac_compiler_gnu=yes |
---|
2223 | else |
---|
2224 | echo "$as_me: failed program was:" >&5 |
---|
2225 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2226 | |
---|
2227 | ac_compiler_gnu=no |
---|
2228 | fi |
---|
2229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2230 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2231 | |
---|
2232 | fi |
---|
2233 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2234 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2235 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2236 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2237 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2238 | CXXFLAGS="-g" |
---|
2239 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2240 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2241 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2243 | else |
---|
2244 | cat >conftest.$ac_ext <<_ACEOF |
---|
2245 | /* confdefs.h. */ |
---|
2246 | _ACEOF |
---|
2247 | cat confdefs.h >>conftest.$ac_ext |
---|
2248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2249 | /* end confdefs.h. */ |
---|
2250 | |
---|
2251 | int |
---|
2252 | main () |
---|
2253 | { |
---|
2254 | |
---|
2255 | ; |
---|
2256 | return 0; |
---|
2257 | } |
---|
2258 | _ACEOF |
---|
2259 | rm -f conftest.$ac_objext |
---|
2260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2261 | (eval $ac_compile) 2>conftest.er1 |
---|
2262 | ac_status=$? |
---|
2263 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2264 | rm -f conftest.er1 |
---|
2265 | cat conftest.err >&5 |
---|
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2267 | (exit $ac_status); } && |
---|
2268 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2269 | || test ! -s conftest.err' |
---|
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2271 | (eval $ac_try) 2>&5 |
---|
2272 | ac_status=$? |
---|
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2274 | (exit $ac_status); }; } && |
---|
2275 | { ac_try='test -s conftest.$ac_objext' |
---|
2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2277 | (eval $ac_try) 2>&5 |
---|
2278 | ac_status=$? |
---|
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2280 | (exit $ac_status); }; }; then |
---|
2281 | ac_cv_prog_cxx_g=yes |
---|
2282 | else |
---|
2283 | echo "$as_me: failed program was:" >&5 |
---|
2284 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2285 | |
---|
2286 | ac_cv_prog_cxx_g=no |
---|
2287 | fi |
---|
2288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2289 | fi |
---|
2290 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2291 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2292 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2293 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2294 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2295 | if test "$GXX" = yes; then |
---|
2296 | CXXFLAGS="-g -O2" |
---|
2297 | else |
---|
2298 | CXXFLAGS="-g" |
---|
2299 | fi |
---|
2300 | else |
---|
2301 | if test "$GXX" = yes; then |
---|
2302 | CXXFLAGS="-O2" |
---|
2303 | else |
---|
2304 | CXXFLAGS= |
---|
2305 | fi |
---|
2306 | fi |
---|
2307 | for ac_declaration in \ |
---|
2308 | '' \ |
---|
2309 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2310 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2311 | 'extern "C" void exit (int) throw ();' \ |
---|
2312 | 'extern "C" void exit (int);' \ |
---|
2313 | 'void exit (int);' |
---|
2314 | do |
---|
2315 | cat >conftest.$ac_ext <<_ACEOF |
---|
2316 | /* confdefs.h. */ |
---|
2317 | _ACEOF |
---|
2318 | cat confdefs.h >>conftest.$ac_ext |
---|
2319 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2320 | /* end confdefs.h. */ |
---|
2321 | $ac_declaration |
---|
2322 | #include <stdlib.h> |
---|
2323 | int |
---|
2324 | main () |
---|
2325 | { |
---|
2326 | exit (42); |
---|
2327 | ; |
---|
2328 | return 0; |
---|
2329 | } |
---|
2330 | _ACEOF |
---|
2331 | rm -f conftest.$ac_objext |
---|
2332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2333 | (eval $ac_compile) 2>conftest.er1 |
---|
2334 | ac_status=$? |
---|
2335 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2336 | rm -f conftest.er1 |
---|
2337 | cat conftest.err >&5 |
---|
2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2339 | (exit $ac_status); } && |
---|
2340 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2341 | || test ! -s conftest.err' |
---|
2342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2343 | (eval $ac_try) 2>&5 |
---|
2344 | ac_status=$? |
---|
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2346 | (exit $ac_status); }; } && |
---|
2347 | { ac_try='test -s conftest.$ac_objext' |
---|
2348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2349 | (eval $ac_try) 2>&5 |
---|
2350 | ac_status=$? |
---|
2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2352 | (exit $ac_status); }; }; then |
---|
2353 | : |
---|
2354 | else |
---|
2355 | echo "$as_me: failed program was:" >&5 |
---|
2356 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2357 | |
---|
2358 | continue |
---|
2359 | fi |
---|
2360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2361 | cat >conftest.$ac_ext <<_ACEOF |
---|
2362 | /* confdefs.h. */ |
---|
2363 | _ACEOF |
---|
2364 | cat confdefs.h >>conftest.$ac_ext |
---|
2365 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2366 | /* end confdefs.h. */ |
---|
2367 | $ac_declaration |
---|
2368 | int |
---|
2369 | main () |
---|
2370 | { |
---|
2371 | exit (42); |
---|
2372 | ; |
---|
2373 | return 0; |
---|
2374 | } |
---|
2375 | _ACEOF |
---|
2376 | rm -f conftest.$ac_objext |
---|
2377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2378 | (eval $ac_compile) 2>conftest.er1 |
---|
2379 | ac_status=$? |
---|
2380 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2381 | rm -f conftest.er1 |
---|
2382 | cat conftest.err >&5 |
---|
2383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2384 | (exit $ac_status); } && |
---|
2385 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2386 | || test ! -s conftest.err' |
---|
2387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2388 | (eval $ac_try) 2>&5 |
---|
2389 | ac_status=$? |
---|
2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2391 | (exit $ac_status); }; } && |
---|
2392 | { ac_try='test -s conftest.$ac_objext' |
---|
2393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2394 | (eval $ac_try) 2>&5 |
---|
2395 | ac_status=$? |
---|
2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2397 | (exit $ac_status); }; }; then |
---|
2398 | break |
---|
2399 | else |
---|
2400 | echo "$as_me: failed program was:" >&5 |
---|
2401 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2402 | |
---|
2403 | fi |
---|
2404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2405 | done |
---|
2406 | rm -f conftest* |
---|
2407 | if test -n "$ac_declaration"; then |
---|
2408 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2409 | echo $ac_declaration >>confdefs.h |
---|
2410 | echo '#endif' >>confdefs.h |
---|
2411 | fi |
---|
2412 | |
---|
2413 | ac_ext=c |
---|
2414 | ac_cpp='$CPP $CPPFLAGS' |
---|
2415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2418 | DEPDIR="${am__leading_dot}deps" |
---|
2419 | |
---|
2420 | ac_config_commands="$ac_config_commands depfiles" |
---|
2421 | |
---|
2422 | |
---|
2423 | am_make=${MAKE-make} |
---|
2424 | cat > confinc << 'END' |
---|
2425 | am__doit: |
---|
2426 | @echo done |
---|
2427 | .PHONY: am__doit |
---|
2428 | END |
---|
2429 | # If we don't find an include directive, just comment out the code. |
---|
2430 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2431 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2432 | am__include="#" |
---|
2433 | am__quote= |
---|
2434 | _am_result=none |
---|
2435 | # First try GNU make style include. |
---|
2436 | echo "include confinc" > confmf |
---|
2437 | # We grep out `Entering directory' and `Leaving directory' |
---|
2438 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2439 | # In particular we don't look at `^make:' because GNU make might |
---|
2440 | # be invoked under some other name (usually "gmake"), in which |
---|
2441 | # case it prints its new name instead of `make'. |
---|
2442 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2443 | am__include=include |
---|
2444 | am__quote= |
---|
2445 | _am_result=GNU |
---|
2446 | fi |
---|
2447 | # Now try BSD make style include. |
---|
2448 | if test "$am__include" = "#"; then |
---|
2449 | echo '.include "confinc"' > confmf |
---|
2450 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2451 | am__include=.include |
---|
2452 | am__quote="\"" |
---|
2453 | _am_result=BSD |
---|
2454 | fi |
---|
2455 | fi |
---|
2456 | |
---|
2457 | |
---|
2458 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2459 | echo "${ECHO_T}$_am_result" >&6 |
---|
2460 | rm -f confinc confmf |
---|
2461 | |
---|
2462 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2463 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2464 | enableval="$enable_dependency_tracking" |
---|
2465 | |
---|
2466 | fi; |
---|
2467 | if test "x$enable_dependency_tracking" != xno; then |
---|
2468 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2469 | AMDEPBACKSLASH='\' |
---|
2470 | fi |
---|
2471 | |
---|
2472 | |
---|
2473 | if test "x$enable_dependency_tracking" != xno; then |
---|
2474 | AMDEP_TRUE= |
---|
2475 | AMDEP_FALSE='#' |
---|
2476 | else |
---|
2477 | AMDEP_TRUE='#' |
---|
2478 | AMDEP_FALSE= |
---|
2479 | fi |
---|
2480 | |
---|
2481 | |
---|
2482 | |
---|
2483 | |
---|
2484 | depcc="$CXX" am_compiler_list= |
---|
2485 | |
---|
2486 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2487 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2488 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2490 | else |
---|
2491 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2492 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2493 | # making bogus files that we don't know about and never remove. For |
---|
2494 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2495 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2496 | # in D'. |
---|
2497 | mkdir conftest.dir |
---|
2498 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2499 | # using a relative directory. |
---|
2500 | cp "$am_depcomp" conftest.dir |
---|
2501 | cd conftest.dir |
---|
2502 | # We will build objects and dependencies in a subdirectory because |
---|
2503 | # it helps to detect inapplicable dependency modes. For instance |
---|
2504 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2505 | # side effect of compilation, but ICC will put the dependencies in |
---|
2506 | # the current directory while Tru64 will put them in the object |
---|
2507 | # directory. |
---|
2508 | mkdir sub |
---|
2509 | |
---|
2510 | am_cv_CXX_dependencies_compiler_type=none |
---|
2511 | if test "$am_compiler_list" = ""; then |
---|
2512 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2513 | fi |
---|
2514 | for depmode in $am_compiler_list; do |
---|
2515 | # Setup a source with many dependencies, because some compilers |
---|
2516 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2517 | # we should not choose a depcomp mode which is confused by this. |
---|
2518 | # |
---|
2519 | # We need to recreate these files for each test, as the compiler may |
---|
2520 | # overwrite some of them when testing with obscure command lines. |
---|
2521 | # This happens at least with the AIX C compiler. |
---|
2522 | : > sub/conftest.c |
---|
2523 | for i in 1 2 3 4 5 6; do |
---|
2524 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2525 | : > sub/conftst$i.h |
---|
2526 | done |
---|
2527 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2528 | |
---|
2529 | case $depmode in |
---|
2530 | nosideeffect) |
---|
2531 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2532 | # only be used when explicitly requested |
---|
2533 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2534 | continue |
---|
2535 | else |
---|
2536 | break |
---|
2537 | fi |
---|
2538 | ;; |
---|
2539 | none) break ;; |
---|
2540 | esac |
---|
2541 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2542 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2543 | # handle `-M -o', and we need to detect this. |
---|
2544 | if depmode=$depmode \ |
---|
2545 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2546 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2547 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2548 | >/dev/null 2>conftest.err && |
---|
2549 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2550 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2551 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2552 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2553 | # (even with -Werror). So we grep stderr for any message |
---|
2554 | # that says an option was ignored. |
---|
2555 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
2556 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2557 | break |
---|
2558 | fi |
---|
2559 | fi |
---|
2560 | done |
---|
2561 | |
---|
2562 | cd .. |
---|
2563 | rm -rf conftest.dir |
---|
2564 | else |
---|
2565 | am_cv_CXX_dependencies_compiler_type=none |
---|
2566 | fi |
---|
2567 | |
---|
2568 | fi |
---|
2569 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2570 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2571 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2572 | |
---|
2573 | |
---|
2574 | |
---|
2575 | if |
---|
2576 | test "x$enable_dependency_tracking" != xno \ |
---|
2577 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2578 | am__fastdepCXX_TRUE= |
---|
2579 | am__fastdepCXX_FALSE='#' |
---|
2580 | else |
---|
2581 | am__fastdepCXX_TRUE='#' |
---|
2582 | am__fastdepCXX_FALSE= |
---|
2583 | fi |
---|
2584 | |
---|
2585 | |
---|
2586 | ac_ext=c |
---|
2587 | ac_cpp='$CPP $CPPFLAGS' |
---|
2588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2591 | if test -n "$ac_tool_prefix"; then |
---|
2592 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2593 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2596 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2598 | else |
---|
2599 | if test -n "$CC"; then |
---|
2600 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2601 | else |
---|
2602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2603 | for as_dir in $PATH |
---|
2604 | do |
---|
2605 | IFS=$as_save_IFS |
---|
2606 | test -z "$as_dir" && as_dir=. |
---|
2607 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2609 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2611 | break 2 |
---|
2612 | fi |
---|
2613 | done |
---|
2614 | done |
---|
2615 | |
---|
2616 | fi |
---|
2617 | fi |
---|
2618 | CC=$ac_cv_prog_CC |
---|
2619 | if test -n "$CC"; then |
---|
2620 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2621 | echo "${ECHO_T}$CC" >&6 |
---|
2622 | else |
---|
2623 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2624 | echo "${ECHO_T}no" >&6 |
---|
2625 | fi |
---|
2626 | |
---|
2627 | fi |
---|
2628 | if test -z "$ac_cv_prog_CC"; then |
---|
2629 | ac_ct_CC=$CC |
---|
2630 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2631 | set dummy gcc; ac_word=$2 |
---|
2632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2634 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2636 | else |
---|
2637 | if test -n "$ac_ct_CC"; then |
---|
2638 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2639 | else |
---|
2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2641 | for as_dir in $PATH |
---|
2642 | do |
---|
2643 | IFS=$as_save_IFS |
---|
2644 | test -z "$as_dir" && as_dir=. |
---|
2645 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2647 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2649 | break 2 |
---|
2650 | fi |
---|
2651 | done |
---|
2652 | done |
---|
2653 | |
---|
2654 | fi |
---|
2655 | fi |
---|
2656 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2657 | if test -n "$ac_ct_CC"; then |
---|
2658 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2659 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2660 | else |
---|
2661 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2662 | echo "${ECHO_T}no" >&6 |
---|
2663 | fi |
---|
2664 | |
---|
2665 | CC=$ac_ct_CC |
---|
2666 | else |
---|
2667 | CC="$ac_cv_prog_CC" |
---|
2668 | fi |
---|
2669 | |
---|
2670 | if test -z "$CC"; then |
---|
2671 | if test -n "$ac_tool_prefix"; then |
---|
2672 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2673 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2674 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2676 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2678 | else |
---|
2679 | if test -n "$CC"; then |
---|
2680 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2681 | else |
---|
2682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2683 | for as_dir in $PATH |
---|
2684 | do |
---|
2685 | IFS=$as_save_IFS |
---|
2686 | test -z "$as_dir" && as_dir=. |
---|
2687 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2688 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2689 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2691 | break 2 |
---|
2692 | fi |
---|
2693 | done |
---|
2694 | done |
---|
2695 | |
---|
2696 | fi |
---|
2697 | fi |
---|
2698 | CC=$ac_cv_prog_CC |
---|
2699 | if test -n "$CC"; then |
---|
2700 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2701 | echo "${ECHO_T}$CC" >&6 |
---|
2702 | else |
---|
2703 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2704 | echo "${ECHO_T}no" >&6 |
---|
2705 | fi |
---|
2706 | |
---|
2707 | fi |
---|
2708 | if test -z "$ac_cv_prog_CC"; then |
---|
2709 | ac_ct_CC=$CC |
---|
2710 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2711 | set dummy cc; ac_word=$2 |
---|
2712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2714 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2716 | else |
---|
2717 | if test -n "$ac_ct_CC"; then |
---|
2718 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2719 | else |
---|
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2721 | for as_dir in $PATH |
---|
2722 | do |
---|
2723 | IFS=$as_save_IFS |
---|
2724 | test -z "$as_dir" && as_dir=. |
---|
2725 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2727 | ac_cv_prog_ac_ct_CC="cc" |
---|
2728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2729 | break 2 |
---|
2730 | fi |
---|
2731 | done |
---|
2732 | done |
---|
2733 | |
---|
2734 | fi |
---|
2735 | fi |
---|
2736 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2737 | if test -n "$ac_ct_CC"; then |
---|
2738 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2739 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2740 | else |
---|
2741 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2742 | echo "${ECHO_T}no" >&6 |
---|
2743 | fi |
---|
2744 | |
---|
2745 | CC=$ac_ct_CC |
---|
2746 | else |
---|
2747 | CC="$ac_cv_prog_CC" |
---|
2748 | fi |
---|
2749 | |
---|
2750 | fi |
---|
2751 | if test -z "$CC"; then |
---|
2752 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2753 | set dummy cc; ac_word=$2 |
---|
2754 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2756 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2758 | else |
---|
2759 | if test -n "$CC"; then |
---|
2760 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2761 | else |
---|
2762 | ac_prog_rejected=no |
---|
2763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2764 | for as_dir in $PATH |
---|
2765 | do |
---|
2766 | IFS=$as_save_IFS |
---|
2767 | test -z "$as_dir" && as_dir=. |
---|
2768 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2770 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2771 | ac_prog_rejected=yes |
---|
2772 | continue |
---|
2773 | fi |
---|
2774 | ac_cv_prog_CC="cc" |
---|
2775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2776 | break 2 |
---|
2777 | fi |
---|
2778 | done |
---|
2779 | done |
---|
2780 | |
---|
2781 | if test $ac_prog_rejected = yes; then |
---|
2782 | # We found a bogon in the path, so make sure we never use it. |
---|
2783 | set dummy $ac_cv_prog_CC |
---|
2784 | shift |
---|
2785 | if test $# != 0; then |
---|
2786 | # We chose a different compiler from the bogus one. |
---|
2787 | # However, it has the same basename, so the bogon will be chosen |
---|
2788 | # first if we set CC to just the basename; use the full file name. |
---|
2789 | shift |
---|
2790 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2791 | fi |
---|
2792 | fi |
---|
2793 | fi |
---|
2794 | fi |
---|
2795 | CC=$ac_cv_prog_CC |
---|
2796 | if test -n "$CC"; then |
---|
2797 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2798 | echo "${ECHO_T}$CC" >&6 |
---|
2799 | else |
---|
2800 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2801 | echo "${ECHO_T}no" >&6 |
---|
2802 | fi |
---|
2803 | |
---|
2804 | fi |
---|
2805 | if test -z "$CC"; then |
---|
2806 | if test -n "$ac_tool_prefix"; then |
---|
2807 | for ac_prog in cl |
---|
2808 | do |
---|
2809 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2810 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2813 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2815 | else |
---|
2816 | if test -n "$CC"; then |
---|
2817 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2818 | else |
---|
2819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2820 | for as_dir in $PATH |
---|
2821 | do |
---|
2822 | IFS=$as_save_IFS |
---|
2823 | test -z "$as_dir" && as_dir=. |
---|
2824 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2826 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2828 | break 2 |
---|
2829 | fi |
---|
2830 | done |
---|
2831 | done |
---|
2832 | |
---|
2833 | fi |
---|
2834 | fi |
---|
2835 | CC=$ac_cv_prog_CC |
---|
2836 | if test -n "$CC"; then |
---|
2837 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2838 | echo "${ECHO_T}$CC" >&6 |
---|
2839 | else |
---|
2840 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2841 | echo "${ECHO_T}no" >&6 |
---|
2842 | fi |
---|
2843 | |
---|
2844 | test -n "$CC" && break |
---|
2845 | done |
---|
2846 | fi |
---|
2847 | if test -z "$CC"; then |
---|
2848 | ac_ct_CC=$CC |
---|
2849 | for ac_prog in cl |
---|
2850 | do |
---|
2851 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2852 | set dummy $ac_prog; ac_word=$2 |
---|
2853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2855 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2857 | else |
---|
2858 | if test -n "$ac_ct_CC"; then |
---|
2859 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2860 | else |
---|
2861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2862 | for as_dir in $PATH |
---|
2863 | do |
---|
2864 | IFS=$as_save_IFS |
---|
2865 | test -z "$as_dir" && as_dir=. |
---|
2866 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2868 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2870 | break 2 |
---|
2871 | fi |
---|
2872 | done |
---|
2873 | done |
---|
2874 | |
---|
2875 | fi |
---|
2876 | fi |
---|
2877 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2878 | if test -n "$ac_ct_CC"; then |
---|
2879 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2880 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2881 | else |
---|
2882 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2883 | echo "${ECHO_T}no" >&6 |
---|
2884 | fi |
---|
2885 | |
---|
2886 | test -n "$ac_ct_CC" && break |
---|
2887 | done |
---|
2888 | |
---|
2889 | CC=$ac_ct_CC |
---|
2890 | fi |
---|
2891 | |
---|
2892 | fi |
---|
2893 | |
---|
2894 | |
---|
2895 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2896 | See \`config.log' for more details." >&5 |
---|
2897 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2898 | See \`config.log' for more details." >&2;} |
---|
2899 | { (exit 1); exit 1; }; } |
---|
2900 | |
---|
2901 | # Provide some information about the compiler. |
---|
2902 | echo "$as_me:$LINENO:" \ |
---|
2903 | "checking for C compiler version" >&5 |
---|
2904 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2905 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2906 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2907 | ac_status=$? |
---|
2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2909 | (exit $ac_status); } |
---|
2910 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2911 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2912 | ac_status=$? |
---|
2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2914 | (exit $ac_status); } |
---|
2915 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2916 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2917 | ac_status=$? |
---|
2918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2919 | (exit $ac_status); } |
---|
2920 | |
---|
2921 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2922 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2923 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2925 | else |
---|
2926 | cat >conftest.$ac_ext <<_ACEOF |
---|
2927 | /* confdefs.h. */ |
---|
2928 | _ACEOF |
---|
2929 | cat confdefs.h >>conftest.$ac_ext |
---|
2930 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2931 | /* end confdefs.h. */ |
---|
2932 | |
---|
2933 | int |
---|
2934 | main () |
---|
2935 | { |
---|
2936 | #ifndef __GNUC__ |
---|
2937 | choke me |
---|
2938 | #endif |
---|
2939 | |
---|
2940 | ; |
---|
2941 | return 0; |
---|
2942 | } |
---|
2943 | _ACEOF |
---|
2944 | rm -f conftest.$ac_objext |
---|
2945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2946 | (eval $ac_compile) 2>conftest.er1 |
---|
2947 | ac_status=$? |
---|
2948 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2949 | rm -f conftest.er1 |
---|
2950 | cat conftest.err >&5 |
---|
2951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2952 | (exit $ac_status); } && |
---|
2953 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2954 | || test ! -s conftest.err' |
---|
2955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2956 | (eval $ac_try) 2>&5 |
---|
2957 | ac_status=$? |
---|
2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2959 | (exit $ac_status); }; } && |
---|
2960 | { ac_try='test -s conftest.$ac_objext' |
---|
2961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2962 | (eval $ac_try) 2>&5 |
---|
2963 | ac_status=$? |
---|
2964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2965 | (exit $ac_status); }; }; then |
---|
2966 | ac_compiler_gnu=yes |
---|
2967 | else |
---|
2968 | echo "$as_me: failed program was:" >&5 |
---|
2969 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2970 | |
---|
2971 | ac_compiler_gnu=no |
---|
2972 | fi |
---|
2973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2974 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2975 | |
---|
2976 | fi |
---|
2977 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2978 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2979 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2980 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2981 | ac_save_CFLAGS=$CFLAGS |
---|
2982 | CFLAGS="-g" |
---|
2983 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2984 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2985 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2987 | else |
---|
2988 | cat >conftest.$ac_ext <<_ACEOF |
---|
2989 | /* confdefs.h. */ |
---|
2990 | _ACEOF |
---|
2991 | cat confdefs.h >>conftest.$ac_ext |
---|
2992 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2993 | /* end confdefs.h. */ |
---|
2994 | |
---|
2995 | int |
---|
2996 | main () |
---|
2997 | { |
---|
2998 | |
---|
2999 | ; |
---|
3000 | return 0; |
---|
3001 | } |
---|
3002 | _ACEOF |
---|
3003 | rm -f conftest.$ac_objext |
---|
3004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3005 | (eval $ac_compile) 2>conftest.er1 |
---|
3006 | ac_status=$? |
---|
3007 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3008 | rm -f conftest.er1 |
---|
3009 | cat conftest.err >&5 |
---|
3010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3011 | (exit $ac_status); } && |
---|
3012 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3013 | || test ! -s conftest.err' |
---|
3014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3015 | (eval $ac_try) 2>&5 |
---|
3016 | ac_status=$? |
---|
3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3018 | (exit $ac_status); }; } && |
---|
3019 | { ac_try='test -s conftest.$ac_objext' |
---|
3020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3021 | (eval $ac_try) 2>&5 |
---|
3022 | ac_status=$? |
---|
3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3024 | (exit $ac_status); }; }; then |
---|
3025 | ac_cv_prog_cc_g=yes |
---|
3026 | else |
---|
3027 | echo "$as_me: failed program was:" >&5 |
---|
3028 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3029 | |
---|
3030 | ac_cv_prog_cc_g=no |
---|
3031 | fi |
---|
3032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3033 | fi |
---|
3034 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3035 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
3036 | if test "$ac_test_CFLAGS" = set; then |
---|
3037 | CFLAGS=$ac_save_CFLAGS |
---|
3038 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3039 | if test "$GCC" = yes; then |
---|
3040 | CFLAGS="-g -O2" |
---|
3041 | else |
---|
3042 | CFLAGS="-g" |
---|
3043 | fi |
---|
3044 | else |
---|
3045 | if test "$GCC" = yes; then |
---|
3046 | CFLAGS="-O2" |
---|
3047 | else |
---|
3048 | CFLAGS= |
---|
3049 | fi |
---|
3050 | fi |
---|
3051 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3052 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3053 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3055 | else |
---|
3056 | ac_cv_prog_cc_stdc=no |
---|
3057 | ac_save_CC=$CC |
---|
3058 | cat >conftest.$ac_ext <<_ACEOF |
---|
3059 | /* confdefs.h. */ |
---|
3060 | _ACEOF |
---|
3061 | cat confdefs.h >>conftest.$ac_ext |
---|
3062 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3063 | /* end confdefs.h. */ |
---|
3064 | #include <stdarg.h> |
---|
3065 | #include <stdio.h> |
---|
3066 | #include <sys/types.h> |
---|
3067 | #include <sys/stat.h> |
---|
3068 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3069 | struct buf { int x; }; |
---|
3070 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3071 | static char *e (p, i) |
---|
3072 | char **p; |
---|
3073 | int i; |
---|
3074 | { |
---|
3075 | return p[i]; |
---|
3076 | } |
---|
3077 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3078 | { |
---|
3079 | char *s; |
---|
3080 | va_list v; |
---|
3081 | va_start (v,p); |
---|
3082 | s = g (p, va_arg (v,int)); |
---|
3083 | va_end (v); |
---|
3084 | return s; |
---|
3085 | } |
---|
3086 | |
---|
3087 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3088 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3089 | These don't provoke an error unfortunately, instead are silently treated |
---|
3090 | as 'x'. The following induces an error, until -std1 is added to get |
---|
3091 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3092 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3093 | that's true only with -std1. */ |
---|
3094 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3095 | |
---|
3096 | int test (int i, double x); |
---|
3097 | struct s1 {int (*f) (int a);}; |
---|
3098 | struct s2 {int (*f) (double a);}; |
---|
3099 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3100 | int argc; |
---|
3101 | char **argv; |
---|
3102 | int |
---|
3103 | main () |
---|
3104 | { |
---|
3105 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3106 | ; |
---|
3107 | return 0; |
---|
3108 | } |
---|
3109 | _ACEOF |
---|
3110 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3111 | # breaks some systems' header files. |
---|
3112 | # AIX -qlanglvl=ansi |
---|
3113 | # Ultrix and OSF/1 -std1 |
---|
3114 | # HP-UX 10.20 and later -Ae |
---|
3115 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3116 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3117 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3118 | do |
---|
3119 | CC="$ac_save_CC $ac_arg" |
---|
3120 | rm -f conftest.$ac_objext |
---|
3121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3122 | (eval $ac_compile) 2>conftest.er1 |
---|
3123 | ac_status=$? |
---|
3124 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3125 | rm -f conftest.er1 |
---|
3126 | cat conftest.err >&5 |
---|
3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3128 | (exit $ac_status); } && |
---|
3129 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3130 | || test ! -s conftest.err' |
---|
3131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3132 | (eval $ac_try) 2>&5 |
---|
3133 | ac_status=$? |
---|
3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3135 | (exit $ac_status); }; } && |
---|
3136 | { ac_try='test -s conftest.$ac_objext' |
---|
3137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3138 | (eval $ac_try) 2>&5 |
---|
3139 | ac_status=$? |
---|
3140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3141 | (exit $ac_status); }; }; then |
---|
3142 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3143 | break |
---|
3144 | else |
---|
3145 | echo "$as_me: failed program was:" >&5 |
---|
3146 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3147 | |
---|
3148 | fi |
---|
3149 | rm -f conftest.err conftest.$ac_objext |
---|
3150 | done |
---|
3151 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3152 | CC=$ac_save_CC |
---|
3153 | |
---|
3154 | fi |
---|
3155 | |
---|
3156 | case "x$ac_cv_prog_cc_stdc" in |
---|
3157 | x|xno) |
---|
3158 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3159 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3160 | *) |
---|
3161 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3162 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3163 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3164 | esac |
---|
3165 | |
---|
3166 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3167 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3168 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3169 | # the declaration of exit, since it's the most demanding environment. |
---|
3170 | cat >conftest.$ac_ext <<_ACEOF |
---|
3171 | #ifndef __cplusplus |
---|
3172 | choke me |
---|
3173 | #endif |
---|
3174 | _ACEOF |
---|
3175 | rm -f conftest.$ac_objext |
---|
3176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3177 | (eval $ac_compile) 2>conftest.er1 |
---|
3178 | ac_status=$? |
---|
3179 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3180 | rm -f conftest.er1 |
---|
3181 | cat conftest.err >&5 |
---|
3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3183 | (exit $ac_status); } && |
---|
3184 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3185 | || test ! -s conftest.err' |
---|
3186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3187 | (eval $ac_try) 2>&5 |
---|
3188 | ac_status=$? |
---|
3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3190 | (exit $ac_status); }; } && |
---|
3191 | { ac_try='test -s conftest.$ac_objext' |
---|
3192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3193 | (eval $ac_try) 2>&5 |
---|
3194 | ac_status=$? |
---|
3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3196 | (exit $ac_status); }; }; then |
---|
3197 | for ac_declaration in \ |
---|
3198 | '' \ |
---|
3199 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3200 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3201 | 'extern "C" void exit (int) throw ();' \ |
---|
3202 | 'extern "C" void exit (int);' \ |
---|
3203 | 'void exit (int);' |
---|
3204 | do |
---|
3205 | cat >conftest.$ac_ext <<_ACEOF |
---|
3206 | /* confdefs.h. */ |
---|
3207 | _ACEOF |
---|
3208 | cat confdefs.h >>conftest.$ac_ext |
---|
3209 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3210 | /* end confdefs.h. */ |
---|
3211 | $ac_declaration |
---|
3212 | #include <stdlib.h> |
---|
3213 | int |
---|
3214 | main () |
---|
3215 | { |
---|
3216 | exit (42); |
---|
3217 | ; |
---|
3218 | return 0; |
---|
3219 | } |
---|
3220 | _ACEOF |
---|
3221 | rm -f conftest.$ac_objext |
---|
3222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3223 | (eval $ac_compile) 2>conftest.er1 |
---|
3224 | ac_status=$? |
---|
3225 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3226 | rm -f conftest.er1 |
---|
3227 | cat conftest.err >&5 |
---|
3228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3229 | (exit $ac_status); } && |
---|
3230 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3231 | || test ! -s conftest.err' |
---|
3232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3233 | (eval $ac_try) 2>&5 |
---|
3234 | ac_status=$? |
---|
3235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3236 | (exit $ac_status); }; } && |
---|
3237 | { ac_try='test -s conftest.$ac_objext' |
---|
3238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3239 | (eval $ac_try) 2>&5 |
---|
3240 | ac_status=$? |
---|
3241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3242 | (exit $ac_status); }; }; then |
---|
3243 | : |
---|
3244 | else |
---|
3245 | echo "$as_me: failed program was:" >&5 |
---|
3246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3247 | |
---|
3248 | continue |
---|
3249 | fi |
---|
3250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3251 | cat >conftest.$ac_ext <<_ACEOF |
---|
3252 | /* confdefs.h. */ |
---|
3253 | _ACEOF |
---|
3254 | cat confdefs.h >>conftest.$ac_ext |
---|
3255 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3256 | /* end confdefs.h. */ |
---|
3257 | $ac_declaration |
---|
3258 | int |
---|
3259 | main () |
---|
3260 | { |
---|
3261 | exit (42); |
---|
3262 | ; |
---|
3263 | return 0; |
---|
3264 | } |
---|
3265 | _ACEOF |
---|
3266 | rm -f conftest.$ac_objext |
---|
3267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3268 | (eval $ac_compile) 2>conftest.er1 |
---|
3269 | ac_status=$? |
---|
3270 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3271 | rm -f conftest.er1 |
---|
3272 | cat conftest.err >&5 |
---|
3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3274 | (exit $ac_status); } && |
---|
3275 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3276 | || test ! -s conftest.err' |
---|
3277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3278 | (eval $ac_try) 2>&5 |
---|
3279 | ac_status=$? |
---|
3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3281 | (exit $ac_status); }; } && |
---|
3282 | { ac_try='test -s conftest.$ac_objext' |
---|
3283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3284 | (eval $ac_try) 2>&5 |
---|
3285 | ac_status=$? |
---|
3286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3287 | (exit $ac_status); }; }; then |
---|
3288 | break |
---|
3289 | else |
---|
3290 | echo "$as_me: failed program was:" >&5 |
---|
3291 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3292 | |
---|
3293 | fi |
---|
3294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3295 | done |
---|
3296 | rm -f conftest* |
---|
3297 | if test -n "$ac_declaration"; then |
---|
3298 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3299 | echo $ac_declaration >>confdefs.h |
---|
3300 | echo '#endif' >>confdefs.h |
---|
3301 | fi |
---|
3302 | |
---|
3303 | else |
---|
3304 | echo "$as_me: failed program was:" >&5 |
---|
3305 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3306 | |
---|
3307 | fi |
---|
3308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3309 | ac_ext=c |
---|
3310 | ac_cpp='$CPP $CPPFLAGS' |
---|
3311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3314 | |
---|
3315 | depcc="$CC" am_compiler_list= |
---|
3316 | |
---|
3317 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3318 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3319 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3321 | else |
---|
3322 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3323 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3324 | # making bogus files that we don't know about and never remove. For |
---|
3325 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3326 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3327 | # in D'. |
---|
3328 | mkdir conftest.dir |
---|
3329 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3330 | # using a relative directory. |
---|
3331 | cp "$am_depcomp" conftest.dir |
---|
3332 | cd conftest.dir |
---|
3333 | # We will build objects and dependencies in a subdirectory because |
---|
3334 | # it helps to detect inapplicable dependency modes. For instance |
---|
3335 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3336 | # side effect of compilation, but ICC will put the dependencies in |
---|
3337 | # the current directory while Tru64 will put them in the object |
---|
3338 | # directory. |
---|
3339 | mkdir sub |
---|
3340 | |
---|
3341 | am_cv_CC_dependencies_compiler_type=none |
---|
3342 | if test "$am_compiler_list" = ""; then |
---|
3343 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3344 | fi |
---|
3345 | for depmode in $am_compiler_list; do |
---|
3346 | # Setup a source with many dependencies, because some compilers |
---|
3347 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3348 | # we should not choose a depcomp mode which is confused by this. |
---|
3349 | # |
---|
3350 | # We need to recreate these files for each test, as the compiler may |
---|
3351 | # overwrite some of them when testing with obscure command lines. |
---|
3352 | # This happens at least with the AIX C compiler. |
---|
3353 | : > sub/conftest.c |
---|
3354 | for i in 1 2 3 4 5 6; do |
---|
3355 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3356 | : > sub/conftst$i.h |
---|
3357 | done |
---|
3358 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3359 | |
---|
3360 | case $depmode in |
---|
3361 | nosideeffect) |
---|
3362 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3363 | # only be used when explicitly requested |
---|
3364 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3365 | continue |
---|
3366 | else |
---|
3367 | break |
---|
3368 | fi |
---|
3369 | ;; |
---|
3370 | none) break ;; |
---|
3371 | esac |
---|
3372 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3373 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3374 | # handle `-M -o', and we need to detect this. |
---|
3375 | if depmode=$depmode \ |
---|
3376 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3377 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3378 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3379 | >/dev/null 2>conftest.err && |
---|
3380 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3381 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3382 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3383 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3384 | # (even with -Werror). So we grep stderr for any message |
---|
3385 | # that says an option was ignored. |
---|
3386 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
3387 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3388 | break |
---|
3389 | fi |
---|
3390 | fi |
---|
3391 | done |
---|
3392 | |
---|
3393 | cd .. |
---|
3394 | rm -rf conftest.dir |
---|
3395 | else |
---|
3396 | am_cv_CC_dependencies_compiler_type=none |
---|
3397 | fi |
---|
3398 | |
---|
3399 | fi |
---|
3400 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3401 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3402 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3403 | |
---|
3404 | |
---|
3405 | |
---|
3406 | if |
---|
3407 | test "x$enable_dependency_tracking" != xno \ |
---|
3408 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3409 | am__fastdepCC_TRUE= |
---|
3410 | am__fastdepCC_FALSE='#' |
---|
3411 | else |
---|
3412 | am__fastdepCC_TRUE='#' |
---|
3413 | am__fastdepCC_FALSE= |
---|
3414 | fi |
---|
3415 | |
---|
3416 | |
---|
3417 | |
---|
3418 | ac_ext=c |
---|
3419 | ac_cpp='$CPP $CPPFLAGS' |
---|
3420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3423 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3424 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3425 | # On Suns, sometimes $CPP names a directory. |
---|
3426 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3427 | CPP= |
---|
3428 | fi |
---|
3429 | if test -z "$CPP"; then |
---|
3430 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3432 | else |
---|
3433 | # Double quotes because CPP needs to be expanded |
---|
3434 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3435 | do |
---|
3436 | ac_preproc_ok=false |
---|
3437 | for ac_c_preproc_warn_flag in '' yes |
---|
3438 | do |
---|
3439 | # Use a header file that comes with gcc, so configuring glibc |
---|
3440 | # with a fresh cross-compiler works. |
---|
3441 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3442 | # <limits.h> exists even on freestanding compilers. |
---|
3443 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3444 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3445 | cat >conftest.$ac_ext <<_ACEOF |
---|
3446 | /* confdefs.h. */ |
---|
3447 | _ACEOF |
---|
3448 | cat confdefs.h >>conftest.$ac_ext |
---|
3449 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3450 | /* end confdefs.h. */ |
---|
3451 | #ifdef __STDC__ |
---|
3452 | # include <limits.h> |
---|
3453 | #else |
---|
3454 | # include <assert.h> |
---|
3455 | #endif |
---|
3456 | Syntax error |
---|
3457 | _ACEOF |
---|
3458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3460 | ac_status=$? |
---|
3461 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3462 | rm -f conftest.er1 |
---|
3463 | cat conftest.err >&5 |
---|
3464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3465 | (exit $ac_status); } >/dev/null; then |
---|
3466 | if test -s conftest.err; then |
---|
3467 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3469 | else |
---|
3470 | ac_cpp_err= |
---|
3471 | fi |
---|
3472 | else |
---|
3473 | ac_cpp_err=yes |
---|
3474 | fi |
---|
3475 | if test -z "$ac_cpp_err"; then |
---|
3476 | : |
---|
3477 | else |
---|
3478 | echo "$as_me: failed program was:" >&5 |
---|
3479 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3480 | |
---|
3481 | # Broken: fails on valid input. |
---|
3482 | continue |
---|
3483 | fi |
---|
3484 | rm -f conftest.err conftest.$ac_ext |
---|
3485 | |
---|
3486 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3487 | # can be detected and how. |
---|
3488 | cat >conftest.$ac_ext <<_ACEOF |
---|
3489 | /* confdefs.h. */ |
---|
3490 | _ACEOF |
---|
3491 | cat confdefs.h >>conftest.$ac_ext |
---|
3492 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3493 | /* end confdefs.h. */ |
---|
3494 | #include <ac_nonexistent.h> |
---|
3495 | _ACEOF |
---|
3496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3498 | ac_status=$? |
---|
3499 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3500 | rm -f conftest.er1 |
---|
3501 | cat conftest.err >&5 |
---|
3502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3503 | (exit $ac_status); } >/dev/null; then |
---|
3504 | if test -s conftest.err; then |
---|
3505 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3507 | else |
---|
3508 | ac_cpp_err= |
---|
3509 | fi |
---|
3510 | else |
---|
3511 | ac_cpp_err=yes |
---|
3512 | fi |
---|
3513 | if test -z "$ac_cpp_err"; then |
---|
3514 | # Broken: success on invalid input. |
---|
3515 | continue |
---|
3516 | else |
---|
3517 | echo "$as_me: failed program was:" >&5 |
---|
3518 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3519 | |
---|
3520 | # Passes both tests. |
---|
3521 | ac_preproc_ok=: |
---|
3522 | break |
---|
3523 | fi |
---|
3524 | rm -f conftest.err conftest.$ac_ext |
---|
3525 | |
---|
3526 | done |
---|
3527 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3528 | rm -f conftest.err conftest.$ac_ext |
---|
3529 | if $ac_preproc_ok; then |
---|
3530 | break |
---|
3531 | fi |
---|
3532 | |
---|
3533 | done |
---|
3534 | ac_cv_prog_CPP=$CPP |
---|
3535 | |
---|
3536 | fi |
---|
3537 | CPP=$ac_cv_prog_CPP |
---|
3538 | else |
---|
3539 | ac_cv_prog_CPP=$CPP |
---|
3540 | fi |
---|
3541 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3542 | echo "${ECHO_T}$CPP" >&6 |
---|
3543 | ac_preproc_ok=false |
---|
3544 | for ac_c_preproc_warn_flag in '' yes |
---|
3545 | do |
---|
3546 | # Use a header file that comes with gcc, so configuring glibc |
---|
3547 | # with a fresh cross-compiler works. |
---|
3548 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3549 | # <limits.h> exists even on freestanding compilers. |
---|
3550 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3551 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3552 | cat >conftest.$ac_ext <<_ACEOF |
---|
3553 | /* confdefs.h. */ |
---|
3554 | _ACEOF |
---|
3555 | cat confdefs.h >>conftest.$ac_ext |
---|
3556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3557 | /* end confdefs.h. */ |
---|
3558 | #ifdef __STDC__ |
---|
3559 | # include <limits.h> |
---|
3560 | #else |
---|
3561 | # include <assert.h> |
---|
3562 | #endif |
---|
3563 | Syntax error |
---|
3564 | _ACEOF |
---|
3565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3567 | ac_status=$? |
---|
3568 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3569 | rm -f conftest.er1 |
---|
3570 | cat conftest.err >&5 |
---|
3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3572 | (exit $ac_status); } >/dev/null; then |
---|
3573 | if test -s conftest.err; then |
---|
3574 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3575 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3576 | else |
---|
3577 | ac_cpp_err= |
---|
3578 | fi |
---|
3579 | else |
---|
3580 | ac_cpp_err=yes |
---|
3581 | fi |
---|
3582 | if test -z "$ac_cpp_err"; then |
---|
3583 | : |
---|
3584 | else |
---|
3585 | echo "$as_me: failed program was:" >&5 |
---|
3586 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3587 | |
---|
3588 | # Broken: fails on valid input. |
---|
3589 | continue |
---|
3590 | fi |
---|
3591 | rm -f conftest.err conftest.$ac_ext |
---|
3592 | |
---|
3593 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3594 | # can be detected and how. |
---|
3595 | cat >conftest.$ac_ext <<_ACEOF |
---|
3596 | /* confdefs.h. */ |
---|
3597 | _ACEOF |
---|
3598 | cat confdefs.h >>conftest.$ac_ext |
---|
3599 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3600 | /* end confdefs.h. */ |
---|
3601 | #include <ac_nonexistent.h> |
---|
3602 | _ACEOF |
---|
3603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3605 | ac_status=$? |
---|
3606 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3607 | rm -f conftest.er1 |
---|
3608 | cat conftest.err >&5 |
---|
3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3610 | (exit $ac_status); } >/dev/null; then |
---|
3611 | if test -s conftest.err; then |
---|
3612 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3613 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3614 | else |
---|
3615 | ac_cpp_err= |
---|
3616 | fi |
---|
3617 | else |
---|
3618 | ac_cpp_err=yes |
---|
3619 | fi |
---|
3620 | if test -z "$ac_cpp_err"; then |
---|
3621 | # Broken: success on invalid input. |
---|
3622 | continue |
---|
3623 | else |
---|
3624 | echo "$as_me: failed program was:" >&5 |
---|
3625 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3626 | |
---|
3627 | # Passes both tests. |
---|
3628 | ac_preproc_ok=: |
---|
3629 | break |
---|
3630 | fi |
---|
3631 | rm -f conftest.err conftest.$ac_ext |
---|
3632 | |
---|
3633 | done |
---|
3634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3635 | rm -f conftest.err conftest.$ac_ext |
---|
3636 | if $ac_preproc_ok; then |
---|
3637 | : |
---|
3638 | else |
---|
3639 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3640 | See \`config.log' for more details." >&5 |
---|
3641 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3642 | See \`config.log' for more details." >&2;} |
---|
3643 | { (exit 1); exit 1; }; } |
---|
3644 | fi |
---|
3645 | |
---|
3646 | ac_ext=c |
---|
3647 | ac_cpp='$CPP $CPPFLAGS' |
---|
3648 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3649 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3650 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3651 | |
---|
3652 | |
---|
3653 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3654 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3655 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3657 | else |
---|
3658 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3659 | then ac_cv_prog_egrep='grep -E' |
---|
3660 | else ac_cv_prog_egrep='egrep' |
---|
3661 | fi |
---|
3662 | fi |
---|
3663 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3664 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3665 | EGREP=$ac_cv_prog_egrep |
---|
3666 | |
---|
3667 | |
---|
3668 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3669 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3670 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3672 | else |
---|
3673 | cat >conftest.$ac_ext <<_ACEOF |
---|
3674 | /* confdefs.h. */ |
---|
3675 | _ACEOF |
---|
3676 | cat confdefs.h >>conftest.$ac_ext |
---|
3677 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3678 | /* end confdefs.h. */ |
---|
3679 | #include <stdlib.h> |
---|
3680 | #include <stdarg.h> |
---|
3681 | #include <string.h> |
---|
3682 | #include <float.h> |
---|
3683 | |
---|
3684 | int |
---|
3685 | main () |
---|
3686 | { |
---|
3687 | |
---|
3688 | ; |
---|
3689 | return 0; |
---|
3690 | } |
---|
3691 | _ACEOF |
---|
3692 | rm -f conftest.$ac_objext |
---|
3693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3694 | (eval $ac_compile) 2>conftest.er1 |
---|
3695 | ac_status=$? |
---|
3696 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3697 | rm -f conftest.er1 |
---|
3698 | cat conftest.err >&5 |
---|
3699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3700 | (exit $ac_status); } && |
---|
3701 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3702 | || test ! -s conftest.err' |
---|
3703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3704 | (eval $ac_try) 2>&5 |
---|
3705 | ac_status=$? |
---|
3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3707 | (exit $ac_status); }; } && |
---|
3708 | { ac_try='test -s conftest.$ac_objext' |
---|
3709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3710 | (eval $ac_try) 2>&5 |
---|
3711 | ac_status=$? |
---|
3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3713 | (exit $ac_status); }; }; then |
---|
3714 | ac_cv_header_stdc=yes |
---|
3715 | else |
---|
3716 | echo "$as_me: failed program was:" >&5 |
---|
3717 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3718 | |
---|
3719 | ac_cv_header_stdc=no |
---|
3720 | fi |
---|
3721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3722 | |
---|
3723 | if test $ac_cv_header_stdc = yes; then |
---|
3724 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3725 | cat >conftest.$ac_ext <<_ACEOF |
---|
3726 | /* confdefs.h. */ |
---|
3727 | _ACEOF |
---|
3728 | cat confdefs.h >>conftest.$ac_ext |
---|
3729 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3730 | /* end confdefs.h. */ |
---|
3731 | #include <string.h> |
---|
3732 | |
---|
3733 | _ACEOF |
---|
3734 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3735 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3736 | : |
---|
3737 | else |
---|
3738 | ac_cv_header_stdc=no |
---|
3739 | fi |
---|
3740 | rm -f conftest* |
---|
3741 | |
---|
3742 | fi |
---|
3743 | |
---|
3744 | if test $ac_cv_header_stdc = yes; then |
---|
3745 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3746 | cat >conftest.$ac_ext <<_ACEOF |
---|
3747 | /* confdefs.h. */ |
---|
3748 | _ACEOF |
---|
3749 | cat confdefs.h >>conftest.$ac_ext |
---|
3750 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3751 | /* end confdefs.h. */ |
---|
3752 | #include <stdlib.h> |
---|
3753 | |
---|
3754 | _ACEOF |
---|
3755 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3756 | $EGREP "free" >/dev/null 2>&1; then |
---|
3757 | : |
---|
3758 | else |
---|
3759 | ac_cv_header_stdc=no |
---|
3760 | fi |
---|
3761 | rm -f conftest* |
---|
3762 | |
---|
3763 | fi |
---|
3764 | |
---|
3765 | if test $ac_cv_header_stdc = yes; then |
---|
3766 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3767 | if test "$cross_compiling" = yes; then |
---|
3768 | : |
---|
3769 | else |
---|
3770 | cat >conftest.$ac_ext <<_ACEOF |
---|
3771 | /* confdefs.h. */ |
---|
3772 | _ACEOF |
---|
3773 | cat confdefs.h >>conftest.$ac_ext |
---|
3774 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3775 | /* end confdefs.h. */ |
---|
3776 | #include <ctype.h> |
---|
3777 | #if ((' ' & 0x0FF) == 0x020) |
---|
3778 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3779 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3780 | #else |
---|
3781 | # define ISLOWER(c) \ |
---|
3782 | (('a' <= (c) && (c) <= 'i') \ |
---|
3783 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3784 | || ('s' <= (c) && (c) <= 'z')) |
---|
3785 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3786 | #endif |
---|
3787 | |
---|
3788 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3789 | int |
---|
3790 | main () |
---|
3791 | { |
---|
3792 | int i; |
---|
3793 | for (i = 0; i < 256; i++) |
---|
3794 | if (XOR (islower (i), ISLOWER (i)) |
---|
3795 | || toupper (i) != TOUPPER (i)) |
---|
3796 | exit(2); |
---|
3797 | exit (0); |
---|
3798 | } |
---|
3799 | _ACEOF |
---|
3800 | rm -f conftest$ac_exeext |
---|
3801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3802 | (eval $ac_link) 2>&5 |
---|
3803 | ac_status=$? |
---|
3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3807 | (eval $ac_try) 2>&5 |
---|
3808 | ac_status=$? |
---|
3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3810 | (exit $ac_status); }; }; then |
---|
3811 | : |
---|
3812 | else |
---|
3813 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3814 | echo "$as_me: failed program was:" >&5 |
---|
3815 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3816 | |
---|
3817 | ( exit $ac_status ) |
---|
3818 | ac_cv_header_stdc=no |
---|
3819 | fi |
---|
3820 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3821 | fi |
---|
3822 | fi |
---|
3823 | fi |
---|
3824 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3825 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3826 | if test $ac_cv_header_stdc = yes; then |
---|
3827 | |
---|
3828 | cat >>confdefs.h <<\_ACEOF |
---|
3829 | #define STDC_HEADERS 1 |
---|
3830 | _ACEOF |
---|
3831 | |
---|
3832 | fi |
---|
3833 | |
---|
3834 | |
---|
3835 | ################################## |
---|
3836 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
3837 | ################################## |
---|
3838 | |
---|
3839 | #-----------------# |
---|
3840 | # DEBUG-statement # |
---|
3841 | #-----------------# |
---|
3842 | DEBUG=no |
---|
3843 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
3844 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
3845 | # Check whether --enable-debug or --disable-debug was given. |
---|
3846 | if test "${enable_debug+set}" = set; then |
---|
3847 | enableval="$enable_debug" |
---|
3848 | DEBUG=$enableval |
---|
3849 | fi; |
---|
3850 | |
---|
3851 | if test x$DEBUG = xno; then |
---|
3852 | echo "no" |
---|
3853 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
3854 | DEBUG=4 |
---|
3855 | elif test x$DEBUG = xyes; then |
---|
3856 | echo "yes" |
---|
3857 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
3858 | DEBUG=4 |
---|
3859 | else |
---|
3860 | echo "yes: setting debuglevel to to $DEBUG" |
---|
3861 | fi |
---|
3862 | |
---|
3863 | cat >>confdefs.h <<_ACEOF |
---|
3864 | #define DEBUG $DEBUG |
---|
3865 | _ACEOF |
---|
3866 | |
---|
3867 | |
---|
3868 | |
---|
3869 | |
---|
3870 | #---------------# |
---|
3871 | # Modular Debug # |
---|
3872 | #---------------# |
---|
3873 | MODULAR_DEBUG=yes |
---|
3874 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
3875 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
3876 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
3877 | if test "${enable_modular_debug+set}" = set; then |
---|
3878 | enableval="$enable_modular_debug" |
---|
3879 | MODULAR_DEBUG=$enableval |
---|
3880 | fi; |
---|
3881 | |
---|
3882 | if test x$MODULAR_DEBUG = xno; then |
---|
3883 | echo "no" |
---|
3884 | elif test x$MODULAR_DEBUG = xyes; then |
---|
3885 | echo "yes" |
---|
3886 | |
---|
3887 | cat >>confdefs.h <<_ACEOF |
---|
3888 | #define MODULAR_DEBUG 1 |
---|
3889 | _ACEOF |
---|
3890 | |
---|
3891 | fi |
---|
3892 | |
---|
3893 | #--------------# |
---|
3894 | # GTK-disabled # |
---|
3895 | #--------------# |
---|
3896 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
3897 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
3898 | |
---|
3899 | # Check whether --with-gtk or --without-gtk was given. |
---|
3900 | if test "${with_gtk+set}" = set; then |
---|
3901 | withval="$with_gtk" |
---|
3902 | def_gtk=no |
---|
3903 | else |
---|
3904 | def_gtk=yes |
---|
3905 | fi; |
---|
3906 | if test x$def_gtk = xyes; then |
---|
3907 | echo "yes" |
---|
3908 | fi |
---|
3909 | if test x$def_gtk = xno; then |
---|
3910 | echo "no" |
---|
3911 | fi |
---|
3912 | |
---|
3913 | #------------------# |
---|
3914 | # gThread-disabled # |
---|
3915 | #------------------# |
---|
3916 | echo "$as_me:$LINENO: checking if gThread should be enabled" >&5 |
---|
3917 | echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6 |
---|
3918 | |
---|
3919 | # Check whether --with-gthread or --without-gthread was given. |
---|
3920 | if test "${with_gthread+set}" = set; then |
---|
3921 | withval="$with_gthread" |
---|
3922 | def_gthread=no |
---|
3923 | else |
---|
3924 | def_gthread=yes |
---|
3925 | fi; |
---|
3926 | if test x$def_gthread = xyes; then |
---|
3927 | echo "yes" |
---|
3928 | fi |
---|
3929 | if test x$def_gthread = xno; then |
---|
3930 | echo "no" |
---|
3931 | fi |
---|
3932 | |
---|
3933 | #------------------# |
---|
3934 | # pthread-disabled # |
---|
3935 | #------------------# |
---|
3936 | echo "$as_me:$LINENO: checking if pthread should be enabled" >&5 |
---|
3937 | echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6 |
---|
3938 | |
---|
3939 | # Check whether --with-pthread or --without-pthread was given. |
---|
3940 | if test "${with_pthread+set}" = set; then |
---|
3941 | withval="$with_pthread" |
---|
3942 | def_pthread=no |
---|
3943 | else |
---|
3944 | def_pthread=yes |
---|
3945 | fi; |
---|
3946 | if test x$def_pthread = xyes; then |
---|
3947 | echo "yes" |
---|
3948 | fi |
---|
3949 | if test x$def_pthread = xno; then |
---|
3950 | echo "no" |
---|
3951 | fi |
---|
3952 | |
---|
3953 | #------------------# |
---|
3954 | # libCurl-disabled # |
---|
3955 | #------------------# |
---|
3956 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
3957 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
3958 | |
---|
3959 | # Check whether --with-curl or --without-curl was given. |
---|
3960 | if test "${with_curl+set}" = set; then |
---|
3961 | withval="$with_curl" |
---|
3962 | def_curl=no |
---|
3963 | else |
---|
3964 | def_curl=yes |
---|
3965 | fi; |
---|
3966 | if test x$def_curl = xyes; then |
---|
3967 | echo "yes" |
---|
3968 | fi |
---|
3969 | if test x$def_curl = xno; then |
---|
3970 | echo "no" |
---|
3971 | fi |
---|
3972 | |
---|
3973 | #-------------------# |
---|
3974 | # SubProject-enable # |
---|
3975 | #-------------------# |
---|
3976 | def_sub_projects=no |
---|
3977 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
3978 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
3979 | # Check whether --enable-sub-projects or --disable-sub-projects was given. |
---|
3980 | if test "${enable_sub_projects+set}" = set; then |
---|
3981 | enableval="$enable_sub_projects" |
---|
3982 | def_sub_projects=yes |
---|
3983 | fi; |
---|
3984 | if test x$def_sub_projects = xyes; then |
---|
3985 | echo "yes" |
---|
3986 | fi |
---|
3987 | if test x$def_sub_projects = xno; then |
---|
3988 | echo "no" |
---|
3989 | fi |
---|
3990 | |
---|
3991 | |
---|
3992 | if test x$def_sub_projects = xyes; then |
---|
3993 | SUB_PROJECTS_TRUE= |
---|
3994 | SUB_PROJECTS_FALSE='#' |
---|
3995 | else |
---|
3996 | SUB_PROJECTS_TRUE='#' |
---|
3997 | SUB_PROJECTS_FALSE= |
---|
3998 | fi |
---|
3999 | |
---|
4000 | |
---|
4001 | #-------------------# |
---|
4002 | # Profiling Enabled # |
---|
4003 | #-------------------# |
---|
4004 | def_profiling=no |
---|
4005 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
4006 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
4007 | # Check whether --enable-profile or --disable-profile was given. |
---|
4008 | if test "${enable_profile+set}" = set; then |
---|
4009 | enableval="$enable_profile" |
---|
4010 | def_profiling=yes |
---|
4011 | fi; |
---|
4012 | if test x$def_profiling = xyes; then |
---|
4013 | echo "yes" |
---|
4014 | CXXFLAGS="$CXXFLAGS -pg" |
---|
4015 | fi |
---|
4016 | if test x$def_profiling = xno; then |
---|
4017 | echo "no" |
---|
4018 | fi |
---|
4019 | |
---|
4020 | #----------------# |
---|
4021 | # efence Enabled # |
---|
4022 | #----------------# |
---|
4023 | def_efence=no |
---|
4024 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
4025 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
4026 | # Check whether --enable-efence or --disable-efence was given. |
---|
4027 | if test "${enable_efence+set}" = set; then |
---|
4028 | enableval="$enable_efence" |
---|
4029 | def_efence=yes |
---|
4030 | fi; |
---|
4031 | if test x$def_efence = xyes; then |
---|
4032 | echo "yes" |
---|
4033 | fi |
---|
4034 | if test x$def_efence = xno; then |
---|
4035 | echo "no" |
---|
4036 | fi |
---|
4037 | |
---|
4038 | #----------------------# |
---|
4039 | # Documentation-enable # |
---|
4040 | #----------------------# |
---|
4041 | def_documentation=no |
---|
4042 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
4043 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
4044 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
4045 | if test "${enable_documentation+set}" = set; then |
---|
4046 | enableval="$enable_documentation" |
---|
4047 | def_documentation=yes |
---|
4048 | fi; |
---|
4049 | if test x$def_documentation = xyes; then |
---|
4050 | echo "yes" |
---|
4051 | fi |
---|
4052 | if test x$def_documentation = xno; then |
---|
4053 | echo "no" |
---|
4054 | fi |
---|
4055 | |
---|
4056 | |
---|
4057 | if test x$def_documentation = xyes; then |
---|
4058 | DOCUMENTATION_TRUE= |
---|
4059 | DOCUMENTATION_FALSE='#' |
---|
4060 | else |
---|
4061 | DOCUMENTATION_TRUE='#' |
---|
4062 | DOCUMENTATION_FALSE= |
---|
4063 | fi |
---|
4064 | |
---|
4065 | ####################### |
---|
4066 | ## PROGRAMM CHECKING ## |
---|
4067 | ## 3. party Programs ## |
---|
4068 | ####################### |
---|
4069 | |
---|
4070 | #----------------------# |
---|
4071 | # checking for Doxygen # |
---|
4072 | #----------------------# |
---|
4073 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
4074 | set dummy doxygen; ac_word=$2 |
---|
4075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4077 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
4078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4079 | else |
---|
4080 | case $DOXYGEN in |
---|
4081 | [\\/]* | ?:[\\/]*) |
---|
4082 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
4083 | ;; |
---|
4084 | *) |
---|
4085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4086 | for as_dir in $PATH |
---|
4087 | do |
---|
4088 | IFS=$as_save_IFS |
---|
4089 | test -z "$as_dir" && as_dir=. |
---|
4090 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4091 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4092 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
4093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4094 | break 2 |
---|
4095 | fi |
---|
4096 | done |
---|
4097 | done |
---|
4098 | |
---|
4099 | ;; |
---|
4100 | esac |
---|
4101 | fi |
---|
4102 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
4103 | |
---|
4104 | if test -n "$DOXYGEN"; then |
---|
4105 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
4106 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
4107 | else |
---|
4108 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4109 | echo "${ECHO_T}no" >&6 |
---|
4110 | fi |
---|
4111 | |
---|
4112 | |
---|
4113 | |
---|
4114 | if test $DOXYGEN; then |
---|
4115 | DOXYGEN_TRUE= |
---|
4116 | DOXYGEN_FALSE='#' |
---|
4117 | else |
---|
4118 | DOXYGEN_TRUE='#' |
---|
4119 | DOXYGEN_FALSE= |
---|
4120 | fi |
---|
4121 | |
---|
4122 | |
---|
4123 | #--------------------# |
---|
4124 | # checking for gprof # |
---|
4125 | #--------------------# |
---|
4126 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
4127 | set dummy gprof; ac_word=$2 |
---|
4128 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4130 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
4131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4132 | else |
---|
4133 | case $GPROF in |
---|
4134 | [\\/]* | ?:[\\/]*) |
---|
4135 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
4136 | ;; |
---|
4137 | *) |
---|
4138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4139 | for as_dir in $PATH |
---|
4140 | do |
---|
4141 | IFS=$as_save_IFS |
---|
4142 | test -z "$as_dir" && as_dir=. |
---|
4143 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4144 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4145 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
4146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4147 | break 2 |
---|
4148 | fi |
---|
4149 | done |
---|
4150 | done |
---|
4151 | |
---|
4152 | ;; |
---|
4153 | esac |
---|
4154 | fi |
---|
4155 | GPROF=$ac_cv_path_GPROF |
---|
4156 | |
---|
4157 | if test -n "$GPROF"; then |
---|
4158 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
4159 | echo "${ECHO_T}$GPROF" >&6 |
---|
4160 | else |
---|
4161 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4162 | echo "${ECHO_T}no" >&6 |
---|
4163 | fi |
---|
4164 | |
---|
4165 | |
---|
4166 | ######################### |
---|
4167 | ## CHECKING FOR SYSTEM ## |
---|
4168 | ######################### |
---|
4169 | ## here the system is checked, and openGL is included |
---|
4170 | ## also checking for SDL on differen Systems |
---|
4171 | |
---|
4172 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
4173 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
4174 | ## checking for openGL-environment and other sys-specific parameters |
---|
4175 | case "$target" in |
---|
4176 | #---------# |
---|
4177 | # WINDOWS # |
---|
4178 | #---------# |
---|
4179 | *-*-mingw32*) |
---|
4180 | echo "mingw-WINDOWS detected" |
---|
4181 | |
---|
4182 | CPPFLAGS="-I/usr/include/SDL -I/mingw/include/SDL" |
---|
4183 | |
---|
4184 | mingw="yes" |
---|
4185 | MSBITFIELDS="-mms-bitfields" |
---|
4186 | MWINDOWS="-mwindows" |
---|
4187 | |
---|
4188 | # checking gl header |
---|
4189 | #done before loop |
---|
4190 | |
---|
4191 | # checking gl header |
---|
4192 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4193 | |
---|
4194 | |
---|
4195 | |
---|
4196 | |
---|
4197 | |
---|
4198 | |
---|
4199 | |
---|
4200 | |
---|
4201 | |
---|
4202 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4203 | inttypes.h stdint.h unistd.h |
---|
4204 | do |
---|
4205 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4206 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4207 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4210 | else |
---|
4211 | cat >conftest.$ac_ext <<_ACEOF |
---|
4212 | /* confdefs.h. */ |
---|
4213 | _ACEOF |
---|
4214 | cat confdefs.h >>conftest.$ac_ext |
---|
4215 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4216 | /* end confdefs.h. */ |
---|
4217 | $ac_includes_default |
---|
4218 | |
---|
4219 | #include <$ac_header> |
---|
4220 | _ACEOF |
---|
4221 | rm -f conftest.$ac_objext |
---|
4222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4223 | (eval $ac_compile) 2>conftest.er1 |
---|
4224 | ac_status=$? |
---|
4225 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4226 | rm -f conftest.er1 |
---|
4227 | cat conftest.err >&5 |
---|
4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4229 | (exit $ac_status); } && |
---|
4230 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4231 | || test ! -s conftest.err' |
---|
4232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4233 | (eval $ac_try) 2>&5 |
---|
4234 | ac_status=$? |
---|
4235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4236 | (exit $ac_status); }; } && |
---|
4237 | { ac_try='test -s conftest.$ac_objext' |
---|
4238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4239 | (eval $ac_try) 2>&5 |
---|
4240 | ac_status=$? |
---|
4241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4242 | (exit $ac_status); }; }; then |
---|
4243 | eval "$as_ac_Header=yes" |
---|
4244 | else |
---|
4245 | echo "$as_me: failed program was:" >&5 |
---|
4246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4247 | |
---|
4248 | eval "$as_ac_Header=no" |
---|
4249 | fi |
---|
4250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4251 | fi |
---|
4252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4253 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4254 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4255 | cat >>confdefs.h <<_ACEOF |
---|
4256 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4257 | _ACEOF |
---|
4258 | |
---|
4259 | fi |
---|
4260 | |
---|
4261 | done |
---|
4262 | |
---|
4263 | |
---|
4264 | |
---|
4265 | for ac_header in GL/gl.h |
---|
4266 | do |
---|
4267 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4268 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4269 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4270 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4271 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4273 | fi |
---|
4274 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4275 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4276 | else |
---|
4277 | # Is the header compilable? |
---|
4278 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4279 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4280 | cat >conftest.$ac_ext <<_ACEOF |
---|
4281 | /* confdefs.h. */ |
---|
4282 | _ACEOF |
---|
4283 | cat confdefs.h >>conftest.$ac_ext |
---|
4284 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4285 | /* end confdefs.h. */ |
---|
4286 | $ac_includes_default |
---|
4287 | #include <$ac_header> |
---|
4288 | _ACEOF |
---|
4289 | rm -f conftest.$ac_objext |
---|
4290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4291 | (eval $ac_compile) 2>conftest.er1 |
---|
4292 | ac_status=$? |
---|
4293 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4294 | rm -f conftest.er1 |
---|
4295 | cat conftest.err >&5 |
---|
4296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4297 | (exit $ac_status); } && |
---|
4298 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4299 | || test ! -s conftest.err' |
---|
4300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4301 | (eval $ac_try) 2>&5 |
---|
4302 | ac_status=$? |
---|
4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4304 | (exit $ac_status); }; } && |
---|
4305 | { ac_try='test -s conftest.$ac_objext' |
---|
4306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4307 | (eval $ac_try) 2>&5 |
---|
4308 | ac_status=$? |
---|
4309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4310 | (exit $ac_status); }; }; then |
---|
4311 | ac_header_compiler=yes |
---|
4312 | else |
---|
4313 | echo "$as_me: failed program was:" >&5 |
---|
4314 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4315 | |
---|
4316 | ac_header_compiler=no |
---|
4317 | fi |
---|
4318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4319 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4320 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4321 | |
---|
4322 | # Is the header present? |
---|
4323 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4324 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4325 | cat >conftest.$ac_ext <<_ACEOF |
---|
4326 | /* confdefs.h. */ |
---|
4327 | _ACEOF |
---|
4328 | cat confdefs.h >>conftest.$ac_ext |
---|
4329 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4330 | /* end confdefs.h. */ |
---|
4331 | #include <$ac_header> |
---|
4332 | _ACEOF |
---|
4333 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4334 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4335 | ac_status=$? |
---|
4336 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4337 | rm -f conftest.er1 |
---|
4338 | cat conftest.err >&5 |
---|
4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4340 | (exit $ac_status); } >/dev/null; then |
---|
4341 | if test -s conftest.err; then |
---|
4342 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4343 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4344 | else |
---|
4345 | ac_cpp_err= |
---|
4346 | fi |
---|
4347 | else |
---|
4348 | ac_cpp_err=yes |
---|
4349 | fi |
---|
4350 | if test -z "$ac_cpp_err"; then |
---|
4351 | ac_header_preproc=yes |
---|
4352 | else |
---|
4353 | echo "$as_me: failed program was:" >&5 |
---|
4354 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4355 | |
---|
4356 | ac_header_preproc=no |
---|
4357 | fi |
---|
4358 | rm -f conftest.err conftest.$ac_ext |
---|
4359 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4360 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4361 | |
---|
4362 | # So? What about this header? |
---|
4363 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4364 | yes:no: ) |
---|
4365 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4366 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4367 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4368 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4369 | ac_header_preproc=yes |
---|
4370 | ;; |
---|
4371 | no:yes:* ) |
---|
4372 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4373 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4374 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4375 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4376 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4377 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4378 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4379 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4381 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4382 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4383 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4384 | ( |
---|
4385 | cat <<\_ASBOX |
---|
4386 | ## ---------------------------------------------- ## |
---|
4387 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4388 | ## ---------------------------------------------- ## |
---|
4389 | _ASBOX |
---|
4390 | ) | |
---|
4391 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4392 | ;; |
---|
4393 | esac |
---|
4394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4398 | else |
---|
4399 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4400 | fi |
---|
4401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4402 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4403 | |
---|
4404 | fi |
---|
4405 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4406 | cat >>confdefs.h <<_ACEOF |
---|
4407 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4408 | _ACEOF |
---|
4409 | |
---|
4410 | else |
---|
4411 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4412 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4413 | { (exit 1); exit 1; }; } |
---|
4414 | fi |
---|
4415 | |
---|
4416 | done |
---|
4417 | |
---|
4418 | # checking for Windows openGl library |
---|
4419 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4420 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4421 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4423 | else |
---|
4424 | ac_check_lib_save_LIBS=$LIBS |
---|
4425 | LIBS="-lopengl32 $LIBS" |
---|
4426 | cat >conftest.$ac_ext <<_ACEOF |
---|
4427 | /* confdefs.h. */ |
---|
4428 | _ACEOF |
---|
4429 | cat confdefs.h >>conftest.$ac_ext |
---|
4430 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4431 | /* end confdefs.h. */ |
---|
4432 | |
---|
4433 | |
---|
4434 | int |
---|
4435 | main () |
---|
4436 | { |
---|
4437 | main (); |
---|
4438 | ; |
---|
4439 | return 0; |
---|
4440 | } |
---|
4441 | _ACEOF |
---|
4442 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4444 | (eval $ac_link) 2>conftest.er1 |
---|
4445 | ac_status=$? |
---|
4446 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4447 | rm -f conftest.er1 |
---|
4448 | cat conftest.err >&5 |
---|
4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4450 | (exit $ac_status); } && |
---|
4451 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4452 | || test ! -s conftest.err' |
---|
4453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4454 | (eval $ac_try) 2>&5 |
---|
4455 | ac_status=$? |
---|
4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4457 | (exit $ac_status); }; } && |
---|
4458 | { ac_try='test -s conftest$ac_exeext' |
---|
4459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4460 | (eval $ac_try) 2>&5 |
---|
4461 | ac_status=$? |
---|
4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4463 | (exit $ac_status); }; }; then |
---|
4464 | ac_cv_lib_opengl32_main=yes |
---|
4465 | else |
---|
4466 | echo "$as_me: failed program was:" >&5 |
---|
4467 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4468 | |
---|
4469 | ac_cv_lib_opengl32_main=no |
---|
4470 | fi |
---|
4471 | rm -f conftest.err conftest.$ac_objext \ |
---|
4472 | conftest$ac_exeext conftest.$ac_ext |
---|
4473 | LIBS=$ac_check_lib_save_LIBS |
---|
4474 | fi |
---|
4475 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4476 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4477 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4478 | FOUND_opengl32=yes |
---|
4479 | else |
---|
4480 | "gl/gl.h" |
---|
4481 | fi |
---|
4482 | |
---|
4483 | if test x$FOUND_opengl32 = xyes ; then |
---|
4484 | LIBS="$LIBS -lopengl32" |
---|
4485 | else |
---|
4486 | echo "------------------" |
---|
4487 | echo "opengl not found." |
---|
4488 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4489 | echo "------------------" |
---|
4490 | exit -1 |
---|
4491 | fi |
---|
4492 | |
---|
4493 | # cheking for GLU-header |
---|
4494 | |
---|
4495 | for ac_header in GL/glu.h |
---|
4496 | do |
---|
4497 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4499 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4500 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4501 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4503 | fi |
---|
4504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4506 | else |
---|
4507 | # Is the header compilable? |
---|
4508 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4509 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4510 | cat >conftest.$ac_ext <<_ACEOF |
---|
4511 | /* confdefs.h. */ |
---|
4512 | _ACEOF |
---|
4513 | cat confdefs.h >>conftest.$ac_ext |
---|
4514 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4515 | /* end confdefs.h. */ |
---|
4516 | $ac_includes_default |
---|
4517 | #include <$ac_header> |
---|
4518 | _ACEOF |
---|
4519 | rm -f conftest.$ac_objext |
---|
4520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4521 | (eval $ac_compile) 2>conftest.er1 |
---|
4522 | ac_status=$? |
---|
4523 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4524 | rm -f conftest.er1 |
---|
4525 | cat conftest.err >&5 |
---|
4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4527 | (exit $ac_status); } && |
---|
4528 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4529 | || test ! -s conftest.err' |
---|
4530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4531 | (eval $ac_try) 2>&5 |
---|
4532 | ac_status=$? |
---|
4533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4534 | (exit $ac_status); }; } && |
---|
4535 | { ac_try='test -s conftest.$ac_objext' |
---|
4536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4537 | (eval $ac_try) 2>&5 |
---|
4538 | ac_status=$? |
---|
4539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4540 | (exit $ac_status); }; }; then |
---|
4541 | ac_header_compiler=yes |
---|
4542 | else |
---|
4543 | echo "$as_me: failed program was:" >&5 |
---|
4544 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4545 | |
---|
4546 | ac_header_compiler=no |
---|
4547 | fi |
---|
4548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4549 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4550 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4551 | |
---|
4552 | # Is the header present? |
---|
4553 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4554 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4555 | cat >conftest.$ac_ext <<_ACEOF |
---|
4556 | /* confdefs.h. */ |
---|
4557 | _ACEOF |
---|
4558 | cat confdefs.h >>conftest.$ac_ext |
---|
4559 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4560 | /* end confdefs.h. */ |
---|
4561 | #include <$ac_header> |
---|
4562 | _ACEOF |
---|
4563 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4564 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4565 | ac_status=$? |
---|
4566 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4567 | rm -f conftest.er1 |
---|
4568 | cat conftest.err >&5 |
---|
4569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4570 | (exit $ac_status); } >/dev/null; then |
---|
4571 | if test -s conftest.err; then |
---|
4572 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4573 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4574 | else |
---|
4575 | ac_cpp_err= |
---|
4576 | fi |
---|
4577 | else |
---|
4578 | ac_cpp_err=yes |
---|
4579 | fi |
---|
4580 | if test -z "$ac_cpp_err"; then |
---|
4581 | ac_header_preproc=yes |
---|
4582 | else |
---|
4583 | echo "$as_me: failed program was:" >&5 |
---|
4584 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4585 | |
---|
4586 | ac_header_preproc=no |
---|
4587 | fi |
---|
4588 | rm -f conftest.err conftest.$ac_ext |
---|
4589 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4590 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4591 | |
---|
4592 | # So? What about this header? |
---|
4593 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4594 | yes:no: ) |
---|
4595 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4596 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4597 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4598 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4599 | ac_header_preproc=yes |
---|
4600 | ;; |
---|
4601 | no:yes:* ) |
---|
4602 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4603 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4604 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4605 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4606 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4607 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4608 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4609 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4610 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4611 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4612 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4613 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4614 | ( |
---|
4615 | cat <<\_ASBOX |
---|
4616 | ## ---------------------------------------------- ## |
---|
4617 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4618 | ## ---------------------------------------------- ## |
---|
4619 | _ASBOX |
---|
4620 | ) | |
---|
4621 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4622 | ;; |
---|
4623 | esac |
---|
4624 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4625 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4626 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4628 | else |
---|
4629 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4630 | fi |
---|
4631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4632 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4633 | |
---|
4634 | fi |
---|
4635 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4636 | cat >>confdefs.h <<_ACEOF |
---|
4637 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4638 | _ACEOF |
---|
4639 | |
---|
4640 | else |
---|
4641 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4642 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4643 | { (exit 1); exit 1; }; } |
---|
4644 | fi |
---|
4645 | |
---|
4646 | done |
---|
4647 | |
---|
4648 | |
---|
4649 | # checking for libGLU |
---|
4650 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4651 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4652 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4654 | else |
---|
4655 | ac_check_lib_save_LIBS=$LIBS |
---|
4656 | LIBS="-lglu32 $LIBS" |
---|
4657 | cat >conftest.$ac_ext <<_ACEOF |
---|
4658 | /* confdefs.h. */ |
---|
4659 | _ACEOF |
---|
4660 | cat confdefs.h >>conftest.$ac_ext |
---|
4661 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4662 | /* end confdefs.h. */ |
---|
4663 | |
---|
4664 | |
---|
4665 | int |
---|
4666 | main () |
---|
4667 | { |
---|
4668 | main (); |
---|
4669 | ; |
---|
4670 | return 0; |
---|
4671 | } |
---|
4672 | _ACEOF |
---|
4673 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4675 | (eval $ac_link) 2>conftest.er1 |
---|
4676 | ac_status=$? |
---|
4677 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4678 | rm -f conftest.er1 |
---|
4679 | cat conftest.err >&5 |
---|
4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4681 | (exit $ac_status); } && |
---|
4682 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4683 | || test ! -s conftest.err' |
---|
4684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4685 | (eval $ac_try) 2>&5 |
---|
4686 | ac_status=$? |
---|
4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4688 | (exit $ac_status); }; } && |
---|
4689 | { ac_try='test -s conftest$ac_exeext' |
---|
4690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4691 | (eval $ac_try) 2>&5 |
---|
4692 | ac_status=$? |
---|
4693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4694 | (exit $ac_status); }; }; then |
---|
4695 | ac_cv_lib_glu32_main=yes |
---|
4696 | else |
---|
4697 | echo "$as_me: failed program was:" >&5 |
---|
4698 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4699 | |
---|
4700 | ac_cv_lib_glu32_main=no |
---|
4701 | fi |
---|
4702 | rm -f conftest.err conftest.$ac_objext \ |
---|
4703 | conftest$ac_exeext conftest.$ac_ext |
---|
4704 | LIBS=$ac_check_lib_save_LIBS |
---|
4705 | fi |
---|
4706 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4707 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4708 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4709 | FOUND_glu32=yes |
---|
4710 | fi |
---|
4711 | |
---|
4712 | if test x$FOUND_glu32 = xyes ; then |
---|
4713 | LIBS="$LIBS -lGLU32" |
---|
4714 | else |
---|
4715 | echo "------------------" |
---|
4716 | echo "GLU library not found." |
---|
4717 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4718 | echo "------------------" |
---|
4719 | exit -1 |
---|
4720 | fi |
---|
4721 | |
---|
4722 | # checking for mingw32 |
---|
4723 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4724 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4725 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4727 | else |
---|
4728 | ac_check_lib_save_LIBS=$LIBS |
---|
4729 | LIBS="-lmingw32 $LIBS" |
---|
4730 | cat >conftest.$ac_ext <<_ACEOF |
---|
4731 | /* confdefs.h. */ |
---|
4732 | _ACEOF |
---|
4733 | cat confdefs.h >>conftest.$ac_ext |
---|
4734 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4735 | /* end confdefs.h. */ |
---|
4736 | |
---|
4737 | |
---|
4738 | int |
---|
4739 | main () |
---|
4740 | { |
---|
4741 | main (); |
---|
4742 | ; |
---|
4743 | return 0; |
---|
4744 | } |
---|
4745 | _ACEOF |
---|
4746 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4748 | (eval $ac_link) 2>conftest.er1 |
---|
4749 | ac_status=$? |
---|
4750 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4751 | rm -f conftest.er1 |
---|
4752 | cat conftest.err >&5 |
---|
4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4754 | (exit $ac_status); } && |
---|
4755 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4756 | || test ! -s conftest.err' |
---|
4757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4758 | (eval $ac_try) 2>&5 |
---|
4759 | ac_status=$? |
---|
4760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4761 | (exit $ac_status); }; } && |
---|
4762 | { ac_try='test -s conftest$ac_exeext' |
---|
4763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4764 | (eval $ac_try) 2>&5 |
---|
4765 | ac_status=$? |
---|
4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4767 | (exit $ac_status); }; }; then |
---|
4768 | ac_cv_lib_mingw32_main=yes |
---|
4769 | else |
---|
4770 | echo "$as_me: failed program was:" >&5 |
---|
4771 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4772 | |
---|
4773 | ac_cv_lib_mingw32_main=no |
---|
4774 | fi |
---|
4775 | rm -f conftest.err conftest.$ac_objext \ |
---|
4776 | conftest$ac_exeext conftest.$ac_ext |
---|
4777 | LIBS=$ac_check_lib_save_LIBS |
---|
4778 | fi |
---|
4779 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4780 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4781 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4782 | FOUND_mingw32=yes |
---|
4783 | fi |
---|
4784 | |
---|
4785 | if test x$FOUND_mingw32 = xyes; then |
---|
4786 | LIBS="$LIBS -lmingw32" |
---|
4787 | fi |
---|
4788 | # checking for SDL-headers |
---|
4789 | |
---|
4790 | for ac_header in SDL.h |
---|
4791 | do |
---|
4792 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4794 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4795 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4798 | fi |
---|
4799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4800 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4801 | else |
---|
4802 | # Is the header compilable? |
---|
4803 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4804 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4805 | cat >conftest.$ac_ext <<_ACEOF |
---|
4806 | /* confdefs.h. */ |
---|
4807 | _ACEOF |
---|
4808 | cat confdefs.h >>conftest.$ac_ext |
---|
4809 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4810 | /* end confdefs.h. */ |
---|
4811 | $ac_includes_default |
---|
4812 | #include <$ac_header> |
---|
4813 | _ACEOF |
---|
4814 | rm -f conftest.$ac_objext |
---|
4815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4816 | (eval $ac_compile) 2>conftest.er1 |
---|
4817 | ac_status=$? |
---|
4818 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4819 | rm -f conftest.er1 |
---|
4820 | cat conftest.err >&5 |
---|
4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4822 | (exit $ac_status); } && |
---|
4823 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4824 | || test ! -s conftest.err' |
---|
4825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4826 | (eval $ac_try) 2>&5 |
---|
4827 | ac_status=$? |
---|
4828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4829 | (exit $ac_status); }; } && |
---|
4830 | { ac_try='test -s conftest.$ac_objext' |
---|
4831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4832 | (eval $ac_try) 2>&5 |
---|
4833 | ac_status=$? |
---|
4834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4835 | (exit $ac_status); }; }; then |
---|
4836 | ac_header_compiler=yes |
---|
4837 | else |
---|
4838 | echo "$as_me: failed program was:" >&5 |
---|
4839 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4840 | |
---|
4841 | ac_header_compiler=no |
---|
4842 | fi |
---|
4843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4844 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4845 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4846 | |
---|
4847 | # Is the header present? |
---|
4848 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4849 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4850 | cat >conftest.$ac_ext <<_ACEOF |
---|
4851 | /* confdefs.h. */ |
---|
4852 | _ACEOF |
---|
4853 | cat confdefs.h >>conftest.$ac_ext |
---|
4854 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4855 | /* end confdefs.h. */ |
---|
4856 | #include <$ac_header> |
---|
4857 | _ACEOF |
---|
4858 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4860 | ac_status=$? |
---|
4861 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4862 | rm -f conftest.er1 |
---|
4863 | cat conftest.err >&5 |
---|
4864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4865 | (exit $ac_status); } >/dev/null; then |
---|
4866 | if test -s conftest.err; then |
---|
4867 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4868 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4869 | else |
---|
4870 | ac_cpp_err= |
---|
4871 | fi |
---|
4872 | else |
---|
4873 | ac_cpp_err=yes |
---|
4874 | fi |
---|
4875 | if test -z "$ac_cpp_err"; then |
---|
4876 | ac_header_preproc=yes |
---|
4877 | else |
---|
4878 | echo "$as_me: failed program was:" >&5 |
---|
4879 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4880 | |
---|
4881 | ac_header_preproc=no |
---|
4882 | fi |
---|
4883 | rm -f conftest.err conftest.$ac_ext |
---|
4884 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4885 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4886 | |
---|
4887 | # So? What about this header? |
---|
4888 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4889 | yes:no: ) |
---|
4890 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4891 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4893 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4894 | ac_header_preproc=yes |
---|
4895 | ;; |
---|
4896 | no:yes:* ) |
---|
4897 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4898 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4899 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4900 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4901 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4902 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4903 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4904 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4906 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4907 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4908 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4909 | ( |
---|
4910 | cat <<\_ASBOX |
---|
4911 | ## ---------------------------------------------- ## |
---|
4912 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4913 | ## ---------------------------------------------- ## |
---|
4914 | _ASBOX |
---|
4915 | ) | |
---|
4916 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4917 | ;; |
---|
4918 | esac |
---|
4919 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4923 | else |
---|
4924 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4925 | fi |
---|
4926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4927 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4928 | |
---|
4929 | fi |
---|
4930 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4931 | cat >>confdefs.h <<_ACEOF |
---|
4932 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4933 | _ACEOF |
---|
4934 | |
---|
4935 | else |
---|
4936 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4937 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4938 | { (exit 1); exit 1; }; } |
---|
4939 | fi |
---|
4940 | |
---|
4941 | done |
---|
4942 | |
---|
4943 | |
---|
4944 | #checking for libSDL |
---|
4945 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
4946 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
4947 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
4948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4949 | else |
---|
4950 | ac_check_lib_save_LIBS=$LIBS |
---|
4951 | LIBS="-lsdlmain $LIBS" |
---|
4952 | cat >conftest.$ac_ext <<_ACEOF |
---|
4953 | /* confdefs.h. */ |
---|
4954 | _ACEOF |
---|
4955 | cat confdefs.h >>conftest.$ac_ext |
---|
4956 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4957 | /* end confdefs.h. */ |
---|
4958 | |
---|
4959 | |
---|
4960 | int |
---|
4961 | main () |
---|
4962 | { |
---|
4963 | main (); |
---|
4964 | ; |
---|
4965 | return 0; |
---|
4966 | } |
---|
4967 | _ACEOF |
---|
4968 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4970 | (eval $ac_link) 2>conftest.er1 |
---|
4971 | ac_status=$? |
---|
4972 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4973 | rm -f conftest.er1 |
---|
4974 | cat conftest.err >&5 |
---|
4975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4976 | (exit $ac_status); } && |
---|
4977 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4978 | || test ! -s conftest.err' |
---|
4979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4980 | (eval $ac_try) 2>&5 |
---|
4981 | ac_status=$? |
---|
4982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4983 | (exit $ac_status); }; } && |
---|
4984 | { ac_try='test -s conftest$ac_exeext' |
---|
4985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4986 | (eval $ac_try) 2>&5 |
---|
4987 | ac_status=$? |
---|
4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4989 | (exit $ac_status); }; }; then |
---|
4990 | ac_cv_lib_sdlmain_main=yes |
---|
4991 | else |
---|
4992 | echo "$as_me: failed program was:" >&5 |
---|
4993 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4994 | |
---|
4995 | ac_cv_lib_sdlmain_main=no |
---|
4996 | fi |
---|
4997 | rm -f conftest.err conftest.$ac_objext \ |
---|
4998 | conftest$ac_exeext conftest.$ac_ext |
---|
4999 | LIBS=$ac_check_lib_save_LIBS |
---|
5000 | fi |
---|
5001 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
5002 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
5003 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
5004 | FOUND_sdlmain=yes |
---|
5005 | fi |
---|
5006 | |
---|
5007 | if test x$FOUND_sdlmain = xyes ; then |
---|
5008 | LIBS="$LIBS -lsdlmain" |
---|
5009 | else |
---|
5010 | echo "------------------" |
---|
5011 | echo "SDL library not found." |
---|
5012 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5013 | echo "------------------" |
---|
5014 | exit 1 |
---|
5015 | fi |
---|
5016 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
5017 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
5018 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
5019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5020 | else |
---|
5021 | ac_check_lib_save_LIBS=$LIBS |
---|
5022 | LIBS="-lsdl $LIBS" |
---|
5023 | cat >conftest.$ac_ext <<_ACEOF |
---|
5024 | /* confdefs.h. */ |
---|
5025 | _ACEOF |
---|
5026 | cat confdefs.h >>conftest.$ac_ext |
---|
5027 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5028 | /* end confdefs.h. */ |
---|
5029 | |
---|
5030 | |
---|
5031 | int |
---|
5032 | main () |
---|
5033 | { |
---|
5034 | main (); |
---|
5035 | ; |
---|
5036 | return 0; |
---|
5037 | } |
---|
5038 | _ACEOF |
---|
5039 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5041 | (eval $ac_link) 2>conftest.er1 |
---|
5042 | ac_status=$? |
---|
5043 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5044 | rm -f conftest.er1 |
---|
5045 | cat conftest.err >&5 |
---|
5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5047 | (exit $ac_status); } && |
---|
5048 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5049 | || test ! -s conftest.err' |
---|
5050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5051 | (eval $ac_try) 2>&5 |
---|
5052 | ac_status=$? |
---|
5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5054 | (exit $ac_status); }; } && |
---|
5055 | { ac_try='test -s conftest$ac_exeext' |
---|
5056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5057 | (eval $ac_try) 2>&5 |
---|
5058 | ac_status=$? |
---|
5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5060 | (exit $ac_status); }; }; then |
---|
5061 | ac_cv_lib_sdl_main=yes |
---|
5062 | else |
---|
5063 | echo "$as_me: failed program was:" >&5 |
---|
5064 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5065 | |
---|
5066 | ac_cv_lib_sdl_main=no |
---|
5067 | fi |
---|
5068 | rm -f conftest.err conftest.$ac_objext \ |
---|
5069 | conftest$ac_exeext conftest.$ac_ext |
---|
5070 | LIBS=$ac_check_lib_save_LIBS |
---|
5071 | fi |
---|
5072 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
5073 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
5074 | if test $ac_cv_lib_sdl_main = yes; then |
---|
5075 | FOUND_sdl=yes |
---|
5076 | fi |
---|
5077 | |
---|
5078 | if test x$FOUND_sdl = xyes ; then |
---|
5079 | LIBS="$LIBS -lsdl" |
---|
5080 | else |
---|
5081 | echo "------------------" |
---|
5082 | echo "SDL library not found." |
---|
5083 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5084 | echo "------------------" |
---|
5085 | exit -1 |
---|
5086 | fi |
---|
5087 | |
---|
5088 | ;; |
---|
5089 | #-------# |
---|
5090 | # LINUX # |
---|
5091 | #-------# |
---|
5092 | *-*-linux*) |
---|
5093 | echo "Linux detected" |
---|
5094 | |
---|
5095 | Linux="yes" |
---|
5096 | |
---|
5097 | CPPFLAGS="-I/usr/X11R6/include -I/usr/include/SDL" |
---|
5098 | LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
5099 | # checking gl header |
---|
5100 | |
---|
5101 | for ac_header in GL/gl.h |
---|
5102 | do |
---|
5103 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5105 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5107 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5109 | fi |
---|
5110 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5111 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5112 | else |
---|
5113 | # Is the header compilable? |
---|
5114 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5115 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5116 | cat >conftest.$ac_ext <<_ACEOF |
---|
5117 | /* confdefs.h. */ |
---|
5118 | _ACEOF |
---|
5119 | cat confdefs.h >>conftest.$ac_ext |
---|
5120 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5121 | /* end confdefs.h. */ |
---|
5122 | $ac_includes_default |
---|
5123 | #include <$ac_header> |
---|
5124 | _ACEOF |
---|
5125 | rm -f conftest.$ac_objext |
---|
5126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5127 | (eval $ac_compile) 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_objext' |
---|
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_header_compiler=yes |
---|
5148 | else |
---|
5149 | echo "$as_me: failed program was:" >&5 |
---|
5150 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5151 | |
---|
5152 | ac_header_compiler=no |
---|
5153 | fi |
---|
5154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5155 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5156 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5157 | |
---|
5158 | # Is the header present? |
---|
5159 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5160 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5161 | cat >conftest.$ac_ext <<_ACEOF |
---|
5162 | /* confdefs.h. */ |
---|
5163 | _ACEOF |
---|
5164 | cat confdefs.h >>conftest.$ac_ext |
---|
5165 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5166 | /* end confdefs.h. */ |
---|
5167 | #include <$ac_header> |
---|
5168 | _ACEOF |
---|
5169 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5170 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5171 | ac_status=$? |
---|
5172 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5173 | rm -f conftest.er1 |
---|
5174 | cat conftest.err >&5 |
---|
5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5176 | (exit $ac_status); } >/dev/null; then |
---|
5177 | if test -s conftest.err; then |
---|
5178 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5179 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5180 | else |
---|
5181 | ac_cpp_err= |
---|
5182 | fi |
---|
5183 | else |
---|
5184 | ac_cpp_err=yes |
---|
5185 | fi |
---|
5186 | if test -z "$ac_cpp_err"; then |
---|
5187 | ac_header_preproc=yes |
---|
5188 | else |
---|
5189 | echo "$as_me: failed program was:" >&5 |
---|
5190 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5191 | |
---|
5192 | ac_header_preproc=no |
---|
5193 | fi |
---|
5194 | rm -f conftest.err conftest.$ac_ext |
---|
5195 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5196 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5197 | |
---|
5198 | # So? What about this header? |
---|
5199 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5200 | yes:no: ) |
---|
5201 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5202 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5203 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5204 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5205 | ac_header_preproc=yes |
---|
5206 | ;; |
---|
5207 | no:yes:* ) |
---|
5208 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5209 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5210 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5211 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5212 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5213 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5214 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5215 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5216 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5217 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5218 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5219 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5220 | ( |
---|
5221 | cat <<\_ASBOX |
---|
5222 | ## ---------------------------------------------- ## |
---|
5223 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5224 | ## ---------------------------------------------- ## |
---|
5225 | _ASBOX |
---|
5226 | ) | |
---|
5227 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5228 | ;; |
---|
5229 | esac |
---|
5230 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5231 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5232 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5234 | else |
---|
5235 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5236 | fi |
---|
5237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5238 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5239 | |
---|
5240 | fi |
---|
5241 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5242 | cat >>confdefs.h <<_ACEOF |
---|
5243 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5244 | _ACEOF |
---|
5245 | |
---|
5246 | else |
---|
5247 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5248 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5249 | { (exit 1); exit 1; }; } |
---|
5250 | fi |
---|
5251 | |
---|
5252 | done |
---|
5253 | |
---|
5254 | |
---|
5255 | # checking for Unix GL |
---|
5256 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
5257 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
5258 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
5259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5260 | else |
---|
5261 | ac_check_lib_save_LIBS=$LIBS |
---|
5262 | LIBS="-lGL $LIBS" |
---|
5263 | cat >conftest.$ac_ext <<_ACEOF |
---|
5264 | /* confdefs.h. */ |
---|
5265 | _ACEOF |
---|
5266 | cat confdefs.h >>conftest.$ac_ext |
---|
5267 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5268 | /* end confdefs.h. */ |
---|
5269 | |
---|
5270 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5271 | #ifdef __cplusplus |
---|
5272 | extern "C" |
---|
5273 | #endif |
---|
5274 | /* We use char because int might match the return type of a gcc2 |
---|
5275 | builtin and then its argument prototype would still apply. */ |
---|
5276 | char glLoadIdentity (); |
---|
5277 | int |
---|
5278 | main () |
---|
5279 | { |
---|
5280 | glLoadIdentity (); |
---|
5281 | ; |
---|
5282 | return 0; |
---|
5283 | } |
---|
5284 | _ACEOF |
---|
5285 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5287 | (eval $ac_link) 2>conftest.er1 |
---|
5288 | ac_status=$? |
---|
5289 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5290 | rm -f conftest.er1 |
---|
5291 | cat conftest.err >&5 |
---|
5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5293 | (exit $ac_status); } && |
---|
5294 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5295 | || test ! -s conftest.err' |
---|
5296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5297 | (eval $ac_try) 2>&5 |
---|
5298 | ac_status=$? |
---|
5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5300 | (exit $ac_status); }; } && |
---|
5301 | { ac_try='test -s conftest$ac_exeext' |
---|
5302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5303 | (eval $ac_try) 2>&5 |
---|
5304 | ac_status=$? |
---|
5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5306 | (exit $ac_status); }; }; then |
---|
5307 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
5308 | else |
---|
5309 | echo "$as_me: failed program was:" >&5 |
---|
5310 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5311 | |
---|
5312 | ac_cv_lib_GL_glLoadIdentity=no |
---|
5313 | fi |
---|
5314 | rm -f conftest.err conftest.$ac_objext \ |
---|
5315 | conftest$ac_exeext conftest.$ac_ext |
---|
5316 | LIBS=$ac_check_lib_save_LIBS |
---|
5317 | fi |
---|
5318 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
5319 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
5320 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
5321 | FOUND_GL=yes |
---|
5322 | fi |
---|
5323 | |
---|
5324 | if test x$FOUND_GL = xyes ; then |
---|
5325 | LIBS="$LIBS -lGL" |
---|
5326 | else |
---|
5327 | echo "------------------" |
---|
5328 | echo "opengl not found." |
---|
5329 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
5330 | echo "------------------" |
---|
5331 | exit -1 |
---|
5332 | fi |
---|
5333 | |
---|
5334 | # cheking for GLU-header |
---|
5335 | |
---|
5336 | for ac_header in GL/glu.h |
---|
5337 | do |
---|
5338 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5339 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5340 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5341 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5342 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5344 | fi |
---|
5345 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5346 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5347 | else |
---|
5348 | # Is the header compilable? |
---|
5349 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5350 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5351 | cat >conftest.$ac_ext <<_ACEOF |
---|
5352 | /* confdefs.h. */ |
---|
5353 | _ACEOF |
---|
5354 | cat confdefs.h >>conftest.$ac_ext |
---|
5355 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5356 | /* end confdefs.h. */ |
---|
5357 | $ac_includes_default |
---|
5358 | #include <$ac_header> |
---|
5359 | _ACEOF |
---|
5360 | rm -f conftest.$ac_objext |
---|
5361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5362 | (eval $ac_compile) 2>conftest.er1 |
---|
5363 | ac_status=$? |
---|
5364 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5365 | rm -f conftest.er1 |
---|
5366 | cat conftest.err >&5 |
---|
5367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5368 | (exit $ac_status); } && |
---|
5369 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5370 | || test ! -s conftest.err' |
---|
5371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5372 | (eval $ac_try) 2>&5 |
---|
5373 | ac_status=$? |
---|
5374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5375 | (exit $ac_status); }; } && |
---|
5376 | { ac_try='test -s conftest.$ac_objext' |
---|
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); }; }; then |
---|
5382 | ac_header_compiler=yes |
---|
5383 | else |
---|
5384 | echo "$as_me: failed program was:" >&5 |
---|
5385 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5386 | |
---|
5387 | ac_header_compiler=no |
---|
5388 | fi |
---|
5389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5390 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5391 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5392 | |
---|
5393 | # Is the header present? |
---|
5394 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5395 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5396 | cat >conftest.$ac_ext <<_ACEOF |
---|
5397 | /* confdefs.h. */ |
---|
5398 | _ACEOF |
---|
5399 | cat confdefs.h >>conftest.$ac_ext |
---|
5400 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5401 | /* end confdefs.h. */ |
---|
5402 | #include <$ac_header> |
---|
5403 | _ACEOF |
---|
5404 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5405 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5406 | ac_status=$? |
---|
5407 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5408 | rm -f conftest.er1 |
---|
5409 | cat conftest.err >&5 |
---|
5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5411 | (exit $ac_status); } >/dev/null; then |
---|
5412 | if test -s conftest.err; then |
---|
5413 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5414 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5415 | else |
---|
5416 | ac_cpp_err= |
---|
5417 | fi |
---|
5418 | else |
---|
5419 | ac_cpp_err=yes |
---|
5420 | fi |
---|
5421 | if test -z "$ac_cpp_err"; then |
---|
5422 | ac_header_preproc=yes |
---|
5423 | else |
---|
5424 | echo "$as_me: failed program was:" >&5 |
---|
5425 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5426 | |
---|
5427 | ac_header_preproc=no |
---|
5428 | fi |
---|
5429 | rm -f conftest.err conftest.$ac_ext |
---|
5430 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5431 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5432 | |
---|
5433 | # So? What about this header? |
---|
5434 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5435 | yes:no: ) |
---|
5436 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5437 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5438 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5439 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5440 | ac_header_preproc=yes |
---|
5441 | ;; |
---|
5442 | no:yes:* ) |
---|
5443 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5444 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5445 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5446 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5447 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5448 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5449 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5450 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5452 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5453 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5454 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5455 | ( |
---|
5456 | cat <<\_ASBOX |
---|
5457 | ## ---------------------------------------------- ## |
---|
5458 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5459 | ## ---------------------------------------------- ## |
---|
5460 | _ASBOX |
---|
5461 | ) | |
---|
5462 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5463 | ;; |
---|
5464 | esac |
---|
5465 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5467 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5469 | else |
---|
5470 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5471 | fi |
---|
5472 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5473 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5474 | |
---|
5475 | fi |
---|
5476 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5477 | cat >>confdefs.h <<_ACEOF |
---|
5478 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5479 | _ACEOF |
---|
5480 | |
---|
5481 | else |
---|
5482 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5483 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5484 | { (exit 1); exit 1; }; } |
---|
5485 | fi |
---|
5486 | |
---|
5487 | done |
---|
5488 | |
---|
5489 | |
---|
5490 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
5491 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
5492 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
5493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5494 | else |
---|
5495 | ac_check_lib_save_LIBS=$LIBS |
---|
5496 | LIBS="-lGLU $LIBS" |
---|
5497 | cat >conftest.$ac_ext <<_ACEOF |
---|
5498 | /* confdefs.h. */ |
---|
5499 | _ACEOF |
---|
5500 | cat confdefs.h >>conftest.$ac_ext |
---|
5501 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5502 | /* end confdefs.h. */ |
---|
5503 | |
---|
5504 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5505 | #ifdef __cplusplus |
---|
5506 | extern "C" |
---|
5507 | #endif |
---|
5508 | /* We use char because int might match the return type of a gcc2 |
---|
5509 | builtin and then its argument prototype would still apply. */ |
---|
5510 | char gluProject (); |
---|
5511 | int |
---|
5512 | main () |
---|
5513 | { |
---|
5514 | gluProject (); |
---|
5515 | ; |
---|
5516 | return 0; |
---|
5517 | } |
---|
5518 | _ACEOF |
---|
5519 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5521 | (eval $ac_link) 2>conftest.er1 |
---|
5522 | ac_status=$? |
---|
5523 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5524 | rm -f conftest.er1 |
---|
5525 | cat conftest.err >&5 |
---|
5526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5527 | (exit $ac_status); } && |
---|
5528 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5529 | || test ! -s conftest.err' |
---|
5530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5531 | (eval $ac_try) 2>&5 |
---|
5532 | ac_status=$? |
---|
5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5534 | (exit $ac_status); }; } && |
---|
5535 | { ac_try='test -s conftest$ac_exeext' |
---|
5536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5537 | (eval $ac_try) 2>&5 |
---|
5538 | ac_status=$? |
---|
5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5540 | (exit $ac_status); }; }; then |
---|
5541 | ac_cv_lib_GLU_gluProject=yes |
---|
5542 | else |
---|
5543 | echo "$as_me: failed program was:" >&5 |
---|
5544 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5545 | |
---|
5546 | ac_cv_lib_GLU_gluProject=no |
---|
5547 | fi |
---|
5548 | rm -f conftest.err conftest.$ac_objext \ |
---|
5549 | conftest$ac_exeext conftest.$ac_ext |
---|
5550 | LIBS=$ac_check_lib_save_LIBS |
---|
5551 | fi |
---|
5552 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
5553 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
5554 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
5555 | FOUND_GLU=yes |
---|
5556 | fi |
---|
5557 | |
---|
5558 | if test x$FOUND_GLU = xyes ; then |
---|
5559 | LIBS="$LIBS -lGLU" |
---|
5560 | else |
---|
5561 | echo "------------------" |
---|
5562 | echo "GLU library not found." |
---|
5563 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5564 | echo "------------------" |
---|
5565 | exit -1 |
---|
5566 | fi |
---|
5567 | |
---|
5568 | # checking for SDL-headers |
---|
5569 | |
---|
5570 | for ac_header in SDL.h |
---|
5571 | do |
---|
5572 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5573 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5574 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5578 | fi |
---|
5579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5580 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5581 | else |
---|
5582 | # Is the header compilable? |
---|
5583 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5584 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5585 | cat >conftest.$ac_ext <<_ACEOF |
---|
5586 | /* confdefs.h. */ |
---|
5587 | _ACEOF |
---|
5588 | cat confdefs.h >>conftest.$ac_ext |
---|
5589 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5590 | /* end confdefs.h. */ |
---|
5591 | $ac_includes_default |
---|
5592 | #include <$ac_header> |
---|
5593 | _ACEOF |
---|
5594 | rm -f conftest.$ac_objext |
---|
5595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5596 | (eval $ac_compile) 2>conftest.er1 |
---|
5597 | ac_status=$? |
---|
5598 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5599 | rm -f conftest.er1 |
---|
5600 | cat conftest.err >&5 |
---|
5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5602 | (exit $ac_status); } && |
---|
5603 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5604 | || test ! -s conftest.err' |
---|
5605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5606 | (eval $ac_try) 2>&5 |
---|
5607 | ac_status=$? |
---|
5608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5609 | (exit $ac_status); }; } && |
---|
5610 | { ac_try='test -s conftest.$ac_objext' |
---|
5611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5612 | (eval $ac_try) 2>&5 |
---|
5613 | ac_status=$? |
---|
5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5615 | (exit $ac_status); }; }; then |
---|
5616 | ac_header_compiler=yes |
---|
5617 | else |
---|
5618 | echo "$as_me: failed program was:" >&5 |
---|
5619 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5620 | |
---|
5621 | ac_header_compiler=no |
---|
5622 | fi |
---|
5623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5624 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5625 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5626 | |
---|
5627 | # Is the header present? |
---|
5628 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5629 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5630 | cat >conftest.$ac_ext <<_ACEOF |
---|
5631 | /* confdefs.h. */ |
---|
5632 | _ACEOF |
---|
5633 | cat confdefs.h >>conftest.$ac_ext |
---|
5634 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5635 | /* end confdefs.h. */ |
---|
5636 | #include <$ac_header> |
---|
5637 | _ACEOF |
---|
5638 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5639 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5640 | ac_status=$? |
---|
5641 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5642 | rm -f conftest.er1 |
---|
5643 | cat conftest.err >&5 |
---|
5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5645 | (exit $ac_status); } >/dev/null; then |
---|
5646 | if test -s conftest.err; then |
---|
5647 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5648 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5649 | else |
---|
5650 | ac_cpp_err= |
---|
5651 | fi |
---|
5652 | else |
---|
5653 | ac_cpp_err=yes |
---|
5654 | fi |
---|
5655 | if test -z "$ac_cpp_err"; then |
---|
5656 | ac_header_preproc=yes |
---|
5657 | else |
---|
5658 | echo "$as_me: failed program was:" >&5 |
---|
5659 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5660 | |
---|
5661 | ac_header_preproc=no |
---|
5662 | fi |
---|
5663 | rm -f conftest.err conftest.$ac_ext |
---|
5664 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5665 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5666 | |
---|
5667 | # So? What about this header? |
---|
5668 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5669 | yes:no: ) |
---|
5670 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5671 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5672 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5673 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5674 | ac_header_preproc=yes |
---|
5675 | ;; |
---|
5676 | no:yes:* ) |
---|
5677 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5678 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5679 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5680 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5681 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5682 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5683 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5684 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5686 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5687 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5688 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5689 | ( |
---|
5690 | cat <<\_ASBOX |
---|
5691 | ## ---------------------------------------------- ## |
---|
5692 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5693 | ## ---------------------------------------------- ## |
---|
5694 | _ASBOX |
---|
5695 | ) | |
---|
5696 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5697 | ;; |
---|
5698 | esac |
---|
5699 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5700 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5701 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5703 | else |
---|
5704 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5705 | fi |
---|
5706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5707 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5708 | |
---|
5709 | fi |
---|
5710 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5711 | cat >>confdefs.h <<_ACEOF |
---|
5712 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5713 | _ACEOF |
---|
5714 | |
---|
5715 | else |
---|
5716 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
5717 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
5718 | { (exit 1); exit 1; }; } |
---|
5719 | fi |
---|
5720 | |
---|
5721 | done |
---|
5722 | |
---|
5723 | |
---|
5724 | # checking for SDL-lib |
---|
5725 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
5726 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
5727 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
5728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5729 | else |
---|
5730 | ac_check_lib_save_LIBS=$LIBS |
---|
5731 | LIBS="-lSDL $LIBS" |
---|
5732 | cat >conftest.$ac_ext <<_ACEOF |
---|
5733 | /* confdefs.h. */ |
---|
5734 | _ACEOF |
---|
5735 | cat confdefs.h >>conftest.$ac_ext |
---|
5736 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5737 | /* end confdefs.h. */ |
---|
5738 | |
---|
5739 | |
---|
5740 | int |
---|
5741 | main () |
---|
5742 | { |
---|
5743 | main (); |
---|
5744 | ; |
---|
5745 | return 0; |
---|
5746 | } |
---|
5747 | _ACEOF |
---|
5748 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5750 | (eval $ac_link) 2>conftest.er1 |
---|
5751 | ac_status=$? |
---|
5752 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5753 | rm -f conftest.er1 |
---|
5754 | cat conftest.err >&5 |
---|
5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5756 | (exit $ac_status); } && |
---|
5757 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5758 | || test ! -s conftest.err' |
---|
5759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5760 | (eval $ac_try) 2>&5 |
---|
5761 | ac_status=$? |
---|
5762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5763 | (exit $ac_status); }; } && |
---|
5764 | { ac_try='test -s conftest$ac_exeext' |
---|
5765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5766 | (eval $ac_try) 2>&5 |
---|
5767 | ac_status=$? |
---|
5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5769 | (exit $ac_status); }; }; then |
---|
5770 | ac_cv_lib_SDL_main=yes |
---|
5771 | else |
---|
5772 | echo "$as_me: failed program was:" >&5 |
---|
5773 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5774 | |
---|
5775 | ac_cv_lib_SDL_main=no |
---|
5776 | fi |
---|
5777 | rm -f conftest.err conftest.$ac_objext \ |
---|
5778 | conftest$ac_exeext conftest.$ac_ext |
---|
5779 | LIBS=$ac_check_lib_save_LIBS |
---|
5780 | fi |
---|
5781 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
5782 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
5783 | if test $ac_cv_lib_SDL_main = yes; then |
---|
5784 | FOUND_SDL=yes |
---|
5785 | fi |
---|
5786 | |
---|
5787 | if test x$FOUND_SDL = xyes ; then |
---|
5788 | LIBS="$LIBS -lSDL" |
---|
5789 | else |
---|
5790 | echo "------------------" |
---|
5791 | echo "SDL library not found." |
---|
5792 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5793 | echo "------------------" |
---|
5794 | exit -1 |
---|
5795 | fi |
---|
5796 | |
---|
5797 | |
---|
5798 | ## checking for SDL |
---|
5799 | # SDL_VERSION=1.2.7 |
---|
5800 | # AM_PATH_SDL($SDL_VERSION, |
---|
5801 | # :, |
---|
5802 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
5803 | # ) |
---|
5804 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
5805 | # LIBS="$LIBS $SDL_LIBS" |
---|
5806 | ;; |
---|
5807 | #-----------# |
---|
5808 | # MAC -OS X # |
---|
5809 | #-----------# |
---|
5810 | *darwin*) |
---|
5811 | echo "OS X detected" |
---|
5812 | |
---|
5813 | osX="yes" |
---|
5814 | |
---|
5815 | CPPFLAGS="-I/sw/include -I/sw/include/SDL $CPPFLAGS" |
---|
5816 | # checking gl header |
---|
5817 | |
---|
5818 | for ac_header in OpenGL/gl.h |
---|
5819 | do |
---|
5820 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5821 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5822 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5823 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5824 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5826 | fi |
---|
5827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5828 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5829 | else |
---|
5830 | # Is the header compilable? |
---|
5831 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5832 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5833 | cat >conftest.$ac_ext <<_ACEOF |
---|
5834 | /* confdefs.h. */ |
---|
5835 | _ACEOF |
---|
5836 | cat confdefs.h >>conftest.$ac_ext |
---|
5837 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5838 | /* end confdefs.h. */ |
---|
5839 | $ac_includes_default |
---|
5840 | #include <$ac_header> |
---|
5841 | _ACEOF |
---|
5842 | rm -f conftest.$ac_objext |
---|
5843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5844 | (eval $ac_compile) 2>conftest.er1 |
---|
5845 | ac_status=$? |
---|
5846 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5847 | rm -f conftest.er1 |
---|
5848 | cat conftest.err >&5 |
---|
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5850 | (exit $ac_status); } && |
---|
5851 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5852 | || test ! -s conftest.err' |
---|
5853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5854 | (eval $ac_try) 2>&5 |
---|
5855 | ac_status=$? |
---|
5856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5857 | (exit $ac_status); }; } && |
---|
5858 | { ac_try='test -s conftest.$ac_objext' |
---|
5859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5860 | (eval $ac_try) 2>&5 |
---|
5861 | ac_status=$? |
---|
5862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5863 | (exit $ac_status); }; }; then |
---|
5864 | ac_header_compiler=yes |
---|
5865 | else |
---|
5866 | echo "$as_me: failed program was:" >&5 |
---|
5867 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5868 | |
---|
5869 | ac_header_compiler=no |
---|
5870 | fi |
---|
5871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5872 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5873 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5874 | |
---|
5875 | # Is the header present? |
---|
5876 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5877 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5878 | cat >conftest.$ac_ext <<_ACEOF |
---|
5879 | /* confdefs.h. */ |
---|
5880 | _ACEOF |
---|
5881 | cat confdefs.h >>conftest.$ac_ext |
---|
5882 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5883 | /* end confdefs.h. */ |
---|
5884 | #include <$ac_header> |
---|
5885 | _ACEOF |
---|
5886 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5887 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5888 | ac_status=$? |
---|
5889 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5890 | rm -f conftest.er1 |
---|
5891 | cat conftest.err >&5 |
---|
5892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5893 | (exit $ac_status); } >/dev/null; then |
---|
5894 | if test -s conftest.err; then |
---|
5895 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5896 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5897 | else |
---|
5898 | ac_cpp_err= |
---|
5899 | fi |
---|
5900 | else |
---|
5901 | ac_cpp_err=yes |
---|
5902 | fi |
---|
5903 | if test -z "$ac_cpp_err"; then |
---|
5904 | ac_header_preproc=yes |
---|
5905 | else |
---|
5906 | echo "$as_me: failed program was:" >&5 |
---|
5907 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5908 | |
---|
5909 | ac_header_preproc=no |
---|
5910 | fi |
---|
5911 | rm -f conftest.err conftest.$ac_ext |
---|
5912 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5913 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5914 | |
---|
5915 | # So? What about this header? |
---|
5916 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5917 | yes:no: ) |
---|
5918 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5919 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5921 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5922 | ac_header_preproc=yes |
---|
5923 | ;; |
---|
5924 | no:yes:* ) |
---|
5925 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5926 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5927 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5928 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5929 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5930 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5931 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5932 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5934 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5935 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5936 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5937 | ( |
---|
5938 | cat <<\_ASBOX |
---|
5939 | ## ---------------------------------------------- ## |
---|
5940 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5941 | ## ---------------------------------------------- ## |
---|
5942 | _ASBOX |
---|
5943 | ) | |
---|
5944 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5945 | ;; |
---|
5946 | esac |
---|
5947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5951 | else |
---|
5952 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5953 | fi |
---|
5954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5956 | |
---|
5957 | fi |
---|
5958 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5959 | cat >>confdefs.h <<_ACEOF |
---|
5960 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5961 | _ACEOF |
---|
5962 | |
---|
5963 | else |
---|
5964 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5965 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5966 | { (exit 1); exit 1; }; } |
---|
5967 | fi |
---|
5968 | |
---|
5969 | done |
---|
5970 | |
---|
5971 | # cheking for GLU-header |
---|
5972 | |
---|
5973 | for ac_header in OpenGL/glu.h |
---|
5974 | do |
---|
5975 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5976 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5981 | fi |
---|
5982 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5983 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5984 | else |
---|
5985 | # Is the header compilable? |
---|
5986 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5987 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5988 | cat >conftest.$ac_ext <<_ACEOF |
---|
5989 | /* confdefs.h. */ |
---|
5990 | _ACEOF |
---|
5991 | cat confdefs.h >>conftest.$ac_ext |
---|
5992 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5993 | /* end confdefs.h. */ |
---|
5994 | $ac_includes_default |
---|
5995 | #include <$ac_header> |
---|
5996 | _ACEOF |
---|
5997 | rm -f conftest.$ac_objext |
---|
5998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5999 | (eval $ac_compile) 2>conftest.er1 |
---|
6000 | ac_status=$? |
---|
6001 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6002 | rm -f conftest.er1 |
---|
6003 | cat conftest.err >&5 |
---|
6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6005 | (exit $ac_status); } && |
---|
6006 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6007 | || test ! -s conftest.err' |
---|
6008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6009 | (eval $ac_try) 2>&5 |
---|
6010 | ac_status=$? |
---|
6011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6012 | (exit $ac_status); }; } && |
---|
6013 | { ac_try='test -s conftest.$ac_objext' |
---|
6014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6015 | (eval $ac_try) 2>&5 |
---|
6016 | ac_status=$? |
---|
6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6018 | (exit $ac_status); }; }; then |
---|
6019 | ac_header_compiler=yes |
---|
6020 | else |
---|
6021 | echo "$as_me: failed program was:" >&5 |
---|
6022 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6023 | |
---|
6024 | ac_header_compiler=no |
---|
6025 | fi |
---|
6026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6027 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6028 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6029 | |
---|
6030 | # Is the header present? |
---|
6031 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6032 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6033 | cat >conftest.$ac_ext <<_ACEOF |
---|
6034 | /* confdefs.h. */ |
---|
6035 | _ACEOF |
---|
6036 | cat confdefs.h >>conftest.$ac_ext |
---|
6037 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6038 | /* end confdefs.h. */ |
---|
6039 | #include <$ac_header> |
---|
6040 | _ACEOF |
---|
6041 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6042 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6043 | ac_status=$? |
---|
6044 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6045 | rm -f conftest.er1 |
---|
6046 | cat conftest.err >&5 |
---|
6047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6048 | (exit $ac_status); } >/dev/null; then |
---|
6049 | if test -s conftest.err; then |
---|
6050 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6051 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6052 | else |
---|
6053 | ac_cpp_err= |
---|
6054 | fi |
---|
6055 | else |
---|
6056 | ac_cpp_err=yes |
---|
6057 | fi |
---|
6058 | if test -z "$ac_cpp_err"; then |
---|
6059 | ac_header_preproc=yes |
---|
6060 | else |
---|
6061 | echo "$as_me: failed program was:" >&5 |
---|
6062 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6063 | |
---|
6064 | ac_header_preproc=no |
---|
6065 | fi |
---|
6066 | rm -f conftest.err conftest.$ac_ext |
---|
6067 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6068 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6069 | |
---|
6070 | # So? What about this header? |
---|
6071 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6072 | yes:no: ) |
---|
6073 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6074 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6075 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6076 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6077 | ac_header_preproc=yes |
---|
6078 | ;; |
---|
6079 | no:yes:* ) |
---|
6080 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6081 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6082 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6083 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6084 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6085 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6086 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6087 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6089 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6090 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6091 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6092 | ( |
---|
6093 | cat <<\_ASBOX |
---|
6094 | ## ---------------------------------------------- ## |
---|
6095 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6096 | ## ---------------------------------------------- ## |
---|
6097 | _ASBOX |
---|
6098 | ) | |
---|
6099 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6100 | ;; |
---|
6101 | esac |
---|
6102 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6103 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6106 | else |
---|
6107 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6108 | fi |
---|
6109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6110 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6111 | |
---|
6112 | fi |
---|
6113 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6114 | cat >>confdefs.h <<_ACEOF |
---|
6115 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6116 | _ACEOF |
---|
6117 | |
---|
6118 | else |
---|
6119 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6120 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6121 | { (exit 1); exit 1; }; } |
---|
6122 | fi |
---|
6123 | |
---|
6124 | done |
---|
6125 | |
---|
6126 | |
---|
6127 | LIBS="$LIBS -framework OpenGL" |
---|
6128 | |
---|
6129 | SDL_CFLAGS=`sdl-config --cflags` |
---|
6130 | SDL_LIBS=`sdl-config --libs` |
---|
6131 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
6132 | LIBS="$LIBS $SDL_LIBS" |
---|
6133 | |
---|
6134 | |
---|
6135 | # checking for SDL-headers |
---|
6136 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
6137 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
6138 | |
---|
6139 | ## checking for SDL |
---|
6140 | # SDL_VERSION=1.2.7 |
---|
6141 | # AM_PATH_SDL($SDL_VERSION, |
---|
6142 | # :, |
---|
6143 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
6144 | # ) |
---|
6145 | |
---|
6146 | |
---|
6147 | ;; |
---|
6148 | |
---|
6149 | *) |
---|
6150 | ;; |
---|
6151 | esac |
---|
6152 | |
---|
6153 | |
---|
6154 | |
---|
6155 | ################################### |
---|
6156 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
6157 | ################################### |
---|
6158 | |
---|
6159 | #---------# |
---|
6160 | # SDL_ttf # |
---|
6161 | #---------# |
---|
6162 | # checking for SDL_ttf-headers |
---|
6163 | |
---|
6164 | for ac_header in SDL_ttf.h |
---|
6165 | do |
---|
6166 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6168 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6169 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6170 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6172 | fi |
---|
6173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6174 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6175 | else |
---|
6176 | # Is the header compilable? |
---|
6177 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6178 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6179 | cat >conftest.$ac_ext <<_ACEOF |
---|
6180 | /* confdefs.h. */ |
---|
6181 | _ACEOF |
---|
6182 | cat confdefs.h >>conftest.$ac_ext |
---|
6183 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6184 | /* end confdefs.h. */ |
---|
6185 | $ac_includes_default |
---|
6186 | #include <$ac_header> |
---|
6187 | _ACEOF |
---|
6188 | rm -f conftest.$ac_objext |
---|
6189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6190 | (eval $ac_compile) 2>conftest.er1 |
---|
6191 | ac_status=$? |
---|
6192 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6193 | rm -f conftest.er1 |
---|
6194 | cat conftest.err >&5 |
---|
6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6196 | (exit $ac_status); } && |
---|
6197 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6198 | || test ! -s conftest.err' |
---|
6199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6200 | (eval $ac_try) 2>&5 |
---|
6201 | ac_status=$? |
---|
6202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6203 | (exit $ac_status); }; } && |
---|
6204 | { ac_try='test -s conftest.$ac_objext' |
---|
6205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6206 | (eval $ac_try) 2>&5 |
---|
6207 | ac_status=$? |
---|
6208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6209 | (exit $ac_status); }; }; then |
---|
6210 | ac_header_compiler=yes |
---|
6211 | else |
---|
6212 | echo "$as_me: failed program was:" >&5 |
---|
6213 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6214 | |
---|
6215 | ac_header_compiler=no |
---|
6216 | fi |
---|
6217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6218 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6219 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6220 | |
---|
6221 | # Is the header present? |
---|
6222 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6223 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6224 | cat >conftest.$ac_ext <<_ACEOF |
---|
6225 | /* confdefs.h. */ |
---|
6226 | _ACEOF |
---|
6227 | cat confdefs.h >>conftest.$ac_ext |
---|
6228 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6229 | /* end confdefs.h. */ |
---|
6230 | #include <$ac_header> |
---|
6231 | _ACEOF |
---|
6232 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6233 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6234 | ac_status=$? |
---|
6235 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6236 | rm -f conftest.er1 |
---|
6237 | cat conftest.err >&5 |
---|
6238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6239 | (exit $ac_status); } >/dev/null; then |
---|
6240 | if test -s conftest.err; then |
---|
6241 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6242 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6243 | else |
---|
6244 | ac_cpp_err= |
---|
6245 | fi |
---|
6246 | else |
---|
6247 | ac_cpp_err=yes |
---|
6248 | fi |
---|
6249 | if test -z "$ac_cpp_err"; then |
---|
6250 | ac_header_preproc=yes |
---|
6251 | else |
---|
6252 | echo "$as_me: failed program was:" >&5 |
---|
6253 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6254 | |
---|
6255 | ac_header_preproc=no |
---|
6256 | fi |
---|
6257 | rm -f conftest.err conftest.$ac_ext |
---|
6258 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6259 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6260 | |
---|
6261 | # So? What about this header? |
---|
6262 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6263 | yes:no: ) |
---|
6264 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6265 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6267 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6268 | ac_header_preproc=yes |
---|
6269 | ;; |
---|
6270 | no:yes:* ) |
---|
6271 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6272 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6273 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6274 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6275 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6276 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6277 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6278 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6279 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6280 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6281 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6282 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6283 | ( |
---|
6284 | cat <<\_ASBOX |
---|
6285 | ## ---------------------------------------------- ## |
---|
6286 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6287 | ## ---------------------------------------------- ## |
---|
6288 | _ASBOX |
---|
6289 | ) | |
---|
6290 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6291 | ;; |
---|
6292 | esac |
---|
6293 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6297 | else |
---|
6298 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6299 | fi |
---|
6300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6302 | |
---|
6303 | fi |
---|
6304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6305 | cat >>confdefs.h <<_ACEOF |
---|
6306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6307 | _ACEOF |
---|
6308 | |
---|
6309 | else |
---|
6310 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
6311 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
6312 | { (exit 1); exit 1; }; } |
---|
6313 | fi |
---|
6314 | |
---|
6315 | done |
---|
6316 | |
---|
6317 | #fi |
---|
6318 | # checking for SDL_ttf-lib |
---|
6319 | echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5 |
---|
6320 | echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6 |
---|
6321 | if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then |
---|
6322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6323 | else |
---|
6324 | ac_check_lib_save_LIBS=$LIBS |
---|
6325 | LIBS="-lSDL_ttf $LIBS" |
---|
6326 | cat >conftest.$ac_ext <<_ACEOF |
---|
6327 | /* confdefs.h. */ |
---|
6328 | _ACEOF |
---|
6329 | cat confdefs.h >>conftest.$ac_ext |
---|
6330 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6331 | /* end confdefs.h. */ |
---|
6332 | |
---|
6333 | |
---|
6334 | int |
---|
6335 | main () |
---|
6336 | { |
---|
6337 | main (); |
---|
6338 | ; |
---|
6339 | return 0; |
---|
6340 | } |
---|
6341 | _ACEOF |
---|
6342 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6344 | (eval $ac_link) 2>conftest.er1 |
---|
6345 | ac_status=$? |
---|
6346 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6347 | rm -f conftest.er1 |
---|
6348 | cat conftest.err >&5 |
---|
6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6350 | (exit $ac_status); } && |
---|
6351 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6352 | || test ! -s conftest.err' |
---|
6353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6354 | (eval $ac_try) 2>&5 |
---|
6355 | ac_status=$? |
---|
6356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6357 | (exit $ac_status); }; } && |
---|
6358 | { ac_try='test -s conftest$ac_exeext' |
---|
6359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6360 | (eval $ac_try) 2>&5 |
---|
6361 | ac_status=$? |
---|
6362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6363 | (exit $ac_status); }; }; then |
---|
6364 | ac_cv_lib_SDL_ttf_main=yes |
---|
6365 | else |
---|
6366 | echo "$as_me: failed program was:" >&5 |
---|
6367 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6368 | |
---|
6369 | ac_cv_lib_SDL_ttf_main=no |
---|
6370 | fi |
---|
6371 | rm -f conftest.err conftest.$ac_objext \ |
---|
6372 | conftest$ac_exeext conftest.$ac_ext |
---|
6373 | LIBS=$ac_check_lib_save_LIBS |
---|
6374 | fi |
---|
6375 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5 |
---|
6376 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6 |
---|
6377 | if test $ac_cv_lib_SDL_ttf_main = yes; then |
---|
6378 | FOUND_SDL_ttf=yes |
---|
6379 | fi |
---|
6380 | |
---|
6381 | if test x$FOUND_SDL_ttf = xyes ; then |
---|
6382 | LIBS="$LIBS -lSDL_ttf" |
---|
6383 | else |
---|
6384 | echo "------------------" |
---|
6385 | echo "SDL_ttf library not found." |
---|
6386 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
6387 | echo "------------------" |
---|
6388 | exit -1 |
---|
6389 | fi |
---|
6390 | |
---|
6391 | #-----------# |
---|
6392 | # SDL_Image # |
---|
6393 | #-----------# |
---|
6394 | # checking for SDL_image-headers |
---|
6395 | |
---|
6396 | for ac_header in SDL_image.h |
---|
6397 | do |
---|
6398 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6399 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6400 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6404 | fi |
---|
6405 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6406 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6407 | else |
---|
6408 | # Is the header compilable? |
---|
6409 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6410 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6411 | cat >conftest.$ac_ext <<_ACEOF |
---|
6412 | /* confdefs.h. */ |
---|
6413 | _ACEOF |
---|
6414 | cat confdefs.h >>conftest.$ac_ext |
---|
6415 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6416 | /* end confdefs.h. */ |
---|
6417 | $ac_includes_default |
---|
6418 | #include <$ac_header> |
---|
6419 | _ACEOF |
---|
6420 | rm -f conftest.$ac_objext |
---|
6421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6422 | (eval $ac_compile) 2>conftest.er1 |
---|
6423 | ac_status=$? |
---|
6424 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6425 | rm -f conftest.er1 |
---|
6426 | cat conftest.err >&5 |
---|
6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6428 | (exit $ac_status); } && |
---|
6429 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6430 | || test ! -s conftest.err' |
---|
6431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6432 | (eval $ac_try) 2>&5 |
---|
6433 | ac_status=$? |
---|
6434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6435 | (exit $ac_status); }; } && |
---|
6436 | { ac_try='test -s conftest.$ac_objext' |
---|
6437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6438 | (eval $ac_try) 2>&5 |
---|
6439 | ac_status=$? |
---|
6440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6441 | (exit $ac_status); }; }; then |
---|
6442 | ac_header_compiler=yes |
---|
6443 | else |
---|
6444 | echo "$as_me: failed program was:" >&5 |
---|
6445 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6446 | |
---|
6447 | ac_header_compiler=no |
---|
6448 | fi |
---|
6449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6450 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6451 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6452 | |
---|
6453 | # Is the header present? |
---|
6454 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6455 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6456 | cat >conftest.$ac_ext <<_ACEOF |
---|
6457 | /* confdefs.h. */ |
---|
6458 | _ACEOF |
---|
6459 | cat confdefs.h >>conftest.$ac_ext |
---|
6460 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6461 | /* end confdefs.h. */ |
---|
6462 | #include <$ac_header> |
---|
6463 | _ACEOF |
---|
6464 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6465 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6466 | ac_status=$? |
---|
6467 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6468 | rm -f conftest.er1 |
---|
6469 | cat conftest.err >&5 |
---|
6470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6471 | (exit $ac_status); } >/dev/null; then |
---|
6472 | if test -s conftest.err; then |
---|
6473 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6475 | else |
---|
6476 | ac_cpp_err= |
---|
6477 | fi |
---|
6478 | else |
---|
6479 | ac_cpp_err=yes |
---|
6480 | fi |
---|
6481 | if test -z "$ac_cpp_err"; then |
---|
6482 | ac_header_preproc=yes |
---|
6483 | else |
---|
6484 | echo "$as_me: failed program was:" >&5 |
---|
6485 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6486 | |
---|
6487 | ac_header_preproc=no |
---|
6488 | fi |
---|
6489 | rm -f conftest.err conftest.$ac_ext |
---|
6490 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6491 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6492 | |
---|
6493 | # So? What about this header? |
---|
6494 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6495 | yes:no: ) |
---|
6496 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6497 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6498 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6499 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6500 | ac_header_preproc=yes |
---|
6501 | ;; |
---|
6502 | no:yes:* ) |
---|
6503 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6504 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6505 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6506 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6507 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6508 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6509 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6510 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6512 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6513 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6514 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6515 | ( |
---|
6516 | cat <<\_ASBOX |
---|
6517 | ## ---------------------------------------------- ## |
---|
6518 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6519 | ## ---------------------------------------------- ## |
---|
6520 | _ASBOX |
---|
6521 | ) | |
---|
6522 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6523 | ;; |
---|
6524 | esac |
---|
6525 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6526 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6529 | else |
---|
6530 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6531 | fi |
---|
6532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6533 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6534 | |
---|
6535 | fi |
---|
6536 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6537 | cat >>confdefs.h <<_ACEOF |
---|
6538 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6539 | _ACEOF |
---|
6540 | |
---|
6541 | else |
---|
6542 | echo "sdl_image header not found."; def_sdl_image=no; exit -1 |
---|
6543 | fi |
---|
6544 | |
---|
6545 | done |
---|
6546 | |
---|
6547 | # checking for SDL_image-lib |
---|
6548 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
6549 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
6550 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
6551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6552 | else |
---|
6553 | ac_check_lib_save_LIBS=$LIBS |
---|
6554 | LIBS="-lSDL_image $LIBS" |
---|
6555 | cat >conftest.$ac_ext <<_ACEOF |
---|
6556 | /* confdefs.h. */ |
---|
6557 | _ACEOF |
---|
6558 | cat confdefs.h >>conftest.$ac_ext |
---|
6559 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6560 | /* end confdefs.h. */ |
---|
6561 | |
---|
6562 | |
---|
6563 | int |
---|
6564 | main () |
---|
6565 | { |
---|
6566 | main (); |
---|
6567 | ; |
---|
6568 | return 0; |
---|
6569 | } |
---|
6570 | _ACEOF |
---|
6571 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6573 | (eval $ac_link) 2>conftest.er1 |
---|
6574 | ac_status=$? |
---|
6575 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6576 | rm -f conftest.er1 |
---|
6577 | cat conftest.err >&5 |
---|
6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6579 | (exit $ac_status); } && |
---|
6580 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6581 | || test ! -s conftest.err' |
---|
6582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6583 | (eval $ac_try) 2>&5 |
---|
6584 | ac_status=$? |
---|
6585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6586 | (exit $ac_status); }; } && |
---|
6587 | { ac_try='test -s conftest$ac_exeext' |
---|
6588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6589 | (eval $ac_try) 2>&5 |
---|
6590 | ac_status=$? |
---|
6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6592 | (exit $ac_status); }; }; then |
---|
6593 | ac_cv_lib_SDL_image_main=yes |
---|
6594 | else |
---|
6595 | echo "$as_me: failed program was:" >&5 |
---|
6596 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6597 | |
---|
6598 | ac_cv_lib_SDL_image_main=no |
---|
6599 | fi |
---|
6600 | rm -f conftest.err conftest.$ac_objext \ |
---|
6601 | conftest$ac_exeext conftest.$ac_ext |
---|
6602 | LIBS=$ac_check_lib_save_LIBS |
---|
6603 | fi |
---|
6604 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
6605 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
6606 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
6607 | FOUND_SDL_image=yes |
---|
6608 | fi |
---|
6609 | |
---|
6610 | if test x$FOUND_SDL_image = xyes ; then |
---|
6611 | LIBS="$LIBS -lSDL_image" |
---|
6612 | else |
---|
6613 | echo "------------------" |
---|
6614 | echo "SDL_image library not found." |
---|
6615 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
6616 | echo "------------------" |
---|
6617 | exit -1 |
---|
6618 | fi |
---|
6619 | |
---|
6620 | #-----# |
---|
6621 | # GTK # |
---|
6622 | #-----# |
---|
6623 | if test x$def_gtk = xyes; then |
---|
6624 | |
---|
6625 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
6626 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
6627 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
6628 | if `pkg-config --exists gtk+-2.0`; then |
---|
6629 | echo "yes" |
---|
6630 | have_gtk2=yes |
---|
6631 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
6632 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
6633 | |
---|
6634 | cat >>confdefs.h <<_ACEOF |
---|
6635 | #define HAVE_GTK2 1 |
---|
6636 | _ACEOF |
---|
6637 | |
---|
6638 | else |
---|
6639 | echo "no" |
---|
6640 | fi |
---|
6641 | |
---|
6642 | fi |
---|
6643 | |
---|
6644 | |
---|
6645 | |
---|
6646 | |
---|
6647 | if test x$have_gtk2 = xyes; then |
---|
6648 | HAVE_GTK2_TRUE= |
---|
6649 | HAVE_GTK2_FALSE='#' |
---|
6650 | else |
---|
6651 | HAVE_GTK2_TRUE='#' |
---|
6652 | HAVE_GTK2_FALSE= |
---|
6653 | fi |
---|
6654 | |
---|
6655 | |
---|
6656 | #---------# |
---|
6657 | # gThread # |
---|
6658 | #---------# |
---|
6659 | if test x$def_gthread = xyes; then |
---|
6660 | |
---|
6661 | echo "$as_me:$LINENO: checking for gthread" >&5 |
---|
6662 | echo $ECHO_N "checking for gthread... $ECHO_C" >&6 |
---|
6663 | if `pkg-config --exists gthread-2.0`; then |
---|
6664 | echo "yes" |
---|
6665 | have_gthread=yes |
---|
6666 | GTHREAD_LIBS=`pkg-config --libs gthread-2.0` |
---|
6667 | GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0` |
---|
6668 | |
---|
6669 | cat >>confdefs.h <<_ACEOF |
---|
6670 | #define HAVE_GTHREAD 1 |
---|
6671 | _ACEOF |
---|
6672 | |
---|
6673 | else |
---|
6674 | echo "no" |
---|
6675 | fi |
---|
6676 | |
---|
6677 | fi |
---|
6678 | |
---|
6679 | |
---|
6680 | |
---|
6681 | |
---|
6682 | if test x$have_gthread = xyes; then |
---|
6683 | HAVE_GTHREAD_TRUE= |
---|
6684 | HAVE_GTHREAD_FALSE='#' |
---|
6685 | else |
---|
6686 | HAVE_GTHREAD_TRUE='#' |
---|
6687 | HAVE_GTHREAD_FALSE= |
---|
6688 | fi |
---|
6689 | |
---|
6690 | |
---|
6691 | #---------# |
---|
6692 | # libcURL # |
---|
6693 | #---------# |
---|
6694 | if test x$def_curl = xyes; then |
---|
6695 | |
---|
6696 | |
---|
6697 | for ac_header in curl/curl.h |
---|
6698 | do |
---|
6699 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6701 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6702 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6703 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6705 | fi |
---|
6706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6707 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6708 | else |
---|
6709 | # Is the header compilable? |
---|
6710 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6711 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6712 | cat >conftest.$ac_ext <<_ACEOF |
---|
6713 | /* confdefs.h. */ |
---|
6714 | _ACEOF |
---|
6715 | cat confdefs.h >>conftest.$ac_ext |
---|
6716 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6717 | /* end confdefs.h. */ |
---|
6718 | $ac_includes_default |
---|
6719 | #include <$ac_header> |
---|
6720 | _ACEOF |
---|
6721 | rm -f conftest.$ac_objext |
---|
6722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6723 | (eval $ac_compile) 2>conftest.er1 |
---|
6724 | ac_status=$? |
---|
6725 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6726 | rm -f conftest.er1 |
---|
6727 | cat conftest.err >&5 |
---|
6728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6729 | (exit $ac_status); } && |
---|
6730 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6731 | || test ! -s conftest.err' |
---|
6732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6733 | (eval $ac_try) 2>&5 |
---|
6734 | ac_status=$? |
---|
6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6736 | (exit $ac_status); }; } && |
---|
6737 | { ac_try='test -s conftest.$ac_objext' |
---|
6738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6739 | (eval $ac_try) 2>&5 |
---|
6740 | ac_status=$? |
---|
6741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6742 | (exit $ac_status); }; }; then |
---|
6743 | ac_header_compiler=yes |
---|
6744 | else |
---|
6745 | echo "$as_me: failed program was:" >&5 |
---|
6746 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6747 | |
---|
6748 | ac_header_compiler=no |
---|
6749 | fi |
---|
6750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6751 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6752 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6753 | |
---|
6754 | # Is the header present? |
---|
6755 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6756 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6757 | cat >conftest.$ac_ext <<_ACEOF |
---|
6758 | /* confdefs.h. */ |
---|
6759 | _ACEOF |
---|
6760 | cat confdefs.h >>conftest.$ac_ext |
---|
6761 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6762 | /* end confdefs.h. */ |
---|
6763 | #include <$ac_header> |
---|
6764 | _ACEOF |
---|
6765 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6766 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6767 | ac_status=$? |
---|
6768 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6769 | rm -f conftest.er1 |
---|
6770 | cat conftest.err >&5 |
---|
6771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6772 | (exit $ac_status); } >/dev/null; then |
---|
6773 | if test -s conftest.err; then |
---|
6774 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6775 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6776 | else |
---|
6777 | ac_cpp_err= |
---|
6778 | fi |
---|
6779 | else |
---|
6780 | ac_cpp_err=yes |
---|
6781 | fi |
---|
6782 | if test -z "$ac_cpp_err"; then |
---|
6783 | ac_header_preproc=yes |
---|
6784 | else |
---|
6785 | echo "$as_me: failed program was:" >&5 |
---|
6786 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6787 | |
---|
6788 | ac_header_preproc=no |
---|
6789 | fi |
---|
6790 | rm -f conftest.err conftest.$ac_ext |
---|
6791 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6792 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6793 | |
---|
6794 | # So? What about this header? |
---|
6795 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6796 | yes:no: ) |
---|
6797 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6798 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6800 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6801 | ac_header_preproc=yes |
---|
6802 | ;; |
---|
6803 | no:yes:* ) |
---|
6804 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6805 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6806 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6807 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6808 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6809 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6810 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6811 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6812 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6813 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6814 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6815 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6816 | ( |
---|
6817 | cat <<\_ASBOX |
---|
6818 | ## ---------------------------------------------- ## |
---|
6819 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6820 | ## ---------------------------------------------- ## |
---|
6821 | _ASBOX |
---|
6822 | ) | |
---|
6823 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6824 | ;; |
---|
6825 | esac |
---|
6826 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6830 | else |
---|
6831 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6832 | fi |
---|
6833 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6834 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6835 | |
---|
6836 | fi |
---|
6837 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6838 | cat >>confdefs.h <<_ACEOF |
---|
6839 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6840 | _ACEOF |
---|
6841 | curlHeader="yes" |
---|
6842 | else |
---|
6843 | curlHeader="no" |
---|
6844 | fi |
---|
6845 | |
---|
6846 | done |
---|
6847 | |
---|
6848 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
6849 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
6850 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
6851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6852 | else |
---|
6853 | ac_check_lib_save_LIBS=$LIBS |
---|
6854 | LIBS="-lcurl $LIBS" |
---|
6855 | cat >conftest.$ac_ext <<_ACEOF |
---|
6856 | /* confdefs.h. */ |
---|
6857 | _ACEOF |
---|
6858 | cat confdefs.h >>conftest.$ac_ext |
---|
6859 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6860 | /* end confdefs.h. */ |
---|
6861 | |
---|
6862 | |
---|
6863 | int |
---|
6864 | main () |
---|
6865 | { |
---|
6866 | main (); |
---|
6867 | ; |
---|
6868 | return 0; |
---|
6869 | } |
---|
6870 | _ACEOF |
---|
6871 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6873 | (eval $ac_link) 2>conftest.er1 |
---|
6874 | ac_status=$? |
---|
6875 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6876 | rm -f conftest.er1 |
---|
6877 | cat conftest.err >&5 |
---|
6878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6879 | (exit $ac_status); } && |
---|
6880 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6881 | || test ! -s conftest.err' |
---|
6882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6883 | (eval $ac_try) 2>&5 |
---|
6884 | ac_status=$? |
---|
6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6886 | (exit $ac_status); }; } && |
---|
6887 | { ac_try='test -s conftest$ac_exeext' |
---|
6888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6889 | (eval $ac_try) 2>&5 |
---|
6890 | ac_status=$? |
---|
6891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6892 | (exit $ac_status); }; }; then |
---|
6893 | ac_cv_lib_curl_main=yes |
---|
6894 | else |
---|
6895 | echo "$as_me: failed program was:" >&5 |
---|
6896 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6897 | |
---|
6898 | ac_cv_lib_curl_main=no |
---|
6899 | fi |
---|
6900 | rm -f conftest.err conftest.$ac_objext \ |
---|
6901 | conftest$ac_exeext conftest.$ac_ext |
---|
6902 | LIBS=$ac_check_lib_save_LIBS |
---|
6903 | fi |
---|
6904 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
6905 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
6906 | if test $ac_cv_lib_curl_main = yes; then |
---|
6907 | FOUND_curl=yes |
---|
6908 | fi |
---|
6909 | |
---|
6910 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
6911 | have_curl=yes |
---|
6912 | CURL_LIBS=`curl-config --libs` |
---|
6913 | CURLCFLAGS=`curl-config --cflags` |
---|
6914 | |
---|
6915 | cat >>confdefs.h <<_ACEOF |
---|
6916 | #define HAVE_CURL 1 |
---|
6917 | _ACEOF |
---|
6918 | |
---|
6919 | else |
---|
6920 | have_curl=no |
---|
6921 | fi |
---|
6922 | |
---|
6923 | fi |
---|
6924 | |
---|
6925 | |
---|
6926 | |
---|
6927 | |
---|
6928 | if test x$have_curl = xyes; then |
---|
6929 | HAVE_CURL_TRUE= |
---|
6930 | HAVE_CURL_FALSE='#' |
---|
6931 | else |
---|
6932 | HAVE_CURL_TRUE='#' |
---|
6933 | HAVE_CURL_FALSE= |
---|
6934 | fi |
---|
6935 | |
---|
6936 | |
---|
6937 | #---------# |
---|
6938 | # pthread # |
---|
6939 | #---------# |
---|
6940 | if test x$def_pthread = xyes ; then |
---|
6941 | if test x$have_gthread = xyes ; then |
---|
6942 | |
---|
6943 | for ac_header in pthread.h |
---|
6944 | do |
---|
6945 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6951 | fi |
---|
6952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6954 | else |
---|
6955 | # Is the header compilable? |
---|
6956 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6957 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6958 | cat >conftest.$ac_ext <<_ACEOF |
---|
6959 | /* confdefs.h. */ |
---|
6960 | _ACEOF |
---|
6961 | cat confdefs.h >>conftest.$ac_ext |
---|
6962 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6963 | /* end confdefs.h. */ |
---|
6964 | $ac_includes_default |
---|
6965 | #include <$ac_header> |
---|
6966 | _ACEOF |
---|
6967 | rm -f conftest.$ac_objext |
---|
6968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6969 | (eval $ac_compile) 2>conftest.er1 |
---|
6970 | ac_status=$? |
---|
6971 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6972 | rm -f conftest.er1 |
---|
6973 | cat conftest.err >&5 |
---|
6974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6975 | (exit $ac_status); } && |
---|
6976 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6977 | || test ! -s conftest.err' |
---|
6978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6979 | (eval $ac_try) 2>&5 |
---|
6980 | ac_status=$? |
---|
6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6982 | (exit $ac_status); }; } && |
---|
6983 | { ac_try='test -s conftest.$ac_objext' |
---|
6984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6985 | (eval $ac_try) 2>&5 |
---|
6986 | ac_status=$? |
---|
6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6988 | (exit $ac_status); }; }; then |
---|
6989 | ac_header_compiler=yes |
---|
6990 | else |
---|
6991 | echo "$as_me: failed program was:" >&5 |
---|
6992 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6993 | |
---|
6994 | ac_header_compiler=no |
---|
6995 | fi |
---|
6996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6997 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6998 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6999 | |
---|
7000 | # Is the header present? |
---|
7001 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7002 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7003 | cat >conftest.$ac_ext <<_ACEOF |
---|
7004 | /* confdefs.h. */ |
---|
7005 | _ACEOF |
---|
7006 | cat confdefs.h >>conftest.$ac_ext |
---|
7007 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7008 | /* end confdefs.h. */ |
---|
7009 | #include <$ac_header> |
---|
7010 | _ACEOF |
---|
7011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7013 | ac_status=$? |
---|
7014 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7015 | rm -f conftest.er1 |
---|
7016 | cat conftest.err >&5 |
---|
7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7018 | (exit $ac_status); } >/dev/null; then |
---|
7019 | if test -s conftest.err; then |
---|
7020 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7021 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7022 | else |
---|
7023 | ac_cpp_err= |
---|
7024 | fi |
---|
7025 | else |
---|
7026 | ac_cpp_err=yes |
---|
7027 | fi |
---|
7028 | if test -z "$ac_cpp_err"; then |
---|
7029 | ac_header_preproc=yes |
---|
7030 | else |
---|
7031 | echo "$as_me: failed program was:" >&5 |
---|
7032 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7033 | |
---|
7034 | ac_header_preproc=no |
---|
7035 | fi |
---|
7036 | rm -f conftest.err conftest.$ac_ext |
---|
7037 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7038 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7039 | |
---|
7040 | # So? What about this header? |
---|
7041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7042 | yes:no: ) |
---|
7043 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7044 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7046 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7047 | ac_header_preproc=yes |
---|
7048 | ;; |
---|
7049 | no:yes:* ) |
---|
7050 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7051 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7052 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7053 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7054 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7055 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7056 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7057 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7058 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7059 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7060 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7061 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7062 | ( |
---|
7063 | cat <<\_ASBOX |
---|
7064 | ## ---------------------------------------------- ## |
---|
7065 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7066 | ## ---------------------------------------------- ## |
---|
7067 | _ASBOX |
---|
7068 | ) | |
---|
7069 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7070 | ;; |
---|
7071 | esac |
---|
7072 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7076 | else |
---|
7077 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7078 | fi |
---|
7079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7081 | |
---|
7082 | fi |
---|
7083 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7084 | cat >>confdefs.h <<_ACEOF |
---|
7085 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7086 | _ACEOF |
---|
7087 | pthreadHeader="yes" |
---|
7088 | else |
---|
7089 | pthreadHeader="no" |
---|
7090 | fi |
---|
7091 | |
---|
7092 | done |
---|
7093 | |
---|
7094 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
7095 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
7096 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
7097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7098 | else |
---|
7099 | ac_check_lib_save_LIBS=$LIBS |
---|
7100 | LIBS="-lpthread $LIBS" |
---|
7101 | cat >conftest.$ac_ext <<_ACEOF |
---|
7102 | /* confdefs.h. */ |
---|
7103 | _ACEOF |
---|
7104 | cat confdefs.h >>conftest.$ac_ext |
---|
7105 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7106 | /* end confdefs.h. */ |
---|
7107 | |
---|
7108 | |
---|
7109 | int |
---|
7110 | main () |
---|
7111 | { |
---|
7112 | main (); |
---|
7113 | ; |
---|
7114 | return 0; |
---|
7115 | } |
---|
7116 | _ACEOF |
---|
7117 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7119 | (eval $ac_link) 2>conftest.er1 |
---|
7120 | ac_status=$? |
---|
7121 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7122 | rm -f conftest.er1 |
---|
7123 | cat conftest.err >&5 |
---|
7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7125 | (exit $ac_status); } && |
---|
7126 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7127 | || test ! -s conftest.err' |
---|
7128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7129 | (eval $ac_try) 2>&5 |
---|
7130 | ac_status=$? |
---|
7131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7132 | (exit $ac_status); }; } && |
---|
7133 | { ac_try='test -s conftest$ac_exeext' |
---|
7134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7135 | (eval $ac_try) 2>&5 |
---|
7136 | ac_status=$? |
---|
7137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7138 | (exit $ac_status); }; }; then |
---|
7139 | ac_cv_lib_pthread_main=yes |
---|
7140 | else |
---|
7141 | echo "$as_me: failed program was:" >&5 |
---|
7142 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7143 | |
---|
7144 | ac_cv_lib_pthread_main=no |
---|
7145 | fi |
---|
7146 | rm -f conftest.err conftest.$ac_objext \ |
---|
7147 | conftest$ac_exeext conftest.$ac_ext |
---|
7148 | LIBS=$ac_check_lib_save_LIBS |
---|
7149 | fi |
---|
7150 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
7151 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
7152 | if test $ac_cv_lib_pthread_main = yes; then |
---|
7153 | FOUND_pthread=yes |
---|
7154 | fi |
---|
7155 | |
---|
7156 | if test x$FOUND_pthread = xyes ; then |
---|
7157 | LIBS="$LIBS -lpthread" |
---|
7158 | fi |
---|
7159 | fi |
---|
7160 | fi |
---|
7161 | |
---|
7162 | |
---|
7163 | #--------# |
---|
7164 | # efence # |
---|
7165 | #--------# |
---|
7166 | if test x$def_efence = xyes ; then |
---|
7167 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
7168 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
7169 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
7170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7171 | else |
---|
7172 | ac_check_lib_save_LIBS=$LIBS |
---|
7173 | LIBS="-lefence $LIBS" |
---|
7174 | cat >conftest.$ac_ext <<_ACEOF |
---|
7175 | /* confdefs.h. */ |
---|
7176 | _ACEOF |
---|
7177 | cat confdefs.h >>conftest.$ac_ext |
---|
7178 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7179 | /* end confdefs.h. */ |
---|
7180 | |
---|
7181 | |
---|
7182 | int |
---|
7183 | main () |
---|
7184 | { |
---|
7185 | main (); |
---|
7186 | ; |
---|
7187 | return 0; |
---|
7188 | } |
---|
7189 | _ACEOF |
---|
7190 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7192 | (eval $ac_link) 2>conftest.er1 |
---|
7193 | ac_status=$? |
---|
7194 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7195 | rm -f conftest.er1 |
---|
7196 | cat conftest.err >&5 |
---|
7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7198 | (exit $ac_status); } && |
---|
7199 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7200 | || test ! -s conftest.err' |
---|
7201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7202 | (eval $ac_try) 2>&5 |
---|
7203 | ac_status=$? |
---|
7204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7205 | (exit $ac_status); }; } && |
---|
7206 | { ac_try='test -s conftest$ac_exeext' |
---|
7207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7208 | (eval $ac_try) 2>&5 |
---|
7209 | ac_status=$? |
---|
7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7211 | (exit $ac_status); }; }; then |
---|
7212 | ac_cv_lib_efence_main=yes |
---|
7213 | else |
---|
7214 | echo "$as_me: failed program was:" >&5 |
---|
7215 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7216 | |
---|
7217 | ac_cv_lib_efence_main=no |
---|
7218 | fi |
---|
7219 | rm -f conftest.err conftest.$ac_objext \ |
---|
7220 | conftest$ac_exeext conftest.$ac_ext |
---|
7221 | LIBS=$ac_check_lib_save_LIBS |
---|
7222 | fi |
---|
7223 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
7224 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
7225 | if test $ac_cv_lib_efence_main = yes; then |
---|
7226 | FOUND_efence=yes |
---|
7227 | fi |
---|
7228 | |
---|
7229 | if test x$FOUND_efence = xyes ; then |
---|
7230 | LIBS="$LIBS -lefence" |
---|
7231 | fi |
---|
7232 | |
---|
7233 | fi |
---|
7234 | |
---|
7235 | # FIXME: Replace `main' with a function in `-lm': |
---|
7236 | |
---|
7237 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
7238 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
7239 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
7240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7241 | else |
---|
7242 | ac_check_lib_save_LIBS=$LIBS |
---|
7243 | LIBS="-lm $LIBS" |
---|
7244 | cat >conftest.$ac_ext <<_ACEOF |
---|
7245 | /* confdefs.h. */ |
---|
7246 | _ACEOF |
---|
7247 | cat confdefs.h >>conftest.$ac_ext |
---|
7248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7249 | /* end confdefs.h. */ |
---|
7250 | |
---|
7251 | |
---|
7252 | int |
---|
7253 | main () |
---|
7254 | { |
---|
7255 | main (); |
---|
7256 | ; |
---|
7257 | return 0; |
---|
7258 | } |
---|
7259 | _ACEOF |
---|
7260 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7262 | (eval $ac_link) 2>conftest.er1 |
---|
7263 | ac_status=$? |
---|
7264 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7265 | rm -f conftest.er1 |
---|
7266 | cat conftest.err >&5 |
---|
7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7268 | (exit $ac_status); } && |
---|
7269 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7270 | || test ! -s conftest.err' |
---|
7271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7272 | (eval $ac_try) 2>&5 |
---|
7273 | ac_status=$? |
---|
7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7275 | (exit $ac_status); }; } && |
---|
7276 | { ac_try='test -s conftest$ac_exeext' |
---|
7277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7278 | (eval $ac_try) 2>&5 |
---|
7279 | ac_status=$? |
---|
7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7281 | (exit $ac_status); }; }; then |
---|
7282 | ac_cv_lib_m_main=yes |
---|
7283 | else |
---|
7284 | echo "$as_me: failed program was:" >&5 |
---|
7285 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7286 | |
---|
7287 | ac_cv_lib_m_main=no |
---|
7288 | fi |
---|
7289 | rm -f conftest.err conftest.$ac_objext \ |
---|
7290 | conftest$ac_exeext conftest.$ac_ext |
---|
7291 | LIBS=$ac_check_lib_save_LIBS |
---|
7292 | fi |
---|
7293 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
7294 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
7295 | if test $ac_cv_lib_m_main = yes; then |
---|
7296 | cat >>confdefs.h <<_ACEOF |
---|
7297 | #define HAVE_LIBM 1 |
---|
7298 | _ACEOF |
---|
7299 | |
---|
7300 | LIBS="-lm $LIBS" |
---|
7301 | |
---|
7302 | fi |
---|
7303 | |
---|
7304 | |
---|
7305 | |
---|
7306 | # Checks for header files. |
---|
7307 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
7308 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
7309 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
7310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7311 | else |
---|
7312 | cat >conftest.$ac_ext <<_ACEOF |
---|
7313 | /* confdefs.h. */ |
---|
7314 | _ACEOF |
---|
7315 | cat confdefs.h >>conftest.$ac_ext |
---|
7316 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7317 | /* end confdefs.h. */ |
---|
7318 | #include <stdlib.h> |
---|
7319 | #include <stdarg.h> |
---|
7320 | #include <string.h> |
---|
7321 | #include <float.h> |
---|
7322 | |
---|
7323 | int |
---|
7324 | main () |
---|
7325 | { |
---|
7326 | |
---|
7327 | ; |
---|
7328 | return 0; |
---|
7329 | } |
---|
7330 | _ACEOF |
---|
7331 | rm -f conftest.$ac_objext |
---|
7332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7333 | (eval $ac_compile) 2>conftest.er1 |
---|
7334 | ac_status=$? |
---|
7335 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7336 | rm -f conftest.er1 |
---|
7337 | cat conftest.err >&5 |
---|
7338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7339 | (exit $ac_status); } && |
---|
7340 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7341 | || test ! -s conftest.err' |
---|
7342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7343 | (eval $ac_try) 2>&5 |
---|
7344 | ac_status=$? |
---|
7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7346 | (exit $ac_status); }; } && |
---|
7347 | { ac_try='test -s conftest.$ac_objext' |
---|
7348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7349 | (eval $ac_try) 2>&5 |
---|
7350 | ac_status=$? |
---|
7351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7352 | (exit $ac_status); }; }; then |
---|
7353 | ac_cv_header_stdc=yes |
---|
7354 | else |
---|
7355 | echo "$as_me: failed program was:" >&5 |
---|
7356 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7357 | |
---|
7358 | ac_cv_header_stdc=no |
---|
7359 | fi |
---|
7360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7361 | |
---|
7362 | if test $ac_cv_header_stdc = yes; then |
---|
7363 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
7364 | cat >conftest.$ac_ext <<_ACEOF |
---|
7365 | /* confdefs.h. */ |
---|
7366 | _ACEOF |
---|
7367 | cat confdefs.h >>conftest.$ac_ext |
---|
7368 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7369 | /* end confdefs.h. */ |
---|
7370 | #include <string.h> |
---|
7371 | |
---|
7372 | _ACEOF |
---|
7373 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7374 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
7375 | : |
---|
7376 | else |
---|
7377 | ac_cv_header_stdc=no |
---|
7378 | fi |
---|
7379 | rm -f conftest* |
---|
7380 | |
---|
7381 | fi |
---|
7382 | |
---|
7383 | if test $ac_cv_header_stdc = yes; then |
---|
7384 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
7385 | cat >conftest.$ac_ext <<_ACEOF |
---|
7386 | /* confdefs.h. */ |
---|
7387 | _ACEOF |
---|
7388 | cat confdefs.h >>conftest.$ac_ext |
---|
7389 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7390 | /* end confdefs.h. */ |
---|
7391 | #include <stdlib.h> |
---|
7392 | |
---|
7393 | _ACEOF |
---|
7394 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7395 | $EGREP "free" >/dev/null 2>&1; then |
---|
7396 | : |
---|
7397 | else |
---|
7398 | ac_cv_header_stdc=no |
---|
7399 | fi |
---|
7400 | rm -f conftest* |
---|
7401 | |
---|
7402 | fi |
---|
7403 | |
---|
7404 | if test $ac_cv_header_stdc = yes; then |
---|
7405 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
7406 | if test "$cross_compiling" = yes; then |
---|
7407 | : |
---|
7408 | else |
---|
7409 | cat >conftest.$ac_ext <<_ACEOF |
---|
7410 | /* confdefs.h. */ |
---|
7411 | _ACEOF |
---|
7412 | cat confdefs.h >>conftest.$ac_ext |
---|
7413 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7414 | /* end confdefs.h. */ |
---|
7415 | #include <ctype.h> |
---|
7416 | #if ((' ' & 0x0FF) == 0x020) |
---|
7417 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
7418 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
7419 | #else |
---|
7420 | # define ISLOWER(c) \ |
---|
7421 | (('a' <= (c) && (c) <= 'i') \ |
---|
7422 | || ('j' <= (c) && (c) <= 'r') \ |
---|
7423 | || ('s' <= (c) && (c) <= 'z')) |
---|
7424 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
7425 | #endif |
---|
7426 | |
---|
7427 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
7428 | int |
---|
7429 | main () |
---|
7430 | { |
---|
7431 | int i; |
---|
7432 | for (i = 0; i < 256; i++) |
---|
7433 | if (XOR (islower (i), ISLOWER (i)) |
---|
7434 | || toupper (i) != TOUPPER (i)) |
---|
7435 | exit(2); |
---|
7436 | exit (0); |
---|
7437 | } |
---|
7438 | _ACEOF |
---|
7439 | rm -f conftest$ac_exeext |
---|
7440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7441 | (eval $ac_link) 2>&5 |
---|
7442 | ac_status=$? |
---|
7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7446 | (eval $ac_try) 2>&5 |
---|
7447 | ac_status=$? |
---|
7448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7449 | (exit $ac_status); }; }; then |
---|
7450 | : |
---|
7451 | else |
---|
7452 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7453 | echo "$as_me: failed program was:" >&5 |
---|
7454 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7455 | |
---|
7456 | ( exit $ac_status ) |
---|
7457 | ac_cv_header_stdc=no |
---|
7458 | fi |
---|
7459 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7460 | fi |
---|
7461 | fi |
---|
7462 | fi |
---|
7463 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
7464 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
7465 | if test $ac_cv_header_stdc = yes; then |
---|
7466 | |
---|
7467 | cat >>confdefs.h <<\_ACEOF |
---|
7468 | #define STDC_HEADERS 1 |
---|
7469 | _ACEOF |
---|
7470 | |
---|
7471 | fi |
---|
7472 | |
---|
7473 | |
---|
7474 | |
---|
7475 | for ac_header in stdlib.h string.h |
---|
7476 | do |
---|
7477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7483 | fi |
---|
7484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7485 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7486 | else |
---|
7487 | # Is the header compilable? |
---|
7488 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7489 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7490 | cat >conftest.$ac_ext <<_ACEOF |
---|
7491 | /* confdefs.h. */ |
---|
7492 | _ACEOF |
---|
7493 | cat confdefs.h >>conftest.$ac_ext |
---|
7494 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7495 | /* end confdefs.h. */ |
---|
7496 | $ac_includes_default |
---|
7497 | #include <$ac_header> |
---|
7498 | _ACEOF |
---|
7499 | rm -f conftest.$ac_objext |
---|
7500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7501 | (eval $ac_compile) 2>conftest.er1 |
---|
7502 | ac_status=$? |
---|
7503 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7504 | rm -f conftest.er1 |
---|
7505 | cat conftest.err >&5 |
---|
7506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7507 | (exit $ac_status); } && |
---|
7508 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7509 | || test ! -s conftest.err' |
---|
7510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7511 | (eval $ac_try) 2>&5 |
---|
7512 | ac_status=$? |
---|
7513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7514 | (exit $ac_status); }; } && |
---|
7515 | { ac_try='test -s conftest.$ac_objext' |
---|
7516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7517 | (eval $ac_try) 2>&5 |
---|
7518 | ac_status=$? |
---|
7519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7520 | (exit $ac_status); }; }; then |
---|
7521 | ac_header_compiler=yes |
---|
7522 | else |
---|
7523 | echo "$as_me: failed program was:" >&5 |
---|
7524 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7525 | |
---|
7526 | ac_header_compiler=no |
---|
7527 | fi |
---|
7528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7529 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7530 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7531 | |
---|
7532 | # Is the header present? |
---|
7533 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7534 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7535 | cat >conftest.$ac_ext <<_ACEOF |
---|
7536 | /* confdefs.h. */ |
---|
7537 | _ACEOF |
---|
7538 | cat confdefs.h >>conftest.$ac_ext |
---|
7539 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7540 | /* end confdefs.h. */ |
---|
7541 | #include <$ac_header> |
---|
7542 | _ACEOF |
---|
7543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7545 | ac_status=$? |
---|
7546 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7547 | rm -f conftest.er1 |
---|
7548 | cat conftest.err >&5 |
---|
7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7550 | (exit $ac_status); } >/dev/null; then |
---|
7551 | if test -s conftest.err; then |
---|
7552 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7553 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7554 | else |
---|
7555 | ac_cpp_err= |
---|
7556 | fi |
---|
7557 | else |
---|
7558 | ac_cpp_err=yes |
---|
7559 | fi |
---|
7560 | if test -z "$ac_cpp_err"; then |
---|
7561 | ac_header_preproc=yes |
---|
7562 | else |
---|
7563 | echo "$as_me: failed program was:" >&5 |
---|
7564 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7565 | |
---|
7566 | ac_header_preproc=no |
---|
7567 | fi |
---|
7568 | rm -f conftest.err conftest.$ac_ext |
---|
7569 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7570 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7571 | |
---|
7572 | # So? What about this header? |
---|
7573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7574 | yes:no: ) |
---|
7575 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7576 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7578 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7579 | ac_header_preproc=yes |
---|
7580 | ;; |
---|
7581 | no:yes:* ) |
---|
7582 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7583 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7584 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7585 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7586 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7587 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7588 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7589 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7591 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7592 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7593 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7594 | ( |
---|
7595 | cat <<\_ASBOX |
---|
7596 | ## ---------------------------------------------- ## |
---|
7597 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7598 | ## ---------------------------------------------- ## |
---|
7599 | _ASBOX |
---|
7600 | ) | |
---|
7601 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7602 | ;; |
---|
7603 | esac |
---|
7604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7608 | else |
---|
7609 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7610 | fi |
---|
7611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7612 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7613 | |
---|
7614 | fi |
---|
7615 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7616 | cat >>confdefs.h <<_ACEOF |
---|
7617 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7618 | _ACEOF |
---|
7619 | |
---|
7620 | fi |
---|
7621 | |
---|
7622 | done |
---|
7623 | |
---|
7624 | |
---|
7625 | # Checks for typedefs, structures, and compiler characteristics. |
---|
7626 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
7627 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
7628 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
7629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7630 | else |
---|
7631 | cat >conftest.$ac_ext <<_ACEOF |
---|
7632 | /* confdefs.h. */ |
---|
7633 | _ACEOF |
---|
7634 | cat confdefs.h >>conftest.$ac_ext |
---|
7635 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7636 | /* end confdefs.h. */ |
---|
7637 | |
---|
7638 | #include <stdbool.h> |
---|
7639 | #ifndef bool |
---|
7640 | # error bool is not defined |
---|
7641 | #endif |
---|
7642 | #ifndef false |
---|
7643 | # error false is not defined |
---|
7644 | #endif |
---|
7645 | #if false |
---|
7646 | # error false is not 0 |
---|
7647 | #endif |
---|
7648 | #ifndef true |
---|
7649 | # error true is not defined |
---|
7650 | #endif |
---|
7651 | #if true != 1 |
---|
7652 | # error true is not 1 |
---|
7653 | #endif |
---|
7654 | #ifndef __bool_true_false_are_defined |
---|
7655 | # error __bool_true_false_are_defined is not defined |
---|
7656 | #endif |
---|
7657 | |
---|
7658 | struct s { _Bool s: 1; _Bool t; } s; |
---|
7659 | |
---|
7660 | char a[true == 1 ? 1 : -1]; |
---|
7661 | char b[false == 0 ? 1 : -1]; |
---|
7662 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
7663 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
7664 | bool e = &s; |
---|
7665 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
7666 | char g[true]; |
---|
7667 | char h[sizeof (_Bool)]; |
---|
7668 | char i[sizeof s.t]; |
---|
7669 | |
---|
7670 | int |
---|
7671 | main () |
---|
7672 | { |
---|
7673 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
7674 | ; |
---|
7675 | return 0; |
---|
7676 | } |
---|
7677 | _ACEOF |
---|
7678 | rm -f conftest.$ac_objext |
---|
7679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7680 | (eval $ac_compile) 2>conftest.er1 |
---|
7681 | ac_status=$? |
---|
7682 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7683 | rm -f conftest.er1 |
---|
7684 | cat conftest.err >&5 |
---|
7685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7686 | (exit $ac_status); } && |
---|
7687 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7688 | || test ! -s conftest.err' |
---|
7689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7690 | (eval $ac_try) 2>&5 |
---|
7691 | ac_status=$? |
---|
7692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7693 | (exit $ac_status); }; } && |
---|
7694 | { ac_try='test -s conftest.$ac_objext' |
---|
7695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7696 | (eval $ac_try) 2>&5 |
---|
7697 | ac_status=$? |
---|
7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7699 | (exit $ac_status); }; }; then |
---|
7700 | ac_cv_header_stdbool_h=yes |
---|
7701 | else |
---|
7702 | echo "$as_me: failed program was:" >&5 |
---|
7703 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7704 | |
---|
7705 | ac_cv_header_stdbool_h=no |
---|
7706 | fi |
---|
7707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7708 | fi |
---|
7709 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
7710 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
7711 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
7712 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
7713 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
7714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7715 | else |
---|
7716 | cat >conftest.$ac_ext <<_ACEOF |
---|
7717 | /* confdefs.h. */ |
---|
7718 | _ACEOF |
---|
7719 | cat confdefs.h >>conftest.$ac_ext |
---|
7720 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7721 | /* end confdefs.h. */ |
---|
7722 | $ac_includes_default |
---|
7723 | int |
---|
7724 | main () |
---|
7725 | { |
---|
7726 | if ((_Bool *) 0) |
---|
7727 | return 0; |
---|
7728 | if (sizeof (_Bool)) |
---|
7729 | return 0; |
---|
7730 | ; |
---|
7731 | return 0; |
---|
7732 | } |
---|
7733 | _ACEOF |
---|
7734 | rm -f conftest.$ac_objext |
---|
7735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7736 | (eval $ac_compile) 2>conftest.er1 |
---|
7737 | ac_status=$? |
---|
7738 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7739 | rm -f conftest.er1 |
---|
7740 | cat conftest.err >&5 |
---|
7741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7742 | (exit $ac_status); } && |
---|
7743 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7744 | || test ! -s conftest.err' |
---|
7745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7746 | (eval $ac_try) 2>&5 |
---|
7747 | ac_status=$? |
---|
7748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7749 | (exit $ac_status); }; } && |
---|
7750 | { ac_try='test -s conftest.$ac_objext' |
---|
7751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7752 | (eval $ac_try) 2>&5 |
---|
7753 | ac_status=$? |
---|
7754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7755 | (exit $ac_status); }; }; then |
---|
7756 | ac_cv_type__Bool=yes |
---|
7757 | else |
---|
7758 | echo "$as_me: failed program was:" >&5 |
---|
7759 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7760 | |
---|
7761 | ac_cv_type__Bool=no |
---|
7762 | fi |
---|
7763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7764 | fi |
---|
7765 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
7766 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
7767 | if test $ac_cv_type__Bool = yes; then |
---|
7768 | |
---|
7769 | cat >>confdefs.h <<_ACEOF |
---|
7770 | #define HAVE__BOOL 1 |
---|
7771 | _ACEOF |
---|
7772 | |
---|
7773 | |
---|
7774 | fi |
---|
7775 | |
---|
7776 | if test $ac_cv_header_stdbool_h = yes; then |
---|
7777 | |
---|
7778 | cat >>confdefs.h <<\_ACEOF |
---|
7779 | #define HAVE_STDBOOL_H 1 |
---|
7780 | _ACEOF |
---|
7781 | |
---|
7782 | fi |
---|
7783 | |
---|
7784 | |
---|
7785 | # Checks for library functions. |
---|
7786 | |
---|
7787 | for ac_header in stdlib.h |
---|
7788 | do |
---|
7789 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7790 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7791 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7795 | fi |
---|
7796 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7797 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7798 | else |
---|
7799 | # Is the header compilable? |
---|
7800 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7801 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7802 | cat >conftest.$ac_ext <<_ACEOF |
---|
7803 | /* confdefs.h. */ |
---|
7804 | _ACEOF |
---|
7805 | cat confdefs.h >>conftest.$ac_ext |
---|
7806 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7807 | /* end confdefs.h. */ |
---|
7808 | $ac_includes_default |
---|
7809 | #include <$ac_header> |
---|
7810 | _ACEOF |
---|
7811 | rm -f conftest.$ac_objext |
---|
7812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7813 | (eval $ac_compile) 2>conftest.er1 |
---|
7814 | ac_status=$? |
---|
7815 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7816 | rm -f conftest.er1 |
---|
7817 | cat conftest.err >&5 |
---|
7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7819 | (exit $ac_status); } && |
---|
7820 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7821 | || test ! -s conftest.err' |
---|
7822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7823 | (eval $ac_try) 2>&5 |
---|
7824 | ac_status=$? |
---|
7825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7826 | (exit $ac_status); }; } && |
---|
7827 | { ac_try='test -s conftest.$ac_objext' |
---|
7828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7829 | (eval $ac_try) 2>&5 |
---|
7830 | ac_status=$? |
---|
7831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7832 | (exit $ac_status); }; }; then |
---|
7833 | ac_header_compiler=yes |
---|
7834 | else |
---|
7835 | echo "$as_me: failed program was:" >&5 |
---|
7836 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7837 | |
---|
7838 | ac_header_compiler=no |
---|
7839 | fi |
---|
7840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7841 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7842 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7843 | |
---|
7844 | # Is the header present? |
---|
7845 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7846 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7847 | cat >conftest.$ac_ext <<_ACEOF |
---|
7848 | /* confdefs.h. */ |
---|
7849 | _ACEOF |
---|
7850 | cat confdefs.h >>conftest.$ac_ext |
---|
7851 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7852 | /* end confdefs.h. */ |
---|
7853 | #include <$ac_header> |
---|
7854 | _ACEOF |
---|
7855 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7856 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7857 | ac_status=$? |
---|
7858 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7859 | rm -f conftest.er1 |
---|
7860 | cat conftest.err >&5 |
---|
7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7862 | (exit $ac_status); } >/dev/null; then |
---|
7863 | if test -s conftest.err; then |
---|
7864 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7865 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7866 | else |
---|
7867 | ac_cpp_err= |
---|
7868 | fi |
---|
7869 | else |
---|
7870 | ac_cpp_err=yes |
---|
7871 | fi |
---|
7872 | if test -z "$ac_cpp_err"; then |
---|
7873 | ac_header_preproc=yes |
---|
7874 | else |
---|
7875 | echo "$as_me: failed program was:" >&5 |
---|
7876 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7877 | |
---|
7878 | ac_header_preproc=no |
---|
7879 | fi |
---|
7880 | rm -f conftest.err conftest.$ac_ext |
---|
7881 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7882 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7883 | |
---|
7884 | # So? What about this header? |
---|
7885 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7886 | yes:no: ) |
---|
7887 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7888 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7890 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7891 | ac_header_preproc=yes |
---|
7892 | ;; |
---|
7893 | no:yes:* ) |
---|
7894 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7895 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7896 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7897 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7898 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7899 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7900 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7901 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7902 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7903 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7904 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7905 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7906 | ( |
---|
7907 | cat <<\_ASBOX |
---|
7908 | ## ---------------------------------------------- ## |
---|
7909 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7910 | ## ---------------------------------------------- ## |
---|
7911 | _ASBOX |
---|
7912 | ) | |
---|
7913 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7914 | ;; |
---|
7915 | esac |
---|
7916 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7917 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7918 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7920 | else |
---|
7921 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7922 | fi |
---|
7923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7925 | |
---|
7926 | fi |
---|
7927 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7928 | cat >>confdefs.h <<_ACEOF |
---|
7929 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7930 | _ACEOF |
---|
7931 | |
---|
7932 | fi |
---|
7933 | |
---|
7934 | done |
---|
7935 | |
---|
7936 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
7937 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
7938 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
7939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7940 | else |
---|
7941 | if test "$cross_compiling" = yes; then |
---|
7942 | ac_cv_func_malloc_0_nonnull=no |
---|
7943 | else |
---|
7944 | cat >conftest.$ac_ext <<_ACEOF |
---|
7945 | /* confdefs.h. */ |
---|
7946 | _ACEOF |
---|
7947 | cat confdefs.h >>conftest.$ac_ext |
---|
7948 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7949 | /* end confdefs.h. */ |
---|
7950 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
7951 | # include <stdlib.h> |
---|
7952 | #else |
---|
7953 | char *malloc (); |
---|
7954 | #endif |
---|
7955 | |
---|
7956 | int |
---|
7957 | main () |
---|
7958 | { |
---|
7959 | exit (malloc (0) ? 0 : 1); |
---|
7960 | ; |
---|
7961 | return 0; |
---|
7962 | } |
---|
7963 | _ACEOF |
---|
7964 | rm -f conftest$ac_exeext |
---|
7965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7966 | (eval $ac_link) 2>&5 |
---|
7967 | ac_status=$? |
---|
7968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7969 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7971 | (eval $ac_try) 2>&5 |
---|
7972 | ac_status=$? |
---|
7973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7974 | (exit $ac_status); }; }; then |
---|
7975 | ac_cv_func_malloc_0_nonnull=yes |
---|
7976 | else |
---|
7977 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7978 | echo "$as_me: failed program was:" >&5 |
---|
7979 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7980 | |
---|
7981 | ( exit $ac_status ) |
---|
7982 | ac_cv_func_malloc_0_nonnull=no |
---|
7983 | fi |
---|
7984 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7985 | fi |
---|
7986 | fi |
---|
7987 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
7988 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
7989 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
7990 | |
---|
7991 | cat >>confdefs.h <<\_ACEOF |
---|
7992 | #define HAVE_MALLOC 1 |
---|
7993 | _ACEOF |
---|
7994 | |
---|
7995 | else |
---|
7996 | cat >>confdefs.h <<\_ACEOF |
---|
7997 | #define HAVE_MALLOC 0 |
---|
7998 | _ACEOF |
---|
7999 | |
---|
8000 | case $LIBOBJS in |
---|
8001 | "malloc.$ac_objext" | \ |
---|
8002 | *" malloc.$ac_objext" | \ |
---|
8003 | "malloc.$ac_objext "* | \ |
---|
8004 | *" malloc.$ac_objext "* ) ;; |
---|
8005 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
8006 | esac |
---|
8007 | |
---|
8008 | |
---|
8009 | cat >>confdefs.h <<\_ACEOF |
---|
8010 | #define malloc rpl_malloc |
---|
8011 | _ACEOF |
---|
8012 | |
---|
8013 | fi |
---|
8014 | |
---|
8015 | |
---|
8016 | |
---|
8017 | |
---|
8018 | |
---|
8019 | for ac_func in bzero sqrt |
---|
8020 | do |
---|
8021 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
8022 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
8023 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
8024 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
8025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8026 | else |
---|
8027 | cat >conftest.$ac_ext <<_ACEOF |
---|
8028 | /* confdefs.h. */ |
---|
8029 | _ACEOF |
---|
8030 | cat confdefs.h >>conftest.$ac_ext |
---|
8031 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8032 | /* end confdefs.h. */ |
---|
8033 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
8034 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
8035 | #define $ac_func innocuous_$ac_func |
---|
8036 | |
---|
8037 | /* System header to define __stub macros and hopefully few prototypes, |
---|
8038 | which can conflict with char $ac_func (); below. |
---|
8039 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8040 | <limits.h> exists even on freestanding compilers. */ |
---|
8041 | |
---|
8042 | #ifdef __STDC__ |
---|
8043 | # include <limits.h> |
---|
8044 | #else |
---|
8045 | # include <assert.h> |
---|
8046 | #endif |
---|
8047 | |
---|
8048 | #undef $ac_func |
---|
8049 | |
---|
8050 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8051 | #ifdef __cplusplus |
---|
8052 | extern "C" |
---|
8053 | { |
---|
8054 | #endif |
---|
8055 | /* We use char because int might match the return type of a gcc2 |
---|
8056 | builtin and then its argument prototype would still apply. */ |
---|
8057 | char $ac_func (); |
---|
8058 | /* The GNU C library defines this for functions which it implements |
---|
8059 | to always fail with ENOSYS. Some functions are actually named |
---|
8060 | something starting with __ and the normal name is an alias. */ |
---|
8061 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
8062 | choke me |
---|
8063 | #else |
---|
8064 | char (*f) () = $ac_func; |
---|
8065 | #endif |
---|
8066 | #ifdef __cplusplus |
---|
8067 | } |
---|
8068 | #endif |
---|
8069 | |
---|
8070 | int |
---|
8071 | main () |
---|
8072 | { |
---|
8073 | return f != $ac_func; |
---|
8074 | ; |
---|
8075 | return 0; |
---|
8076 | } |
---|
8077 | _ACEOF |
---|
8078 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8080 | (eval $ac_link) 2>conftest.er1 |
---|
8081 | ac_status=$? |
---|
8082 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8083 | rm -f conftest.er1 |
---|
8084 | cat conftest.err >&5 |
---|
8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8086 | (exit $ac_status); } && |
---|
8087 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8088 | || test ! -s conftest.err' |
---|
8089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8090 | (eval $ac_try) 2>&5 |
---|
8091 | ac_status=$? |
---|
8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8093 | (exit $ac_status); }; } && |
---|
8094 | { ac_try='test -s conftest$ac_exeext' |
---|
8095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8096 | (eval $ac_try) 2>&5 |
---|
8097 | ac_status=$? |
---|
8098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8099 | (exit $ac_status); }; }; then |
---|
8100 | eval "$as_ac_var=yes" |
---|
8101 | else |
---|
8102 | echo "$as_me: failed program was:" >&5 |
---|
8103 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8104 | |
---|
8105 | eval "$as_ac_var=no" |
---|
8106 | fi |
---|
8107 | rm -f conftest.err conftest.$ac_objext \ |
---|
8108 | conftest$ac_exeext conftest.$ac_ext |
---|
8109 | fi |
---|
8110 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
8111 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
8112 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
8113 | cat >>confdefs.h <<_ACEOF |
---|
8114 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
8115 | _ACEOF |
---|
8116 | |
---|
8117 | fi |
---|
8118 | done |
---|
8119 | |
---|
8120 | |
---|
8121 | ###################### |
---|
8122 | ## OUTPUT CONFIGURE ## |
---|
8123 | ###################### |
---|
8124 | ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/gui/Makefile src/lib/gui/console/Makefile src/lib/gui/gui/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile" |
---|
8125 | |
---|
8126 | |
---|
8127 | cat >confcache <<\_ACEOF |
---|
8128 | # This file is a shell script that caches the results of configure |
---|
8129 | # tests run on this system so they can be shared between configure |
---|
8130 | # scripts and configure runs, see configure's option --config-cache. |
---|
8131 | # It is not useful on other systems. If it contains results you don't |
---|
8132 | # want to keep, you may remove or edit it. |
---|
8133 | # |
---|
8134 | # config.status only pays attention to the cache file if you give it |
---|
8135 | # the --recheck option to rerun configure. |
---|
8136 | # |
---|
8137 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
8138 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
8139 | # following values. |
---|
8140 | |
---|
8141 | _ACEOF |
---|
8142 | |
---|
8143 | # The following way of writing the cache mishandles newlines in values, |
---|
8144 | # but we know of no workaround that is simple, portable, and efficient. |
---|
8145 | # So, don't put newlines in cache variables' values. |
---|
8146 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
8147 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
8148 | { |
---|
8149 | (set) 2>&1 | |
---|
8150 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
8151 | *ac_space=\ *) |
---|
8152 | # `set' does not quote correctly, so add quotes (double-quote |
---|
8153 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
8154 | sed -n \ |
---|
8155 | "s/'/'\\\\''/g; |
---|
8156 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
8157 | ;; |
---|
8158 | *) |
---|
8159 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
8160 | sed -n \ |
---|
8161 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
8162 | ;; |
---|
8163 | esac; |
---|
8164 | } | |
---|
8165 | sed ' |
---|
8166 | t clear |
---|
8167 | : clear |
---|
8168 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
8169 | t end |
---|
8170 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
8171 | : end' >>confcache |
---|
8172 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
8173 | if test -w $cache_file; then |
---|
8174 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
8175 | cat confcache >$cache_file |
---|
8176 | else |
---|
8177 | echo "not updating unwritable cache $cache_file" |
---|
8178 | fi |
---|
8179 | fi |
---|
8180 | rm -f confcache |
---|
8181 | |
---|
8182 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
8183 | # Let make expand exec_prefix. |
---|
8184 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
8185 | |
---|
8186 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
8187 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
8188 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
8189 | # (actually we leave an empty line to preserve line numbers). |
---|
8190 | if test "x$srcdir" = x.; then |
---|
8191 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
8192 | s/:*\$(srcdir):*/:/; |
---|
8193 | s/:*\${srcdir}:*/:/; |
---|
8194 | s/:*@srcdir@:*/:/; |
---|
8195 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
8196 | s/:*$//; |
---|
8197 | s/^[^=]*=[ ]*$//; |
---|
8198 | }' |
---|
8199 | fi |
---|
8200 | |
---|
8201 | DEFS=-DHAVE_CONFIG_H |
---|
8202 | |
---|
8203 | ac_libobjs= |
---|
8204 | ac_ltlibobjs= |
---|
8205 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
8206 | # 1. Remove the extension, and $U if already installed. |
---|
8207 | ac_i=`echo "$ac_i" | |
---|
8208 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
8209 | # 2. Add them. |
---|
8210 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
8211 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
8212 | done |
---|
8213 | LIBOBJS=$ac_libobjs |
---|
8214 | |
---|
8215 | LTLIBOBJS=$ac_ltlibobjs |
---|
8216 | |
---|
8217 | |
---|
8218 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
8219 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
8220 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8221 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
8222 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8223 | { (exit 1); exit 1; }; } |
---|
8224 | fi |
---|
8225 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
8226 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
8227 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8228 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
8229 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8230 | { (exit 1); exit 1; }; } |
---|
8231 | fi |
---|
8232 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
8233 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
8234 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8235 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
8236 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8237 | { (exit 1); exit 1; }; } |
---|
8238 | fi |
---|
8239 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
8240 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
8241 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8242 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
8243 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8244 | { (exit 1); exit 1; }; } |
---|
8245 | fi |
---|
8246 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
8247 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
8248 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8249 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
8250 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8251 | { (exit 1); exit 1; }; } |
---|
8252 | fi |
---|
8253 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
8254 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
8255 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8256 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
8257 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8258 | { (exit 1); exit 1; }; } |
---|
8259 | fi |
---|
8260 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
8261 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
8262 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8263 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
8264 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8265 | { (exit 1); exit 1; }; } |
---|
8266 | fi |
---|
8267 | if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then |
---|
8268 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
8269 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8270 | echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
8271 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8272 | { (exit 1); exit 1; }; } |
---|
8273 | fi |
---|
8274 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
8275 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
8276 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8277 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
8278 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8279 | { (exit 1); exit 1; }; } |
---|
8280 | fi |
---|
8281 | |
---|
8282 | : ${CONFIG_STATUS=./config.status} |
---|
8283 | ac_clean_files_save=$ac_clean_files |
---|
8284 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
8285 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
8286 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
8287 | cat >$CONFIG_STATUS <<_ACEOF |
---|
8288 | #! $SHELL |
---|
8289 | # Generated by $as_me. |
---|
8290 | # Run this file to recreate the current configuration. |
---|
8291 | # Compiler output produced by configure, useful for debugging |
---|
8292 | # configure, is in config.log if it exists. |
---|
8293 | |
---|
8294 | debug=false |
---|
8295 | ac_cs_recheck=false |
---|
8296 | ac_cs_silent=false |
---|
8297 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
8298 | _ACEOF |
---|
8299 | |
---|
8300 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8301 | ## --------------------- ## |
---|
8302 | ## M4sh Initialization. ## |
---|
8303 | ## --------------------- ## |
---|
8304 | |
---|
8305 | # Be Bourne compatible |
---|
8306 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
8307 | emulate sh |
---|
8308 | NULLCMD=: |
---|
8309 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
8310 | # is contrary to our usage. Disable this feature. |
---|
8311 | alias -g '${1+"$@"}'='"$@"' |
---|
8312 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
8313 | set -o posix |
---|
8314 | fi |
---|
8315 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
8316 | |
---|
8317 | # Support unset when possible. |
---|
8318 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
8319 | as_unset=unset |
---|
8320 | else |
---|
8321 | as_unset=false |
---|
8322 | fi |
---|
8323 | |
---|
8324 | |
---|
8325 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
8326 | $as_unset ENV MAIL MAILPATH |
---|
8327 | PS1='$ ' |
---|
8328 | PS2='> ' |
---|
8329 | PS4='+ ' |
---|
8330 | |
---|
8331 | # NLS nuisances. |
---|
8332 | for as_var in \ |
---|
8333 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
8334 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
8335 | LC_TELEPHONE LC_TIME |
---|
8336 | do |
---|
8337 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
8338 | eval $as_var=C; export $as_var |
---|
8339 | else |
---|
8340 | $as_unset $as_var |
---|
8341 | fi |
---|
8342 | done |
---|
8343 | |
---|
8344 | # Required to use basename. |
---|
8345 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
8346 | as_expr=expr |
---|
8347 | else |
---|
8348 | as_expr=false |
---|
8349 | fi |
---|
8350 | |
---|
8351 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
8352 | as_basename=basename |
---|
8353 | else |
---|
8354 | as_basename=false |
---|
8355 | fi |
---|
8356 | |
---|
8357 | |
---|
8358 | # Name of the executable. |
---|
8359 | as_me=`$as_basename "$0" || |
---|
8360 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
8361 | X"$0" : 'X\(//\)$' \| \ |
---|
8362 | X"$0" : 'X\(/\)$' \| \ |
---|
8363 | . : '\(.\)' 2>/dev/null || |
---|
8364 | echo X/"$0" | |
---|
8365 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
8366 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
8367 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
8368 | s/.*/./; q'` |
---|
8369 | |
---|
8370 | |
---|
8371 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
8372 | # Avoid depending upon Character Ranges. |
---|
8373 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
8374 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
8375 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
8376 | as_cr_digits='0123456789' |
---|
8377 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
8378 | |
---|
8379 | # The user is always right. |
---|
8380 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
8381 | echo "#! /bin/sh" >conf$$.sh |
---|
8382 | echo "exit 0" >>conf$$.sh |
---|
8383 | chmod +x conf$$.sh |
---|
8384 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
8385 | PATH_SEPARATOR=';' |
---|
8386 | else |
---|
8387 | PATH_SEPARATOR=: |
---|
8388 | fi |
---|
8389 | rm -f conf$$.sh |
---|
8390 | fi |
---|
8391 | |
---|
8392 | |
---|
8393 | as_lineno_1=$LINENO |
---|
8394 | as_lineno_2=$LINENO |
---|
8395 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
8396 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
8397 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
8398 | # Find who we are. Look in the path if we contain no path at all |
---|
8399 | # relative or not. |
---|
8400 | case $0 in |
---|
8401 | *[\\/]* ) as_myself=$0 ;; |
---|
8402 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8403 | for as_dir in $PATH |
---|
8404 | do |
---|
8405 | IFS=$as_save_IFS |
---|
8406 | test -z "$as_dir" && as_dir=. |
---|
8407 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
8408 | done |
---|
8409 | |
---|
8410 | ;; |
---|
8411 | esac |
---|
8412 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
8413 | # in which case we are not to be found in the path. |
---|
8414 | if test "x$as_myself" = x; then |
---|
8415 | as_myself=$0 |
---|
8416 | fi |
---|
8417 | if test ! -f "$as_myself"; then |
---|
8418 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
8419 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
8420 | { (exit 1); exit 1; }; } |
---|
8421 | fi |
---|
8422 | case $CONFIG_SHELL in |
---|
8423 | '') |
---|
8424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8425 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
8426 | do |
---|
8427 | IFS=$as_save_IFS |
---|
8428 | test -z "$as_dir" && as_dir=. |
---|
8429 | for as_base in sh bash ksh sh5; do |
---|
8430 | case $as_dir in |
---|
8431 | /*) |
---|
8432 | if ("$as_dir/$as_base" -c ' |
---|
8433 | as_lineno_1=$LINENO |
---|
8434 | as_lineno_2=$LINENO |
---|
8435 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
8436 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
8437 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
8438 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
8439 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
8440 | CONFIG_SHELL=$as_dir/$as_base |
---|
8441 | export CONFIG_SHELL |
---|
8442 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
8443 | fi;; |
---|
8444 | esac |
---|
8445 | done |
---|
8446 | done |
---|
8447 | ;; |
---|
8448 | esac |
---|
8449 | |
---|
8450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
8451 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
8452 | # line-number line before each line; the second 'sed' does the real |
---|
8453 | # work. The second script uses 'N' to pair each line-number line |
---|
8454 | # with the numbered line, and appends trailing '-' during |
---|
8455 | # substitution so that $LINENO is not a special case at line end. |
---|
8456 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
8457 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
8458 | sed '=' <$as_myself | |
---|
8459 | sed ' |
---|
8460 | N |
---|
8461 | s,$,-, |
---|
8462 | : loop |
---|
8463 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
8464 | t loop |
---|
8465 | s,-$,, |
---|
8466 | s,^['$as_cr_digits']*\n,, |
---|
8467 | ' >$as_me.lineno && |
---|
8468 | chmod +x $as_me.lineno || |
---|
8469 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
8470 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
8471 | { (exit 1); exit 1; }; } |
---|
8472 | |
---|
8473 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
8474 | # (the dirname of $[0] is not the place where we might find the |
---|
8475 | # original and so on. Autoconf is especially sensible to this). |
---|
8476 | . ./$as_me.lineno |
---|
8477 | # Exit status is that of the last command. |
---|
8478 | exit |
---|
8479 | } |
---|
8480 | |
---|
8481 | |
---|
8482 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
8483 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
8484 | ' ECHO_T=' ' ;; |
---|
8485 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
8486 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
8487 | esac |
---|
8488 | |
---|
8489 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
8490 | as_expr=expr |
---|
8491 | else |
---|
8492 | as_expr=false |
---|
8493 | fi |
---|
8494 | |
---|
8495 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8496 | echo >conf$$.file |
---|
8497 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
8498 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
8499 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
8500 | if test -f conf$$.exe; then |
---|
8501 | # Don't use ln at all; we don't have any links |
---|
8502 | as_ln_s='cp -p' |
---|
8503 | else |
---|
8504 | as_ln_s='ln -s' |
---|
8505 | fi |
---|
8506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
8507 | as_ln_s=ln |
---|
8508 | else |
---|
8509 | as_ln_s='cp -p' |
---|
8510 | fi |
---|
8511 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8512 | |
---|
8513 | if mkdir -p . 2>/dev/null; then |
---|
8514 | as_mkdir_p=: |
---|
8515 | else |
---|
8516 | test -d ./-p && rmdir ./-p |
---|
8517 | as_mkdir_p=false |
---|
8518 | fi |
---|
8519 | |
---|
8520 | as_executable_p="test -f" |
---|
8521 | |
---|
8522 | # Sed expression to map a string onto a valid CPP name. |
---|
8523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
8524 | |
---|
8525 | # Sed expression to map a string onto a valid variable name. |
---|
8526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
8527 | |
---|
8528 | |
---|
8529 | # IFS |
---|
8530 | # We need space, tab and new line, in precisely that order. |
---|
8531 | as_nl=' |
---|
8532 | ' |
---|
8533 | IFS=" $as_nl" |
---|
8534 | |
---|
8535 | # CDPATH. |
---|
8536 | $as_unset CDPATH |
---|
8537 | |
---|
8538 | exec 6>&1 |
---|
8539 | |
---|
8540 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
8541 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
8542 | # values after options handling. Logging --version etc. is OK. |
---|
8543 | exec 5>>config.log |
---|
8544 | { |
---|
8545 | echo |
---|
8546 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
8547 | ## Running $as_me. ## |
---|
8548 | _ASBOX |
---|
8549 | } >&5 |
---|
8550 | cat >&5 <<_CSEOF |
---|
8551 | |
---|
8552 | This file was extended by orxonox $as_me 0.2.3-pre-alpha, which was |
---|
8553 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
8554 | |
---|
8555 | CONFIG_FILES = $CONFIG_FILES |
---|
8556 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
8557 | CONFIG_LINKS = $CONFIG_LINKS |
---|
8558 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
8559 | $ $0 $@ |
---|
8560 | |
---|
8561 | _CSEOF |
---|
8562 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
8563 | echo >&5 |
---|
8564 | _ACEOF |
---|
8565 | |
---|
8566 | # Files that config.status was made for. |
---|
8567 | if test -n "$ac_config_files"; then |
---|
8568 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
8569 | fi |
---|
8570 | |
---|
8571 | if test -n "$ac_config_headers"; then |
---|
8572 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
8573 | fi |
---|
8574 | |
---|
8575 | if test -n "$ac_config_links"; then |
---|
8576 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
8577 | fi |
---|
8578 | |
---|
8579 | if test -n "$ac_config_commands"; then |
---|
8580 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
8581 | fi |
---|
8582 | |
---|
8583 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8584 | |
---|
8585 | ac_cs_usage="\ |
---|
8586 | \`$as_me' instantiates files from templates according to the |
---|
8587 | current configuration. |
---|
8588 | |
---|
8589 | Usage: $0 [OPTIONS] [FILE]... |
---|
8590 | |
---|
8591 | -h, --help print this help, then exit |
---|
8592 | -V, --version print version number, then exit |
---|
8593 | -q, --quiet do not print progress messages |
---|
8594 | -d, --debug don't remove temporary files |
---|
8595 | --recheck update $as_me by reconfiguring in the same conditions |
---|
8596 | --file=FILE[:TEMPLATE] |
---|
8597 | instantiate the configuration file FILE |
---|
8598 | --header=FILE[:TEMPLATE] |
---|
8599 | instantiate the configuration header FILE |
---|
8600 | |
---|
8601 | Configuration files: |
---|
8602 | $config_files |
---|
8603 | |
---|
8604 | Configuration headers: |
---|
8605 | $config_headers |
---|
8606 | |
---|
8607 | Configuration commands: |
---|
8608 | $config_commands |
---|
8609 | |
---|
8610 | Report bugs to <bug-autoconf@gnu.org>." |
---|
8611 | _ACEOF |
---|
8612 | |
---|
8613 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8614 | ac_cs_version="\\ |
---|
8615 | orxonox config.status 0.2.3-pre-alpha |
---|
8616 | configured by $0, generated by GNU Autoconf 2.59, |
---|
8617 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
8618 | |
---|
8619 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8620 | This config.status script is free software; the Free Software Foundation |
---|
8621 | gives unlimited permission to copy, distribute and modify it." |
---|
8622 | srcdir=$srcdir |
---|
8623 | INSTALL="$INSTALL" |
---|
8624 | _ACEOF |
---|
8625 | |
---|
8626 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8627 | # If no file are specified by the user, then we need to provide default |
---|
8628 | # value. By we need to know if files were specified by the user. |
---|
8629 | ac_need_defaults=: |
---|
8630 | while test $# != 0 |
---|
8631 | do |
---|
8632 | case $1 in |
---|
8633 | --*=*) |
---|
8634 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
8635 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
8636 | ac_shift=: |
---|
8637 | ;; |
---|
8638 | -*) |
---|
8639 | ac_option=$1 |
---|
8640 | ac_optarg=$2 |
---|
8641 | ac_shift=shift |
---|
8642 | ;; |
---|
8643 | *) # This is not an option, so the user has probably given explicit |
---|
8644 | # arguments. |
---|
8645 | ac_option=$1 |
---|
8646 | ac_need_defaults=false;; |
---|
8647 | esac |
---|
8648 | |
---|
8649 | case $ac_option in |
---|
8650 | # Handling of the options. |
---|
8651 | _ACEOF |
---|
8652 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8653 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8654 | ac_cs_recheck=: ;; |
---|
8655 | --version | --vers* | -V ) |
---|
8656 | echo "$ac_cs_version"; exit 0 ;; |
---|
8657 | --he | --h) |
---|
8658 | # Conflict between --help and --header |
---|
8659 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
8660 | Try \`$0 --help' for more information." >&5 |
---|
8661 | echo "$as_me: error: ambiguous option: $1 |
---|
8662 | Try \`$0 --help' for more information." >&2;} |
---|
8663 | { (exit 1); exit 1; }; };; |
---|
8664 | --help | --hel | -h ) |
---|
8665 | echo "$ac_cs_usage"; exit 0 ;; |
---|
8666 | --debug | --d* | -d ) |
---|
8667 | debug=: ;; |
---|
8668 | --file | --fil | --fi | --f ) |
---|
8669 | $ac_shift |
---|
8670 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
8671 | ac_need_defaults=false;; |
---|
8672 | --header | --heade | --head | --hea ) |
---|
8673 | $ac_shift |
---|
8674 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
8675 | ac_need_defaults=false;; |
---|
8676 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
8677 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
8678 | ac_cs_silent=: ;; |
---|
8679 | |
---|
8680 | # This is an error. |
---|
8681 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
8682 | Try \`$0 --help' for more information." >&5 |
---|
8683 | echo "$as_me: error: unrecognized option: $1 |
---|
8684 | Try \`$0 --help' for more information." >&2;} |
---|
8685 | { (exit 1); exit 1; }; } ;; |
---|
8686 | |
---|
8687 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
8688 | |
---|
8689 | esac |
---|
8690 | shift |
---|
8691 | done |
---|
8692 | |
---|
8693 | ac_configure_extra_args= |
---|
8694 | |
---|
8695 | if $ac_cs_silent; then |
---|
8696 | exec 6>/dev/null |
---|
8697 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
8698 | fi |
---|
8699 | |
---|
8700 | _ACEOF |
---|
8701 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8702 | if \$ac_cs_recheck; then |
---|
8703 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
8704 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
8705 | fi |
---|
8706 | |
---|
8707 | _ACEOF |
---|
8708 | |
---|
8709 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8710 | # |
---|
8711 | # INIT-COMMANDS section. |
---|
8712 | # |
---|
8713 | |
---|
8714 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
8715 | |
---|
8716 | _ACEOF |
---|
8717 | |
---|
8718 | |
---|
8719 | |
---|
8720 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8721 | for ac_config_target in $ac_config_targets |
---|
8722 | do |
---|
8723 | case "$ac_config_target" in |
---|
8724 | # Handling of arguments. |
---|
8725 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
8726 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
8727 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
8728 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
8729 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
8730 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
8731 | "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;; |
---|
8732 | "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;; |
---|
8733 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
8734 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
8735 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
8736 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
8737 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
8738 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
8739 | { (exit 1); exit 1; }; };; |
---|
8740 | esac |
---|
8741 | done |
---|
8742 | |
---|
8743 | # If the user did not use the arguments to specify the items to instantiate, |
---|
8744 | # then the envvar interface is used. Set only those that are not. |
---|
8745 | # We use the long form for the default assignment because of an extremely |
---|
8746 | # bizarre bug on SunOS 4.1.3. |
---|
8747 | if $ac_need_defaults; then |
---|
8748 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
8749 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
8750 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
8751 | fi |
---|
8752 | |
---|
8753 | # Have a temporary directory for convenience. Make it in the build tree |
---|
8754 | # simply because there is no reason to put it here, and in addition, |
---|
8755 | # creating and moving files from /tmp can sometimes cause problems. |
---|
8756 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
8757 | $debug || |
---|
8758 | { |
---|
8759 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
8760 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
8761 | } |
---|
8762 | |
---|
8763 | # Create a (secure) tmp directory for tmp files. |
---|
8764 | |
---|
8765 | { |
---|
8766 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
8767 | test -n "$tmp" && test -d "$tmp" |
---|
8768 | } || |
---|
8769 | { |
---|
8770 | tmp=./confstat$$-$RANDOM |
---|
8771 | (umask 077 && mkdir $tmp) |
---|
8772 | } || |
---|
8773 | { |
---|
8774 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
8775 | { (exit 1); exit 1; } |
---|
8776 | } |
---|
8777 | |
---|
8778 | _ACEOF |
---|
8779 | |
---|
8780 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8781 | |
---|
8782 | # |
---|
8783 | # CONFIG_FILES section. |
---|
8784 | # |
---|
8785 | |
---|
8786 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
8787 | # This happens for instance when ./config.status config.h |
---|
8788 | if test -n "\$CONFIG_FILES"; then |
---|
8789 | # Protect against being on the right side of a sed subst in config.status. |
---|
8790 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
8791 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
8792 | s,@SHELL@,$SHELL,;t t |
---|
8793 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
8794 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
8795 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
8796 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
8797 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
8798 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
8799 | s,@exec_prefix@,$exec_prefix,;t t |
---|
8800 | s,@prefix@,$prefix,;t t |
---|
8801 | s,@program_transform_name@,$program_transform_name,;t t |
---|
8802 | s,@bindir@,$bindir,;t t |
---|
8803 | s,@sbindir@,$sbindir,;t t |
---|
8804 | s,@libexecdir@,$libexecdir,;t t |
---|
8805 | s,@datadir@,$datadir,;t t |
---|
8806 | s,@sysconfdir@,$sysconfdir,;t t |
---|
8807 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
8808 | s,@localstatedir@,$localstatedir,;t t |
---|
8809 | s,@libdir@,$libdir,;t t |
---|
8810 | s,@includedir@,$includedir,;t t |
---|
8811 | s,@oldincludedir@,$oldincludedir,;t t |
---|
8812 | s,@infodir@,$infodir,;t t |
---|
8813 | s,@mandir@,$mandir,;t t |
---|
8814 | s,@build_alias@,$build_alias,;t t |
---|
8815 | s,@host_alias@,$host_alias,;t t |
---|
8816 | s,@target_alias@,$target_alias,;t t |
---|
8817 | s,@DEFS@,$DEFS,;t t |
---|
8818 | s,@ECHO_C@,$ECHO_C,;t t |
---|
8819 | s,@ECHO_N@,$ECHO_N,;t t |
---|
8820 | s,@ECHO_T@,$ECHO_T,;t t |
---|
8821 | s,@LIBS@,$LIBS,;t t |
---|
8822 | s,@build@,$build,;t t |
---|
8823 | s,@build_cpu@,$build_cpu,;t t |
---|
8824 | s,@build_vendor@,$build_vendor,;t t |
---|
8825 | s,@build_os@,$build_os,;t t |
---|
8826 | s,@host@,$host,;t t |
---|
8827 | s,@host_cpu@,$host_cpu,;t t |
---|
8828 | s,@host_vendor@,$host_vendor,;t t |
---|
8829 | s,@host_os@,$host_os,;t t |
---|
8830 | s,@target@,$target,;t t |
---|
8831 | s,@target_cpu@,$target_cpu,;t t |
---|
8832 | s,@target_vendor@,$target_vendor,;t t |
---|
8833 | s,@target_os@,$target_os,;t t |
---|
8834 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
8835 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
8836 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
8837 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
8838 | s,@PACKAGE@,$PACKAGE,;t t |
---|
8839 | s,@VERSION@,$VERSION,;t t |
---|
8840 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
8841 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
8842 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
8843 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
8844 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
8845 | s,@AMTAR@,$AMTAR,;t t |
---|
8846 | s,@install_sh@,$install_sh,;t t |
---|
8847 | s,@STRIP@,$STRIP,;t t |
---|
8848 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
8849 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
8850 | s,@mkdir_p@,$mkdir_p,;t t |
---|
8851 | s,@AWK@,$AWK,;t t |
---|
8852 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
8853 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
8854 | s,@CXX@,$CXX,;t t |
---|
8855 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
8856 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
8857 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
8858 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
8859 | s,@EXEEXT@,$EXEEXT,;t t |
---|
8860 | s,@OBJEXT@,$OBJEXT,;t t |
---|
8861 | s,@DEPDIR@,$DEPDIR,;t t |
---|
8862 | s,@am__include@,$am__include,;t t |
---|
8863 | s,@am__quote@,$am__quote,;t t |
---|
8864 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
8865 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
8866 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
8867 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
8868 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
8869 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
8870 | s,@CC@,$CC,;t t |
---|
8871 | s,@CFLAGS@,$CFLAGS,;t t |
---|
8872 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
8873 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
8874 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
8875 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
8876 | s,@CPP@,$CPP,;t t |
---|
8877 | s,@EGREP@,$EGREP,;t t |
---|
8878 | s,@DEBUG@,$DEBUG,;t t |
---|
8879 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
8880 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
8881 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
8882 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
8883 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
8884 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
8885 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
8886 | s,@GPROF@,$GPROF,;t t |
---|
8887 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
8888 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
8889 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
8890 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
8891 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
8892 | s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t |
---|
8893 | s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t |
---|
8894 | s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t |
---|
8895 | s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t |
---|
8896 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
8897 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
8898 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
8899 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
8900 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
8901 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
8902 | CEOF |
---|
8903 | |
---|
8904 | _ACEOF |
---|
8905 | |
---|
8906 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8907 | # Split the substitutions into bite-sized pieces for seds with |
---|
8908 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
8909 | ac_max_sed_lines=48 |
---|
8910 | ac_sed_frag=1 # Number of current file. |
---|
8911 | ac_beg=1 # First line for current file. |
---|
8912 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
8913 | ac_more_lines=: |
---|
8914 | ac_sed_cmds= |
---|
8915 | while $ac_more_lines; do |
---|
8916 | if test $ac_beg -gt 1; then |
---|
8917 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8918 | else |
---|
8919 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8920 | fi |
---|
8921 | if test ! -s $tmp/subs.frag; then |
---|
8922 | ac_more_lines=false |
---|
8923 | else |
---|
8924 | # The purpose of the label and of the branching condition is to |
---|
8925 | # speed up the sed processing (if there are no `@' at all, there |
---|
8926 | # is no need to browse any of the substitutions). |
---|
8927 | # These are the two extra sed commands mentioned above. |
---|
8928 | (echo ':t |
---|
8929 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
8930 | if test -z "$ac_sed_cmds"; then |
---|
8931 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8932 | else |
---|
8933 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8934 | fi |
---|
8935 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
8936 | ac_beg=$ac_end |
---|
8937 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
8938 | fi |
---|
8939 | done |
---|
8940 | if test -z "$ac_sed_cmds"; then |
---|
8941 | ac_sed_cmds=cat |
---|
8942 | fi |
---|
8943 | fi # test -n "$CONFIG_FILES" |
---|
8944 | |
---|
8945 | _ACEOF |
---|
8946 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8947 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
8948 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8949 | case $ac_file in |
---|
8950 | - | *:- | *:-:* ) # input from stdin |
---|
8951 | cat >$tmp/stdin |
---|
8952 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8953 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8954 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8955 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8956 | * ) ac_file_in=$ac_file.in ;; |
---|
8957 | esac |
---|
8958 | |
---|
8959 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
8960 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8961 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8962 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8963 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8964 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8965 | . : '\(.\)' 2>/dev/null || |
---|
8966 | echo X"$ac_file" | |
---|
8967 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8968 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8969 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8970 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8971 | s/.*/./; q'` |
---|
8972 | { if $as_mkdir_p; then |
---|
8973 | mkdir -p "$ac_dir" |
---|
8974 | else |
---|
8975 | as_dir="$ac_dir" |
---|
8976 | as_dirs= |
---|
8977 | while test ! -d "$as_dir"; do |
---|
8978 | as_dirs="$as_dir $as_dirs" |
---|
8979 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8980 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8981 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8982 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8983 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8984 | . : '\(.\)' 2>/dev/null || |
---|
8985 | echo X"$as_dir" | |
---|
8986 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8987 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8988 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8989 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8990 | s/.*/./; q'` |
---|
8991 | done |
---|
8992 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8993 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8994 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8995 | { (exit 1); exit 1; }; }; } |
---|
8996 | |
---|
8997 | ac_builddir=. |
---|
8998 | |
---|
8999 | if test "$ac_dir" != .; then |
---|
9000 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
9001 | # A "../" for each directory in $ac_dir_suffix. |
---|
9002 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
9003 | else |
---|
9004 | ac_dir_suffix= ac_top_builddir= |
---|
9005 | fi |
---|
9006 | |
---|
9007 | case $srcdir in |
---|
9008 | .) # No --srcdir option. We are building in place. |
---|
9009 | ac_srcdir=. |
---|
9010 | if test -z "$ac_top_builddir"; then |
---|
9011 | ac_top_srcdir=. |
---|
9012 | else |
---|
9013 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
9014 | fi ;; |
---|
9015 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
9016 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
9017 | ac_top_srcdir=$srcdir ;; |
---|
9018 | *) # Relative path. |
---|
9019 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
9020 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
9021 | esac |
---|
9022 | |
---|
9023 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
9024 | # the directories may not exist. |
---|
9025 | case `pwd` in |
---|
9026 | .) ac_abs_builddir="$ac_dir";; |
---|
9027 | *) |
---|
9028 | case "$ac_dir" in |
---|
9029 | .) ac_abs_builddir=`pwd`;; |
---|
9030 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
9031 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
9032 | esac;; |
---|
9033 | esac |
---|
9034 | case $ac_abs_builddir in |
---|
9035 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9036 | *) |
---|
9037 | case ${ac_top_builddir}. in |
---|
9038 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
9039 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9040 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
9041 | esac;; |
---|
9042 | esac |
---|
9043 | case $ac_abs_builddir in |
---|
9044 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
9045 | *) |
---|
9046 | case $ac_srcdir in |
---|
9047 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
9048 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
9049 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
9050 | esac;; |
---|
9051 | esac |
---|
9052 | case $ac_abs_builddir in |
---|
9053 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9054 | *) |
---|
9055 | case $ac_top_srcdir in |
---|
9056 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
9057 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9058 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
9059 | esac;; |
---|
9060 | esac |
---|
9061 | |
---|
9062 | |
---|
9063 | case $INSTALL in |
---|
9064 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
9065 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
9066 | esac |
---|
9067 | |
---|
9068 | if test x"$ac_file" != x-; then |
---|
9069 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
9070 | echo "$as_me: creating $ac_file" >&6;} |
---|
9071 | rm -f "$ac_file" |
---|
9072 | fi |
---|
9073 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
9074 | # use $as_me), people would be surprised to read: |
---|
9075 | # /* config.h. Generated by config.status. */ |
---|
9076 | if test x"$ac_file" = x-; then |
---|
9077 | configure_input= |
---|
9078 | else |
---|
9079 | configure_input="$ac_file. " |
---|
9080 | fi |
---|
9081 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
9082 | sed 's,.*/,,'` by configure." |
---|
9083 | |
---|
9084 | # First look for the input files in the build tree, otherwise in the |
---|
9085 | # src tree. |
---|
9086 | ac_file_inputs=`IFS=: |
---|
9087 | for f in $ac_file_in; do |
---|
9088 | case $f in |
---|
9089 | -) echo $tmp/stdin ;; |
---|
9090 | [\\/$]*) |
---|
9091 | # Absolute (can't be DOS-style, as IFS=:) |
---|
9092 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
9093 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
9094 | { (exit 1); exit 1; }; } |
---|
9095 | echo "$f";; |
---|
9096 | *) # Relative |
---|
9097 | if test -f "$f"; then |
---|
9098 | # Build tree |
---|
9099 | echo "$f" |
---|
9100 | elif test -f "$srcdir/$f"; then |
---|
9101 | # Source tree |
---|
9102 | echo "$srcdir/$f" |
---|
9103 | else |
---|
9104 | # /dev/null tree |
---|
9105 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
9106 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
9107 | { (exit 1); exit 1; }; } |
---|
9108 | fi;; |
---|
9109 | esac |
---|
9110 | done` || { (exit 1); exit 1; } |
---|
9111 | _ACEOF |
---|
9112 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
9113 | sed "$ac_vpsub |
---|
9114 | $extrasub |
---|
9115 | _ACEOF |
---|
9116 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9117 | :t |
---|
9118 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
9119 | s,@configure_input@,$configure_input,;t t |
---|
9120 | s,@srcdir@,$ac_srcdir,;t t |
---|
9121 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
9122 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
9123 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
9124 | s,@builddir@,$ac_builddir,;t t |
---|
9125 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
9126 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
9127 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
9128 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
9129 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
9130 | rm -f $tmp/stdin |
---|
9131 | if test x"$ac_file" != x-; then |
---|
9132 | mv $tmp/out $ac_file |
---|
9133 | else |
---|
9134 | cat $tmp/out |
---|
9135 | rm -f $tmp/out |
---|
9136 | fi |
---|
9137 | |
---|
9138 | done |
---|
9139 | _ACEOF |
---|
9140 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9141 | |
---|
9142 | # |
---|
9143 | # CONFIG_HEADER section. |
---|
9144 | # |
---|
9145 | |
---|
9146 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
9147 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
9148 | # |
---|
9149 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
9150 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
9151 | ac_dB='[ ].*$,\1#\2' |
---|
9152 | ac_dC=' ' |
---|
9153 | ac_dD=',;t' |
---|
9154 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
9155 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
9156 | ac_uB='$,\1#\2define\3' |
---|
9157 | ac_uC=' ' |
---|
9158 | ac_uD=',;t' |
---|
9159 | |
---|
9160 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
9161 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
9162 | case $ac_file in |
---|
9163 | - | *:- | *:-:* ) # input from stdin |
---|
9164 | cat >$tmp/stdin |
---|
9165 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
9166 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
9167 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
9168 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
9169 | * ) ac_file_in=$ac_file.in ;; |
---|
9170 | esac |
---|
9171 | |
---|
9172 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
9173 | echo "$as_me: creating $ac_file" >&6;} |
---|
9174 | |
---|
9175 | # First look for the input files in the build tree, otherwise in the |
---|
9176 | # src tree. |
---|
9177 | ac_file_inputs=`IFS=: |
---|
9178 | for f in $ac_file_in; do |
---|
9179 | case $f in |
---|
9180 | -) echo $tmp/stdin ;; |
---|
9181 | [\\/$]*) |
---|
9182 | # Absolute (can't be DOS-style, as IFS=:) |
---|
9183 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
9184 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
9185 | { (exit 1); exit 1; }; } |
---|
9186 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
9187 | echo "$f";; |
---|
9188 | *) # Relative |
---|
9189 | if test -f "$f"; then |
---|
9190 | # Build tree |
---|
9191 | echo "$f" |
---|
9192 | elif test -f "$srcdir/$f"; then |
---|
9193 | # Source tree |
---|
9194 | echo "$srcdir/$f" |
---|
9195 | else |
---|
9196 | # /dev/null tree |
---|
9197 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
9198 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
9199 | { (exit 1); exit 1; }; } |
---|
9200 | fi;; |
---|
9201 | esac |
---|
9202 | done` || { (exit 1); exit 1; } |
---|
9203 | # Remove the trailing spaces. |
---|
9204 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
9205 | |
---|
9206 | _ACEOF |
---|
9207 | |
---|
9208 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
9209 | # `conftest.undefs', that substitutes the proper values into |
---|
9210 | # config.h.in to produce config.h. The first handles `#define' |
---|
9211 | # templates, and the second `#undef' templates. |
---|
9212 | # And first: Protect against being on the right side of a sed subst in |
---|
9213 | # config.status. Protect against being in an unquoted here document |
---|
9214 | # in config.status. |
---|
9215 | rm -f conftest.defines conftest.undefs |
---|
9216 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
9217 | # Putting comments in sed scripts is not portable. |
---|
9218 | # |
---|
9219 | # `end' is used to avoid that the second main sed command (meant for |
---|
9220 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
9221 | # See the Autoconf documentation for `clear'. |
---|
9222 | cat >confdef2sed.sed <<\_ACEOF |
---|
9223 | s/[\\&,]/\\&/g |
---|
9224 | s,[\\$`],\\&,g |
---|
9225 | t clear |
---|
9226 | : clear |
---|
9227 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
9228 | t end |
---|
9229 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
9230 | : end |
---|
9231 | _ACEOF |
---|
9232 | # If some macros were called several times there might be several times |
---|
9233 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
9234 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
9235 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
9236 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
9237 | rm -f confdef2sed.sed |
---|
9238 | |
---|
9239 | # This sed command replaces #undef with comments. This is necessary, for |
---|
9240 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
9241 | # on some systems where configure will not decide to define it. |
---|
9242 | cat >>conftest.undefs <<\_ACEOF |
---|
9243 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
9244 | _ACEOF |
---|
9245 | |
---|
9246 | # Break up conftest.defines because some shells have a limit on the size |
---|
9247 | # of here documents, and old seds have small limits too (100 cmds). |
---|
9248 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
9249 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
9250 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
9251 | echo ' :' >>$CONFIG_STATUS |
---|
9252 | rm -f conftest.tail |
---|
9253 | while grep . conftest.defines >/dev/null |
---|
9254 | do |
---|
9255 | # Write a limited-size here document to $tmp/defines.sed. |
---|
9256 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
9257 | # Speed up: don't consider the non `#define' lines. |
---|
9258 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
9259 | # Work around the forget-to-reset-the-flag bug. |
---|
9260 | echo 't clr' >>$CONFIG_STATUS |
---|
9261 | echo ': clr' >>$CONFIG_STATUS |
---|
9262 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
9263 | echo 'CEOF |
---|
9264 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
9265 | rm -f $tmp/in |
---|
9266 | mv $tmp/out $tmp/in |
---|
9267 | ' >>$CONFIG_STATUS |
---|
9268 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
9269 | rm -f conftest.defines |
---|
9270 | mv conftest.tail conftest.defines |
---|
9271 | done |
---|
9272 | rm -f conftest.defines |
---|
9273 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
9274 | echo >>$CONFIG_STATUS |
---|
9275 | |
---|
9276 | # Break up conftest.undefs because some shells have a limit on the size |
---|
9277 | # of here documents, and old seds have small limits too (100 cmds). |
---|
9278 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
9279 | rm -f conftest.tail |
---|
9280 | while grep . conftest.undefs >/dev/null |
---|
9281 | do |
---|
9282 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
9283 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
9284 | # Speed up: don't consider the non `#undef' |
---|
9285 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
9286 | # Work around the forget-to-reset-the-flag bug. |
---|
9287 | echo 't clr' >>$CONFIG_STATUS |
---|
9288 | echo ': clr' >>$CONFIG_STATUS |
---|
9289 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
9290 | echo 'CEOF |
---|
9291 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
9292 | rm -f $tmp/in |
---|
9293 | mv $tmp/out $tmp/in |
---|
9294 | ' >>$CONFIG_STATUS |
---|
9295 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
9296 | rm -f conftest.undefs |
---|
9297 | mv conftest.tail conftest.undefs |
---|
9298 | done |
---|
9299 | rm -f conftest.undefs |
---|
9300 | |
---|
9301 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9302 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
9303 | # use $as_me), people would be surprised to read: |
---|
9304 | # /* config.h. Generated by config.status. */ |
---|
9305 | if test x"$ac_file" = x-; then |
---|
9306 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
9307 | else |
---|
9308 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
9309 | fi |
---|
9310 | cat $tmp/in >>$tmp/config.h |
---|
9311 | rm -f $tmp/in |
---|
9312 | if test x"$ac_file" != x-; then |
---|
9313 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
9314 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
9315 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
9316 | else |
---|
9317 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
9318 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9319 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
9320 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
9321 | X"$ac_file" : 'X\(/\)' \| \ |
---|
9322 | . : '\(.\)' 2>/dev/null || |
---|
9323 | echo X"$ac_file" | |
---|
9324 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9325 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9326 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9327 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9328 | s/.*/./; q'` |
---|
9329 | { if $as_mkdir_p; then |
---|
9330 | mkdir -p "$ac_dir" |
---|
9331 | else |
---|
9332 | as_dir="$ac_dir" |
---|
9333 | as_dirs= |
---|
9334 | while test ! -d "$as_dir"; do |
---|
9335 | as_dirs="$as_dir $as_dirs" |
---|
9336 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9337 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9338 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9339 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9340 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9341 | . : '\(.\)' 2>/dev/null || |
---|
9342 | echo X"$as_dir" | |
---|
9343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9344 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9345 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9346 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9347 | s/.*/./; q'` |
---|
9348 | done |
---|
9349 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9350 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
9351 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
9352 | { (exit 1); exit 1; }; }; } |
---|
9353 | |
---|
9354 | rm -f $ac_file |
---|
9355 | mv $tmp/config.h $ac_file |
---|
9356 | fi |
---|
9357 | else |
---|
9358 | cat $tmp/config.h |
---|
9359 | rm -f $tmp/config.h |
---|
9360 | fi |
---|
9361 | # Compute $ac_file's index in $config_headers. |
---|
9362 | _am_stamp_count=1 |
---|
9363 | for _am_header in $config_headers :; do |
---|
9364 | case $_am_header in |
---|
9365 | $ac_file | $ac_file:* ) |
---|
9366 | break ;; |
---|
9367 | * ) |
---|
9368 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
9369 | esac |
---|
9370 | done |
---|
9371 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
9372 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9373 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
9374 | X$ac_file : 'X\(//\)$' \| \ |
---|
9375 | X$ac_file : 'X\(/\)' \| \ |
---|
9376 | . : '\(.\)' 2>/dev/null || |
---|
9377 | echo X$ac_file | |
---|
9378 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9379 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9380 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9381 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9382 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
9383 | done |
---|
9384 | _ACEOF |
---|
9385 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9386 | |
---|
9387 | # |
---|
9388 | # CONFIG_COMMANDS section. |
---|
9389 | # |
---|
9390 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
9391 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
9392 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
9393 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
9394 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9395 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
9396 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
9397 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
9398 | . : '\(.\)' 2>/dev/null || |
---|
9399 | echo X"$ac_dest" | |
---|
9400 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9401 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9402 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9403 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9404 | s/.*/./; q'` |
---|
9405 | { if $as_mkdir_p; then |
---|
9406 | mkdir -p "$ac_dir" |
---|
9407 | else |
---|
9408 | as_dir="$ac_dir" |
---|
9409 | as_dirs= |
---|
9410 | while test ! -d "$as_dir"; do |
---|
9411 | as_dirs="$as_dir $as_dirs" |
---|
9412 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9413 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9414 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9415 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9416 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9417 | . : '\(.\)' 2>/dev/null || |
---|
9418 | echo X"$as_dir" | |
---|
9419 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9420 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9421 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9422 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9423 | s/.*/./; q'` |
---|
9424 | done |
---|
9425 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9426 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
9427 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
9428 | { (exit 1); exit 1; }; }; } |
---|
9429 | |
---|
9430 | ac_builddir=. |
---|
9431 | |
---|
9432 | if test "$ac_dir" != .; then |
---|
9433 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
9434 | # A "../" for each directory in $ac_dir_suffix. |
---|
9435 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
9436 | else |
---|
9437 | ac_dir_suffix= ac_top_builddir= |
---|
9438 | fi |
---|
9439 | |
---|
9440 | case $srcdir in |
---|
9441 | .) # No --srcdir option. We are building in place. |
---|
9442 | ac_srcdir=. |
---|
9443 | if test -z "$ac_top_builddir"; then |
---|
9444 | ac_top_srcdir=. |
---|
9445 | else |
---|
9446 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
9447 | fi ;; |
---|
9448 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
9449 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
9450 | ac_top_srcdir=$srcdir ;; |
---|
9451 | *) # Relative path. |
---|
9452 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
9453 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
9454 | esac |
---|
9455 | |
---|
9456 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
9457 | # the directories may not exist. |
---|
9458 | case `pwd` in |
---|
9459 | .) ac_abs_builddir="$ac_dir";; |
---|
9460 | *) |
---|
9461 | case "$ac_dir" in |
---|
9462 | .) ac_abs_builddir=`pwd`;; |
---|
9463 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
9464 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
9465 | esac;; |
---|
9466 | esac |
---|
9467 | case $ac_abs_builddir in |
---|
9468 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9469 | *) |
---|
9470 | case ${ac_top_builddir}. in |
---|
9471 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
9472 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9473 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
9474 | esac;; |
---|
9475 | esac |
---|
9476 | case $ac_abs_builddir in |
---|
9477 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
9478 | *) |
---|
9479 | case $ac_srcdir in |
---|
9480 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
9481 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
9482 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
9483 | esac;; |
---|
9484 | esac |
---|
9485 | case $ac_abs_builddir in |
---|
9486 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9487 | *) |
---|
9488 | case $ac_top_srcdir in |
---|
9489 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
9490 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9491 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
9492 | esac;; |
---|
9493 | esac |
---|
9494 | |
---|
9495 | |
---|
9496 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
9497 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
9498 | case $ac_dest in |
---|
9499 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
9500 | # Strip MF so we end up with the name of the file. |
---|
9501 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
9502 | # Check whether this is an Automake generated Makefile or not. |
---|
9503 | # We used to match only the files named `Makefile.in', but |
---|
9504 | # some people rename them; so instead we look at the file content. |
---|
9505 | # Grep'ing the first line is not enough: some people post-process |
---|
9506 | # each Makefile.in and add a new line on top of each file to say so. |
---|
9507 | # So let's grep whole file. |
---|
9508 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
9509 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
9510 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9511 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
9512 | X"$mf" : 'X\(//\)$' \| \ |
---|
9513 | X"$mf" : 'X\(/\)' \| \ |
---|
9514 | . : '\(.\)' 2>/dev/null || |
---|
9515 | echo X"$mf" | |
---|
9516 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9517 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9518 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9519 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9520 | s/.*/./; q'` |
---|
9521 | else |
---|
9522 | continue |
---|
9523 | fi |
---|
9524 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
9525 | # Extract the definition of DEP_FILES from the Makefile without |
---|
9526 | # running `make'. |
---|
9527 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
9528 | test -z "$DEPDIR" && continue |
---|
9529 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
9530 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
9531 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
9532 | # We invoke sed twice because it is the simplest approach to |
---|
9533 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
9534 | for file in `sed -n -e ' |
---|
9535 | /^DEP_FILES = .*\\\\$/ { |
---|
9536 | s/^DEP_FILES = // |
---|
9537 | :loop |
---|
9538 | s/\\\\$// |
---|
9539 | p |
---|
9540 | n |
---|
9541 | /\\\\$/ b loop |
---|
9542 | p |
---|
9543 | } |
---|
9544 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
9545 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
9546 | # Make sure the directory exists. |
---|
9547 | test -f "$dirpart/$file" && continue |
---|
9548 | fdir=`(dirname "$file") 2>/dev/null || |
---|
9549 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9550 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
9551 | X"$file" : 'X\(//\)$' \| \ |
---|
9552 | X"$file" : 'X\(/\)' \| \ |
---|
9553 | . : '\(.\)' 2>/dev/null || |
---|
9554 | echo X"$file" | |
---|
9555 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9556 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9557 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9558 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9559 | s/.*/./; q'` |
---|
9560 | { if $as_mkdir_p; then |
---|
9561 | mkdir -p $dirpart/$fdir |
---|
9562 | else |
---|
9563 | as_dir=$dirpart/$fdir |
---|
9564 | as_dirs= |
---|
9565 | while test ! -d "$as_dir"; do |
---|
9566 | as_dirs="$as_dir $as_dirs" |
---|
9567 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9568 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9569 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9570 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9571 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9572 | . : '\(.\)' 2>/dev/null || |
---|
9573 | echo X"$as_dir" | |
---|
9574 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9575 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9576 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9577 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9578 | s/.*/./; q'` |
---|
9579 | done |
---|
9580 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9581 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
9582 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
9583 | { (exit 1); exit 1; }; }; } |
---|
9584 | |
---|
9585 | # echo "creating $dirpart/$file" |
---|
9586 | echo '# dummy' > "$dirpart/$file" |
---|
9587 | done |
---|
9588 | done |
---|
9589 | ;; |
---|
9590 | esac |
---|
9591 | done |
---|
9592 | _ACEOF |
---|
9593 | |
---|
9594 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9595 | |
---|
9596 | { (exit 0); exit 0; } |
---|
9597 | _ACEOF |
---|
9598 | chmod +x $CONFIG_STATUS |
---|
9599 | ac_clean_files=$ac_clean_files_save |
---|
9600 | |
---|
9601 | |
---|
9602 | # configure is writing to config.log, and then calls config.status. |
---|
9603 | # config.status does its own redirection, appending to config.log. |
---|
9604 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
9605 | # by configure, so config.status won't be able to write to it; its |
---|
9606 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
9607 | # effectively closing config.log, so it can be properly (re)opened and |
---|
9608 | # appended to by config.status. When coming back to configure, we |
---|
9609 | # need to make the FD available again. |
---|
9610 | if test "$no_create" != yes; then |
---|
9611 | ac_cs_success=: |
---|
9612 | ac_config_status_args= |
---|
9613 | test "$silent" = yes && |
---|
9614 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
9615 | exec 5>/dev/null |
---|
9616 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
9617 | exec 5>>config.log |
---|
9618 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
9619 | # would make configure fail if this is the last instruction. |
---|
9620 | $ac_cs_success || { (exit 1); exit 1; } |
---|
9621 | fi |
---|
9622 | |
---|