1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.1-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.1-pre-alpha' |
---|
273 | PACKAGE_STRING='orxonox 0.2.1-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 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.1-pre-alpha to adapt to many kinds of systems. |
---|
792 | |
---|
793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
794 | |
---|
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
797 | |
---|
798 | Defaults for the options are specified in brackets. |
---|
799 | |
---|
800 | Configuration: |
---|
801 | -h, --help display this help and exit |
---|
802 | --help=short display options specific to this package |
---|
803 | --help=recursive display the short help of all the included packages |
---|
804 | -V, --version display version information and exit |
---|
805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
808 | -n, --no-create do not create output files |
---|
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
810 | |
---|
811 | _ACEOF |
---|
812 | |
---|
813 | cat <<_ACEOF |
---|
814 | Installation directories: |
---|
815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
816 | [$ac_default_prefix] |
---|
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
818 | [PREFIX] |
---|
819 | |
---|
820 | By default, \`make install' will install all the files in |
---|
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
823 | for instance \`--prefix=\$HOME'. |
---|
824 | |
---|
825 | For better control, use the options below. |
---|
826 | |
---|
827 | Fine tuning of the installation directories: |
---|
828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
836 | --includedir=DIR C header files [PREFIX/include] |
---|
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
838 | --infodir=DIR info documentation [PREFIX/info] |
---|
839 | --mandir=DIR man documentation [PREFIX/man] |
---|
840 | _ACEOF |
---|
841 | |
---|
842 | cat <<\_ACEOF |
---|
843 | |
---|
844 | Program names: |
---|
845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
848 | |
---|
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.1-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 | --enable-sub-projects also builds the subProjects while make from srcdir |
---|
870 | --enable-documentation also builds the sDocumentation while make from |
---|
871 | srcdir |
---|
872 | |
---|
873 | Optional Packages: |
---|
874 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
875 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
876 | --without-gtk Prevents GTK from being loaded |
---|
877 | --without-gthread Prevents gThread from being loaded |
---|
878 | --without-pthread Prevents pthread from being loaded |
---|
879 | --without-curl Prevents libcURL from being loaded |
---|
880 | --without-sdl-image Prevents SDL_image from being loaded |
---|
881 | |
---|
882 | Some influential environment variables: |
---|
883 | CXX C++ compiler command |
---|
884 | CXXFLAGS C++ compiler flags |
---|
885 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
886 | nonstandard directory <lib dir> |
---|
887 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
888 | headers in a nonstandard directory <include dir> |
---|
889 | CC C compiler command |
---|
890 | CFLAGS C compiler flags |
---|
891 | CPP C preprocessor |
---|
892 | |
---|
893 | Use these variables to override the choices made by `configure' or to help |
---|
894 | it to find libraries and programs with nonstandard names/locations. |
---|
895 | |
---|
896 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
897 | _ACEOF |
---|
898 | fi |
---|
899 | |
---|
900 | if test "$ac_init_help" = "recursive"; then |
---|
901 | # If there are subdirs, report their specific --help. |
---|
902 | ac_popdir=`pwd` |
---|
903 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
904 | test -d $ac_dir || continue |
---|
905 | ac_builddir=. |
---|
906 | |
---|
907 | if test "$ac_dir" != .; then |
---|
908 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
909 | # A "../" for each directory in $ac_dir_suffix. |
---|
910 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
911 | else |
---|
912 | ac_dir_suffix= ac_top_builddir= |
---|
913 | fi |
---|
914 | |
---|
915 | case $srcdir in |
---|
916 | .) # No --srcdir option. We are building in place. |
---|
917 | ac_srcdir=. |
---|
918 | if test -z "$ac_top_builddir"; then |
---|
919 | ac_top_srcdir=. |
---|
920 | else |
---|
921 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
922 | fi ;; |
---|
923 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
924 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
925 | ac_top_srcdir=$srcdir ;; |
---|
926 | *) # Relative path. |
---|
927 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
928 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
929 | esac |
---|
930 | |
---|
931 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
932 | # the directories may not exist. |
---|
933 | case `pwd` in |
---|
934 | .) ac_abs_builddir="$ac_dir";; |
---|
935 | *) |
---|
936 | case "$ac_dir" in |
---|
937 | .) ac_abs_builddir=`pwd`;; |
---|
938 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
939 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
940 | esac;; |
---|
941 | esac |
---|
942 | case $ac_abs_builddir in |
---|
943 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
944 | *) |
---|
945 | case ${ac_top_builddir}. in |
---|
946 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
947 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
948 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
949 | esac;; |
---|
950 | esac |
---|
951 | case $ac_abs_builddir in |
---|
952 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
953 | *) |
---|
954 | case $ac_srcdir in |
---|
955 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
956 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
957 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
958 | esac;; |
---|
959 | esac |
---|
960 | case $ac_abs_builddir in |
---|
961 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
962 | *) |
---|
963 | case $ac_top_srcdir in |
---|
964 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
965 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
966 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
967 | esac;; |
---|
968 | esac |
---|
969 | |
---|
970 | cd $ac_dir |
---|
971 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
972 | if test -f $ac_srcdir/configure.gnu; then |
---|
973 | echo |
---|
974 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
975 | elif test -f $ac_srcdir/configure; then |
---|
976 | echo |
---|
977 | $SHELL $ac_srcdir/configure --help=recursive |
---|
978 | elif test -f $ac_srcdir/configure.ac || |
---|
979 | test -f $ac_srcdir/configure.in; then |
---|
980 | echo |
---|
981 | $ac_configure --help |
---|
982 | else |
---|
983 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
984 | fi |
---|
985 | cd $ac_popdir |
---|
986 | done |
---|
987 | fi |
---|
988 | |
---|
989 | test -n "$ac_init_help" && exit 0 |
---|
990 | if $ac_init_version; then |
---|
991 | cat <<\_ACEOF |
---|
992 | orxonox configure 0.2.1-pre-alpha |
---|
993 | generated by GNU Autoconf 2.59 |
---|
994 | |
---|
995 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
996 | This configure script is free software; the Free Software Foundation |
---|
997 | gives unlimited permission to copy, distribute and modify it. |
---|
998 | _ACEOF |
---|
999 | exit 0 |
---|
1000 | fi |
---|
1001 | exec 5>config.log |
---|
1002 | cat >&5 <<_ACEOF |
---|
1003 | This file contains any messages produced by compilers while |
---|
1004 | running configure, to aid debugging if configure makes a mistake. |
---|
1005 | |
---|
1006 | It was created by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
1007 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1008 | |
---|
1009 | $ $0 $@ |
---|
1010 | |
---|
1011 | _ACEOF |
---|
1012 | { |
---|
1013 | cat <<_ASUNAME |
---|
1014 | ## --------- ## |
---|
1015 | ## Platform. ## |
---|
1016 | ## --------- ## |
---|
1017 | |
---|
1018 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1019 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1020 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1021 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1022 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1023 | |
---|
1024 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1025 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1026 | |
---|
1027 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1028 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1029 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1030 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1031 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1032 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1033 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1034 | |
---|
1035 | _ASUNAME |
---|
1036 | |
---|
1037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1038 | for as_dir in $PATH |
---|
1039 | do |
---|
1040 | IFS=$as_save_IFS |
---|
1041 | test -z "$as_dir" && as_dir=. |
---|
1042 | echo "PATH: $as_dir" |
---|
1043 | done |
---|
1044 | |
---|
1045 | } >&5 |
---|
1046 | |
---|
1047 | cat >&5 <<_ACEOF |
---|
1048 | |
---|
1049 | |
---|
1050 | ## ----------- ## |
---|
1051 | ## Core tests. ## |
---|
1052 | ## ----------- ## |
---|
1053 | |
---|
1054 | _ACEOF |
---|
1055 | |
---|
1056 | |
---|
1057 | # Keep a trace of the command line. |
---|
1058 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1059 | # Strip out --silent because we don't want to record it for future runs. |
---|
1060 | # Also quote any args containing shell meta-characters. |
---|
1061 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1062 | ac_configure_args= |
---|
1063 | ac_configure_args0= |
---|
1064 | ac_configure_args1= |
---|
1065 | ac_sep= |
---|
1066 | ac_must_keep_next=false |
---|
1067 | for ac_pass in 1 2 |
---|
1068 | do |
---|
1069 | for ac_arg |
---|
1070 | do |
---|
1071 | case $ac_arg in |
---|
1072 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1073 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1074 | | -silent | --silent | --silen | --sile | --sil) |
---|
1075 | continue ;; |
---|
1076 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1077 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1078 | esac |
---|
1079 | case $ac_pass in |
---|
1080 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1081 | 2) |
---|
1082 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1083 | if test $ac_must_keep_next = true; then |
---|
1084 | ac_must_keep_next=false # Got value, back to normal. |
---|
1085 | else |
---|
1086 | case $ac_arg in |
---|
1087 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1088 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1089 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1090 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1091 | case "$ac_configure_args0 " in |
---|
1092 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1093 | esac |
---|
1094 | ;; |
---|
1095 | -* ) ac_must_keep_next=true ;; |
---|
1096 | esac |
---|
1097 | fi |
---|
1098 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1099 | # Get rid of the leading space. |
---|
1100 | ac_sep=" " |
---|
1101 | ;; |
---|
1102 | esac |
---|
1103 | done |
---|
1104 | done |
---|
1105 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1106 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1107 | |
---|
1108 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1109 | # config.log. We remove comments because anyway the quotes in there |
---|
1110 | # would cause problems or look ugly. |
---|
1111 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1112 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1113 | trap 'exit_status=$? |
---|
1114 | # Save into config.log some information that might help in debugging. |
---|
1115 | { |
---|
1116 | echo |
---|
1117 | |
---|
1118 | cat <<\_ASBOX |
---|
1119 | ## ---------------- ## |
---|
1120 | ## Cache variables. ## |
---|
1121 | ## ---------------- ## |
---|
1122 | _ASBOX |
---|
1123 | echo |
---|
1124 | # The following way of writing the cache mishandles newlines in values, |
---|
1125 | { |
---|
1126 | (set) 2>&1 | |
---|
1127 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1128 | *ac_space=\ *) |
---|
1129 | sed -n \ |
---|
1130 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1132 | ;; |
---|
1133 | *) |
---|
1134 | sed -n \ |
---|
1135 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1136 | ;; |
---|
1137 | esac; |
---|
1138 | } |
---|
1139 | echo |
---|
1140 | |
---|
1141 | cat <<\_ASBOX |
---|
1142 | ## ----------------- ## |
---|
1143 | ## Output variables. ## |
---|
1144 | ## ----------------- ## |
---|
1145 | _ASBOX |
---|
1146 | echo |
---|
1147 | for ac_var in $ac_subst_vars |
---|
1148 | do |
---|
1149 | eval ac_val=$`echo $ac_var` |
---|
1150 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1151 | done | sort |
---|
1152 | echo |
---|
1153 | |
---|
1154 | if test -n "$ac_subst_files"; then |
---|
1155 | cat <<\_ASBOX |
---|
1156 | ## ------------- ## |
---|
1157 | ## Output files. ## |
---|
1158 | ## ------------- ## |
---|
1159 | _ASBOX |
---|
1160 | echo |
---|
1161 | for ac_var in $ac_subst_files |
---|
1162 | do |
---|
1163 | eval ac_val=$`echo $ac_var` |
---|
1164 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1165 | done | sort |
---|
1166 | echo |
---|
1167 | fi |
---|
1168 | |
---|
1169 | if test -s confdefs.h; then |
---|
1170 | cat <<\_ASBOX |
---|
1171 | ## ----------- ## |
---|
1172 | ## confdefs.h. ## |
---|
1173 | ## ----------- ## |
---|
1174 | _ASBOX |
---|
1175 | echo |
---|
1176 | sed "/^$/d" confdefs.h | sort |
---|
1177 | echo |
---|
1178 | fi |
---|
1179 | test "$ac_signal" != 0 && |
---|
1180 | echo "$as_me: caught signal $ac_signal" |
---|
1181 | echo "$as_me: exit $exit_status" |
---|
1182 | } >&5 |
---|
1183 | rm -f core *.core && |
---|
1184 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1185 | exit $exit_status |
---|
1186 | ' 0 |
---|
1187 | for ac_signal in 1 2 13 15; do |
---|
1188 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1189 | done |
---|
1190 | ac_signal=0 |
---|
1191 | |
---|
1192 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1193 | rm -rf conftest* confdefs.h |
---|
1194 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1195 | echo >confdefs.h |
---|
1196 | |
---|
1197 | # Predefined preprocessor variables. |
---|
1198 | |
---|
1199 | cat >>confdefs.h <<_ACEOF |
---|
1200 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1201 | _ACEOF |
---|
1202 | |
---|
1203 | |
---|
1204 | cat >>confdefs.h <<_ACEOF |
---|
1205 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1206 | _ACEOF |
---|
1207 | |
---|
1208 | |
---|
1209 | cat >>confdefs.h <<_ACEOF |
---|
1210 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1211 | _ACEOF |
---|
1212 | |
---|
1213 | |
---|
1214 | cat >>confdefs.h <<_ACEOF |
---|
1215 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1216 | _ACEOF |
---|
1217 | |
---|
1218 | |
---|
1219 | cat >>confdefs.h <<_ACEOF |
---|
1220 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1221 | _ACEOF |
---|
1222 | |
---|
1223 | |
---|
1224 | # Let the site file select an alternate cache file if it wants to. |
---|
1225 | # Prefer explicitly selected file to automatically selected ones. |
---|
1226 | if test -z "$CONFIG_SITE"; then |
---|
1227 | if test "x$prefix" != xNONE; then |
---|
1228 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1229 | else |
---|
1230 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1231 | fi |
---|
1232 | fi |
---|
1233 | for ac_site_file in $CONFIG_SITE; do |
---|
1234 | if test -r "$ac_site_file"; then |
---|
1235 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1236 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1237 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1238 | . "$ac_site_file" |
---|
1239 | fi |
---|
1240 | done |
---|
1241 | |
---|
1242 | if test -r "$cache_file"; then |
---|
1243 | # Some versions of bash will fail to source /dev/null (special |
---|
1244 | # files actually), so we avoid doing that. |
---|
1245 | if test -f "$cache_file"; then |
---|
1246 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1247 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1248 | case $cache_file in |
---|
1249 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1250 | *) . ./$cache_file;; |
---|
1251 | esac |
---|
1252 | fi |
---|
1253 | else |
---|
1254 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1255 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1256 | >$cache_file |
---|
1257 | fi |
---|
1258 | |
---|
1259 | # Check that the precious variables saved in the cache have kept the same |
---|
1260 | # value. |
---|
1261 | ac_cache_corrupted=false |
---|
1262 | for ac_var in `(set) 2>&1 | |
---|
1263 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1264 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1265 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1266 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1267 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1268 | case $ac_old_set,$ac_new_set in |
---|
1269 | set,) |
---|
1270 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1271 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1272 | ac_cache_corrupted=: ;; |
---|
1273 | ,set) |
---|
1274 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1275 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1276 | ac_cache_corrupted=: ;; |
---|
1277 | ,);; |
---|
1278 | *) |
---|
1279 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1280 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1281 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1282 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1283 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1284 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1285 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1286 | ac_cache_corrupted=: |
---|
1287 | fi;; |
---|
1288 | esac |
---|
1289 | # Pass precious variables to config.status. |
---|
1290 | if test "$ac_new_set" = set; then |
---|
1291 | case $ac_new_val in |
---|
1292 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1293 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1294 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1295 | esac |
---|
1296 | case " $ac_configure_args " in |
---|
1297 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1298 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1299 | esac |
---|
1300 | fi |
---|
1301 | done |
---|
1302 | if $ac_cache_corrupted; then |
---|
1303 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1304 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1305 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1306 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1307 | { (exit 1); exit 1; }; } |
---|
1308 | fi |
---|
1309 | |
---|
1310 | ac_ext=c |
---|
1311 | ac_cpp='$CPP $CPPFLAGS' |
---|
1312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1315 | |
---|
1316 | |
---|
1317 | |
---|
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 | ## Detect the canonical host and target build environment. |
---|
1344 | ac_aux_dir= |
---|
1345 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1346 | if test -f $ac_dir/install-sh; then |
---|
1347 | ac_aux_dir=$ac_dir |
---|
1348 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1349 | break |
---|
1350 | elif test -f $ac_dir/install.sh; then |
---|
1351 | ac_aux_dir=$ac_dir |
---|
1352 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1353 | break |
---|
1354 | elif test -f $ac_dir/shtool; then |
---|
1355 | ac_aux_dir=$ac_dir |
---|
1356 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1357 | break |
---|
1358 | fi |
---|
1359 | done |
---|
1360 | if test -z "$ac_aux_dir"; then |
---|
1361 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1362 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1363 | { (exit 1); exit 1; }; } |
---|
1364 | fi |
---|
1365 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1366 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1367 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1368 | |
---|
1369 | # Make sure we can run config.sub. |
---|
1370 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1371 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1372 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1373 | { (exit 1); exit 1; }; } |
---|
1374 | |
---|
1375 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1376 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1377 | if test "${ac_cv_build+set}" = set; then |
---|
1378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1379 | else |
---|
1380 | ac_cv_build_alias=$build_alias |
---|
1381 | test -z "$ac_cv_build_alias" && |
---|
1382 | ac_cv_build_alias=`$ac_config_guess` |
---|
1383 | test -z "$ac_cv_build_alias" && |
---|
1384 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1385 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1386 | { (exit 1); exit 1; }; } |
---|
1387 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1388 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1389 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1390 | { (exit 1); exit 1; }; } |
---|
1391 | |
---|
1392 | fi |
---|
1393 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1394 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1395 | build=$ac_cv_build |
---|
1396 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1397 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1398 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1399 | |
---|
1400 | |
---|
1401 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1402 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1403 | if test "${ac_cv_host+set}" = set; then |
---|
1404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1405 | else |
---|
1406 | ac_cv_host_alias=$host_alias |
---|
1407 | test -z "$ac_cv_host_alias" && |
---|
1408 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1409 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1410 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1411 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1412 | { (exit 1); exit 1; }; } |
---|
1413 | |
---|
1414 | fi |
---|
1415 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1416 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1417 | host=$ac_cv_host |
---|
1418 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1419 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1420 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1421 | |
---|
1422 | |
---|
1423 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1424 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1425 | if test "${ac_cv_target+set}" = set; then |
---|
1426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1427 | else |
---|
1428 | ac_cv_target_alias=$target_alias |
---|
1429 | test "x$ac_cv_target_alias" = "x" && |
---|
1430 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1431 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1432 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1433 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1434 | { (exit 1); exit 1; }; } |
---|
1435 | |
---|
1436 | fi |
---|
1437 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1438 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1439 | target=$ac_cv_target |
---|
1440 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1441 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1442 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1443 | |
---|
1444 | |
---|
1445 | # The aliases save the names the user supplied, while $host etc. |
---|
1446 | # will get canonicalized. |
---|
1447 | test -n "$target_alias" && |
---|
1448 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1449 | NONENONEs,x,x, && |
---|
1450 | program_prefix=${target_alias}- |
---|
1451 | |
---|
1452 | am__api_version="1.8" |
---|
1453 | # Find a good install program. We prefer a C program (faster), |
---|
1454 | # so one script is as good as another. But avoid the broken or |
---|
1455 | # incompatible versions: |
---|
1456 | # SysV /etc/install, /usr/sbin/install |
---|
1457 | # SunOS /usr/etc/install |
---|
1458 | # IRIX /sbin/install |
---|
1459 | # AIX /bin/install |
---|
1460 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1461 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1462 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1463 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1464 | # OS/2's system install, which has a completely different semantic |
---|
1465 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1466 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1467 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1468 | if test -z "$INSTALL"; then |
---|
1469 | if test "${ac_cv_path_install+set}" = set; then |
---|
1470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1471 | else |
---|
1472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1473 | for as_dir in $PATH |
---|
1474 | do |
---|
1475 | IFS=$as_save_IFS |
---|
1476 | test -z "$as_dir" && as_dir=. |
---|
1477 | # Account for people who put trailing slashes in PATH elements. |
---|
1478 | case $as_dir/ in |
---|
1479 | ./ | .// | /cC/* | \ |
---|
1480 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1481 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1482 | /usr/ucb/* ) ;; |
---|
1483 | *) |
---|
1484 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1485 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1486 | # by default. |
---|
1487 | for ac_prog in ginstall scoinst install; do |
---|
1488 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1489 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1490 | if test $ac_prog = install && |
---|
1491 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1492 | # AIX install. It has an incompatible calling convention. |
---|
1493 | : |
---|
1494 | elif test $ac_prog = install && |
---|
1495 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1496 | # program-specific install script used by HP pwplus--don't use. |
---|
1497 | : |
---|
1498 | else |
---|
1499 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1500 | break 3 |
---|
1501 | fi |
---|
1502 | fi |
---|
1503 | done |
---|
1504 | done |
---|
1505 | ;; |
---|
1506 | esac |
---|
1507 | done |
---|
1508 | |
---|
1509 | |
---|
1510 | fi |
---|
1511 | if test "${ac_cv_path_install+set}" = set; then |
---|
1512 | INSTALL=$ac_cv_path_install |
---|
1513 | else |
---|
1514 | # As a last resort, use the slow shell script. We don't cache a |
---|
1515 | # path for INSTALL within a source directory, because that will |
---|
1516 | # break other packages using the cache if that directory is |
---|
1517 | # removed, or if the path is relative. |
---|
1518 | INSTALL=$ac_install_sh |
---|
1519 | fi |
---|
1520 | fi |
---|
1521 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1522 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1523 | |
---|
1524 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1525 | # It thinks the first close brace ends the variable substitution. |
---|
1526 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1527 | |
---|
1528 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1529 | |
---|
1530 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1531 | |
---|
1532 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1533 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1534 | # Just in case |
---|
1535 | sleep 1 |
---|
1536 | echo timestamp > conftest.file |
---|
1537 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1538 | # arguments. Must try -L first in case configure is actually a |
---|
1539 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1540 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1541 | # directory). |
---|
1542 | if ( |
---|
1543 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1544 | if test "$*" = "X"; then |
---|
1545 | # -L didn't work. |
---|
1546 | set X `ls -t $srcdir/configure conftest.file` |
---|
1547 | fi |
---|
1548 | rm -f conftest.file |
---|
1549 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1550 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1551 | |
---|
1552 | # If neither matched, then we have a broken ls. This can happen |
---|
1553 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1554 | # broken ls alias from the environment. This has actually |
---|
1555 | # happened. Such a system could not be considered "sane". |
---|
1556 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1557 | alias in your environment" >&5 |
---|
1558 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1559 | alias in your environment" >&2;} |
---|
1560 | { (exit 1); exit 1; }; } |
---|
1561 | fi |
---|
1562 | |
---|
1563 | test "$2" = conftest.file |
---|
1564 | ) |
---|
1565 | then |
---|
1566 | # Ok. |
---|
1567 | : |
---|
1568 | else |
---|
1569 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1570 | Check your system clock" >&5 |
---|
1571 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1572 | Check your system clock" >&2;} |
---|
1573 | { (exit 1); exit 1; }; } |
---|
1574 | fi |
---|
1575 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1576 | echo "${ECHO_T}yes" >&6 |
---|
1577 | test "$program_prefix" != NONE && |
---|
1578 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1579 | # Use a double $ so make ignores it. |
---|
1580 | test "$program_suffix" != NONE && |
---|
1581 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1582 | # Double any \ or $. echo might interpret backslashes. |
---|
1583 | # By default was `s,x,x', remove it if useless. |
---|
1584 | cat <<\_ACEOF >conftest.sed |
---|
1585 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1586 | _ACEOF |
---|
1587 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1588 | rm conftest.sed |
---|
1589 | |
---|
1590 | # expand $ac_aux_dir to an absolute path |
---|
1591 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1592 | |
---|
1593 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1594 | # Use eval to expand $SHELL |
---|
1595 | if eval "$MISSING --run true"; then |
---|
1596 | am_missing_run="$MISSING --run " |
---|
1597 | else |
---|
1598 | am_missing_run= |
---|
1599 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1600 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1601 | fi |
---|
1602 | |
---|
1603 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1604 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
1605 | # argument. Indeed, we sometimes output rules like |
---|
1606 | # $(mkdir_p) $(somedir) |
---|
1607 | # where $(somedir) is conditionally defined. |
---|
1608 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
1609 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
1610 | mkdir_p='mkdir -p -- .' |
---|
1611 | else |
---|
1612 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1613 | # recognize any option. It will interpret all options as |
---|
1614 | # directories to create, and then abort because `.' already |
---|
1615 | # exists. |
---|
1616 | for d in ./-p ./--version; |
---|
1617 | do |
---|
1618 | test -d $d && rmdir $d |
---|
1619 | done |
---|
1620 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1621 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1622 | mkdir_p='$(mkinstalldirs)' |
---|
1623 | else |
---|
1624 | mkdir_p='$(install_sh) -d' |
---|
1625 | fi |
---|
1626 | fi |
---|
1627 | |
---|
1628 | for ac_prog in gawk mawk nawk awk |
---|
1629 | do |
---|
1630 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1631 | set dummy $ac_prog; ac_word=$2 |
---|
1632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1634 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1636 | else |
---|
1637 | if test -n "$AWK"; then |
---|
1638 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1639 | else |
---|
1640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1641 | for as_dir in $PATH |
---|
1642 | do |
---|
1643 | IFS=$as_save_IFS |
---|
1644 | test -z "$as_dir" && as_dir=. |
---|
1645 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1647 | ac_cv_prog_AWK="$ac_prog" |
---|
1648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1649 | break 2 |
---|
1650 | fi |
---|
1651 | done |
---|
1652 | done |
---|
1653 | |
---|
1654 | fi |
---|
1655 | fi |
---|
1656 | AWK=$ac_cv_prog_AWK |
---|
1657 | if test -n "$AWK"; then |
---|
1658 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1659 | echo "${ECHO_T}$AWK" >&6 |
---|
1660 | else |
---|
1661 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1662 | echo "${ECHO_T}no" >&6 |
---|
1663 | fi |
---|
1664 | |
---|
1665 | test -n "$AWK" && break |
---|
1666 | done |
---|
1667 | |
---|
1668 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1669 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1670 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1671 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1673 | else |
---|
1674 | cat >conftest.make <<\_ACEOF |
---|
1675 | all: |
---|
1676 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1677 | _ACEOF |
---|
1678 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1679 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1680 | if test -n "$ac_maketemp"; then |
---|
1681 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1682 | else |
---|
1683 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1684 | fi |
---|
1685 | rm -f conftest.make |
---|
1686 | fi |
---|
1687 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1688 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1689 | echo "${ECHO_T}yes" >&6 |
---|
1690 | SET_MAKE= |
---|
1691 | else |
---|
1692 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1693 | echo "${ECHO_T}no" >&6 |
---|
1694 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1695 | fi |
---|
1696 | |
---|
1697 | rm -rf .tst 2>/dev/null |
---|
1698 | mkdir .tst 2>/dev/null |
---|
1699 | if test -d .tst; then |
---|
1700 | am__leading_dot=. |
---|
1701 | else |
---|
1702 | am__leading_dot=_ |
---|
1703 | fi |
---|
1704 | rmdir .tst 2>/dev/null |
---|
1705 | |
---|
1706 | # test to see if srcdir already configured |
---|
1707 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1708 | test -f $srcdir/config.status; then |
---|
1709 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1710 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1711 | { (exit 1); exit 1; }; } |
---|
1712 | fi |
---|
1713 | |
---|
1714 | # test whether we have cygpath |
---|
1715 | if test -z "$CYGPATH_W"; then |
---|
1716 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1717 | CYGPATH_W='cygpath -w' |
---|
1718 | else |
---|
1719 | CYGPATH_W=echo |
---|
1720 | fi |
---|
1721 | fi |
---|
1722 | |
---|
1723 | |
---|
1724 | # Define the identity of the package. |
---|
1725 | PACKAGE='orxonox' |
---|
1726 | VERSION='0.2.1-pre-alpha' |
---|
1727 | |
---|
1728 | |
---|
1729 | cat >>confdefs.h <<_ACEOF |
---|
1730 | #define PACKAGE "$PACKAGE" |
---|
1731 | _ACEOF |
---|
1732 | |
---|
1733 | |
---|
1734 | cat >>confdefs.h <<_ACEOF |
---|
1735 | #define VERSION "$VERSION" |
---|
1736 | _ACEOF |
---|
1737 | |
---|
1738 | # Some tools Automake needs. |
---|
1739 | |
---|
1740 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1741 | |
---|
1742 | |
---|
1743 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1744 | |
---|
1745 | |
---|
1746 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1747 | |
---|
1748 | |
---|
1749 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1750 | |
---|
1751 | |
---|
1752 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1753 | |
---|
1754 | |
---|
1755 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1756 | |
---|
1757 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1758 | |
---|
1759 | # Installed binaries are usually stripped using `strip' when the user |
---|
1760 | # run `make install-strip'. However `strip' might not be the right |
---|
1761 | # tool to use in cross-compilation environments, therefore Automake |
---|
1762 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1763 | if test "$cross_compiling" != no; then |
---|
1764 | if test -n "$ac_tool_prefix"; then |
---|
1765 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1766 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1769 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1771 | else |
---|
1772 | if test -n "$STRIP"; then |
---|
1773 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1774 | else |
---|
1775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1776 | for as_dir in $PATH |
---|
1777 | do |
---|
1778 | IFS=$as_save_IFS |
---|
1779 | test -z "$as_dir" && as_dir=. |
---|
1780 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1782 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1784 | break 2 |
---|
1785 | fi |
---|
1786 | done |
---|
1787 | done |
---|
1788 | |
---|
1789 | fi |
---|
1790 | fi |
---|
1791 | STRIP=$ac_cv_prog_STRIP |
---|
1792 | if test -n "$STRIP"; then |
---|
1793 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1794 | echo "${ECHO_T}$STRIP" >&6 |
---|
1795 | else |
---|
1796 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1797 | echo "${ECHO_T}no" >&6 |
---|
1798 | fi |
---|
1799 | |
---|
1800 | fi |
---|
1801 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1802 | ac_ct_STRIP=$STRIP |
---|
1803 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1804 | set dummy strip; ac_word=$2 |
---|
1805 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1807 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1809 | else |
---|
1810 | if test -n "$ac_ct_STRIP"; then |
---|
1811 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1812 | else |
---|
1813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1814 | for as_dir in $PATH |
---|
1815 | do |
---|
1816 | IFS=$as_save_IFS |
---|
1817 | test -z "$as_dir" && as_dir=. |
---|
1818 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1819 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1820 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1822 | break 2 |
---|
1823 | fi |
---|
1824 | done |
---|
1825 | done |
---|
1826 | |
---|
1827 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1828 | fi |
---|
1829 | fi |
---|
1830 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1831 | if test -n "$ac_ct_STRIP"; then |
---|
1832 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1833 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1834 | else |
---|
1835 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1836 | echo "${ECHO_T}no" >&6 |
---|
1837 | fi |
---|
1838 | |
---|
1839 | STRIP=$ac_ct_STRIP |
---|
1840 | else |
---|
1841 | STRIP="$ac_cv_prog_STRIP" |
---|
1842 | fi |
---|
1843 | |
---|
1844 | fi |
---|
1845 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1846 | |
---|
1847 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1848 | # some platforms. |
---|
1849 | |
---|
1850 | |
---|
1851 | |
---|
1852 | |
---|
1853 | |
---|
1854 | ac_config_headers="$ac_config_headers config.h" |
---|
1855 | |
---|
1856 | |
---|
1857 | ######################### |
---|
1858 | ## Checks for programs ## |
---|
1859 | ######################### |
---|
1860 | ac_ext=cc |
---|
1861 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1862 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1863 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1864 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1865 | if test -n "$ac_tool_prefix"; then |
---|
1866 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1867 | do |
---|
1868 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1869 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1872 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1874 | else |
---|
1875 | if test -n "$CXX"; then |
---|
1876 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1877 | else |
---|
1878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1879 | for as_dir in $PATH |
---|
1880 | do |
---|
1881 | IFS=$as_save_IFS |
---|
1882 | test -z "$as_dir" && as_dir=. |
---|
1883 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1884 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1885 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1887 | break 2 |
---|
1888 | fi |
---|
1889 | done |
---|
1890 | done |
---|
1891 | |
---|
1892 | fi |
---|
1893 | fi |
---|
1894 | CXX=$ac_cv_prog_CXX |
---|
1895 | if test -n "$CXX"; then |
---|
1896 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1897 | echo "${ECHO_T}$CXX" >&6 |
---|
1898 | else |
---|
1899 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1900 | echo "${ECHO_T}no" >&6 |
---|
1901 | fi |
---|
1902 | |
---|
1903 | test -n "$CXX" && break |
---|
1904 | done |
---|
1905 | fi |
---|
1906 | if test -z "$CXX"; then |
---|
1907 | ac_ct_CXX=$CXX |
---|
1908 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1909 | do |
---|
1910 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1911 | set dummy $ac_prog; ac_word=$2 |
---|
1912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1914 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1916 | else |
---|
1917 | if test -n "$ac_ct_CXX"; then |
---|
1918 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1919 | else |
---|
1920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1921 | for as_dir in $PATH |
---|
1922 | do |
---|
1923 | IFS=$as_save_IFS |
---|
1924 | test -z "$as_dir" && as_dir=. |
---|
1925 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1927 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1929 | break 2 |
---|
1930 | fi |
---|
1931 | done |
---|
1932 | done |
---|
1933 | |
---|
1934 | fi |
---|
1935 | fi |
---|
1936 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1937 | if test -n "$ac_ct_CXX"; then |
---|
1938 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1939 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1940 | else |
---|
1941 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1942 | echo "${ECHO_T}no" >&6 |
---|
1943 | fi |
---|
1944 | |
---|
1945 | test -n "$ac_ct_CXX" && break |
---|
1946 | done |
---|
1947 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1948 | |
---|
1949 | CXX=$ac_ct_CXX |
---|
1950 | fi |
---|
1951 | |
---|
1952 | |
---|
1953 | # Provide some information about the compiler. |
---|
1954 | echo "$as_me:$LINENO:" \ |
---|
1955 | "checking for C++ compiler version" >&5 |
---|
1956 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1957 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1958 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1959 | ac_status=$? |
---|
1960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1961 | (exit $ac_status); } |
---|
1962 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1963 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1964 | ac_status=$? |
---|
1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1966 | (exit $ac_status); } |
---|
1967 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1968 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1969 | ac_status=$? |
---|
1970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1971 | (exit $ac_status); } |
---|
1972 | |
---|
1973 | cat >conftest.$ac_ext <<_ACEOF |
---|
1974 | /* confdefs.h. */ |
---|
1975 | _ACEOF |
---|
1976 | cat confdefs.h >>conftest.$ac_ext |
---|
1977 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1978 | /* end confdefs.h. */ |
---|
1979 | |
---|
1980 | int |
---|
1981 | main () |
---|
1982 | { |
---|
1983 | |
---|
1984 | ; |
---|
1985 | return 0; |
---|
1986 | } |
---|
1987 | _ACEOF |
---|
1988 | ac_clean_files_save=$ac_clean_files |
---|
1989 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1990 | # Try to create an executable without -o first, disregard a.out. |
---|
1991 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1992 | # of exeext. |
---|
1993 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1994 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1995 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1996 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1997 | (eval $ac_link_default) 2>&5 |
---|
1998 | ac_status=$? |
---|
1999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2000 | (exit $ac_status); }; then |
---|
2001 | # Find the output, starting from the most likely. This scheme is |
---|
2002 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2003 | # resort. |
---|
2004 | |
---|
2005 | # Be careful to initialize this variable, since it used to be cached. |
---|
2006 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2007 | ac_cv_exeext= |
---|
2008 | # b.out is created by i960 compilers. |
---|
2009 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2010 | do |
---|
2011 | test -f "$ac_file" || continue |
---|
2012 | case $ac_file in |
---|
2013 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2014 | ;; |
---|
2015 | conftest.$ac_ext ) |
---|
2016 | # This is the source file. |
---|
2017 | ;; |
---|
2018 | [ab].out ) |
---|
2019 | # We found the default executable, but exeext='' is most |
---|
2020 | # certainly right. |
---|
2021 | break;; |
---|
2022 | *.* ) |
---|
2023 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2024 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2025 | # but it would be cool to find out if it's true. Does anybody |
---|
2026 | # maintain Libtool? --akim. |
---|
2027 | export ac_cv_exeext |
---|
2028 | break;; |
---|
2029 | * ) |
---|
2030 | break;; |
---|
2031 | esac |
---|
2032 | done |
---|
2033 | else |
---|
2034 | echo "$as_me: failed program was:" >&5 |
---|
2035 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2036 | |
---|
2037 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
2038 | See \`config.log' for more details." >&5 |
---|
2039 | echo "$as_me: error: C++ compiler cannot create executables |
---|
2040 | See \`config.log' for more details." >&2;} |
---|
2041 | { (exit 77); exit 77; }; } |
---|
2042 | fi |
---|
2043 | |
---|
2044 | ac_exeext=$ac_cv_exeext |
---|
2045 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2046 | echo "${ECHO_T}$ac_file" >&6 |
---|
2047 | |
---|
2048 | # Check the compiler produces executables we can run. If not, either |
---|
2049 | # the compiler is broken, or we cross compile. |
---|
2050 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
2051 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
2052 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2053 | # If not cross compiling, check that we can run a simple program. |
---|
2054 | if test "$cross_compiling" != yes; then |
---|
2055 | if { ac_try='./$ac_file' |
---|
2056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2057 | (eval $ac_try) 2>&5 |
---|
2058 | ac_status=$? |
---|
2059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2060 | (exit $ac_status); }; }; then |
---|
2061 | cross_compiling=no |
---|
2062 | else |
---|
2063 | if test "$cross_compiling" = maybe; then |
---|
2064 | cross_compiling=yes |
---|
2065 | else |
---|
2066 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2067 | If you meant to cross compile, use \`--host'. |
---|
2068 | See \`config.log' for more details." >&5 |
---|
2069 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2070 | If you meant to cross compile, use \`--host'. |
---|
2071 | See \`config.log' for more details." >&2;} |
---|
2072 | { (exit 1); exit 1; }; } |
---|
2073 | fi |
---|
2074 | fi |
---|
2075 | fi |
---|
2076 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2077 | echo "${ECHO_T}yes" >&6 |
---|
2078 | |
---|
2079 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2080 | ac_clean_files=$ac_clean_files_save |
---|
2081 | # Check the compiler produces executables we can run. If not, either |
---|
2082 | # the compiler is broken, or we cross compile. |
---|
2083 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2084 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2085 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2086 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2087 | |
---|
2088 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2089 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2091 | (eval $ac_link) 2>&5 |
---|
2092 | ac_status=$? |
---|
2093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2094 | (exit $ac_status); }; then |
---|
2095 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2096 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2097 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2098 | # `rm'. |
---|
2099 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2100 | test -f "$ac_file" || continue |
---|
2101 | case $ac_file in |
---|
2102 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2103 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2104 | export ac_cv_exeext |
---|
2105 | break;; |
---|
2106 | * ) break;; |
---|
2107 | esac |
---|
2108 | done |
---|
2109 | else |
---|
2110 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2111 | See \`config.log' for more details." >&5 |
---|
2112 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2113 | See \`config.log' for more details." >&2;} |
---|
2114 | { (exit 1); exit 1; }; } |
---|
2115 | fi |
---|
2116 | |
---|
2117 | rm -f conftest$ac_cv_exeext |
---|
2118 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2119 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2120 | |
---|
2121 | rm -f conftest.$ac_ext |
---|
2122 | EXEEXT=$ac_cv_exeext |
---|
2123 | ac_exeext=$EXEEXT |
---|
2124 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2125 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2126 | if test "${ac_cv_objext+set}" = set; then |
---|
2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2128 | else |
---|
2129 | cat >conftest.$ac_ext <<_ACEOF |
---|
2130 | /* confdefs.h. */ |
---|
2131 | _ACEOF |
---|
2132 | cat confdefs.h >>conftest.$ac_ext |
---|
2133 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2134 | /* end confdefs.h. */ |
---|
2135 | |
---|
2136 | int |
---|
2137 | main () |
---|
2138 | { |
---|
2139 | |
---|
2140 | ; |
---|
2141 | return 0; |
---|
2142 | } |
---|
2143 | _ACEOF |
---|
2144 | rm -f conftest.o conftest.obj |
---|
2145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2146 | (eval $ac_compile) 2>&5 |
---|
2147 | ac_status=$? |
---|
2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2149 | (exit $ac_status); }; then |
---|
2150 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2151 | case $ac_file in |
---|
2152 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2153 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2154 | break;; |
---|
2155 | esac |
---|
2156 | done |
---|
2157 | else |
---|
2158 | echo "$as_me: failed program was:" >&5 |
---|
2159 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2160 | |
---|
2161 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2162 | See \`config.log' for more details." >&5 |
---|
2163 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2164 | See \`config.log' for more details." >&2;} |
---|
2165 | { (exit 1); exit 1; }; } |
---|
2166 | fi |
---|
2167 | |
---|
2168 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2169 | fi |
---|
2170 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2171 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2172 | OBJEXT=$ac_cv_objext |
---|
2173 | ac_objext=$OBJEXT |
---|
2174 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2175 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2176 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2178 | else |
---|
2179 | cat >conftest.$ac_ext <<_ACEOF |
---|
2180 | /* confdefs.h. */ |
---|
2181 | _ACEOF |
---|
2182 | cat confdefs.h >>conftest.$ac_ext |
---|
2183 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2184 | /* end confdefs.h. */ |
---|
2185 | |
---|
2186 | int |
---|
2187 | main () |
---|
2188 | { |
---|
2189 | #ifndef __GNUC__ |
---|
2190 | choke me |
---|
2191 | #endif |
---|
2192 | |
---|
2193 | ; |
---|
2194 | return 0; |
---|
2195 | } |
---|
2196 | _ACEOF |
---|
2197 | rm -f conftest.$ac_objext |
---|
2198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2199 | (eval $ac_compile) 2>conftest.er1 |
---|
2200 | ac_status=$? |
---|
2201 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2202 | rm -f conftest.er1 |
---|
2203 | cat conftest.err >&5 |
---|
2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2205 | (exit $ac_status); } && |
---|
2206 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2207 | || test ! -s conftest.err' |
---|
2208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2209 | (eval $ac_try) 2>&5 |
---|
2210 | ac_status=$? |
---|
2211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2212 | (exit $ac_status); }; } && |
---|
2213 | { ac_try='test -s conftest.$ac_objext' |
---|
2214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2215 | (eval $ac_try) 2>&5 |
---|
2216 | ac_status=$? |
---|
2217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2218 | (exit $ac_status); }; }; then |
---|
2219 | ac_compiler_gnu=yes |
---|
2220 | else |
---|
2221 | echo "$as_me: failed program was:" >&5 |
---|
2222 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2223 | |
---|
2224 | ac_compiler_gnu=no |
---|
2225 | fi |
---|
2226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2227 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2228 | |
---|
2229 | fi |
---|
2230 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2231 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2232 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2233 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2234 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2235 | CXXFLAGS="-g" |
---|
2236 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2237 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2238 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2240 | else |
---|
2241 | cat >conftest.$ac_ext <<_ACEOF |
---|
2242 | /* confdefs.h. */ |
---|
2243 | _ACEOF |
---|
2244 | cat confdefs.h >>conftest.$ac_ext |
---|
2245 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2246 | /* end confdefs.h. */ |
---|
2247 | |
---|
2248 | int |
---|
2249 | main () |
---|
2250 | { |
---|
2251 | |
---|
2252 | ; |
---|
2253 | return 0; |
---|
2254 | } |
---|
2255 | _ACEOF |
---|
2256 | rm -f conftest.$ac_objext |
---|
2257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2258 | (eval $ac_compile) 2>conftest.er1 |
---|
2259 | ac_status=$? |
---|
2260 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2261 | rm -f conftest.er1 |
---|
2262 | cat conftest.err >&5 |
---|
2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2264 | (exit $ac_status); } && |
---|
2265 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2266 | || test ! -s conftest.err' |
---|
2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2268 | (eval $ac_try) 2>&5 |
---|
2269 | ac_status=$? |
---|
2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2271 | (exit $ac_status); }; } && |
---|
2272 | { ac_try='test -s conftest.$ac_objext' |
---|
2273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2274 | (eval $ac_try) 2>&5 |
---|
2275 | ac_status=$? |
---|
2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2277 | (exit $ac_status); }; }; then |
---|
2278 | ac_cv_prog_cxx_g=yes |
---|
2279 | else |
---|
2280 | echo "$as_me: failed program was:" >&5 |
---|
2281 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2282 | |
---|
2283 | ac_cv_prog_cxx_g=no |
---|
2284 | fi |
---|
2285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2286 | fi |
---|
2287 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2288 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2289 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2290 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2291 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2292 | if test "$GXX" = yes; then |
---|
2293 | CXXFLAGS="-g -O2" |
---|
2294 | else |
---|
2295 | CXXFLAGS="-g" |
---|
2296 | fi |
---|
2297 | else |
---|
2298 | if test "$GXX" = yes; then |
---|
2299 | CXXFLAGS="-O2" |
---|
2300 | else |
---|
2301 | CXXFLAGS= |
---|
2302 | fi |
---|
2303 | fi |
---|
2304 | for ac_declaration in \ |
---|
2305 | '' \ |
---|
2306 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2307 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2308 | 'extern "C" void exit (int) throw ();' \ |
---|
2309 | 'extern "C" void exit (int);' \ |
---|
2310 | 'void exit (int);' |
---|
2311 | do |
---|
2312 | cat >conftest.$ac_ext <<_ACEOF |
---|
2313 | /* confdefs.h. */ |
---|
2314 | _ACEOF |
---|
2315 | cat confdefs.h >>conftest.$ac_ext |
---|
2316 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2317 | /* end confdefs.h. */ |
---|
2318 | $ac_declaration |
---|
2319 | #include <stdlib.h> |
---|
2320 | int |
---|
2321 | main () |
---|
2322 | { |
---|
2323 | exit (42); |
---|
2324 | ; |
---|
2325 | return 0; |
---|
2326 | } |
---|
2327 | _ACEOF |
---|
2328 | rm -f conftest.$ac_objext |
---|
2329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2330 | (eval $ac_compile) 2>conftest.er1 |
---|
2331 | ac_status=$? |
---|
2332 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2333 | rm -f conftest.er1 |
---|
2334 | cat conftest.err >&5 |
---|
2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2336 | (exit $ac_status); } && |
---|
2337 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2338 | || test ! -s conftest.err' |
---|
2339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2340 | (eval $ac_try) 2>&5 |
---|
2341 | ac_status=$? |
---|
2342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2343 | (exit $ac_status); }; } && |
---|
2344 | { ac_try='test -s conftest.$ac_objext' |
---|
2345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2346 | (eval $ac_try) 2>&5 |
---|
2347 | ac_status=$? |
---|
2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2349 | (exit $ac_status); }; }; then |
---|
2350 | : |
---|
2351 | else |
---|
2352 | echo "$as_me: failed program was:" >&5 |
---|
2353 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2354 | |
---|
2355 | continue |
---|
2356 | fi |
---|
2357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2358 | cat >conftest.$ac_ext <<_ACEOF |
---|
2359 | /* confdefs.h. */ |
---|
2360 | _ACEOF |
---|
2361 | cat confdefs.h >>conftest.$ac_ext |
---|
2362 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2363 | /* end confdefs.h. */ |
---|
2364 | $ac_declaration |
---|
2365 | int |
---|
2366 | main () |
---|
2367 | { |
---|
2368 | exit (42); |
---|
2369 | ; |
---|
2370 | return 0; |
---|
2371 | } |
---|
2372 | _ACEOF |
---|
2373 | rm -f conftest.$ac_objext |
---|
2374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2375 | (eval $ac_compile) 2>conftest.er1 |
---|
2376 | ac_status=$? |
---|
2377 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2378 | rm -f conftest.er1 |
---|
2379 | cat conftest.err >&5 |
---|
2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2381 | (exit $ac_status); } && |
---|
2382 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2383 | || test ! -s conftest.err' |
---|
2384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2385 | (eval $ac_try) 2>&5 |
---|
2386 | ac_status=$? |
---|
2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2388 | (exit $ac_status); }; } && |
---|
2389 | { ac_try='test -s conftest.$ac_objext' |
---|
2390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2391 | (eval $ac_try) 2>&5 |
---|
2392 | ac_status=$? |
---|
2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2394 | (exit $ac_status); }; }; then |
---|
2395 | break |
---|
2396 | else |
---|
2397 | echo "$as_me: failed program was:" >&5 |
---|
2398 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2399 | |
---|
2400 | fi |
---|
2401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2402 | done |
---|
2403 | rm -f conftest* |
---|
2404 | if test -n "$ac_declaration"; then |
---|
2405 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2406 | echo $ac_declaration >>confdefs.h |
---|
2407 | echo '#endif' >>confdefs.h |
---|
2408 | fi |
---|
2409 | |
---|
2410 | ac_ext=c |
---|
2411 | ac_cpp='$CPP $CPPFLAGS' |
---|
2412 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2413 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2414 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2415 | DEPDIR="${am__leading_dot}deps" |
---|
2416 | |
---|
2417 | ac_config_commands="$ac_config_commands depfiles" |
---|
2418 | |
---|
2419 | |
---|
2420 | am_make=${MAKE-make} |
---|
2421 | cat > confinc << 'END' |
---|
2422 | am__doit: |
---|
2423 | @echo done |
---|
2424 | .PHONY: am__doit |
---|
2425 | END |
---|
2426 | # If we don't find an include directive, just comment out the code. |
---|
2427 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2428 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2429 | am__include="#" |
---|
2430 | am__quote= |
---|
2431 | _am_result=none |
---|
2432 | # First try GNU make style include. |
---|
2433 | echo "include confinc" > confmf |
---|
2434 | # We grep out `Entering directory' and `Leaving directory' |
---|
2435 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2436 | # In particular we don't look at `^make:' because GNU make might |
---|
2437 | # be invoked under some other name (usually "gmake"), in which |
---|
2438 | # case it prints its new name instead of `make'. |
---|
2439 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2440 | am__include=include |
---|
2441 | am__quote= |
---|
2442 | _am_result=GNU |
---|
2443 | fi |
---|
2444 | # Now try BSD make style include. |
---|
2445 | if test "$am__include" = "#"; then |
---|
2446 | echo '.include "confinc"' > confmf |
---|
2447 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2448 | am__include=.include |
---|
2449 | am__quote="\"" |
---|
2450 | _am_result=BSD |
---|
2451 | fi |
---|
2452 | fi |
---|
2453 | |
---|
2454 | |
---|
2455 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2456 | echo "${ECHO_T}$_am_result" >&6 |
---|
2457 | rm -f confinc confmf |
---|
2458 | |
---|
2459 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2460 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2461 | enableval="$enable_dependency_tracking" |
---|
2462 | |
---|
2463 | fi; |
---|
2464 | if test "x$enable_dependency_tracking" != xno; then |
---|
2465 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2466 | AMDEPBACKSLASH='\' |
---|
2467 | fi |
---|
2468 | |
---|
2469 | |
---|
2470 | if test "x$enable_dependency_tracking" != xno; then |
---|
2471 | AMDEP_TRUE= |
---|
2472 | AMDEP_FALSE='#' |
---|
2473 | else |
---|
2474 | AMDEP_TRUE='#' |
---|
2475 | AMDEP_FALSE= |
---|
2476 | fi |
---|
2477 | |
---|
2478 | |
---|
2479 | |
---|
2480 | |
---|
2481 | depcc="$CXX" am_compiler_list= |
---|
2482 | |
---|
2483 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2484 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2485 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2487 | else |
---|
2488 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2489 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2490 | # making bogus files that we don't know about and never remove. For |
---|
2491 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2492 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2493 | # in D'. |
---|
2494 | mkdir conftest.dir |
---|
2495 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2496 | # using a relative directory. |
---|
2497 | cp "$am_depcomp" conftest.dir |
---|
2498 | cd conftest.dir |
---|
2499 | # We will build objects and dependencies in a subdirectory because |
---|
2500 | # it helps to detect inapplicable dependency modes. For instance |
---|
2501 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2502 | # side effect of compilation, but ICC will put the dependencies in |
---|
2503 | # the current directory while Tru64 will put them in the object |
---|
2504 | # directory. |
---|
2505 | mkdir sub |
---|
2506 | |
---|
2507 | am_cv_CXX_dependencies_compiler_type=none |
---|
2508 | if test "$am_compiler_list" = ""; then |
---|
2509 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2510 | fi |
---|
2511 | for depmode in $am_compiler_list; do |
---|
2512 | # Setup a source with many dependencies, because some compilers |
---|
2513 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2514 | # we should not choose a depcomp mode which is confused by this. |
---|
2515 | # |
---|
2516 | # We need to recreate these files for each test, as the compiler may |
---|
2517 | # overwrite some of them when testing with obscure command lines. |
---|
2518 | # This happens at least with the AIX C compiler. |
---|
2519 | : > sub/conftest.c |
---|
2520 | for i in 1 2 3 4 5 6; do |
---|
2521 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2522 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
2523 | # Solaris 8's {/usr,}/bin/sh. |
---|
2524 | touch sub/conftst$i.h |
---|
2525 | done |
---|
2526 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2527 | |
---|
2528 | case $depmode in |
---|
2529 | nosideeffect) |
---|
2530 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2531 | # only be used when explicitly requested |
---|
2532 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2533 | continue |
---|
2534 | else |
---|
2535 | break |
---|
2536 | fi |
---|
2537 | ;; |
---|
2538 | none) break ;; |
---|
2539 | esac |
---|
2540 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2541 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2542 | # handle `-M -o', and we need to detect this. |
---|
2543 | if depmode=$depmode \ |
---|
2544 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2545 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2546 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2547 | >/dev/null 2>conftest.err && |
---|
2548 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2549 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2550 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2551 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2552 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
2553 | # that says an option was ignored or not supported. |
---|
2554 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
2555 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
2556 | # The diagnosis changed in icc 8.0: |
---|
2557 | # icc: Command line remark: option '-MP' not supported |
---|
2558 | if (grep 'ignoring option' conftest.err || |
---|
2559 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
2560 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2561 | break |
---|
2562 | fi |
---|
2563 | fi |
---|
2564 | done |
---|
2565 | |
---|
2566 | cd .. |
---|
2567 | rm -rf conftest.dir |
---|
2568 | else |
---|
2569 | am_cv_CXX_dependencies_compiler_type=none |
---|
2570 | fi |
---|
2571 | |
---|
2572 | fi |
---|
2573 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2574 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2575 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2576 | |
---|
2577 | |
---|
2578 | |
---|
2579 | if |
---|
2580 | test "x$enable_dependency_tracking" != xno \ |
---|
2581 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2582 | am__fastdepCXX_TRUE= |
---|
2583 | am__fastdepCXX_FALSE='#' |
---|
2584 | else |
---|
2585 | am__fastdepCXX_TRUE='#' |
---|
2586 | am__fastdepCXX_FALSE= |
---|
2587 | fi |
---|
2588 | |
---|
2589 | |
---|
2590 | ac_ext=c |
---|
2591 | ac_cpp='$CPP $CPPFLAGS' |
---|
2592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2595 | if test -n "$ac_tool_prefix"; then |
---|
2596 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2597 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2598 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2600 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2602 | else |
---|
2603 | if test -n "$CC"; then |
---|
2604 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2605 | else |
---|
2606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2607 | for as_dir in $PATH |
---|
2608 | do |
---|
2609 | IFS=$as_save_IFS |
---|
2610 | test -z "$as_dir" && as_dir=. |
---|
2611 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2612 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2613 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2615 | break 2 |
---|
2616 | fi |
---|
2617 | done |
---|
2618 | done |
---|
2619 | |
---|
2620 | fi |
---|
2621 | fi |
---|
2622 | CC=$ac_cv_prog_CC |
---|
2623 | if test -n "$CC"; then |
---|
2624 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2625 | echo "${ECHO_T}$CC" >&6 |
---|
2626 | else |
---|
2627 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2628 | echo "${ECHO_T}no" >&6 |
---|
2629 | fi |
---|
2630 | |
---|
2631 | fi |
---|
2632 | if test -z "$ac_cv_prog_CC"; then |
---|
2633 | ac_ct_CC=$CC |
---|
2634 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2635 | set dummy gcc; ac_word=$2 |
---|
2636 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2638 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2640 | else |
---|
2641 | if test -n "$ac_ct_CC"; then |
---|
2642 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2643 | else |
---|
2644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2645 | for as_dir in $PATH |
---|
2646 | do |
---|
2647 | IFS=$as_save_IFS |
---|
2648 | test -z "$as_dir" && as_dir=. |
---|
2649 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2651 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2653 | break 2 |
---|
2654 | fi |
---|
2655 | done |
---|
2656 | done |
---|
2657 | |
---|
2658 | fi |
---|
2659 | fi |
---|
2660 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2661 | if test -n "$ac_ct_CC"; then |
---|
2662 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2663 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2664 | else |
---|
2665 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2666 | echo "${ECHO_T}no" >&6 |
---|
2667 | fi |
---|
2668 | |
---|
2669 | CC=$ac_ct_CC |
---|
2670 | else |
---|
2671 | CC="$ac_cv_prog_CC" |
---|
2672 | fi |
---|
2673 | |
---|
2674 | if test -z "$CC"; then |
---|
2675 | if test -n "$ac_tool_prefix"; then |
---|
2676 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2677 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2680 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2682 | else |
---|
2683 | if test -n "$CC"; then |
---|
2684 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2685 | else |
---|
2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2687 | for as_dir in $PATH |
---|
2688 | do |
---|
2689 | IFS=$as_save_IFS |
---|
2690 | test -z "$as_dir" && as_dir=. |
---|
2691 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2692 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2693 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2695 | break 2 |
---|
2696 | fi |
---|
2697 | done |
---|
2698 | done |
---|
2699 | |
---|
2700 | fi |
---|
2701 | fi |
---|
2702 | CC=$ac_cv_prog_CC |
---|
2703 | if test -n "$CC"; then |
---|
2704 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2705 | echo "${ECHO_T}$CC" >&6 |
---|
2706 | else |
---|
2707 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2708 | echo "${ECHO_T}no" >&6 |
---|
2709 | fi |
---|
2710 | |
---|
2711 | fi |
---|
2712 | if test -z "$ac_cv_prog_CC"; then |
---|
2713 | ac_ct_CC=$CC |
---|
2714 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2715 | set dummy cc; ac_word=$2 |
---|
2716 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2718 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2720 | else |
---|
2721 | if test -n "$ac_ct_CC"; then |
---|
2722 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2723 | else |
---|
2724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2725 | for as_dir in $PATH |
---|
2726 | do |
---|
2727 | IFS=$as_save_IFS |
---|
2728 | test -z "$as_dir" && as_dir=. |
---|
2729 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2730 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2731 | ac_cv_prog_ac_ct_CC="cc" |
---|
2732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2733 | break 2 |
---|
2734 | fi |
---|
2735 | done |
---|
2736 | done |
---|
2737 | |
---|
2738 | fi |
---|
2739 | fi |
---|
2740 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2741 | if test -n "$ac_ct_CC"; then |
---|
2742 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2743 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2744 | else |
---|
2745 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2746 | echo "${ECHO_T}no" >&6 |
---|
2747 | fi |
---|
2748 | |
---|
2749 | CC=$ac_ct_CC |
---|
2750 | else |
---|
2751 | CC="$ac_cv_prog_CC" |
---|
2752 | fi |
---|
2753 | |
---|
2754 | fi |
---|
2755 | if test -z "$CC"; then |
---|
2756 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2757 | set dummy cc; ac_word=$2 |
---|
2758 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2760 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2762 | else |
---|
2763 | if test -n "$CC"; then |
---|
2764 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2765 | else |
---|
2766 | ac_prog_rejected=no |
---|
2767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2768 | for as_dir in $PATH |
---|
2769 | do |
---|
2770 | IFS=$as_save_IFS |
---|
2771 | test -z "$as_dir" && as_dir=. |
---|
2772 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2774 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2775 | ac_prog_rejected=yes |
---|
2776 | continue |
---|
2777 | fi |
---|
2778 | ac_cv_prog_CC="cc" |
---|
2779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2780 | break 2 |
---|
2781 | fi |
---|
2782 | done |
---|
2783 | done |
---|
2784 | |
---|
2785 | if test $ac_prog_rejected = yes; then |
---|
2786 | # We found a bogon in the path, so make sure we never use it. |
---|
2787 | set dummy $ac_cv_prog_CC |
---|
2788 | shift |
---|
2789 | if test $# != 0; then |
---|
2790 | # We chose a different compiler from the bogus one. |
---|
2791 | # However, it has the same basename, so the bogon will be chosen |
---|
2792 | # first if we set CC to just the basename; use the full file name. |
---|
2793 | shift |
---|
2794 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2795 | fi |
---|
2796 | fi |
---|
2797 | fi |
---|
2798 | fi |
---|
2799 | CC=$ac_cv_prog_CC |
---|
2800 | if test -n "$CC"; then |
---|
2801 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2802 | echo "${ECHO_T}$CC" >&6 |
---|
2803 | else |
---|
2804 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2805 | echo "${ECHO_T}no" >&6 |
---|
2806 | fi |
---|
2807 | |
---|
2808 | fi |
---|
2809 | if test -z "$CC"; then |
---|
2810 | if test -n "$ac_tool_prefix"; then |
---|
2811 | for ac_prog in cl |
---|
2812 | do |
---|
2813 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2814 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2815 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2817 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2819 | else |
---|
2820 | if test -n "$CC"; then |
---|
2821 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2822 | else |
---|
2823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2824 | for as_dir in $PATH |
---|
2825 | do |
---|
2826 | IFS=$as_save_IFS |
---|
2827 | test -z "$as_dir" && as_dir=. |
---|
2828 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2829 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2830 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2831 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2832 | break 2 |
---|
2833 | fi |
---|
2834 | done |
---|
2835 | done |
---|
2836 | |
---|
2837 | fi |
---|
2838 | fi |
---|
2839 | CC=$ac_cv_prog_CC |
---|
2840 | if test -n "$CC"; then |
---|
2841 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2842 | echo "${ECHO_T}$CC" >&6 |
---|
2843 | else |
---|
2844 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2845 | echo "${ECHO_T}no" >&6 |
---|
2846 | fi |
---|
2847 | |
---|
2848 | test -n "$CC" && break |
---|
2849 | done |
---|
2850 | fi |
---|
2851 | if test -z "$CC"; then |
---|
2852 | ac_ct_CC=$CC |
---|
2853 | for ac_prog in cl |
---|
2854 | do |
---|
2855 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2856 | set dummy $ac_prog; ac_word=$2 |
---|
2857 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2859 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2861 | else |
---|
2862 | if test -n "$ac_ct_CC"; then |
---|
2863 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2864 | else |
---|
2865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2866 | for as_dir in $PATH |
---|
2867 | do |
---|
2868 | IFS=$as_save_IFS |
---|
2869 | test -z "$as_dir" && as_dir=. |
---|
2870 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2871 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2872 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2873 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2874 | break 2 |
---|
2875 | fi |
---|
2876 | done |
---|
2877 | done |
---|
2878 | |
---|
2879 | fi |
---|
2880 | fi |
---|
2881 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2882 | if test -n "$ac_ct_CC"; then |
---|
2883 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2884 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2885 | else |
---|
2886 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2887 | echo "${ECHO_T}no" >&6 |
---|
2888 | fi |
---|
2889 | |
---|
2890 | test -n "$ac_ct_CC" && break |
---|
2891 | done |
---|
2892 | |
---|
2893 | CC=$ac_ct_CC |
---|
2894 | fi |
---|
2895 | |
---|
2896 | fi |
---|
2897 | |
---|
2898 | |
---|
2899 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2900 | See \`config.log' for more details." >&5 |
---|
2901 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2902 | See \`config.log' for more details." >&2;} |
---|
2903 | { (exit 1); exit 1; }; } |
---|
2904 | |
---|
2905 | # Provide some information about the compiler. |
---|
2906 | echo "$as_me:$LINENO:" \ |
---|
2907 | "checking for C compiler version" >&5 |
---|
2908 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2909 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2910 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2911 | ac_status=$? |
---|
2912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2913 | (exit $ac_status); } |
---|
2914 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2915 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2916 | ac_status=$? |
---|
2917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2918 | (exit $ac_status); } |
---|
2919 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2920 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2921 | ac_status=$? |
---|
2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2923 | (exit $ac_status); } |
---|
2924 | |
---|
2925 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2926 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2927 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2929 | else |
---|
2930 | cat >conftest.$ac_ext <<_ACEOF |
---|
2931 | /* confdefs.h. */ |
---|
2932 | _ACEOF |
---|
2933 | cat confdefs.h >>conftest.$ac_ext |
---|
2934 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2935 | /* end confdefs.h. */ |
---|
2936 | |
---|
2937 | int |
---|
2938 | main () |
---|
2939 | { |
---|
2940 | #ifndef __GNUC__ |
---|
2941 | choke me |
---|
2942 | #endif |
---|
2943 | |
---|
2944 | ; |
---|
2945 | return 0; |
---|
2946 | } |
---|
2947 | _ACEOF |
---|
2948 | rm -f conftest.$ac_objext |
---|
2949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2950 | (eval $ac_compile) 2>conftest.er1 |
---|
2951 | ac_status=$? |
---|
2952 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2953 | rm -f conftest.er1 |
---|
2954 | cat conftest.err >&5 |
---|
2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2956 | (exit $ac_status); } && |
---|
2957 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2958 | || test ! -s conftest.err' |
---|
2959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2960 | (eval $ac_try) 2>&5 |
---|
2961 | ac_status=$? |
---|
2962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2963 | (exit $ac_status); }; } && |
---|
2964 | { ac_try='test -s conftest.$ac_objext' |
---|
2965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2966 | (eval $ac_try) 2>&5 |
---|
2967 | ac_status=$? |
---|
2968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2969 | (exit $ac_status); }; }; then |
---|
2970 | ac_compiler_gnu=yes |
---|
2971 | else |
---|
2972 | echo "$as_me: failed program was:" >&5 |
---|
2973 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2974 | |
---|
2975 | ac_compiler_gnu=no |
---|
2976 | fi |
---|
2977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2978 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2979 | |
---|
2980 | fi |
---|
2981 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2982 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2983 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2984 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2985 | ac_save_CFLAGS=$CFLAGS |
---|
2986 | CFLAGS="-g" |
---|
2987 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2988 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2989 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2991 | else |
---|
2992 | cat >conftest.$ac_ext <<_ACEOF |
---|
2993 | /* confdefs.h. */ |
---|
2994 | _ACEOF |
---|
2995 | cat confdefs.h >>conftest.$ac_ext |
---|
2996 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2997 | /* end confdefs.h. */ |
---|
2998 | |
---|
2999 | int |
---|
3000 | main () |
---|
3001 | { |
---|
3002 | |
---|
3003 | ; |
---|
3004 | return 0; |
---|
3005 | } |
---|
3006 | _ACEOF |
---|
3007 | rm -f conftest.$ac_objext |
---|
3008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3009 | (eval $ac_compile) 2>conftest.er1 |
---|
3010 | ac_status=$? |
---|
3011 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3012 | rm -f conftest.er1 |
---|
3013 | cat conftest.err >&5 |
---|
3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3015 | (exit $ac_status); } && |
---|
3016 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3017 | || test ! -s conftest.err' |
---|
3018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3019 | (eval $ac_try) 2>&5 |
---|
3020 | ac_status=$? |
---|
3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3022 | (exit $ac_status); }; } && |
---|
3023 | { ac_try='test -s conftest.$ac_objext' |
---|
3024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3025 | (eval $ac_try) 2>&5 |
---|
3026 | ac_status=$? |
---|
3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3028 | (exit $ac_status); }; }; then |
---|
3029 | ac_cv_prog_cc_g=yes |
---|
3030 | else |
---|
3031 | echo "$as_me: failed program was:" >&5 |
---|
3032 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3033 | |
---|
3034 | ac_cv_prog_cc_g=no |
---|
3035 | fi |
---|
3036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3037 | fi |
---|
3038 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3039 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
3040 | if test "$ac_test_CFLAGS" = set; then |
---|
3041 | CFLAGS=$ac_save_CFLAGS |
---|
3042 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3043 | if test "$GCC" = yes; then |
---|
3044 | CFLAGS="-g -O2" |
---|
3045 | else |
---|
3046 | CFLAGS="-g" |
---|
3047 | fi |
---|
3048 | else |
---|
3049 | if test "$GCC" = yes; then |
---|
3050 | CFLAGS="-O2" |
---|
3051 | else |
---|
3052 | CFLAGS= |
---|
3053 | fi |
---|
3054 | fi |
---|
3055 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3056 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3057 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3059 | else |
---|
3060 | ac_cv_prog_cc_stdc=no |
---|
3061 | ac_save_CC=$CC |
---|
3062 | cat >conftest.$ac_ext <<_ACEOF |
---|
3063 | /* confdefs.h. */ |
---|
3064 | _ACEOF |
---|
3065 | cat confdefs.h >>conftest.$ac_ext |
---|
3066 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3067 | /* end confdefs.h. */ |
---|
3068 | #include <stdarg.h> |
---|
3069 | #include <stdio.h> |
---|
3070 | #include <sys/types.h> |
---|
3071 | #include <sys/stat.h> |
---|
3072 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3073 | struct buf { int x; }; |
---|
3074 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3075 | static char *e (p, i) |
---|
3076 | char **p; |
---|
3077 | int i; |
---|
3078 | { |
---|
3079 | return p[i]; |
---|
3080 | } |
---|
3081 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3082 | { |
---|
3083 | char *s; |
---|
3084 | va_list v; |
---|
3085 | va_start (v,p); |
---|
3086 | s = g (p, va_arg (v,int)); |
---|
3087 | va_end (v); |
---|
3088 | return s; |
---|
3089 | } |
---|
3090 | |
---|
3091 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3092 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3093 | These don't provoke an error unfortunately, instead are silently treated |
---|
3094 | as 'x'. The following induces an error, until -std1 is added to get |
---|
3095 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3096 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3097 | that's true only with -std1. */ |
---|
3098 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3099 | |
---|
3100 | int test (int i, double x); |
---|
3101 | struct s1 {int (*f) (int a);}; |
---|
3102 | struct s2 {int (*f) (double a);}; |
---|
3103 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3104 | int argc; |
---|
3105 | char **argv; |
---|
3106 | int |
---|
3107 | main () |
---|
3108 | { |
---|
3109 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3110 | ; |
---|
3111 | return 0; |
---|
3112 | } |
---|
3113 | _ACEOF |
---|
3114 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3115 | # breaks some systems' header files. |
---|
3116 | # AIX -qlanglvl=ansi |
---|
3117 | # Ultrix and OSF/1 -std1 |
---|
3118 | # HP-UX 10.20 and later -Ae |
---|
3119 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3120 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3121 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3122 | do |
---|
3123 | CC="$ac_save_CC $ac_arg" |
---|
3124 | rm -f conftest.$ac_objext |
---|
3125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3126 | (eval $ac_compile) 2>conftest.er1 |
---|
3127 | ac_status=$? |
---|
3128 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3129 | rm -f conftest.er1 |
---|
3130 | cat conftest.err >&5 |
---|
3131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3132 | (exit $ac_status); } && |
---|
3133 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3134 | || test ! -s conftest.err' |
---|
3135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3136 | (eval $ac_try) 2>&5 |
---|
3137 | ac_status=$? |
---|
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3139 | (exit $ac_status); }; } && |
---|
3140 | { ac_try='test -s conftest.$ac_objext' |
---|
3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3142 | (eval $ac_try) 2>&5 |
---|
3143 | ac_status=$? |
---|
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3145 | (exit $ac_status); }; }; then |
---|
3146 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3147 | break |
---|
3148 | else |
---|
3149 | echo "$as_me: failed program was:" >&5 |
---|
3150 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3151 | |
---|
3152 | fi |
---|
3153 | rm -f conftest.err conftest.$ac_objext |
---|
3154 | done |
---|
3155 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3156 | CC=$ac_save_CC |
---|
3157 | |
---|
3158 | fi |
---|
3159 | |
---|
3160 | case "x$ac_cv_prog_cc_stdc" in |
---|
3161 | x|xno) |
---|
3162 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3163 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3164 | *) |
---|
3165 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3166 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3167 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3168 | esac |
---|
3169 | |
---|
3170 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3171 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3172 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3173 | # the declaration of exit, since it's the most demanding environment. |
---|
3174 | cat >conftest.$ac_ext <<_ACEOF |
---|
3175 | #ifndef __cplusplus |
---|
3176 | choke me |
---|
3177 | #endif |
---|
3178 | _ACEOF |
---|
3179 | rm -f conftest.$ac_objext |
---|
3180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3181 | (eval $ac_compile) 2>conftest.er1 |
---|
3182 | ac_status=$? |
---|
3183 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3184 | rm -f conftest.er1 |
---|
3185 | cat conftest.err >&5 |
---|
3186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3187 | (exit $ac_status); } && |
---|
3188 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3189 | || test ! -s conftest.err' |
---|
3190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3191 | (eval $ac_try) 2>&5 |
---|
3192 | ac_status=$? |
---|
3193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3194 | (exit $ac_status); }; } && |
---|
3195 | { ac_try='test -s conftest.$ac_objext' |
---|
3196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3197 | (eval $ac_try) 2>&5 |
---|
3198 | ac_status=$? |
---|
3199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3200 | (exit $ac_status); }; }; then |
---|
3201 | for ac_declaration in \ |
---|
3202 | '' \ |
---|
3203 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3204 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3205 | 'extern "C" void exit (int) throw ();' \ |
---|
3206 | 'extern "C" void exit (int);' \ |
---|
3207 | 'void exit (int);' |
---|
3208 | do |
---|
3209 | cat >conftest.$ac_ext <<_ACEOF |
---|
3210 | /* confdefs.h. */ |
---|
3211 | _ACEOF |
---|
3212 | cat confdefs.h >>conftest.$ac_ext |
---|
3213 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3214 | /* end confdefs.h. */ |
---|
3215 | $ac_declaration |
---|
3216 | #include <stdlib.h> |
---|
3217 | int |
---|
3218 | main () |
---|
3219 | { |
---|
3220 | exit (42); |
---|
3221 | ; |
---|
3222 | return 0; |
---|
3223 | } |
---|
3224 | _ACEOF |
---|
3225 | rm -f conftest.$ac_objext |
---|
3226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3227 | (eval $ac_compile) 2>conftest.er1 |
---|
3228 | ac_status=$? |
---|
3229 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3230 | rm -f conftest.er1 |
---|
3231 | cat conftest.err >&5 |
---|
3232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3233 | (exit $ac_status); } && |
---|
3234 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3235 | || test ! -s conftest.err' |
---|
3236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3237 | (eval $ac_try) 2>&5 |
---|
3238 | ac_status=$? |
---|
3239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3240 | (exit $ac_status); }; } && |
---|
3241 | { ac_try='test -s conftest.$ac_objext' |
---|
3242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3243 | (eval $ac_try) 2>&5 |
---|
3244 | ac_status=$? |
---|
3245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3246 | (exit $ac_status); }; }; then |
---|
3247 | : |
---|
3248 | else |
---|
3249 | echo "$as_me: failed program was:" >&5 |
---|
3250 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3251 | |
---|
3252 | continue |
---|
3253 | fi |
---|
3254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3255 | cat >conftest.$ac_ext <<_ACEOF |
---|
3256 | /* confdefs.h. */ |
---|
3257 | _ACEOF |
---|
3258 | cat confdefs.h >>conftest.$ac_ext |
---|
3259 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3260 | /* end confdefs.h. */ |
---|
3261 | $ac_declaration |
---|
3262 | int |
---|
3263 | main () |
---|
3264 | { |
---|
3265 | exit (42); |
---|
3266 | ; |
---|
3267 | return 0; |
---|
3268 | } |
---|
3269 | _ACEOF |
---|
3270 | rm -f conftest.$ac_objext |
---|
3271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3272 | (eval $ac_compile) 2>conftest.er1 |
---|
3273 | ac_status=$? |
---|
3274 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3275 | rm -f conftest.er1 |
---|
3276 | cat conftest.err >&5 |
---|
3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3278 | (exit $ac_status); } && |
---|
3279 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3280 | || test ! -s conftest.err' |
---|
3281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3282 | (eval $ac_try) 2>&5 |
---|
3283 | ac_status=$? |
---|
3284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3285 | (exit $ac_status); }; } && |
---|
3286 | { ac_try='test -s conftest.$ac_objext' |
---|
3287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3288 | (eval $ac_try) 2>&5 |
---|
3289 | ac_status=$? |
---|
3290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3291 | (exit $ac_status); }; }; then |
---|
3292 | break |
---|
3293 | else |
---|
3294 | echo "$as_me: failed program was:" >&5 |
---|
3295 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3296 | |
---|
3297 | fi |
---|
3298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3299 | done |
---|
3300 | rm -f conftest* |
---|
3301 | if test -n "$ac_declaration"; then |
---|
3302 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3303 | echo $ac_declaration >>confdefs.h |
---|
3304 | echo '#endif' >>confdefs.h |
---|
3305 | fi |
---|
3306 | |
---|
3307 | else |
---|
3308 | echo "$as_me: failed program was:" >&5 |
---|
3309 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3310 | |
---|
3311 | fi |
---|
3312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3313 | ac_ext=c |
---|
3314 | ac_cpp='$CPP $CPPFLAGS' |
---|
3315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3318 | |
---|
3319 | depcc="$CC" am_compiler_list= |
---|
3320 | |
---|
3321 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3322 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3323 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3325 | else |
---|
3326 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3327 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3328 | # making bogus files that we don't know about and never remove. For |
---|
3329 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3330 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3331 | # in D'. |
---|
3332 | mkdir conftest.dir |
---|
3333 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3334 | # using a relative directory. |
---|
3335 | cp "$am_depcomp" conftest.dir |
---|
3336 | cd conftest.dir |
---|
3337 | # We will build objects and dependencies in a subdirectory because |
---|
3338 | # it helps to detect inapplicable dependency modes. For instance |
---|
3339 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3340 | # side effect of compilation, but ICC will put the dependencies in |
---|
3341 | # the current directory while Tru64 will put them in the object |
---|
3342 | # directory. |
---|
3343 | mkdir sub |
---|
3344 | |
---|
3345 | am_cv_CC_dependencies_compiler_type=none |
---|
3346 | if test "$am_compiler_list" = ""; then |
---|
3347 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3348 | fi |
---|
3349 | for depmode in $am_compiler_list; do |
---|
3350 | # Setup a source with many dependencies, because some compilers |
---|
3351 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3352 | # we should not choose a depcomp mode which is confused by this. |
---|
3353 | # |
---|
3354 | # We need to recreate these files for each test, as the compiler may |
---|
3355 | # overwrite some of them when testing with obscure command lines. |
---|
3356 | # This happens at least with the AIX C compiler. |
---|
3357 | : > sub/conftest.c |
---|
3358 | for i in 1 2 3 4 5 6; do |
---|
3359 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3360 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3361 | # Solaris 8's {/usr,}/bin/sh. |
---|
3362 | touch sub/conftst$i.h |
---|
3363 | done |
---|
3364 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3365 | |
---|
3366 | case $depmode in |
---|
3367 | nosideeffect) |
---|
3368 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3369 | # only be used when explicitly requested |
---|
3370 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3371 | continue |
---|
3372 | else |
---|
3373 | break |
---|
3374 | fi |
---|
3375 | ;; |
---|
3376 | none) break ;; |
---|
3377 | esac |
---|
3378 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3379 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3380 | # handle `-M -o', and we need to detect this. |
---|
3381 | if depmode=$depmode \ |
---|
3382 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3383 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3384 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3385 | >/dev/null 2>conftest.err && |
---|
3386 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3387 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3388 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3389 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3390 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3391 | # that says an option was ignored or not supported. |
---|
3392 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3393 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3394 | # The diagnosis changed in icc 8.0: |
---|
3395 | # icc: Command line remark: option '-MP' not supported |
---|
3396 | if (grep 'ignoring option' conftest.err || |
---|
3397 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3398 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3399 | break |
---|
3400 | fi |
---|
3401 | fi |
---|
3402 | done |
---|
3403 | |
---|
3404 | cd .. |
---|
3405 | rm -rf conftest.dir |
---|
3406 | else |
---|
3407 | am_cv_CC_dependencies_compiler_type=none |
---|
3408 | fi |
---|
3409 | |
---|
3410 | fi |
---|
3411 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3412 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3413 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3414 | |
---|
3415 | |
---|
3416 | |
---|
3417 | if |
---|
3418 | test "x$enable_dependency_tracking" != xno \ |
---|
3419 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3420 | am__fastdepCC_TRUE= |
---|
3421 | am__fastdepCC_FALSE='#' |
---|
3422 | else |
---|
3423 | am__fastdepCC_TRUE='#' |
---|
3424 | am__fastdepCC_FALSE= |
---|
3425 | fi |
---|
3426 | |
---|
3427 | |
---|
3428 | |
---|
3429 | ac_ext=c |
---|
3430 | ac_cpp='$CPP $CPPFLAGS' |
---|
3431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3434 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3435 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3436 | # On Suns, sometimes $CPP names a directory. |
---|
3437 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3438 | CPP= |
---|
3439 | fi |
---|
3440 | if test -z "$CPP"; then |
---|
3441 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3443 | else |
---|
3444 | # Double quotes because CPP needs to be expanded |
---|
3445 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3446 | do |
---|
3447 | ac_preproc_ok=false |
---|
3448 | for ac_c_preproc_warn_flag in '' yes |
---|
3449 | do |
---|
3450 | # Use a header file that comes with gcc, so configuring glibc |
---|
3451 | # with a fresh cross-compiler works. |
---|
3452 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3453 | # <limits.h> exists even on freestanding compilers. |
---|
3454 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3455 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3456 | cat >conftest.$ac_ext <<_ACEOF |
---|
3457 | /* confdefs.h. */ |
---|
3458 | _ACEOF |
---|
3459 | cat confdefs.h >>conftest.$ac_ext |
---|
3460 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3461 | /* end confdefs.h. */ |
---|
3462 | #ifdef __STDC__ |
---|
3463 | # include <limits.h> |
---|
3464 | #else |
---|
3465 | # include <assert.h> |
---|
3466 | #endif |
---|
3467 | Syntax error |
---|
3468 | _ACEOF |
---|
3469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3471 | ac_status=$? |
---|
3472 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3473 | rm -f conftest.er1 |
---|
3474 | cat conftest.err >&5 |
---|
3475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3476 | (exit $ac_status); } >/dev/null; then |
---|
3477 | if test -s conftest.err; then |
---|
3478 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3480 | else |
---|
3481 | ac_cpp_err= |
---|
3482 | fi |
---|
3483 | else |
---|
3484 | ac_cpp_err=yes |
---|
3485 | fi |
---|
3486 | if test -z "$ac_cpp_err"; then |
---|
3487 | : |
---|
3488 | else |
---|
3489 | echo "$as_me: failed program was:" >&5 |
---|
3490 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3491 | |
---|
3492 | # Broken: fails on valid input. |
---|
3493 | continue |
---|
3494 | fi |
---|
3495 | rm -f conftest.err conftest.$ac_ext |
---|
3496 | |
---|
3497 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3498 | # can be detected and how. |
---|
3499 | cat >conftest.$ac_ext <<_ACEOF |
---|
3500 | /* confdefs.h. */ |
---|
3501 | _ACEOF |
---|
3502 | cat confdefs.h >>conftest.$ac_ext |
---|
3503 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3504 | /* end confdefs.h. */ |
---|
3505 | #include <ac_nonexistent.h> |
---|
3506 | _ACEOF |
---|
3507 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3508 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3509 | ac_status=$? |
---|
3510 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3511 | rm -f conftest.er1 |
---|
3512 | cat conftest.err >&5 |
---|
3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3514 | (exit $ac_status); } >/dev/null; then |
---|
3515 | if test -s conftest.err; then |
---|
3516 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3517 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3518 | else |
---|
3519 | ac_cpp_err= |
---|
3520 | fi |
---|
3521 | else |
---|
3522 | ac_cpp_err=yes |
---|
3523 | fi |
---|
3524 | if test -z "$ac_cpp_err"; then |
---|
3525 | # Broken: success on invalid input. |
---|
3526 | continue |
---|
3527 | else |
---|
3528 | echo "$as_me: failed program was:" >&5 |
---|
3529 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3530 | |
---|
3531 | # Passes both tests. |
---|
3532 | ac_preproc_ok=: |
---|
3533 | break |
---|
3534 | fi |
---|
3535 | rm -f conftest.err conftest.$ac_ext |
---|
3536 | |
---|
3537 | done |
---|
3538 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3539 | rm -f conftest.err conftest.$ac_ext |
---|
3540 | if $ac_preproc_ok; then |
---|
3541 | break |
---|
3542 | fi |
---|
3543 | |
---|
3544 | done |
---|
3545 | ac_cv_prog_CPP=$CPP |
---|
3546 | |
---|
3547 | fi |
---|
3548 | CPP=$ac_cv_prog_CPP |
---|
3549 | else |
---|
3550 | ac_cv_prog_CPP=$CPP |
---|
3551 | fi |
---|
3552 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3553 | echo "${ECHO_T}$CPP" >&6 |
---|
3554 | ac_preproc_ok=false |
---|
3555 | for ac_c_preproc_warn_flag in '' yes |
---|
3556 | do |
---|
3557 | # Use a header file that comes with gcc, so configuring glibc |
---|
3558 | # with a fresh cross-compiler works. |
---|
3559 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3560 | # <limits.h> exists even on freestanding compilers. |
---|
3561 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3562 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3563 | cat >conftest.$ac_ext <<_ACEOF |
---|
3564 | /* confdefs.h. */ |
---|
3565 | _ACEOF |
---|
3566 | cat confdefs.h >>conftest.$ac_ext |
---|
3567 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3568 | /* end confdefs.h. */ |
---|
3569 | #ifdef __STDC__ |
---|
3570 | # include <limits.h> |
---|
3571 | #else |
---|
3572 | # include <assert.h> |
---|
3573 | #endif |
---|
3574 | Syntax error |
---|
3575 | _ACEOF |
---|
3576 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3577 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3578 | ac_status=$? |
---|
3579 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3580 | rm -f conftest.er1 |
---|
3581 | cat conftest.err >&5 |
---|
3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3583 | (exit $ac_status); } >/dev/null; then |
---|
3584 | if test -s conftest.err; then |
---|
3585 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3586 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3587 | else |
---|
3588 | ac_cpp_err= |
---|
3589 | fi |
---|
3590 | else |
---|
3591 | ac_cpp_err=yes |
---|
3592 | fi |
---|
3593 | if test -z "$ac_cpp_err"; then |
---|
3594 | : |
---|
3595 | else |
---|
3596 | echo "$as_me: failed program was:" >&5 |
---|
3597 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3598 | |
---|
3599 | # Broken: fails on valid input. |
---|
3600 | continue |
---|
3601 | fi |
---|
3602 | rm -f conftest.err conftest.$ac_ext |
---|
3603 | |
---|
3604 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3605 | # can be detected and how. |
---|
3606 | cat >conftest.$ac_ext <<_ACEOF |
---|
3607 | /* confdefs.h. */ |
---|
3608 | _ACEOF |
---|
3609 | cat confdefs.h >>conftest.$ac_ext |
---|
3610 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3611 | /* end confdefs.h. */ |
---|
3612 | #include <ac_nonexistent.h> |
---|
3613 | _ACEOF |
---|
3614 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3615 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3616 | ac_status=$? |
---|
3617 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3618 | rm -f conftest.er1 |
---|
3619 | cat conftest.err >&5 |
---|
3620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3621 | (exit $ac_status); } >/dev/null; then |
---|
3622 | if test -s conftest.err; then |
---|
3623 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3624 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3625 | else |
---|
3626 | ac_cpp_err= |
---|
3627 | fi |
---|
3628 | else |
---|
3629 | ac_cpp_err=yes |
---|
3630 | fi |
---|
3631 | if test -z "$ac_cpp_err"; then |
---|
3632 | # Broken: success on invalid input. |
---|
3633 | continue |
---|
3634 | else |
---|
3635 | echo "$as_me: failed program was:" >&5 |
---|
3636 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3637 | |
---|
3638 | # Passes both tests. |
---|
3639 | ac_preproc_ok=: |
---|
3640 | break |
---|
3641 | fi |
---|
3642 | rm -f conftest.err conftest.$ac_ext |
---|
3643 | |
---|
3644 | done |
---|
3645 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3646 | rm -f conftest.err conftest.$ac_ext |
---|
3647 | if $ac_preproc_ok; then |
---|
3648 | : |
---|
3649 | else |
---|
3650 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3651 | See \`config.log' for more details." >&5 |
---|
3652 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3653 | See \`config.log' for more details." >&2;} |
---|
3654 | { (exit 1); exit 1; }; } |
---|
3655 | fi |
---|
3656 | |
---|
3657 | ac_ext=c |
---|
3658 | ac_cpp='$CPP $CPPFLAGS' |
---|
3659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3662 | |
---|
3663 | |
---|
3664 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3665 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3666 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3668 | else |
---|
3669 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3670 | then ac_cv_prog_egrep='grep -E' |
---|
3671 | else ac_cv_prog_egrep='egrep' |
---|
3672 | fi |
---|
3673 | fi |
---|
3674 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3675 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3676 | EGREP=$ac_cv_prog_egrep |
---|
3677 | |
---|
3678 | |
---|
3679 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3680 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3681 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3683 | else |
---|
3684 | cat >conftest.$ac_ext <<_ACEOF |
---|
3685 | /* confdefs.h. */ |
---|
3686 | _ACEOF |
---|
3687 | cat confdefs.h >>conftest.$ac_ext |
---|
3688 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3689 | /* end confdefs.h. */ |
---|
3690 | #include <stdlib.h> |
---|
3691 | #include <stdarg.h> |
---|
3692 | #include <string.h> |
---|
3693 | #include <float.h> |
---|
3694 | |
---|
3695 | int |
---|
3696 | main () |
---|
3697 | { |
---|
3698 | |
---|
3699 | ; |
---|
3700 | return 0; |
---|
3701 | } |
---|
3702 | _ACEOF |
---|
3703 | rm -f conftest.$ac_objext |
---|
3704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3705 | (eval $ac_compile) 2>conftest.er1 |
---|
3706 | ac_status=$? |
---|
3707 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3708 | rm -f conftest.er1 |
---|
3709 | cat conftest.err >&5 |
---|
3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3711 | (exit $ac_status); } && |
---|
3712 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3713 | || test ! -s conftest.err' |
---|
3714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3715 | (eval $ac_try) 2>&5 |
---|
3716 | ac_status=$? |
---|
3717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3718 | (exit $ac_status); }; } && |
---|
3719 | { ac_try='test -s conftest.$ac_objext' |
---|
3720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3721 | (eval $ac_try) 2>&5 |
---|
3722 | ac_status=$? |
---|
3723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3724 | (exit $ac_status); }; }; then |
---|
3725 | ac_cv_header_stdc=yes |
---|
3726 | else |
---|
3727 | echo "$as_me: failed program was:" >&5 |
---|
3728 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3729 | |
---|
3730 | ac_cv_header_stdc=no |
---|
3731 | fi |
---|
3732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3733 | |
---|
3734 | if test $ac_cv_header_stdc = yes; then |
---|
3735 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3736 | cat >conftest.$ac_ext <<_ACEOF |
---|
3737 | /* confdefs.h. */ |
---|
3738 | _ACEOF |
---|
3739 | cat confdefs.h >>conftest.$ac_ext |
---|
3740 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3741 | /* end confdefs.h. */ |
---|
3742 | #include <string.h> |
---|
3743 | |
---|
3744 | _ACEOF |
---|
3745 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3746 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3747 | : |
---|
3748 | else |
---|
3749 | ac_cv_header_stdc=no |
---|
3750 | fi |
---|
3751 | rm -f conftest* |
---|
3752 | |
---|
3753 | fi |
---|
3754 | |
---|
3755 | if test $ac_cv_header_stdc = yes; then |
---|
3756 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3757 | cat >conftest.$ac_ext <<_ACEOF |
---|
3758 | /* confdefs.h. */ |
---|
3759 | _ACEOF |
---|
3760 | cat confdefs.h >>conftest.$ac_ext |
---|
3761 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3762 | /* end confdefs.h. */ |
---|
3763 | #include <stdlib.h> |
---|
3764 | |
---|
3765 | _ACEOF |
---|
3766 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3767 | $EGREP "free" >/dev/null 2>&1; then |
---|
3768 | : |
---|
3769 | else |
---|
3770 | ac_cv_header_stdc=no |
---|
3771 | fi |
---|
3772 | rm -f conftest* |
---|
3773 | |
---|
3774 | fi |
---|
3775 | |
---|
3776 | if test $ac_cv_header_stdc = yes; then |
---|
3777 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3778 | if test "$cross_compiling" = yes; then |
---|
3779 | : |
---|
3780 | else |
---|
3781 | cat >conftest.$ac_ext <<_ACEOF |
---|
3782 | /* confdefs.h. */ |
---|
3783 | _ACEOF |
---|
3784 | cat confdefs.h >>conftest.$ac_ext |
---|
3785 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3786 | /* end confdefs.h. */ |
---|
3787 | #include <ctype.h> |
---|
3788 | #if ((' ' & 0x0FF) == 0x020) |
---|
3789 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3790 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3791 | #else |
---|
3792 | # define ISLOWER(c) \ |
---|
3793 | (('a' <= (c) && (c) <= 'i') \ |
---|
3794 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3795 | || ('s' <= (c) && (c) <= 'z')) |
---|
3796 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3797 | #endif |
---|
3798 | |
---|
3799 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3800 | int |
---|
3801 | main () |
---|
3802 | { |
---|
3803 | int i; |
---|
3804 | for (i = 0; i < 256; i++) |
---|
3805 | if (XOR (islower (i), ISLOWER (i)) |
---|
3806 | || toupper (i) != TOUPPER (i)) |
---|
3807 | exit(2); |
---|
3808 | exit (0); |
---|
3809 | } |
---|
3810 | _ACEOF |
---|
3811 | rm -f conftest$ac_exeext |
---|
3812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3813 | (eval $ac_link) 2>&5 |
---|
3814 | ac_status=$? |
---|
3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3818 | (eval $ac_try) 2>&5 |
---|
3819 | ac_status=$? |
---|
3820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3821 | (exit $ac_status); }; }; then |
---|
3822 | : |
---|
3823 | else |
---|
3824 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3825 | echo "$as_me: failed program was:" >&5 |
---|
3826 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3827 | |
---|
3828 | ( exit $ac_status ) |
---|
3829 | ac_cv_header_stdc=no |
---|
3830 | fi |
---|
3831 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3832 | fi |
---|
3833 | fi |
---|
3834 | fi |
---|
3835 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3836 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3837 | if test $ac_cv_header_stdc = yes; then |
---|
3838 | |
---|
3839 | cat >>confdefs.h <<\_ACEOF |
---|
3840 | #define STDC_HEADERS 1 |
---|
3841 | _ACEOF |
---|
3842 | |
---|
3843 | fi |
---|
3844 | |
---|
3845 | |
---|
3846 | ################################## |
---|
3847 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
3848 | ################################## |
---|
3849 | |
---|
3850 | #-----------------# |
---|
3851 | # DEBUG-statement # |
---|
3852 | #-----------------# |
---|
3853 | DEBUG=no |
---|
3854 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
3855 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
3856 | # Check whether --enable-debug or --disable-debug was given. |
---|
3857 | if test "${enable_debug+set}" = set; then |
---|
3858 | enableval="$enable_debug" |
---|
3859 | DEBUG=$enableval |
---|
3860 | fi; |
---|
3861 | |
---|
3862 | if test x$DEBUG = xno; then |
---|
3863 | echo "no" |
---|
3864 | echo " -> Setting debuglevel to 3. (orxonox is still in Development. It really is needed." |
---|
3865 | DEBUG=3 |
---|
3866 | elif test x$DEBUG = xyes; then |
---|
3867 | echo "yes" |
---|
3868 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
3869 | DEBUG=4 |
---|
3870 | else |
---|
3871 | echo "yes: setting debuglevel to to $DEBUG" |
---|
3872 | fi |
---|
3873 | |
---|
3874 | cat >>confdefs.h <<_ACEOF |
---|
3875 | #define DEBUG $DEBUG |
---|
3876 | _ACEOF |
---|
3877 | |
---|
3878 | |
---|
3879 | |
---|
3880 | |
---|
3881 | #--------------# |
---|
3882 | # GTK-disabled # |
---|
3883 | #--------------# |
---|
3884 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
3885 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
3886 | |
---|
3887 | # Check whether --with-gtk or --without-gtk was given. |
---|
3888 | if test "${with_gtk+set}" = set; then |
---|
3889 | withval="$with_gtk" |
---|
3890 | def_gtk=no |
---|
3891 | else |
---|
3892 | def_gtk=yes |
---|
3893 | fi; |
---|
3894 | if test x$def_gtk = xyes; then |
---|
3895 | echo "yes" |
---|
3896 | fi |
---|
3897 | if test x$def_gtk = xno; then |
---|
3898 | echo "no" |
---|
3899 | fi |
---|
3900 | |
---|
3901 | #------------------# |
---|
3902 | # gThread-disabled # |
---|
3903 | #------------------# |
---|
3904 | echo "$as_me:$LINENO: checking if gThread should be enabled" >&5 |
---|
3905 | echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6 |
---|
3906 | |
---|
3907 | # Check whether --with-gthread or --without-gthread was given. |
---|
3908 | if test "${with_gthread+set}" = set; then |
---|
3909 | withval="$with_gthread" |
---|
3910 | def_gthread=no |
---|
3911 | else |
---|
3912 | def_gthread=yes |
---|
3913 | fi; |
---|
3914 | if test x$def_gthread = xyes; then |
---|
3915 | echo "yes" |
---|
3916 | fi |
---|
3917 | if test x$def_gthread = xno; then |
---|
3918 | echo "no" |
---|
3919 | fi |
---|
3920 | |
---|
3921 | #------------------# |
---|
3922 | # pthread-disabled # |
---|
3923 | #------------------# |
---|
3924 | echo "$as_me:$LINENO: checking if pthread should be enabled" >&5 |
---|
3925 | echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6 |
---|
3926 | |
---|
3927 | # Check whether --with-pthread or --without-pthread was given. |
---|
3928 | if test "${with_pthread+set}" = set; then |
---|
3929 | withval="$with_pthread" |
---|
3930 | def_pthread=no |
---|
3931 | else |
---|
3932 | def_pthread=yes |
---|
3933 | fi; |
---|
3934 | if test x$def_pthread = xyes; then |
---|
3935 | echo "yes" |
---|
3936 | fi |
---|
3937 | if test x$def_pthread = xno; then |
---|
3938 | echo "no" |
---|
3939 | fi |
---|
3940 | |
---|
3941 | #------------------# |
---|
3942 | # libCurl-disabled # |
---|
3943 | #------------------# |
---|
3944 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
3945 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
3946 | |
---|
3947 | # Check whether --with-curl or --without-curl was given. |
---|
3948 | if test "${with_curl+set}" = set; then |
---|
3949 | withval="$with_curl" |
---|
3950 | def_curl=no |
---|
3951 | else |
---|
3952 | def_curl=yes |
---|
3953 | fi; |
---|
3954 | if test x$def_curl = xyes; then |
---|
3955 | echo "yes" |
---|
3956 | fi |
---|
3957 | if test x$def_curl = xno; then |
---|
3958 | echo "no" |
---|
3959 | fi |
---|
3960 | |
---|
3961 | #-------------------# |
---|
3962 | # SDL_image-disable # |
---|
3963 | #-------------------# |
---|
3964 | def_sdl_image=yes |
---|
3965 | echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 |
---|
3966 | echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 |
---|
3967 | |
---|
3968 | # Check whether --with-sdl_image or --without-sdl_image was given. |
---|
3969 | if test "${with_sdl_image+set}" = set; then |
---|
3970 | withval="$with_sdl_image" |
---|
3971 | def_sdl_image=no |
---|
3972 | fi; |
---|
3973 | if test x$def_sdl_image = xyes; then |
---|
3974 | echo "yes" |
---|
3975 | fi |
---|
3976 | if test x$def_sdl_image = xno; then |
---|
3977 | echo "no" |
---|
3978 | fi |
---|
3979 | |
---|
3980 | #-------------------# |
---|
3981 | # SubProject-enable # |
---|
3982 | #-------------------# |
---|
3983 | def_sub_projects=no |
---|
3984 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
3985 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
3986 | # Check whether --enable-sub-projects or --disable-sub-projects was given. |
---|
3987 | if test "${enable_sub_projects+set}" = set; then |
---|
3988 | enableval="$enable_sub_projects" |
---|
3989 | def_sub_projects=yes |
---|
3990 | fi; |
---|
3991 | if test x$def_sub_projects = xyes; then |
---|
3992 | echo "yes" |
---|
3993 | fi |
---|
3994 | if test x$def_sub_projects = xno; then |
---|
3995 | echo "no" |
---|
3996 | fi |
---|
3997 | |
---|
3998 | |
---|
3999 | if test x$def_sub_projects = xyes; then |
---|
4000 | SUB_PROJECTS_TRUE= |
---|
4001 | SUB_PROJECTS_FALSE='#' |
---|
4002 | else |
---|
4003 | SUB_PROJECTS_TRUE='#' |
---|
4004 | SUB_PROJECTS_FALSE= |
---|
4005 | fi |
---|
4006 | |
---|
4007 | |
---|
4008 | #----------------------# |
---|
4009 | # Documentation-enable # |
---|
4010 | #----------------------# |
---|
4011 | def_documentation=no |
---|
4012 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
4013 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
4014 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
4015 | if test "${enable_documentation+set}" = set; then |
---|
4016 | enableval="$enable_documentation" |
---|
4017 | def_documentation=yes |
---|
4018 | fi; |
---|
4019 | if test x$def_documentation = xyes; then |
---|
4020 | echo "yes" |
---|
4021 | fi |
---|
4022 | if test x$def_documentation = xno; then |
---|
4023 | echo "no" |
---|
4024 | fi |
---|
4025 | |
---|
4026 | |
---|
4027 | if test x$def_documentation = xyes; then |
---|
4028 | DOCUMENTATION_TRUE= |
---|
4029 | DOCUMENTATION_FALSE='#' |
---|
4030 | else |
---|
4031 | DOCUMENTATION_TRUE='#' |
---|
4032 | DOCUMENTATION_FALSE= |
---|
4033 | fi |
---|
4034 | |
---|
4035 | ####################### |
---|
4036 | ## PROGRAMM CHECKING ## |
---|
4037 | ## 3. party Programs ## |
---|
4038 | ####################### |
---|
4039 | |
---|
4040 | #----------------------# |
---|
4041 | # checking for Doxygen # |
---|
4042 | #----------------------# |
---|
4043 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
4044 | set dummy doxygen; ac_word=$2 |
---|
4045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4047 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
4048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4049 | else |
---|
4050 | case $DOXYGEN in |
---|
4051 | [\\/]* | ?:[\\/]*) |
---|
4052 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
4053 | ;; |
---|
4054 | *) |
---|
4055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4056 | for as_dir in $PATH |
---|
4057 | do |
---|
4058 | IFS=$as_save_IFS |
---|
4059 | test -z "$as_dir" && as_dir=. |
---|
4060 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4061 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4062 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
4063 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4064 | break 2 |
---|
4065 | fi |
---|
4066 | done |
---|
4067 | done |
---|
4068 | |
---|
4069 | ;; |
---|
4070 | esac |
---|
4071 | fi |
---|
4072 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
4073 | |
---|
4074 | if test -n "$DOXYGEN"; then |
---|
4075 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
4076 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
4077 | else |
---|
4078 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4079 | echo "${ECHO_T}no" >&6 |
---|
4080 | fi |
---|
4081 | |
---|
4082 | |
---|
4083 | |
---|
4084 | if test $DOXYGEN; then |
---|
4085 | DOXYGEN_TRUE= |
---|
4086 | DOXYGEN_FALSE='#' |
---|
4087 | else |
---|
4088 | DOXYGEN_TRUE='#' |
---|
4089 | DOXYGEN_FALSE= |
---|
4090 | fi |
---|
4091 | |
---|
4092 | |
---|
4093 | ######################### |
---|
4094 | ## CHECKING FOR SYSTEM ## |
---|
4095 | ######################### |
---|
4096 | ## here the system is checked, and openGL is included |
---|
4097 | ## also checking for SDL on differen Systems |
---|
4098 | |
---|
4099 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
4100 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
4101 | ## checking for openGL-environment and other sys-specific parameters |
---|
4102 | case "$target" in |
---|
4103 | #---------# |
---|
4104 | # WINDOWS # |
---|
4105 | #---------# |
---|
4106 | *-*-mingw32*) |
---|
4107 | echo "mingw-WINDOWS detected" |
---|
4108 | |
---|
4109 | mingw="yes" |
---|
4110 | MSBITFIELDS="-mms-bitfields" |
---|
4111 | MWINDOWS="-mwindows" |
---|
4112 | |
---|
4113 | # checking gl header |
---|
4114 | #done before loop |
---|
4115 | |
---|
4116 | # checking gl header |
---|
4117 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4118 | |
---|
4119 | |
---|
4120 | |
---|
4121 | |
---|
4122 | |
---|
4123 | |
---|
4124 | |
---|
4125 | |
---|
4126 | |
---|
4127 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4128 | inttypes.h stdint.h unistd.h |
---|
4129 | do |
---|
4130 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4131 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4135 | else |
---|
4136 | cat >conftest.$ac_ext <<_ACEOF |
---|
4137 | /* confdefs.h. */ |
---|
4138 | _ACEOF |
---|
4139 | cat confdefs.h >>conftest.$ac_ext |
---|
4140 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4141 | /* end confdefs.h. */ |
---|
4142 | $ac_includes_default |
---|
4143 | |
---|
4144 | #include <$ac_header> |
---|
4145 | _ACEOF |
---|
4146 | rm -f conftest.$ac_objext |
---|
4147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4148 | (eval $ac_compile) 2>conftest.er1 |
---|
4149 | ac_status=$? |
---|
4150 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4151 | rm -f conftest.er1 |
---|
4152 | cat conftest.err >&5 |
---|
4153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4154 | (exit $ac_status); } && |
---|
4155 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4156 | || test ! -s conftest.err' |
---|
4157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4158 | (eval $ac_try) 2>&5 |
---|
4159 | ac_status=$? |
---|
4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4161 | (exit $ac_status); }; } && |
---|
4162 | { ac_try='test -s conftest.$ac_objext' |
---|
4163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4164 | (eval $ac_try) 2>&5 |
---|
4165 | ac_status=$? |
---|
4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4167 | (exit $ac_status); }; }; then |
---|
4168 | eval "$as_ac_Header=yes" |
---|
4169 | else |
---|
4170 | echo "$as_me: failed program was:" >&5 |
---|
4171 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4172 | |
---|
4173 | eval "$as_ac_Header=no" |
---|
4174 | fi |
---|
4175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4176 | fi |
---|
4177 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4178 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4179 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4180 | cat >>confdefs.h <<_ACEOF |
---|
4181 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4182 | _ACEOF |
---|
4183 | |
---|
4184 | fi |
---|
4185 | |
---|
4186 | done |
---|
4187 | |
---|
4188 | |
---|
4189 | |
---|
4190 | for ac_header in GL/gl.h |
---|
4191 | do |
---|
4192 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4193 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4194 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4198 | fi |
---|
4199 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4200 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4201 | else |
---|
4202 | # Is the header compilable? |
---|
4203 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4204 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4205 | cat >conftest.$ac_ext <<_ACEOF |
---|
4206 | /* confdefs.h. */ |
---|
4207 | _ACEOF |
---|
4208 | cat confdefs.h >>conftest.$ac_ext |
---|
4209 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4210 | /* end confdefs.h. */ |
---|
4211 | $ac_includes_default |
---|
4212 | #include <$ac_header> |
---|
4213 | _ACEOF |
---|
4214 | rm -f conftest.$ac_objext |
---|
4215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4216 | (eval $ac_compile) 2>conftest.er1 |
---|
4217 | ac_status=$? |
---|
4218 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4219 | rm -f conftest.er1 |
---|
4220 | cat conftest.err >&5 |
---|
4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4222 | (exit $ac_status); } && |
---|
4223 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4224 | || test ! -s conftest.err' |
---|
4225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4226 | (eval $ac_try) 2>&5 |
---|
4227 | ac_status=$? |
---|
4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4229 | (exit $ac_status); }; } && |
---|
4230 | { ac_try='test -s conftest.$ac_objext' |
---|
4231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4232 | (eval $ac_try) 2>&5 |
---|
4233 | ac_status=$? |
---|
4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4235 | (exit $ac_status); }; }; then |
---|
4236 | ac_header_compiler=yes |
---|
4237 | else |
---|
4238 | echo "$as_me: failed program was:" >&5 |
---|
4239 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4240 | |
---|
4241 | ac_header_compiler=no |
---|
4242 | fi |
---|
4243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4244 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4245 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4246 | |
---|
4247 | # Is the header present? |
---|
4248 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4249 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4250 | cat >conftest.$ac_ext <<_ACEOF |
---|
4251 | /* confdefs.h. */ |
---|
4252 | _ACEOF |
---|
4253 | cat confdefs.h >>conftest.$ac_ext |
---|
4254 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4255 | /* end confdefs.h. */ |
---|
4256 | #include <$ac_header> |
---|
4257 | _ACEOF |
---|
4258 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4259 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4260 | ac_status=$? |
---|
4261 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4262 | rm -f conftest.er1 |
---|
4263 | cat conftest.err >&5 |
---|
4264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4265 | (exit $ac_status); } >/dev/null; then |
---|
4266 | if test -s conftest.err; then |
---|
4267 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4268 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4269 | else |
---|
4270 | ac_cpp_err= |
---|
4271 | fi |
---|
4272 | else |
---|
4273 | ac_cpp_err=yes |
---|
4274 | fi |
---|
4275 | if test -z "$ac_cpp_err"; then |
---|
4276 | ac_header_preproc=yes |
---|
4277 | else |
---|
4278 | echo "$as_me: failed program was:" >&5 |
---|
4279 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4280 | |
---|
4281 | ac_header_preproc=no |
---|
4282 | fi |
---|
4283 | rm -f conftest.err conftest.$ac_ext |
---|
4284 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4285 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4286 | |
---|
4287 | # So? What about this header? |
---|
4288 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4289 | yes:no: ) |
---|
4290 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4291 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4292 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4293 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4294 | ac_header_preproc=yes |
---|
4295 | ;; |
---|
4296 | no:yes:* ) |
---|
4297 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4298 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4299 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4300 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4301 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4302 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4303 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4304 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4305 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4306 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4307 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4308 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4309 | ( |
---|
4310 | cat <<\_ASBOX |
---|
4311 | ## ---------------------------------------------- ## |
---|
4312 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4313 | ## ---------------------------------------------- ## |
---|
4314 | _ASBOX |
---|
4315 | ) | |
---|
4316 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4317 | ;; |
---|
4318 | esac |
---|
4319 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4320 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4321 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4323 | else |
---|
4324 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4325 | fi |
---|
4326 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4327 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4328 | |
---|
4329 | fi |
---|
4330 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4331 | cat >>confdefs.h <<_ACEOF |
---|
4332 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4333 | _ACEOF |
---|
4334 | |
---|
4335 | else |
---|
4336 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4337 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4338 | { (exit 1); exit 1; }; } |
---|
4339 | fi |
---|
4340 | |
---|
4341 | done |
---|
4342 | |
---|
4343 | # checking for Windows openGl library |
---|
4344 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4345 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4346 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4348 | else |
---|
4349 | ac_check_lib_save_LIBS=$LIBS |
---|
4350 | LIBS="-lopengl32 $LIBS" |
---|
4351 | cat >conftest.$ac_ext <<_ACEOF |
---|
4352 | /* confdefs.h. */ |
---|
4353 | _ACEOF |
---|
4354 | cat confdefs.h >>conftest.$ac_ext |
---|
4355 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4356 | /* end confdefs.h. */ |
---|
4357 | |
---|
4358 | |
---|
4359 | int |
---|
4360 | main () |
---|
4361 | { |
---|
4362 | main (); |
---|
4363 | ; |
---|
4364 | return 0; |
---|
4365 | } |
---|
4366 | _ACEOF |
---|
4367 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4369 | (eval $ac_link) 2>conftest.er1 |
---|
4370 | ac_status=$? |
---|
4371 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4372 | rm -f conftest.er1 |
---|
4373 | cat conftest.err >&5 |
---|
4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4375 | (exit $ac_status); } && |
---|
4376 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4377 | || test ! -s conftest.err' |
---|
4378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4379 | (eval $ac_try) 2>&5 |
---|
4380 | ac_status=$? |
---|
4381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4382 | (exit $ac_status); }; } && |
---|
4383 | { ac_try='test -s conftest$ac_exeext' |
---|
4384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4385 | (eval $ac_try) 2>&5 |
---|
4386 | ac_status=$? |
---|
4387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4388 | (exit $ac_status); }; }; then |
---|
4389 | ac_cv_lib_opengl32_main=yes |
---|
4390 | else |
---|
4391 | echo "$as_me: failed program was:" >&5 |
---|
4392 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4393 | |
---|
4394 | ac_cv_lib_opengl32_main=no |
---|
4395 | fi |
---|
4396 | rm -f conftest.err conftest.$ac_objext \ |
---|
4397 | conftest$ac_exeext conftest.$ac_ext |
---|
4398 | LIBS=$ac_check_lib_save_LIBS |
---|
4399 | fi |
---|
4400 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4401 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4402 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4403 | FOUND_opengl32=yes |
---|
4404 | else |
---|
4405 | "gl/gl.h" |
---|
4406 | fi |
---|
4407 | |
---|
4408 | if test x$FOUND_opengl32 = xyes ; then |
---|
4409 | LIBS="$LIBS -lopengl32" |
---|
4410 | else |
---|
4411 | echo "------------------" |
---|
4412 | echo "opengl not found." |
---|
4413 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4414 | echo "------------------" |
---|
4415 | exit -1 |
---|
4416 | fi |
---|
4417 | |
---|
4418 | # cheking for GLU-header |
---|
4419 | |
---|
4420 | for ac_header in GL/glu.h |
---|
4421 | do |
---|
4422 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4423 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4424 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4425 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4426 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4428 | fi |
---|
4429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4430 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4431 | else |
---|
4432 | # Is the header compilable? |
---|
4433 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4434 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4435 | cat >conftest.$ac_ext <<_ACEOF |
---|
4436 | /* confdefs.h. */ |
---|
4437 | _ACEOF |
---|
4438 | cat confdefs.h >>conftest.$ac_ext |
---|
4439 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4440 | /* end confdefs.h. */ |
---|
4441 | $ac_includes_default |
---|
4442 | #include <$ac_header> |
---|
4443 | _ACEOF |
---|
4444 | rm -f conftest.$ac_objext |
---|
4445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4446 | (eval $ac_compile) 2>conftest.er1 |
---|
4447 | ac_status=$? |
---|
4448 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4449 | rm -f conftest.er1 |
---|
4450 | cat conftest.err >&5 |
---|
4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4452 | (exit $ac_status); } && |
---|
4453 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4454 | || test ! -s conftest.err' |
---|
4455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4456 | (eval $ac_try) 2>&5 |
---|
4457 | ac_status=$? |
---|
4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4459 | (exit $ac_status); }; } && |
---|
4460 | { ac_try='test -s conftest.$ac_objext' |
---|
4461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4462 | (eval $ac_try) 2>&5 |
---|
4463 | ac_status=$? |
---|
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4465 | (exit $ac_status); }; }; then |
---|
4466 | ac_header_compiler=yes |
---|
4467 | else |
---|
4468 | echo "$as_me: failed program was:" >&5 |
---|
4469 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4470 | |
---|
4471 | ac_header_compiler=no |
---|
4472 | fi |
---|
4473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4474 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4475 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4476 | |
---|
4477 | # Is the header present? |
---|
4478 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4479 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4480 | cat >conftest.$ac_ext <<_ACEOF |
---|
4481 | /* confdefs.h. */ |
---|
4482 | _ACEOF |
---|
4483 | cat confdefs.h >>conftest.$ac_ext |
---|
4484 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4485 | /* end confdefs.h. */ |
---|
4486 | #include <$ac_header> |
---|
4487 | _ACEOF |
---|
4488 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4489 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4490 | ac_status=$? |
---|
4491 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4492 | rm -f conftest.er1 |
---|
4493 | cat conftest.err >&5 |
---|
4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4495 | (exit $ac_status); } >/dev/null; then |
---|
4496 | if test -s conftest.err; then |
---|
4497 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4498 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4499 | else |
---|
4500 | ac_cpp_err= |
---|
4501 | fi |
---|
4502 | else |
---|
4503 | ac_cpp_err=yes |
---|
4504 | fi |
---|
4505 | if test -z "$ac_cpp_err"; then |
---|
4506 | ac_header_preproc=yes |
---|
4507 | else |
---|
4508 | echo "$as_me: failed program was:" >&5 |
---|
4509 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4510 | |
---|
4511 | ac_header_preproc=no |
---|
4512 | fi |
---|
4513 | rm -f conftest.err conftest.$ac_ext |
---|
4514 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4515 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4516 | |
---|
4517 | # So? What about this header? |
---|
4518 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4519 | yes:no: ) |
---|
4520 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4521 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4522 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4523 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4524 | ac_header_preproc=yes |
---|
4525 | ;; |
---|
4526 | no:yes:* ) |
---|
4527 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4528 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4529 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4530 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4531 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4532 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4533 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4534 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4535 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4536 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4537 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4538 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4539 | ( |
---|
4540 | cat <<\_ASBOX |
---|
4541 | ## ---------------------------------------------- ## |
---|
4542 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4543 | ## ---------------------------------------------- ## |
---|
4544 | _ASBOX |
---|
4545 | ) | |
---|
4546 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4547 | ;; |
---|
4548 | esac |
---|
4549 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4551 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4553 | else |
---|
4554 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4555 | fi |
---|
4556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4557 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4558 | |
---|
4559 | fi |
---|
4560 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4561 | cat >>confdefs.h <<_ACEOF |
---|
4562 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4563 | _ACEOF |
---|
4564 | |
---|
4565 | else |
---|
4566 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4567 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4568 | { (exit 1); exit 1; }; } |
---|
4569 | fi |
---|
4570 | |
---|
4571 | done |
---|
4572 | |
---|
4573 | |
---|
4574 | # checking for libGLU |
---|
4575 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4576 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4577 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4579 | else |
---|
4580 | ac_check_lib_save_LIBS=$LIBS |
---|
4581 | LIBS="-lglu32 $LIBS" |
---|
4582 | cat >conftest.$ac_ext <<_ACEOF |
---|
4583 | /* confdefs.h. */ |
---|
4584 | _ACEOF |
---|
4585 | cat confdefs.h >>conftest.$ac_ext |
---|
4586 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4587 | /* end confdefs.h. */ |
---|
4588 | |
---|
4589 | |
---|
4590 | int |
---|
4591 | main () |
---|
4592 | { |
---|
4593 | main (); |
---|
4594 | ; |
---|
4595 | return 0; |
---|
4596 | } |
---|
4597 | _ACEOF |
---|
4598 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4600 | (eval $ac_link) 2>conftest.er1 |
---|
4601 | ac_status=$? |
---|
4602 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4603 | rm -f conftest.er1 |
---|
4604 | cat conftest.err >&5 |
---|
4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4606 | (exit $ac_status); } && |
---|
4607 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4608 | || test ! -s conftest.err' |
---|
4609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4610 | (eval $ac_try) 2>&5 |
---|
4611 | ac_status=$? |
---|
4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4613 | (exit $ac_status); }; } && |
---|
4614 | { ac_try='test -s conftest$ac_exeext' |
---|
4615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4616 | (eval $ac_try) 2>&5 |
---|
4617 | ac_status=$? |
---|
4618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4619 | (exit $ac_status); }; }; then |
---|
4620 | ac_cv_lib_glu32_main=yes |
---|
4621 | else |
---|
4622 | echo "$as_me: failed program was:" >&5 |
---|
4623 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4624 | |
---|
4625 | ac_cv_lib_glu32_main=no |
---|
4626 | fi |
---|
4627 | rm -f conftest.err conftest.$ac_objext \ |
---|
4628 | conftest$ac_exeext conftest.$ac_ext |
---|
4629 | LIBS=$ac_check_lib_save_LIBS |
---|
4630 | fi |
---|
4631 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4632 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4633 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4634 | FOUND_glu32=yes |
---|
4635 | fi |
---|
4636 | |
---|
4637 | if test x$FOUND_glu32 = xyes ; then |
---|
4638 | LIBS="$LIBS -lGLU32" |
---|
4639 | else |
---|
4640 | echo "------------------" |
---|
4641 | echo "GLU library not found." |
---|
4642 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4643 | echo "------------------" |
---|
4644 | exit -1 |
---|
4645 | fi |
---|
4646 | |
---|
4647 | # checking for mingw32 |
---|
4648 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4649 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4650 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4652 | else |
---|
4653 | ac_check_lib_save_LIBS=$LIBS |
---|
4654 | LIBS="-lmingw32 $LIBS" |
---|
4655 | cat >conftest.$ac_ext <<_ACEOF |
---|
4656 | /* confdefs.h. */ |
---|
4657 | _ACEOF |
---|
4658 | cat confdefs.h >>conftest.$ac_ext |
---|
4659 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4660 | /* end confdefs.h. */ |
---|
4661 | |
---|
4662 | |
---|
4663 | int |
---|
4664 | main () |
---|
4665 | { |
---|
4666 | main (); |
---|
4667 | ; |
---|
4668 | return 0; |
---|
4669 | } |
---|
4670 | _ACEOF |
---|
4671 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4673 | (eval $ac_link) 2>conftest.er1 |
---|
4674 | ac_status=$? |
---|
4675 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4676 | rm -f conftest.er1 |
---|
4677 | cat conftest.err >&5 |
---|
4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4679 | (exit $ac_status); } && |
---|
4680 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4681 | || test ! -s conftest.err' |
---|
4682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4683 | (eval $ac_try) 2>&5 |
---|
4684 | ac_status=$? |
---|
4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4686 | (exit $ac_status); }; } && |
---|
4687 | { ac_try='test -s conftest$ac_exeext' |
---|
4688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4689 | (eval $ac_try) 2>&5 |
---|
4690 | ac_status=$? |
---|
4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4692 | (exit $ac_status); }; }; then |
---|
4693 | ac_cv_lib_mingw32_main=yes |
---|
4694 | else |
---|
4695 | echo "$as_me: failed program was:" >&5 |
---|
4696 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4697 | |
---|
4698 | ac_cv_lib_mingw32_main=no |
---|
4699 | fi |
---|
4700 | rm -f conftest.err conftest.$ac_objext \ |
---|
4701 | conftest$ac_exeext conftest.$ac_ext |
---|
4702 | LIBS=$ac_check_lib_save_LIBS |
---|
4703 | fi |
---|
4704 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4705 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4706 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4707 | FOUND_mingw32=yes |
---|
4708 | fi |
---|
4709 | |
---|
4710 | if test x$FOUND_mingw32 = xyes; then |
---|
4711 | LIBS="$LIBS -lmingw32" |
---|
4712 | fi |
---|
4713 | # checking for SDL-headers |
---|
4714 | |
---|
4715 | for ac_header in SDL/SDL.h |
---|
4716 | do |
---|
4717 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4718 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4719 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4721 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4723 | fi |
---|
4724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4725 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4726 | else |
---|
4727 | # Is the header compilable? |
---|
4728 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4729 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
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 | $ac_includes_default |
---|
4737 | #include <$ac_header> |
---|
4738 | _ACEOF |
---|
4739 | rm -f conftest.$ac_objext |
---|
4740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4741 | (eval $ac_compile) 2>conftest.er1 |
---|
4742 | ac_status=$? |
---|
4743 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4744 | rm -f conftest.er1 |
---|
4745 | cat conftest.err >&5 |
---|
4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4747 | (exit $ac_status); } && |
---|
4748 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4749 | || test ! -s conftest.err' |
---|
4750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4751 | (eval $ac_try) 2>&5 |
---|
4752 | ac_status=$? |
---|
4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4754 | (exit $ac_status); }; } && |
---|
4755 | { ac_try='test -s conftest.$ac_objext' |
---|
4756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4757 | (eval $ac_try) 2>&5 |
---|
4758 | ac_status=$? |
---|
4759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4760 | (exit $ac_status); }; }; then |
---|
4761 | ac_header_compiler=yes |
---|
4762 | else |
---|
4763 | echo "$as_me: failed program was:" >&5 |
---|
4764 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4765 | |
---|
4766 | ac_header_compiler=no |
---|
4767 | fi |
---|
4768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4769 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4770 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4771 | |
---|
4772 | # Is the header present? |
---|
4773 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4774 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4775 | cat >conftest.$ac_ext <<_ACEOF |
---|
4776 | /* confdefs.h. */ |
---|
4777 | _ACEOF |
---|
4778 | cat confdefs.h >>conftest.$ac_ext |
---|
4779 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4780 | /* end confdefs.h. */ |
---|
4781 | #include <$ac_header> |
---|
4782 | _ACEOF |
---|
4783 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4784 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4785 | ac_status=$? |
---|
4786 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4787 | rm -f conftest.er1 |
---|
4788 | cat conftest.err >&5 |
---|
4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4790 | (exit $ac_status); } >/dev/null; then |
---|
4791 | if test -s conftest.err; then |
---|
4792 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4793 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4794 | else |
---|
4795 | ac_cpp_err= |
---|
4796 | fi |
---|
4797 | else |
---|
4798 | ac_cpp_err=yes |
---|
4799 | fi |
---|
4800 | if test -z "$ac_cpp_err"; then |
---|
4801 | ac_header_preproc=yes |
---|
4802 | else |
---|
4803 | echo "$as_me: failed program was:" >&5 |
---|
4804 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4805 | |
---|
4806 | ac_header_preproc=no |
---|
4807 | fi |
---|
4808 | rm -f conftest.err conftest.$ac_ext |
---|
4809 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4810 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4811 | |
---|
4812 | # So? What about this header? |
---|
4813 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4814 | yes:no: ) |
---|
4815 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4816 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4817 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4818 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4819 | ac_header_preproc=yes |
---|
4820 | ;; |
---|
4821 | no:yes:* ) |
---|
4822 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4823 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4824 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4825 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4826 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4827 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4828 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4829 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4830 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4831 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4832 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4833 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4834 | ( |
---|
4835 | cat <<\_ASBOX |
---|
4836 | ## ---------------------------------------------- ## |
---|
4837 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4838 | ## ---------------------------------------------- ## |
---|
4839 | _ASBOX |
---|
4840 | ) | |
---|
4841 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4842 | ;; |
---|
4843 | esac |
---|
4844 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4848 | else |
---|
4849 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4850 | fi |
---|
4851 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4852 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4853 | |
---|
4854 | fi |
---|
4855 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4856 | cat >>confdefs.h <<_ACEOF |
---|
4857 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4858 | _ACEOF |
---|
4859 | |
---|
4860 | else |
---|
4861 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4862 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4863 | { (exit 1); exit 1; }; } |
---|
4864 | fi |
---|
4865 | |
---|
4866 | done |
---|
4867 | |
---|
4868 | |
---|
4869 | #checking for libSDL |
---|
4870 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
4871 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
4872 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
4873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4874 | else |
---|
4875 | ac_check_lib_save_LIBS=$LIBS |
---|
4876 | LIBS="-lsdlmain $LIBS" |
---|
4877 | cat >conftest.$ac_ext <<_ACEOF |
---|
4878 | /* confdefs.h. */ |
---|
4879 | _ACEOF |
---|
4880 | cat confdefs.h >>conftest.$ac_ext |
---|
4881 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4882 | /* end confdefs.h. */ |
---|
4883 | |
---|
4884 | |
---|
4885 | int |
---|
4886 | main () |
---|
4887 | { |
---|
4888 | main (); |
---|
4889 | ; |
---|
4890 | return 0; |
---|
4891 | } |
---|
4892 | _ACEOF |
---|
4893 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4895 | (eval $ac_link) 2>conftest.er1 |
---|
4896 | ac_status=$? |
---|
4897 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4898 | rm -f conftest.er1 |
---|
4899 | cat conftest.err >&5 |
---|
4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4901 | (exit $ac_status); } && |
---|
4902 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4903 | || test ! -s conftest.err' |
---|
4904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4905 | (eval $ac_try) 2>&5 |
---|
4906 | ac_status=$? |
---|
4907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4908 | (exit $ac_status); }; } && |
---|
4909 | { ac_try='test -s conftest$ac_exeext' |
---|
4910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4911 | (eval $ac_try) 2>&5 |
---|
4912 | ac_status=$? |
---|
4913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4914 | (exit $ac_status); }; }; then |
---|
4915 | ac_cv_lib_sdlmain_main=yes |
---|
4916 | else |
---|
4917 | echo "$as_me: failed program was:" >&5 |
---|
4918 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4919 | |
---|
4920 | ac_cv_lib_sdlmain_main=no |
---|
4921 | fi |
---|
4922 | rm -f conftest.err conftest.$ac_objext \ |
---|
4923 | conftest$ac_exeext conftest.$ac_ext |
---|
4924 | LIBS=$ac_check_lib_save_LIBS |
---|
4925 | fi |
---|
4926 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
4927 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
4928 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
4929 | FOUND_sdlmain=yes |
---|
4930 | fi |
---|
4931 | |
---|
4932 | if test x$FOUND_sdlmain = xyes ; then |
---|
4933 | LIBS="$LIBS -lsdlmain" |
---|
4934 | else |
---|
4935 | echo "------------------" |
---|
4936 | echo "SDL library not found." |
---|
4937 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4938 | echo "------------------" |
---|
4939 | exit 1 |
---|
4940 | fi |
---|
4941 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
4942 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
4943 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
4944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4945 | else |
---|
4946 | ac_check_lib_save_LIBS=$LIBS |
---|
4947 | LIBS="-lsdl $LIBS" |
---|
4948 | cat >conftest.$ac_ext <<_ACEOF |
---|
4949 | /* confdefs.h. */ |
---|
4950 | _ACEOF |
---|
4951 | cat confdefs.h >>conftest.$ac_ext |
---|
4952 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4953 | /* end confdefs.h. */ |
---|
4954 | |
---|
4955 | |
---|
4956 | int |
---|
4957 | main () |
---|
4958 | { |
---|
4959 | main (); |
---|
4960 | ; |
---|
4961 | return 0; |
---|
4962 | } |
---|
4963 | _ACEOF |
---|
4964 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4966 | (eval $ac_link) 2>conftest.er1 |
---|
4967 | ac_status=$? |
---|
4968 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4969 | rm -f conftest.er1 |
---|
4970 | cat conftest.err >&5 |
---|
4971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4972 | (exit $ac_status); } && |
---|
4973 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4974 | || test ! -s conftest.err' |
---|
4975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4976 | (eval $ac_try) 2>&5 |
---|
4977 | ac_status=$? |
---|
4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4979 | (exit $ac_status); }; } && |
---|
4980 | { ac_try='test -s conftest$ac_exeext' |
---|
4981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4982 | (eval $ac_try) 2>&5 |
---|
4983 | ac_status=$? |
---|
4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4985 | (exit $ac_status); }; }; then |
---|
4986 | ac_cv_lib_sdl_main=yes |
---|
4987 | else |
---|
4988 | echo "$as_me: failed program was:" >&5 |
---|
4989 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4990 | |
---|
4991 | ac_cv_lib_sdl_main=no |
---|
4992 | fi |
---|
4993 | rm -f conftest.err conftest.$ac_objext \ |
---|
4994 | conftest$ac_exeext conftest.$ac_ext |
---|
4995 | LIBS=$ac_check_lib_save_LIBS |
---|
4996 | fi |
---|
4997 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
4998 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
4999 | if test $ac_cv_lib_sdl_main = yes; then |
---|
5000 | FOUND_sdl=yes |
---|
5001 | fi |
---|
5002 | |
---|
5003 | if test x$FOUND_sdl = xyes ; then |
---|
5004 | LIBS="$LIBS -lsdl" |
---|
5005 | else |
---|
5006 | echo "------------------" |
---|
5007 | echo "SDL library not found." |
---|
5008 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5009 | echo "------------------" |
---|
5010 | exit -1 |
---|
5011 | fi |
---|
5012 | |
---|
5013 | ;; |
---|
5014 | #-------# |
---|
5015 | # LINUX # |
---|
5016 | #-------# |
---|
5017 | *-*-linux*) |
---|
5018 | echo "Linux detected" |
---|
5019 | |
---|
5020 | Linux="yes" |
---|
5021 | |
---|
5022 | CPPFLAGS="-I/usr/X11R6/include" |
---|
5023 | LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
5024 | # checking gl header |
---|
5025 | |
---|
5026 | for ac_header in GL/gl.h |
---|
5027 | do |
---|
5028 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5029 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5030 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5032 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5034 | fi |
---|
5035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5036 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5037 | else |
---|
5038 | # Is the header compilable? |
---|
5039 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5040 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5041 | cat >conftest.$ac_ext <<_ACEOF |
---|
5042 | /* confdefs.h. */ |
---|
5043 | _ACEOF |
---|
5044 | cat confdefs.h >>conftest.$ac_ext |
---|
5045 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5046 | /* end confdefs.h. */ |
---|
5047 | $ac_includes_default |
---|
5048 | #include <$ac_header> |
---|
5049 | _ACEOF |
---|
5050 | rm -f conftest.$ac_objext |
---|
5051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5052 | (eval $ac_compile) 2>conftest.er1 |
---|
5053 | ac_status=$? |
---|
5054 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5055 | rm -f conftest.er1 |
---|
5056 | cat conftest.err >&5 |
---|
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5058 | (exit $ac_status); } && |
---|
5059 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5060 | || test ! -s conftest.err' |
---|
5061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5062 | (eval $ac_try) 2>&5 |
---|
5063 | ac_status=$? |
---|
5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5065 | (exit $ac_status); }; } && |
---|
5066 | { ac_try='test -s conftest.$ac_objext' |
---|
5067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5068 | (eval $ac_try) 2>&5 |
---|
5069 | ac_status=$? |
---|
5070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5071 | (exit $ac_status); }; }; then |
---|
5072 | ac_header_compiler=yes |
---|
5073 | else |
---|
5074 | echo "$as_me: failed program was:" >&5 |
---|
5075 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5076 | |
---|
5077 | ac_header_compiler=no |
---|
5078 | fi |
---|
5079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5080 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5081 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5082 | |
---|
5083 | # Is the header present? |
---|
5084 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5085 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5086 | cat >conftest.$ac_ext <<_ACEOF |
---|
5087 | /* confdefs.h. */ |
---|
5088 | _ACEOF |
---|
5089 | cat confdefs.h >>conftest.$ac_ext |
---|
5090 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5091 | /* end confdefs.h. */ |
---|
5092 | #include <$ac_header> |
---|
5093 | _ACEOF |
---|
5094 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5095 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5096 | ac_status=$? |
---|
5097 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5098 | rm -f conftest.er1 |
---|
5099 | cat conftest.err >&5 |
---|
5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5101 | (exit $ac_status); } >/dev/null; then |
---|
5102 | if test -s conftest.err; then |
---|
5103 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5104 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5105 | else |
---|
5106 | ac_cpp_err= |
---|
5107 | fi |
---|
5108 | else |
---|
5109 | ac_cpp_err=yes |
---|
5110 | fi |
---|
5111 | if test -z "$ac_cpp_err"; then |
---|
5112 | ac_header_preproc=yes |
---|
5113 | else |
---|
5114 | echo "$as_me: failed program was:" >&5 |
---|
5115 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5116 | |
---|
5117 | ac_header_preproc=no |
---|
5118 | fi |
---|
5119 | rm -f conftest.err conftest.$ac_ext |
---|
5120 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5121 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5122 | |
---|
5123 | # So? What about this header? |
---|
5124 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5125 | yes:no: ) |
---|
5126 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5127 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5128 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5129 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5130 | ac_header_preproc=yes |
---|
5131 | ;; |
---|
5132 | no:yes:* ) |
---|
5133 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5134 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5135 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5136 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5137 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5138 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5139 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5140 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5141 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5142 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5143 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5144 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5145 | ( |
---|
5146 | cat <<\_ASBOX |
---|
5147 | ## ---------------------------------------------- ## |
---|
5148 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5149 | ## ---------------------------------------------- ## |
---|
5150 | _ASBOX |
---|
5151 | ) | |
---|
5152 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5153 | ;; |
---|
5154 | esac |
---|
5155 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5156 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5157 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5159 | else |
---|
5160 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5161 | fi |
---|
5162 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5163 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5164 | |
---|
5165 | fi |
---|
5166 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5167 | cat >>confdefs.h <<_ACEOF |
---|
5168 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5169 | _ACEOF |
---|
5170 | |
---|
5171 | else |
---|
5172 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5173 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5174 | { (exit 1); exit 1; }; } |
---|
5175 | fi |
---|
5176 | |
---|
5177 | done |
---|
5178 | |
---|
5179 | |
---|
5180 | # checking for Unix GL |
---|
5181 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
5182 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
5183 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
5184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5185 | else |
---|
5186 | ac_check_lib_save_LIBS=$LIBS |
---|
5187 | LIBS="-lGL $LIBS" |
---|
5188 | cat >conftest.$ac_ext <<_ACEOF |
---|
5189 | /* confdefs.h. */ |
---|
5190 | _ACEOF |
---|
5191 | cat confdefs.h >>conftest.$ac_ext |
---|
5192 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5193 | /* end confdefs.h. */ |
---|
5194 | |
---|
5195 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5196 | #ifdef __cplusplus |
---|
5197 | extern "C" |
---|
5198 | #endif |
---|
5199 | /* We use char because int might match the return type of a gcc2 |
---|
5200 | builtin and then its argument prototype would still apply. */ |
---|
5201 | char glLoadIdentity (); |
---|
5202 | int |
---|
5203 | main () |
---|
5204 | { |
---|
5205 | glLoadIdentity (); |
---|
5206 | ; |
---|
5207 | return 0; |
---|
5208 | } |
---|
5209 | _ACEOF |
---|
5210 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5212 | (eval $ac_link) 2>conftest.er1 |
---|
5213 | ac_status=$? |
---|
5214 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5215 | rm -f conftest.er1 |
---|
5216 | cat conftest.err >&5 |
---|
5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5218 | (exit $ac_status); } && |
---|
5219 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5220 | || test ! -s conftest.err' |
---|
5221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5222 | (eval $ac_try) 2>&5 |
---|
5223 | ac_status=$? |
---|
5224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5225 | (exit $ac_status); }; } && |
---|
5226 | { ac_try='test -s conftest$ac_exeext' |
---|
5227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5228 | (eval $ac_try) 2>&5 |
---|
5229 | ac_status=$? |
---|
5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5231 | (exit $ac_status); }; }; then |
---|
5232 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
5233 | else |
---|
5234 | echo "$as_me: failed program was:" >&5 |
---|
5235 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5236 | |
---|
5237 | ac_cv_lib_GL_glLoadIdentity=no |
---|
5238 | fi |
---|
5239 | rm -f conftest.err conftest.$ac_objext \ |
---|
5240 | conftest$ac_exeext conftest.$ac_ext |
---|
5241 | LIBS=$ac_check_lib_save_LIBS |
---|
5242 | fi |
---|
5243 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
5244 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
5245 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
5246 | FOUND_GL=yes |
---|
5247 | fi |
---|
5248 | |
---|
5249 | if test x$FOUND_GL = xyes ; then |
---|
5250 | LIBS="$LIBS -lGL" |
---|
5251 | else |
---|
5252 | echo "------------------" |
---|
5253 | echo "opengl not found." |
---|
5254 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
5255 | echo "------------------" |
---|
5256 | exit -1 |
---|
5257 | fi |
---|
5258 | |
---|
5259 | # cheking for GLU-header |
---|
5260 | |
---|
5261 | for ac_header in GL/glu.h |
---|
5262 | do |
---|
5263 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5264 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5265 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5266 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5269 | fi |
---|
5270 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5271 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5272 | else |
---|
5273 | # Is the header compilable? |
---|
5274 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5275 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5276 | cat >conftest.$ac_ext <<_ACEOF |
---|
5277 | /* confdefs.h. */ |
---|
5278 | _ACEOF |
---|
5279 | cat confdefs.h >>conftest.$ac_ext |
---|
5280 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5281 | /* end confdefs.h. */ |
---|
5282 | $ac_includes_default |
---|
5283 | #include <$ac_header> |
---|
5284 | _ACEOF |
---|
5285 | rm -f conftest.$ac_objext |
---|
5286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5287 | (eval $ac_compile) 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_objext' |
---|
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_header_compiler=yes |
---|
5308 | else |
---|
5309 | echo "$as_me: failed program was:" >&5 |
---|
5310 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5311 | |
---|
5312 | ac_header_compiler=no |
---|
5313 | fi |
---|
5314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5315 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5316 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5317 | |
---|
5318 | # Is the header present? |
---|
5319 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5320 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5321 | cat >conftest.$ac_ext <<_ACEOF |
---|
5322 | /* confdefs.h. */ |
---|
5323 | _ACEOF |
---|
5324 | cat confdefs.h >>conftest.$ac_ext |
---|
5325 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5326 | /* end confdefs.h. */ |
---|
5327 | #include <$ac_header> |
---|
5328 | _ACEOF |
---|
5329 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5330 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5331 | ac_status=$? |
---|
5332 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5333 | rm -f conftest.er1 |
---|
5334 | cat conftest.err >&5 |
---|
5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5336 | (exit $ac_status); } >/dev/null; then |
---|
5337 | if test -s conftest.err; then |
---|
5338 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5339 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5340 | else |
---|
5341 | ac_cpp_err= |
---|
5342 | fi |
---|
5343 | else |
---|
5344 | ac_cpp_err=yes |
---|
5345 | fi |
---|
5346 | if test -z "$ac_cpp_err"; then |
---|
5347 | ac_header_preproc=yes |
---|
5348 | else |
---|
5349 | echo "$as_me: failed program was:" >&5 |
---|
5350 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5351 | |
---|
5352 | ac_header_preproc=no |
---|
5353 | fi |
---|
5354 | rm -f conftest.err conftest.$ac_ext |
---|
5355 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5356 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5357 | |
---|
5358 | # So? What about this header? |
---|
5359 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5360 | yes:no: ) |
---|
5361 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5362 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5363 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5364 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5365 | ac_header_preproc=yes |
---|
5366 | ;; |
---|
5367 | no:yes:* ) |
---|
5368 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5369 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5370 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5371 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5372 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5373 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5374 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5375 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5376 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5377 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5378 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5379 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5380 | ( |
---|
5381 | cat <<\_ASBOX |
---|
5382 | ## ---------------------------------------------- ## |
---|
5383 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5384 | ## ---------------------------------------------- ## |
---|
5385 | _ASBOX |
---|
5386 | ) | |
---|
5387 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5388 | ;; |
---|
5389 | esac |
---|
5390 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5392 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5394 | else |
---|
5395 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5396 | fi |
---|
5397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5398 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5399 | |
---|
5400 | fi |
---|
5401 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5402 | cat >>confdefs.h <<_ACEOF |
---|
5403 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5404 | _ACEOF |
---|
5405 | |
---|
5406 | else |
---|
5407 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5408 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5409 | { (exit 1); exit 1; }; } |
---|
5410 | fi |
---|
5411 | |
---|
5412 | done |
---|
5413 | |
---|
5414 | |
---|
5415 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
5416 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
5417 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5419 | else |
---|
5420 | ac_check_lib_save_LIBS=$LIBS |
---|
5421 | LIBS="-lGLU $LIBS" |
---|
5422 | cat >conftest.$ac_ext <<_ACEOF |
---|
5423 | /* confdefs.h. */ |
---|
5424 | _ACEOF |
---|
5425 | cat confdefs.h >>conftest.$ac_ext |
---|
5426 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5427 | /* end confdefs.h. */ |
---|
5428 | |
---|
5429 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5430 | #ifdef __cplusplus |
---|
5431 | extern "C" |
---|
5432 | #endif |
---|
5433 | /* We use char because int might match the return type of a gcc2 |
---|
5434 | builtin and then its argument prototype would still apply. */ |
---|
5435 | char gluProject (); |
---|
5436 | int |
---|
5437 | main () |
---|
5438 | { |
---|
5439 | gluProject (); |
---|
5440 | ; |
---|
5441 | return 0; |
---|
5442 | } |
---|
5443 | _ACEOF |
---|
5444 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5446 | (eval $ac_link) 2>conftest.er1 |
---|
5447 | ac_status=$? |
---|
5448 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5449 | rm -f conftest.er1 |
---|
5450 | cat conftest.err >&5 |
---|
5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5452 | (exit $ac_status); } && |
---|
5453 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5454 | || test ! -s conftest.err' |
---|
5455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5456 | (eval $ac_try) 2>&5 |
---|
5457 | ac_status=$? |
---|
5458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5459 | (exit $ac_status); }; } && |
---|
5460 | { ac_try='test -s conftest$ac_exeext' |
---|
5461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5462 | (eval $ac_try) 2>&5 |
---|
5463 | ac_status=$? |
---|
5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5465 | (exit $ac_status); }; }; then |
---|
5466 | ac_cv_lib_GLU_gluProject=yes |
---|
5467 | else |
---|
5468 | echo "$as_me: failed program was:" >&5 |
---|
5469 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5470 | |
---|
5471 | ac_cv_lib_GLU_gluProject=no |
---|
5472 | fi |
---|
5473 | rm -f conftest.err conftest.$ac_objext \ |
---|
5474 | conftest$ac_exeext conftest.$ac_ext |
---|
5475 | LIBS=$ac_check_lib_save_LIBS |
---|
5476 | fi |
---|
5477 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
5478 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
5479 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
5480 | FOUND_GLU=yes |
---|
5481 | fi |
---|
5482 | |
---|
5483 | if test x$FOUND_GLU = xyes ; then |
---|
5484 | LIBS="$LIBS -lGLU" |
---|
5485 | else |
---|
5486 | echo "------------------" |
---|
5487 | echo "GLU library not found." |
---|
5488 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5489 | echo "------------------" |
---|
5490 | exit -1 |
---|
5491 | fi |
---|
5492 | |
---|
5493 | # checking for SDL-headers |
---|
5494 | |
---|
5495 | for ac_header in SDL/SDL.h |
---|
5496 | do |
---|
5497 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5499 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5500 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5501 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5503 | fi |
---|
5504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5506 | else |
---|
5507 | # Is the header compilable? |
---|
5508 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5509 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5510 | cat >conftest.$ac_ext <<_ACEOF |
---|
5511 | /* confdefs.h. */ |
---|
5512 | _ACEOF |
---|
5513 | cat confdefs.h >>conftest.$ac_ext |
---|
5514 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5515 | /* end confdefs.h. */ |
---|
5516 | $ac_includes_default |
---|
5517 | #include <$ac_header> |
---|
5518 | _ACEOF |
---|
5519 | rm -f conftest.$ac_objext |
---|
5520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5521 | (eval $ac_compile) 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_objext' |
---|
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_header_compiler=yes |
---|
5542 | else |
---|
5543 | echo "$as_me: failed program was:" >&5 |
---|
5544 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5545 | |
---|
5546 | ac_header_compiler=no |
---|
5547 | fi |
---|
5548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5549 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5550 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5551 | |
---|
5552 | # Is the header present? |
---|
5553 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5554 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5555 | cat >conftest.$ac_ext <<_ACEOF |
---|
5556 | /* confdefs.h. */ |
---|
5557 | _ACEOF |
---|
5558 | cat confdefs.h >>conftest.$ac_ext |
---|
5559 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5560 | /* end confdefs.h. */ |
---|
5561 | #include <$ac_header> |
---|
5562 | _ACEOF |
---|
5563 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5564 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5565 | ac_status=$? |
---|
5566 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5567 | rm -f conftest.er1 |
---|
5568 | cat conftest.err >&5 |
---|
5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5570 | (exit $ac_status); } >/dev/null; then |
---|
5571 | if test -s conftest.err; then |
---|
5572 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5573 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5574 | else |
---|
5575 | ac_cpp_err= |
---|
5576 | fi |
---|
5577 | else |
---|
5578 | ac_cpp_err=yes |
---|
5579 | fi |
---|
5580 | if test -z "$ac_cpp_err"; then |
---|
5581 | ac_header_preproc=yes |
---|
5582 | else |
---|
5583 | echo "$as_me: failed program was:" >&5 |
---|
5584 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5585 | |
---|
5586 | ac_header_preproc=no |
---|
5587 | fi |
---|
5588 | rm -f conftest.err conftest.$ac_ext |
---|
5589 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5590 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5591 | |
---|
5592 | # So? What about this header? |
---|
5593 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5594 | yes:no: ) |
---|
5595 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5596 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5597 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5598 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5599 | ac_header_preproc=yes |
---|
5600 | ;; |
---|
5601 | no:yes:* ) |
---|
5602 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5603 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5604 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5605 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5606 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5607 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5608 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5609 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5610 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5611 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5612 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5613 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5614 | ( |
---|
5615 | cat <<\_ASBOX |
---|
5616 | ## ---------------------------------------------- ## |
---|
5617 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5618 | ## ---------------------------------------------- ## |
---|
5619 | _ASBOX |
---|
5620 | ) | |
---|
5621 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5622 | ;; |
---|
5623 | esac |
---|
5624 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5625 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5626 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5628 | else |
---|
5629 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5630 | fi |
---|
5631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5632 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5633 | |
---|
5634 | fi |
---|
5635 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5636 | cat >>confdefs.h <<_ACEOF |
---|
5637 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5638 | _ACEOF |
---|
5639 | |
---|
5640 | else |
---|
5641 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
5642 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
5643 | { (exit 1); exit 1; }; } |
---|
5644 | fi |
---|
5645 | |
---|
5646 | done |
---|
5647 | |
---|
5648 | |
---|
5649 | # checking for SDL-lib |
---|
5650 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
5651 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
5652 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
5653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5654 | else |
---|
5655 | ac_check_lib_save_LIBS=$LIBS |
---|
5656 | LIBS="-lSDL $LIBS" |
---|
5657 | cat >conftest.$ac_ext <<_ACEOF |
---|
5658 | /* confdefs.h. */ |
---|
5659 | _ACEOF |
---|
5660 | cat confdefs.h >>conftest.$ac_ext |
---|
5661 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5662 | /* end confdefs.h. */ |
---|
5663 | |
---|
5664 | |
---|
5665 | int |
---|
5666 | main () |
---|
5667 | { |
---|
5668 | main (); |
---|
5669 | ; |
---|
5670 | return 0; |
---|
5671 | } |
---|
5672 | _ACEOF |
---|
5673 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5675 | (eval $ac_link) 2>conftest.er1 |
---|
5676 | ac_status=$? |
---|
5677 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5678 | rm -f conftest.er1 |
---|
5679 | cat conftest.err >&5 |
---|
5680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5681 | (exit $ac_status); } && |
---|
5682 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5683 | || test ! -s conftest.err' |
---|
5684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5685 | (eval $ac_try) 2>&5 |
---|
5686 | ac_status=$? |
---|
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5688 | (exit $ac_status); }; } && |
---|
5689 | { ac_try='test -s conftest$ac_exeext' |
---|
5690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5691 | (eval $ac_try) 2>&5 |
---|
5692 | ac_status=$? |
---|
5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5694 | (exit $ac_status); }; }; then |
---|
5695 | ac_cv_lib_SDL_main=yes |
---|
5696 | else |
---|
5697 | echo "$as_me: failed program was:" >&5 |
---|
5698 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5699 | |
---|
5700 | ac_cv_lib_SDL_main=no |
---|
5701 | fi |
---|
5702 | rm -f conftest.err conftest.$ac_objext \ |
---|
5703 | conftest$ac_exeext conftest.$ac_ext |
---|
5704 | LIBS=$ac_check_lib_save_LIBS |
---|
5705 | fi |
---|
5706 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
5707 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
5708 | if test $ac_cv_lib_SDL_main = yes; then |
---|
5709 | FOUND_SDL=yes |
---|
5710 | fi |
---|
5711 | |
---|
5712 | if test x$FOUND_SDL = xyes ; then |
---|
5713 | LIBS="$LIBS -lSDL" |
---|
5714 | else |
---|
5715 | echo "------------------" |
---|
5716 | echo "SDL library not found." |
---|
5717 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5718 | echo "------------------" |
---|
5719 | exit -1 |
---|
5720 | fi |
---|
5721 | |
---|
5722 | |
---|
5723 | ## checking for SDL |
---|
5724 | # SDL_VERSION=1.2.7 |
---|
5725 | # AM_PATH_SDL($SDL_VERSION, |
---|
5726 | # :, |
---|
5727 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
5728 | # ) |
---|
5729 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
5730 | # LIBS="$LIBS $SDL_LIBS" |
---|
5731 | ;; |
---|
5732 | #-----------# |
---|
5733 | # MAC -OS X # |
---|
5734 | #-----------# |
---|
5735 | *darwin*) |
---|
5736 | echo "OS X detected" |
---|
5737 | |
---|
5738 | osX="yes" |
---|
5739 | |
---|
5740 | CPPFLAGS="-I/sw/include $CPPFLAGS" |
---|
5741 | # checking gl header |
---|
5742 | |
---|
5743 | for ac_header in OpenGL/gl.h |
---|
5744 | do |
---|
5745 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5746 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5747 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5748 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5749 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5751 | fi |
---|
5752 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5753 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5754 | else |
---|
5755 | # Is the header compilable? |
---|
5756 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5757 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5758 | cat >conftest.$ac_ext <<_ACEOF |
---|
5759 | /* confdefs.h. */ |
---|
5760 | _ACEOF |
---|
5761 | cat confdefs.h >>conftest.$ac_ext |
---|
5762 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5763 | /* end confdefs.h. */ |
---|
5764 | $ac_includes_default |
---|
5765 | #include <$ac_header> |
---|
5766 | _ACEOF |
---|
5767 | rm -f conftest.$ac_objext |
---|
5768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5769 | (eval $ac_compile) 2>conftest.er1 |
---|
5770 | ac_status=$? |
---|
5771 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5772 | rm -f conftest.er1 |
---|
5773 | cat conftest.err >&5 |
---|
5774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5775 | (exit $ac_status); } && |
---|
5776 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5777 | || test ! -s conftest.err' |
---|
5778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5779 | (eval $ac_try) 2>&5 |
---|
5780 | ac_status=$? |
---|
5781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5782 | (exit $ac_status); }; } && |
---|
5783 | { ac_try='test -s conftest.$ac_objext' |
---|
5784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5785 | (eval $ac_try) 2>&5 |
---|
5786 | ac_status=$? |
---|
5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5788 | (exit $ac_status); }; }; then |
---|
5789 | ac_header_compiler=yes |
---|
5790 | else |
---|
5791 | echo "$as_me: failed program was:" >&5 |
---|
5792 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5793 | |
---|
5794 | ac_header_compiler=no |
---|
5795 | fi |
---|
5796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5797 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5798 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5799 | |
---|
5800 | # Is the header present? |
---|
5801 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5802 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5803 | cat >conftest.$ac_ext <<_ACEOF |
---|
5804 | /* confdefs.h. */ |
---|
5805 | _ACEOF |
---|
5806 | cat confdefs.h >>conftest.$ac_ext |
---|
5807 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5808 | /* end confdefs.h. */ |
---|
5809 | #include <$ac_header> |
---|
5810 | _ACEOF |
---|
5811 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5812 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5813 | ac_status=$? |
---|
5814 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5815 | rm -f conftest.er1 |
---|
5816 | cat conftest.err >&5 |
---|
5817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5818 | (exit $ac_status); } >/dev/null; then |
---|
5819 | if test -s conftest.err; then |
---|
5820 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5821 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5822 | else |
---|
5823 | ac_cpp_err= |
---|
5824 | fi |
---|
5825 | else |
---|
5826 | ac_cpp_err=yes |
---|
5827 | fi |
---|
5828 | if test -z "$ac_cpp_err"; then |
---|
5829 | ac_header_preproc=yes |
---|
5830 | else |
---|
5831 | echo "$as_me: failed program was:" >&5 |
---|
5832 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5833 | |
---|
5834 | ac_header_preproc=no |
---|
5835 | fi |
---|
5836 | rm -f conftest.err conftest.$ac_ext |
---|
5837 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5838 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5839 | |
---|
5840 | # So? What about this header? |
---|
5841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5842 | yes:no: ) |
---|
5843 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5844 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5845 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5846 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5847 | ac_header_preproc=yes |
---|
5848 | ;; |
---|
5849 | no:yes:* ) |
---|
5850 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5851 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5852 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5853 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5854 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5855 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5856 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5857 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5859 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5860 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5861 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5862 | ( |
---|
5863 | cat <<\_ASBOX |
---|
5864 | ## ---------------------------------------------- ## |
---|
5865 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5866 | ## ---------------------------------------------- ## |
---|
5867 | _ASBOX |
---|
5868 | ) | |
---|
5869 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5870 | ;; |
---|
5871 | esac |
---|
5872 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5876 | else |
---|
5877 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5878 | fi |
---|
5879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5880 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5881 | |
---|
5882 | fi |
---|
5883 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5884 | cat >>confdefs.h <<_ACEOF |
---|
5885 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5886 | _ACEOF |
---|
5887 | |
---|
5888 | else |
---|
5889 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5890 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5891 | { (exit 1); exit 1; }; } |
---|
5892 | fi |
---|
5893 | |
---|
5894 | done |
---|
5895 | |
---|
5896 | # cheking for GLU-header |
---|
5897 | |
---|
5898 | for ac_header in OpenGL/glu.h |
---|
5899 | do |
---|
5900 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5902 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5906 | fi |
---|
5907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5909 | else |
---|
5910 | # Is the header compilable? |
---|
5911 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5912 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5913 | cat >conftest.$ac_ext <<_ACEOF |
---|
5914 | /* confdefs.h. */ |
---|
5915 | _ACEOF |
---|
5916 | cat confdefs.h >>conftest.$ac_ext |
---|
5917 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5918 | /* end confdefs.h. */ |
---|
5919 | $ac_includes_default |
---|
5920 | #include <$ac_header> |
---|
5921 | _ACEOF |
---|
5922 | rm -f conftest.$ac_objext |
---|
5923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5924 | (eval $ac_compile) 2>conftest.er1 |
---|
5925 | ac_status=$? |
---|
5926 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5927 | rm -f conftest.er1 |
---|
5928 | cat conftest.err >&5 |
---|
5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5930 | (exit $ac_status); } && |
---|
5931 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5932 | || test ! -s conftest.err' |
---|
5933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5934 | (eval $ac_try) 2>&5 |
---|
5935 | ac_status=$? |
---|
5936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5937 | (exit $ac_status); }; } && |
---|
5938 | { ac_try='test -s conftest.$ac_objext' |
---|
5939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5940 | (eval $ac_try) 2>&5 |
---|
5941 | ac_status=$? |
---|
5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5943 | (exit $ac_status); }; }; then |
---|
5944 | ac_header_compiler=yes |
---|
5945 | else |
---|
5946 | echo "$as_me: failed program was:" >&5 |
---|
5947 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5948 | |
---|
5949 | ac_header_compiler=no |
---|
5950 | fi |
---|
5951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5952 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5953 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5954 | |
---|
5955 | # Is the header present? |
---|
5956 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5957 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5958 | cat >conftest.$ac_ext <<_ACEOF |
---|
5959 | /* confdefs.h. */ |
---|
5960 | _ACEOF |
---|
5961 | cat confdefs.h >>conftest.$ac_ext |
---|
5962 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5963 | /* end confdefs.h. */ |
---|
5964 | #include <$ac_header> |
---|
5965 | _ACEOF |
---|
5966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5968 | ac_status=$? |
---|
5969 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5970 | rm -f conftest.er1 |
---|
5971 | cat conftest.err >&5 |
---|
5972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5973 | (exit $ac_status); } >/dev/null; then |
---|
5974 | if test -s conftest.err; then |
---|
5975 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5976 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5977 | else |
---|
5978 | ac_cpp_err= |
---|
5979 | fi |
---|
5980 | else |
---|
5981 | ac_cpp_err=yes |
---|
5982 | fi |
---|
5983 | if test -z "$ac_cpp_err"; then |
---|
5984 | ac_header_preproc=yes |
---|
5985 | else |
---|
5986 | echo "$as_me: failed program was:" >&5 |
---|
5987 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5988 | |
---|
5989 | ac_header_preproc=no |
---|
5990 | fi |
---|
5991 | rm -f conftest.err conftest.$ac_ext |
---|
5992 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5993 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5994 | |
---|
5995 | # So? What about this header? |
---|
5996 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5997 | yes:no: ) |
---|
5998 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5999 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6001 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6002 | ac_header_preproc=yes |
---|
6003 | ;; |
---|
6004 | no:yes:* ) |
---|
6005 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6006 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6007 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6008 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6009 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6010 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6011 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6012 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6014 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6015 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6016 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6017 | ( |
---|
6018 | cat <<\_ASBOX |
---|
6019 | ## ---------------------------------------------- ## |
---|
6020 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6021 | ## ---------------------------------------------- ## |
---|
6022 | _ASBOX |
---|
6023 | ) | |
---|
6024 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6025 | ;; |
---|
6026 | esac |
---|
6027 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6029 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6031 | else |
---|
6032 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6033 | fi |
---|
6034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6035 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6036 | |
---|
6037 | fi |
---|
6038 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6039 | cat >>confdefs.h <<_ACEOF |
---|
6040 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6041 | _ACEOF |
---|
6042 | |
---|
6043 | else |
---|
6044 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6045 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6046 | { (exit 1); exit 1; }; } |
---|
6047 | fi |
---|
6048 | |
---|
6049 | done |
---|
6050 | |
---|
6051 | |
---|
6052 | LIBS="$LIBS -framework OpenGL" |
---|
6053 | |
---|
6054 | SDL_CFLAGS=`sdl-config --cflags` |
---|
6055 | SDL_LIBS=`sdl-config --libs` |
---|
6056 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
6057 | LIBS="$LIBS $SDL_LIBS" |
---|
6058 | |
---|
6059 | |
---|
6060 | # checking for SDL-headers |
---|
6061 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
6062 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
6063 | |
---|
6064 | ## checking for SDL |
---|
6065 | # SDL_VERSION=1.2.7 |
---|
6066 | # AM_PATH_SDL($SDL_VERSION, |
---|
6067 | # :, |
---|
6068 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
6069 | # ) |
---|
6070 | |
---|
6071 | |
---|
6072 | ;; |
---|
6073 | |
---|
6074 | *) |
---|
6075 | ;; |
---|
6076 | esac |
---|
6077 | |
---|
6078 | |
---|
6079 | |
---|
6080 | ################################### |
---|
6081 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
6082 | ################################### |
---|
6083 | |
---|
6084 | #-----------# |
---|
6085 | # SDL_Image # |
---|
6086 | #-----------# |
---|
6087 | if test x$def_sdl_image = xyes; then |
---|
6088 | # checking for SDL_image-headers |
---|
6089 | |
---|
6090 | for ac_header in SDL/SDL_image.h |
---|
6091 | do |
---|
6092 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6098 | fi |
---|
6099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6100 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6101 | else |
---|
6102 | # Is the header compilable? |
---|
6103 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6104 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6105 | cat >conftest.$ac_ext <<_ACEOF |
---|
6106 | /* confdefs.h. */ |
---|
6107 | _ACEOF |
---|
6108 | cat confdefs.h >>conftest.$ac_ext |
---|
6109 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6110 | /* end confdefs.h. */ |
---|
6111 | $ac_includes_default |
---|
6112 | #include <$ac_header> |
---|
6113 | _ACEOF |
---|
6114 | rm -f conftest.$ac_objext |
---|
6115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6116 | (eval $ac_compile) 2>conftest.er1 |
---|
6117 | ac_status=$? |
---|
6118 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6119 | rm -f conftest.er1 |
---|
6120 | cat conftest.err >&5 |
---|
6121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6122 | (exit $ac_status); } && |
---|
6123 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6124 | || test ! -s conftest.err' |
---|
6125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6126 | (eval $ac_try) 2>&5 |
---|
6127 | ac_status=$? |
---|
6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6129 | (exit $ac_status); }; } && |
---|
6130 | { ac_try='test -s conftest.$ac_objext' |
---|
6131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6132 | (eval $ac_try) 2>&5 |
---|
6133 | ac_status=$? |
---|
6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6135 | (exit $ac_status); }; }; then |
---|
6136 | ac_header_compiler=yes |
---|
6137 | else |
---|
6138 | echo "$as_me: failed program was:" >&5 |
---|
6139 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6140 | |
---|
6141 | ac_header_compiler=no |
---|
6142 | fi |
---|
6143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6144 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6145 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6146 | |
---|
6147 | # Is the header present? |
---|
6148 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6149 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6150 | cat >conftest.$ac_ext <<_ACEOF |
---|
6151 | /* confdefs.h. */ |
---|
6152 | _ACEOF |
---|
6153 | cat confdefs.h >>conftest.$ac_ext |
---|
6154 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6155 | /* end confdefs.h. */ |
---|
6156 | #include <$ac_header> |
---|
6157 | _ACEOF |
---|
6158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6160 | ac_status=$? |
---|
6161 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6162 | rm -f conftest.er1 |
---|
6163 | cat conftest.err >&5 |
---|
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6165 | (exit $ac_status); } >/dev/null; then |
---|
6166 | if test -s conftest.err; then |
---|
6167 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6169 | else |
---|
6170 | ac_cpp_err= |
---|
6171 | fi |
---|
6172 | else |
---|
6173 | ac_cpp_err=yes |
---|
6174 | fi |
---|
6175 | if test -z "$ac_cpp_err"; then |
---|
6176 | ac_header_preproc=yes |
---|
6177 | else |
---|
6178 | echo "$as_me: failed program was:" >&5 |
---|
6179 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6180 | |
---|
6181 | ac_header_preproc=no |
---|
6182 | fi |
---|
6183 | rm -f conftest.err conftest.$ac_ext |
---|
6184 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6185 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6186 | |
---|
6187 | # So? What about this header? |
---|
6188 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6189 | yes:no: ) |
---|
6190 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6191 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6193 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6194 | ac_header_preproc=yes |
---|
6195 | ;; |
---|
6196 | no:yes:* ) |
---|
6197 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6198 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6199 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6200 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6201 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6202 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6203 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6204 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6205 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6206 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6207 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6208 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6209 | ( |
---|
6210 | cat <<\_ASBOX |
---|
6211 | ## ---------------------------------------------- ## |
---|
6212 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6213 | ## ---------------------------------------------- ## |
---|
6214 | _ASBOX |
---|
6215 | ) | |
---|
6216 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6217 | ;; |
---|
6218 | esac |
---|
6219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6223 | else |
---|
6224 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6225 | fi |
---|
6226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6228 | |
---|
6229 | fi |
---|
6230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6231 | cat >>confdefs.h <<_ACEOF |
---|
6232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6233 | _ACEOF |
---|
6234 | |
---|
6235 | else |
---|
6236 | echo "sdl_image not found. falling back to other options"; def_sdl_image=no |
---|
6237 | fi |
---|
6238 | |
---|
6239 | done |
---|
6240 | |
---|
6241 | fi |
---|
6242 | if test x$def_sdl_image = xyes; then |
---|
6243 | # checking for SDL_image-lib |
---|
6244 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
6245 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
6246 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
6247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6248 | else |
---|
6249 | ac_check_lib_save_LIBS=$LIBS |
---|
6250 | LIBS="-lSDL_image $LIBS" |
---|
6251 | cat >conftest.$ac_ext <<_ACEOF |
---|
6252 | /* confdefs.h. */ |
---|
6253 | _ACEOF |
---|
6254 | cat confdefs.h >>conftest.$ac_ext |
---|
6255 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6256 | /* end confdefs.h. */ |
---|
6257 | |
---|
6258 | |
---|
6259 | int |
---|
6260 | main () |
---|
6261 | { |
---|
6262 | main (); |
---|
6263 | ; |
---|
6264 | return 0; |
---|
6265 | } |
---|
6266 | _ACEOF |
---|
6267 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6269 | (eval $ac_link) 2>conftest.er1 |
---|
6270 | ac_status=$? |
---|
6271 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6272 | rm -f conftest.er1 |
---|
6273 | cat conftest.err >&5 |
---|
6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6275 | (exit $ac_status); } && |
---|
6276 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6277 | || test ! -s conftest.err' |
---|
6278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6279 | (eval $ac_try) 2>&5 |
---|
6280 | ac_status=$? |
---|
6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6282 | (exit $ac_status); }; } && |
---|
6283 | { ac_try='test -s conftest$ac_exeext' |
---|
6284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6285 | (eval $ac_try) 2>&5 |
---|
6286 | ac_status=$? |
---|
6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6288 | (exit $ac_status); }; }; then |
---|
6289 | ac_cv_lib_SDL_image_main=yes |
---|
6290 | else |
---|
6291 | echo "$as_me: failed program was:" >&5 |
---|
6292 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6293 | |
---|
6294 | ac_cv_lib_SDL_image_main=no |
---|
6295 | fi |
---|
6296 | rm -f conftest.err conftest.$ac_objext \ |
---|
6297 | conftest$ac_exeext conftest.$ac_ext |
---|
6298 | LIBS=$ac_check_lib_save_LIBS |
---|
6299 | fi |
---|
6300 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
6301 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
6302 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
6303 | FOUND_SDL_image=yes |
---|
6304 | fi |
---|
6305 | |
---|
6306 | if test x$FOUND_SDL_image = xyes ; then |
---|
6307 | LIBS="$LIBS -lSDL_image" |
---|
6308 | else |
---|
6309 | echo "------------------" |
---|
6310 | echo "SDL_image library not found." |
---|
6311 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
6312 | echo "------------------" |
---|
6313 | exit -1 |
---|
6314 | fi |
---|
6315 | fi |
---|
6316 | |
---|
6317 | ## case no SDL-image: |
---|
6318 | if test x$def_sdl_image = xno; then |
---|
6319 | #---------# |
---|
6320 | # libjpeg # |
---|
6321 | #---------# |
---|
6322 | |
---|
6323 | for ac_header in jpeglib.h |
---|
6324 | do |
---|
6325 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6327 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6328 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6329 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6331 | fi |
---|
6332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6333 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6334 | else |
---|
6335 | # Is the header compilable? |
---|
6336 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6337 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6338 | cat >conftest.$ac_ext <<_ACEOF |
---|
6339 | /* confdefs.h. */ |
---|
6340 | _ACEOF |
---|
6341 | cat confdefs.h >>conftest.$ac_ext |
---|
6342 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6343 | /* end confdefs.h. */ |
---|
6344 | $ac_includes_default |
---|
6345 | #include <$ac_header> |
---|
6346 | _ACEOF |
---|
6347 | rm -f conftest.$ac_objext |
---|
6348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6349 | (eval $ac_compile) 2>conftest.er1 |
---|
6350 | ac_status=$? |
---|
6351 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6352 | rm -f conftest.er1 |
---|
6353 | cat conftest.err >&5 |
---|
6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6355 | (exit $ac_status); } && |
---|
6356 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6357 | || test ! -s conftest.err' |
---|
6358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6359 | (eval $ac_try) 2>&5 |
---|
6360 | ac_status=$? |
---|
6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6362 | (exit $ac_status); }; } && |
---|
6363 | { ac_try='test -s conftest.$ac_objext' |
---|
6364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6365 | (eval $ac_try) 2>&5 |
---|
6366 | ac_status=$? |
---|
6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6368 | (exit $ac_status); }; }; then |
---|
6369 | ac_header_compiler=yes |
---|
6370 | else |
---|
6371 | echo "$as_me: failed program was:" >&5 |
---|
6372 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6373 | |
---|
6374 | ac_header_compiler=no |
---|
6375 | fi |
---|
6376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6377 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6378 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6379 | |
---|
6380 | # Is the header present? |
---|
6381 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6382 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6383 | cat >conftest.$ac_ext <<_ACEOF |
---|
6384 | /* confdefs.h. */ |
---|
6385 | _ACEOF |
---|
6386 | cat confdefs.h >>conftest.$ac_ext |
---|
6387 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6388 | /* end confdefs.h. */ |
---|
6389 | #include <$ac_header> |
---|
6390 | _ACEOF |
---|
6391 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6392 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6393 | ac_status=$? |
---|
6394 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6395 | rm -f conftest.er1 |
---|
6396 | cat conftest.err >&5 |
---|
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6398 | (exit $ac_status); } >/dev/null; then |
---|
6399 | if test -s conftest.err; then |
---|
6400 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6401 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6402 | else |
---|
6403 | ac_cpp_err= |
---|
6404 | fi |
---|
6405 | else |
---|
6406 | ac_cpp_err=yes |
---|
6407 | fi |
---|
6408 | if test -z "$ac_cpp_err"; then |
---|
6409 | ac_header_preproc=yes |
---|
6410 | else |
---|
6411 | echo "$as_me: failed program was:" >&5 |
---|
6412 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6413 | |
---|
6414 | ac_header_preproc=no |
---|
6415 | fi |
---|
6416 | rm -f conftest.err conftest.$ac_ext |
---|
6417 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6418 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6419 | |
---|
6420 | # So? What about this header? |
---|
6421 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6422 | yes:no: ) |
---|
6423 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6424 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6425 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6426 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6427 | ac_header_preproc=yes |
---|
6428 | ;; |
---|
6429 | no:yes:* ) |
---|
6430 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6431 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6432 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6433 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6434 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6435 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6436 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6437 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6438 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6439 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6440 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6441 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6442 | ( |
---|
6443 | cat <<\_ASBOX |
---|
6444 | ## ---------------------------------------------- ## |
---|
6445 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6446 | ## ---------------------------------------------- ## |
---|
6447 | _ASBOX |
---|
6448 | ) | |
---|
6449 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6450 | ;; |
---|
6451 | esac |
---|
6452 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6453 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6454 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6456 | else |
---|
6457 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6458 | fi |
---|
6459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6460 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6461 | |
---|
6462 | fi |
---|
6463 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6464 | cat >>confdefs.h <<_ACEOF |
---|
6465 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6466 | _ACEOF |
---|
6467 | jpegHeader="yes" |
---|
6468 | else |
---|
6469 | jpegHeader="no" |
---|
6470 | fi |
---|
6471 | |
---|
6472 | done |
---|
6473 | |
---|
6474 | if test x$jpegHeader = xno; then |
---|
6475 | echo " not including jpeg." |
---|
6476 | else |
---|
6477 | echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 |
---|
6478 | echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 |
---|
6479 | if test "${ac_cv_lib_jpeg_main+set}" = set; then |
---|
6480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6481 | else |
---|
6482 | ac_check_lib_save_LIBS=$LIBS |
---|
6483 | LIBS="-ljpeg $LIBS" |
---|
6484 | cat >conftest.$ac_ext <<_ACEOF |
---|
6485 | /* confdefs.h. */ |
---|
6486 | _ACEOF |
---|
6487 | cat confdefs.h >>conftest.$ac_ext |
---|
6488 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6489 | /* end confdefs.h. */ |
---|
6490 | |
---|
6491 | |
---|
6492 | int |
---|
6493 | main () |
---|
6494 | { |
---|
6495 | main (); |
---|
6496 | ; |
---|
6497 | return 0; |
---|
6498 | } |
---|
6499 | _ACEOF |
---|
6500 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6502 | (eval $ac_link) 2>conftest.er1 |
---|
6503 | ac_status=$? |
---|
6504 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6505 | rm -f conftest.er1 |
---|
6506 | cat conftest.err >&5 |
---|
6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6508 | (exit $ac_status); } && |
---|
6509 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6510 | || test ! -s conftest.err' |
---|
6511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6512 | (eval $ac_try) 2>&5 |
---|
6513 | ac_status=$? |
---|
6514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6515 | (exit $ac_status); }; } && |
---|
6516 | { ac_try='test -s conftest$ac_exeext' |
---|
6517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6518 | (eval $ac_try) 2>&5 |
---|
6519 | ac_status=$? |
---|
6520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6521 | (exit $ac_status); }; }; then |
---|
6522 | ac_cv_lib_jpeg_main=yes |
---|
6523 | else |
---|
6524 | echo "$as_me: failed program was:" >&5 |
---|
6525 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6526 | |
---|
6527 | ac_cv_lib_jpeg_main=no |
---|
6528 | fi |
---|
6529 | rm -f conftest.err conftest.$ac_objext \ |
---|
6530 | conftest$ac_exeext conftest.$ac_ext |
---|
6531 | LIBS=$ac_check_lib_save_LIBS |
---|
6532 | fi |
---|
6533 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 |
---|
6534 | echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 |
---|
6535 | if test $ac_cv_lib_jpeg_main = yes; then |
---|
6536 | FOUND_jpeg=yes |
---|
6537 | fi |
---|
6538 | |
---|
6539 | if test x$FOUND_jpeg = xyes ; then |
---|
6540 | LIBS="$LIBS -ljpeg" |
---|
6541 | else |
---|
6542 | echo "------------------" |
---|
6543 | echo "jpeg library not found." |
---|
6544 | echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" |
---|
6545 | echo "------------------" |
---|
6546 | exit -1 |
---|
6547 | fi |
---|
6548 | fi |
---|
6549 | |
---|
6550 | #--------# |
---|
6551 | # libpng # |
---|
6552 | #--------# |
---|
6553 | |
---|
6554 | for ac_header in png.h |
---|
6555 | do |
---|
6556 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6562 | fi |
---|
6563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6564 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6565 | else |
---|
6566 | # Is the header compilable? |
---|
6567 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6568 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6569 | cat >conftest.$ac_ext <<_ACEOF |
---|
6570 | /* confdefs.h. */ |
---|
6571 | _ACEOF |
---|
6572 | cat confdefs.h >>conftest.$ac_ext |
---|
6573 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6574 | /* end confdefs.h. */ |
---|
6575 | $ac_includes_default |
---|
6576 | #include <$ac_header> |
---|
6577 | _ACEOF |
---|
6578 | rm -f conftest.$ac_objext |
---|
6579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6580 | (eval $ac_compile) 2>conftest.er1 |
---|
6581 | ac_status=$? |
---|
6582 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6583 | rm -f conftest.er1 |
---|
6584 | cat conftest.err >&5 |
---|
6585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6586 | (exit $ac_status); } && |
---|
6587 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6588 | || test ! -s conftest.err' |
---|
6589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6590 | (eval $ac_try) 2>&5 |
---|
6591 | ac_status=$? |
---|
6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6593 | (exit $ac_status); }; } && |
---|
6594 | { ac_try='test -s conftest.$ac_objext' |
---|
6595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6596 | (eval $ac_try) 2>&5 |
---|
6597 | ac_status=$? |
---|
6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6599 | (exit $ac_status); }; }; then |
---|
6600 | ac_header_compiler=yes |
---|
6601 | else |
---|
6602 | echo "$as_me: failed program was:" >&5 |
---|
6603 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6604 | |
---|
6605 | ac_header_compiler=no |
---|
6606 | fi |
---|
6607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6608 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6609 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6610 | |
---|
6611 | # Is the header present? |
---|
6612 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6613 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6614 | cat >conftest.$ac_ext <<_ACEOF |
---|
6615 | /* confdefs.h. */ |
---|
6616 | _ACEOF |
---|
6617 | cat confdefs.h >>conftest.$ac_ext |
---|
6618 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6619 | /* end confdefs.h. */ |
---|
6620 | #include <$ac_header> |
---|
6621 | _ACEOF |
---|
6622 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6623 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6624 | ac_status=$? |
---|
6625 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6626 | rm -f conftest.er1 |
---|
6627 | cat conftest.err >&5 |
---|
6628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6629 | (exit $ac_status); } >/dev/null; then |
---|
6630 | if test -s conftest.err; then |
---|
6631 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6632 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6633 | else |
---|
6634 | ac_cpp_err= |
---|
6635 | fi |
---|
6636 | else |
---|
6637 | ac_cpp_err=yes |
---|
6638 | fi |
---|
6639 | if test -z "$ac_cpp_err"; then |
---|
6640 | ac_header_preproc=yes |
---|
6641 | else |
---|
6642 | echo "$as_me: failed program was:" >&5 |
---|
6643 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6644 | |
---|
6645 | ac_header_preproc=no |
---|
6646 | fi |
---|
6647 | rm -f conftest.err conftest.$ac_ext |
---|
6648 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6649 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6650 | |
---|
6651 | # So? What about this header? |
---|
6652 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6653 | yes:no: ) |
---|
6654 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6655 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6656 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6657 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6658 | ac_header_preproc=yes |
---|
6659 | ;; |
---|
6660 | no:yes:* ) |
---|
6661 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6662 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6663 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6664 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6665 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6666 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6667 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6668 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6670 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6671 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6672 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6673 | ( |
---|
6674 | cat <<\_ASBOX |
---|
6675 | ## ---------------------------------------------- ## |
---|
6676 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6677 | ## ---------------------------------------------- ## |
---|
6678 | _ASBOX |
---|
6679 | ) | |
---|
6680 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6681 | ;; |
---|
6682 | esac |
---|
6683 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6687 | else |
---|
6688 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6689 | fi |
---|
6690 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6691 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6692 | |
---|
6693 | fi |
---|
6694 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6695 | cat >>confdefs.h <<_ACEOF |
---|
6696 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6697 | _ACEOF |
---|
6698 | pngHeader="yes" |
---|
6699 | else |
---|
6700 | pngHeader="no" |
---|
6701 | fi |
---|
6702 | |
---|
6703 | done |
---|
6704 | |
---|
6705 | if test x$pngHeader = xno; then |
---|
6706 | echo " not including png." |
---|
6707 | else |
---|
6708 | echo "$as_me:$LINENO: checking for main in -lpng" >&5 |
---|
6709 | echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 |
---|
6710 | if test "${ac_cv_lib_png_main+set}" = set; then |
---|
6711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6712 | else |
---|
6713 | ac_check_lib_save_LIBS=$LIBS |
---|
6714 | LIBS="-lpng $LIBS" |
---|
6715 | cat >conftest.$ac_ext <<_ACEOF |
---|
6716 | /* confdefs.h. */ |
---|
6717 | _ACEOF |
---|
6718 | cat confdefs.h >>conftest.$ac_ext |
---|
6719 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6720 | /* end confdefs.h. */ |
---|
6721 | |
---|
6722 | |
---|
6723 | int |
---|
6724 | main () |
---|
6725 | { |
---|
6726 | main (); |
---|
6727 | ; |
---|
6728 | return 0; |
---|
6729 | } |
---|
6730 | _ACEOF |
---|
6731 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6733 | (eval $ac_link) 2>conftest.er1 |
---|
6734 | ac_status=$? |
---|
6735 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6736 | rm -f conftest.er1 |
---|
6737 | cat conftest.err >&5 |
---|
6738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6739 | (exit $ac_status); } && |
---|
6740 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6741 | || test ! -s conftest.err' |
---|
6742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6743 | (eval $ac_try) 2>&5 |
---|
6744 | ac_status=$? |
---|
6745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6746 | (exit $ac_status); }; } && |
---|
6747 | { ac_try='test -s conftest$ac_exeext' |
---|
6748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6749 | (eval $ac_try) 2>&5 |
---|
6750 | ac_status=$? |
---|
6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6752 | (exit $ac_status); }; }; then |
---|
6753 | ac_cv_lib_png_main=yes |
---|
6754 | else |
---|
6755 | echo "$as_me: failed program was:" >&5 |
---|
6756 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6757 | |
---|
6758 | ac_cv_lib_png_main=no |
---|
6759 | fi |
---|
6760 | rm -f conftest.err conftest.$ac_objext \ |
---|
6761 | conftest$ac_exeext conftest.$ac_ext |
---|
6762 | LIBS=$ac_check_lib_save_LIBS |
---|
6763 | fi |
---|
6764 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 |
---|
6765 | echo "${ECHO_T}$ac_cv_lib_png_main" >&6 |
---|
6766 | if test $ac_cv_lib_png_main = yes; then |
---|
6767 | FOUND_png=yes |
---|
6768 | fi |
---|
6769 | |
---|
6770 | if test x$FOUND_png = xyes ; then |
---|
6771 | LIBS="$LIBS -lpng" |
---|
6772 | else |
---|
6773 | echo "------------------" |
---|
6774 | echo "png library not found." |
---|
6775 | echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" |
---|
6776 | echo "------------------" |
---|
6777 | exit -1 |
---|
6778 | fi |
---|
6779 | fi |
---|
6780 | fi |
---|
6781 | |
---|
6782 | #-----# |
---|
6783 | # GTK # |
---|
6784 | #-----# |
---|
6785 | if test x$def_gtk = xyes; then |
---|
6786 | |
---|
6787 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
6788 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
6789 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
6790 | if `pkg-config --exists gtk+-2.0`; then |
---|
6791 | echo "yes" |
---|
6792 | have_gtk2=yes |
---|
6793 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
6794 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
6795 | |
---|
6796 | cat >>confdefs.h <<_ACEOF |
---|
6797 | #define HAVE_GTK2 1 |
---|
6798 | _ACEOF |
---|
6799 | |
---|
6800 | else |
---|
6801 | echo "no" |
---|
6802 | fi |
---|
6803 | |
---|
6804 | fi |
---|
6805 | |
---|
6806 | |
---|
6807 | |
---|
6808 | |
---|
6809 | if test x$have_gtk2 = xyes; then |
---|
6810 | HAVE_GTK2_TRUE= |
---|
6811 | HAVE_GTK2_FALSE='#' |
---|
6812 | else |
---|
6813 | HAVE_GTK2_TRUE='#' |
---|
6814 | HAVE_GTK2_FALSE= |
---|
6815 | fi |
---|
6816 | |
---|
6817 | |
---|
6818 | #---------# |
---|
6819 | # gThread # |
---|
6820 | #---------# |
---|
6821 | if test x$def_gthread = xyes; then |
---|
6822 | |
---|
6823 | echo "$as_me:$LINENO: checking for gthread" >&5 |
---|
6824 | echo $ECHO_N "checking for gthread... $ECHO_C" >&6 |
---|
6825 | if `pkg-config --exists gthread-2.0`; then |
---|
6826 | echo "yes" |
---|
6827 | have_gthread=yes |
---|
6828 | GTHREAD_LIBS=`pkg-config --libs gthread-2.0` |
---|
6829 | GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0` |
---|
6830 | |
---|
6831 | cat >>confdefs.h <<_ACEOF |
---|
6832 | #define HAVE_GTHREAD 1 |
---|
6833 | _ACEOF |
---|
6834 | |
---|
6835 | else |
---|
6836 | echo "no" |
---|
6837 | fi |
---|
6838 | |
---|
6839 | fi |
---|
6840 | |
---|
6841 | |
---|
6842 | |
---|
6843 | |
---|
6844 | if test x$have_gthread = xyes; then |
---|
6845 | HAVE_GTHREAD_TRUE= |
---|
6846 | HAVE_GTHREAD_FALSE='#' |
---|
6847 | else |
---|
6848 | HAVE_GTHREAD_TRUE='#' |
---|
6849 | HAVE_GTHREAD_FALSE= |
---|
6850 | fi |
---|
6851 | |
---|
6852 | |
---|
6853 | #---------# |
---|
6854 | # libcURL # |
---|
6855 | #---------# |
---|
6856 | if test x$def_curl = xyes; then |
---|
6857 | |
---|
6858 | |
---|
6859 | for ac_header in curl/curl.h |
---|
6860 | do |
---|
6861 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6862 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6863 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6865 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6867 | fi |
---|
6868 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6869 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6870 | else |
---|
6871 | # Is the header compilable? |
---|
6872 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6873 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6874 | cat >conftest.$ac_ext <<_ACEOF |
---|
6875 | /* confdefs.h. */ |
---|
6876 | _ACEOF |
---|
6877 | cat confdefs.h >>conftest.$ac_ext |
---|
6878 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6879 | /* end confdefs.h. */ |
---|
6880 | $ac_includes_default |
---|
6881 | #include <$ac_header> |
---|
6882 | _ACEOF |
---|
6883 | rm -f conftest.$ac_objext |
---|
6884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6885 | (eval $ac_compile) 2>conftest.er1 |
---|
6886 | ac_status=$? |
---|
6887 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6888 | rm -f conftest.er1 |
---|
6889 | cat conftest.err >&5 |
---|
6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6891 | (exit $ac_status); } && |
---|
6892 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6893 | || test ! -s conftest.err' |
---|
6894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6895 | (eval $ac_try) 2>&5 |
---|
6896 | ac_status=$? |
---|
6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6898 | (exit $ac_status); }; } && |
---|
6899 | { ac_try='test -s conftest.$ac_objext' |
---|
6900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6901 | (eval $ac_try) 2>&5 |
---|
6902 | ac_status=$? |
---|
6903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6904 | (exit $ac_status); }; }; then |
---|
6905 | ac_header_compiler=yes |
---|
6906 | else |
---|
6907 | echo "$as_me: failed program was:" >&5 |
---|
6908 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6909 | |
---|
6910 | ac_header_compiler=no |
---|
6911 | fi |
---|
6912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6913 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6914 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6915 | |
---|
6916 | # Is the header present? |
---|
6917 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6918 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6919 | cat >conftest.$ac_ext <<_ACEOF |
---|
6920 | /* confdefs.h. */ |
---|
6921 | _ACEOF |
---|
6922 | cat confdefs.h >>conftest.$ac_ext |
---|
6923 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6924 | /* end confdefs.h. */ |
---|
6925 | #include <$ac_header> |
---|
6926 | _ACEOF |
---|
6927 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6928 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6929 | ac_status=$? |
---|
6930 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6931 | rm -f conftest.er1 |
---|
6932 | cat conftest.err >&5 |
---|
6933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6934 | (exit $ac_status); } >/dev/null; then |
---|
6935 | if test -s conftest.err; then |
---|
6936 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6937 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6938 | else |
---|
6939 | ac_cpp_err= |
---|
6940 | fi |
---|
6941 | else |
---|
6942 | ac_cpp_err=yes |
---|
6943 | fi |
---|
6944 | if test -z "$ac_cpp_err"; then |
---|
6945 | ac_header_preproc=yes |
---|
6946 | else |
---|
6947 | echo "$as_me: failed program was:" >&5 |
---|
6948 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6949 | |
---|
6950 | ac_header_preproc=no |
---|
6951 | fi |
---|
6952 | rm -f conftest.err conftest.$ac_ext |
---|
6953 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6954 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6955 | |
---|
6956 | # So? What about this header? |
---|
6957 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6958 | yes:no: ) |
---|
6959 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6960 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6961 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6962 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6963 | ac_header_preproc=yes |
---|
6964 | ;; |
---|
6965 | no:yes:* ) |
---|
6966 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6967 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6968 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6969 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6970 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6971 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6972 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6973 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6975 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6976 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6977 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6978 | ( |
---|
6979 | cat <<\_ASBOX |
---|
6980 | ## ---------------------------------------------- ## |
---|
6981 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6982 | ## ---------------------------------------------- ## |
---|
6983 | _ASBOX |
---|
6984 | ) | |
---|
6985 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6986 | ;; |
---|
6987 | esac |
---|
6988 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6989 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6990 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6992 | else |
---|
6993 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6994 | fi |
---|
6995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6997 | |
---|
6998 | fi |
---|
6999 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7000 | cat >>confdefs.h <<_ACEOF |
---|
7001 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7002 | _ACEOF |
---|
7003 | curlHeader="yes" |
---|
7004 | else |
---|
7005 | curlHeader="no" |
---|
7006 | fi |
---|
7007 | |
---|
7008 | done |
---|
7009 | |
---|
7010 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
7011 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
7012 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
7013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7014 | else |
---|
7015 | ac_check_lib_save_LIBS=$LIBS |
---|
7016 | LIBS="-lcurl $LIBS" |
---|
7017 | cat >conftest.$ac_ext <<_ACEOF |
---|
7018 | /* confdefs.h. */ |
---|
7019 | _ACEOF |
---|
7020 | cat confdefs.h >>conftest.$ac_ext |
---|
7021 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7022 | /* end confdefs.h. */ |
---|
7023 | |
---|
7024 | |
---|
7025 | int |
---|
7026 | main () |
---|
7027 | { |
---|
7028 | main (); |
---|
7029 | ; |
---|
7030 | return 0; |
---|
7031 | } |
---|
7032 | _ACEOF |
---|
7033 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7035 | (eval $ac_link) 2>conftest.er1 |
---|
7036 | ac_status=$? |
---|
7037 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7038 | rm -f conftest.er1 |
---|
7039 | cat conftest.err >&5 |
---|
7040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7041 | (exit $ac_status); } && |
---|
7042 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7043 | || test ! -s conftest.err' |
---|
7044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7045 | (eval $ac_try) 2>&5 |
---|
7046 | ac_status=$? |
---|
7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7048 | (exit $ac_status); }; } && |
---|
7049 | { ac_try='test -s conftest$ac_exeext' |
---|
7050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7051 | (eval $ac_try) 2>&5 |
---|
7052 | ac_status=$? |
---|
7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7054 | (exit $ac_status); }; }; then |
---|
7055 | ac_cv_lib_curl_main=yes |
---|
7056 | else |
---|
7057 | echo "$as_me: failed program was:" >&5 |
---|
7058 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7059 | |
---|
7060 | ac_cv_lib_curl_main=no |
---|
7061 | fi |
---|
7062 | rm -f conftest.err conftest.$ac_objext \ |
---|
7063 | conftest$ac_exeext conftest.$ac_ext |
---|
7064 | LIBS=$ac_check_lib_save_LIBS |
---|
7065 | fi |
---|
7066 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
7067 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
7068 | if test $ac_cv_lib_curl_main = yes; then |
---|
7069 | FOUND_curl=yes |
---|
7070 | fi |
---|
7071 | |
---|
7072 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
7073 | have_curl=yes |
---|
7074 | CURL_LIBS=`curl-config --libs` |
---|
7075 | CURLCFLAGS=`curl-config --cflags` |
---|
7076 | |
---|
7077 | cat >>confdefs.h <<_ACEOF |
---|
7078 | #define HAVE_CURL 1 |
---|
7079 | _ACEOF |
---|
7080 | |
---|
7081 | else |
---|
7082 | have_curl=no |
---|
7083 | fi |
---|
7084 | |
---|
7085 | fi |
---|
7086 | |
---|
7087 | |
---|
7088 | |
---|
7089 | |
---|
7090 | if test x$have_curl = xyes; then |
---|
7091 | HAVE_CURL_TRUE= |
---|
7092 | HAVE_CURL_FALSE='#' |
---|
7093 | else |
---|
7094 | HAVE_CURL_TRUE='#' |
---|
7095 | HAVE_CURL_FALSE= |
---|
7096 | fi |
---|
7097 | |
---|
7098 | |
---|
7099 | #---------# |
---|
7100 | # pthread # |
---|
7101 | #---------# |
---|
7102 | if test x$def_pthread = xyes ; then |
---|
7103 | if test x$have_gthread = xyes ; then |
---|
7104 | |
---|
7105 | for ac_header in pthread.h |
---|
7106 | do |
---|
7107 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7109 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7110 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7111 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7113 | fi |
---|
7114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7115 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7116 | else |
---|
7117 | # Is the header compilable? |
---|
7118 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7119 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7120 | cat >conftest.$ac_ext <<_ACEOF |
---|
7121 | /* confdefs.h. */ |
---|
7122 | _ACEOF |
---|
7123 | cat confdefs.h >>conftest.$ac_ext |
---|
7124 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7125 | /* end confdefs.h. */ |
---|
7126 | $ac_includes_default |
---|
7127 | #include <$ac_header> |
---|
7128 | _ACEOF |
---|
7129 | rm -f conftest.$ac_objext |
---|
7130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7131 | (eval $ac_compile) 2>conftest.er1 |
---|
7132 | ac_status=$? |
---|
7133 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7134 | rm -f conftest.er1 |
---|
7135 | cat conftest.err >&5 |
---|
7136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7137 | (exit $ac_status); } && |
---|
7138 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7139 | || test ! -s conftest.err' |
---|
7140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7141 | (eval $ac_try) 2>&5 |
---|
7142 | ac_status=$? |
---|
7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7144 | (exit $ac_status); }; } && |
---|
7145 | { ac_try='test -s conftest.$ac_objext' |
---|
7146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7147 | (eval $ac_try) 2>&5 |
---|
7148 | ac_status=$? |
---|
7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7150 | (exit $ac_status); }; }; then |
---|
7151 | ac_header_compiler=yes |
---|
7152 | else |
---|
7153 | echo "$as_me: failed program was:" >&5 |
---|
7154 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7155 | |
---|
7156 | ac_header_compiler=no |
---|
7157 | fi |
---|
7158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7159 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7160 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7161 | |
---|
7162 | # Is the header present? |
---|
7163 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7164 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7165 | cat >conftest.$ac_ext <<_ACEOF |
---|
7166 | /* confdefs.h. */ |
---|
7167 | _ACEOF |
---|
7168 | cat confdefs.h >>conftest.$ac_ext |
---|
7169 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7170 | /* end confdefs.h. */ |
---|
7171 | #include <$ac_header> |
---|
7172 | _ACEOF |
---|
7173 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7174 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7175 | ac_status=$? |
---|
7176 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7177 | rm -f conftest.er1 |
---|
7178 | cat conftest.err >&5 |
---|
7179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7180 | (exit $ac_status); } >/dev/null; then |
---|
7181 | if test -s conftest.err; then |
---|
7182 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7183 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7184 | else |
---|
7185 | ac_cpp_err= |
---|
7186 | fi |
---|
7187 | else |
---|
7188 | ac_cpp_err=yes |
---|
7189 | fi |
---|
7190 | if test -z "$ac_cpp_err"; then |
---|
7191 | ac_header_preproc=yes |
---|
7192 | else |
---|
7193 | echo "$as_me: failed program was:" >&5 |
---|
7194 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7195 | |
---|
7196 | ac_header_preproc=no |
---|
7197 | fi |
---|
7198 | rm -f conftest.err conftest.$ac_ext |
---|
7199 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7200 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7201 | |
---|
7202 | # So? What about this header? |
---|
7203 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7204 | yes:no: ) |
---|
7205 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7206 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7207 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7208 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7209 | ac_header_preproc=yes |
---|
7210 | ;; |
---|
7211 | no:yes:* ) |
---|
7212 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7213 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7214 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7215 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7216 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7217 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7218 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7219 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7220 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7221 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7222 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7223 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7224 | ( |
---|
7225 | cat <<\_ASBOX |
---|
7226 | ## ---------------------------------------------- ## |
---|
7227 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7228 | ## ---------------------------------------------- ## |
---|
7229 | _ASBOX |
---|
7230 | ) | |
---|
7231 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7232 | ;; |
---|
7233 | esac |
---|
7234 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7238 | else |
---|
7239 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7240 | fi |
---|
7241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7243 | |
---|
7244 | fi |
---|
7245 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7246 | cat >>confdefs.h <<_ACEOF |
---|
7247 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7248 | _ACEOF |
---|
7249 | pthreadHeader="yes" |
---|
7250 | else |
---|
7251 | pthreadHeader="no" |
---|
7252 | fi |
---|
7253 | |
---|
7254 | done |
---|
7255 | |
---|
7256 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
7257 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
7258 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
7259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7260 | else |
---|
7261 | ac_check_lib_save_LIBS=$LIBS |
---|
7262 | LIBS="-lpthread $LIBS" |
---|
7263 | cat >conftest.$ac_ext <<_ACEOF |
---|
7264 | /* confdefs.h. */ |
---|
7265 | _ACEOF |
---|
7266 | cat confdefs.h >>conftest.$ac_ext |
---|
7267 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7268 | /* end confdefs.h. */ |
---|
7269 | |
---|
7270 | |
---|
7271 | int |
---|
7272 | main () |
---|
7273 | { |
---|
7274 | main (); |
---|
7275 | ; |
---|
7276 | return 0; |
---|
7277 | } |
---|
7278 | _ACEOF |
---|
7279 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7281 | (eval $ac_link) 2>conftest.er1 |
---|
7282 | ac_status=$? |
---|
7283 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7284 | rm -f conftest.er1 |
---|
7285 | cat conftest.err >&5 |
---|
7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7287 | (exit $ac_status); } && |
---|
7288 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7289 | || test ! -s conftest.err' |
---|
7290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7291 | (eval $ac_try) 2>&5 |
---|
7292 | ac_status=$? |
---|
7293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7294 | (exit $ac_status); }; } && |
---|
7295 | { ac_try='test -s conftest$ac_exeext' |
---|
7296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7297 | (eval $ac_try) 2>&5 |
---|
7298 | ac_status=$? |
---|
7299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7300 | (exit $ac_status); }; }; then |
---|
7301 | ac_cv_lib_pthread_main=yes |
---|
7302 | else |
---|
7303 | echo "$as_me: failed program was:" >&5 |
---|
7304 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7305 | |
---|
7306 | ac_cv_lib_pthread_main=no |
---|
7307 | fi |
---|
7308 | rm -f conftest.err conftest.$ac_objext \ |
---|
7309 | conftest$ac_exeext conftest.$ac_ext |
---|
7310 | LIBS=$ac_check_lib_save_LIBS |
---|
7311 | fi |
---|
7312 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
7313 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
7314 | if test $ac_cv_lib_pthread_main = yes; then |
---|
7315 | FOUND_pthread=yes |
---|
7316 | fi |
---|
7317 | |
---|
7318 | if test x$FOUND_pthread = xyes ; then |
---|
7319 | LIBS="$LIBS -lpthread" |
---|
7320 | fi |
---|
7321 | fi |
---|
7322 | fi |
---|
7323 | |
---|
7324 | |
---|
7325 | # FIXME: Replace `main' with a function in `-lm': |
---|
7326 | |
---|
7327 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
7328 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
7329 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
7330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7331 | else |
---|
7332 | ac_check_lib_save_LIBS=$LIBS |
---|
7333 | LIBS="-lm $LIBS" |
---|
7334 | cat >conftest.$ac_ext <<_ACEOF |
---|
7335 | /* confdefs.h. */ |
---|
7336 | _ACEOF |
---|
7337 | cat confdefs.h >>conftest.$ac_ext |
---|
7338 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7339 | /* end confdefs.h. */ |
---|
7340 | |
---|
7341 | |
---|
7342 | int |
---|
7343 | main () |
---|
7344 | { |
---|
7345 | main (); |
---|
7346 | ; |
---|
7347 | return 0; |
---|
7348 | } |
---|
7349 | _ACEOF |
---|
7350 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7352 | (eval $ac_link) 2>conftest.er1 |
---|
7353 | ac_status=$? |
---|
7354 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7355 | rm -f conftest.er1 |
---|
7356 | cat conftest.err >&5 |
---|
7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7358 | (exit $ac_status); } && |
---|
7359 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7360 | || test ! -s conftest.err' |
---|
7361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7362 | (eval $ac_try) 2>&5 |
---|
7363 | ac_status=$? |
---|
7364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7365 | (exit $ac_status); }; } && |
---|
7366 | { ac_try='test -s conftest$ac_exeext' |
---|
7367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7368 | (eval $ac_try) 2>&5 |
---|
7369 | ac_status=$? |
---|
7370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7371 | (exit $ac_status); }; }; then |
---|
7372 | ac_cv_lib_m_main=yes |
---|
7373 | else |
---|
7374 | echo "$as_me: failed program was:" >&5 |
---|
7375 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7376 | |
---|
7377 | ac_cv_lib_m_main=no |
---|
7378 | fi |
---|
7379 | rm -f conftest.err conftest.$ac_objext \ |
---|
7380 | conftest$ac_exeext conftest.$ac_ext |
---|
7381 | LIBS=$ac_check_lib_save_LIBS |
---|
7382 | fi |
---|
7383 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
7384 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
7385 | if test $ac_cv_lib_m_main = yes; then |
---|
7386 | cat >>confdefs.h <<_ACEOF |
---|
7387 | #define HAVE_LIBM 1 |
---|
7388 | _ACEOF |
---|
7389 | |
---|
7390 | LIBS="-lm $LIBS" |
---|
7391 | |
---|
7392 | fi |
---|
7393 | |
---|
7394 | |
---|
7395 | |
---|
7396 | # Checks for header files. |
---|
7397 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
7398 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
7399 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
7400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7401 | else |
---|
7402 | cat >conftest.$ac_ext <<_ACEOF |
---|
7403 | /* confdefs.h. */ |
---|
7404 | _ACEOF |
---|
7405 | cat confdefs.h >>conftest.$ac_ext |
---|
7406 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7407 | /* end confdefs.h. */ |
---|
7408 | #include <stdlib.h> |
---|
7409 | #include <stdarg.h> |
---|
7410 | #include <string.h> |
---|
7411 | #include <float.h> |
---|
7412 | |
---|
7413 | int |
---|
7414 | main () |
---|
7415 | { |
---|
7416 | |
---|
7417 | ; |
---|
7418 | return 0; |
---|
7419 | } |
---|
7420 | _ACEOF |
---|
7421 | rm -f conftest.$ac_objext |
---|
7422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7423 | (eval $ac_compile) 2>conftest.er1 |
---|
7424 | ac_status=$? |
---|
7425 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7426 | rm -f conftest.er1 |
---|
7427 | cat conftest.err >&5 |
---|
7428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7429 | (exit $ac_status); } && |
---|
7430 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7431 | || test ! -s conftest.err' |
---|
7432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7433 | (eval $ac_try) 2>&5 |
---|
7434 | ac_status=$? |
---|
7435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7436 | (exit $ac_status); }; } && |
---|
7437 | { ac_try='test -s conftest.$ac_objext' |
---|
7438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7439 | (eval $ac_try) 2>&5 |
---|
7440 | ac_status=$? |
---|
7441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7442 | (exit $ac_status); }; }; then |
---|
7443 | ac_cv_header_stdc=yes |
---|
7444 | else |
---|
7445 | echo "$as_me: failed program was:" >&5 |
---|
7446 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7447 | |
---|
7448 | ac_cv_header_stdc=no |
---|
7449 | fi |
---|
7450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7451 | |
---|
7452 | if test $ac_cv_header_stdc = yes; then |
---|
7453 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
7454 | cat >conftest.$ac_ext <<_ACEOF |
---|
7455 | /* confdefs.h. */ |
---|
7456 | _ACEOF |
---|
7457 | cat confdefs.h >>conftest.$ac_ext |
---|
7458 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7459 | /* end confdefs.h. */ |
---|
7460 | #include <string.h> |
---|
7461 | |
---|
7462 | _ACEOF |
---|
7463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7464 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
7465 | : |
---|
7466 | else |
---|
7467 | ac_cv_header_stdc=no |
---|
7468 | fi |
---|
7469 | rm -f conftest* |
---|
7470 | |
---|
7471 | fi |
---|
7472 | |
---|
7473 | if test $ac_cv_header_stdc = yes; then |
---|
7474 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
7475 | cat >conftest.$ac_ext <<_ACEOF |
---|
7476 | /* confdefs.h. */ |
---|
7477 | _ACEOF |
---|
7478 | cat confdefs.h >>conftest.$ac_ext |
---|
7479 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7480 | /* end confdefs.h. */ |
---|
7481 | #include <stdlib.h> |
---|
7482 | |
---|
7483 | _ACEOF |
---|
7484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7485 | $EGREP "free" >/dev/null 2>&1; then |
---|
7486 | : |
---|
7487 | else |
---|
7488 | ac_cv_header_stdc=no |
---|
7489 | fi |
---|
7490 | rm -f conftest* |
---|
7491 | |
---|
7492 | fi |
---|
7493 | |
---|
7494 | if test $ac_cv_header_stdc = yes; then |
---|
7495 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
7496 | if test "$cross_compiling" = yes; then |
---|
7497 | : |
---|
7498 | else |
---|
7499 | cat >conftest.$ac_ext <<_ACEOF |
---|
7500 | /* confdefs.h. */ |
---|
7501 | _ACEOF |
---|
7502 | cat confdefs.h >>conftest.$ac_ext |
---|
7503 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7504 | /* end confdefs.h. */ |
---|
7505 | #include <ctype.h> |
---|
7506 | #if ((' ' & 0x0FF) == 0x020) |
---|
7507 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
7508 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
7509 | #else |
---|
7510 | # define ISLOWER(c) \ |
---|
7511 | (('a' <= (c) && (c) <= 'i') \ |
---|
7512 | || ('j' <= (c) && (c) <= 'r') \ |
---|
7513 | || ('s' <= (c) && (c) <= 'z')) |
---|
7514 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
7515 | #endif |
---|
7516 | |
---|
7517 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
7518 | int |
---|
7519 | main () |
---|
7520 | { |
---|
7521 | int i; |
---|
7522 | for (i = 0; i < 256; i++) |
---|
7523 | if (XOR (islower (i), ISLOWER (i)) |
---|
7524 | || toupper (i) != TOUPPER (i)) |
---|
7525 | exit(2); |
---|
7526 | exit (0); |
---|
7527 | } |
---|
7528 | _ACEOF |
---|
7529 | rm -f conftest$ac_exeext |
---|
7530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7531 | (eval $ac_link) 2>&5 |
---|
7532 | ac_status=$? |
---|
7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7534 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7536 | (eval $ac_try) 2>&5 |
---|
7537 | ac_status=$? |
---|
7538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7539 | (exit $ac_status); }; }; then |
---|
7540 | : |
---|
7541 | else |
---|
7542 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7543 | echo "$as_me: failed program was:" >&5 |
---|
7544 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7545 | |
---|
7546 | ( exit $ac_status ) |
---|
7547 | ac_cv_header_stdc=no |
---|
7548 | fi |
---|
7549 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7550 | fi |
---|
7551 | fi |
---|
7552 | fi |
---|
7553 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
7554 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
7555 | if test $ac_cv_header_stdc = yes; then |
---|
7556 | |
---|
7557 | cat >>confdefs.h <<\_ACEOF |
---|
7558 | #define STDC_HEADERS 1 |
---|
7559 | _ACEOF |
---|
7560 | |
---|
7561 | fi |
---|
7562 | |
---|
7563 | |
---|
7564 | |
---|
7565 | for ac_header in stdlib.h string.h |
---|
7566 | do |
---|
7567 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7568 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7569 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7573 | fi |
---|
7574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7575 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7576 | else |
---|
7577 | # Is the header compilable? |
---|
7578 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7579 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7580 | cat >conftest.$ac_ext <<_ACEOF |
---|
7581 | /* confdefs.h. */ |
---|
7582 | _ACEOF |
---|
7583 | cat confdefs.h >>conftest.$ac_ext |
---|
7584 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7585 | /* end confdefs.h. */ |
---|
7586 | $ac_includes_default |
---|
7587 | #include <$ac_header> |
---|
7588 | _ACEOF |
---|
7589 | rm -f conftest.$ac_objext |
---|
7590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7591 | (eval $ac_compile) 2>conftest.er1 |
---|
7592 | ac_status=$? |
---|
7593 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7594 | rm -f conftest.er1 |
---|
7595 | cat conftest.err >&5 |
---|
7596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7597 | (exit $ac_status); } && |
---|
7598 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7599 | || test ! -s conftest.err' |
---|
7600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7601 | (eval $ac_try) 2>&5 |
---|
7602 | ac_status=$? |
---|
7603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7604 | (exit $ac_status); }; } && |
---|
7605 | { ac_try='test -s conftest.$ac_objext' |
---|
7606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7607 | (eval $ac_try) 2>&5 |
---|
7608 | ac_status=$? |
---|
7609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7610 | (exit $ac_status); }; }; then |
---|
7611 | ac_header_compiler=yes |
---|
7612 | else |
---|
7613 | echo "$as_me: failed program was:" >&5 |
---|
7614 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7615 | |
---|
7616 | ac_header_compiler=no |
---|
7617 | fi |
---|
7618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7619 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7620 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7621 | |
---|
7622 | # Is the header present? |
---|
7623 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7624 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7625 | cat >conftest.$ac_ext <<_ACEOF |
---|
7626 | /* confdefs.h. */ |
---|
7627 | _ACEOF |
---|
7628 | cat confdefs.h >>conftest.$ac_ext |
---|
7629 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7630 | /* end confdefs.h. */ |
---|
7631 | #include <$ac_header> |
---|
7632 | _ACEOF |
---|
7633 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7634 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7635 | ac_status=$? |
---|
7636 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7637 | rm -f conftest.er1 |
---|
7638 | cat conftest.err >&5 |
---|
7639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7640 | (exit $ac_status); } >/dev/null; then |
---|
7641 | if test -s conftest.err; then |
---|
7642 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7643 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7644 | else |
---|
7645 | ac_cpp_err= |
---|
7646 | fi |
---|
7647 | else |
---|
7648 | ac_cpp_err=yes |
---|
7649 | fi |
---|
7650 | if test -z "$ac_cpp_err"; then |
---|
7651 | ac_header_preproc=yes |
---|
7652 | else |
---|
7653 | echo "$as_me: failed program was:" >&5 |
---|
7654 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7655 | |
---|
7656 | ac_header_preproc=no |
---|
7657 | fi |
---|
7658 | rm -f conftest.err conftest.$ac_ext |
---|
7659 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7660 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7661 | |
---|
7662 | # So? What about this header? |
---|
7663 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7664 | yes:no: ) |
---|
7665 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7666 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7667 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7668 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7669 | ac_header_preproc=yes |
---|
7670 | ;; |
---|
7671 | no:yes:* ) |
---|
7672 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7673 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7674 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7675 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7676 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7677 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7678 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7679 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7680 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7681 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7682 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7683 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7684 | ( |
---|
7685 | cat <<\_ASBOX |
---|
7686 | ## ---------------------------------------------- ## |
---|
7687 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7688 | ## ---------------------------------------------- ## |
---|
7689 | _ASBOX |
---|
7690 | ) | |
---|
7691 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7692 | ;; |
---|
7693 | esac |
---|
7694 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7698 | else |
---|
7699 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7700 | fi |
---|
7701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7702 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7703 | |
---|
7704 | fi |
---|
7705 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7706 | cat >>confdefs.h <<_ACEOF |
---|
7707 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7708 | _ACEOF |
---|
7709 | |
---|
7710 | fi |
---|
7711 | |
---|
7712 | done |
---|
7713 | |
---|
7714 | |
---|
7715 | # Checks for typedefs, structures, and compiler characteristics. |
---|
7716 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
7717 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
7718 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
7719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7720 | else |
---|
7721 | cat >conftest.$ac_ext <<_ACEOF |
---|
7722 | /* confdefs.h. */ |
---|
7723 | _ACEOF |
---|
7724 | cat confdefs.h >>conftest.$ac_ext |
---|
7725 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7726 | /* end confdefs.h. */ |
---|
7727 | |
---|
7728 | #include <stdbool.h> |
---|
7729 | #ifndef bool |
---|
7730 | # error bool is not defined |
---|
7731 | #endif |
---|
7732 | #ifndef false |
---|
7733 | # error false is not defined |
---|
7734 | #endif |
---|
7735 | #if false |
---|
7736 | # error false is not 0 |
---|
7737 | #endif |
---|
7738 | #ifndef true |
---|
7739 | # error true is not defined |
---|
7740 | #endif |
---|
7741 | #if true != 1 |
---|
7742 | # error true is not 1 |
---|
7743 | #endif |
---|
7744 | #ifndef __bool_true_false_are_defined |
---|
7745 | # error __bool_true_false_are_defined is not defined |
---|
7746 | #endif |
---|
7747 | |
---|
7748 | struct s { _Bool s: 1; _Bool t; } s; |
---|
7749 | |
---|
7750 | char a[true == 1 ? 1 : -1]; |
---|
7751 | char b[false == 0 ? 1 : -1]; |
---|
7752 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
7753 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
7754 | bool e = &s; |
---|
7755 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
7756 | char g[true]; |
---|
7757 | char h[sizeof (_Bool)]; |
---|
7758 | char i[sizeof s.t]; |
---|
7759 | |
---|
7760 | int |
---|
7761 | main () |
---|
7762 | { |
---|
7763 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
7764 | ; |
---|
7765 | return 0; |
---|
7766 | } |
---|
7767 | _ACEOF |
---|
7768 | rm -f conftest.$ac_objext |
---|
7769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7770 | (eval $ac_compile) 2>conftest.er1 |
---|
7771 | ac_status=$? |
---|
7772 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7773 | rm -f conftest.er1 |
---|
7774 | cat conftest.err >&5 |
---|
7775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7776 | (exit $ac_status); } && |
---|
7777 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7778 | || test ! -s conftest.err' |
---|
7779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7780 | (eval $ac_try) 2>&5 |
---|
7781 | ac_status=$? |
---|
7782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7783 | (exit $ac_status); }; } && |
---|
7784 | { ac_try='test -s conftest.$ac_objext' |
---|
7785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7786 | (eval $ac_try) 2>&5 |
---|
7787 | ac_status=$? |
---|
7788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7789 | (exit $ac_status); }; }; then |
---|
7790 | ac_cv_header_stdbool_h=yes |
---|
7791 | else |
---|
7792 | echo "$as_me: failed program was:" >&5 |
---|
7793 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7794 | |
---|
7795 | ac_cv_header_stdbool_h=no |
---|
7796 | fi |
---|
7797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7798 | fi |
---|
7799 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
7800 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
7801 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
7802 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
7803 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
7804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7805 | else |
---|
7806 | cat >conftest.$ac_ext <<_ACEOF |
---|
7807 | /* confdefs.h. */ |
---|
7808 | _ACEOF |
---|
7809 | cat confdefs.h >>conftest.$ac_ext |
---|
7810 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7811 | /* end confdefs.h. */ |
---|
7812 | $ac_includes_default |
---|
7813 | int |
---|
7814 | main () |
---|
7815 | { |
---|
7816 | if ((_Bool *) 0) |
---|
7817 | return 0; |
---|
7818 | if (sizeof (_Bool)) |
---|
7819 | return 0; |
---|
7820 | ; |
---|
7821 | return 0; |
---|
7822 | } |
---|
7823 | _ACEOF |
---|
7824 | rm -f conftest.$ac_objext |
---|
7825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7826 | (eval $ac_compile) 2>conftest.er1 |
---|
7827 | ac_status=$? |
---|
7828 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7829 | rm -f conftest.er1 |
---|
7830 | cat conftest.err >&5 |
---|
7831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7832 | (exit $ac_status); } && |
---|
7833 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7834 | || test ! -s conftest.err' |
---|
7835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7836 | (eval $ac_try) 2>&5 |
---|
7837 | ac_status=$? |
---|
7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7839 | (exit $ac_status); }; } && |
---|
7840 | { ac_try='test -s conftest.$ac_objext' |
---|
7841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7842 | (eval $ac_try) 2>&5 |
---|
7843 | ac_status=$? |
---|
7844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7845 | (exit $ac_status); }; }; then |
---|
7846 | ac_cv_type__Bool=yes |
---|
7847 | else |
---|
7848 | echo "$as_me: failed program was:" >&5 |
---|
7849 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7850 | |
---|
7851 | ac_cv_type__Bool=no |
---|
7852 | fi |
---|
7853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7854 | fi |
---|
7855 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
7856 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
7857 | if test $ac_cv_type__Bool = yes; then |
---|
7858 | |
---|
7859 | cat >>confdefs.h <<_ACEOF |
---|
7860 | #define HAVE__BOOL 1 |
---|
7861 | _ACEOF |
---|
7862 | |
---|
7863 | |
---|
7864 | fi |
---|
7865 | |
---|
7866 | if test $ac_cv_header_stdbool_h = yes; then |
---|
7867 | |
---|
7868 | cat >>confdefs.h <<\_ACEOF |
---|
7869 | #define HAVE_STDBOOL_H 1 |
---|
7870 | _ACEOF |
---|
7871 | |
---|
7872 | fi |
---|
7873 | |
---|
7874 | |
---|
7875 | # Checks for library functions. |
---|
7876 | |
---|
7877 | for ac_header in stdlib.h |
---|
7878 | do |
---|
7879 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7880 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7881 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7883 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7885 | fi |
---|
7886 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7887 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7888 | else |
---|
7889 | # Is the header compilable? |
---|
7890 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7892 | cat >conftest.$ac_ext <<_ACEOF |
---|
7893 | /* confdefs.h. */ |
---|
7894 | _ACEOF |
---|
7895 | cat confdefs.h >>conftest.$ac_ext |
---|
7896 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7897 | /* end confdefs.h. */ |
---|
7898 | $ac_includes_default |
---|
7899 | #include <$ac_header> |
---|
7900 | _ACEOF |
---|
7901 | rm -f conftest.$ac_objext |
---|
7902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7903 | (eval $ac_compile) 2>conftest.er1 |
---|
7904 | ac_status=$? |
---|
7905 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7906 | rm -f conftest.er1 |
---|
7907 | cat conftest.err >&5 |
---|
7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7909 | (exit $ac_status); } && |
---|
7910 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7911 | || test ! -s conftest.err' |
---|
7912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7913 | (eval $ac_try) 2>&5 |
---|
7914 | ac_status=$? |
---|
7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7916 | (exit $ac_status); }; } && |
---|
7917 | { ac_try='test -s conftest.$ac_objext' |
---|
7918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7919 | (eval $ac_try) 2>&5 |
---|
7920 | ac_status=$? |
---|
7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7922 | (exit $ac_status); }; }; then |
---|
7923 | ac_header_compiler=yes |
---|
7924 | else |
---|
7925 | echo "$as_me: failed program was:" >&5 |
---|
7926 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7927 | |
---|
7928 | ac_header_compiler=no |
---|
7929 | fi |
---|
7930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7931 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7932 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7933 | |
---|
7934 | # Is the header present? |
---|
7935 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7936 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7937 | cat >conftest.$ac_ext <<_ACEOF |
---|
7938 | /* confdefs.h. */ |
---|
7939 | _ACEOF |
---|
7940 | cat confdefs.h >>conftest.$ac_ext |
---|
7941 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7942 | /* end confdefs.h. */ |
---|
7943 | #include <$ac_header> |
---|
7944 | _ACEOF |
---|
7945 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7946 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7947 | ac_status=$? |
---|
7948 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7949 | rm -f conftest.er1 |
---|
7950 | cat conftest.err >&5 |
---|
7951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7952 | (exit $ac_status); } >/dev/null; then |
---|
7953 | if test -s conftest.err; then |
---|
7954 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7955 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7956 | else |
---|
7957 | ac_cpp_err= |
---|
7958 | fi |
---|
7959 | else |
---|
7960 | ac_cpp_err=yes |
---|
7961 | fi |
---|
7962 | if test -z "$ac_cpp_err"; then |
---|
7963 | ac_header_preproc=yes |
---|
7964 | else |
---|
7965 | echo "$as_me: failed program was:" >&5 |
---|
7966 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7967 | |
---|
7968 | ac_header_preproc=no |
---|
7969 | fi |
---|
7970 | rm -f conftest.err conftest.$ac_ext |
---|
7971 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7972 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7973 | |
---|
7974 | # So? What about this header? |
---|
7975 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7976 | yes:no: ) |
---|
7977 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7978 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7979 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7980 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7981 | ac_header_preproc=yes |
---|
7982 | ;; |
---|
7983 | no:yes:* ) |
---|
7984 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7985 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7986 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7987 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7988 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7989 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7990 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7991 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7992 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7993 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7994 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7995 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7996 | ( |
---|
7997 | cat <<\_ASBOX |
---|
7998 | ## ---------------------------------------------- ## |
---|
7999 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8000 | ## ---------------------------------------------- ## |
---|
8001 | _ASBOX |
---|
8002 | ) | |
---|
8003 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8004 | ;; |
---|
8005 | esac |
---|
8006 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8007 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8010 | else |
---|
8011 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8012 | fi |
---|
8013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8014 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8015 | |
---|
8016 | fi |
---|
8017 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8018 | cat >>confdefs.h <<_ACEOF |
---|
8019 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8020 | _ACEOF |
---|
8021 | |
---|
8022 | fi |
---|
8023 | |
---|
8024 | done |
---|
8025 | |
---|
8026 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
8027 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
8028 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
8029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8030 | else |
---|
8031 | if test "$cross_compiling" = yes; then |
---|
8032 | ac_cv_func_malloc_0_nonnull=no |
---|
8033 | else |
---|
8034 | cat >conftest.$ac_ext <<_ACEOF |
---|
8035 | /* confdefs.h. */ |
---|
8036 | _ACEOF |
---|
8037 | cat confdefs.h >>conftest.$ac_ext |
---|
8038 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8039 | /* end confdefs.h. */ |
---|
8040 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
8041 | # include <stdlib.h> |
---|
8042 | #else |
---|
8043 | char *malloc (); |
---|
8044 | #endif |
---|
8045 | |
---|
8046 | int |
---|
8047 | main () |
---|
8048 | { |
---|
8049 | exit (malloc (0) ? 0 : 1); |
---|
8050 | ; |
---|
8051 | return 0; |
---|
8052 | } |
---|
8053 | _ACEOF |
---|
8054 | rm -f conftest$ac_exeext |
---|
8055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8056 | (eval $ac_link) 2>&5 |
---|
8057 | ac_status=$? |
---|
8058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8059 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
8060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8061 | (eval $ac_try) 2>&5 |
---|
8062 | ac_status=$? |
---|
8063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8064 | (exit $ac_status); }; }; then |
---|
8065 | ac_cv_func_malloc_0_nonnull=yes |
---|
8066 | else |
---|
8067 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
8068 | echo "$as_me: failed program was:" >&5 |
---|
8069 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8070 | |
---|
8071 | ( exit $ac_status ) |
---|
8072 | ac_cv_func_malloc_0_nonnull=no |
---|
8073 | fi |
---|
8074 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
8075 | fi |
---|
8076 | fi |
---|
8077 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
8078 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
8079 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
8080 | |
---|
8081 | cat >>confdefs.h <<\_ACEOF |
---|
8082 | #define HAVE_MALLOC 1 |
---|
8083 | _ACEOF |
---|
8084 | |
---|
8085 | else |
---|
8086 | cat >>confdefs.h <<\_ACEOF |
---|
8087 | #define HAVE_MALLOC 0 |
---|
8088 | _ACEOF |
---|
8089 | |
---|
8090 | case $LIBOBJS in |
---|
8091 | "malloc.$ac_objext" | \ |
---|
8092 | *" malloc.$ac_objext" | \ |
---|
8093 | "malloc.$ac_objext "* | \ |
---|
8094 | *" malloc.$ac_objext "* ) ;; |
---|
8095 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
8096 | esac |
---|
8097 | |
---|
8098 | |
---|
8099 | cat >>confdefs.h <<\_ACEOF |
---|
8100 | #define malloc rpl_malloc |
---|
8101 | _ACEOF |
---|
8102 | |
---|
8103 | fi |
---|
8104 | |
---|
8105 | |
---|
8106 | |
---|
8107 | |
---|
8108 | |
---|
8109 | for ac_func in bzero sqrt |
---|
8110 | do |
---|
8111 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
8112 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
8113 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
8114 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
8115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8116 | else |
---|
8117 | cat >conftest.$ac_ext <<_ACEOF |
---|
8118 | /* confdefs.h. */ |
---|
8119 | _ACEOF |
---|
8120 | cat confdefs.h >>conftest.$ac_ext |
---|
8121 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8122 | /* end confdefs.h. */ |
---|
8123 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
8124 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
8125 | #define $ac_func innocuous_$ac_func |
---|
8126 | |
---|
8127 | /* System header to define __stub macros and hopefully few prototypes, |
---|
8128 | which can conflict with char $ac_func (); below. |
---|
8129 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
8130 | <limits.h> exists even on freestanding compilers. */ |
---|
8131 | |
---|
8132 | #ifdef __STDC__ |
---|
8133 | # include <limits.h> |
---|
8134 | #else |
---|
8135 | # include <assert.h> |
---|
8136 | #endif |
---|
8137 | |
---|
8138 | #undef $ac_func |
---|
8139 | |
---|
8140 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
8141 | #ifdef __cplusplus |
---|
8142 | extern "C" |
---|
8143 | { |
---|
8144 | #endif |
---|
8145 | /* We use char because int might match the return type of a gcc2 |
---|
8146 | builtin and then its argument prototype would still apply. */ |
---|
8147 | char $ac_func (); |
---|
8148 | /* The GNU C library defines this for functions which it implements |
---|
8149 | to always fail with ENOSYS. Some functions are actually named |
---|
8150 | something starting with __ and the normal name is an alias. */ |
---|
8151 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
8152 | choke me |
---|
8153 | #else |
---|
8154 | char (*f) () = $ac_func; |
---|
8155 | #endif |
---|
8156 | #ifdef __cplusplus |
---|
8157 | } |
---|
8158 | #endif |
---|
8159 | |
---|
8160 | int |
---|
8161 | main () |
---|
8162 | { |
---|
8163 | return f != $ac_func; |
---|
8164 | ; |
---|
8165 | return 0; |
---|
8166 | } |
---|
8167 | _ACEOF |
---|
8168 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8170 | (eval $ac_link) 2>conftest.er1 |
---|
8171 | ac_status=$? |
---|
8172 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8173 | rm -f conftest.er1 |
---|
8174 | cat conftest.err >&5 |
---|
8175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8176 | (exit $ac_status); } && |
---|
8177 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8178 | || test ! -s conftest.err' |
---|
8179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8180 | (eval $ac_try) 2>&5 |
---|
8181 | ac_status=$? |
---|
8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8183 | (exit $ac_status); }; } && |
---|
8184 | { ac_try='test -s conftest$ac_exeext' |
---|
8185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8186 | (eval $ac_try) 2>&5 |
---|
8187 | ac_status=$? |
---|
8188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8189 | (exit $ac_status); }; }; then |
---|
8190 | eval "$as_ac_var=yes" |
---|
8191 | else |
---|
8192 | echo "$as_me: failed program was:" >&5 |
---|
8193 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8194 | |
---|
8195 | eval "$as_ac_var=no" |
---|
8196 | fi |
---|
8197 | rm -f conftest.err conftest.$ac_objext \ |
---|
8198 | conftest$ac_exeext conftest.$ac_ext |
---|
8199 | fi |
---|
8200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
8201 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
8202 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
8203 | cat >>confdefs.h <<_ACEOF |
---|
8204 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
8205 | _ACEOF |
---|
8206 | |
---|
8207 | fi |
---|
8208 | done |
---|
8209 | |
---|
8210 | |
---|
8211 | ###################### |
---|
8212 | ## OUTPUT CONFIGURE ## |
---|
8213 | ###################### |
---|
8214 | 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" |
---|
8215 | |
---|
8216 | |
---|
8217 | cat >confcache <<\_ACEOF |
---|
8218 | # This file is a shell script that caches the results of configure |
---|
8219 | # tests run on this system so they can be shared between configure |
---|
8220 | # scripts and configure runs, see configure's option --config-cache. |
---|
8221 | # It is not useful on other systems. If it contains results you don't |
---|
8222 | # want to keep, you may remove or edit it. |
---|
8223 | # |
---|
8224 | # config.status only pays attention to the cache file if you give it |
---|
8225 | # the --recheck option to rerun configure. |
---|
8226 | # |
---|
8227 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
8228 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
8229 | # following values. |
---|
8230 | |
---|
8231 | _ACEOF |
---|
8232 | |
---|
8233 | # The following way of writing the cache mishandles newlines in values, |
---|
8234 | # but we know of no workaround that is simple, portable, and efficient. |
---|
8235 | # So, don't put newlines in cache variables' values. |
---|
8236 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
8237 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
8238 | { |
---|
8239 | (set) 2>&1 | |
---|
8240 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
8241 | *ac_space=\ *) |
---|
8242 | # `set' does not quote correctly, so add quotes (double-quote |
---|
8243 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
8244 | sed -n \ |
---|
8245 | "s/'/'\\\\''/g; |
---|
8246 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
8247 | ;; |
---|
8248 | *) |
---|
8249 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
8250 | sed -n \ |
---|
8251 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
8252 | ;; |
---|
8253 | esac; |
---|
8254 | } | |
---|
8255 | sed ' |
---|
8256 | t clear |
---|
8257 | : clear |
---|
8258 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
8259 | t end |
---|
8260 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
8261 | : end' >>confcache |
---|
8262 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
8263 | if test -w $cache_file; then |
---|
8264 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
8265 | cat confcache >$cache_file |
---|
8266 | else |
---|
8267 | echo "not updating unwritable cache $cache_file" |
---|
8268 | fi |
---|
8269 | fi |
---|
8270 | rm -f confcache |
---|
8271 | |
---|
8272 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
8273 | # Let make expand exec_prefix. |
---|
8274 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
8275 | |
---|
8276 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
8277 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
8278 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
8279 | # (actually we leave an empty line to preserve line numbers). |
---|
8280 | if test "x$srcdir" = x.; then |
---|
8281 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
8282 | s/:*\$(srcdir):*/:/; |
---|
8283 | s/:*\${srcdir}:*/:/; |
---|
8284 | s/:*@srcdir@:*/:/; |
---|
8285 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
8286 | s/:*$//; |
---|
8287 | s/^[^=]*=[ ]*$//; |
---|
8288 | }' |
---|
8289 | fi |
---|
8290 | |
---|
8291 | DEFS=-DHAVE_CONFIG_H |
---|
8292 | |
---|
8293 | ac_libobjs= |
---|
8294 | ac_ltlibobjs= |
---|
8295 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
8296 | # 1. Remove the extension, and $U if already installed. |
---|
8297 | ac_i=`echo "$ac_i" | |
---|
8298 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
8299 | # 2. Add them. |
---|
8300 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
8301 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
8302 | done |
---|
8303 | LIBOBJS=$ac_libobjs |
---|
8304 | |
---|
8305 | LTLIBOBJS=$ac_ltlibobjs |
---|
8306 | |
---|
8307 | |
---|
8308 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
8309 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
8310 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8311 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
8312 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8313 | { (exit 1); exit 1; }; } |
---|
8314 | fi |
---|
8315 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
8316 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
8317 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8318 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
8319 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8320 | { (exit 1); exit 1; }; } |
---|
8321 | fi |
---|
8322 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
8323 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
8324 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8325 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
8326 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8327 | { (exit 1); exit 1; }; } |
---|
8328 | fi |
---|
8329 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
8330 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
8331 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8332 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
8333 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8334 | { (exit 1); exit 1; }; } |
---|
8335 | fi |
---|
8336 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
8337 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
8338 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8339 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
8340 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8341 | { (exit 1); exit 1; }; } |
---|
8342 | fi |
---|
8343 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
8344 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
8345 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8346 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
8347 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8348 | { (exit 1); exit 1; }; } |
---|
8349 | fi |
---|
8350 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
8351 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
8352 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8353 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
8354 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8355 | { (exit 1); exit 1; }; } |
---|
8356 | fi |
---|
8357 | if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then |
---|
8358 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
8359 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8360 | echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
8361 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8362 | { (exit 1); exit 1; }; } |
---|
8363 | fi |
---|
8364 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
8365 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
8366 | Usually this means the macro was only invoked conditionally." >&5 |
---|
8367 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
8368 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
8369 | { (exit 1); exit 1; }; } |
---|
8370 | fi |
---|
8371 | |
---|
8372 | : ${CONFIG_STATUS=./config.status} |
---|
8373 | ac_clean_files_save=$ac_clean_files |
---|
8374 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
8375 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
8376 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
8377 | cat >$CONFIG_STATUS <<_ACEOF |
---|
8378 | #! $SHELL |
---|
8379 | # Generated by $as_me. |
---|
8380 | # Run this file to recreate the current configuration. |
---|
8381 | # Compiler output produced by configure, useful for debugging |
---|
8382 | # configure, is in config.log if it exists. |
---|
8383 | |
---|
8384 | debug=false |
---|
8385 | ac_cs_recheck=false |
---|
8386 | ac_cs_silent=false |
---|
8387 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
8388 | _ACEOF |
---|
8389 | |
---|
8390 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8391 | ## --------------------- ## |
---|
8392 | ## M4sh Initialization. ## |
---|
8393 | ## --------------------- ## |
---|
8394 | |
---|
8395 | # Be Bourne compatible |
---|
8396 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
8397 | emulate sh |
---|
8398 | NULLCMD=: |
---|
8399 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
8400 | # is contrary to our usage. Disable this feature. |
---|
8401 | alias -g '${1+"$@"}'='"$@"' |
---|
8402 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
8403 | set -o posix |
---|
8404 | fi |
---|
8405 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
8406 | |
---|
8407 | # Support unset when possible. |
---|
8408 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
8409 | as_unset=unset |
---|
8410 | else |
---|
8411 | as_unset=false |
---|
8412 | fi |
---|
8413 | |
---|
8414 | |
---|
8415 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
8416 | $as_unset ENV MAIL MAILPATH |
---|
8417 | PS1='$ ' |
---|
8418 | PS2='> ' |
---|
8419 | PS4='+ ' |
---|
8420 | |
---|
8421 | # NLS nuisances. |
---|
8422 | for as_var in \ |
---|
8423 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
8424 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
8425 | LC_TELEPHONE LC_TIME |
---|
8426 | do |
---|
8427 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
8428 | eval $as_var=C; export $as_var |
---|
8429 | else |
---|
8430 | $as_unset $as_var |
---|
8431 | fi |
---|
8432 | done |
---|
8433 | |
---|
8434 | # Required to use basename. |
---|
8435 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
8436 | as_expr=expr |
---|
8437 | else |
---|
8438 | as_expr=false |
---|
8439 | fi |
---|
8440 | |
---|
8441 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
8442 | as_basename=basename |
---|
8443 | else |
---|
8444 | as_basename=false |
---|
8445 | fi |
---|
8446 | |
---|
8447 | |
---|
8448 | # Name of the executable. |
---|
8449 | as_me=`$as_basename "$0" || |
---|
8450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
8451 | X"$0" : 'X\(//\)$' \| \ |
---|
8452 | X"$0" : 'X\(/\)$' \| \ |
---|
8453 | . : '\(.\)' 2>/dev/null || |
---|
8454 | echo X/"$0" | |
---|
8455 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
8456 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
8457 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
8458 | s/.*/./; q'` |
---|
8459 | |
---|
8460 | |
---|
8461 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
8462 | # Avoid depending upon Character Ranges. |
---|
8463 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
8464 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
8465 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
8466 | as_cr_digits='0123456789' |
---|
8467 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
8468 | |
---|
8469 | # The user is always right. |
---|
8470 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
8471 | echo "#! /bin/sh" >conf$$.sh |
---|
8472 | echo "exit 0" >>conf$$.sh |
---|
8473 | chmod +x conf$$.sh |
---|
8474 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
8475 | PATH_SEPARATOR=';' |
---|
8476 | else |
---|
8477 | PATH_SEPARATOR=: |
---|
8478 | fi |
---|
8479 | rm -f conf$$.sh |
---|
8480 | fi |
---|
8481 | |
---|
8482 | |
---|
8483 | as_lineno_1=$LINENO |
---|
8484 | as_lineno_2=$LINENO |
---|
8485 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
8486 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
8487 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
8488 | # Find who we are. Look in the path if we contain no path at all |
---|
8489 | # relative or not. |
---|
8490 | case $0 in |
---|
8491 | *[\\/]* ) as_myself=$0 ;; |
---|
8492 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8493 | for as_dir in $PATH |
---|
8494 | do |
---|
8495 | IFS=$as_save_IFS |
---|
8496 | test -z "$as_dir" && as_dir=. |
---|
8497 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
8498 | done |
---|
8499 | |
---|
8500 | ;; |
---|
8501 | esac |
---|
8502 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
8503 | # in which case we are not to be found in the path. |
---|
8504 | if test "x$as_myself" = x; then |
---|
8505 | as_myself=$0 |
---|
8506 | fi |
---|
8507 | if test ! -f "$as_myself"; then |
---|
8508 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
8509 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
8510 | { (exit 1); exit 1; }; } |
---|
8511 | fi |
---|
8512 | case $CONFIG_SHELL in |
---|
8513 | '') |
---|
8514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8515 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
8516 | do |
---|
8517 | IFS=$as_save_IFS |
---|
8518 | test -z "$as_dir" && as_dir=. |
---|
8519 | for as_base in sh bash ksh sh5; do |
---|
8520 | case $as_dir in |
---|
8521 | /*) |
---|
8522 | if ("$as_dir/$as_base" -c ' |
---|
8523 | as_lineno_1=$LINENO |
---|
8524 | as_lineno_2=$LINENO |
---|
8525 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
8526 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
8527 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
8528 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
8529 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
8530 | CONFIG_SHELL=$as_dir/$as_base |
---|
8531 | export CONFIG_SHELL |
---|
8532 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
8533 | fi;; |
---|
8534 | esac |
---|
8535 | done |
---|
8536 | done |
---|
8537 | ;; |
---|
8538 | esac |
---|
8539 | |
---|
8540 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
8541 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
8542 | # line-number line before each line; the second 'sed' does the real |
---|
8543 | # work. The second script uses 'N' to pair each line-number line |
---|
8544 | # with the numbered line, and appends trailing '-' during |
---|
8545 | # substitution so that $LINENO is not a special case at line end. |
---|
8546 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
8547 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
8548 | sed '=' <$as_myself | |
---|
8549 | sed ' |
---|
8550 | N |
---|
8551 | s,$,-, |
---|
8552 | : loop |
---|
8553 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
8554 | t loop |
---|
8555 | s,-$,, |
---|
8556 | s,^['$as_cr_digits']*\n,, |
---|
8557 | ' >$as_me.lineno && |
---|
8558 | chmod +x $as_me.lineno || |
---|
8559 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
8560 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
8561 | { (exit 1); exit 1; }; } |
---|
8562 | |
---|
8563 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
8564 | # (the dirname of $[0] is not the place where we might find the |
---|
8565 | # original and so on. Autoconf is especially sensible to this). |
---|
8566 | . ./$as_me.lineno |
---|
8567 | # Exit status is that of the last command. |
---|
8568 | exit |
---|
8569 | } |
---|
8570 | |
---|
8571 | |
---|
8572 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
8573 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
8574 | ' ECHO_T=' ' ;; |
---|
8575 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
8576 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
8577 | esac |
---|
8578 | |
---|
8579 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
8580 | as_expr=expr |
---|
8581 | else |
---|
8582 | as_expr=false |
---|
8583 | fi |
---|
8584 | |
---|
8585 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8586 | echo >conf$$.file |
---|
8587 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
8588 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
8589 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
8590 | if test -f conf$$.exe; then |
---|
8591 | # Don't use ln at all; we don't have any links |
---|
8592 | as_ln_s='cp -p' |
---|
8593 | else |
---|
8594 | as_ln_s='ln -s' |
---|
8595 | fi |
---|
8596 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
8597 | as_ln_s=ln |
---|
8598 | else |
---|
8599 | as_ln_s='cp -p' |
---|
8600 | fi |
---|
8601 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8602 | |
---|
8603 | if mkdir -p . 2>/dev/null; then |
---|
8604 | as_mkdir_p=: |
---|
8605 | else |
---|
8606 | test -d ./-p && rmdir ./-p |
---|
8607 | as_mkdir_p=false |
---|
8608 | fi |
---|
8609 | |
---|
8610 | as_executable_p="test -f" |
---|
8611 | |
---|
8612 | # Sed expression to map a string onto a valid CPP name. |
---|
8613 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
8614 | |
---|
8615 | # Sed expression to map a string onto a valid variable name. |
---|
8616 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
8617 | |
---|
8618 | |
---|
8619 | # IFS |
---|
8620 | # We need space, tab and new line, in precisely that order. |
---|
8621 | as_nl=' |
---|
8622 | ' |
---|
8623 | IFS=" $as_nl" |
---|
8624 | |
---|
8625 | # CDPATH. |
---|
8626 | $as_unset CDPATH |
---|
8627 | |
---|
8628 | exec 6>&1 |
---|
8629 | |
---|
8630 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
8631 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
8632 | # values after options handling. Logging --version etc. is OK. |
---|
8633 | exec 5>>config.log |
---|
8634 | { |
---|
8635 | echo |
---|
8636 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
8637 | ## Running $as_me. ## |
---|
8638 | _ASBOX |
---|
8639 | } >&5 |
---|
8640 | cat >&5 <<_CSEOF |
---|
8641 | |
---|
8642 | This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
8643 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
8644 | |
---|
8645 | CONFIG_FILES = $CONFIG_FILES |
---|
8646 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
8647 | CONFIG_LINKS = $CONFIG_LINKS |
---|
8648 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
8649 | $ $0 $@ |
---|
8650 | |
---|
8651 | _CSEOF |
---|
8652 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
8653 | echo >&5 |
---|
8654 | _ACEOF |
---|
8655 | |
---|
8656 | # Files that config.status was made for. |
---|
8657 | if test -n "$ac_config_files"; then |
---|
8658 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
8659 | fi |
---|
8660 | |
---|
8661 | if test -n "$ac_config_headers"; then |
---|
8662 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
8663 | fi |
---|
8664 | |
---|
8665 | if test -n "$ac_config_links"; then |
---|
8666 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
8667 | fi |
---|
8668 | |
---|
8669 | if test -n "$ac_config_commands"; then |
---|
8670 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
8671 | fi |
---|
8672 | |
---|
8673 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8674 | |
---|
8675 | ac_cs_usage="\ |
---|
8676 | \`$as_me' instantiates files from templates according to the |
---|
8677 | current configuration. |
---|
8678 | |
---|
8679 | Usage: $0 [OPTIONS] [FILE]... |
---|
8680 | |
---|
8681 | -h, --help print this help, then exit |
---|
8682 | -V, --version print version number, then exit |
---|
8683 | -q, --quiet do not print progress messages |
---|
8684 | -d, --debug don't remove temporary files |
---|
8685 | --recheck update $as_me by reconfiguring in the same conditions |
---|
8686 | --file=FILE[:TEMPLATE] |
---|
8687 | instantiate the configuration file FILE |
---|
8688 | --header=FILE[:TEMPLATE] |
---|
8689 | instantiate the configuration header FILE |
---|
8690 | |
---|
8691 | Configuration files: |
---|
8692 | $config_files |
---|
8693 | |
---|
8694 | Configuration headers: |
---|
8695 | $config_headers |
---|
8696 | |
---|
8697 | Configuration commands: |
---|
8698 | $config_commands |
---|
8699 | |
---|
8700 | Report bugs to <bug-autoconf@gnu.org>." |
---|
8701 | _ACEOF |
---|
8702 | |
---|
8703 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8704 | ac_cs_version="\\ |
---|
8705 | orxonox config.status 0.2.1-pre-alpha |
---|
8706 | configured by $0, generated by GNU Autoconf 2.59, |
---|
8707 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
8708 | |
---|
8709 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8710 | This config.status script is free software; the Free Software Foundation |
---|
8711 | gives unlimited permission to copy, distribute and modify it." |
---|
8712 | srcdir=$srcdir |
---|
8713 | INSTALL="$INSTALL" |
---|
8714 | _ACEOF |
---|
8715 | |
---|
8716 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8717 | # If no file are specified by the user, then we need to provide default |
---|
8718 | # value. By we need to know if files were specified by the user. |
---|
8719 | ac_need_defaults=: |
---|
8720 | while test $# != 0 |
---|
8721 | do |
---|
8722 | case $1 in |
---|
8723 | --*=*) |
---|
8724 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
8725 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
8726 | ac_shift=: |
---|
8727 | ;; |
---|
8728 | -*) |
---|
8729 | ac_option=$1 |
---|
8730 | ac_optarg=$2 |
---|
8731 | ac_shift=shift |
---|
8732 | ;; |
---|
8733 | *) # This is not an option, so the user has probably given explicit |
---|
8734 | # arguments. |
---|
8735 | ac_option=$1 |
---|
8736 | ac_need_defaults=false;; |
---|
8737 | esac |
---|
8738 | |
---|
8739 | case $ac_option in |
---|
8740 | # Handling of the options. |
---|
8741 | _ACEOF |
---|
8742 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8743 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8744 | ac_cs_recheck=: ;; |
---|
8745 | --version | --vers* | -V ) |
---|
8746 | echo "$ac_cs_version"; exit 0 ;; |
---|
8747 | --he | --h) |
---|
8748 | # Conflict between --help and --header |
---|
8749 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
8750 | Try \`$0 --help' for more information." >&5 |
---|
8751 | echo "$as_me: error: ambiguous option: $1 |
---|
8752 | Try \`$0 --help' for more information." >&2;} |
---|
8753 | { (exit 1); exit 1; }; };; |
---|
8754 | --help | --hel | -h ) |
---|
8755 | echo "$ac_cs_usage"; exit 0 ;; |
---|
8756 | --debug | --d* | -d ) |
---|
8757 | debug=: ;; |
---|
8758 | --file | --fil | --fi | --f ) |
---|
8759 | $ac_shift |
---|
8760 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
8761 | ac_need_defaults=false;; |
---|
8762 | --header | --heade | --head | --hea ) |
---|
8763 | $ac_shift |
---|
8764 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
8765 | ac_need_defaults=false;; |
---|
8766 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
8767 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
8768 | ac_cs_silent=: ;; |
---|
8769 | |
---|
8770 | # This is an error. |
---|
8771 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
8772 | Try \`$0 --help' for more information." >&5 |
---|
8773 | echo "$as_me: error: unrecognized option: $1 |
---|
8774 | Try \`$0 --help' for more information." >&2;} |
---|
8775 | { (exit 1); exit 1; }; } ;; |
---|
8776 | |
---|
8777 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
8778 | |
---|
8779 | esac |
---|
8780 | shift |
---|
8781 | done |
---|
8782 | |
---|
8783 | ac_configure_extra_args= |
---|
8784 | |
---|
8785 | if $ac_cs_silent; then |
---|
8786 | exec 6>/dev/null |
---|
8787 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
8788 | fi |
---|
8789 | |
---|
8790 | _ACEOF |
---|
8791 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8792 | if \$ac_cs_recheck; then |
---|
8793 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
8794 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
8795 | fi |
---|
8796 | |
---|
8797 | _ACEOF |
---|
8798 | |
---|
8799 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8800 | # |
---|
8801 | # INIT-COMMANDS section. |
---|
8802 | # |
---|
8803 | |
---|
8804 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
8805 | |
---|
8806 | _ACEOF |
---|
8807 | |
---|
8808 | |
---|
8809 | |
---|
8810 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8811 | for ac_config_target in $ac_config_targets |
---|
8812 | do |
---|
8813 | case "$ac_config_target" in |
---|
8814 | # Handling of arguments. |
---|
8815 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
8816 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
8817 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
8818 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
8819 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
8820 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
8821 | "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;; |
---|
8822 | "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;; |
---|
8823 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
8824 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
8825 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
8826 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
8827 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
8828 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
8829 | { (exit 1); exit 1; }; };; |
---|
8830 | esac |
---|
8831 | done |
---|
8832 | |
---|
8833 | # If the user did not use the arguments to specify the items to instantiate, |
---|
8834 | # then the envvar interface is used. Set only those that are not. |
---|
8835 | # We use the long form for the default assignment because of an extremely |
---|
8836 | # bizarre bug on SunOS 4.1.3. |
---|
8837 | if $ac_need_defaults; then |
---|
8838 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
8839 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
8840 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
8841 | fi |
---|
8842 | |
---|
8843 | # Have a temporary directory for convenience. Make it in the build tree |
---|
8844 | # simply because there is no reason to put it here, and in addition, |
---|
8845 | # creating and moving files from /tmp can sometimes cause problems. |
---|
8846 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
8847 | $debug || |
---|
8848 | { |
---|
8849 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
8850 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
8851 | } |
---|
8852 | |
---|
8853 | # Create a (secure) tmp directory for tmp files. |
---|
8854 | |
---|
8855 | { |
---|
8856 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
8857 | test -n "$tmp" && test -d "$tmp" |
---|
8858 | } || |
---|
8859 | { |
---|
8860 | tmp=./confstat$$-$RANDOM |
---|
8861 | (umask 077 && mkdir $tmp) |
---|
8862 | } || |
---|
8863 | { |
---|
8864 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
8865 | { (exit 1); exit 1; } |
---|
8866 | } |
---|
8867 | |
---|
8868 | _ACEOF |
---|
8869 | |
---|
8870 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8871 | |
---|
8872 | # |
---|
8873 | # CONFIG_FILES section. |
---|
8874 | # |
---|
8875 | |
---|
8876 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
8877 | # This happens for instance when ./config.status config.h |
---|
8878 | if test -n "\$CONFIG_FILES"; then |
---|
8879 | # Protect against being on the right side of a sed subst in config.status. |
---|
8880 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
8881 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
8882 | s,@SHELL@,$SHELL,;t t |
---|
8883 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
8884 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
8885 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
8886 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
8887 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
8888 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
8889 | s,@exec_prefix@,$exec_prefix,;t t |
---|
8890 | s,@prefix@,$prefix,;t t |
---|
8891 | s,@program_transform_name@,$program_transform_name,;t t |
---|
8892 | s,@bindir@,$bindir,;t t |
---|
8893 | s,@sbindir@,$sbindir,;t t |
---|
8894 | s,@libexecdir@,$libexecdir,;t t |
---|
8895 | s,@datadir@,$datadir,;t t |
---|
8896 | s,@sysconfdir@,$sysconfdir,;t t |
---|
8897 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
8898 | s,@localstatedir@,$localstatedir,;t t |
---|
8899 | s,@libdir@,$libdir,;t t |
---|
8900 | s,@includedir@,$includedir,;t t |
---|
8901 | s,@oldincludedir@,$oldincludedir,;t t |
---|
8902 | s,@infodir@,$infodir,;t t |
---|
8903 | s,@mandir@,$mandir,;t t |
---|
8904 | s,@build_alias@,$build_alias,;t t |
---|
8905 | s,@host_alias@,$host_alias,;t t |
---|
8906 | s,@target_alias@,$target_alias,;t t |
---|
8907 | s,@DEFS@,$DEFS,;t t |
---|
8908 | s,@ECHO_C@,$ECHO_C,;t t |
---|
8909 | s,@ECHO_N@,$ECHO_N,;t t |
---|
8910 | s,@ECHO_T@,$ECHO_T,;t t |
---|
8911 | s,@LIBS@,$LIBS,;t t |
---|
8912 | s,@build@,$build,;t t |
---|
8913 | s,@build_cpu@,$build_cpu,;t t |
---|
8914 | s,@build_vendor@,$build_vendor,;t t |
---|
8915 | s,@build_os@,$build_os,;t t |
---|
8916 | s,@host@,$host,;t t |
---|
8917 | s,@host_cpu@,$host_cpu,;t t |
---|
8918 | s,@host_vendor@,$host_vendor,;t t |
---|
8919 | s,@host_os@,$host_os,;t t |
---|
8920 | s,@target@,$target,;t t |
---|
8921 | s,@target_cpu@,$target_cpu,;t t |
---|
8922 | s,@target_vendor@,$target_vendor,;t t |
---|
8923 | s,@target_os@,$target_os,;t t |
---|
8924 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
8925 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
8926 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
8927 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
8928 | s,@PACKAGE@,$PACKAGE,;t t |
---|
8929 | s,@VERSION@,$VERSION,;t t |
---|
8930 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
8931 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
8932 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
8933 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
8934 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
8935 | s,@AMTAR@,$AMTAR,;t t |
---|
8936 | s,@install_sh@,$install_sh,;t t |
---|
8937 | s,@STRIP@,$STRIP,;t t |
---|
8938 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
8939 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
8940 | s,@mkdir_p@,$mkdir_p,;t t |
---|
8941 | s,@AWK@,$AWK,;t t |
---|
8942 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
8943 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
8944 | s,@CXX@,$CXX,;t t |
---|
8945 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
8946 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
8947 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
8948 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
8949 | s,@EXEEXT@,$EXEEXT,;t t |
---|
8950 | s,@OBJEXT@,$OBJEXT,;t t |
---|
8951 | s,@DEPDIR@,$DEPDIR,;t t |
---|
8952 | s,@am__include@,$am__include,;t t |
---|
8953 | s,@am__quote@,$am__quote,;t t |
---|
8954 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
8955 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
8956 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
8957 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
8958 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
8959 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
8960 | s,@CC@,$CC,;t t |
---|
8961 | s,@CFLAGS@,$CFLAGS,;t t |
---|
8962 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
8963 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
8964 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
8965 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
8966 | s,@CPP@,$CPP,;t t |
---|
8967 | s,@EGREP@,$EGREP,;t t |
---|
8968 | s,@DEBUG@,$DEBUG,;t t |
---|
8969 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
8970 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
8971 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
8972 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
8973 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
8974 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
8975 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
8976 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
8977 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
8978 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
8979 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
8980 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
8981 | s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t |
---|
8982 | s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t |
---|
8983 | s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t |
---|
8984 | s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t |
---|
8985 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
8986 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
8987 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
8988 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
8989 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
8990 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
8991 | CEOF |
---|
8992 | |
---|
8993 | _ACEOF |
---|
8994 | |
---|
8995 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8996 | # Split the substitutions into bite-sized pieces for seds with |
---|
8997 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
8998 | ac_max_sed_lines=48 |
---|
8999 | ac_sed_frag=1 # Number of current file. |
---|
9000 | ac_beg=1 # First line for current file. |
---|
9001 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
9002 | ac_more_lines=: |
---|
9003 | ac_sed_cmds= |
---|
9004 | while $ac_more_lines; do |
---|
9005 | if test $ac_beg -gt 1; then |
---|
9006 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
9007 | else |
---|
9008 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
9009 | fi |
---|
9010 | if test ! -s $tmp/subs.frag; then |
---|
9011 | ac_more_lines=false |
---|
9012 | else |
---|
9013 | # The purpose of the label and of the branching condition is to |
---|
9014 | # speed up the sed processing (if there are no `@' at all, there |
---|
9015 | # is no need to browse any of the substitutions). |
---|
9016 | # These are the two extra sed commands mentioned above. |
---|
9017 | (echo ':t |
---|
9018 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
9019 | if test -z "$ac_sed_cmds"; then |
---|
9020 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
9021 | else |
---|
9022 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
9023 | fi |
---|
9024 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
9025 | ac_beg=$ac_end |
---|
9026 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
9027 | fi |
---|
9028 | done |
---|
9029 | if test -z "$ac_sed_cmds"; then |
---|
9030 | ac_sed_cmds=cat |
---|
9031 | fi |
---|
9032 | fi # test -n "$CONFIG_FILES" |
---|
9033 | |
---|
9034 | _ACEOF |
---|
9035 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9036 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
9037 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
9038 | case $ac_file in |
---|
9039 | - | *:- | *:-:* ) # input from stdin |
---|
9040 | cat >$tmp/stdin |
---|
9041 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
9042 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
9043 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
9044 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
9045 | * ) ac_file_in=$ac_file.in ;; |
---|
9046 | esac |
---|
9047 | |
---|
9048 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
9049 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
9050 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9051 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
9052 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
9053 | X"$ac_file" : 'X\(/\)' \| \ |
---|
9054 | . : '\(.\)' 2>/dev/null || |
---|
9055 | echo X"$ac_file" | |
---|
9056 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9057 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9058 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9059 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9060 | s/.*/./; q'` |
---|
9061 | { if $as_mkdir_p; then |
---|
9062 | mkdir -p "$ac_dir" |
---|
9063 | else |
---|
9064 | as_dir="$ac_dir" |
---|
9065 | as_dirs= |
---|
9066 | while test ! -d "$as_dir"; do |
---|
9067 | as_dirs="$as_dir $as_dirs" |
---|
9068 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9069 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9070 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9071 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9072 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9073 | . : '\(.\)' 2>/dev/null || |
---|
9074 | echo X"$as_dir" | |
---|
9075 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9076 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9077 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9078 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9079 | s/.*/./; q'` |
---|
9080 | done |
---|
9081 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9082 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
9083 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
9084 | { (exit 1); exit 1; }; }; } |
---|
9085 | |
---|
9086 | ac_builddir=. |
---|
9087 | |
---|
9088 | if test "$ac_dir" != .; then |
---|
9089 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
9090 | # A "../" for each directory in $ac_dir_suffix. |
---|
9091 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
9092 | else |
---|
9093 | ac_dir_suffix= ac_top_builddir= |
---|
9094 | fi |
---|
9095 | |
---|
9096 | case $srcdir in |
---|
9097 | .) # No --srcdir option. We are building in place. |
---|
9098 | ac_srcdir=. |
---|
9099 | if test -z "$ac_top_builddir"; then |
---|
9100 | ac_top_srcdir=. |
---|
9101 | else |
---|
9102 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
9103 | fi ;; |
---|
9104 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
9105 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
9106 | ac_top_srcdir=$srcdir ;; |
---|
9107 | *) # Relative path. |
---|
9108 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
9109 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
9110 | esac |
---|
9111 | |
---|
9112 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
9113 | # the directories may not exist. |
---|
9114 | case `pwd` in |
---|
9115 | .) ac_abs_builddir="$ac_dir";; |
---|
9116 | *) |
---|
9117 | case "$ac_dir" in |
---|
9118 | .) ac_abs_builddir=`pwd`;; |
---|
9119 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
9120 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
9121 | esac;; |
---|
9122 | esac |
---|
9123 | case $ac_abs_builddir in |
---|
9124 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9125 | *) |
---|
9126 | case ${ac_top_builddir}. in |
---|
9127 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
9128 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9129 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
9130 | esac;; |
---|
9131 | esac |
---|
9132 | case $ac_abs_builddir in |
---|
9133 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
9134 | *) |
---|
9135 | case $ac_srcdir in |
---|
9136 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
9137 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
9138 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
9139 | esac;; |
---|
9140 | esac |
---|
9141 | case $ac_abs_builddir in |
---|
9142 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9143 | *) |
---|
9144 | case $ac_top_srcdir in |
---|
9145 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
9146 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9147 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
9148 | esac;; |
---|
9149 | esac |
---|
9150 | |
---|
9151 | |
---|
9152 | case $INSTALL in |
---|
9153 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
9154 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
9155 | esac |
---|
9156 | |
---|
9157 | if test x"$ac_file" != x-; then |
---|
9158 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
9159 | echo "$as_me: creating $ac_file" >&6;} |
---|
9160 | rm -f "$ac_file" |
---|
9161 | fi |
---|
9162 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
9163 | # use $as_me), people would be surprised to read: |
---|
9164 | # /* config.h. Generated by config.status. */ |
---|
9165 | if test x"$ac_file" = x-; then |
---|
9166 | configure_input= |
---|
9167 | else |
---|
9168 | configure_input="$ac_file. " |
---|
9169 | fi |
---|
9170 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
9171 | sed 's,.*/,,'` by configure." |
---|
9172 | |
---|
9173 | # First look for the input files in the build tree, otherwise in the |
---|
9174 | # src tree. |
---|
9175 | ac_file_inputs=`IFS=: |
---|
9176 | for f in $ac_file_in; do |
---|
9177 | case $f in |
---|
9178 | -) echo $tmp/stdin ;; |
---|
9179 | [\\/$]*) |
---|
9180 | # Absolute (can't be DOS-style, as IFS=:) |
---|
9181 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
9182 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
9183 | { (exit 1); exit 1; }; } |
---|
9184 | echo "$f";; |
---|
9185 | *) # Relative |
---|
9186 | if test -f "$f"; then |
---|
9187 | # Build tree |
---|
9188 | echo "$f" |
---|
9189 | elif test -f "$srcdir/$f"; then |
---|
9190 | # Source tree |
---|
9191 | echo "$srcdir/$f" |
---|
9192 | else |
---|
9193 | # /dev/null tree |
---|
9194 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
9195 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
9196 | { (exit 1); exit 1; }; } |
---|
9197 | fi;; |
---|
9198 | esac |
---|
9199 | done` || { (exit 1); exit 1; } |
---|
9200 | _ACEOF |
---|
9201 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
9202 | sed "$ac_vpsub |
---|
9203 | $extrasub |
---|
9204 | _ACEOF |
---|
9205 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9206 | :t |
---|
9207 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
9208 | s,@configure_input@,$configure_input,;t t |
---|
9209 | s,@srcdir@,$ac_srcdir,;t t |
---|
9210 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
9211 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
9212 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
9213 | s,@builddir@,$ac_builddir,;t t |
---|
9214 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
9215 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
9216 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
9217 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
9218 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
9219 | rm -f $tmp/stdin |
---|
9220 | if test x"$ac_file" != x-; then |
---|
9221 | mv $tmp/out $ac_file |
---|
9222 | else |
---|
9223 | cat $tmp/out |
---|
9224 | rm -f $tmp/out |
---|
9225 | fi |
---|
9226 | |
---|
9227 | done |
---|
9228 | _ACEOF |
---|
9229 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9230 | |
---|
9231 | # |
---|
9232 | # CONFIG_HEADER section. |
---|
9233 | # |
---|
9234 | |
---|
9235 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
9236 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
9237 | # |
---|
9238 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
9239 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
9240 | ac_dB='[ ].*$,\1#\2' |
---|
9241 | ac_dC=' ' |
---|
9242 | ac_dD=',;t' |
---|
9243 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
9244 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
9245 | ac_uB='$,\1#\2define\3' |
---|
9246 | ac_uC=' ' |
---|
9247 | ac_uD=',;t' |
---|
9248 | |
---|
9249 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
9250 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
9251 | case $ac_file in |
---|
9252 | - | *:- | *:-:* ) # input from stdin |
---|
9253 | cat >$tmp/stdin |
---|
9254 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
9255 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
9256 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
9257 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
9258 | * ) ac_file_in=$ac_file.in ;; |
---|
9259 | esac |
---|
9260 | |
---|
9261 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
9262 | echo "$as_me: creating $ac_file" >&6;} |
---|
9263 | |
---|
9264 | # First look for the input files in the build tree, otherwise in the |
---|
9265 | # src tree. |
---|
9266 | ac_file_inputs=`IFS=: |
---|
9267 | for f in $ac_file_in; do |
---|
9268 | case $f in |
---|
9269 | -) echo $tmp/stdin ;; |
---|
9270 | [\\/$]*) |
---|
9271 | # Absolute (can't be DOS-style, as IFS=:) |
---|
9272 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
9273 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
9274 | { (exit 1); exit 1; }; } |
---|
9275 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
9276 | echo "$f";; |
---|
9277 | *) # Relative |
---|
9278 | if test -f "$f"; then |
---|
9279 | # Build tree |
---|
9280 | echo "$f" |
---|
9281 | elif test -f "$srcdir/$f"; then |
---|
9282 | # Source tree |
---|
9283 | echo "$srcdir/$f" |
---|
9284 | else |
---|
9285 | # /dev/null tree |
---|
9286 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
9287 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
9288 | { (exit 1); exit 1; }; } |
---|
9289 | fi;; |
---|
9290 | esac |
---|
9291 | done` || { (exit 1); exit 1; } |
---|
9292 | # Remove the trailing spaces. |
---|
9293 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
9294 | |
---|
9295 | _ACEOF |
---|
9296 | |
---|
9297 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
9298 | # `conftest.undefs', that substitutes the proper values into |
---|
9299 | # config.h.in to produce config.h. The first handles `#define' |
---|
9300 | # templates, and the second `#undef' templates. |
---|
9301 | # And first: Protect against being on the right side of a sed subst in |
---|
9302 | # config.status. Protect against being in an unquoted here document |
---|
9303 | # in config.status. |
---|
9304 | rm -f conftest.defines conftest.undefs |
---|
9305 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
9306 | # Putting comments in sed scripts is not portable. |
---|
9307 | # |
---|
9308 | # `end' is used to avoid that the second main sed command (meant for |
---|
9309 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
9310 | # See the Autoconf documentation for `clear'. |
---|
9311 | cat >confdef2sed.sed <<\_ACEOF |
---|
9312 | s/[\\&,]/\\&/g |
---|
9313 | s,[\\$`],\\&,g |
---|
9314 | t clear |
---|
9315 | : clear |
---|
9316 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
9317 | t end |
---|
9318 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
9319 | : end |
---|
9320 | _ACEOF |
---|
9321 | # If some macros were called several times there might be several times |
---|
9322 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
9323 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
9324 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
9325 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
9326 | rm -f confdef2sed.sed |
---|
9327 | |
---|
9328 | # This sed command replaces #undef with comments. This is necessary, for |
---|
9329 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
9330 | # on some systems where configure will not decide to define it. |
---|
9331 | cat >>conftest.undefs <<\_ACEOF |
---|
9332 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
9333 | _ACEOF |
---|
9334 | |
---|
9335 | # Break up conftest.defines because some shells have a limit on the size |
---|
9336 | # of here documents, and old seds have small limits too (100 cmds). |
---|
9337 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
9338 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
9339 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
9340 | echo ' :' >>$CONFIG_STATUS |
---|
9341 | rm -f conftest.tail |
---|
9342 | while grep . conftest.defines >/dev/null |
---|
9343 | do |
---|
9344 | # Write a limited-size here document to $tmp/defines.sed. |
---|
9345 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
9346 | # Speed up: don't consider the non `#define' lines. |
---|
9347 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
9348 | # Work around the forget-to-reset-the-flag bug. |
---|
9349 | echo 't clr' >>$CONFIG_STATUS |
---|
9350 | echo ': clr' >>$CONFIG_STATUS |
---|
9351 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
9352 | echo 'CEOF |
---|
9353 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
9354 | rm -f $tmp/in |
---|
9355 | mv $tmp/out $tmp/in |
---|
9356 | ' >>$CONFIG_STATUS |
---|
9357 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
9358 | rm -f conftest.defines |
---|
9359 | mv conftest.tail conftest.defines |
---|
9360 | done |
---|
9361 | rm -f conftest.defines |
---|
9362 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
9363 | echo >>$CONFIG_STATUS |
---|
9364 | |
---|
9365 | # Break up conftest.undefs because some shells have a limit on the size |
---|
9366 | # of here documents, and old seds have small limits too (100 cmds). |
---|
9367 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
9368 | rm -f conftest.tail |
---|
9369 | while grep . conftest.undefs >/dev/null |
---|
9370 | do |
---|
9371 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
9372 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
9373 | # Speed up: don't consider the non `#undef' |
---|
9374 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
9375 | # Work around the forget-to-reset-the-flag bug. |
---|
9376 | echo 't clr' >>$CONFIG_STATUS |
---|
9377 | echo ': clr' >>$CONFIG_STATUS |
---|
9378 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
9379 | echo 'CEOF |
---|
9380 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
9381 | rm -f $tmp/in |
---|
9382 | mv $tmp/out $tmp/in |
---|
9383 | ' >>$CONFIG_STATUS |
---|
9384 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
9385 | rm -f conftest.undefs |
---|
9386 | mv conftest.tail conftest.undefs |
---|
9387 | done |
---|
9388 | rm -f conftest.undefs |
---|
9389 | |
---|
9390 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9391 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
9392 | # use $as_me), people would be surprised to read: |
---|
9393 | # /* config.h. Generated by config.status. */ |
---|
9394 | if test x"$ac_file" = x-; then |
---|
9395 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
9396 | else |
---|
9397 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
9398 | fi |
---|
9399 | cat $tmp/in >>$tmp/config.h |
---|
9400 | rm -f $tmp/in |
---|
9401 | if test x"$ac_file" != x-; then |
---|
9402 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
9403 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
9404 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
9405 | else |
---|
9406 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
9407 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9408 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
9409 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
9410 | X"$ac_file" : 'X\(/\)' \| \ |
---|
9411 | . : '\(.\)' 2>/dev/null || |
---|
9412 | echo X"$ac_file" | |
---|
9413 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9414 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9415 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9416 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9417 | s/.*/./; q'` |
---|
9418 | { if $as_mkdir_p; then |
---|
9419 | mkdir -p "$ac_dir" |
---|
9420 | else |
---|
9421 | as_dir="$ac_dir" |
---|
9422 | as_dirs= |
---|
9423 | while test ! -d "$as_dir"; do |
---|
9424 | as_dirs="$as_dir $as_dirs" |
---|
9425 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9426 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9427 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9428 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9429 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9430 | . : '\(.\)' 2>/dev/null || |
---|
9431 | echo X"$as_dir" | |
---|
9432 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9433 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9434 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9435 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9436 | s/.*/./; q'` |
---|
9437 | done |
---|
9438 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9439 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
9440 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
9441 | { (exit 1); exit 1; }; }; } |
---|
9442 | |
---|
9443 | rm -f $ac_file |
---|
9444 | mv $tmp/config.h $ac_file |
---|
9445 | fi |
---|
9446 | else |
---|
9447 | cat $tmp/config.h |
---|
9448 | rm -f $tmp/config.h |
---|
9449 | fi |
---|
9450 | # Compute $ac_file's index in $config_headers. |
---|
9451 | _am_stamp_count=1 |
---|
9452 | for _am_header in $config_headers :; do |
---|
9453 | case $_am_header in |
---|
9454 | $ac_file | $ac_file:* ) |
---|
9455 | break ;; |
---|
9456 | * ) |
---|
9457 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
9458 | esac |
---|
9459 | done |
---|
9460 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
9461 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9462 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
9463 | X$ac_file : 'X\(//\)$' \| \ |
---|
9464 | X$ac_file : 'X\(/\)' \| \ |
---|
9465 | . : '\(.\)' 2>/dev/null || |
---|
9466 | echo X$ac_file | |
---|
9467 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9468 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9469 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9470 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9471 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
9472 | done |
---|
9473 | _ACEOF |
---|
9474 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9475 | |
---|
9476 | # |
---|
9477 | # CONFIG_COMMANDS section. |
---|
9478 | # |
---|
9479 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
9480 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
9481 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
9482 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
9483 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9484 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
9485 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
9486 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
9487 | . : '\(.\)' 2>/dev/null || |
---|
9488 | echo X"$ac_dest" | |
---|
9489 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9490 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9491 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9492 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9493 | s/.*/./; q'` |
---|
9494 | { if $as_mkdir_p; then |
---|
9495 | mkdir -p "$ac_dir" |
---|
9496 | else |
---|
9497 | as_dir="$ac_dir" |
---|
9498 | as_dirs= |
---|
9499 | while test ! -d "$as_dir"; do |
---|
9500 | as_dirs="$as_dir $as_dirs" |
---|
9501 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9502 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9503 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9504 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9505 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9506 | . : '\(.\)' 2>/dev/null || |
---|
9507 | echo X"$as_dir" | |
---|
9508 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9509 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9510 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9511 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9512 | s/.*/./; q'` |
---|
9513 | done |
---|
9514 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9515 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
9516 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
9517 | { (exit 1); exit 1; }; }; } |
---|
9518 | |
---|
9519 | ac_builddir=. |
---|
9520 | |
---|
9521 | if test "$ac_dir" != .; then |
---|
9522 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
9523 | # A "../" for each directory in $ac_dir_suffix. |
---|
9524 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
9525 | else |
---|
9526 | ac_dir_suffix= ac_top_builddir= |
---|
9527 | fi |
---|
9528 | |
---|
9529 | case $srcdir in |
---|
9530 | .) # No --srcdir option. We are building in place. |
---|
9531 | ac_srcdir=. |
---|
9532 | if test -z "$ac_top_builddir"; then |
---|
9533 | ac_top_srcdir=. |
---|
9534 | else |
---|
9535 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
9536 | fi ;; |
---|
9537 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
9538 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
9539 | ac_top_srcdir=$srcdir ;; |
---|
9540 | *) # Relative path. |
---|
9541 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
9542 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
9543 | esac |
---|
9544 | |
---|
9545 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
9546 | # the directories may not exist. |
---|
9547 | case `pwd` in |
---|
9548 | .) ac_abs_builddir="$ac_dir";; |
---|
9549 | *) |
---|
9550 | case "$ac_dir" in |
---|
9551 | .) ac_abs_builddir=`pwd`;; |
---|
9552 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
9553 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
9554 | esac;; |
---|
9555 | esac |
---|
9556 | case $ac_abs_builddir in |
---|
9557 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9558 | *) |
---|
9559 | case ${ac_top_builddir}. in |
---|
9560 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
9561 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9562 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
9563 | esac;; |
---|
9564 | esac |
---|
9565 | case $ac_abs_builddir in |
---|
9566 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
9567 | *) |
---|
9568 | case $ac_srcdir in |
---|
9569 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
9570 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
9571 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
9572 | esac;; |
---|
9573 | esac |
---|
9574 | case $ac_abs_builddir in |
---|
9575 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9576 | *) |
---|
9577 | case $ac_top_srcdir in |
---|
9578 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
9579 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9580 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
9581 | esac;; |
---|
9582 | esac |
---|
9583 | |
---|
9584 | |
---|
9585 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
9586 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
9587 | case $ac_dest in |
---|
9588 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
9589 | # Strip MF so we end up with the name of the file. |
---|
9590 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
9591 | # Check whether this is an Automake generated Makefile or not. |
---|
9592 | # We used to match only the files named `Makefile.in', but |
---|
9593 | # some people rename them; so instead we look at the file content. |
---|
9594 | # Grep'ing the first line is not enough: some people post-process |
---|
9595 | # each Makefile.in and add a new line on top of each file to say so. |
---|
9596 | # So let's grep whole file. |
---|
9597 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
9598 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
9599 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9600 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
9601 | X"$mf" : 'X\(//\)$' \| \ |
---|
9602 | X"$mf" : 'X\(/\)' \| \ |
---|
9603 | . : '\(.\)' 2>/dev/null || |
---|
9604 | echo X"$mf" | |
---|
9605 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9606 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9607 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9608 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9609 | s/.*/./; q'` |
---|
9610 | else |
---|
9611 | continue |
---|
9612 | fi |
---|
9613 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
9614 | # Extract the definition of DEP_FILES from the Makefile without |
---|
9615 | # running `make'. |
---|
9616 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
9617 | test -z "$DEPDIR" && continue |
---|
9618 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
9619 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
9620 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
9621 | # We invoke sed twice because it is the simplest approach to |
---|
9622 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
9623 | for file in `sed -n ' |
---|
9624 | /^DEP_FILES = .*\\\\$/ { |
---|
9625 | s/^DEP_FILES = // |
---|
9626 | :loop |
---|
9627 | s/\\\\$// |
---|
9628 | p |
---|
9629 | n |
---|
9630 | /\\\\$/ b loop |
---|
9631 | p |
---|
9632 | } |
---|
9633 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
9634 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
9635 | # Make sure the directory exists. |
---|
9636 | test -f "$dirpart/$file" && continue |
---|
9637 | fdir=`(dirname "$file") 2>/dev/null || |
---|
9638 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9639 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
9640 | X"$file" : 'X\(//\)$' \| \ |
---|
9641 | X"$file" : 'X\(/\)' \| \ |
---|
9642 | . : '\(.\)' 2>/dev/null || |
---|
9643 | echo X"$file" | |
---|
9644 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9645 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9646 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9647 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9648 | s/.*/./; q'` |
---|
9649 | { if $as_mkdir_p; then |
---|
9650 | mkdir -p $dirpart/$fdir |
---|
9651 | else |
---|
9652 | as_dir=$dirpart/$fdir |
---|
9653 | as_dirs= |
---|
9654 | while test ! -d "$as_dir"; do |
---|
9655 | as_dirs="$as_dir $as_dirs" |
---|
9656 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9657 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9658 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9659 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9660 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9661 | . : '\(.\)' 2>/dev/null || |
---|
9662 | echo X"$as_dir" | |
---|
9663 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9664 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9665 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9666 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9667 | s/.*/./; q'` |
---|
9668 | done |
---|
9669 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9670 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
9671 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
9672 | { (exit 1); exit 1; }; }; } |
---|
9673 | |
---|
9674 | # echo "creating $dirpart/$file" |
---|
9675 | echo '# dummy' > "$dirpart/$file" |
---|
9676 | done |
---|
9677 | done |
---|
9678 | ;; |
---|
9679 | esac |
---|
9680 | done |
---|
9681 | _ACEOF |
---|
9682 | |
---|
9683 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9684 | |
---|
9685 | { (exit 0); exit 0; } |
---|
9686 | _ACEOF |
---|
9687 | chmod +x $CONFIG_STATUS |
---|
9688 | ac_clean_files=$ac_clean_files_save |
---|
9689 | |
---|
9690 | |
---|
9691 | # configure is writing to config.log, and then calls config.status. |
---|
9692 | # config.status does its own redirection, appending to config.log. |
---|
9693 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
9694 | # by configure, so config.status won't be able to write to it; its |
---|
9695 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
9696 | # effectively closing config.log, so it can be properly (re)opened and |
---|
9697 | # appended to by config.status. When coming back to configure, we |
---|
9698 | # need to make the FD available again. |
---|
9699 | if test "$no_create" != yes; then |
---|
9700 | ac_cs_success=: |
---|
9701 | ac_config_status_args= |
---|
9702 | test "$silent" = yes && |
---|
9703 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
9704 | exec 5>/dev/null |
---|
9705 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
9706 | exec 5>>config.log |
---|
9707 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
9708 | # would make configure fail if this is the last instruction. |
---|
9709 | $ac_cs_success || { (exit 1); exit 1; } |
---|
9710 | fi |
---|
9711 | |
---|