1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for orxonox 0.3.1_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.3.1_alpha' |
---|
273 | PACKAGE_STRING='orxonox 0.3.1_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 RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_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.3.1_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.3.1_alpha:";; |
---|
859 | esac |
---|
860 | cat <<\_ACEOF |
---|
861 | |
---|
862 | Optional Features: |
---|
863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
865 | --disable-dependency-tracking speeds up one-time build |
---|
866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
868 | game. |
---|
869 | --disable-modular-debug compiles in modular-debug mode, that logs |
---|
870 | differently on the many modules of orxonox. |
---|
871 | --disable-gtk Prevents GTK from being loaded |
---|
872 | --disable-curl Prevents libcURL from being loaded |
---|
873 | --enable-profile builds orxonox with profiling support |
---|
874 | --enable-efence builds orxonox with efence support |
---|
875 | --enable-documentation also builds the sDocumentation while make from |
---|
876 | srcdir |
---|
877 | |
---|
878 | Optional Packages: |
---|
879 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
880 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
881 | --with-shared-lib-path Tells the executable, where to look for the shared |
---|
882 | libraries. |
---|
883 | --with-sub-projects also builds the subProjects while make from srcdir |
---|
884 | |
---|
885 | Some influential environment variables: |
---|
886 | CXX C++ compiler command |
---|
887 | CXXFLAGS C++ compiler flags |
---|
888 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
889 | nonstandard directory <lib dir> |
---|
890 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
891 | headers in a nonstandard directory <include dir> |
---|
892 | CC C compiler command |
---|
893 | CFLAGS C compiler flags |
---|
894 | CPP C preprocessor |
---|
895 | |
---|
896 | Use these variables to override the choices made by `configure' or to help |
---|
897 | it to find libraries and programs with nonstandard names/locations. |
---|
898 | |
---|
899 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
900 | _ACEOF |
---|
901 | fi |
---|
902 | |
---|
903 | if test "$ac_init_help" = "recursive"; then |
---|
904 | # If there are subdirs, report their specific --help. |
---|
905 | ac_popdir=`pwd` |
---|
906 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
907 | test -d $ac_dir || continue |
---|
908 | ac_builddir=. |
---|
909 | |
---|
910 | if test "$ac_dir" != .; then |
---|
911 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
912 | # A "../" for each directory in $ac_dir_suffix. |
---|
913 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
914 | else |
---|
915 | ac_dir_suffix= ac_top_builddir= |
---|
916 | fi |
---|
917 | |
---|
918 | case $srcdir in |
---|
919 | .) # No --srcdir option. We are building in place. |
---|
920 | ac_srcdir=. |
---|
921 | if test -z "$ac_top_builddir"; then |
---|
922 | ac_top_srcdir=. |
---|
923 | else |
---|
924 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
925 | fi ;; |
---|
926 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
927 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
928 | ac_top_srcdir=$srcdir ;; |
---|
929 | *) # Relative path. |
---|
930 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
931 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
932 | esac |
---|
933 | |
---|
934 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
935 | # the directories may not exist. |
---|
936 | case `pwd` in |
---|
937 | .) ac_abs_builddir="$ac_dir";; |
---|
938 | *) |
---|
939 | case "$ac_dir" in |
---|
940 | .) ac_abs_builddir=`pwd`;; |
---|
941 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
942 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
943 | esac;; |
---|
944 | esac |
---|
945 | case $ac_abs_builddir in |
---|
946 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
947 | *) |
---|
948 | case ${ac_top_builddir}. in |
---|
949 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
950 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
951 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
952 | esac;; |
---|
953 | esac |
---|
954 | case $ac_abs_builddir in |
---|
955 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
956 | *) |
---|
957 | case $ac_srcdir in |
---|
958 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
959 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
960 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
961 | esac;; |
---|
962 | esac |
---|
963 | case $ac_abs_builddir in |
---|
964 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
965 | *) |
---|
966 | case $ac_top_srcdir in |
---|
967 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
968 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
969 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
970 | esac;; |
---|
971 | esac |
---|
972 | |
---|
973 | cd $ac_dir |
---|
974 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
975 | if test -f $ac_srcdir/configure.gnu; then |
---|
976 | echo |
---|
977 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
978 | elif test -f $ac_srcdir/configure; then |
---|
979 | echo |
---|
980 | $SHELL $ac_srcdir/configure --help=recursive |
---|
981 | elif test -f $ac_srcdir/configure.ac || |
---|
982 | test -f $ac_srcdir/configure.in; then |
---|
983 | echo |
---|
984 | $ac_configure --help |
---|
985 | else |
---|
986 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
987 | fi |
---|
988 | cd $ac_popdir |
---|
989 | done |
---|
990 | fi |
---|
991 | |
---|
992 | test -n "$ac_init_help" && exit 0 |
---|
993 | if $ac_init_version; then |
---|
994 | cat <<\_ACEOF |
---|
995 | orxonox configure 0.3.1_alpha |
---|
996 | generated by GNU Autoconf 2.59 |
---|
997 | |
---|
998 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
999 | This configure script is free software; the Free Software Foundation |
---|
1000 | gives unlimited permission to copy, distribute and modify it. |
---|
1001 | _ACEOF |
---|
1002 | exit 0 |
---|
1003 | fi |
---|
1004 | exec 5>config.log |
---|
1005 | cat >&5 <<_ACEOF |
---|
1006 | This file contains any messages produced by compilers while |
---|
1007 | running configure, to aid debugging if configure makes a mistake. |
---|
1008 | |
---|
1009 | It was created by orxonox $as_me 0.3.1_alpha, which was |
---|
1010 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1011 | |
---|
1012 | $ $0 $@ |
---|
1013 | |
---|
1014 | _ACEOF |
---|
1015 | { |
---|
1016 | cat <<_ASUNAME |
---|
1017 | ## --------- ## |
---|
1018 | ## Platform. ## |
---|
1019 | ## --------- ## |
---|
1020 | |
---|
1021 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1022 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1023 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1024 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1025 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1026 | |
---|
1027 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1028 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1029 | |
---|
1030 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1031 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1032 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1033 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1034 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1035 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1036 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1037 | |
---|
1038 | _ASUNAME |
---|
1039 | |
---|
1040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1041 | for as_dir in $PATH |
---|
1042 | do |
---|
1043 | IFS=$as_save_IFS |
---|
1044 | test -z "$as_dir" && as_dir=. |
---|
1045 | echo "PATH: $as_dir" |
---|
1046 | done |
---|
1047 | |
---|
1048 | } >&5 |
---|
1049 | |
---|
1050 | cat >&5 <<_ACEOF |
---|
1051 | |
---|
1052 | |
---|
1053 | ## ----------- ## |
---|
1054 | ## Core tests. ## |
---|
1055 | ## ----------- ## |
---|
1056 | |
---|
1057 | _ACEOF |
---|
1058 | |
---|
1059 | |
---|
1060 | # Keep a trace of the command line. |
---|
1061 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1062 | # Strip out --silent because we don't want to record it for future runs. |
---|
1063 | # Also quote any args containing shell meta-characters. |
---|
1064 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1065 | ac_configure_args= |
---|
1066 | ac_configure_args0= |
---|
1067 | ac_configure_args1= |
---|
1068 | ac_sep= |
---|
1069 | ac_must_keep_next=false |
---|
1070 | for ac_pass in 1 2 |
---|
1071 | do |
---|
1072 | for ac_arg |
---|
1073 | do |
---|
1074 | case $ac_arg in |
---|
1075 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1076 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1077 | | -silent | --silent | --silen | --sile | --sil) |
---|
1078 | continue ;; |
---|
1079 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1080 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1081 | esac |
---|
1082 | case $ac_pass in |
---|
1083 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1084 | 2) |
---|
1085 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1086 | if test $ac_must_keep_next = true; then |
---|
1087 | ac_must_keep_next=false # Got value, back to normal. |
---|
1088 | else |
---|
1089 | case $ac_arg in |
---|
1090 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1091 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1092 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1093 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1094 | case "$ac_configure_args0 " in |
---|
1095 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1096 | esac |
---|
1097 | ;; |
---|
1098 | -* ) ac_must_keep_next=true ;; |
---|
1099 | esac |
---|
1100 | fi |
---|
1101 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1102 | # Get rid of the leading space. |
---|
1103 | ac_sep=" " |
---|
1104 | ;; |
---|
1105 | esac |
---|
1106 | done |
---|
1107 | done |
---|
1108 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1109 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1110 | |
---|
1111 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1112 | # config.log. We remove comments because anyway the quotes in there |
---|
1113 | # would cause problems or look ugly. |
---|
1114 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1115 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1116 | trap 'exit_status=$? |
---|
1117 | # Save into config.log some information that might help in debugging. |
---|
1118 | { |
---|
1119 | echo |
---|
1120 | |
---|
1121 | cat <<\_ASBOX |
---|
1122 | ## ---------------- ## |
---|
1123 | ## Cache variables. ## |
---|
1124 | ## ---------------- ## |
---|
1125 | _ASBOX |
---|
1126 | echo |
---|
1127 | # The following way of writing the cache mishandles newlines in values, |
---|
1128 | { |
---|
1129 | (set) 2>&1 | |
---|
1130 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1131 | *ac_space=\ *) |
---|
1132 | sed -n \ |
---|
1133 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1134 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1135 | ;; |
---|
1136 | *) |
---|
1137 | sed -n \ |
---|
1138 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1139 | ;; |
---|
1140 | esac; |
---|
1141 | } |
---|
1142 | echo |
---|
1143 | |
---|
1144 | cat <<\_ASBOX |
---|
1145 | ## ----------------- ## |
---|
1146 | ## Output variables. ## |
---|
1147 | ## ----------------- ## |
---|
1148 | _ASBOX |
---|
1149 | echo |
---|
1150 | for ac_var in $ac_subst_vars |
---|
1151 | do |
---|
1152 | eval ac_val=$`echo $ac_var` |
---|
1153 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1154 | done | sort |
---|
1155 | echo |
---|
1156 | |
---|
1157 | if test -n "$ac_subst_files"; then |
---|
1158 | cat <<\_ASBOX |
---|
1159 | ## ------------- ## |
---|
1160 | ## Output files. ## |
---|
1161 | ## ------------- ## |
---|
1162 | _ASBOX |
---|
1163 | echo |
---|
1164 | for ac_var in $ac_subst_files |
---|
1165 | do |
---|
1166 | eval ac_val=$`echo $ac_var` |
---|
1167 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1168 | done | sort |
---|
1169 | echo |
---|
1170 | fi |
---|
1171 | |
---|
1172 | if test -s confdefs.h; then |
---|
1173 | cat <<\_ASBOX |
---|
1174 | ## ----------- ## |
---|
1175 | ## confdefs.h. ## |
---|
1176 | ## ----------- ## |
---|
1177 | _ASBOX |
---|
1178 | echo |
---|
1179 | sed "/^$/d" confdefs.h | sort |
---|
1180 | echo |
---|
1181 | fi |
---|
1182 | test "$ac_signal" != 0 && |
---|
1183 | echo "$as_me: caught signal $ac_signal" |
---|
1184 | echo "$as_me: exit $exit_status" |
---|
1185 | } >&5 |
---|
1186 | rm -f core *.core && |
---|
1187 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1188 | exit $exit_status |
---|
1189 | ' 0 |
---|
1190 | for ac_signal in 1 2 13 15; do |
---|
1191 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1192 | done |
---|
1193 | ac_signal=0 |
---|
1194 | |
---|
1195 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1196 | rm -rf conftest* confdefs.h |
---|
1197 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1198 | echo >confdefs.h |
---|
1199 | |
---|
1200 | # Predefined preprocessor variables. |
---|
1201 | |
---|
1202 | cat >>confdefs.h <<_ACEOF |
---|
1203 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1204 | _ACEOF |
---|
1205 | |
---|
1206 | |
---|
1207 | cat >>confdefs.h <<_ACEOF |
---|
1208 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1209 | _ACEOF |
---|
1210 | |
---|
1211 | |
---|
1212 | cat >>confdefs.h <<_ACEOF |
---|
1213 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1214 | _ACEOF |
---|
1215 | |
---|
1216 | |
---|
1217 | cat >>confdefs.h <<_ACEOF |
---|
1218 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1219 | _ACEOF |
---|
1220 | |
---|
1221 | |
---|
1222 | cat >>confdefs.h <<_ACEOF |
---|
1223 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1224 | _ACEOF |
---|
1225 | |
---|
1226 | |
---|
1227 | # Let the site file select an alternate cache file if it wants to. |
---|
1228 | # Prefer explicitly selected file to automatically selected ones. |
---|
1229 | if test -z "$CONFIG_SITE"; then |
---|
1230 | if test "x$prefix" != xNONE; then |
---|
1231 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1232 | else |
---|
1233 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1234 | fi |
---|
1235 | fi |
---|
1236 | for ac_site_file in $CONFIG_SITE; do |
---|
1237 | if test -r "$ac_site_file"; then |
---|
1238 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1239 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1240 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1241 | . "$ac_site_file" |
---|
1242 | fi |
---|
1243 | done |
---|
1244 | |
---|
1245 | if test -r "$cache_file"; then |
---|
1246 | # Some versions of bash will fail to source /dev/null (special |
---|
1247 | # files actually), so we avoid doing that. |
---|
1248 | if test -f "$cache_file"; then |
---|
1249 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1250 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1251 | case $cache_file in |
---|
1252 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1253 | *) . ./$cache_file;; |
---|
1254 | esac |
---|
1255 | fi |
---|
1256 | else |
---|
1257 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1258 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1259 | >$cache_file |
---|
1260 | fi |
---|
1261 | |
---|
1262 | # Check that the precious variables saved in the cache have kept the same |
---|
1263 | # value. |
---|
1264 | ac_cache_corrupted=false |
---|
1265 | for ac_var in `(set) 2>&1 | |
---|
1266 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1267 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1268 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1269 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1270 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1271 | case $ac_old_set,$ac_new_set in |
---|
1272 | set,) |
---|
1273 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1274 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1275 | ac_cache_corrupted=: ;; |
---|
1276 | ,set) |
---|
1277 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1278 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1279 | ac_cache_corrupted=: ;; |
---|
1280 | ,);; |
---|
1281 | *) |
---|
1282 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1283 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1284 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1285 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1286 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1287 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1288 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1289 | ac_cache_corrupted=: |
---|
1290 | fi;; |
---|
1291 | esac |
---|
1292 | # Pass precious variables to config.status. |
---|
1293 | if test "$ac_new_set" = set; then |
---|
1294 | case $ac_new_val in |
---|
1295 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1296 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1297 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1298 | esac |
---|
1299 | case " $ac_configure_args " in |
---|
1300 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1301 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1302 | esac |
---|
1303 | fi |
---|
1304 | done |
---|
1305 | if $ac_cache_corrupted; then |
---|
1306 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1307 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1308 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1309 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1310 | { (exit 1); exit 1; }; } |
---|
1311 | fi |
---|
1312 | |
---|
1313 | ac_ext=c |
---|
1314 | ac_cpp='$CPP $CPPFLAGS' |
---|
1315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1318 | |
---|
1319 | |
---|
1320 | |
---|
1321 | |
---|
1322 | |
---|
1323 | |
---|
1324 | |
---|
1325 | |
---|
1326 | |
---|
1327 | |
---|
1328 | |
---|
1329 | |
---|
1330 | |
---|
1331 | |
---|
1332 | |
---|
1333 | |
---|
1334 | |
---|
1335 | |
---|
1336 | |
---|
1337 | |
---|
1338 | |
---|
1339 | |
---|
1340 | |
---|
1341 | |
---|
1342 | |
---|
1343 | |
---|
1344 | |
---|
1345 | |
---|
1346 | ## Detect the canonical host and target build environment. |
---|
1347 | ac_aux_dir= |
---|
1348 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1349 | if test -f $ac_dir/install-sh; then |
---|
1350 | ac_aux_dir=$ac_dir |
---|
1351 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1352 | break |
---|
1353 | elif test -f $ac_dir/install.sh; then |
---|
1354 | ac_aux_dir=$ac_dir |
---|
1355 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1356 | break |
---|
1357 | elif test -f $ac_dir/shtool; then |
---|
1358 | ac_aux_dir=$ac_dir |
---|
1359 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1360 | break |
---|
1361 | fi |
---|
1362 | done |
---|
1363 | if test -z "$ac_aux_dir"; then |
---|
1364 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1365 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1366 | { (exit 1); exit 1; }; } |
---|
1367 | fi |
---|
1368 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1369 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1370 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1371 | |
---|
1372 | # Make sure we can run config.sub. |
---|
1373 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1374 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1375 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1376 | { (exit 1); exit 1; }; } |
---|
1377 | |
---|
1378 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1379 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1380 | if test "${ac_cv_build+set}" = set; then |
---|
1381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1382 | else |
---|
1383 | ac_cv_build_alias=$build_alias |
---|
1384 | test -z "$ac_cv_build_alias" && |
---|
1385 | ac_cv_build_alias=`$ac_config_guess` |
---|
1386 | test -z "$ac_cv_build_alias" && |
---|
1387 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1388 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1389 | { (exit 1); exit 1; }; } |
---|
1390 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1391 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1392 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1393 | { (exit 1); exit 1; }; } |
---|
1394 | |
---|
1395 | fi |
---|
1396 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1397 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1398 | build=$ac_cv_build |
---|
1399 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1400 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1401 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1402 | |
---|
1403 | |
---|
1404 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1405 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1406 | if test "${ac_cv_host+set}" = set; then |
---|
1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1408 | else |
---|
1409 | ac_cv_host_alias=$host_alias |
---|
1410 | test -z "$ac_cv_host_alias" && |
---|
1411 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1412 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1413 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1414 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1415 | { (exit 1); exit 1; }; } |
---|
1416 | |
---|
1417 | fi |
---|
1418 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1419 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1420 | host=$ac_cv_host |
---|
1421 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1422 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1423 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1424 | |
---|
1425 | |
---|
1426 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1427 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1428 | if test "${ac_cv_target+set}" = set; then |
---|
1429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1430 | else |
---|
1431 | ac_cv_target_alias=$target_alias |
---|
1432 | test "x$ac_cv_target_alias" = "x" && |
---|
1433 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1434 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1435 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1436 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1437 | { (exit 1); exit 1; }; } |
---|
1438 | |
---|
1439 | fi |
---|
1440 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1441 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1442 | target=$ac_cv_target |
---|
1443 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1444 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1445 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1446 | |
---|
1447 | |
---|
1448 | # The aliases save the names the user supplied, while $host etc. |
---|
1449 | # will get canonicalized. |
---|
1450 | test -n "$target_alias" && |
---|
1451 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1452 | NONENONEs,x,x, && |
---|
1453 | program_prefix=${target_alias}- |
---|
1454 | |
---|
1455 | am__api_version="1.8" |
---|
1456 | # Find a good install program. We prefer a C program (faster), |
---|
1457 | # so one script is as good as another. But avoid the broken or |
---|
1458 | # incompatible versions: |
---|
1459 | # SysV /etc/install, /usr/sbin/install |
---|
1460 | # SunOS /usr/etc/install |
---|
1461 | # IRIX /sbin/install |
---|
1462 | # AIX /bin/install |
---|
1463 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1464 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1465 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1466 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1467 | # OS/2's system install, which has a completely different semantic |
---|
1468 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1469 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1470 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1471 | if test -z "$INSTALL"; then |
---|
1472 | if test "${ac_cv_path_install+set}" = set; then |
---|
1473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1474 | else |
---|
1475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1476 | for as_dir in $PATH |
---|
1477 | do |
---|
1478 | IFS=$as_save_IFS |
---|
1479 | test -z "$as_dir" && as_dir=. |
---|
1480 | # Account for people who put trailing slashes in PATH elements. |
---|
1481 | case $as_dir/ in |
---|
1482 | ./ | .// | /cC/* | \ |
---|
1483 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1484 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1485 | /usr/ucb/* ) ;; |
---|
1486 | *) |
---|
1487 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1488 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1489 | # by default. |
---|
1490 | for ac_prog in ginstall scoinst install; do |
---|
1491 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1492 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1493 | if test $ac_prog = install && |
---|
1494 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1495 | # AIX install. It has an incompatible calling convention. |
---|
1496 | : |
---|
1497 | elif test $ac_prog = install && |
---|
1498 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1499 | # program-specific install script used by HP pwplus--don't use. |
---|
1500 | : |
---|
1501 | else |
---|
1502 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1503 | break 3 |
---|
1504 | fi |
---|
1505 | fi |
---|
1506 | done |
---|
1507 | done |
---|
1508 | ;; |
---|
1509 | esac |
---|
1510 | done |
---|
1511 | |
---|
1512 | |
---|
1513 | fi |
---|
1514 | if test "${ac_cv_path_install+set}" = set; then |
---|
1515 | INSTALL=$ac_cv_path_install |
---|
1516 | else |
---|
1517 | # As a last resort, use the slow shell script. We don't cache a |
---|
1518 | # path for INSTALL within a source directory, because that will |
---|
1519 | # break other packages using the cache if that directory is |
---|
1520 | # removed, or if the path is relative. |
---|
1521 | INSTALL=$ac_install_sh |
---|
1522 | fi |
---|
1523 | fi |
---|
1524 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1525 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1526 | |
---|
1527 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1528 | # It thinks the first close brace ends the variable substitution. |
---|
1529 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1530 | |
---|
1531 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1532 | |
---|
1533 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1534 | |
---|
1535 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1536 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1537 | # Just in case |
---|
1538 | sleep 1 |
---|
1539 | echo timestamp > conftest.file |
---|
1540 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1541 | # arguments. Must try -L first in case configure is actually a |
---|
1542 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1543 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1544 | # directory). |
---|
1545 | if ( |
---|
1546 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1547 | if test "$*" = "X"; then |
---|
1548 | # -L didn't work. |
---|
1549 | set X `ls -t $srcdir/configure conftest.file` |
---|
1550 | fi |
---|
1551 | rm -f conftest.file |
---|
1552 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1553 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1554 | |
---|
1555 | # If neither matched, then we have a broken ls. This can happen |
---|
1556 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1557 | # broken ls alias from the environment. This has actually |
---|
1558 | # happened. Such a system could not be considered "sane". |
---|
1559 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1560 | alias in your environment" >&5 |
---|
1561 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1562 | alias in your environment" >&2;} |
---|
1563 | { (exit 1); exit 1; }; } |
---|
1564 | fi |
---|
1565 | |
---|
1566 | test "$2" = conftest.file |
---|
1567 | ) |
---|
1568 | then |
---|
1569 | # Ok. |
---|
1570 | : |
---|
1571 | else |
---|
1572 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1573 | Check your system clock" >&5 |
---|
1574 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1575 | Check your system clock" >&2;} |
---|
1576 | { (exit 1); exit 1; }; } |
---|
1577 | fi |
---|
1578 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1579 | echo "${ECHO_T}yes" >&6 |
---|
1580 | test "$program_prefix" != NONE && |
---|
1581 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1582 | # Use a double $ so make ignores it. |
---|
1583 | test "$program_suffix" != NONE && |
---|
1584 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1585 | # Double any \ or $. echo might interpret backslashes. |
---|
1586 | # By default was `s,x,x', remove it if useless. |
---|
1587 | cat <<\_ACEOF >conftest.sed |
---|
1588 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1589 | _ACEOF |
---|
1590 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1591 | rm conftest.sed |
---|
1592 | |
---|
1593 | # expand $ac_aux_dir to an absolute path |
---|
1594 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1595 | |
---|
1596 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1597 | # Use eval to expand $SHELL |
---|
1598 | if eval "$MISSING --run true"; then |
---|
1599 | am_missing_run="$MISSING --run " |
---|
1600 | else |
---|
1601 | am_missing_run= |
---|
1602 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1603 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1604 | fi |
---|
1605 | |
---|
1606 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1607 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
1608 | # argument. Indeed, we sometimes output rules like |
---|
1609 | # $(mkdir_p) $(somedir) |
---|
1610 | # where $(somedir) is conditionally defined. |
---|
1611 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
1612 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
1613 | mkdir_p='mkdir -p -- .' |
---|
1614 | else |
---|
1615 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1616 | # recognize any option. It will interpret all options as |
---|
1617 | # directories to create, and then abort because `.' already |
---|
1618 | # exists. |
---|
1619 | for d in ./-p ./--version; |
---|
1620 | do |
---|
1621 | test -d $d && rmdir $d |
---|
1622 | done |
---|
1623 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1624 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1625 | mkdir_p='$(mkinstalldirs)' |
---|
1626 | else |
---|
1627 | mkdir_p='$(install_sh) -d' |
---|
1628 | fi |
---|
1629 | fi |
---|
1630 | |
---|
1631 | for ac_prog in gawk mawk nawk awk |
---|
1632 | do |
---|
1633 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1634 | set dummy $ac_prog; ac_word=$2 |
---|
1635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1637 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1639 | else |
---|
1640 | if test -n "$AWK"; then |
---|
1641 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1642 | else |
---|
1643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1644 | for as_dir in $PATH |
---|
1645 | do |
---|
1646 | IFS=$as_save_IFS |
---|
1647 | test -z "$as_dir" && as_dir=. |
---|
1648 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1649 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1650 | ac_cv_prog_AWK="$ac_prog" |
---|
1651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1652 | break 2 |
---|
1653 | fi |
---|
1654 | done |
---|
1655 | done |
---|
1656 | |
---|
1657 | fi |
---|
1658 | fi |
---|
1659 | AWK=$ac_cv_prog_AWK |
---|
1660 | if test -n "$AWK"; then |
---|
1661 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1662 | echo "${ECHO_T}$AWK" >&6 |
---|
1663 | else |
---|
1664 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1665 | echo "${ECHO_T}no" >&6 |
---|
1666 | fi |
---|
1667 | |
---|
1668 | test -n "$AWK" && break |
---|
1669 | done |
---|
1670 | |
---|
1671 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1672 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1673 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1674 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1676 | else |
---|
1677 | cat >conftest.make <<\_ACEOF |
---|
1678 | all: |
---|
1679 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1680 | _ACEOF |
---|
1681 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1682 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1683 | if test -n "$ac_maketemp"; then |
---|
1684 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1685 | else |
---|
1686 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1687 | fi |
---|
1688 | rm -f conftest.make |
---|
1689 | fi |
---|
1690 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1691 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1692 | echo "${ECHO_T}yes" >&6 |
---|
1693 | SET_MAKE= |
---|
1694 | else |
---|
1695 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1696 | echo "${ECHO_T}no" >&6 |
---|
1697 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1698 | fi |
---|
1699 | |
---|
1700 | rm -rf .tst 2>/dev/null |
---|
1701 | mkdir .tst 2>/dev/null |
---|
1702 | if test -d .tst; then |
---|
1703 | am__leading_dot=. |
---|
1704 | else |
---|
1705 | am__leading_dot=_ |
---|
1706 | fi |
---|
1707 | rmdir .tst 2>/dev/null |
---|
1708 | |
---|
1709 | # test to see if srcdir already configured |
---|
1710 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1711 | test -f $srcdir/config.status; then |
---|
1712 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1713 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1714 | { (exit 1); exit 1; }; } |
---|
1715 | fi |
---|
1716 | |
---|
1717 | # test whether we have cygpath |
---|
1718 | if test -z "$CYGPATH_W"; then |
---|
1719 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1720 | CYGPATH_W='cygpath -w' |
---|
1721 | else |
---|
1722 | CYGPATH_W=echo |
---|
1723 | fi |
---|
1724 | fi |
---|
1725 | |
---|
1726 | |
---|
1727 | # Define the identity of the package. |
---|
1728 | PACKAGE='orxonox' |
---|
1729 | VERSION='0.3.1_alpha' |
---|
1730 | |
---|
1731 | |
---|
1732 | cat >>confdefs.h <<_ACEOF |
---|
1733 | #define PACKAGE "$PACKAGE" |
---|
1734 | _ACEOF |
---|
1735 | |
---|
1736 | |
---|
1737 | cat >>confdefs.h <<_ACEOF |
---|
1738 | #define VERSION "$VERSION" |
---|
1739 | _ACEOF |
---|
1740 | |
---|
1741 | # Some tools Automake needs. |
---|
1742 | |
---|
1743 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1744 | |
---|
1745 | |
---|
1746 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1747 | |
---|
1748 | |
---|
1749 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1750 | |
---|
1751 | |
---|
1752 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1753 | |
---|
1754 | |
---|
1755 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1756 | |
---|
1757 | |
---|
1758 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1759 | |
---|
1760 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1761 | |
---|
1762 | # Installed binaries are usually stripped using `strip' when the user |
---|
1763 | # run `make install-strip'. However `strip' might not be the right |
---|
1764 | # tool to use in cross-compilation environments, therefore Automake |
---|
1765 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1766 | if test "$cross_compiling" != no; then |
---|
1767 | if test -n "$ac_tool_prefix"; then |
---|
1768 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1769 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1772 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1774 | else |
---|
1775 | if test -n "$STRIP"; then |
---|
1776 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1777 | else |
---|
1778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1779 | for as_dir in $PATH |
---|
1780 | do |
---|
1781 | IFS=$as_save_IFS |
---|
1782 | test -z "$as_dir" && as_dir=. |
---|
1783 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1785 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1787 | break 2 |
---|
1788 | fi |
---|
1789 | done |
---|
1790 | done |
---|
1791 | |
---|
1792 | fi |
---|
1793 | fi |
---|
1794 | STRIP=$ac_cv_prog_STRIP |
---|
1795 | if test -n "$STRIP"; then |
---|
1796 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1797 | echo "${ECHO_T}$STRIP" >&6 |
---|
1798 | else |
---|
1799 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1800 | echo "${ECHO_T}no" >&6 |
---|
1801 | fi |
---|
1802 | |
---|
1803 | fi |
---|
1804 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1805 | ac_ct_STRIP=$STRIP |
---|
1806 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1807 | set dummy strip; ac_word=$2 |
---|
1808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1810 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1812 | else |
---|
1813 | if test -n "$ac_ct_STRIP"; then |
---|
1814 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1815 | else |
---|
1816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1817 | for as_dir in $PATH |
---|
1818 | do |
---|
1819 | IFS=$as_save_IFS |
---|
1820 | test -z "$as_dir" && as_dir=. |
---|
1821 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1823 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1825 | break 2 |
---|
1826 | fi |
---|
1827 | done |
---|
1828 | done |
---|
1829 | |
---|
1830 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1831 | fi |
---|
1832 | fi |
---|
1833 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1834 | if test -n "$ac_ct_STRIP"; then |
---|
1835 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1836 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1837 | else |
---|
1838 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1839 | echo "${ECHO_T}no" >&6 |
---|
1840 | fi |
---|
1841 | |
---|
1842 | STRIP=$ac_ct_STRIP |
---|
1843 | else |
---|
1844 | STRIP="$ac_cv_prog_STRIP" |
---|
1845 | fi |
---|
1846 | |
---|
1847 | fi |
---|
1848 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1849 | |
---|
1850 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1851 | # some platforms. |
---|
1852 | |
---|
1853 | |
---|
1854 | |
---|
1855 | |
---|
1856 | |
---|
1857 | ac_config_headers="$ac_config_headers config.h" |
---|
1858 | |
---|
1859 | |
---|
1860 | ######################### |
---|
1861 | ## Checks for programs ## |
---|
1862 | ######################### |
---|
1863 | ac_ext=cc |
---|
1864 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1865 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1866 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1867 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1868 | if test -n "$ac_tool_prefix"; then |
---|
1869 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1870 | do |
---|
1871 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1872 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1875 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1877 | else |
---|
1878 | if test -n "$CXX"; then |
---|
1879 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1880 | else |
---|
1881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1882 | for as_dir in $PATH |
---|
1883 | do |
---|
1884 | IFS=$as_save_IFS |
---|
1885 | test -z "$as_dir" && as_dir=. |
---|
1886 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1888 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1890 | break 2 |
---|
1891 | fi |
---|
1892 | done |
---|
1893 | done |
---|
1894 | |
---|
1895 | fi |
---|
1896 | fi |
---|
1897 | CXX=$ac_cv_prog_CXX |
---|
1898 | if test -n "$CXX"; then |
---|
1899 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1900 | echo "${ECHO_T}$CXX" >&6 |
---|
1901 | else |
---|
1902 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1903 | echo "${ECHO_T}no" >&6 |
---|
1904 | fi |
---|
1905 | |
---|
1906 | test -n "$CXX" && break |
---|
1907 | done |
---|
1908 | fi |
---|
1909 | if test -z "$CXX"; then |
---|
1910 | ac_ct_CXX=$CXX |
---|
1911 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1912 | do |
---|
1913 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1914 | set dummy $ac_prog; ac_word=$2 |
---|
1915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1917 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1919 | else |
---|
1920 | if test -n "$ac_ct_CXX"; then |
---|
1921 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1922 | else |
---|
1923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1924 | for as_dir in $PATH |
---|
1925 | do |
---|
1926 | IFS=$as_save_IFS |
---|
1927 | test -z "$as_dir" && as_dir=. |
---|
1928 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1930 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1932 | break 2 |
---|
1933 | fi |
---|
1934 | done |
---|
1935 | done |
---|
1936 | |
---|
1937 | fi |
---|
1938 | fi |
---|
1939 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1940 | if test -n "$ac_ct_CXX"; then |
---|
1941 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1942 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1943 | else |
---|
1944 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1945 | echo "${ECHO_T}no" >&6 |
---|
1946 | fi |
---|
1947 | |
---|
1948 | test -n "$ac_ct_CXX" && break |
---|
1949 | done |
---|
1950 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1951 | |
---|
1952 | CXX=$ac_ct_CXX |
---|
1953 | fi |
---|
1954 | |
---|
1955 | |
---|
1956 | # Provide some information about the compiler. |
---|
1957 | echo "$as_me:$LINENO:" \ |
---|
1958 | "checking for C++ compiler version" >&5 |
---|
1959 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1961 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1962 | ac_status=$? |
---|
1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1964 | (exit $ac_status); } |
---|
1965 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1966 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1967 | ac_status=$? |
---|
1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1969 | (exit $ac_status); } |
---|
1970 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1971 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1972 | ac_status=$? |
---|
1973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1974 | (exit $ac_status); } |
---|
1975 | |
---|
1976 | cat >conftest.$ac_ext <<_ACEOF |
---|
1977 | /* confdefs.h. */ |
---|
1978 | _ACEOF |
---|
1979 | cat confdefs.h >>conftest.$ac_ext |
---|
1980 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1981 | /* end confdefs.h. */ |
---|
1982 | |
---|
1983 | int |
---|
1984 | main () |
---|
1985 | { |
---|
1986 | |
---|
1987 | ; |
---|
1988 | return 0; |
---|
1989 | } |
---|
1990 | _ACEOF |
---|
1991 | ac_clean_files_save=$ac_clean_files |
---|
1992 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1993 | # Try to create an executable without -o first, disregard a.out. |
---|
1994 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1995 | # of exeext. |
---|
1996 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1997 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1998 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1999 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2000 | (eval $ac_link_default) 2>&5 |
---|
2001 | ac_status=$? |
---|
2002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2003 | (exit $ac_status); }; then |
---|
2004 | # Find the output, starting from the most likely. This scheme is |
---|
2005 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2006 | # resort. |
---|
2007 | |
---|
2008 | # Be careful to initialize this variable, since it used to be cached. |
---|
2009 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2010 | ac_cv_exeext= |
---|
2011 | # b.out is created by i960 compilers. |
---|
2012 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2013 | do |
---|
2014 | test -f "$ac_file" || continue |
---|
2015 | case $ac_file in |
---|
2016 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2017 | ;; |
---|
2018 | conftest.$ac_ext ) |
---|
2019 | # This is the source file. |
---|
2020 | ;; |
---|
2021 | [ab].out ) |
---|
2022 | # We found the default executable, but exeext='' is most |
---|
2023 | # certainly right. |
---|
2024 | break;; |
---|
2025 | *.* ) |
---|
2026 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2027 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2028 | # but it would be cool to find out if it's true. Does anybody |
---|
2029 | # maintain Libtool? --akim. |
---|
2030 | export ac_cv_exeext |
---|
2031 | break;; |
---|
2032 | * ) |
---|
2033 | break;; |
---|
2034 | esac |
---|
2035 | done |
---|
2036 | else |
---|
2037 | echo "$as_me: failed program was:" >&5 |
---|
2038 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2039 | |
---|
2040 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
2041 | See \`config.log' for more details." >&5 |
---|
2042 | echo "$as_me: error: C++ compiler cannot create executables |
---|
2043 | See \`config.log' for more details." >&2;} |
---|
2044 | { (exit 77); exit 77; }; } |
---|
2045 | fi |
---|
2046 | |
---|
2047 | ac_exeext=$ac_cv_exeext |
---|
2048 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2049 | echo "${ECHO_T}$ac_file" >&6 |
---|
2050 | |
---|
2051 | # Check the compiler produces executables we can run. If not, either |
---|
2052 | # the compiler is broken, or we cross compile. |
---|
2053 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
2054 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
2055 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2056 | # If not cross compiling, check that we can run a simple program. |
---|
2057 | if test "$cross_compiling" != yes; then |
---|
2058 | if { ac_try='./$ac_file' |
---|
2059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2060 | (eval $ac_try) 2>&5 |
---|
2061 | ac_status=$? |
---|
2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2063 | (exit $ac_status); }; }; then |
---|
2064 | cross_compiling=no |
---|
2065 | else |
---|
2066 | if test "$cross_compiling" = maybe; then |
---|
2067 | cross_compiling=yes |
---|
2068 | else |
---|
2069 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2070 | If you meant to cross compile, use \`--host'. |
---|
2071 | See \`config.log' for more details." >&5 |
---|
2072 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2073 | If you meant to cross compile, use \`--host'. |
---|
2074 | See \`config.log' for more details." >&2;} |
---|
2075 | { (exit 1); exit 1; }; } |
---|
2076 | fi |
---|
2077 | fi |
---|
2078 | fi |
---|
2079 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2080 | echo "${ECHO_T}yes" >&6 |
---|
2081 | |
---|
2082 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2083 | ac_clean_files=$ac_clean_files_save |
---|
2084 | # Check the compiler produces executables we can run. If not, either |
---|
2085 | # the compiler is broken, or we cross compile. |
---|
2086 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2087 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2088 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2089 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2090 | |
---|
2091 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2092 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2094 | (eval $ac_link) 2>&5 |
---|
2095 | ac_status=$? |
---|
2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2097 | (exit $ac_status); }; then |
---|
2098 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2099 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2100 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2101 | # `rm'. |
---|
2102 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2103 | test -f "$ac_file" || continue |
---|
2104 | case $ac_file in |
---|
2105 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2106 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2107 | export ac_cv_exeext |
---|
2108 | break;; |
---|
2109 | * ) break;; |
---|
2110 | esac |
---|
2111 | done |
---|
2112 | else |
---|
2113 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2114 | See \`config.log' for more details." >&5 |
---|
2115 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2116 | See \`config.log' for more details." >&2;} |
---|
2117 | { (exit 1); exit 1; }; } |
---|
2118 | fi |
---|
2119 | |
---|
2120 | rm -f conftest$ac_cv_exeext |
---|
2121 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2122 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2123 | |
---|
2124 | rm -f conftest.$ac_ext |
---|
2125 | EXEEXT=$ac_cv_exeext |
---|
2126 | ac_exeext=$EXEEXT |
---|
2127 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2128 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2129 | if test "${ac_cv_objext+set}" = set; then |
---|
2130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2131 | else |
---|
2132 | cat >conftest.$ac_ext <<_ACEOF |
---|
2133 | /* confdefs.h. */ |
---|
2134 | _ACEOF |
---|
2135 | cat confdefs.h >>conftest.$ac_ext |
---|
2136 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2137 | /* end confdefs.h. */ |
---|
2138 | |
---|
2139 | int |
---|
2140 | main () |
---|
2141 | { |
---|
2142 | |
---|
2143 | ; |
---|
2144 | return 0; |
---|
2145 | } |
---|
2146 | _ACEOF |
---|
2147 | rm -f conftest.o conftest.obj |
---|
2148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2149 | (eval $ac_compile) 2>&5 |
---|
2150 | ac_status=$? |
---|
2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2152 | (exit $ac_status); }; then |
---|
2153 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2154 | case $ac_file in |
---|
2155 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2156 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2157 | break;; |
---|
2158 | esac |
---|
2159 | done |
---|
2160 | else |
---|
2161 | echo "$as_me: failed program was:" >&5 |
---|
2162 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2163 | |
---|
2164 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2165 | See \`config.log' for more details." >&5 |
---|
2166 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2167 | See \`config.log' for more details." >&2;} |
---|
2168 | { (exit 1); exit 1; }; } |
---|
2169 | fi |
---|
2170 | |
---|
2171 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2172 | fi |
---|
2173 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2174 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2175 | OBJEXT=$ac_cv_objext |
---|
2176 | ac_objext=$OBJEXT |
---|
2177 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2178 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2179 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2181 | else |
---|
2182 | cat >conftest.$ac_ext <<_ACEOF |
---|
2183 | /* confdefs.h. */ |
---|
2184 | _ACEOF |
---|
2185 | cat confdefs.h >>conftest.$ac_ext |
---|
2186 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2187 | /* end confdefs.h. */ |
---|
2188 | |
---|
2189 | int |
---|
2190 | main () |
---|
2191 | { |
---|
2192 | #ifndef __GNUC__ |
---|
2193 | choke me |
---|
2194 | #endif |
---|
2195 | |
---|
2196 | ; |
---|
2197 | return 0; |
---|
2198 | } |
---|
2199 | _ACEOF |
---|
2200 | rm -f conftest.$ac_objext |
---|
2201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2202 | (eval $ac_compile) 2>conftest.er1 |
---|
2203 | ac_status=$? |
---|
2204 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2205 | rm -f conftest.er1 |
---|
2206 | cat conftest.err >&5 |
---|
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2208 | (exit $ac_status); } && |
---|
2209 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2210 | || test ! -s conftest.err' |
---|
2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2212 | (eval $ac_try) 2>&5 |
---|
2213 | ac_status=$? |
---|
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2215 | (exit $ac_status); }; } && |
---|
2216 | { ac_try='test -s conftest.$ac_objext' |
---|
2217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2218 | (eval $ac_try) 2>&5 |
---|
2219 | ac_status=$? |
---|
2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2221 | (exit $ac_status); }; }; then |
---|
2222 | ac_compiler_gnu=yes |
---|
2223 | else |
---|
2224 | echo "$as_me: failed program was:" >&5 |
---|
2225 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2226 | |
---|
2227 | ac_compiler_gnu=no |
---|
2228 | fi |
---|
2229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2230 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2231 | |
---|
2232 | fi |
---|
2233 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2234 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2235 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2236 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2237 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2238 | CXXFLAGS="-g" |
---|
2239 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2240 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2241 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2243 | else |
---|
2244 | cat >conftest.$ac_ext <<_ACEOF |
---|
2245 | /* confdefs.h. */ |
---|
2246 | _ACEOF |
---|
2247 | cat confdefs.h >>conftest.$ac_ext |
---|
2248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2249 | /* end confdefs.h. */ |
---|
2250 | |
---|
2251 | int |
---|
2252 | main () |
---|
2253 | { |
---|
2254 | |
---|
2255 | ; |
---|
2256 | return 0; |
---|
2257 | } |
---|
2258 | _ACEOF |
---|
2259 | rm -f conftest.$ac_objext |
---|
2260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2261 | (eval $ac_compile) 2>conftest.er1 |
---|
2262 | ac_status=$? |
---|
2263 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2264 | rm -f conftest.er1 |
---|
2265 | cat conftest.err >&5 |
---|
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2267 | (exit $ac_status); } && |
---|
2268 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2269 | || test ! -s conftest.err' |
---|
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2271 | (eval $ac_try) 2>&5 |
---|
2272 | ac_status=$? |
---|
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2274 | (exit $ac_status); }; } && |
---|
2275 | { ac_try='test -s conftest.$ac_objext' |
---|
2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2277 | (eval $ac_try) 2>&5 |
---|
2278 | ac_status=$? |
---|
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2280 | (exit $ac_status); }; }; then |
---|
2281 | ac_cv_prog_cxx_g=yes |
---|
2282 | else |
---|
2283 | echo "$as_me: failed program was:" >&5 |
---|
2284 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2285 | |
---|
2286 | ac_cv_prog_cxx_g=no |
---|
2287 | fi |
---|
2288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2289 | fi |
---|
2290 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2291 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2292 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2293 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2294 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2295 | if test "$GXX" = yes; then |
---|
2296 | CXXFLAGS="-g -O2" |
---|
2297 | else |
---|
2298 | CXXFLAGS="-g" |
---|
2299 | fi |
---|
2300 | else |
---|
2301 | if test "$GXX" = yes; then |
---|
2302 | CXXFLAGS="-O2" |
---|
2303 | else |
---|
2304 | CXXFLAGS= |
---|
2305 | fi |
---|
2306 | fi |
---|
2307 | for ac_declaration in \ |
---|
2308 | '' \ |
---|
2309 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2310 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2311 | 'extern "C" void exit (int) throw ();' \ |
---|
2312 | 'extern "C" void exit (int);' \ |
---|
2313 | 'void exit (int);' |
---|
2314 | do |
---|
2315 | cat >conftest.$ac_ext <<_ACEOF |
---|
2316 | /* confdefs.h. */ |
---|
2317 | _ACEOF |
---|
2318 | cat confdefs.h >>conftest.$ac_ext |
---|
2319 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2320 | /* end confdefs.h. */ |
---|
2321 | $ac_declaration |
---|
2322 | #include <stdlib.h> |
---|
2323 | int |
---|
2324 | main () |
---|
2325 | { |
---|
2326 | exit (42); |
---|
2327 | ; |
---|
2328 | return 0; |
---|
2329 | } |
---|
2330 | _ACEOF |
---|
2331 | rm -f conftest.$ac_objext |
---|
2332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2333 | (eval $ac_compile) 2>conftest.er1 |
---|
2334 | ac_status=$? |
---|
2335 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2336 | rm -f conftest.er1 |
---|
2337 | cat conftest.err >&5 |
---|
2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2339 | (exit $ac_status); } && |
---|
2340 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2341 | || test ! -s conftest.err' |
---|
2342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2343 | (eval $ac_try) 2>&5 |
---|
2344 | ac_status=$? |
---|
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2346 | (exit $ac_status); }; } && |
---|
2347 | { ac_try='test -s conftest.$ac_objext' |
---|
2348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2349 | (eval $ac_try) 2>&5 |
---|
2350 | ac_status=$? |
---|
2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2352 | (exit $ac_status); }; }; then |
---|
2353 | : |
---|
2354 | else |
---|
2355 | echo "$as_me: failed program was:" >&5 |
---|
2356 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2357 | |
---|
2358 | continue |
---|
2359 | fi |
---|
2360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2361 | cat >conftest.$ac_ext <<_ACEOF |
---|
2362 | /* confdefs.h. */ |
---|
2363 | _ACEOF |
---|
2364 | cat confdefs.h >>conftest.$ac_ext |
---|
2365 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2366 | /* end confdefs.h. */ |
---|
2367 | $ac_declaration |
---|
2368 | int |
---|
2369 | main () |
---|
2370 | { |
---|
2371 | exit (42); |
---|
2372 | ; |
---|
2373 | return 0; |
---|
2374 | } |
---|
2375 | _ACEOF |
---|
2376 | rm -f conftest.$ac_objext |
---|
2377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2378 | (eval $ac_compile) 2>conftest.er1 |
---|
2379 | ac_status=$? |
---|
2380 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2381 | rm -f conftest.er1 |
---|
2382 | cat conftest.err >&5 |
---|
2383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2384 | (exit $ac_status); } && |
---|
2385 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2386 | || test ! -s conftest.err' |
---|
2387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2388 | (eval $ac_try) 2>&5 |
---|
2389 | ac_status=$? |
---|
2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2391 | (exit $ac_status); }; } && |
---|
2392 | { ac_try='test -s conftest.$ac_objext' |
---|
2393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2394 | (eval $ac_try) 2>&5 |
---|
2395 | ac_status=$? |
---|
2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2397 | (exit $ac_status); }; }; then |
---|
2398 | break |
---|
2399 | else |
---|
2400 | echo "$as_me: failed program was:" >&5 |
---|
2401 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2402 | |
---|
2403 | fi |
---|
2404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2405 | done |
---|
2406 | rm -f conftest* |
---|
2407 | if test -n "$ac_declaration"; then |
---|
2408 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2409 | echo $ac_declaration >>confdefs.h |
---|
2410 | echo '#endif' >>confdefs.h |
---|
2411 | fi |
---|
2412 | |
---|
2413 | ac_ext=c |
---|
2414 | ac_cpp='$CPP $CPPFLAGS' |
---|
2415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2418 | DEPDIR="${am__leading_dot}deps" |
---|
2419 | |
---|
2420 | ac_config_commands="$ac_config_commands depfiles" |
---|
2421 | |
---|
2422 | |
---|
2423 | am_make=${MAKE-make} |
---|
2424 | cat > confinc << 'END' |
---|
2425 | am__doit: |
---|
2426 | @echo done |
---|
2427 | .PHONY: am__doit |
---|
2428 | END |
---|
2429 | # If we don't find an include directive, just comment out the code. |
---|
2430 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2431 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2432 | am__include="#" |
---|
2433 | am__quote= |
---|
2434 | _am_result=none |
---|
2435 | # First try GNU make style include. |
---|
2436 | echo "include confinc" > confmf |
---|
2437 | # We grep out `Entering directory' and `Leaving directory' |
---|
2438 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2439 | # In particular we don't look at `^make:' because GNU make might |
---|
2440 | # be invoked under some other name (usually "gmake"), in which |
---|
2441 | # case it prints its new name instead of `make'. |
---|
2442 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2443 | am__include=include |
---|
2444 | am__quote= |
---|
2445 | _am_result=GNU |
---|
2446 | fi |
---|
2447 | # Now try BSD make style include. |
---|
2448 | if test "$am__include" = "#"; then |
---|
2449 | echo '.include "confinc"' > confmf |
---|
2450 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2451 | am__include=.include |
---|
2452 | am__quote="\"" |
---|
2453 | _am_result=BSD |
---|
2454 | fi |
---|
2455 | fi |
---|
2456 | |
---|
2457 | |
---|
2458 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2459 | echo "${ECHO_T}$_am_result" >&6 |
---|
2460 | rm -f confinc confmf |
---|
2461 | |
---|
2462 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2463 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2464 | enableval="$enable_dependency_tracking" |
---|
2465 | |
---|
2466 | fi; |
---|
2467 | if test "x$enable_dependency_tracking" != xno; then |
---|
2468 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2469 | AMDEPBACKSLASH='\' |
---|
2470 | fi |
---|
2471 | |
---|
2472 | |
---|
2473 | if test "x$enable_dependency_tracking" != xno; then |
---|
2474 | AMDEP_TRUE= |
---|
2475 | AMDEP_FALSE='#' |
---|
2476 | else |
---|
2477 | AMDEP_TRUE='#' |
---|
2478 | AMDEP_FALSE= |
---|
2479 | fi |
---|
2480 | |
---|
2481 | |
---|
2482 | |
---|
2483 | |
---|
2484 | depcc="$CXX" am_compiler_list= |
---|
2485 | |
---|
2486 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2487 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2488 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2490 | else |
---|
2491 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2492 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2493 | # making bogus files that we don't know about and never remove. For |
---|
2494 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2495 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2496 | # in D'. |
---|
2497 | mkdir conftest.dir |
---|
2498 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2499 | # using a relative directory. |
---|
2500 | cp "$am_depcomp" conftest.dir |
---|
2501 | cd conftest.dir |
---|
2502 | # We will build objects and dependencies in a subdirectory because |
---|
2503 | # it helps to detect inapplicable dependency modes. For instance |
---|
2504 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2505 | # side effect of compilation, but ICC will put the dependencies in |
---|
2506 | # the current directory while Tru64 will put them in the object |
---|
2507 | # directory. |
---|
2508 | mkdir sub |
---|
2509 | |
---|
2510 | am_cv_CXX_dependencies_compiler_type=none |
---|
2511 | if test "$am_compiler_list" = ""; then |
---|
2512 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2513 | fi |
---|
2514 | for depmode in $am_compiler_list; do |
---|
2515 | # Setup a source with many dependencies, because some compilers |
---|
2516 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2517 | # we should not choose a depcomp mode which is confused by this. |
---|
2518 | # |
---|
2519 | # We need to recreate these files for each test, as the compiler may |
---|
2520 | # overwrite some of them when testing with obscure command lines. |
---|
2521 | # This happens at least with the AIX C compiler. |
---|
2522 | : > sub/conftest.c |
---|
2523 | for i in 1 2 3 4 5 6; do |
---|
2524 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2525 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
2526 | # Solaris 8's {/usr,}/bin/sh. |
---|
2527 | touch sub/conftst$i.h |
---|
2528 | done |
---|
2529 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2530 | |
---|
2531 | case $depmode in |
---|
2532 | nosideeffect) |
---|
2533 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2534 | # only be used when explicitly requested |
---|
2535 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2536 | continue |
---|
2537 | else |
---|
2538 | break |
---|
2539 | fi |
---|
2540 | ;; |
---|
2541 | none) break ;; |
---|
2542 | esac |
---|
2543 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2544 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2545 | # handle `-M -o', and we need to detect this. |
---|
2546 | if depmode=$depmode \ |
---|
2547 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2548 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2549 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2550 | >/dev/null 2>conftest.err && |
---|
2551 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2552 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2553 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2554 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2555 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
2556 | # that says an option was ignored or not supported. |
---|
2557 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
2558 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
2559 | # The diagnosis changed in icc 8.0: |
---|
2560 | # icc: Command line remark: option '-MP' not supported |
---|
2561 | if (grep 'ignoring option' conftest.err || |
---|
2562 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
2563 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2564 | break |
---|
2565 | fi |
---|
2566 | fi |
---|
2567 | done |
---|
2568 | |
---|
2569 | cd .. |
---|
2570 | rm -rf conftest.dir |
---|
2571 | else |
---|
2572 | am_cv_CXX_dependencies_compiler_type=none |
---|
2573 | fi |
---|
2574 | |
---|
2575 | fi |
---|
2576 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2577 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2578 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2579 | |
---|
2580 | |
---|
2581 | |
---|
2582 | if |
---|
2583 | test "x$enable_dependency_tracking" != xno \ |
---|
2584 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2585 | am__fastdepCXX_TRUE= |
---|
2586 | am__fastdepCXX_FALSE='#' |
---|
2587 | else |
---|
2588 | am__fastdepCXX_TRUE='#' |
---|
2589 | am__fastdepCXX_FALSE= |
---|
2590 | fi |
---|
2591 | |
---|
2592 | |
---|
2593 | if test -n "$ac_tool_prefix"; then |
---|
2594 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2595 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2598 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
2599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2600 | else |
---|
2601 | if test -n "$RANLIB"; then |
---|
2602 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2603 | else |
---|
2604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2605 | for as_dir in $PATH |
---|
2606 | do |
---|
2607 | IFS=$as_save_IFS |
---|
2608 | test -z "$as_dir" && as_dir=. |
---|
2609 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2611 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2613 | break 2 |
---|
2614 | fi |
---|
2615 | done |
---|
2616 | done |
---|
2617 | |
---|
2618 | fi |
---|
2619 | fi |
---|
2620 | RANLIB=$ac_cv_prog_RANLIB |
---|
2621 | if test -n "$RANLIB"; then |
---|
2622 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
2623 | echo "${ECHO_T}$RANLIB" >&6 |
---|
2624 | else |
---|
2625 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2626 | echo "${ECHO_T}no" >&6 |
---|
2627 | fi |
---|
2628 | |
---|
2629 | fi |
---|
2630 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2631 | ac_ct_RANLIB=$RANLIB |
---|
2632 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2633 | set dummy ranlib; ac_word=$2 |
---|
2634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2636 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
2637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2638 | else |
---|
2639 | if test -n "$ac_ct_RANLIB"; then |
---|
2640 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2641 | else |
---|
2642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2643 | for as_dir in $PATH |
---|
2644 | do |
---|
2645 | IFS=$as_save_IFS |
---|
2646 | test -z "$as_dir" && as_dir=. |
---|
2647 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2649 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2651 | break 2 |
---|
2652 | fi |
---|
2653 | done |
---|
2654 | done |
---|
2655 | |
---|
2656 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
2657 | fi |
---|
2658 | fi |
---|
2659 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2660 | if test -n "$ac_ct_RANLIB"; then |
---|
2661 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
2662 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
2663 | else |
---|
2664 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2665 | echo "${ECHO_T}no" >&6 |
---|
2666 | fi |
---|
2667 | |
---|
2668 | RANLIB=$ac_ct_RANLIB |
---|
2669 | else |
---|
2670 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2671 | fi |
---|
2672 | |
---|
2673 | ac_ext=c |
---|
2674 | ac_cpp='$CPP $CPPFLAGS' |
---|
2675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2678 | if test -n "$ac_tool_prefix"; then |
---|
2679 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2680 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2681 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2683 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2685 | else |
---|
2686 | if test -n "$CC"; then |
---|
2687 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2688 | else |
---|
2689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2690 | for as_dir in $PATH |
---|
2691 | do |
---|
2692 | IFS=$as_save_IFS |
---|
2693 | test -z "$as_dir" && as_dir=. |
---|
2694 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2695 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2696 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2698 | break 2 |
---|
2699 | fi |
---|
2700 | done |
---|
2701 | done |
---|
2702 | |
---|
2703 | fi |
---|
2704 | fi |
---|
2705 | CC=$ac_cv_prog_CC |
---|
2706 | if test -n "$CC"; then |
---|
2707 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2708 | echo "${ECHO_T}$CC" >&6 |
---|
2709 | else |
---|
2710 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2711 | echo "${ECHO_T}no" >&6 |
---|
2712 | fi |
---|
2713 | |
---|
2714 | fi |
---|
2715 | if test -z "$ac_cv_prog_CC"; then |
---|
2716 | ac_ct_CC=$CC |
---|
2717 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2718 | set dummy gcc; ac_word=$2 |
---|
2719 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2721 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2723 | else |
---|
2724 | if test -n "$ac_ct_CC"; then |
---|
2725 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2726 | else |
---|
2727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2728 | for as_dir in $PATH |
---|
2729 | do |
---|
2730 | IFS=$as_save_IFS |
---|
2731 | test -z "$as_dir" && as_dir=. |
---|
2732 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2733 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2734 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2736 | break 2 |
---|
2737 | fi |
---|
2738 | done |
---|
2739 | done |
---|
2740 | |
---|
2741 | fi |
---|
2742 | fi |
---|
2743 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2744 | if test -n "$ac_ct_CC"; then |
---|
2745 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2746 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2747 | else |
---|
2748 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2749 | echo "${ECHO_T}no" >&6 |
---|
2750 | fi |
---|
2751 | |
---|
2752 | CC=$ac_ct_CC |
---|
2753 | else |
---|
2754 | CC="$ac_cv_prog_CC" |
---|
2755 | fi |
---|
2756 | |
---|
2757 | if test -z "$CC"; then |
---|
2758 | if test -n "$ac_tool_prefix"; then |
---|
2759 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2760 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2761 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2763 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2765 | else |
---|
2766 | if test -n "$CC"; then |
---|
2767 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2768 | else |
---|
2769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2770 | for as_dir in $PATH |
---|
2771 | do |
---|
2772 | IFS=$as_save_IFS |
---|
2773 | test -z "$as_dir" && as_dir=. |
---|
2774 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2775 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2776 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2778 | break 2 |
---|
2779 | fi |
---|
2780 | done |
---|
2781 | done |
---|
2782 | |
---|
2783 | fi |
---|
2784 | fi |
---|
2785 | CC=$ac_cv_prog_CC |
---|
2786 | if test -n "$CC"; then |
---|
2787 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2788 | echo "${ECHO_T}$CC" >&6 |
---|
2789 | else |
---|
2790 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2791 | echo "${ECHO_T}no" >&6 |
---|
2792 | fi |
---|
2793 | |
---|
2794 | fi |
---|
2795 | if test -z "$ac_cv_prog_CC"; then |
---|
2796 | ac_ct_CC=$CC |
---|
2797 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2798 | set dummy cc; ac_word=$2 |
---|
2799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2801 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2803 | else |
---|
2804 | if test -n "$ac_ct_CC"; then |
---|
2805 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2806 | else |
---|
2807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2808 | for as_dir in $PATH |
---|
2809 | do |
---|
2810 | IFS=$as_save_IFS |
---|
2811 | test -z "$as_dir" && as_dir=. |
---|
2812 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2814 | ac_cv_prog_ac_ct_CC="cc" |
---|
2815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2816 | break 2 |
---|
2817 | fi |
---|
2818 | done |
---|
2819 | done |
---|
2820 | |
---|
2821 | fi |
---|
2822 | fi |
---|
2823 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2824 | if test -n "$ac_ct_CC"; then |
---|
2825 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2826 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2827 | else |
---|
2828 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2829 | echo "${ECHO_T}no" >&6 |
---|
2830 | fi |
---|
2831 | |
---|
2832 | CC=$ac_ct_CC |
---|
2833 | else |
---|
2834 | CC="$ac_cv_prog_CC" |
---|
2835 | fi |
---|
2836 | |
---|
2837 | fi |
---|
2838 | if test -z "$CC"; then |
---|
2839 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2840 | set dummy cc; ac_word=$2 |
---|
2841 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2843 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2845 | else |
---|
2846 | if test -n "$CC"; then |
---|
2847 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2848 | else |
---|
2849 | ac_prog_rejected=no |
---|
2850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2851 | for as_dir in $PATH |
---|
2852 | do |
---|
2853 | IFS=$as_save_IFS |
---|
2854 | test -z "$as_dir" && as_dir=. |
---|
2855 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2856 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2857 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2858 | ac_prog_rejected=yes |
---|
2859 | continue |
---|
2860 | fi |
---|
2861 | ac_cv_prog_CC="cc" |
---|
2862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2863 | break 2 |
---|
2864 | fi |
---|
2865 | done |
---|
2866 | done |
---|
2867 | |
---|
2868 | if test $ac_prog_rejected = yes; then |
---|
2869 | # We found a bogon in the path, so make sure we never use it. |
---|
2870 | set dummy $ac_cv_prog_CC |
---|
2871 | shift |
---|
2872 | if test $# != 0; then |
---|
2873 | # We chose a different compiler from the bogus one. |
---|
2874 | # However, it has the same basename, so the bogon will be chosen |
---|
2875 | # first if we set CC to just the basename; use the full file name. |
---|
2876 | shift |
---|
2877 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2878 | fi |
---|
2879 | fi |
---|
2880 | fi |
---|
2881 | fi |
---|
2882 | CC=$ac_cv_prog_CC |
---|
2883 | if test -n "$CC"; then |
---|
2884 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2885 | echo "${ECHO_T}$CC" >&6 |
---|
2886 | else |
---|
2887 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2888 | echo "${ECHO_T}no" >&6 |
---|
2889 | fi |
---|
2890 | |
---|
2891 | fi |
---|
2892 | if test -z "$CC"; then |
---|
2893 | if test -n "$ac_tool_prefix"; then |
---|
2894 | for ac_prog in cl |
---|
2895 | do |
---|
2896 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2897 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2898 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2900 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2902 | else |
---|
2903 | if test -n "$CC"; then |
---|
2904 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2905 | else |
---|
2906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2907 | for as_dir in $PATH |
---|
2908 | do |
---|
2909 | IFS=$as_save_IFS |
---|
2910 | test -z "$as_dir" && as_dir=. |
---|
2911 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2912 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2913 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2915 | break 2 |
---|
2916 | fi |
---|
2917 | done |
---|
2918 | done |
---|
2919 | |
---|
2920 | fi |
---|
2921 | fi |
---|
2922 | CC=$ac_cv_prog_CC |
---|
2923 | if test -n "$CC"; then |
---|
2924 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2925 | echo "${ECHO_T}$CC" >&6 |
---|
2926 | else |
---|
2927 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2928 | echo "${ECHO_T}no" >&6 |
---|
2929 | fi |
---|
2930 | |
---|
2931 | test -n "$CC" && break |
---|
2932 | done |
---|
2933 | fi |
---|
2934 | if test -z "$CC"; then |
---|
2935 | ac_ct_CC=$CC |
---|
2936 | for ac_prog in cl |
---|
2937 | do |
---|
2938 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2939 | set dummy $ac_prog; ac_word=$2 |
---|
2940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2942 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2944 | else |
---|
2945 | if test -n "$ac_ct_CC"; then |
---|
2946 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2947 | else |
---|
2948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2949 | for as_dir in $PATH |
---|
2950 | do |
---|
2951 | IFS=$as_save_IFS |
---|
2952 | test -z "$as_dir" && as_dir=. |
---|
2953 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2955 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2957 | break 2 |
---|
2958 | fi |
---|
2959 | done |
---|
2960 | done |
---|
2961 | |
---|
2962 | fi |
---|
2963 | fi |
---|
2964 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2965 | if test -n "$ac_ct_CC"; then |
---|
2966 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2967 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2968 | else |
---|
2969 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2970 | echo "${ECHO_T}no" >&6 |
---|
2971 | fi |
---|
2972 | |
---|
2973 | test -n "$ac_ct_CC" && break |
---|
2974 | done |
---|
2975 | |
---|
2976 | CC=$ac_ct_CC |
---|
2977 | fi |
---|
2978 | |
---|
2979 | fi |
---|
2980 | |
---|
2981 | |
---|
2982 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2983 | See \`config.log' for more details." >&5 |
---|
2984 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2985 | See \`config.log' for more details." >&2;} |
---|
2986 | { (exit 1); exit 1; }; } |
---|
2987 | |
---|
2988 | # Provide some information about the compiler. |
---|
2989 | echo "$as_me:$LINENO:" \ |
---|
2990 | "checking for C compiler version" >&5 |
---|
2991 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2992 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2993 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2994 | ac_status=$? |
---|
2995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2996 | (exit $ac_status); } |
---|
2997 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2998 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2999 | ac_status=$? |
---|
3000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3001 | (exit $ac_status); } |
---|
3002 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3003 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3004 | ac_status=$? |
---|
3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3006 | (exit $ac_status); } |
---|
3007 | |
---|
3008 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
3009 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
3010 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
3011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3012 | else |
---|
3013 | cat >conftest.$ac_ext <<_ACEOF |
---|
3014 | /* confdefs.h. */ |
---|
3015 | _ACEOF |
---|
3016 | cat confdefs.h >>conftest.$ac_ext |
---|
3017 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3018 | /* end confdefs.h. */ |
---|
3019 | |
---|
3020 | int |
---|
3021 | main () |
---|
3022 | { |
---|
3023 | #ifndef __GNUC__ |
---|
3024 | choke me |
---|
3025 | #endif |
---|
3026 | |
---|
3027 | ; |
---|
3028 | return 0; |
---|
3029 | } |
---|
3030 | _ACEOF |
---|
3031 | rm -f conftest.$ac_objext |
---|
3032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3033 | (eval $ac_compile) 2>conftest.er1 |
---|
3034 | ac_status=$? |
---|
3035 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3036 | rm -f conftest.er1 |
---|
3037 | cat conftest.err >&5 |
---|
3038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3039 | (exit $ac_status); } && |
---|
3040 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3041 | || test ! -s conftest.err' |
---|
3042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3043 | (eval $ac_try) 2>&5 |
---|
3044 | ac_status=$? |
---|
3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3046 | (exit $ac_status); }; } && |
---|
3047 | { ac_try='test -s conftest.$ac_objext' |
---|
3048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3049 | (eval $ac_try) 2>&5 |
---|
3050 | ac_status=$? |
---|
3051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3052 | (exit $ac_status); }; }; then |
---|
3053 | ac_compiler_gnu=yes |
---|
3054 | else |
---|
3055 | echo "$as_me: failed program was:" >&5 |
---|
3056 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3057 | |
---|
3058 | ac_compiler_gnu=no |
---|
3059 | fi |
---|
3060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3061 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3062 | |
---|
3063 | fi |
---|
3064 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3065 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
3066 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
3067 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3068 | ac_save_CFLAGS=$CFLAGS |
---|
3069 | CFLAGS="-g" |
---|
3070 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
3071 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
3072 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
3073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3074 | else |
---|
3075 | cat >conftest.$ac_ext <<_ACEOF |
---|
3076 | /* confdefs.h. */ |
---|
3077 | _ACEOF |
---|
3078 | cat confdefs.h >>conftest.$ac_ext |
---|
3079 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3080 | /* end confdefs.h. */ |
---|
3081 | |
---|
3082 | int |
---|
3083 | main () |
---|
3084 | { |
---|
3085 | |
---|
3086 | ; |
---|
3087 | return 0; |
---|
3088 | } |
---|
3089 | _ACEOF |
---|
3090 | rm -f conftest.$ac_objext |
---|
3091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3092 | (eval $ac_compile) 2>conftest.er1 |
---|
3093 | ac_status=$? |
---|
3094 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3095 | rm -f conftest.er1 |
---|
3096 | cat conftest.err >&5 |
---|
3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3098 | (exit $ac_status); } && |
---|
3099 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3100 | || test ! -s conftest.err' |
---|
3101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3102 | (eval $ac_try) 2>&5 |
---|
3103 | ac_status=$? |
---|
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3105 | (exit $ac_status); }; } && |
---|
3106 | { ac_try='test -s conftest.$ac_objext' |
---|
3107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3108 | (eval $ac_try) 2>&5 |
---|
3109 | ac_status=$? |
---|
3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3111 | (exit $ac_status); }; }; then |
---|
3112 | ac_cv_prog_cc_g=yes |
---|
3113 | else |
---|
3114 | echo "$as_me: failed program was:" >&5 |
---|
3115 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3116 | |
---|
3117 | ac_cv_prog_cc_g=no |
---|
3118 | fi |
---|
3119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3120 | fi |
---|
3121 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3122 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
3123 | if test "$ac_test_CFLAGS" = set; then |
---|
3124 | CFLAGS=$ac_save_CFLAGS |
---|
3125 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3126 | if test "$GCC" = yes; then |
---|
3127 | CFLAGS="-g -O2" |
---|
3128 | else |
---|
3129 | CFLAGS="-g" |
---|
3130 | fi |
---|
3131 | else |
---|
3132 | if test "$GCC" = yes; then |
---|
3133 | CFLAGS="-O2" |
---|
3134 | else |
---|
3135 | CFLAGS= |
---|
3136 | fi |
---|
3137 | fi |
---|
3138 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3139 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3140 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3142 | else |
---|
3143 | ac_cv_prog_cc_stdc=no |
---|
3144 | ac_save_CC=$CC |
---|
3145 | cat >conftest.$ac_ext <<_ACEOF |
---|
3146 | /* confdefs.h. */ |
---|
3147 | _ACEOF |
---|
3148 | cat confdefs.h >>conftest.$ac_ext |
---|
3149 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3150 | /* end confdefs.h. */ |
---|
3151 | #include <stdarg.h> |
---|
3152 | #include <stdio.h> |
---|
3153 | #include <sys/types.h> |
---|
3154 | #include <sys/stat.h> |
---|
3155 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3156 | struct buf { int x; }; |
---|
3157 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3158 | static char *e (p, i) |
---|
3159 | char **p; |
---|
3160 | int i; |
---|
3161 | { |
---|
3162 | return p[i]; |
---|
3163 | } |
---|
3164 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3165 | { |
---|
3166 | char *s; |
---|
3167 | va_list v; |
---|
3168 | va_start (v,p); |
---|
3169 | s = g (p, va_arg (v,int)); |
---|
3170 | va_end (v); |
---|
3171 | return s; |
---|
3172 | } |
---|
3173 | |
---|
3174 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3175 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3176 | These don't provoke an error unfortunately, instead are silently treated |
---|
3177 | as 'x'. The following induces an error, until -std1 is added to get |
---|
3178 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3179 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3180 | that's true only with -std1. */ |
---|
3181 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3182 | |
---|
3183 | int test (int i, double x); |
---|
3184 | struct s1 {int (*f) (int a);}; |
---|
3185 | struct s2 {int (*f) (double a);}; |
---|
3186 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3187 | int argc; |
---|
3188 | char **argv; |
---|
3189 | int |
---|
3190 | main () |
---|
3191 | { |
---|
3192 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3193 | ; |
---|
3194 | return 0; |
---|
3195 | } |
---|
3196 | _ACEOF |
---|
3197 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3198 | # breaks some systems' header files. |
---|
3199 | # AIX -qlanglvl=ansi |
---|
3200 | # Ultrix and OSF/1 -std1 |
---|
3201 | # HP-UX 10.20 and later -Ae |
---|
3202 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3203 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3204 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3205 | do |
---|
3206 | CC="$ac_save_CC $ac_arg" |
---|
3207 | rm -f conftest.$ac_objext |
---|
3208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3209 | (eval $ac_compile) 2>conftest.er1 |
---|
3210 | ac_status=$? |
---|
3211 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3212 | rm -f conftest.er1 |
---|
3213 | cat conftest.err >&5 |
---|
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3215 | (exit $ac_status); } && |
---|
3216 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3217 | || test ! -s conftest.err' |
---|
3218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3219 | (eval $ac_try) 2>&5 |
---|
3220 | ac_status=$? |
---|
3221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3222 | (exit $ac_status); }; } && |
---|
3223 | { ac_try='test -s conftest.$ac_objext' |
---|
3224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3225 | (eval $ac_try) 2>&5 |
---|
3226 | ac_status=$? |
---|
3227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3228 | (exit $ac_status); }; }; then |
---|
3229 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3230 | break |
---|
3231 | else |
---|
3232 | echo "$as_me: failed program was:" >&5 |
---|
3233 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3234 | |
---|
3235 | fi |
---|
3236 | rm -f conftest.err conftest.$ac_objext |
---|
3237 | done |
---|
3238 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3239 | CC=$ac_save_CC |
---|
3240 | |
---|
3241 | fi |
---|
3242 | |
---|
3243 | case "x$ac_cv_prog_cc_stdc" in |
---|
3244 | x|xno) |
---|
3245 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3246 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3247 | *) |
---|
3248 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3249 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3250 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3251 | esac |
---|
3252 | |
---|
3253 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3254 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3255 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3256 | # the declaration of exit, since it's the most demanding environment. |
---|
3257 | cat >conftest.$ac_ext <<_ACEOF |
---|
3258 | #ifndef __cplusplus |
---|
3259 | choke me |
---|
3260 | #endif |
---|
3261 | _ACEOF |
---|
3262 | rm -f conftest.$ac_objext |
---|
3263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3264 | (eval $ac_compile) 2>conftest.er1 |
---|
3265 | ac_status=$? |
---|
3266 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3267 | rm -f conftest.er1 |
---|
3268 | cat conftest.err >&5 |
---|
3269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3270 | (exit $ac_status); } && |
---|
3271 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3272 | || test ! -s conftest.err' |
---|
3273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3274 | (eval $ac_try) 2>&5 |
---|
3275 | ac_status=$? |
---|
3276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3277 | (exit $ac_status); }; } && |
---|
3278 | { ac_try='test -s conftest.$ac_objext' |
---|
3279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3280 | (eval $ac_try) 2>&5 |
---|
3281 | ac_status=$? |
---|
3282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3283 | (exit $ac_status); }; }; then |
---|
3284 | for ac_declaration in \ |
---|
3285 | '' \ |
---|
3286 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3287 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3288 | 'extern "C" void exit (int) throw ();' \ |
---|
3289 | 'extern "C" void exit (int);' \ |
---|
3290 | 'void exit (int);' |
---|
3291 | do |
---|
3292 | cat >conftest.$ac_ext <<_ACEOF |
---|
3293 | /* confdefs.h. */ |
---|
3294 | _ACEOF |
---|
3295 | cat confdefs.h >>conftest.$ac_ext |
---|
3296 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3297 | /* end confdefs.h. */ |
---|
3298 | $ac_declaration |
---|
3299 | #include <stdlib.h> |
---|
3300 | int |
---|
3301 | main () |
---|
3302 | { |
---|
3303 | exit (42); |
---|
3304 | ; |
---|
3305 | return 0; |
---|
3306 | } |
---|
3307 | _ACEOF |
---|
3308 | rm -f conftest.$ac_objext |
---|
3309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3310 | (eval $ac_compile) 2>conftest.er1 |
---|
3311 | ac_status=$? |
---|
3312 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3313 | rm -f conftest.er1 |
---|
3314 | cat conftest.err >&5 |
---|
3315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3316 | (exit $ac_status); } && |
---|
3317 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3318 | || test ! -s conftest.err' |
---|
3319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3320 | (eval $ac_try) 2>&5 |
---|
3321 | ac_status=$? |
---|
3322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3323 | (exit $ac_status); }; } && |
---|
3324 | { ac_try='test -s conftest.$ac_objext' |
---|
3325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3326 | (eval $ac_try) 2>&5 |
---|
3327 | ac_status=$? |
---|
3328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3329 | (exit $ac_status); }; }; then |
---|
3330 | : |
---|
3331 | else |
---|
3332 | echo "$as_me: failed program was:" >&5 |
---|
3333 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3334 | |
---|
3335 | continue |
---|
3336 | fi |
---|
3337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3338 | cat >conftest.$ac_ext <<_ACEOF |
---|
3339 | /* confdefs.h. */ |
---|
3340 | _ACEOF |
---|
3341 | cat confdefs.h >>conftest.$ac_ext |
---|
3342 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3343 | /* end confdefs.h. */ |
---|
3344 | $ac_declaration |
---|
3345 | int |
---|
3346 | main () |
---|
3347 | { |
---|
3348 | exit (42); |
---|
3349 | ; |
---|
3350 | return 0; |
---|
3351 | } |
---|
3352 | _ACEOF |
---|
3353 | rm -f conftest.$ac_objext |
---|
3354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3355 | (eval $ac_compile) 2>conftest.er1 |
---|
3356 | ac_status=$? |
---|
3357 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3358 | rm -f conftest.er1 |
---|
3359 | cat conftest.err >&5 |
---|
3360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3361 | (exit $ac_status); } && |
---|
3362 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3363 | || test ! -s conftest.err' |
---|
3364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3365 | (eval $ac_try) 2>&5 |
---|
3366 | ac_status=$? |
---|
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3368 | (exit $ac_status); }; } && |
---|
3369 | { ac_try='test -s conftest.$ac_objext' |
---|
3370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3371 | (eval $ac_try) 2>&5 |
---|
3372 | ac_status=$? |
---|
3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3374 | (exit $ac_status); }; }; then |
---|
3375 | break |
---|
3376 | else |
---|
3377 | echo "$as_me: failed program was:" >&5 |
---|
3378 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3379 | |
---|
3380 | fi |
---|
3381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3382 | done |
---|
3383 | rm -f conftest* |
---|
3384 | if test -n "$ac_declaration"; then |
---|
3385 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3386 | echo $ac_declaration >>confdefs.h |
---|
3387 | echo '#endif' >>confdefs.h |
---|
3388 | fi |
---|
3389 | |
---|
3390 | else |
---|
3391 | echo "$as_me: failed program was:" >&5 |
---|
3392 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3393 | |
---|
3394 | fi |
---|
3395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3396 | ac_ext=c |
---|
3397 | ac_cpp='$CPP $CPPFLAGS' |
---|
3398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3401 | |
---|
3402 | depcc="$CC" am_compiler_list= |
---|
3403 | |
---|
3404 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3405 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3406 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3408 | else |
---|
3409 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3410 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3411 | # making bogus files that we don't know about and never remove. For |
---|
3412 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3413 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3414 | # in D'. |
---|
3415 | mkdir conftest.dir |
---|
3416 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3417 | # using a relative directory. |
---|
3418 | cp "$am_depcomp" conftest.dir |
---|
3419 | cd conftest.dir |
---|
3420 | # We will build objects and dependencies in a subdirectory because |
---|
3421 | # it helps to detect inapplicable dependency modes. For instance |
---|
3422 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3423 | # side effect of compilation, but ICC will put the dependencies in |
---|
3424 | # the current directory while Tru64 will put them in the object |
---|
3425 | # directory. |
---|
3426 | mkdir sub |
---|
3427 | |
---|
3428 | am_cv_CC_dependencies_compiler_type=none |
---|
3429 | if test "$am_compiler_list" = ""; then |
---|
3430 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3431 | fi |
---|
3432 | for depmode in $am_compiler_list; do |
---|
3433 | # Setup a source with many dependencies, because some compilers |
---|
3434 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3435 | # we should not choose a depcomp mode which is confused by this. |
---|
3436 | # |
---|
3437 | # We need to recreate these files for each test, as the compiler may |
---|
3438 | # overwrite some of them when testing with obscure command lines. |
---|
3439 | # This happens at least with the AIX C compiler. |
---|
3440 | : > sub/conftest.c |
---|
3441 | for i in 1 2 3 4 5 6; do |
---|
3442 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3443 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3444 | # Solaris 8's {/usr,}/bin/sh. |
---|
3445 | touch sub/conftst$i.h |
---|
3446 | done |
---|
3447 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3448 | |
---|
3449 | case $depmode in |
---|
3450 | nosideeffect) |
---|
3451 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3452 | # only be used when explicitly requested |
---|
3453 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3454 | continue |
---|
3455 | else |
---|
3456 | break |
---|
3457 | fi |
---|
3458 | ;; |
---|
3459 | none) break ;; |
---|
3460 | esac |
---|
3461 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3462 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3463 | # handle `-M -o', and we need to detect this. |
---|
3464 | if depmode=$depmode \ |
---|
3465 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3466 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3467 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3468 | >/dev/null 2>conftest.err && |
---|
3469 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3470 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3471 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3472 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3473 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3474 | # that says an option was ignored or not supported. |
---|
3475 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3476 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3477 | # The diagnosis changed in icc 8.0: |
---|
3478 | # icc: Command line remark: option '-MP' not supported |
---|
3479 | if (grep 'ignoring option' conftest.err || |
---|
3480 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3481 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3482 | break |
---|
3483 | fi |
---|
3484 | fi |
---|
3485 | done |
---|
3486 | |
---|
3487 | cd .. |
---|
3488 | rm -rf conftest.dir |
---|
3489 | else |
---|
3490 | am_cv_CC_dependencies_compiler_type=none |
---|
3491 | fi |
---|
3492 | |
---|
3493 | fi |
---|
3494 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3495 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3496 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3497 | |
---|
3498 | |
---|
3499 | |
---|
3500 | if |
---|
3501 | test "x$enable_dependency_tracking" != xno \ |
---|
3502 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3503 | am__fastdepCC_TRUE= |
---|
3504 | am__fastdepCC_FALSE='#' |
---|
3505 | else |
---|
3506 | am__fastdepCC_TRUE='#' |
---|
3507 | am__fastdepCC_FALSE= |
---|
3508 | fi |
---|
3509 | |
---|
3510 | |
---|
3511 | |
---|
3512 | ac_ext=c |
---|
3513 | ac_cpp='$CPP $CPPFLAGS' |
---|
3514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3517 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3518 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3519 | # On Suns, sometimes $CPP names a directory. |
---|
3520 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3521 | CPP= |
---|
3522 | fi |
---|
3523 | if test -z "$CPP"; then |
---|
3524 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3526 | else |
---|
3527 | # Double quotes because CPP needs to be expanded |
---|
3528 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3529 | do |
---|
3530 | ac_preproc_ok=false |
---|
3531 | for ac_c_preproc_warn_flag in '' yes |
---|
3532 | do |
---|
3533 | # Use a header file that comes with gcc, so configuring glibc |
---|
3534 | # with a fresh cross-compiler works. |
---|
3535 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3536 | # <limits.h> exists even on freestanding compilers. |
---|
3537 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3538 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3539 | cat >conftest.$ac_ext <<_ACEOF |
---|
3540 | /* confdefs.h. */ |
---|
3541 | _ACEOF |
---|
3542 | cat confdefs.h >>conftest.$ac_ext |
---|
3543 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3544 | /* end confdefs.h. */ |
---|
3545 | #ifdef __STDC__ |
---|
3546 | # include <limits.h> |
---|
3547 | #else |
---|
3548 | # include <assert.h> |
---|
3549 | #endif |
---|
3550 | Syntax error |
---|
3551 | _ACEOF |
---|
3552 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3553 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3554 | ac_status=$? |
---|
3555 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3556 | rm -f conftest.er1 |
---|
3557 | cat conftest.err >&5 |
---|
3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3559 | (exit $ac_status); } >/dev/null; then |
---|
3560 | if test -s conftest.err; then |
---|
3561 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3562 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3563 | else |
---|
3564 | ac_cpp_err= |
---|
3565 | fi |
---|
3566 | else |
---|
3567 | ac_cpp_err=yes |
---|
3568 | fi |
---|
3569 | if test -z "$ac_cpp_err"; then |
---|
3570 | : |
---|
3571 | else |
---|
3572 | echo "$as_me: failed program was:" >&5 |
---|
3573 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3574 | |
---|
3575 | # Broken: fails on valid input. |
---|
3576 | continue |
---|
3577 | fi |
---|
3578 | rm -f conftest.err conftest.$ac_ext |
---|
3579 | |
---|
3580 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3581 | # can be detected and how. |
---|
3582 | cat >conftest.$ac_ext <<_ACEOF |
---|
3583 | /* confdefs.h. */ |
---|
3584 | _ACEOF |
---|
3585 | cat confdefs.h >>conftest.$ac_ext |
---|
3586 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3587 | /* end confdefs.h. */ |
---|
3588 | #include <ac_nonexistent.h> |
---|
3589 | _ACEOF |
---|
3590 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3591 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3592 | ac_status=$? |
---|
3593 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3594 | rm -f conftest.er1 |
---|
3595 | cat conftest.err >&5 |
---|
3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3597 | (exit $ac_status); } >/dev/null; then |
---|
3598 | if test -s conftest.err; then |
---|
3599 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3600 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3601 | else |
---|
3602 | ac_cpp_err= |
---|
3603 | fi |
---|
3604 | else |
---|
3605 | ac_cpp_err=yes |
---|
3606 | fi |
---|
3607 | if test -z "$ac_cpp_err"; then |
---|
3608 | # Broken: success on invalid input. |
---|
3609 | continue |
---|
3610 | else |
---|
3611 | echo "$as_me: failed program was:" >&5 |
---|
3612 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3613 | |
---|
3614 | # Passes both tests. |
---|
3615 | ac_preproc_ok=: |
---|
3616 | break |
---|
3617 | fi |
---|
3618 | rm -f conftest.err conftest.$ac_ext |
---|
3619 | |
---|
3620 | done |
---|
3621 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3622 | rm -f conftest.err conftest.$ac_ext |
---|
3623 | if $ac_preproc_ok; then |
---|
3624 | break |
---|
3625 | fi |
---|
3626 | |
---|
3627 | done |
---|
3628 | ac_cv_prog_CPP=$CPP |
---|
3629 | |
---|
3630 | fi |
---|
3631 | CPP=$ac_cv_prog_CPP |
---|
3632 | else |
---|
3633 | ac_cv_prog_CPP=$CPP |
---|
3634 | fi |
---|
3635 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3636 | echo "${ECHO_T}$CPP" >&6 |
---|
3637 | ac_preproc_ok=false |
---|
3638 | for ac_c_preproc_warn_flag in '' yes |
---|
3639 | do |
---|
3640 | # Use a header file that comes with gcc, so configuring glibc |
---|
3641 | # with a fresh cross-compiler works. |
---|
3642 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3643 | # <limits.h> exists even on freestanding compilers. |
---|
3644 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3645 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3646 | cat >conftest.$ac_ext <<_ACEOF |
---|
3647 | /* confdefs.h. */ |
---|
3648 | _ACEOF |
---|
3649 | cat confdefs.h >>conftest.$ac_ext |
---|
3650 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3651 | /* end confdefs.h. */ |
---|
3652 | #ifdef __STDC__ |
---|
3653 | # include <limits.h> |
---|
3654 | #else |
---|
3655 | # include <assert.h> |
---|
3656 | #endif |
---|
3657 | Syntax error |
---|
3658 | _ACEOF |
---|
3659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3661 | ac_status=$? |
---|
3662 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3663 | rm -f conftest.er1 |
---|
3664 | cat conftest.err >&5 |
---|
3665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3666 | (exit $ac_status); } >/dev/null; then |
---|
3667 | if test -s conftest.err; then |
---|
3668 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3670 | else |
---|
3671 | ac_cpp_err= |
---|
3672 | fi |
---|
3673 | else |
---|
3674 | ac_cpp_err=yes |
---|
3675 | fi |
---|
3676 | if test -z "$ac_cpp_err"; then |
---|
3677 | : |
---|
3678 | else |
---|
3679 | echo "$as_me: failed program was:" >&5 |
---|
3680 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3681 | |
---|
3682 | # Broken: fails on valid input. |
---|
3683 | continue |
---|
3684 | fi |
---|
3685 | rm -f conftest.err conftest.$ac_ext |
---|
3686 | |
---|
3687 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3688 | # can be detected and how. |
---|
3689 | cat >conftest.$ac_ext <<_ACEOF |
---|
3690 | /* confdefs.h. */ |
---|
3691 | _ACEOF |
---|
3692 | cat confdefs.h >>conftest.$ac_ext |
---|
3693 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3694 | /* end confdefs.h. */ |
---|
3695 | #include <ac_nonexistent.h> |
---|
3696 | _ACEOF |
---|
3697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3699 | ac_status=$? |
---|
3700 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3701 | rm -f conftest.er1 |
---|
3702 | cat conftest.err >&5 |
---|
3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3704 | (exit $ac_status); } >/dev/null; then |
---|
3705 | if test -s conftest.err; then |
---|
3706 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3707 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3708 | else |
---|
3709 | ac_cpp_err= |
---|
3710 | fi |
---|
3711 | else |
---|
3712 | ac_cpp_err=yes |
---|
3713 | fi |
---|
3714 | if test -z "$ac_cpp_err"; then |
---|
3715 | # Broken: success on invalid input. |
---|
3716 | continue |
---|
3717 | else |
---|
3718 | echo "$as_me: failed program was:" >&5 |
---|
3719 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3720 | |
---|
3721 | # Passes both tests. |
---|
3722 | ac_preproc_ok=: |
---|
3723 | break |
---|
3724 | fi |
---|
3725 | rm -f conftest.err conftest.$ac_ext |
---|
3726 | |
---|
3727 | done |
---|
3728 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3729 | rm -f conftest.err conftest.$ac_ext |
---|
3730 | if $ac_preproc_ok; then |
---|
3731 | : |
---|
3732 | else |
---|
3733 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3734 | See \`config.log' for more details." >&5 |
---|
3735 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3736 | See \`config.log' for more details." >&2;} |
---|
3737 | { (exit 1); exit 1; }; } |
---|
3738 | fi |
---|
3739 | |
---|
3740 | ac_ext=c |
---|
3741 | ac_cpp='$CPP $CPPFLAGS' |
---|
3742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3745 | |
---|
3746 | |
---|
3747 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3748 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3749 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3751 | else |
---|
3752 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3753 | then ac_cv_prog_egrep='grep -E' |
---|
3754 | else ac_cv_prog_egrep='egrep' |
---|
3755 | fi |
---|
3756 | fi |
---|
3757 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3758 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3759 | EGREP=$ac_cv_prog_egrep |
---|
3760 | |
---|
3761 | |
---|
3762 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3763 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3764 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3766 | else |
---|
3767 | cat >conftest.$ac_ext <<_ACEOF |
---|
3768 | /* confdefs.h. */ |
---|
3769 | _ACEOF |
---|
3770 | cat confdefs.h >>conftest.$ac_ext |
---|
3771 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3772 | /* end confdefs.h. */ |
---|
3773 | #include <stdlib.h> |
---|
3774 | #include <stdarg.h> |
---|
3775 | #include <string.h> |
---|
3776 | #include <float.h> |
---|
3777 | |
---|
3778 | int |
---|
3779 | main () |
---|
3780 | { |
---|
3781 | |
---|
3782 | ; |
---|
3783 | return 0; |
---|
3784 | } |
---|
3785 | _ACEOF |
---|
3786 | rm -f conftest.$ac_objext |
---|
3787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3788 | (eval $ac_compile) 2>conftest.er1 |
---|
3789 | ac_status=$? |
---|
3790 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3791 | rm -f conftest.er1 |
---|
3792 | cat conftest.err >&5 |
---|
3793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3794 | (exit $ac_status); } && |
---|
3795 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3796 | || test ! -s conftest.err' |
---|
3797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3798 | (eval $ac_try) 2>&5 |
---|
3799 | ac_status=$? |
---|
3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3801 | (exit $ac_status); }; } && |
---|
3802 | { ac_try='test -s conftest.$ac_objext' |
---|
3803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3804 | (eval $ac_try) 2>&5 |
---|
3805 | ac_status=$? |
---|
3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3807 | (exit $ac_status); }; }; then |
---|
3808 | ac_cv_header_stdc=yes |
---|
3809 | else |
---|
3810 | echo "$as_me: failed program was:" >&5 |
---|
3811 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3812 | |
---|
3813 | ac_cv_header_stdc=no |
---|
3814 | fi |
---|
3815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3816 | |
---|
3817 | if test $ac_cv_header_stdc = yes; then |
---|
3818 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3819 | cat >conftest.$ac_ext <<_ACEOF |
---|
3820 | /* confdefs.h. */ |
---|
3821 | _ACEOF |
---|
3822 | cat confdefs.h >>conftest.$ac_ext |
---|
3823 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3824 | /* end confdefs.h. */ |
---|
3825 | #include <string.h> |
---|
3826 | |
---|
3827 | _ACEOF |
---|
3828 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3829 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3830 | : |
---|
3831 | else |
---|
3832 | ac_cv_header_stdc=no |
---|
3833 | fi |
---|
3834 | rm -f conftest* |
---|
3835 | |
---|
3836 | fi |
---|
3837 | |
---|
3838 | if test $ac_cv_header_stdc = yes; then |
---|
3839 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3840 | cat >conftest.$ac_ext <<_ACEOF |
---|
3841 | /* confdefs.h. */ |
---|
3842 | _ACEOF |
---|
3843 | cat confdefs.h >>conftest.$ac_ext |
---|
3844 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3845 | /* end confdefs.h. */ |
---|
3846 | #include <stdlib.h> |
---|
3847 | |
---|
3848 | _ACEOF |
---|
3849 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3850 | $EGREP "free" >/dev/null 2>&1; then |
---|
3851 | : |
---|
3852 | else |
---|
3853 | ac_cv_header_stdc=no |
---|
3854 | fi |
---|
3855 | rm -f conftest* |
---|
3856 | |
---|
3857 | fi |
---|
3858 | |
---|
3859 | if test $ac_cv_header_stdc = yes; then |
---|
3860 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3861 | if test "$cross_compiling" = yes; then |
---|
3862 | : |
---|
3863 | else |
---|
3864 | cat >conftest.$ac_ext <<_ACEOF |
---|
3865 | /* confdefs.h. */ |
---|
3866 | _ACEOF |
---|
3867 | cat confdefs.h >>conftest.$ac_ext |
---|
3868 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3869 | /* end confdefs.h. */ |
---|
3870 | #include <ctype.h> |
---|
3871 | #if ((' ' & 0x0FF) == 0x020) |
---|
3872 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3873 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3874 | #else |
---|
3875 | # define ISLOWER(c) \ |
---|
3876 | (('a' <= (c) && (c) <= 'i') \ |
---|
3877 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3878 | || ('s' <= (c) && (c) <= 'z')) |
---|
3879 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3880 | #endif |
---|
3881 | |
---|
3882 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3883 | int |
---|
3884 | main () |
---|
3885 | { |
---|
3886 | int i; |
---|
3887 | for (i = 0; i < 256; i++) |
---|
3888 | if (XOR (islower (i), ISLOWER (i)) |
---|
3889 | || toupper (i) != TOUPPER (i)) |
---|
3890 | exit(2); |
---|
3891 | exit (0); |
---|
3892 | } |
---|
3893 | _ACEOF |
---|
3894 | rm -f conftest$ac_exeext |
---|
3895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3896 | (eval $ac_link) 2>&5 |
---|
3897 | ac_status=$? |
---|
3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3899 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3901 | (eval $ac_try) 2>&5 |
---|
3902 | ac_status=$? |
---|
3903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3904 | (exit $ac_status); }; }; then |
---|
3905 | : |
---|
3906 | else |
---|
3907 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3908 | echo "$as_me: failed program was:" >&5 |
---|
3909 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3910 | |
---|
3911 | ( exit $ac_status ) |
---|
3912 | ac_cv_header_stdc=no |
---|
3913 | fi |
---|
3914 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3915 | fi |
---|
3916 | fi |
---|
3917 | fi |
---|
3918 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3919 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3920 | if test $ac_cv_header_stdc = yes; then |
---|
3921 | |
---|
3922 | cat >>confdefs.h <<\_ACEOF |
---|
3923 | #define STDC_HEADERS 1 |
---|
3924 | _ACEOF |
---|
3925 | |
---|
3926 | fi |
---|
3927 | |
---|
3928 | |
---|
3929 | ## THIS IS OUR DEFAULT-DATA-DIRECTORY |
---|
3930 | |
---|
3931 | ################################## |
---|
3932 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
3933 | ################################## |
---|
3934 | #----------------# |
---|
3935 | # Data-Directory # |
---|
3936 | #----------------# |
---|
3937 | DATA_DIR=$datadir |
---|
3938 | echo \$\{prefix\} |
---|
3939 | if test $DATA_DIR = \$\{prefix\}/share ; then |
---|
3940 | echo "not given" |
---|
3941 | DATA_DIR=/usr/share |
---|
3942 | else |
---|
3943 | echo "given: $DATA_DIR" |
---|
3944 | fi |
---|
3945 | |
---|
3946 | cat >>confdefs.h <<_ACEOF |
---|
3947 | #define DATADIR "$DATA_DIR" |
---|
3948 | _ACEOF |
---|
3949 | |
---|
3950 | |
---|
3951 | #-----------------# |
---|
3952 | # shared-lib-path # |
---|
3953 | #-----------------# |
---|
3954 | SHARED_LIB_PATH=no |
---|
3955 | echo "$as_me:$LINENO: checking shared lib path" >&5 |
---|
3956 | echo $ECHO_N "checking shared lib path... $ECHO_C" >&6 |
---|
3957 | |
---|
3958 | # Check whether --with-shared-lib-path or --without-shared-lib-path was given. |
---|
3959 | if test "${with_shared_lib_path+set}" = set; then |
---|
3960 | withval="$with_shared_lib_path" |
---|
3961 | SHARED_LIB_PATH=$enableval |
---|
3962 | fi; |
---|
3963 | |
---|
3964 | if test x$SHARED_LIB_PATH = xno; then |
---|
3965 | echo "no" |
---|
3966 | else |
---|
3967 | echo $SHARED_LIB_PATH |
---|
3968 | fi |
---|
3969 | |
---|
3970 | |
---|
3971 | #-----------------# |
---|
3972 | # DEBUG-statement # |
---|
3973 | #-----------------# |
---|
3974 | DEBUG=no |
---|
3975 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
3976 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
3977 | # Check whether --enable-debug or --disable-debug was given. |
---|
3978 | if test "${enable_debug+set}" = set; then |
---|
3979 | enableval="$enable_debug" |
---|
3980 | DEBUG=$enableval |
---|
3981 | fi; |
---|
3982 | |
---|
3983 | if test x$DEBUG = xno; then |
---|
3984 | echo "no" |
---|
3985 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
3986 | DEBUG=4 |
---|
3987 | elif test x$DEBUG = xyes; then |
---|
3988 | echo "yes" |
---|
3989 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
3990 | DEBUG=4 |
---|
3991 | else |
---|
3992 | echo "yes: setting debuglevel to to $DEBUG" |
---|
3993 | fi |
---|
3994 | |
---|
3995 | cat >>confdefs.h <<_ACEOF |
---|
3996 | #define DEBUG $DEBUG |
---|
3997 | _ACEOF |
---|
3998 | |
---|
3999 | |
---|
4000 | |
---|
4001 | |
---|
4002 | #---------------# |
---|
4003 | # Modular Debug # |
---|
4004 | #---------------# |
---|
4005 | MODULAR_DEBUG=yes |
---|
4006 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
4007 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
4008 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
4009 | if test "${enable_modular_debug+set}" = set; then |
---|
4010 | enableval="$enable_modular_debug" |
---|
4011 | MODULAR_DEBUG=$enableval |
---|
4012 | fi; |
---|
4013 | |
---|
4014 | if test x$MODULAR_DEBUG = xno; then |
---|
4015 | echo "no" |
---|
4016 | elif test x$MODULAR_DEBUG = xyes; then |
---|
4017 | echo "yes" |
---|
4018 | |
---|
4019 | cat >>confdefs.h <<_ACEOF |
---|
4020 | #define MODULAR_DEBUG 1 |
---|
4021 | _ACEOF |
---|
4022 | |
---|
4023 | fi |
---|
4024 | |
---|
4025 | #--------------# |
---|
4026 | # GTK-disabled # |
---|
4027 | #--------------# |
---|
4028 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
4029 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
4030 | # Check whether --enable-gtk or --disable-gtk was given. |
---|
4031 | if test "${enable_gtk+set}" = set; then |
---|
4032 | enableval="$enable_gtk" |
---|
4033 | def_gtk=no |
---|
4034 | else |
---|
4035 | def_gtk=yes |
---|
4036 | fi; |
---|
4037 | if test x$def_gtk = xyes; then |
---|
4038 | echo "yes" |
---|
4039 | fi |
---|
4040 | if test x$def_gtk = xno; then |
---|
4041 | echo "no" |
---|
4042 | fi |
---|
4043 | |
---|
4044 | #------------------# |
---|
4045 | # libCurl-disabled # |
---|
4046 | #------------------# |
---|
4047 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
4048 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
4049 | # Check whether --enable-curl or --disable-curl was given. |
---|
4050 | if test "${enable_curl+set}" = set; then |
---|
4051 | enableval="$enable_curl" |
---|
4052 | def_curl=no |
---|
4053 | else |
---|
4054 | def_curl=yes |
---|
4055 | fi; |
---|
4056 | if test x$def_curl = xyes; then |
---|
4057 | echo "yes" |
---|
4058 | fi |
---|
4059 | if test x$def_curl = xno; then |
---|
4060 | echo "no" |
---|
4061 | fi |
---|
4062 | |
---|
4063 | #-------------------# |
---|
4064 | # SubProject-enable # |
---|
4065 | #-------------------# |
---|
4066 | def_sub_projects=no |
---|
4067 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
4068 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
4069 | |
---|
4070 | # Check whether --with-sub-projects or --without-sub-projects was given. |
---|
4071 | if test "${with_sub_projects+set}" = set; then |
---|
4072 | withval="$with_sub_projects" |
---|
4073 | def_sub_projects=yes |
---|
4074 | fi; |
---|
4075 | if test x$def_sub_projects = xyes; then |
---|
4076 | echo "yes" |
---|
4077 | fi |
---|
4078 | if test x$def_sub_projects = xno; then |
---|
4079 | echo "no" |
---|
4080 | fi |
---|
4081 | |
---|
4082 | |
---|
4083 | if test x$def_sub_projects = xyes; then |
---|
4084 | SUB_PROJECTS_TRUE= |
---|
4085 | SUB_PROJECTS_FALSE='#' |
---|
4086 | else |
---|
4087 | SUB_PROJECTS_TRUE='#' |
---|
4088 | SUB_PROJECTS_FALSE= |
---|
4089 | fi |
---|
4090 | |
---|
4091 | |
---|
4092 | #-------------------# |
---|
4093 | # Profiling Enabled # |
---|
4094 | #-------------------# |
---|
4095 | def_profiling=no |
---|
4096 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
4097 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
4098 | # Check whether --enable-profile or --disable-profile was given. |
---|
4099 | if test "${enable_profile+set}" = set; then |
---|
4100 | enableval="$enable_profile" |
---|
4101 | def_profiling=yes |
---|
4102 | fi; |
---|
4103 | if test x$def_profiling = xyes; then |
---|
4104 | echo "yes" |
---|
4105 | CXXFLAGS="$CXXFLAGS -pg" |
---|
4106 | fi |
---|
4107 | if test x$def_profiling = xno; then |
---|
4108 | echo "no" |
---|
4109 | fi |
---|
4110 | |
---|
4111 | #----------------# |
---|
4112 | # efence Enabled # |
---|
4113 | #----------------# |
---|
4114 | def_efence=no |
---|
4115 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
4116 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
4117 | # Check whether --enable-efence or --disable-efence was given. |
---|
4118 | if test "${enable_efence+set}" = set; then |
---|
4119 | enableval="$enable_efence" |
---|
4120 | def_efence=yes |
---|
4121 | fi; |
---|
4122 | if test x$def_efence = xyes; then |
---|
4123 | echo "yes" |
---|
4124 | fi |
---|
4125 | if test x$def_efence = xno; then |
---|
4126 | echo "no" |
---|
4127 | fi |
---|
4128 | |
---|
4129 | #----------------------# |
---|
4130 | # Documentation-enable # |
---|
4131 | #----------------------# |
---|
4132 | def_documentation=no |
---|
4133 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
4134 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
4135 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
4136 | if test "${enable_documentation+set}" = set; then |
---|
4137 | enableval="$enable_documentation" |
---|
4138 | def_documentation=yes |
---|
4139 | fi; |
---|
4140 | if test x$def_documentation = xyes; then |
---|
4141 | echo "yes" |
---|
4142 | fi |
---|
4143 | if test x$def_documentation = xno; then |
---|
4144 | echo "no" |
---|
4145 | fi |
---|
4146 | |
---|
4147 | |
---|
4148 | if test x$def_documentation = xyes; then |
---|
4149 | DOCUMENTATION_TRUE= |
---|
4150 | DOCUMENTATION_FALSE='#' |
---|
4151 | else |
---|
4152 | DOCUMENTATION_TRUE='#' |
---|
4153 | DOCUMENTATION_FALSE= |
---|
4154 | fi |
---|
4155 | |
---|
4156 | |
---|
4157 | ####################### |
---|
4158 | ## PROGRAMM CHECKING ## |
---|
4159 | ## 3. party Programs ## |
---|
4160 | ####################### |
---|
4161 | |
---|
4162 | #----------------------# |
---|
4163 | # checking for Doxygen # |
---|
4164 | #----------------------# |
---|
4165 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
4166 | set dummy doxygen; ac_word=$2 |
---|
4167 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4169 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
4170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4171 | else |
---|
4172 | case $DOXYGEN in |
---|
4173 | [\\/]* | ?:[\\/]*) |
---|
4174 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
4175 | ;; |
---|
4176 | *) |
---|
4177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4178 | for as_dir in $PATH |
---|
4179 | do |
---|
4180 | IFS=$as_save_IFS |
---|
4181 | test -z "$as_dir" && as_dir=. |
---|
4182 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4184 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
4185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4186 | break 2 |
---|
4187 | fi |
---|
4188 | done |
---|
4189 | done |
---|
4190 | |
---|
4191 | ;; |
---|
4192 | esac |
---|
4193 | fi |
---|
4194 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
4195 | |
---|
4196 | if test -n "$DOXYGEN"; then |
---|
4197 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
4198 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
4199 | else |
---|
4200 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4201 | echo "${ECHO_T}no" >&6 |
---|
4202 | fi |
---|
4203 | |
---|
4204 | |
---|
4205 | |
---|
4206 | if test $DOXYGEN; then |
---|
4207 | DOXYGEN_TRUE= |
---|
4208 | DOXYGEN_FALSE='#' |
---|
4209 | else |
---|
4210 | DOXYGEN_TRUE='#' |
---|
4211 | DOXYGEN_FALSE= |
---|
4212 | fi |
---|
4213 | |
---|
4214 | |
---|
4215 | #--------------------# |
---|
4216 | # checking for gprof # |
---|
4217 | #--------------------# |
---|
4218 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
4219 | set dummy gprof; ac_word=$2 |
---|
4220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4222 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
4223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4224 | else |
---|
4225 | case $GPROF in |
---|
4226 | [\\/]* | ?:[\\/]*) |
---|
4227 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
4228 | ;; |
---|
4229 | *) |
---|
4230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4231 | for as_dir in $PATH |
---|
4232 | do |
---|
4233 | IFS=$as_save_IFS |
---|
4234 | test -z "$as_dir" && as_dir=. |
---|
4235 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4236 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4237 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
4238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4239 | break 2 |
---|
4240 | fi |
---|
4241 | done |
---|
4242 | done |
---|
4243 | |
---|
4244 | ;; |
---|
4245 | esac |
---|
4246 | fi |
---|
4247 | GPROF=$ac_cv_path_GPROF |
---|
4248 | |
---|
4249 | if test -n "$GPROF"; then |
---|
4250 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
4251 | echo "${ECHO_T}$GPROF" >&6 |
---|
4252 | else |
---|
4253 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4254 | echo "${ECHO_T}no" >&6 |
---|
4255 | fi |
---|
4256 | |
---|
4257 | |
---|
4258 | #-------------------------# |
---|
4259 | # checking for pkg-config # |
---|
4260 | #-------------------------# |
---|
4261 | if test x$def_gtk = xyes; then |
---|
4262 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
4263 | set dummy pkg-config; ac_word=$2 |
---|
4264 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4266 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
4267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4268 | else |
---|
4269 | case $PKG_CONFIG in |
---|
4270 | [\\/]* | ?:[\\/]*) |
---|
4271 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
4272 | ;; |
---|
4273 | *) |
---|
4274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4275 | for as_dir in $PATH |
---|
4276 | do |
---|
4277 | IFS=$as_save_IFS |
---|
4278 | test -z "$as_dir" && as_dir=. |
---|
4279 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4280 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4281 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
4282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4283 | break 2 |
---|
4284 | fi |
---|
4285 | done |
---|
4286 | done |
---|
4287 | |
---|
4288 | ;; |
---|
4289 | esac |
---|
4290 | fi |
---|
4291 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
4292 | |
---|
4293 | if test -n "$PKG_CONFIG"; then |
---|
4294 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
4295 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
4296 | else |
---|
4297 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4298 | echo "${ECHO_T}no" >&6 |
---|
4299 | fi |
---|
4300 | |
---|
4301 | fi |
---|
4302 | |
---|
4303 | |
---|
4304 | ######################### |
---|
4305 | ## CHECKING FOR SYSTEM ## |
---|
4306 | ######################### |
---|
4307 | ## here the system is checked, and openGL is included |
---|
4308 | ## also checking for SDL on differen Systems |
---|
4309 | |
---|
4310 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
4311 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
4312 | ## checking for openGL-environment and other sys-specific parameters |
---|
4313 | case "$target" in |
---|
4314 | |
---|
4315 | ########### |
---|
4316 | #---------# |
---|
4317 | # WINDOWS # |
---|
4318 | #---------# |
---|
4319 | ########### |
---|
4320 | *-*-mingw32*) |
---|
4321 | echo "mingw-WINDOWS detected" |
---|
4322 | |
---|
4323 | CPPFLAGS="-I/usr/include -I/mingw/include" |
---|
4324 | |
---|
4325 | mingw="yes" |
---|
4326 | MSBITFIELDS="-mms-bitfields" |
---|
4327 | MWINDOWS="-mwindows" |
---|
4328 | |
---|
4329 | |
---|
4330 | |
---|
4331 | # checking for mingw32 |
---|
4332 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4333 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4334 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4336 | else |
---|
4337 | ac_check_lib_save_LIBS=$LIBS |
---|
4338 | LIBS="-lmingw32 $LIBS" |
---|
4339 | cat >conftest.$ac_ext <<_ACEOF |
---|
4340 | /* confdefs.h. */ |
---|
4341 | _ACEOF |
---|
4342 | cat confdefs.h >>conftest.$ac_ext |
---|
4343 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4344 | /* end confdefs.h. */ |
---|
4345 | |
---|
4346 | |
---|
4347 | int |
---|
4348 | main () |
---|
4349 | { |
---|
4350 | main (); |
---|
4351 | ; |
---|
4352 | return 0; |
---|
4353 | } |
---|
4354 | _ACEOF |
---|
4355 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4357 | (eval $ac_link) 2>conftest.er1 |
---|
4358 | ac_status=$? |
---|
4359 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4360 | rm -f conftest.er1 |
---|
4361 | cat conftest.err >&5 |
---|
4362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4363 | (exit $ac_status); } && |
---|
4364 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4365 | || test ! -s conftest.err' |
---|
4366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4367 | (eval $ac_try) 2>&5 |
---|
4368 | ac_status=$? |
---|
4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4370 | (exit $ac_status); }; } && |
---|
4371 | { ac_try='test -s conftest$ac_exeext' |
---|
4372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4373 | (eval $ac_try) 2>&5 |
---|
4374 | ac_status=$? |
---|
4375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4376 | (exit $ac_status); }; }; then |
---|
4377 | ac_cv_lib_mingw32_main=yes |
---|
4378 | else |
---|
4379 | echo "$as_me: failed program was:" >&5 |
---|
4380 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4381 | |
---|
4382 | ac_cv_lib_mingw32_main=no |
---|
4383 | fi |
---|
4384 | rm -f conftest.err conftest.$ac_objext \ |
---|
4385 | conftest$ac_exeext conftest.$ac_ext |
---|
4386 | LIBS=$ac_check_lib_save_LIBS |
---|
4387 | fi |
---|
4388 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4389 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4390 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4391 | FOUND_mingw32=yes |
---|
4392 | fi |
---|
4393 | |
---|
4394 | if test x$FOUND_mingw32 = xyes; then |
---|
4395 | LIBS="$LIBS -lmingw32" |
---|
4396 | fi |
---|
4397 | |
---|
4398 | #-----------# |
---|
4399 | # SDL(win) # |
---|
4400 | #-----------# |
---|
4401 | # checking for SDL-headers |
---|
4402 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4403 | |
---|
4404 | |
---|
4405 | |
---|
4406 | |
---|
4407 | |
---|
4408 | |
---|
4409 | |
---|
4410 | |
---|
4411 | |
---|
4412 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4413 | inttypes.h stdint.h unistd.h |
---|
4414 | do |
---|
4415 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4416 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4420 | else |
---|
4421 | cat >conftest.$ac_ext <<_ACEOF |
---|
4422 | /* confdefs.h. */ |
---|
4423 | _ACEOF |
---|
4424 | cat confdefs.h >>conftest.$ac_ext |
---|
4425 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4426 | /* end confdefs.h. */ |
---|
4427 | $ac_includes_default |
---|
4428 | |
---|
4429 | #include <$ac_header> |
---|
4430 | _ACEOF |
---|
4431 | rm -f conftest.$ac_objext |
---|
4432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4433 | (eval $ac_compile) 2>conftest.er1 |
---|
4434 | ac_status=$? |
---|
4435 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4436 | rm -f conftest.er1 |
---|
4437 | cat conftest.err >&5 |
---|
4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4439 | (exit $ac_status); } && |
---|
4440 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4441 | || test ! -s conftest.err' |
---|
4442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4443 | (eval $ac_try) 2>&5 |
---|
4444 | ac_status=$? |
---|
4445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4446 | (exit $ac_status); }; } && |
---|
4447 | { ac_try='test -s conftest.$ac_objext' |
---|
4448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4449 | (eval $ac_try) 2>&5 |
---|
4450 | ac_status=$? |
---|
4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4452 | (exit $ac_status); }; }; then |
---|
4453 | eval "$as_ac_Header=yes" |
---|
4454 | else |
---|
4455 | echo "$as_me: failed program was:" >&5 |
---|
4456 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4457 | |
---|
4458 | eval "$as_ac_Header=no" |
---|
4459 | fi |
---|
4460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4461 | fi |
---|
4462 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4463 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4464 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4465 | cat >>confdefs.h <<_ACEOF |
---|
4466 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4467 | _ACEOF |
---|
4468 | |
---|
4469 | fi |
---|
4470 | |
---|
4471 | done |
---|
4472 | |
---|
4473 | |
---|
4474 | |
---|
4475 | for ac_header in SDL/SDL.h |
---|
4476 | do |
---|
4477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4483 | fi |
---|
4484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4485 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4486 | else |
---|
4487 | # Is the header compilable? |
---|
4488 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4489 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4490 | cat >conftest.$ac_ext <<_ACEOF |
---|
4491 | /* confdefs.h. */ |
---|
4492 | _ACEOF |
---|
4493 | cat confdefs.h >>conftest.$ac_ext |
---|
4494 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4495 | /* end confdefs.h. */ |
---|
4496 | $ac_includes_default |
---|
4497 | #include <$ac_header> |
---|
4498 | _ACEOF |
---|
4499 | rm -f conftest.$ac_objext |
---|
4500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4501 | (eval $ac_compile) 2>conftest.er1 |
---|
4502 | ac_status=$? |
---|
4503 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4504 | rm -f conftest.er1 |
---|
4505 | cat conftest.err >&5 |
---|
4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4507 | (exit $ac_status); } && |
---|
4508 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4509 | || test ! -s conftest.err' |
---|
4510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4511 | (eval $ac_try) 2>&5 |
---|
4512 | ac_status=$? |
---|
4513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4514 | (exit $ac_status); }; } && |
---|
4515 | { ac_try='test -s conftest.$ac_objext' |
---|
4516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4517 | (eval $ac_try) 2>&5 |
---|
4518 | ac_status=$? |
---|
4519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4520 | (exit $ac_status); }; }; then |
---|
4521 | ac_header_compiler=yes |
---|
4522 | else |
---|
4523 | echo "$as_me: failed program was:" >&5 |
---|
4524 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4525 | |
---|
4526 | ac_header_compiler=no |
---|
4527 | fi |
---|
4528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4529 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4530 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4531 | |
---|
4532 | # Is the header present? |
---|
4533 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4534 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4535 | cat >conftest.$ac_ext <<_ACEOF |
---|
4536 | /* confdefs.h. */ |
---|
4537 | _ACEOF |
---|
4538 | cat confdefs.h >>conftest.$ac_ext |
---|
4539 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4540 | /* end confdefs.h. */ |
---|
4541 | #include <$ac_header> |
---|
4542 | _ACEOF |
---|
4543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4545 | ac_status=$? |
---|
4546 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4547 | rm -f conftest.er1 |
---|
4548 | cat conftest.err >&5 |
---|
4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4550 | (exit $ac_status); } >/dev/null; then |
---|
4551 | if test -s conftest.err; then |
---|
4552 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4553 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4554 | else |
---|
4555 | ac_cpp_err= |
---|
4556 | fi |
---|
4557 | else |
---|
4558 | ac_cpp_err=yes |
---|
4559 | fi |
---|
4560 | if test -z "$ac_cpp_err"; then |
---|
4561 | ac_header_preproc=yes |
---|
4562 | else |
---|
4563 | echo "$as_me: failed program was:" >&5 |
---|
4564 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4565 | |
---|
4566 | ac_header_preproc=no |
---|
4567 | fi |
---|
4568 | rm -f conftest.err conftest.$ac_ext |
---|
4569 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4570 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4571 | |
---|
4572 | # So? What about this header? |
---|
4573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4574 | yes:no: ) |
---|
4575 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4576 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4578 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4579 | ac_header_preproc=yes |
---|
4580 | ;; |
---|
4581 | no:yes:* ) |
---|
4582 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4583 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4584 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4585 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4586 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4587 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4588 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4589 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4591 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4592 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4593 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4594 | ( |
---|
4595 | cat <<\_ASBOX |
---|
4596 | ## ---------------------------------------------- ## |
---|
4597 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4598 | ## ---------------------------------------------- ## |
---|
4599 | _ASBOX |
---|
4600 | ) | |
---|
4601 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4602 | ;; |
---|
4603 | esac |
---|
4604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4608 | else |
---|
4609 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4610 | fi |
---|
4611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4612 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4613 | |
---|
4614 | fi |
---|
4615 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4616 | cat >>confdefs.h <<_ACEOF |
---|
4617 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4618 | _ACEOF |
---|
4619 | |
---|
4620 | else |
---|
4621 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4622 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4623 | { (exit 1); exit 1; }; } |
---|
4624 | fi |
---|
4625 | |
---|
4626 | done |
---|
4627 | |
---|
4628 | |
---|
4629 | #checking for libSDL |
---|
4630 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
4631 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
4632 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
4633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4634 | else |
---|
4635 | ac_check_lib_save_LIBS=$LIBS |
---|
4636 | LIBS="-lsdlmain $LIBS" |
---|
4637 | cat >conftest.$ac_ext <<_ACEOF |
---|
4638 | /* confdefs.h. */ |
---|
4639 | _ACEOF |
---|
4640 | cat confdefs.h >>conftest.$ac_ext |
---|
4641 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4642 | /* end confdefs.h. */ |
---|
4643 | |
---|
4644 | |
---|
4645 | int |
---|
4646 | main () |
---|
4647 | { |
---|
4648 | main (); |
---|
4649 | ; |
---|
4650 | return 0; |
---|
4651 | } |
---|
4652 | _ACEOF |
---|
4653 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4655 | (eval $ac_link) 2>conftest.er1 |
---|
4656 | ac_status=$? |
---|
4657 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4658 | rm -f conftest.er1 |
---|
4659 | cat conftest.err >&5 |
---|
4660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4661 | (exit $ac_status); } && |
---|
4662 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4663 | || test ! -s conftest.err' |
---|
4664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4665 | (eval $ac_try) 2>&5 |
---|
4666 | ac_status=$? |
---|
4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4668 | (exit $ac_status); }; } && |
---|
4669 | { ac_try='test -s conftest$ac_exeext' |
---|
4670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4671 | (eval $ac_try) 2>&5 |
---|
4672 | ac_status=$? |
---|
4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4674 | (exit $ac_status); }; }; then |
---|
4675 | ac_cv_lib_sdlmain_main=yes |
---|
4676 | else |
---|
4677 | echo "$as_me: failed program was:" >&5 |
---|
4678 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4679 | |
---|
4680 | ac_cv_lib_sdlmain_main=no |
---|
4681 | fi |
---|
4682 | rm -f conftest.err conftest.$ac_objext \ |
---|
4683 | conftest$ac_exeext conftest.$ac_ext |
---|
4684 | LIBS=$ac_check_lib_save_LIBS |
---|
4685 | fi |
---|
4686 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
4687 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
4688 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
4689 | FOUND_sdlmain=yes |
---|
4690 | fi |
---|
4691 | |
---|
4692 | if test x$FOUND_sdlmain = xyes ; then |
---|
4693 | LIBS="$LIBS -lsdlmain" |
---|
4694 | else |
---|
4695 | echo "------------------" |
---|
4696 | echo "SDL library not found." |
---|
4697 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4698 | echo "------------------" |
---|
4699 | exit 1 |
---|
4700 | fi |
---|
4701 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
4702 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
4703 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
4704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4705 | else |
---|
4706 | ac_check_lib_save_LIBS=$LIBS |
---|
4707 | LIBS="-lsdl $LIBS" |
---|
4708 | cat >conftest.$ac_ext <<_ACEOF |
---|
4709 | /* confdefs.h. */ |
---|
4710 | _ACEOF |
---|
4711 | cat confdefs.h >>conftest.$ac_ext |
---|
4712 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4713 | /* end confdefs.h. */ |
---|
4714 | |
---|
4715 | |
---|
4716 | int |
---|
4717 | main () |
---|
4718 | { |
---|
4719 | main (); |
---|
4720 | ; |
---|
4721 | return 0; |
---|
4722 | } |
---|
4723 | _ACEOF |
---|
4724 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4726 | (eval $ac_link) 2>conftest.er1 |
---|
4727 | ac_status=$? |
---|
4728 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4729 | rm -f conftest.er1 |
---|
4730 | cat conftest.err >&5 |
---|
4731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4732 | (exit $ac_status); } && |
---|
4733 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4734 | || test ! -s conftest.err' |
---|
4735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4736 | (eval $ac_try) 2>&5 |
---|
4737 | ac_status=$? |
---|
4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4739 | (exit $ac_status); }; } && |
---|
4740 | { ac_try='test -s conftest$ac_exeext' |
---|
4741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4742 | (eval $ac_try) 2>&5 |
---|
4743 | ac_status=$? |
---|
4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4745 | (exit $ac_status); }; }; then |
---|
4746 | ac_cv_lib_sdl_main=yes |
---|
4747 | else |
---|
4748 | echo "$as_me: failed program was:" >&5 |
---|
4749 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4750 | |
---|
4751 | ac_cv_lib_sdl_main=no |
---|
4752 | fi |
---|
4753 | rm -f conftest.err conftest.$ac_objext \ |
---|
4754 | conftest$ac_exeext conftest.$ac_ext |
---|
4755 | LIBS=$ac_check_lib_save_LIBS |
---|
4756 | fi |
---|
4757 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
4758 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
4759 | if test $ac_cv_lib_sdl_main = yes; then |
---|
4760 | FOUND_sdl=yes |
---|
4761 | fi |
---|
4762 | |
---|
4763 | if test x$FOUND_sdl = xyes ; then |
---|
4764 | LIBS="$LIBS -lsdl" |
---|
4765 | else |
---|
4766 | echo "------------------" |
---|
4767 | echo "SDL library not found." |
---|
4768 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4769 | echo "------------------" |
---|
4770 | exit -1 |
---|
4771 | fi |
---|
4772 | |
---|
4773 | #---------------# |
---|
4774 | # open-GL (win) # |
---|
4775 | #---------------# |
---|
4776 | # checking gl header |
---|
4777 | |
---|
4778 | for ac_header in GL/gl.h |
---|
4779 | do |
---|
4780 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4782 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4783 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4786 | fi |
---|
4787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4788 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4789 | else |
---|
4790 | # Is the header compilable? |
---|
4791 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4792 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4793 | cat >conftest.$ac_ext <<_ACEOF |
---|
4794 | /* confdefs.h. */ |
---|
4795 | _ACEOF |
---|
4796 | cat confdefs.h >>conftest.$ac_ext |
---|
4797 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4798 | /* end confdefs.h. */ |
---|
4799 | $ac_includes_default |
---|
4800 | #include <$ac_header> |
---|
4801 | _ACEOF |
---|
4802 | rm -f conftest.$ac_objext |
---|
4803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4804 | (eval $ac_compile) 2>conftest.er1 |
---|
4805 | ac_status=$? |
---|
4806 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4807 | rm -f conftest.er1 |
---|
4808 | cat conftest.err >&5 |
---|
4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4810 | (exit $ac_status); } && |
---|
4811 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4812 | || test ! -s conftest.err' |
---|
4813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4814 | (eval $ac_try) 2>&5 |
---|
4815 | ac_status=$? |
---|
4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4817 | (exit $ac_status); }; } && |
---|
4818 | { ac_try='test -s conftest.$ac_objext' |
---|
4819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4820 | (eval $ac_try) 2>&5 |
---|
4821 | ac_status=$? |
---|
4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4823 | (exit $ac_status); }; }; then |
---|
4824 | ac_header_compiler=yes |
---|
4825 | else |
---|
4826 | echo "$as_me: failed program was:" >&5 |
---|
4827 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4828 | |
---|
4829 | ac_header_compiler=no |
---|
4830 | fi |
---|
4831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4832 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4833 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4834 | |
---|
4835 | # Is the header present? |
---|
4836 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4837 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4838 | cat >conftest.$ac_ext <<_ACEOF |
---|
4839 | /* confdefs.h. */ |
---|
4840 | _ACEOF |
---|
4841 | cat confdefs.h >>conftest.$ac_ext |
---|
4842 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4843 | /* end confdefs.h. */ |
---|
4844 | #include <$ac_header> |
---|
4845 | _ACEOF |
---|
4846 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4847 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4848 | ac_status=$? |
---|
4849 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4850 | rm -f conftest.er1 |
---|
4851 | cat conftest.err >&5 |
---|
4852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4853 | (exit $ac_status); } >/dev/null; then |
---|
4854 | if test -s conftest.err; then |
---|
4855 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4856 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4857 | else |
---|
4858 | ac_cpp_err= |
---|
4859 | fi |
---|
4860 | else |
---|
4861 | ac_cpp_err=yes |
---|
4862 | fi |
---|
4863 | if test -z "$ac_cpp_err"; then |
---|
4864 | ac_header_preproc=yes |
---|
4865 | else |
---|
4866 | echo "$as_me: failed program was:" >&5 |
---|
4867 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4868 | |
---|
4869 | ac_header_preproc=no |
---|
4870 | fi |
---|
4871 | rm -f conftest.err conftest.$ac_ext |
---|
4872 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4873 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4874 | |
---|
4875 | # So? What about this header? |
---|
4876 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4877 | yes:no: ) |
---|
4878 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4879 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4880 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4881 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4882 | ac_header_preproc=yes |
---|
4883 | ;; |
---|
4884 | no:yes:* ) |
---|
4885 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4886 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4887 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4888 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4889 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4890 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4891 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4892 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4893 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4894 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4895 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4896 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4897 | ( |
---|
4898 | cat <<\_ASBOX |
---|
4899 | ## ---------------------------------------------- ## |
---|
4900 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4901 | ## ---------------------------------------------- ## |
---|
4902 | _ASBOX |
---|
4903 | ) | |
---|
4904 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4905 | ;; |
---|
4906 | esac |
---|
4907 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4909 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4911 | else |
---|
4912 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4913 | fi |
---|
4914 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4915 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4916 | |
---|
4917 | fi |
---|
4918 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4919 | cat >>confdefs.h <<_ACEOF |
---|
4920 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4921 | _ACEOF |
---|
4922 | |
---|
4923 | else |
---|
4924 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4925 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4926 | { (exit 1); exit 1; }; } |
---|
4927 | fi |
---|
4928 | |
---|
4929 | done |
---|
4930 | |
---|
4931 | # checking for Windows openGl library |
---|
4932 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4933 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4934 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4936 | else |
---|
4937 | ac_check_lib_save_LIBS=$LIBS |
---|
4938 | LIBS="-lopengl32 $LIBS" |
---|
4939 | cat >conftest.$ac_ext <<_ACEOF |
---|
4940 | /* confdefs.h. */ |
---|
4941 | _ACEOF |
---|
4942 | cat confdefs.h >>conftest.$ac_ext |
---|
4943 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4944 | /* end confdefs.h. */ |
---|
4945 | |
---|
4946 | |
---|
4947 | int |
---|
4948 | main () |
---|
4949 | { |
---|
4950 | main (); |
---|
4951 | ; |
---|
4952 | return 0; |
---|
4953 | } |
---|
4954 | _ACEOF |
---|
4955 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4957 | (eval $ac_link) 2>conftest.er1 |
---|
4958 | ac_status=$? |
---|
4959 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4960 | rm -f conftest.er1 |
---|
4961 | cat conftest.err >&5 |
---|
4962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4963 | (exit $ac_status); } && |
---|
4964 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4965 | || test ! -s conftest.err' |
---|
4966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4967 | (eval $ac_try) 2>&5 |
---|
4968 | ac_status=$? |
---|
4969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4970 | (exit $ac_status); }; } && |
---|
4971 | { ac_try='test -s conftest$ac_exeext' |
---|
4972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4973 | (eval $ac_try) 2>&5 |
---|
4974 | ac_status=$? |
---|
4975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4976 | (exit $ac_status); }; }; then |
---|
4977 | ac_cv_lib_opengl32_main=yes |
---|
4978 | else |
---|
4979 | echo "$as_me: failed program was:" >&5 |
---|
4980 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4981 | |
---|
4982 | ac_cv_lib_opengl32_main=no |
---|
4983 | fi |
---|
4984 | rm -f conftest.err conftest.$ac_objext \ |
---|
4985 | conftest$ac_exeext conftest.$ac_ext |
---|
4986 | LIBS=$ac_check_lib_save_LIBS |
---|
4987 | fi |
---|
4988 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4989 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4990 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4991 | FOUND_opengl32=yes |
---|
4992 | else |
---|
4993 | "gl/gl.h" |
---|
4994 | fi |
---|
4995 | |
---|
4996 | if test x$FOUND_opengl32 = xyes ; then |
---|
4997 | LIBS="$LIBS -lopengl32" |
---|
4998 | else |
---|
4999 | echo "------------------" |
---|
5000 | echo "opengl not found." |
---|
5001 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
5002 | echo "------------------" |
---|
5003 | exit -1 |
---|
5004 | fi |
---|
5005 | |
---|
5006 | # cheking for GLU-header |
---|
5007 | |
---|
5008 | for ac_header in GL/glu.h |
---|
5009 | do |
---|
5010 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5012 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5016 | fi |
---|
5017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5018 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5019 | else |
---|
5020 | # Is the header compilable? |
---|
5021 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5022 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5023 | cat >conftest.$ac_ext <<_ACEOF |
---|
5024 | /* confdefs.h. */ |
---|
5025 | _ACEOF |
---|
5026 | cat confdefs.h >>conftest.$ac_ext |
---|
5027 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5028 | /* end confdefs.h. */ |
---|
5029 | $ac_includes_default |
---|
5030 | #include <$ac_header> |
---|
5031 | _ACEOF |
---|
5032 | rm -f conftest.$ac_objext |
---|
5033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5034 | (eval $ac_compile) 2>conftest.er1 |
---|
5035 | ac_status=$? |
---|
5036 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5037 | rm -f conftest.er1 |
---|
5038 | cat conftest.err >&5 |
---|
5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5040 | (exit $ac_status); } && |
---|
5041 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5042 | || test ! -s conftest.err' |
---|
5043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5044 | (eval $ac_try) 2>&5 |
---|
5045 | ac_status=$? |
---|
5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5047 | (exit $ac_status); }; } && |
---|
5048 | { ac_try='test -s conftest.$ac_objext' |
---|
5049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5050 | (eval $ac_try) 2>&5 |
---|
5051 | ac_status=$? |
---|
5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5053 | (exit $ac_status); }; }; then |
---|
5054 | ac_header_compiler=yes |
---|
5055 | else |
---|
5056 | echo "$as_me: failed program was:" >&5 |
---|
5057 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5058 | |
---|
5059 | ac_header_compiler=no |
---|
5060 | fi |
---|
5061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5062 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5063 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5064 | |
---|
5065 | # Is the header present? |
---|
5066 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5067 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5068 | cat >conftest.$ac_ext <<_ACEOF |
---|
5069 | /* confdefs.h. */ |
---|
5070 | _ACEOF |
---|
5071 | cat confdefs.h >>conftest.$ac_ext |
---|
5072 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5073 | /* end confdefs.h. */ |
---|
5074 | #include <$ac_header> |
---|
5075 | _ACEOF |
---|
5076 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5077 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5078 | ac_status=$? |
---|
5079 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5080 | rm -f conftest.er1 |
---|
5081 | cat conftest.err >&5 |
---|
5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5083 | (exit $ac_status); } >/dev/null; then |
---|
5084 | if test -s conftest.err; then |
---|
5085 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5086 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5087 | else |
---|
5088 | ac_cpp_err= |
---|
5089 | fi |
---|
5090 | else |
---|
5091 | ac_cpp_err=yes |
---|
5092 | fi |
---|
5093 | if test -z "$ac_cpp_err"; then |
---|
5094 | ac_header_preproc=yes |
---|
5095 | else |
---|
5096 | echo "$as_me: failed program was:" >&5 |
---|
5097 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5098 | |
---|
5099 | ac_header_preproc=no |
---|
5100 | fi |
---|
5101 | rm -f conftest.err conftest.$ac_ext |
---|
5102 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5103 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5104 | |
---|
5105 | # So? What about this header? |
---|
5106 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5107 | yes:no: ) |
---|
5108 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5109 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5111 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5112 | ac_header_preproc=yes |
---|
5113 | ;; |
---|
5114 | no:yes:* ) |
---|
5115 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5116 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5117 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5118 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5119 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5120 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5121 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5122 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5124 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5125 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5126 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5127 | ( |
---|
5128 | cat <<\_ASBOX |
---|
5129 | ## ---------------------------------------------- ## |
---|
5130 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5131 | ## ---------------------------------------------- ## |
---|
5132 | _ASBOX |
---|
5133 | ) | |
---|
5134 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5135 | ;; |
---|
5136 | esac |
---|
5137 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5141 | else |
---|
5142 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5143 | fi |
---|
5144 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5145 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5146 | |
---|
5147 | fi |
---|
5148 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5149 | cat >>confdefs.h <<_ACEOF |
---|
5150 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5151 | _ACEOF |
---|
5152 | |
---|
5153 | else |
---|
5154 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5155 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5156 | { (exit 1); exit 1; }; } |
---|
5157 | fi |
---|
5158 | |
---|
5159 | done |
---|
5160 | |
---|
5161 | |
---|
5162 | # checking for libGLU |
---|
5163 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
5164 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
5165 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
5166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5167 | else |
---|
5168 | ac_check_lib_save_LIBS=$LIBS |
---|
5169 | LIBS="-lglu32 $LIBS" |
---|
5170 | cat >conftest.$ac_ext <<_ACEOF |
---|
5171 | /* confdefs.h. */ |
---|
5172 | _ACEOF |
---|
5173 | cat confdefs.h >>conftest.$ac_ext |
---|
5174 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5175 | /* end confdefs.h. */ |
---|
5176 | |
---|
5177 | |
---|
5178 | int |
---|
5179 | main () |
---|
5180 | { |
---|
5181 | main (); |
---|
5182 | ; |
---|
5183 | return 0; |
---|
5184 | } |
---|
5185 | _ACEOF |
---|
5186 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5188 | (eval $ac_link) 2>conftest.er1 |
---|
5189 | ac_status=$? |
---|
5190 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5191 | rm -f conftest.er1 |
---|
5192 | cat conftest.err >&5 |
---|
5193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5194 | (exit $ac_status); } && |
---|
5195 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5196 | || test ! -s conftest.err' |
---|
5197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5198 | (eval $ac_try) 2>&5 |
---|
5199 | ac_status=$? |
---|
5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5201 | (exit $ac_status); }; } && |
---|
5202 | { ac_try='test -s conftest$ac_exeext' |
---|
5203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5204 | (eval $ac_try) 2>&5 |
---|
5205 | ac_status=$? |
---|
5206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5207 | (exit $ac_status); }; }; then |
---|
5208 | ac_cv_lib_glu32_main=yes |
---|
5209 | else |
---|
5210 | echo "$as_me: failed program was:" >&5 |
---|
5211 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5212 | |
---|
5213 | ac_cv_lib_glu32_main=no |
---|
5214 | fi |
---|
5215 | rm -f conftest.err conftest.$ac_objext \ |
---|
5216 | conftest$ac_exeext conftest.$ac_ext |
---|
5217 | LIBS=$ac_check_lib_save_LIBS |
---|
5218 | fi |
---|
5219 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
5220 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
5221 | if test $ac_cv_lib_glu32_main = yes; then |
---|
5222 | FOUND_glu32=yes |
---|
5223 | fi |
---|
5224 | |
---|
5225 | if test x$FOUND_glu32 = xyes ; then |
---|
5226 | LIBS="$LIBS -lGLU32" |
---|
5227 | else |
---|
5228 | echo "------------------" |
---|
5229 | echo "GLU library not found." |
---|
5230 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5231 | echo "------------------" |
---|
5232 | exit -1 |
---|
5233 | fi |
---|
5234 | |
---|
5235 | #--------# |
---|
5236 | # openAL # |
---|
5237 | #--------# |
---|
5238 | # checking for openAL-headers |
---|
5239 | |
---|
5240 | for ac_header in AL/al.h |
---|
5241 | do |
---|
5242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5248 | fi |
---|
5249 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5250 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5251 | else |
---|
5252 | # Is the header compilable? |
---|
5253 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5254 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5255 | cat >conftest.$ac_ext <<_ACEOF |
---|
5256 | /* confdefs.h. */ |
---|
5257 | _ACEOF |
---|
5258 | cat confdefs.h >>conftest.$ac_ext |
---|
5259 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5260 | /* end confdefs.h. */ |
---|
5261 | $ac_includes_default |
---|
5262 | #include <$ac_header> |
---|
5263 | _ACEOF |
---|
5264 | rm -f conftest.$ac_objext |
---|
5265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5266 | (eval $ac_compile) 2>conftest.er1 |
---|
5267 | ac_status=$? |
---|
5268 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5269 | rm -f conftest.er1 |
---|
5270 | cat conftest.err >&5 |
---|
5271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5272 | (exit $ac_status); } && |
---|
5273 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5274 | || test ! -s conftest.err' |
---|
5275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5276 | (eval $ac_try) 2>&5 |
---|
5277 | ac_status=$? |
---|
5278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5279 | (exit $ac_status); }; } && |
---|
5280 | { ac_try='test -s conftest.$ac_objext' |
---|
5281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5282 | (eval $ac_try) 2>&5 |
---|
5283 | ac_status=$? |
---|
5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5285 | (exit $ac_status); }; }; then |
---|
5286 | ac_header_compiler=yes |
---|
5287 | else |
---|
5288 | echo "$as_me: failed program was:" >&5 |
---|
5289 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5290 | |
---|
5291 | ac_header_compiler=no |
---|
5292 | fi |
---|
5293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5294 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5295 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5296 | |
---|
5297 | # Is the header present? |
---|
5298 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5299 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5300 | cat >conftest.$ac_ext <<_ACEOF |
---|
5301 | /* confdefs.h. */ |
---|
5302 | _ACEOF |
---|
5303 | cat confdefs.h >>conftest.$ac_ext |
---|
5304 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5305 | /* end confdefs.h. */ |
---|
5306 | #include <$ac_header> |
---|
5307 | _ACEOF |
---|
5308 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5309 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5310 | ac_status=$? |
---|
5311 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5312 | rm -f conftest.er1 |
---|
5313 | cat conftest.err >&5 |
---|
5314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5315 | (exit $ac_status); } >/dev/null; then |
---|
5316 | if test -s conftest.err; then |
---|
5317 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5318 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5319 | else |
---|
5320 | ac_cpp_err= |
---|
5321 | fi |
---|
5322 | else |
---|
5323 | ac_cpp_err=yes |
---|
5324 | fi |
---|
5325 | if test -z "$ac_cpp_err"; then |
---|
5326 | ac_header_preproc=yes |
---|
5327 | else |
---|
5328 | echo "$as_me: failed program was:" >&5 |
---|
5329 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5330 | |
---|
5331 | ac_header_preproc=no |
---|
5332 | fi |
---|
5333 | rm -f conftest.err conftest.$ac_ext |
---|
5334 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5335 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5336 | |
---|
5337 | # So? What about this header? |
---|
5338 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5339 | yes:no: ) |
---|
5340 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5341 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5343 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5344 | ac_header_preproc=yes |
---|
5345 | ;; |
---|
5346 | no:yes:* ) |
---|
5347 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5348 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5349 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5350 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5351 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5352 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5353 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5354 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5356 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5357 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5358 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5359 | ( |
---|
5360 | cat <<\_ASBOX |
---|
5361 | ## ---------------------------------------------- ## |
---|
5362 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5363 | ## ---------------------------------------------- ## |
---|
5364 | _ASBOX |
---|
5365 | ) | |
---|
5366 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5367 | ;; |
---|
5368 | esac |
---|
5369 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5371 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5373 | else |
---|
5374 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5375 | fi |
---|
5376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5377 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5378 | |
---|
5379 | fi |
---|
5380 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5381 | cat >>confdefs.h <<_ACEOF |
---|
5382 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5383 | _ACEOF |
---|
5384 | |
---|
5385 | else |
---|
5386 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
5387 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
5388 | { (exit 1); exit 1; }; } |
---|
5389 | fi |
---|
5390 | |
---|
5391 | done |
---|
5392 | |
---|
5393 | # checking for openAL-lib |
---|
5394 | echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 |
---|
5395 | echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 |
---|
5396 | if test "${ac_cv_lib_OpenAL32_main+set}" = set; then |
---|
5397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5398 | else |
---|
5399 | ac_check_lib_save_LIBS=$LIBS |
---|
5400 | LIBS="-lOpenAL32 $LIBS" |
---|
5401 | cat >conftest.$ac_ext <<_ACEOF |
---|
5402 | /* confdefs.h. */ |
---|
5403 | _ACEOF |
---|
5404 | cat confdefs.h >>conftest.$ac_ext |
---|
5405 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5406 | /* end confdefs.h. */ |
---|
5407 | |
---|
5408 | |
---|
5409 | int |
---|
5410 | main () |
---|
5411 | { |
---|
5412 | main (); |
---|
5413 | ; |
---|
5414 | return 0; |
---|
5415 | } |
---|
5416 | _ACEOF |
---|
5417 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5419 | (eval $ac_link) 2>conftest.er1 |
---|
5420 | ac_status=$? |
---|
5421 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5422 | rm -f conftest.er1 |
---|
5423 | cat conftest.err >&5 |
---|
5424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5425 | (exit $ac_status); } && |
---|
5426 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5427 | || test ! -s conftest.err' |
---|
5428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5429 | (eval $ac_try) 2>&5 |
---|
5430 | ac_status=$? |
---|
5431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5432 | (exit $ac_status); }; } && |
---|
5433 | { ac_try='test -s conftest$ac_exeext' |
---|
5434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5435 | (eval $ac_try) 2>&5 |
---|
5436 | ac_status=$? |
---|
5437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5438 | (exit $ac_status); }; }; then |
---|
5439 | ac_cv_lib_OpenAL32_main=yes |
---|
5440 | else |
---|
5441 | echo "$as_me: failed program was:" >&5 |
---|
5442 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5443 | |
---|
5444 | ac_cv_lib_OpenAL32_main=no |
---|
5445 | fi |
---|
5446 | rm -f conftest.err conftest.$ac_objext \ |
---|
5447 | conftest$ac_exeext conftest.$ac_ext |
---|
5448 | LIBS=$ac_check_lib_save_LIBS |
---|
5449 | fi |
---|
5450 | echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 |
---|
5451 | echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 |
---|
5452 | if test $ac_cv_lib_OpenAL32_main = yes; then |
---|
5453 | FOUND_openal=yes |
---|
5454 | fi |
---|
5455 | |
---|
5456 | echo "$as_me:$LINENO: checking for main in -lALut" >&5 |
---|
5457 | echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 |
---|
5458 | if test "${ac_cv_lib_ALut_main+set}" = set; then |
---|
5459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5460 | else |
---|
5461 | ac_check_lib_save_LIBS=$LIBS |
---|
5462 | LIBS="-lALut $LIBS" |
---|
5463 | cat >conftest.$ac_ext <<_ACEOF |
---|
5464 | /* confdefs.h. */ |
---|
5465 | _ACEOF |
---|
5466 | cat confdefs.h >>conftest.$ac_ext |
---|
5467 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5468 | /* end confdefs.h. */ |
---|
5469 | |
---|
5470 | |
---|
5471 | int |
---|
5472 | main () |
---|
5473 | { |
---|
5474 | main (); |
---|
5475 | ; |
---|
5476 | return 0; |
---|
5477 | } |
---|
5478 | _ACEOF |
---|
5479 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5481 | (eval $ac_link) 2>conftest.er1 |
---|
5482 | ac_status=$? |
---|
5483 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5484 | rm -f conftest.er1 |
---|
5485 | cat conftest.err >&5 |
---|
5486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5487 | (exit $ac_status); } && |
---|
5488 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5489 | || test ! -s conftest.err' |
---|
5490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5491 | (eval $ac_try) 2>&5 |
---|
5492 | ac_status=$? |
---|
5493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5494 | (exit $ac_status); }; } && |
---|
5495 | { ac_try='test -s conftest$ac_exeext' |
---|
5496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5497 | (eval $ac_try) 2>&5 |
---|
5498 | ac_status=$? |
---|
5499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5500 | (exit $ac_status); }; }; then |
---|
5501 | ac_cv_lib_ALut_main=yes |
---|
5502 | else |
---|
5503 | echo "$as_me: failed program was:" >&5 |
---|
5504 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5505 | |
---|
5506 | ac_cv_lib_ALut_main=no |
---|
5507 | fi |
---|
5508 | rm -f conftest.err conftest.$ac_objext \ |
---|
5509 | conftest$ac_exeext conftest.$ac_ext |
---|
5510 | LIBS=$ac_check_lib_save_LIBS |
---|
5511 | fi |
---|
5512 | echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5 |
---|
5513 | echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6 |
---|
5514 | if test $ac_cv_lib_ALut_main = yes; then |
---|
5515 | FOUND_ALut=yes |
---|
5516 | fi |
---|
5517 | |
---|
5518 | if test x$FOUND_openal = xyes ; then |
---|
5519 | if test x$FOUND_ALut = xyes ; then |
---|
5520 | LIBS="$LIBS -lALut -lOpenAL32" |
---|
5521 | else |
---|
5522 | echo "------------------" |
---|
5523 | echo "openal library not found." |
---|
5524 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
5525 | echo "------------------" |
---|
5526 | exit -1 |
---|
5527 | fi |
---|
5528 | fi |
---|
5529 | ;; |
---|
5530 | |
---|
5531 | ######### |
---|
5532 | #-------# |
---|
5533 | # LINUX # |
---|
5534 | #-------# |
---|
5535 | ######### |
---|
5536 | *-*-linux*) |
---|
5537 | echo "Linux detected" |
---|
5538 | |
---|
5539 | Linux="yes" |
---|
5540 | |
---|
5541 | CPPFLAGS="-I/usr/include" |
---|
5542 | if test x$SHARED_LIB_PATH != xno; then |
---|
5543 | echo "setting new LDFlAGS with $SHARED_LIB_PATH" |
---|
5544 | LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH $LDFLAGS" |
---|
5545 | fi |
---|
5546 | LDFLAGS="-L/usr/lib" |
---|
5547 | ## LDFLAGS="-L/usr/lib -L$HOME/tmp/lib $LDFLAGS" |
---|
5548 | |
---|
5549 | # checking gl header |
---|
5550 | |
---|
5551 | for ac_header in GL/gl.h |
---|
5552 | do |
---|
5553 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5554 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5559 | fi |
---|
5560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5561 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5562 | else |
---|
5563 | # Is the header compilable? |
---|
5564 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5565 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5566 | cat >conftest.$ac_ext <<_ACEOF |
---|
5567 | /* confdefs.h. */ |
---|
5568 | _ACEOF |
---|
5569 | cat confdefs.h >>conftest.$ac_ext |
---|
5570 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5571 | /* end confdefs.h. */ |
---|
5572 | $ac_includes_default |
---|
5573 | #include <$ac_header> |
---|
5574 | _ACEOF |
---|
5575 | rm -f conftest.$ac_objext |
---|
5576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5577 | (eval $ac_compile) 2>conftest.er1 |
---|
5578 | ac_status=$? |
---|
5579 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5580 | rm -f conftest.er1 |
---|
5581 | cat conftest.err >&5 |
---|
5582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5583 | (exit $ac_status); } && |
---|
5584 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5585 | || test ! -s conftest.err' |
---|
5586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5587 | (eval $ac_try) 2>&5 |
---|
5588 | ac_status=$? |
---|
5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5590 | (exit $ac_status); }; } && |
---|
5591 | { ac_try='test -s conftest.$ac_objext' |
---|
5592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5593 | (eval $ac_try) 2>&5 |
---|
5594 | ac_status=$? |
---|
5595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5596 | (exit $ac_status); }; }; then |
---|
5597 | ac_header_compiler=yes |
---|
5598 | else |
---|
5599 | echo "$as_me: failed program was:" >&5 |
---|
5600 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5601 | |
---|
5602 | ac_header_compiler=no |
---|
5603 | fi |
---|
5604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5605 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5606 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5607 | |
---|
5608 | # Is the header present? |
---|
5609 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5610 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5611 | cat >conftest.$ac_ext <<_ACEOF |
---|
5612 | /* confdefs.h. */ |
---|
5613 | _ACEOF |
---|
5614 | cat confdefs.h >>conftest.$ac_ext |
---|
5615 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5616 | /* end confdefs.h. */ |
---|
5617 | #include <$ac_header> |
---|
5618 | _ACEOF |
---|
5619 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5620 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5621 | ac_status=$? |
---|
5622 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5623 | rm -f conftest.er1 |
---|
5624 | cat conftest.err >&5 |
---|
5625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5626 | (exit $ac_status); } >/dev/null; then |
---|
5627 | if test -s conftest.err; then |
---|
5628 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5629 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5630 | else |
---|
5631 | ac_cpp_err= |
---|
5632 | fi |
---|
5633 | else |
---|
5634 | ac_cpp_err=yes |
---|
5635 | fi |
---|
5636 | if test -z "$ac_cpp_err"; then |
---|
5637 | ac_header_preproc=yes |
---|
5638 | else |
---|
5639 | echo "$as_me: failed program was:" >&5 |
---|
5640 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5641 | |
---|
5642 | ac_header_preproc=no |
---|
5643 | fi |
---|
5644 | rm -f conftest.err conftest.$ac_ext |
---|
5645 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5646 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5647 | |
---|
5648 | # So? What about this header? |
---|
5649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5650 | yes:no: ) |
---|
5651 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5652 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5653 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5654 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5655 | ac_header_preproc=yes |
---|
5656 | ;; |
---|
5657 | no:yes:* ) |
---|
5658 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5659 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5660 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5661 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5662 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5663 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5664 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5665 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5666 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5667 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5668 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5669 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5670 | ( |
---|
5671 | cat <<\_ASBOX |
---|
5672 | ## ---------------------------------------------- ## |
---|
5673 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5674 | ## ---------------------------------------------- ## |
---|
5675 | _ASBOX |
---|
5676 | ) | |
---|
5677 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5678 | ;; |
---|
5679 | esac |
---|
5680 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5681 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5682 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5684 | else |
---|
5685 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5686 | fi |
---|
5687 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5688 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5689 | |
---|
5690 | fi |
---|
5691 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5692 | cat >>confdefs.h <<_ACEOF |
---|
5693 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5694 | _ACEOF |
---|
5695 | |
---|
5696 | else |
---|
5697 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5698 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5699 | { (exit 1); exit 1; }; } |
---|
5700 | fi |
---|
5701 | |
---|
5702 | done |
---|
5703 | |
---|
5704 | |
---|
5705 | # checking for Unix GL |
---|
5706 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
5707 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
5708 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
5709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5710 | else |
---|
5711 | ac_check_lib_save_LIBS=$LIBS |
---|
5712 | LIBS="-lGL $LIBS" |
---|
5713 | cat >conftest.$ac_ext <<_ACEOF |
---|
5714 | /* confdefs.h. */ |
---|
5715 | _ACEOF |
---|
5716 | cat confdefs.h >>conftest.$ac_ext |
---|
5717 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5718 | /* end confdefs.h. */ |
---|
5719 | |
---|
5720 | |
---|
5721 | int |
---|
5722 | main () |
---|
5723 | { |
---|
5724 | main (); |
---|
5725 | ; |
---|
5726 | return 0; |
---|
5727 | } |
---|
5728 | _ACEOF |
---|
5729 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5731 | (eval $ac_link) 2>conftest.er1 |
---|
5732 | ac_status=$? |
---|
5733 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5734 | rm -f conftest.er1 |
---|
5735 | cat conftest.err >&5 |
---|
5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5737 | (exit $ac_status); } && |
---|
5738 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5739 | || test ! -s conftest.err' |
---|
5740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5741 | (eval $ac_try) 2>&5 |
---|
5742 | ac_status=$? |
---|
5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5744 | (exit $ac_status); }; } && |
---|
5745 | { ac_try='test -s conftest$ac_exeext' |
---|
5746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5747 | (eval $ac_try) 2>&5 |
---|
5748 | ac_status=$? |
---|
5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5750 | (exit $ac_status); }; }; then |
---|
5751 | ac_cv_lib_GL_main=yes |
---|
5752 | else |
---|
5753 | echo "$as_me: failed program was:" >&5 |
---|
5754 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5755 | |
---|
5756 | ac_cv_lib_GL_main=no |
---|
5757 | fi |
---|
5758 | rm -f conftest.err conftest.$ac_objext \ |
---|
5759 | conftest$ac_exeext conftest.$ac_ext |
---|
5760 | LIBS=$ac_check_lib_save_LIBS |
---|
5761 | fi |
---|
5762 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
5763 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
5764 | if test $ac_cv_lib_GL_main = yes; then |
---|
5765 | FOUND_GL=yes |
---|
5766 | fi |
---|
5767 | |
---|
5768 | if test x$FOUND_GL = xyes ; then |
---|
5769 | LIBS="$LIBS -lGL" |
---|
5770 | else |
---|
5771 | echo "------------------" |
---|
5772 | echo "opengl not found." |
---|
5773 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
5774 | echo "------------------" |
---|
5775 | exit -1 |
---|
5776 | fi |
---|
5777 | |
---|
5778 | # cheking for GLU-header |
---|
5779 | |
---|
5780 | for ac_header in GL/glu.h |
---|
5781 | do |
---|
5782 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5784 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5785 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5786 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5788 | fi |
---|
5789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5790 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5791 | else |
---|
5792 | # Is the header compilable? |
---|
5793 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5794 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5795 | cat >conftest.$ac_ext <<_ACEOF |
---|
5796 | /* confdefs.h. */ |
---|
5797 | _ACEOF |
---|
5798 | cat confdefs.h >>conftest.$ac_ext |
---|
5799 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5800 | /* end confdefs.h. */ |
---|
5801 | $ac_includes_default |
---|
5802 | #include <$ac_header> |
---|
5803 | _ACEOF |
---|
5804 | rm -f conftest.$ac_objext |
---|
5805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5806 | (eval $ac_compile) 2>conftest.er1 |
---|
5807 | ac_status=$? |
---|
5808 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5809 | rm -f conftest.er1 |
---|
5810 | cat conftest.err >&5 |
---|
5811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5812 | (exit $ac_status); } && |
---|
5813 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5814 | || test ! -s conftest.err' |
---|
5815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5816 | (eval $ac_try) 2>&5 |
---|
5817 | ac_status=$? |
---|
5818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5819 | (exit $ac_status); }; } && |
---|
5820 | { ac_try='test -s conftest.$ac_objext' |
---|
5821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5822 | (eval $ac_try) 2>&5 |
---|
5823 | ac_status=$? |
---|
5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5825 | (exit $ac_status); }; }; then |
---|
5826 | ac_header_compiler=yes |
---|
5827 | else |
---|
5828 | echo "$as_me: failed program was:" >&5 |
---|
5829 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5830 | |
---|
5831 | ac_header_compiler=no |
---|
5832 | fi |
---|
5833 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5834 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5835 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5836 | |
---|
5837 | # Is the header present? |
---|
5838 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5839 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5840 | cat >conftest.$ac_ext <<_ACEOF |
---|
5841 | /* confdefs.h. */ |
---|
5842 | _ACEOF |
---|
5843 | cat confdefs.h >>conftest.$ac_ext |
---|
5844 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5845 | /* end confdefs.h. */ |
---|
5846 | #include <$ac_header> |
---|
5847 | _ACEOF |
---|
5848 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5849 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5850 | ac_status=$? |
---|
5851 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5852 | rm -f conftest.er1 |
---|
5853 | cat conftest.err >&5 |
---|
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5855 | (exit $ac_status); } >/dev/null; then |
---|
5856 | if test -s conftest.err; then |
---|
5857 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5858 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5859 | else |
---|
5860 | ac_cpp_err= |
---|
5861 | fi |
---|
5862 | else |
---|
5863 | ac_cpp_err=yes |
---|
5864 | fi |
---|
5865 | if test -z "$ac_cpp_err"; then |
---|
5866 | ac_header_preproc=yes |
---|
5867 | else |
---|
5868 | echo "$as_me: failed program was:" >&5 |
---|
5869 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5870 | |
---|
5871 | ac_header_preproc=no |
---|
5872 | fi |
---|
5873 | rm -f conftest.err conftest.$ac_ext |
---|
5874 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5875 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5876 | |
---|
5877 | # So? What about this header? |
---|
5878 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5879 | yes:no: ) |
---|
5880 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5881 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5882 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5883 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5884 | ac_header_preproc=yes |
---|
5885 | ;; |
---|
5886 | no:yes:* ) |
---|
5887 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5888 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5889 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5890 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5891 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5892 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5893 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5894 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5896 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5897 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5898 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5899 | ( |
---|
5900 | cat <<\_ASBOX |
---|
5901 | ## ---------------------------------------------- ## |
---|
5902 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5903 | ## ---------------------------------------------- ## |
---|
5904 | _ASBOX |
---|
5905 | ) | |
---|
5906 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5907 | ;; |
---|
5908 | esac |
---|
5909 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5910 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5911 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5913 | else |
---|
5914 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5915 | fi |
---|
5916 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5917 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5918 | |
---|
5919 | fi |
---|
5920 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5921 | cat >>confdefs.h <<_ACEOF |
---|
5922 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5923 | _ACEOF |
---|
5924 | |
---|
5925 | else |
---|
5926 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5927 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5928 | { (exit 1); exit 1; }; } |
---|
5929 | fi |
---|
5930 | |
---|
5931 | done |
---|
5932 | |
---|
5933 | |
---|
5934 | echo "$as_me:$LINENO: checking for main in -lGLU" >&5 |
---|
5935 | echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6 |
---|
5936 | if test "${ac_cv_lib_GLU_main+set}" = set; then |
---|
5937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5938 | else |
---|
5939 | ac_check_lib_save_LIBS=$LIBS |
---|
5940 | LIBS="-lGLU $LIBS" |
---|
5941 | cat >conftest.$ac_ext <<_ACEOF |
---|
5942 | /* confdefs.h. */ |
---|
5943 | _ACEOF |
---|
5944 | cat confdefs.h >>conftest.$ac_ext |
---|
5945 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5946 | /* end confdefs.h. */ |
---|
5947 | |
---|
5948 | |
---|
5949 | int |
---|
5950 | main () |
---|
5951 | { |
---|
5952 | main (); |
---|
5953 | ; |
---|
5954 | return 0; |
---|
5955 | } |
---|
5956 | _ACEOF |
---|
5957 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5959 | (eval $ac_link) 2>conftest.er1 |
---|
5960 | ac_status=$? |
---|
5961 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5962 | rm -f conftest.er1 |
---|
5963 | cat conftest.err >&5 |
---|
5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5965 | (exit $ac_status); } && |
---|
5966 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5967 | || test ! -s conftest.err' |
---|
5968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5969 | (eval $ac_try) 2>&5 |
---|
5970 | ac_status=$? |
---|
5971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5972 | (exit $ac_status); }; } && |
---|
5973 | { ac_try='test -s conftest$ac_exeext' |
---|
5974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5975 | (eval $ac_try) 2>&5 |
---|
5976 | ac_status=$? |
---|
5977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5978 | (exit $ac_status); }; }; then |
---|
5979 | ac_cv_lib_GLU_main=yes |
---|
5980 | else |
---|
5981 | echo "$as_me: failed program was:" >&5 |
---|
5982 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5983 | |
---|
5984 | ac_cv_lib_GLU_main=no |
---|
5985 | fi |
---|
5986 | rm -f conftest.err conftest.$ac_objext \ |
---|
5987 | conftest$ac_exeext conftest.$ac_ext |
---|
5988 | LIBS=$ac_check_lib_save_LIBS |
---|
5989 | fi |
---|
5990 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5 |
---|
5991 | echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6 |
---|
5992 | if test $ac_cv_lib_GLU_main = yes; then |
---|
5993 | FOUND_GLU=yes |
---|
5994 | fi |
---|
5995 | |
---|
5996 | if test x$FOUND_GLU = xyes ; then |
---|
5997 | LIBS="$LIBS -lGLU" |
---|
5998 | else |
---|
5999 | echo "------------------" |
---|
6000 | echo "GLU library not found." |
---|
6001 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
6002 | echo "------------------" |
---|
6003 | exit -1 |
---|
6004 | fi |
---|
6005 | |
---|
6006 | #--------# |
---|
6007 | # openAL # |
---|
6008 | #--------# |
---|
6009 | # checking for openAL-headers |
---|
6010 | |
---|
6011 | for ac_header in AL/al.h |
---|
6012 | do |
---|
6013 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6015 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6016 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6017 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6019 | fi |
---|
6020 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6021 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6022 | else |
---|
6023 | # Is the header compilable? |
---|
6024 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6025 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6026 | cat >conftest.$ac_ext <<_ACEOF |
---|
6027 | /* confdefs.h. */ |
---|
6028 | _ACEOF |
---|
6029 | cat confdefs.h >>conftest.$ac_ext |
---|
6030 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6031 | /* end confdefs.h. */ |
---|
6032 | $ac_includes_default |
---|
6033 | #include <$ac_header> |
---|
6034 | _ACEOF |
---|
6035 | rm -f conftest.$ac_objext |
---|
6036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6037 | (eval $ac_compile) 2>conftest.er1 |
---|
6038 | ac_status=$? |
---|
6039 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6040 | rm -f conftest.er1 |
---|
6041 | cat conftest.err >&5 |
---|
6042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6043 | (exit $ac_status); } && |
---|
6044 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6045 | || test ! -s conftest.err' |
---|
6046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6047 | (eval $ac_try) 2>&5 |
---|
6048 | ac_status=$? |
---|
6049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6050 | (exit $ac_status); }; } && |
---|
6051 | { ac_try='test -s conftest.$ac_objext' |
---|
6052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6053 | (eval $ac_try) 2>&5 |
---|
6054 | ac_status=$? |
---|
6055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6056 | (exit $ac_status); }; }; then |
---|
6057 | ac_header_compiler=yes |
---|
6058 | else |
---|
6059 | echo "$as_me: failed program was:" >&5 |
---|
6060 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6061 | |
---|
6062 | ac_header_compiler=no |
---|
6063 | fi |
---|
6064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6065 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6066 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6067 | |
---|
6068 | # Is the header present? |
---|
6069 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6070 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6071 | cat >conftest.$ac_ext <<_ACEOF |
---|
6072 | /* confdefs.h. */ |
---|
6073 | _ACEOF |
---|
6074 | cat confdefs.h >>conftest.$ac_ext |
---|
6075 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6076 | /* end confdefs.h. */ |
---|
6077 | #include <$ac_header> |
---|
6078 | _ACEOF |
---|
6079 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6080 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6081 | ac_status=$? |
---|
6082 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6083 | rm -f conftest.er1 |
---|
6084 | cat conftest.err >&5 |
---|
6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6086 | (exit $ac_status); } >/dev/null; then |
---|
6087 | if test -s conftest.err; then |
---|
6088 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6089 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6090 | else |
---|
6091 | ac_cpp_err= |
---|
6092 | fi |
---|
6093 | else |
---|
6094 | ac_cpp_err=yes |
---|
6095 | fi |
---|
6096 | if test -z "$ac_cpp_err"; then |
---|
6097 | ac_header_preproc=yes |
---|
6098 | else |
---|
6099 | echo "$as_me: failed program was:" >&5 |
---|
6100 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6101 | |
---|
6102 | ac_header_preproc=no |
---|
6103 | fi |
---|
6104 | rm -f conftest.err conftest.$ac_ext |
---|
6105 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6106 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6107 | |
---|
6108 | # So? What about this header? |
---|
6109 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6110 | yes:no: ) |
---|
6111 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6112 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6113 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6114 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6115 | ac_header_preproc=yes |
---|
6116 | ;; |
---|
6117 | no:yes:* ) |
---|
6118 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6119 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6120 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6121 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6122 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6123 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6124 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6125 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6126 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6127 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6128 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6129 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6130 | ( |
---|
6131 | cat <<\_ASBOX |
---|
6132 | ## ---------------------------------------------- ## |
---|
6133 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6134 | ## ---------------------------------------------- ## |
---|
6135 | _ASBOX |
---|
6136 | ) | |
---|
6137 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6138 | ;; |
---|
6139 | esac |
---|
6140 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6142 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6144 | else |
---|
6145 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6146 | fi |
---|
6147 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6148 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6149 | |
---|
6150 | fi |
---|
6151 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6152 | cat >>confdefs.h <<_ACEOF |
---|
6153 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6154 | _ACEOF |
---|
6155 | |
---|
6156 | else |
---|
6157 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
6158 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
6159 | { (exit 1); exit 1; }; } |
---|
6160 | fi |
---|
6161 | |
---|
6162 | done |
---|
6163 | |
---|
6164 | # checking for openAL-lib |
---|
6165 | echo "$as_me:$LINENO: checking for main in -lopenal" >&5 |
---|
6166 | echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 |
---|
6167 | if test "${ac_cv_lib_openal_main+set}" = set; then |
---|
6168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6169 | else |
---|
6170 | ac_check_lib_save_LIBS=$LIBS |
---|
6171 | LIBS="-lopenal $LIBS" |
---|
6172 | cat >conftest.$ac_ext <<_ACEOF |
---|
6173 | /* confdefs.h. */ |
---|
6174 | _ACEOF |
---|
6175 | cat confdefs.h >>conftest.$ac_ext |
---|
6176 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6177 | /* end confdefs.h. */ |
---|
6178 | |
---|
6179 | |
---|
6180 | int |
---|
6181 | main () |
---|
6182 | { |
---|
6183 | main (); |
---|
6184 | ; |
---|
6185 | return 0; |
---|
6186 | } |
---|
6187 | _ACEOF |
---|
6188 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6190 | (eval $ac_link) 2>conftest.er1 |
---|
6191 | ac_status=$? |
---|
6192 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6193 | rm -f conftest.er1 |
---|
6194 | cat conftest.err >&5 |
---|
6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6196 | (exit $ac_status); } && |
---|
6197 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6198 | || test ! -s conftest.err' |
---|
6199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6200 | (eval $ac_try) 2>&5 |
---|
6201 | ac_status=$? |
---|
6202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6203 | (exit $ac_status); }; } && |
---|
6204 | { ac_try='test -s conftest$ac_exeext' |
---|
6205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6206 | (eval $ac_try) 2>&5 |
---|
6207 | ac_status=$? |
---|
6208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6209 | (exit $ac_status); }; }; then |
---|
6210 | ac_cv_lib_openal_main=yes |
---|
6211 | else |
---|
6212 | echo "$as_me: failed program was:" >&5 |
---|
6213 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6214 | |
---|
6215 | ac_cv_lib_openal_main=no |
---|
6216 | fi |
---|
6217 | rm -f conftest.err conftest.$ac_objext \ |
---|
6218 | conftest$ac_exeext conftest.$ac_ext |
---|
6219 | LIBS=$ac_check_lib_save_LIBS |
---|
6220 | fi |
---|
6221 | echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 |
---|
6222 | echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 |
---|
6223 | if test $ac_cv_lib_openal_main = yes; then |
---|
6224 | FOUND_openal=yes |
---|
6225 | fi |
---|
6226 | |
---|
6227 | if test x$FOUND_openal = xyes ; then |
---|
6228 | LIBS="$LIBS -lopenal" |
---|
6229 | else |
---|
6230 | echo "------------------" |
---|
6231 | echo "openal library not found." |
---|
6232 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
6233 | echo "------------------" |
---|
6234 | exit -1 |
---|
6235 | fi |
---|
6236 | # checking for alut |
---|
6237 | # AC_CHECK_LIB([alut], [main], [FOUND_openal=yes]) |
---|
6238 | # if test x$FOUND_openal = xyes ; then |
---|
6239 | # LIBS="$LIBS -lalut" |
---|
6240 | # fi |
---|
6241 | |
---|
6242 | # checking for SDL |
---|
6243 | echo "$as_me:$LINENO: checking for SDL-version" >&5 |
---|
6244 | echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 |
---|
6245 | SDL_VERSION=`sdl-config --version` |
---|
6246 | echo $SDL_VERSION |
---|
6247 | |
---|
6248 | |
---|
6249 | for ac_header in SDL.h |
---|
6250 | do |
---|
6251 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6253 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6255 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6257 | fi |
---|
6258 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6259 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6260 | else |
---|
6261 | # Is the header compilable? |
---|
6262 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6263 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6264 | cat >conftest.$ac_ext <<_ACEOF |
---|
6265 | /* confdefs.h. */ |
---|
6266 | _ACEOF |
---|
6267 | cat confdefs.h >>conftest.$ac_ext |
---|
6268 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6269 | /* end confdefs.h. */ |
---|
6270 | $ac_includes_default |
---|
6271 | #include <$ac_header> |
---|
6272 | _ACEOF |
---|
6273 | rm -f conftest.$ac_objext |
---|
6274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6275 | (eval $ac_compile) 2>conftest.er1 |
---|
6276 | ac_status=$? |
---|
6277 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6278 | rm -f conftest.er1 |
---|
6279 | cat conftest.err >&5 |
---|
6280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6281 | (exit $ac_status); } && |
---|
6282 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6283 | || test ! -s conftest.err' |
---|
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); }; } && |
---|
6289 | { ac_try='test -s conftest.$ac_objext' |
---|
6290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6291 | (eval $ac_try) 2>&5 |
---|
6292 | ac_status=$? |
---|
6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6294 | (exit $ac_status); }; }; then |
---|
6295 | ac_header_compiler=yes |
---|
6296 | else |
---|
6297 | echo "$as_me: failed program was:" >&5 |
---|
6298 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6299 | |
---|
6300 | ac_header_compiler=no |
---|
6301 | fi |
---|
6302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6303 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6304 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6305 | |
---|
6306 | # Is the header present? |
---|
6307 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6308 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6309 | cat >conftest.$ac_ext <<_ACEOF |
---|
6310 | /* confdefs.h. */ |
---|
6311 | _ACEOF |
---|
6312 | cat confdefs.h >>conftest.$ac_ext |
---|
6313 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6314 | /* end confdefs.h. */ |
---|
6315 | #include <$ac_header> |
---|
6316 | _ACEOF |
---|
6317 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6318 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6319 | ac_status=$? |
---|
6320 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6321 | rm -f conftest.er1 |
---|
6322 | cat conftest.err >&5 |
---|
6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6324 | (exit $ac_status); } >/dev/null; then |
---|
6325 | if test -s conftest.err; then |
---|
6326 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6327 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6328 | else |
---|
6329 | ac_cpp_err= |
---|
6330 | fi |
---|
6331 | else |
---|
6332 | ac_cpp_err=yes |
---|
6333 | fi |
---|
6334 | if test -z "$ac_cpp_err"; then |
---|
6335 | ac_header_preproc=yes |
---|
6336 | else |
---|
6337 | echo "$as_me: failed program was:" >&5 |
---|
6338 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6339 | |
---|
6340 | ac_header_preproc=no |
---|
6341 | fi |
---|
6342 | rm -f conftest.err conftest.$ac_ext |
---|
6343 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6344 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6345 | |
---|
6346 | # So? What about this header? |
---|
6347 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6348 | yes:no: ) |
---|
6349 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6350 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6351 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6352 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6353 | ac_header_preproc=yes |
---|
6354 | ;; |
---|
6355 | no:yes:* ) |
---|
6356 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6357 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6358 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6359 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6360 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6361 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6362 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6363 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6364 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6365 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6366 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6367 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6368 | ( |
---|
6369 | cat <<\_ASBOX |
---|
6370 | ## ---------------------------------------------- ## |
---|
6371 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6372 | ## ---------------------------------------------- ## |
---|
6373 | _ASBOX |
---|
6374 | ) | |
---|
6375 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6376 | ;; |
---|
6377 | esac |
---|
6378 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6379 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6382 | else |
---|
6383 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6384 | fi |
---|
6385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6386 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6387 | |
---|
6388 | fi |
---|
6389 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6390 | cat >>confdefs.h <<_ACEOF |
---|
6391 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6392 | _ACEOF |
---|
6393 | |
---|
6394 | else |
---|
6395 | |
---|
6396 | for ac_header in SDL/SDL.h |
---|
6397 | do |
---|
6398 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6399 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6400 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6404 | fi |
---|
6405 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6406 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6407 | else |
---|
6408 | # Is the header compilable? |
---|
6409 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6410 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6411 | cat >conftest.$ac_ext <<_ACEOF |
---|
6412 | /* confdefs.h. */ |
---|
6413 | _ACEOF |
---|
6414 | cat confdefs.h >>conftest.$ac_ext |
---|
6415 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6416 | /* end confdefs.h. */ |
---|
6417 | $ac_includes_default |
---|
6418 | #include <$ac_header> |
---|
6419 | _ACEOF |
---|
6420 | rm -f conftest.$ac_objext |
---|
6421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6422 | (eval $ac_compile) 2>conftest.er1 |
---|
6423 | ac_status=$? |
---|
6424 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6425 | rm -f conftest.er1 |
---|
6426 | cat conftest.err >&5 |
---|
6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6428 | (exit $ac_status); } && |
---|
6429 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6430 | || test ! -s conftest.err' |
---|
6431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6432 | (eval $ac_try) 2>&5 |
---|
6433 | ac_status=$? |
---|
6434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6435 | (exit $ac_status); }; } && |
---|
6436 | { ac_try='test -s conftest.$ac_objext' |
---|
6437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6438 | (eval $ac_try) 2>&5 |
---|
6439 | ac_status=$? |
---|
6440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6441 | (exit $ac_status); }; }; then |
---|
6442 | ac_header_compiler=yes |
---|
6443 | else |
---|
6444 | echo "$as_me: failed program was:" >&5 |
---|
6445 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6446 | |
---|
6447 | ac_header_compiler=no |
---|
6448 | fi |
---|
6449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6450 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6451 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6452 | |
---|
6453 | # Is the header present? |
---|
6454 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6455 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6456 | cat >conftest.$ac_ext <<_ACEOF |
---|
6457 | /* confdefs.h. */ |
---|
6458 | _ACEOF |
---|
6459 | cat confdefs.h >>conftest.$ac_ext |
---|
6460 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6461 | /* end confdefs.h. */ |
---|
6462 | #include <$ac_header> |
---|
6463 | _ACEOF |
---|
6464 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6465 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6466 | ac_status=$? |
---|
6467 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6468 | rm -f conftest.er1 |
---|
6469 | cat conftest.err >&5 |
---|
6470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6471 | (exit $ac_status); } >/dev/null; then |
---|
6472 | if test -s conftest.err; then |
---|
6473 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6475 | else |
---|
6476 | ac_cpp_err= |
---|
6477 | fi |
---|
6478 | else |
---|
6479 | ac_cpp_err=yes |
---|
6480 | fi |
---|
6481 | if test -z "$ac_cpp_err"; then |
---|
6482 | ac_header_preproc=yes |
---|
6483 | else |
---|
6484 | echo "$as_me: failed program was:" >&5 |
---|
6485 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6486 | |
---|
6487 | ac_header_preproc=no |
---|
6488 | fi |
---|
6489 | rm -f conftest.err conftest.$ac_ext |
---|
6490 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6491 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6492 | |
---|
6493 | # So? What about this header? |
---|
6494 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6495 | yes:no: ) |
---|
6496 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6497 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6498 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6499 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6500 | ac_header_preproc=yes |
---|
6501 | ;; |
---|
6502 | no:yes:* ) |
---|
6503 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6504 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6505 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6506 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6507 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6508 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6509 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6510 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6512 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6513 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6514 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6515 | ( |
---|
6516 | cat <<\_ASBOX |
---|
6517 | ## ---------------------------------------------- ## |
---|
6518 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6519 | ## ---------------------------------------------- ## |
---|
6520 | _ASBOX |
---|
6521 | ) | |
---|
6522 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6523 | ;; |
---|
6524 | esac |
---|
6525 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6526 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6529 | else |
---|
6530 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6531 | fi |
---|
6532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6533 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6534 | |
---|
6535 | fi |
---|
6536 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6537 | cat >>confdefs.h <<_ACEOF |
---|
6538 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6539 | _ACEOF |
---|
6540 | |
---|
6541 | else |
---|
6542 | { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 |
---|
6543 | echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} |
---|
6544 | { (exit 1); exit 1; }; } |
---|
6545 | fi |
---|
6546 | |
---|
6547 | done |
---|
6548 | |
---|
6549 | fi |
---|
6550 | |
---|
6551 | done |
---|
6552 | |
---|
6553 | CPPFLAGS="`sdl-config --cflags` $CPPFLAGS" |
---|
6554 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
6555 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
6556 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
6557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6558 | else |
---|
6559 | ac_check_lib_save_LIBS=$LIBS |
---|
6560 | LIBS="-lSDL $LIBS" |
---|
6561 | cat >conftest.$ac_ext <<_ACEOF |
---|
6562 | /* confdefs.h. */ |
---|
6563 | _ACEOF |
---|
6564 | cat confdefs.h >>conftest.$ac_ext |
---|
6565 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6566 | /* end confdefs.h. */ |
---|
6567 | |
---|
6568 | |
---|
6569 | int |
---|
6570 | main () |
---|
6571 | { |
---|
6572 | main (); |
---|
6573 | ; |
---|
6574 | return 0; |
---|
6575 | } |
---|
6576 | _ACEOF |
---|
6577 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6579 | (eval $ac_link) 2>conftest.er1 |
---|
6580 | ac_status=$? |
---|
6581 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6582 | rm -f conftest.er1 |
---|
6583 | cat conftest.err >&5 |
---|
6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6585 | (exit $ac_status); } && |
---|
6586 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6587 | || test ! -s conftest.err' |
---|
6588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6589 | (eval $ac_try) 2>&5 |
---|
6590 | ac_status=$? |
---|
6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6592 | (exit $ac_status); }; } && |
---|
6593 | { ac_try='test -s conftest$ac_exeext' |
---|
6594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6595 | (eval $ac_try) 2>&5 |
---|
6596 | ac_status=$? |
---|
6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6598 | (exit $ac_status); }; }; then |
---|
6599 | ac_cv_lib_SDL_main=yes |
---|
6600 | else |
---|
6601 | echo "$as_me: failed program was:" >&5 |
---|
6602 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6603 | |
---|
6604 | ac_cv_lib_SDL_main=no |
---|
6605 | fi |
---|
6606 | rm -f conftest.err conftest.$ac_objext \ |
---|
6607 | conftest$ac_exeext conftest.$ac_ext |
---|
6608 | LIBS=$ac_check_lib_save_LIBS |
---|
6609 | fi |
---|
6610 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
6611 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
6612 | if test $ac_cv_lib_SDL_main = yes; then |
---|
6613 | FOUND_SDL=yes |
---|
6614 | fi |
---|
6615 | |
---|
6616 | if test x$FOUND_SDL = xyes ; then |
---|
6617 | LIBS="`sdl-config --libs` $LIBS" |
---|
6618 | else |
---|
6619 | echo "------------------" |
---|
6620 | echo "SDL library not found." |
---|
6621 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
6622 | echo "------------------" |
---|
6623 | exit -1 |
---|
6624 | fi |
---|
6625 | |
---|
6626 | ;; |
---|
6627 | |
---|
6628 | ############# |
---|
6629 | #-----------# |
---|
6630 | # MAC -OS X # |
---|
6631 | #-----------# |
---|
6632 | ############# |
---|
6633 | *darwin*) |
---|
6634 | echo "OS X detected" |
---|
6635 | |
---|
6636 | osX="yes" |
---|
6637 | |
---|
6638 | CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" |
---|
6639 | # checking gl header |
---|
6640 | |
---|
6641 | for ac_header in OpenGL/gl.h |
---|
6642 | do |
---|
6643 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6645 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6649 | fi |
---|
6650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6651 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6652 | else |
---|
6653 | # Is the header compilable? |
---|
6654 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6655 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6656 | cat >conftest.$ac_ext <<_ACEOF |
---|
6657 | /* confdefs.h. */ |
---|
6658 | _ACEOF |
---|
6659 | cat confdefs.h >>conftest.$ac_ext |
---|
6660 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6661 | /* end confdefs.h. */ |
---|
6662 | $ac_includes_default |
---|
6663 | #include <$ac_header> |
---|
6664 | _ACEOF |
---|
6665 | rm -f conftest.$ac_objext |
---|
6666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6667 | (eval $ac_compile) 2>conftest.er1 |
---|
6668 | ac_status=$? |
---|
6669 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6670 | rm -f conftest.er1 |
---|
6671 | cat conftest.err >&5 |
---|
6672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6673 | (exit $ac_status); } && |
---|
6674 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6675 | || test ! -s conftest.err' |
---|
6676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6677 | (eval $ac_try) 2>&5 |
---|
6678 | ac_status=$? |
---|
6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6680 | (exit $ac_status); }; } && |
---|
6681 | { ac_try='test -s conftest.$ac_objext' |
---|
6682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6683 | (eval $ac_try) 2>&5 |
---|
6684 | ac_status=$? |
---|
6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6686 | (exit $ac_status); }; }; then |
---|
6687 | ac_header_compiler=yes |
---|
6688 | else |
---|
6689 | echo "$as_me: failed program was:" >&5 |
---|
6690 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6691 | |
---|
6692 | ac_header_compiler=no |
---|
6693 | fi |
---|
6694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6695 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6696 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6697 | |
---|
6698 | # Is the header present? |
---|
6699 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6700 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6701 | cat >conftest.$ac_ext <<_ACEOF |
---|
6702 | /* confdefs.h. */ |
---|
6703 | _ACEOF |
---|
6704 | cat confdefs.h >>conftest.$ac_ext |
---|
6705 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6706 | /* end confdefs.h. */ |
---|
6707 | #include <$ac_header> |
---|
6708 | _ACEOF |
---|
6709 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6710 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6711 | ac_status=$? |
---|
6712 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6713 | rm -f conftest.er1 |
---|
6714 | cat conftest.err >&5 |
---|
6715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6716 | (exit $ac_status); } >/dev/null; then |
---|
6717 | if test -s conftest.err; then |
---|
6718 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6719 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6720 | else |
---|
6721 | ac_cpp_err= |
---|
6722 | fi |
---|
6723 | else |
---|
6724 | ac_cpp_err=yes |
---|
6725 | fi |
---|
6726 | if test -z "$ac_cpp_err"; then |
---|
6727 | ac_header_preproc=yes |
---|
6728 | else |
---|
6729 | echo "$as_me: failed program was:" >&5 |
---|
6730 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6731 | |
---|
6732 | ac_header_preproc=no |
---|
6733 | fi |
---|
6734 | rm -f conftest.err conftest.$ac_ext |
---|
6735 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6736 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6737 | |
---|
6738 | # So? What about this header? |
---|
6739 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6740 | yes:no: ) |
---|
6741 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6742 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6743 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6744 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6745 | ac_header_preproc=yes |
---|
6746 | ;; |
---|
6747 | no:yes:* ) |
---|
6748 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6749 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6750 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6751 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6752 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6753 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6754 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6755 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6756 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6757 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6758 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6759 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6760 | ( |
---|
6761 | cat <<\_ASBOX |
---|
6762 | ## ---------------------------------------------- ## |
---|
6763 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6764 | ## ---------------------------------------------- ## |
---|
6765 | _ASBOX |
---|
6766 | ) | |
---|
6767 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6768 | ;; |
---|
6769 | esac |
---|
6770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6774 | else |
---|
6775 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6776 | fi |
---|
6777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6778 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6779 | |
---|
6780 | fi |
---|
6781 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6782 | cat >>confdefs.h <<_ACEOF |
---|
6783 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6784 | _ACEOF |
---|
6785 | |
---|
6786 | else |
---|
6787 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6788 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6789 | { (exit 1); exit 1; }; } |
---|
6790 | fi |
---|
6791 | |
---|
6792 | done |
---|
6793 | |
---|
6794 | # cheking for GLU-header |
---|
6795 | |
---|
6796 | for ac_header in OpenGL/glu.h |
---|
6797 | do |
---|
6798 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6800 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6801 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6804 | fi |
---|
6805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6806 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6807 | else |
---|
6808 | # Is the header compilable? |
---|
6809 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6810 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6811 | cat >conftest.$ac_ext <<_ACEOF |
---|
6812 | /* confdefs.h. */ |
---|
6813 | _ACEOF |
---|
6814 | cat confdefs.h >>conftest.$ac_ext |
---|
6815 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6816 | /* end confdefs.h. */ |
---|
6817 | $ac_includes_default |
---|
6818 | #include <$ac_header> |
---|
6819 | _ACEOF |
---|
6820 | rm -f conftest.$ac_objext |
---|
6821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6822 | (eval $ac_compile) 2>conftest.er1 |
---|
6823 | ac_status=$? |
---|
6824 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6825 | rm -f conftest.er1 |
---|
6826 | cat conftest.err >&5 |
---|
6827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6828 | (exit $ac_status); } && |
---|
6829 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6830 | || test ! -s conftest.err' |
---|
6831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6832 | (eval $ac_try) 2>&5 |
---|
6833 | ac_status=$? |
---|
6834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6835 | (exit $ac_status); }; } && |
---|
6836 | { ac_try='test -s conftest.$ac_objext' |
---|
6837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6838 | (eval $ac_try) 2>&5 |
---|
6839 | ac_status=$? |
---|
6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6841 | (exit $ac_status); }; }; then |
---|
6842 | ac_header_compiler=yes |
---|
6843 | else |
---|
6844 | echo "$as_me: failed program was:" >&5 |
---|
6845 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6846 | |
---|
6847 | ac_header_compiler=no |
---|
6848 | fi |
---|
6849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6850 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6851 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6852 | |
---|
6853 | # Is the header present? |
---|
6854 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6855 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6856 | cat >conftest.$ac_ext <<_ACEOF |
---|
6857 | /* confdefs.h. */ |
---|
6858 | _ACEOF |
---|
6859 | cat confdefs.h >>conftest.$ac_ext |
---|
6860 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6861 | /* end confdefs.h. */ |
---|
6862 | #include <$ac_header> |
---|
6863 | _ACEOF |
---|
6864 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6865 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6866 | ac_status=$? |
---|
6867 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6868 | rm -f conftest.er1 |
---|
6869 | cat conftest.err >&5 |
---|
6870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6871 | (exit $ac_status); } >/dev/null; then |
---|
6872 | if test -s conftest.err; then |
---|
6873 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6874 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6875 | else |
---|
6876 | ac_cpp_err= |
---|
6877 | fi |
---|
6878 | else |
---|
6879 | ac_cpp_err=yes |
---|
6880 | fi |
---|
6881 | if test -z "$ac_cpp_err"; then |
---|
6882 | ac_header_preproc=yes |
---|
6883 | else |
---|
6884 | echo "$as_me: failed program was:" >&5 |
---|
6885 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6886 | |
---|
6887 | ac_header_preproc=no |
---|
6888 | fi |
---|
6889 | rm -f conftest.err conftest.$ac_ext |
---|
6890 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6891 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6892 | |
---|
6893 | # So? What about this header? |
---|
6894 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6895 | yes:no: ) |
---|
6896 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6897 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6899 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6900 | ac_header_preproc=yes |
---|
6901 | ;; |
---|
6902 | no:yes:* ) |
---|
6903 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6904 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6905 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6906 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6907 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6908 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6909 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6910 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6911 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6912 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6913 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6914 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6915 | ( |
---|
6916 | cat <<\_ASBOX |
---|
6917 | ## ---------------------------------------------- ## |
---|
6918 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6919 | ## ---------------------------------------------- ## |
---|
6920 | _ASBOX |
---|
6921 | ) | |
---|
6922 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6923 | ;; |
---|
6924 | esac |
---|
6925 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6929 | else |
---|
6930 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6931 | fi |
---|
6932 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6933 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6934 | |
---|
6935 | fi |
---|
6936 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6937 | cat >>confdefs.h <<_ACEOF |
---|
6938 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6939 | _ACEOF |
---|
6940 | |
---|
6941 | else |
---|
6942 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6943 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6944 | { (exit 1); exit 1; }; } |
---|
6945 | fi |
---|
6946 | |
---|
6947 | done |
---|
6948 | |
---|
6949 | |
---|
6950 | LIBS="$LIBS -framework OpenGL" |
---|
6951 | |
---|
6952 | |
---|
6953 | ## SDL-check |
---|
6954 | SDL_CFLAGS=`sdl-config --cflags` |
---|
6955 | SDL_LIBS=`sdl-config --libs` |
---|
6956 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
6957 | LIBS="$LIBS $SDL_LIBS" |
---|
6958 | |
---|
6959 | |
---|
6960 | # checking for SDL-headers |
---|
6961 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
6962 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
6963 | |
---|
6964 | ## checking for SDL |
---|
6965 | # SDL_VERSION=1.2.7 |
---|
6966 | # AM_PATH_SDL($SDL_VERSION, |
---|
6967 | # :, |
---|
6968 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
6969 | # ) |
---|
6970 | |
---|
6971 | |
---|
6972 | ;; |
---|
6973 | |
---|
6974 | *) |
---|
6975 | ;; |
---|
6976 | esac |
---|
6977 | |
---|
6978 | |
---|
6979 | |
---|
6980 | ################################### |
---|
6981 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
6982 | ################################### |
---|
6983 | |
---|
6984 | #---------# |
---|
6985 | # SDL_ttf # |
---|
6986 | #---------# |
---|
6987 | # checking for SDL_ttf-headers |
---|
6988 | |
---|
6989 | for ac_header in SDL_ttf.h |
---|
6990 | do |
---|
6991 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6993 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6994 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6997 | fi |
---|
6998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7000 | else |
---|
7001 | # Is the header compilable? |
---|
7002 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7003 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7004 | cat >conftest.$ac_ext <<_ACEOF |
---|
7005 | /* confdefs.h. */ |
---|
7006 | _ACEOF |
---|
7007 | cat confdefs.h >>conftest.$ac_ext |
---|
7008 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7009 | /* end confdefs.h. */ |
---|
7010 | $ac_includes_default |
---|
7011 | #include <$ac_header> |
---|
7012 | _ACEOF |
---|
7013 | rm -f conftest.$ac_objext |
---|
7014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7015 | (eval $ac_compile) 2>conftest.er1 |
---|
7016 | ac_status=$? |
---|
7017 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7018 | rm -f conftest.er1 |
---|
7019 | cat conftest.err >&5 |
---|
7020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7021 | (exit $ac_status); } && |
---|
7022 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7023 | || test ! -s conftest.err' |
---|
7024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7025 | (eval $ac_try) 2>&5 |
---|
7026 | ac_status=$? |
---|
7027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7028 | (exit $ac_status); }; } && |
---|
7029 | { ac_try='test -s conftest.$ac_objext' |
---|
7030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7031 | (eval $ac_try) 2>&5 |
---|
7032 | ac_status=$? |
---|
7033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7034 | (exit $ac_status); }; }; then |
---|
7035 | ac_header_compiler=yes |
---|
7036 | else |
---|
7037 | echo "$as_me: failed program was:" >&5 |
---|
7038 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7039 | |
---|
7040 | ac_header_compiler=no |
---|
7041 | fi |
---|
7042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7043 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7044 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7045 | |
---|
7046 | # Is the header present? |
---|
7047 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7048 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7049 | cat >conftest.$ac_ext <<_ACEOF |
---|
7050 | /* confdefs.h. */ |
---|
7051 | _ACEOF |
---|
7052 | cat confdefs.h >>conftest.$ac_ext |
---|
7053 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7054 | /* end confdefs.h. */ |
---|
7055 | #include <$ac_header> |
---|
7056 | _ACEOF |
---|
7057 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7058 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7059 | ac_status=$? |
---|
7060 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7061 | rm -f conftest.er1 |
---|
7062 | cat conftest.err >&5 |
---|
7063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7064 | (exit $ac_status); } >/dev/null; then |
---|
7065 | if test -s conftest.err; then |
---|
7066 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7067 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7068 | else |
---|
7069 | ac_cpp_err= |
---|
7070 | fi |
---|
7071 | else |
---|
7072 | ac_cpp_err=yes |
---|
7073 | fi |
---|
7074 | if test -z "$ac_cpp_err"; then |
---|
7075 | ac_header_preproc=yes |
---|
7076 | else |
---|
7077 | echo "$as_me: failed program was:" >&5 |
---|
7078 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7079 | |
---|
7080 | ac_header_preproc=no |
---|
7081 | fi |
---|
7082 | rm -f conftest.err conftest.$ac_ext |
---|
7083 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7084 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7085 | |
---|
7086 | # So? What about this header? |
---|
7087 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7088 | yes:no: ) |
---|
7089 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7090 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7091 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7092 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7093 | ac_header_preproc=yes |
---|
7094 | ;; |
---|
7095 | no:yes:* ) |
---|
7096 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7097 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7098 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7099 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7100 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7101 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7102 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7103 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7104 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7105 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7106 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7107 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7108 | ( |
---|
7109 | cat <<\_ASBOX |
---|
7110 | ## ---------------------------------------------- ## |
---|
7111 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7112 | ## ---------------------------------------------- ## |
---|
7113 | _ASBOX |
---|
7114 | ) | |
---|
7115 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7116 | ;; |
---|
7117 | esac |
---|
7118 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7119 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7120 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7122 | else |
---|
7123 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7124 | fi |
---|
7125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7126 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7127 | |
---|
7128 | fi |
---|
7129 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7130 | cat >>confdefs.h <<_ACEOF |
---|
7131 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7132 | _ACEOF |
---|
7133 | |
---|
7134 | else |
---|
7135 | |
---|
7136 | for ac_header in SDL/SDL_ttf.h |
---|
7137 | do |
---|
7138 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7140 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7142 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7144 | fi |
---|
7145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7146 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7147 | else |
---|
7148 | # Is the header compilable? |
---|
7149 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7150 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7151 | cat >conftest.$ac_ext <<_ACEOF |
---|
7152 | /* confdefs.h. */ |
---|
7153 | _ACEOF |
---|
7154 | cat confdefs.h >>conftest.$ac_ext |
---|
7155 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7156 | /* end confdefs.h. */ |
---|
7157 | $ac_includes_default |
---|
7158 | #include <$ac_header> |
---|
7159 | _ACEOF |
---|
7160 | rm -f conftest.$ac_objext |
---|
7161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7162 | (eval $ac_compile) 2>conftest.er1 |
---|
7163 | ac_status=$? |
---|
7164 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7165 | rm -f conftest.er1 |
---|
7166 | cat conftest.err >&5 |
---|
7167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7168 | (exit $ac_status); } && |
---|
7169 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7170 | || test ! -s conftest.err' |
---|
7171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7172 | (eval $ac_try) 2>&5 |
---|
7173 | ac_status=$? |
---|
7174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7175 | (exit $ac_status); }; } && |
---|
7176 | { ac_try='test -s conftest.$ac_objext' |
---|
7177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7178 | (eval $ac_try) 2>&5 |
---|
7179 | ac_status=$? |
---|
7180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7181 | (exit $ac_status); }; }; then |
---|
7182 | ac_header_compiler=yes |
---|
7183 | else |
---|
7184 | echo "$as_me: failed program was:" >&5 |
---|
7185 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7186 | |
---|
7187 | ac_header_compiler=no |
---|
7188 | fi |
---|
7189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7190 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7191 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7192 | |
---|
7193 | # Is the header present? |
---|
7194 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7195 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7196 | cat >conftest.$ac_ext <<_ACEOF |
---|
7197 | /* confdefs.h. */ |
---|
7198 | _ACEOF |
---|
7199 | cat confdefs.h >>conftest.$ac_ext |
---|
7200 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7201 | /* end confdefs.h. */ |
---|
7202 | #include <$ac_header> |
---|
7203 | _ACEOF |
---|
7204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7206 | ac_status=$? |
---|
7207 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7208 | rm -f conftest.er1 |
---|
7209 | cat conftest.err >&5 |
---|
7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7211 | (exit $ac_status); } >/dev/null; then |
---|
7212 | if test -s conftest.err; then |
---|
7213 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7214 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7215 | else |
---|
7216 | ac_cpp_err= |
---|
7217 | fi |
---|
7218 | else |
---|
7219 | ac_cpp_err=yes |
---|
7220 | fi |
---|
7221 | if test -z "$ac_cpp_err"; then |
---|
7222 | ac_header_preproc=yes |
---|
7223 | else |
---|
7224 | echo "$as_me: failed program was:" >&5 |
---|
7225 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7226 | |
---|
7227 | ac_header_preproc=no |
---|
7228 | fi |
---|
7229 | rm -f conftest.err conftest.$ac_ext |
---|
7230 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7231 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7232 | |
---|
7233 | # So? What about this header? |
---|
7234 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7235 | yes:no: ) |
---|
7236 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7237 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7238 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7239 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7240 | ac_header_preproc=yes |
---|
7241 | ;; |
---|
7242 | no:yes:* ) |
---|
7243 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7244 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7245 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7246 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7247 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7248 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7249 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7250 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7251 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7252 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7253 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7254 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7255 | ( |
---|
7256 | cat <<\_ASBOX |
---|
7257 | ## ---------------------------------------------- ## |
---|
7258 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7259 | ## ---------------------------------------------- ## |
---|
7260 | _ASBOX |
---|
7261 | ) | |
---|
7262 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7263 | ;; |
---|
7264 | esac |
---|
7265 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7266 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7269 | else |
---|
7270 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7271 | fi |
---|
7272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7273 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7274 | |
---|
7275 | fi |
---|
7276 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7277 | cat >>confdefs.h <<_ACEOF |
---|
7278 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7279 | _ACEOF |
---|
7280 | |
---|
7281 | else |
---|
7282 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
7283 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
7284 | { (exit 1); exit 1; }; } |
---|
7285 | fi |
---|
7286 | |
---|
7287 | done |
---|
7288 | |
---|
7289 | fi |
---|
7290 | |
---|
7291 | done |
---|
7292 | |
---|
7293 | # checking for SDL_ttf-lib |
---|
7294 | echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 |
---|
7295 | echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 |
---|
7296 | if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then |
---|
7297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7298 | else |
---|
7299 | ac_check_lib_save_LIBS=$LIBS |
---|
7300 | LIBS="-lSDL_ttf $LIBS" |
---|
7301 | cat >conftest.$ac_ext <<_ACEOF |
---|
7302 | /* confdefs.h. */ |
---|
7303 | _ACEOF |
---|
7304 | cat confdefs.h >>conftest.$ac_ext |
---|
7305 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7306 | /* end confdefs.h. */ |
---|
7307 | |
---|
7308 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7309 | #ifdef __cplusplus |
---|
7310 | extern "C" |
---|
7311 | #endif |
---|
7312 | /* We use char because int might match the return type of a gcc2 |
---|
7313 | builtin and then its argument prototype would still apply. */ |
---|
7314 | char TTF_OpenFont (); |
---|
7315 | int |
---|
7316 | main () |
---|
7317 | { |
---|
7318 | TTF_OpenFont (); |
---|
7319 | ; |
---|
7320 | return 0; |
---|
7321 | } |
---|
7322 | _ACEOF |
---|
7323 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7325 | (eval $ac_link) 2>conftest.er1 |
---|
7326 | ac_status=$? |
---|
7327 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7328 | rm -f conftest.er1 |
---|
7329 | cat conftest.err >&5 |
---|
7330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7331 | (exit $ac_status); } && |
---|
7332 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7333 | || test ! -s conftest.err' |
---|
7334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7335 | (eval $ac_try) 2>&5 |
---|
7336 | ac_status=$? |
---|
7337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7338 | (exit $ac_status); }; } && |
---|
7339 | { ac_try='test -s conftest$ac_exeext' |
---|
7340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7341 | (eval $ac_try) 2>&5 |
---|
7342 | ac_status=$? |
---|
7343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7344 | (exit $ac_status); }; }; then |
---|
7345 | ac_cv_lib_SDL_ttf_TTF_OpenFont=yes |
---|
7346 | else |
---|
7347 | echo "$as_me: failed program was:" >&5 |
---|
7348 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7349 | |
---|
7350 | ac_cv_lib_SDL_ttf_TTF_OpenFont=no |
---|
7351 | fi |
---|
7352 | rm -f conftest.err conftest.$ac_objext \ |
---|
7353 | conftest$ac_exeext conftest.$ac_ext |
---|
7354 | LIBS=$ac_check_lib_save_LIBS |
---|
7355 | fi |
---|
7356 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 |
---|
7357 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 |
---|
7358 | if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then |
---|
7359 | FOUND_SDL_ttf=yes |
---|
7360 | fi |
---|
7361 | |
---|
7362 | if test x$FOUND_SDL_ttf = xyes ; then |
---|
7363 | LIBS="$LIBS -lSDL_ttf" |
---|
7364 | else |
---|
7365 | echo "------------------" |
---|
7366 | echo "SDL_ttf library not found." |
---|
7367 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
7368 | echo "------------------" |
---|
7369 | exit -1 |
---|
7370 | fi |
---|
7371 | |
---|
7372 | #-----------# |
---|
7373 | # SDL_Image # |
---|
7374 | #-----------# |
---|
7375 | # checking for SDL_image-headers |
---|
7376 | |
---|
7377 | for ac_header in SDL_image.h |
---|
7378 | do |
---|
7379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7381 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7385 | fi |
---|
7386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7388 | else |
---|
7389 | # Is the header compilable? |
---|
7390 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7391 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7392 | cat >conftest.$ac_ext <<_ACEOF |
---|
7393 | /* confdefs.h. */ |
---|
7394 | _ACEOF |
---|
7395 | cat confdefs.h >>conftest.$ac_ext |
---|
7396 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7397 | /* end confdefs.h. */ |
---|
7398 | $ac_includes_default |
---|
7399 | #include <$ac_header> |
---|
7400 | _ACEOF |
---|
7401 | rm -f conftest.$ac_objext |
---|
7402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7403 | (eval $ac_compile) 2>conftest.er1 |
---|
7404 | ac_status=$? |
---|
7405 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7406 | rm -f conftest.er1 |
---|
7407 | cat conftest.err >&5 |
---|
7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7409 | (exit $ac_status); } && |
---|
7410 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7411 | || test ! -s conftest.err' |
---|
7412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7413 | (eval $ac_try) 2>&5 |
---|
7414 | ac_status=$? |
---|
7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7416 | (exit $ac_status); }; } && |
---|
7417 | { ac_try='test -s conftest.$ac_objext' |
---|
7418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7419 | (eval $ac_try) 2>&5 |
---|
7420 | ac_status=$? |
---|
7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7422 | (exit $ac_status); }; }; then |
---|
7423 | ac_header_compiler=yes |
---|
7424 | else |
---|
7425 | echo "$as_me: failed program was:" >&5 |
---|
7426 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7427 | |
---|
7428 | ac_header_compiler=no |
---|
7429 | fi |
---|
7430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7431 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7432 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7433 | |
---|
7434 | # Is the header present? |
---|
7435 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7436 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7437 | cat >conftest.$ac_ext <<_ACEOF |
---|
7438 | /* confdefs.h. */ |
---|
7439 | _ACEOF |
---|
7440 | cat confdefs.h >>conftest.$ac_ext |
---|
7441 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7442 | /* end confdefs.h. */ |
---|
7443 | #include <$ac_header> |
---|
7444 | _ACEOF |
---|
7445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7447 | ac_status=$? |
---|
7448 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7449 | rm -f conftest.er1 |
---|
7450 | cat conftest.err >&5 |
---|
7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7452 | (exit $ac_status); } >/dev/null; then |
---|
7453 | if test -s conftest.err; then |
---|
7454 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7455 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7456 | else |
---|
7457 | ac_cpp_err= |
---|
7458 | fi |
---|
7459 | else |
---|
7460 | ac_cpp_err=yes |
---|
7461 | fi |
---|
7462 | if test -z "$ac_cpp_err"; then |
---|
7463 | ac_header_preproc=yes |
---|
7464 | else |
---|
7465 | echo "$as_me: failed program was:" >&5 |
---|
7466 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7467 | |
---|
7468 | ac_header_preproc=no |
---|
7469 | fi |
---|
7470 | rm -f conftest.err conftest.$ac_ext |
---|
7471 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7472 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7473 | |
---|
7474 | # So? What about this header? |
---|
7475 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7476 | yes:no: ) |
---|
7477 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7478 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7479 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7480 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7481 | ac_header_preproc=yes |
---|
7482 | ;; |
---|
7483 | no:yes:* ) |
---|
7484 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7485 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7486 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7487 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7488 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7489 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7490 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7491 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7493 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7494 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7495 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7496 | ( |
---|
7497 | cat <<\_ASBOX |
---|
7498 | ## ---------------------------------------------- ## |
---|
7499 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7500 | ## ---------------------------------------------- ## |
---|
7501 | _ASBOX |
---|
7502 | ) | |
---|
7503 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7504 | ;; |
---|
7505 | esac |
---|
7506 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7510 | else |
---|
7511 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7512 | fi |
---|
7513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7515 | |
---|
7516 | fi |
---|
7517 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7518 | cat >>confdefs.h <<_ACEOF |
---|
7519 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7520 | _ACEOF |
---|
7521 | |
---|
7522 | else |
---|
7523 | |
---|
7524 | for ac_header in SDL/SDL_image.h |
---|
7525 | do |
---|
7526 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7528 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7532 | fi |
---|
7533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7535 | else |
---|
7536 | # Is the header compilable? |
---|
7537 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7538 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7539 | cat >conftest.$ac_ext <<_ACEOF |
---|
7540 | /* confdefs.h. */ |
---|
7541 | _ACEOF |
---|
7542 | cat confdefs.h >>conftest.$ac_ext |
---|
7543 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7544 | /* end confdefs.h. */ |
---|
7545 | $ac_includes_default |
---|
7546 | #include <$ac_header> |
---|
7547 | _ACEOF |
---|
7548 | rm -f conftest.$ac_objext |
---|
7549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7550 | (eval $ac_compile) 2>conftest.er1 |
---|
7551 | ac_status=$? |
---|
7552 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7553 | rm -f conftest.er1 |
---|
7554 | cat conftest.err >&5 |
---|
7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7556 | (exit $ac_status); } && |
---|
7557 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7558 | || test ! -s conftest.err' |
---|
7559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7560 | (eval $ac_try) 2>&5 |
---|
7561 | ac_status=$? |
---|
7562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7563 | (exit $ac_status); }; } && |
---|
7564 | { ac_try='test -s conftest.$ac_objext' |
---|
7565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7566 | (eval $ac_try) 2>&5 |
---|
7567 | ac_status=$? |
---|
7568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7569 | (exit $ac_status); }; }; then |
---|
7570 | ac_header_compiler=yes |
---|
7571 | else |
---|
7572 | echo "$as_me: failed program was:" >&5 |
---|
7573 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7574 | |
---|
7575 | ac_header_compiler=no |
---|
7576 | fi |
---|
7577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7578 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7579 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7580 | |
---|
7581 | # Is the header present? |
---|
7582 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7583 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7584 | cat >conftest.$ac_ext <<_ACEOF |
---|
7585 | /* confdefs.h. */ |
---|
7586 | _ACEOF |
---|
7587 | cat confdefs.h >>conftest.$ac_ext |
---|
7588 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7589 | /* end confdefs.h. */ |
---|
7590 | #include <$ac_header> |
---|
7591 | _ACEOF |
---|
7592 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7593 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7594 | ac_status=$? |
---|
7595 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7596 | rm -f conftest.er1 |
---|
7597 | cat conftest.err >&5 |
---|
7598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7599 | (exit $ac_status); } >/dev/null; then |
---|
7600 | if test -s conftest.err; then |
---|
7601 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7602 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7603 | else |
---|
7604 | ac_cpp_err= |
---|
7605 | fi |
---|
7606 | else |
---|
7607 | ac_cpp_err=yes |
---|
7608 | fi |
---|
7609 | if test -z "$ac_cpp_err"; then |
---|
7610 | ac_header_preproc=yes |
---|
7611 | else |
---|
7612 | echo "$as_me: failed program was:" >&5 |
---|
7613 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7614 | |
---|
7615 | ac_header_preproc=no |
---|
7616 | fi |
---|
7617 | rm -f conftest.err conftest.$ac_ext |
---|
7618 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7619 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7620 | |
---|
7621 | # So? What about this header? |
---|
7622 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7623 | yes:no: ) |
---|
7624 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7625 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7626 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7627 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7628 | ac_header_preproc=yes |
---|
7629 | ;; |
---|
7630 | no:yes:* ) |
---|
7631 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7632 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7633 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7634 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7635 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7636 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7637 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7638 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7640 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7641 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7642 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7643 | ( |
---|
7644 | cat <<\_ASBOX |
---|
7645 | ## ---------------------------------------------- ## |
---|
7646 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7647 | ## ---------------------------------------------- ## |
---|
7648 | _ASBOX |
---|
7649 | ) | |
---|
7650 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7651 | ;; |
---|
7652 | esac |
---|
7653 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7657 | else |
---|
7658 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7659 | fi |
---|
7660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7662 | |
---|
7663 | fi |
---|
7664 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7665 | cat >>confdefs.h <<_ACEOF |
---|
7666 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7667 | _ACEOF |
---|
7668 | |
---|
7669 | else |
---|
7670 | { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 |
---|
7671 | echo "$as_me: error: SDL_image header not found." >&2;} |
---|
7672 | { (exit 1); exit 1; }; } |
---|
7673 | fi |
---|
7674 | |
---|
7675 | done |
---|
7676 | |
---|
7677 | fi |
---|
7678 | |
---|
7679 | done |
---|
7680 | |
---|
7681 | # checking for SDL_image-lib |
---|
7682 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
7683 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
7684 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
7685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7686 | else |
---|
7687 | ac_check_lib_save_LIBS=$LIBS |
---|
7688 | LIBS="-lSDL_image $LIBS" |
---|
7689 | cat >conftest.$ac_ext <<_ACEOF |
---|
7690 | /* confdefs.h. */ |
---|
7691 | _ACEOF |
---|
7692 | cat confdefs.h >>conftest.$ac_ext |
---|
7693 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7694 | /* end confdefs.h. */ |
---|
7695 | |
---|
7696 | |
---|
7697 | int |
---|
7698 | main () |
---|
7699 | { |
---|
7700 | main (); |
---|
7701 | ; |
---|
7702 | return 0; |
---|
7703 | } |
---|
7704 | _ACEOF |
---|
7705 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7707 | (eval $ac_link) 2>conftest.er1 |
---|
7708 | ac_status=$? |
---|
7709 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7710 | rm -f conftest.er1 |
---|
7711 | cat conftest.err >&5 |
---|
7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7713 | (exit $ac_status); } && |
---|
7714 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7715 | || test ! -s conftest.err' |
---|
7716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7717 | (eval $ac_try) 2>&5 |
---|
7718 | ac_status=$? |
---|
7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7720 | (exit $ac_status); }; } && |
---|
7721 | { ac_try='test -s conftest$ac_exeext' |
---|
7722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7723 | (eval $ac_try) 2>&5 |
---|
7724 | ac_status=$? |
---|
7725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7726 | (exit $ac_status); }; }; then |
---|
7727 | ac_cv_lib_SDL_image_main=yes |
---|
7728 | else |
---|
7729 | echo "$as_me: failed program was:" >&5 |
---|
7730 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7731 | |
---|
7732 | ac_cv_lib_SDL_image_main=no |
---|
7733 | fi |
---|
7734 | rm -f conftest.err conftest.$ac_objext \ |
---|
7735 | conftest$ac_exeext conftest.$ac_ext |
---|
7736 | LIBS=$ac_check_lib_save_LIBS |
---|
7737 | fi |
---|
7738 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
7739 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
7740 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
7741 | FOUND_SDL_image=yes |
---|
7742 | fi |
---|
7743 | |
---|
7744 | if test x$FOUND_SDL_image = xyes ; then |
---|
7745 | LIBS="$LIBS -lSDL_image" |
---|
7746 | else |
---|
7747 | echo "------------------" |
---|
7748 | echo "SDL_image library not found." |
---|
7749 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
7750 | echo "------------------" |
---|
7751 | exit -1 |
---|
7752 | fi |
---|
7753 | |
---|
7754 | #-----# |
---|
7755 | # ogg # |
---|
7756 | #-----# |
---|
7757 | # checking for ogg-headers |
---|
7758 | |
---|
7759 | for ac_header in ogg/ogg.h |
---|
7760 | do |
---|
7761 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7763 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7767 | fi |
---|
7768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7769 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7770 | else |
---|
7771 | # Is the header compilable? |
---|
7772 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7773 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7774 | cat >conftest.$ac_ext <<_ACEOF |
---|
7775 | /* confdefs.h. */ |
---|
7776 | _ACEOF |
---|
7777 | cat confdefs.h >>conftest.$ac_ext |
---|
7778 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7779 | /* end confdefs.h. */ |
---|
7780 | $ac_includes_default |
---|
7781 | #include <$ac_header> |
---|
7782 | _ACEOF |
---|
7783 | rm -f conftest.$ac_objext |
---|
7784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7785 | (eval $ac_compile) 2>conftest.er1 |
---|
7786 | ac_status=$? |
---|
7787 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7788 | rm -f conftest.er1 |
---|
7789 | cat conftest.err >&5 |
---|
7790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7791 | (exit $ac_status); } && |
---|
7792 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7793 | || test ! -s conftest.err' |
---|
7794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7795 | (eval $ac_try) 2>&5 |
---|
7796 | ac_status=$? |
---|
7797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7798 | (exit $ac_status); }; } && |
---|
7799 | { ac_try='test -s conftest.$ac_objext' |
---|
7800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7801 | (eval $ac_try) 2>&5 |
---|
7802 | ac_status=$? |
---|
7803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7804 | (exit $ac_status); }; }; then |
---|
7805 | ac_header_compiler=yes |
---|
7806 | else |
---|
7807 | echo "$as_me: failed program was:" >&5 |
---|
7808 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7809 | |
---|
7810 | ac_header_compiler=no |
---|
7811 | fi |
---|
7812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7813 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7814 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7815 | |
---|
7816 | # Is the header present? |
---|
7817 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7818 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7819 | cat >conftest.$ac_ext <<_ACEOF |
---|
7820 | /* confdefs.h. */ |
---|
7821 | _ACEOF |
---|
7822 | cat confdefs.h >>conftest.$ac_ext |
---|
7823 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7824 | /* end confdefs.h. */ |
---|
7825 | #include <$ac_header> |
---|
7826 | _ACEOF |
---|
7827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7829 | ac_status=$? |
---|
7830 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7831 | rm -f conftest.er1 |
---|
7832 | cat conftest.err >&5 |
---|
7833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7834 | (exit $ac_status); } >/dev/null; then |
---|
7835 | if test -s conftest.err; then |
---|
7836 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7837 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7838 | else |
---|
7839 | ac_cpp_err= |
---|
7840 | fi |
---|
7841 | else |
---|
7842 | ac_cpp_err=yes |
---|
7843 | fi |
---|
7844 | if test -z "$ac_cpp_err"; then |
---|
7845 | ac_header_preproc=yes |
---|
7846 | else |
---|
7847 | echo "$as_me: failed program was:" >&5 |
---|
7848 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7849 | |
---|
7850 | ac_header_preproc=no |
---|
7851 | fi |
---|
7852 | rm -f conftest.err conftest.$ac_ext |
---|
7853 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7854 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7855 | |
---|
7856 | # So? What about this header? |
---|
7857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7858 | yes:no: ) |
---|
7859 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7860 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7862 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7863 | ac_header_preproc=yes |
---|
7864 | ;; |
---|
7865 | no:yes:* ) |
---|
7866 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7867 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7868 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7869 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7870 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7871 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7872 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7873 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7875 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7876 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7877 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7878 | ( |
---|
7879 | cat <<\_ASBOX |
---|
7880 | ## ---------------------------------------------- ## |
---|
7881 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7882 | ## ---------------------------------------------- ## |
---|
7883 | _ASBOX |
---|
7884 | ) | |
---|
7885 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7886 | ;; |
---|
7887 | esac |
---|
7888 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7892 | else |
---|
7893 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7894 | fi |
---|
7895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7897 | |
---|
7898 | fi |
---|
7899 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7900 | cat >>confdefs.h <<_ACEOF |
---|
7901 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7902 | _ACEOF |
---|
7903 | |
---|
7904 | else |
---|
7905 | { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5 |
---|
7906 | echo "$as_me: error: cannot find ogg header." >&2;} |
---|
7907 | { (exit 1); exit 1; }; } |
---|
7908 | fi |
---|
7909 | |
---|
7910 | done |
---|
7911 | |
---|
7912 | # checking for ogg-lib |
---|
7913 | echo "$as_me:$LINENO: checking for main in -logg" >&5 |
---|
7914 | echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 |
---|
7915 | if test "${ac_cv_lib_ogg_main+set}" = set; then |
---|
7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7917 | else |
---|
7918 | ac_check_lib_save_LIBS=$LIBS |
---|
7919 | LIBS="-logg $LIBS" |
---|
7920 | cat >conftest.$ac_ext <<_ACEOF |
---|
7921 | /* confdefs.h. */ |
---|
7922 | _ACEOF |
---|
7923 | cat confdefs.h >>conftest.$ac_ext |
---|
7924 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7925 | /* end confdefs.h. */ |
---|
7926 | |
---|
7927 | |
---|
7928 | int |
---|
7929 | main () |
---|
7930 | { |
---|
7931 | main (); |
---|
7932 | ; |
---|
7933 | return 0; |
---|
7934 | } |
---|
7935 | _ACEOF |
---|
7936 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7938 | (eval $ac_link) 2>conftest.er1 |
---|
7939 | ac_status=$? |
---|
7940 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7941 | rm -f conftest.er1 |
---|
7942 | cat conftest.err >&5 |
---|
7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7944 | (exit $ac_status); } && |
---|
7945 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7946 | || test ! -s conftest.err' |
---|
7947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7948 | (eval $ac_try) 2>&5 |
---|
7949 | ac_status=$? |
---|
7950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7951 | (exit $ac_status); }; } && |
---|
7952 | { ac_try='test -s conftest$ac_exeext' |
---|
7953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7954 | (eval $ac_try) 2>&5 |
---|
7955 | ac_status=$? |
---|
7956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7957 | (exit $ac_status); }; }; then |
---|
7958 | ac_cv_lib_ogg_main=yes |
---|
7959 | else |
---|
7960 | echo "$as_me: failed program was:" >&5 |
---|
7961 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7962 | |
---|
7963 | ac_cv_lib_ogg_main=no |
---|
7964 | fi |
---|
7965 | rm -f conftest.err conftest.$ac_objext \ |
---|
7966 | conftest$ac_exeext conftest.$ac_ext |
---|
7967 | LIBS=$ac_check_lib_save_LIBS |
---|
7968 | fi |
---|
7969 | echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 |
---|
7970 | echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 |
---|
7971 | if test $ac_cv_lib_ogg_main = yes; then |
---|
7972 | FOUND_ogg=yes |
---|
7973 | fi |
---|
7974 | |
---|
7975 | if test x$FOUND_ogg = xyes ; then |
---|
7976 | LIBS="$LIBS -logg" |
---|
7977 | else |
---|
7978 | echo "------------------" |
---|
7979 | echo "ogg library not found." |
---|
7980 | echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
7981 | echo "------------------" |
---|
7982 | exit -1 |
---|
7983 | fi |
---|
7984 | |
---|
7985 | #--------# |
---|
7986 | # vorbis # |
---|
7987 | #--------# |
---|
7988 | # checking for vorbis-lib |
---|
7989 | echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 |
---|
7990 | echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 |
---|
7991 | if test "${ac_cv_lib_vorbis_main+set}" = set; then |
---|
7992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7993 | else |
---|
7994 | ac_check_lib_save_LIBS=$LIBS |
---|
7995 | LIBS="-lvorbis $LIBS" |
---|
7996 | cat >conftest.$ac_ext <<_ACEOF |
---|
7997 | /* confdefs.h. */ |
---|
7998 | _ACEOF |
---|
7999 | cat confdefs.h >>conftest.$ac_ext |
---|
8000 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8001 | /* end confdefs.h. */ |
---|
8002 | |
---|
8003 | |
---|
8004 | int |
---|
8005 | main () |
---|
8006 | { |
---|
8007 | main (); |
---|
8008 | ; |
---|
8009 | return 0; |
---|
8010 | } |
---|
8011 | _ACEOF |
---|
8012 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8014 | (eval $ac_link) 2>conftest.er1 |
---|
8015 | ac_status=$? |
---|
8016 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8017 | rm -f conftest.er1 |
---|
8018 | cat conftest.err >&5 |
---|
8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8020 | (exit $ac_status); } && |
---|
8021 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8022 | || test ! -s conftest.err' |
---|
8023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8024 | (eval $ac_try) 2>&5 |
---|
8025 | ac_status=$? |
---|
8026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8027 | (exit $ac_status); }; } && |
---|
8028 | { ac_try='test -s conftest$ac_exeext' |
---|
8029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8030 | (eval $ac_try) 2>&5 |
---|
8031 | ac_status=$? |
---|
8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8033 | (exit $ac_status); }; }; then |
---|
8034 | ac_cv_lib_vorbis_main=yes |
---|
8035 | else |
---|
8036 | echo "$as_me: failed program was:" >&5 |
---|
8037 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8038 | |
---|
8039 | ac_cv_lib_vorbis_main=no |
---|
8040 | fi |
---|
8041 | rm -f conftest.err conftest.$ac_objext \ |
---|
8042 | conftest$ac_exeext conftest.$ac_ext |
---|
8043 | LIBS=$ac_check_lib_save_LIBS |
---|
8044 | fi |
---|
8045 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 |
---|
8046 | echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 |
---|
8047 | if test $ac_cv_lib_vorbis_main = yes; then |
---|
8048 | FOUND_vorbis=yes |
---|
8049 | fi |
---|
8050 | |
---|
8051 | if test x$FOUND_vorbis = xyes ; then |
---|
8052 | LIBS="$LIBS -lvorbis" |
---|
8053 | else |
---|
8054 | echo "------------------" |
---|
8055 | echo "vorbis library not found." |
---|
8056 | echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
8057 | echo "------------------" |
---|
8058 | exit -1 |
---|
8059 | fi |
---|
8060 | |
---|
8061 | #------------# |
---|
8062 | # vorbisfile # |
---|
8063 | #------------# |
---|
8064 | # checking for vorbis-headers |
---|
8065 | |
---|
8066 | for ac_header in vorbis/vorbisfile.h |
---|
8067 | do |
---|
8068 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8070 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8071 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8072 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8074 | fi |
---|
8075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8076 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8077 | else |
---|
8078 | # Is the header compilable? |
---|
8079 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8080 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8081 | cat >conftest.$ac_ext <<_ACEOF |
---|
8082 | /* confdefs.h. */ |
---|
8083 | _ACEOF |
---|
8084 | cat confdefs.h >>conftest.$ac_ext |
---|
8085 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8086 | /* end confdefs.h. */ |
---|
8087 | $ac_includes_default |
---|
8088 | #include <$ac_header> |
---|
8089 | _ACEOF |
---|
8090 | rm -f conftest.$ac_objext |
---|
8091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8092 | (eval $ac_compile) 2>conftest.er1 |
---|
8093 | ac_status=$? |
---|
8094 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8095 | rm -f conftest.er1 |
---|
8096 | cat conftest.err >&5 |
---|
8097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8098 | (exit $ac_status); } && |
---|
8099 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8100 | || test ! -s conftest.err' |
---|
8101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8102 | (eval $ac_try) 2>&5 |
---|
8103 | ac_status=$? |
---|
8104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8105 | (exit $ac_status); }; } && |
---|
8106 | { ac_try='test -s conftest.$ac_objext' |
---|
8107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8108 | (eval $ac_try) 2>&5 |
---|
8109 | ac_status=$? |
---|
8110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8111 | (exit $ac_status); }; }; then |
---|
8112 | ac_header_compiler=yes |
---|
8113 | else |
---|
8114 | echo "$as_me: failed program was:" >&5 |
---|
8115 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8116 | |
---|
8117 | ac_header_compiler=no |
---|
8118 | fi |
---|
8119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8120 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8121 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8122 | |
---|
8123 | # Is the header present? |
---|
8124 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8125 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8126 | cat >conftest.$ac_ext <<_ACEOF |
---|
8127 | /* confdefs.h. */ |
---|
8128 | _ACEOF |
---|
8129 | cat confdefs.h >>conftest.$ac_ext |
---|
8130 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8131 | /* end confdefs.h. */ |
---|
8132 | #include <$ac_header> |
---|
8133 | _ACEOF |
---|
8134 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8135 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8136 | ac_status=$? |
---|
8137 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8138 | rm -f conftest.er1 |
---|
8139 | cat conftest.err >&5 |
---|
8140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8141 | (exit $ac_status); } >/dev/null; then |
---|
8142 | if test -s conftest.err; then |
---|
8143 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8144 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8145 | else |
---|
8146 | ac_cpp_err= |
---|
8147 | fi |
---|
8148 | else |
---|
8149 | ac_cpp_err=yes |
---|
8150 | fi |
---|
8151 | if test -z "$ac_cpp_err"; then |
---|
8152 | ac_header_preproc=yes |
---|
8153 | else |
---|
8154 | echo "$as_me: failed program was:" >&5 |
---|
8155 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8156 | |
---|
8157 | ac_header_preproc=no |
---|
8158 | fi |
---|
8159 | rm -f conftest.err conftest.$ac_ext |
---|
8160 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8161 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8162 | |
---|
8163 | # So? What about this header? |
---|
8164 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8165 | yes:no: ) |
---|
8166 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8167 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8168 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8169 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8170 | ac_header_preproc=yes |
---|
8171 | ;; |
---|
8172 | no:yes:* ) |
---|
8173 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8174 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8175 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8176 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8177 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8178 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8179 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8180 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8181 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8182 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8183 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8184 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8185 | ( |
---|
8186 | cat <<\_ASBOX |
---|
8187 | ## ---------------------------------------------- ## |
---|
8188 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8189 | ## ---------------------------------------------- ## |
---|
8190 | _ASBOX |
---|
8191 | ) | |
---|
8192 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8193 | ;; |
---|
8194 | esac |
---|
8195 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8197 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8199 | else |
---|
8200 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8201 | fi |
---|
8202 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8203 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8204 | |
---|
8205 | fi |
---|
8206 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8207 | cat >>confdefs.h <<_ACEOF |
---|
8208 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8209 | _ACEOF |
---|
8210 | |
---|
8211 | else |
---|
8212 | { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 |
---|
8213 | echo "$as_me: error: cannot find vorbisfile header." >&2;} |
---|
8214 | { (exit 1); exit 1; }; } |
---|
8215 | fi |
---|
8216 | |
---|
8217 | done |
---|
8218 | |
---|
8219 | # checking for vorbisfile-lib |
---|
8220 | echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 |
---|
8221 | echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 |
---|
8222 | if test "${ac_cv_lib_vorbisfile_main+set}" = set; then |
---|
8223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8224 | else |
---|
8225 | ac_check_lib_save_LIBS=$LIBS |
---|
8226 | LIBS="-lvorbisfile $LIBS" |
---|
8227 | cat >conftest.$ac_ext <<_ACEOF |
---|
8228 | /* confdefs.h. */ |
---|
8229 | _ACEOF |
---|
8230 | cat confdefs.h >>conftest.$ac_ext |
---|
8231 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8232 | /* end confdefs.h. */ |
---|
8233 | |
---|
8234 | |
---|
8235 | int |
---|
8236 | main () |
---|
8237 | { |
---|
8238 | main (); |
---|
8239 | ; |
---|
8240 | return 0; |
---|
8241 | } |
---|
8242 | _ACEOF |
---|
8243 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8245 | (eval $ac_link) 2>conftest.er1 |
---|
8246 | ac_status=$? |
---|
8247 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8248 | rm -f conftest.er1 |
---|
8249 | cat conftest.err >&5 |
---|
8250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8251 | (exit $ac_status); } && |
---|
8252 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8253 | || test ! -s conftest.err' |
---|
8254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8255 | (eval $ac_try) 2>&5 |
---|
8256 | ac_status=$? |
---|
8257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8258 | (exit $ac_status); }; } && |
---|
8259 | { ac_try='test -s conftest$ac_exeext' |
---|
8260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8261 | (eval $ac_try) 2>&5 |
---|
8262 | ac_status=$? |
---|
8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8264 | (exit $ac_status); }; }; then |
---|
8265 | ac_cv_lib_vorbisfile_main=yes |
---|
8266 | else |
---|
8267 | echo "$as_me: failed program was:" >&5 |
---|
8268 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8269 | |
---|
8270 | ac_cv_lib_vorbisfile_main=no |
---|
8271 | fi |
---|
8272 | rm -f conftest.err conftest.$ac_objext \ |
---|
8273 | conftest$ac_exeext conftest.$ac_ext |
---|
8274 | LIBS=$ac_check_lib_save_LIBS |
---|
8275 | fi |
---|
8276 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 |
---|
8277 | echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 |
---|
8278 | if test $ac_cv_lib_vorbisfile_main = yes; then |
---|
8279 | FOUND_vorbisfile=yes |
---|
8280 | fi |
---|
8281 | |
---|
8282 | if test x$FOUND_vorbisfile = xyes ; then |
---|
8283 | LIBS="$LIBS -lvorbisfile" |
---|
8284 | else |
---|
8285 | echo "------------------" |
---|
8286 | echo "vorbisfile library not found." |
---|
8287 | echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
8288 | echo "------------------" |
---|
8289 | exit -1 |
---|
8290 | fi |
---|
8291 | |
---|
8292 | #-----# |
---|
8293 | # GTK # |
---|
8294 | #-----# |
---|
8295 | if test x$def_gtk = xyes; then |
---|
8296 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
8297 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
8298 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
8299 | if `$PKG_CONFIG --exists gtk+-2.0`; then |
---|
8300 | echo "yes" |
---|
8301 | have_gtk2=yes |
---|
8302 | GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
---|
8303 | GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
---|
8304 | |
---|
8305 | cat >>confdefs.h <<_ACEOF |
---|
8306 | #define HAVE_GTK2 1 |
---|
8307 | _ACEOF |
---|
8308 | |
---|
8309 | if test $DEBUG -ge 3; then |
---|
8310 | echo "cflags: $GTK2_CFLAGS" |
---|
8311 | echo "libs: $GTK2_LIBS" |
---|
8312 | fi |
---|
8313 | else |
---|
8314 | echo "no" |
---|
8315 | fi |
---|
8316 | |
---|
8317 | fi |
---|
8318 | |
---|
8319 | |
---|
8320 | |
---|
8321 | |
---|
8322 | if test x$have_gtk2 = xyes; then |
---|
8323 | HAVE_GTK2_TRUE= |
---|
8324 | HAVE_GTK2_FALSE='#' |
---|
8325 | else |
---|
8326 | HAVE_GTK2_TRUE='#' |
---|
8327 | HAVE_GTK2_FALSE= |
---|
8328 | fi |
---|
8329 | |
---|
8330 | |
---|
8331 | #---------# |
---|
8332 | # libcURL # |
---|
8333 | #---------# |
---|
8334 | if test x$def_curl = xyes; then |
---|
8335 | |
---|
8336 | |
---|
8337 | for ac_header in curl/curl.h |
---|
8338 | do |
---|
8339 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8341 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8342 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8343 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8345 | fi |
---|
8346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8347 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8348 | else |
---|
8349 | # Is the header compilable? |
---|
8350 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8351 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8352 | cat >conftest.$ac_ext <<_ACEOF |
---|
8353 | /* confdefs.h. */ |
---|
8354 | _ACEOF |
---|
8355 | cat confdefs.h >>conftest.$ac_ext |
---|
8356 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8357 | /* end confdefs.h. */ |
---|
8358 | $ac_includes_default |
---|
8359 | #include <$ac_header> |
---|
8360 | _ACEOF |
---|
8361 | rm -f conftest.$ac_objext |
---|
8362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8363 | (eval $ac_compile) 2>conftest.er1 |
---|
8364 | ac_status=$? |
---|
8365 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8366 | rm -f conftest.er1 |
---|
8367 | cat conftest.err >&5 |
---|
8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8369 | (exit $ac_status); } && |
---|
8370 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8371 | || test ! -s conftest.err' |
---|
8372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8373 | (eval $ac_try) 2>&5 |
---|
8374 | ac_status=$? |
---|
8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8376 | (exit $ac_status); }; } && |
---|
8377 | { ac_try='test -s conftest.$ac_objext' |
---|
8378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8379 | (eval $ac_try) 2>&5 |
---|
8380 | ac_status=$? |
---|
8381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8382 | (exit $ac_status); }; }; then |
---|
8383 | ac_header_compiler=yes |
---|
8384 | else |
---|
8385 | echo "$as_me: failed program was:" >&5 |
---|
8386 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8387 | |
---|
8388 | ac_header_compiler=no |
---|
8389 | fi |
---|
8390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8391 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8392 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8393 | |
---|
8394 | # Is the header present? |
---|
8395 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8396 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8397 | cat >conftest.$ac_ext <<_ACEOF |
---|
8398 | /* confdefs.h. */ |
---|
8399 | _ACEOF |
---|
8400 | cat confdefs.h >>conftest.$ac_ext |
---|
8401 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8402 | /* end confdefs.h. */ |
---|
8403 | #include <$ac_header> |
---|
8404 | _ACEOF |
---|
8405 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8406 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8407 | ac_status=$? |
---|
8408 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8409 | rm -f conftest.er1 |
---|
8410 | cat conftest.err >&5 |
---|
8411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8412 | (exit $ac_status); } >/dev/null; then |
---|
8413 | if test -s conftest.err; then |
---|
8414 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8415 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8416 | else |
---|
8417 | ac_cpp_err= |
---|
8418 | fi |
---|
8419 | else |
---|
8420 | ac_cpp_err=yes |
---|
8421 | fi |
---|
8422 | if test -z "$ac_cpp_err"; then |
---|
8423 | ac_header_preproc=yes |
---|
8424 | else |
---|
8425 | echo "$as_me: failed program was:" >&5 |
---|
8426 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8427 | |
---|
8428 | ac_header_preproc=no |
---|
8429 | fi |
---|
8430 | rm -f conftest.err conftest.$ac_ext |
---|
8431 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8432 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8433 | |
---|
8434 | # So? What about this header? |
---|
8435 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8436 | yes:no: ) |
---|
8437 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8438 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8440 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8441 | ac_header_preproc=yes |
---|
8442 | ;; |
---|
8443 | no:yes:* ) |
---|
8444 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8445 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8446 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8447 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8448 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8449 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8450 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8451 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8452 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8453 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8454 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8455 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8456 | ( |
---|
8457 | cat <<\_ASBOX |
---|
8458 | ## ---------------------------------------------- ## |
---|
8459 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8460 | ## ---------------------------------------------- ## |
---|
8461 | _ASBOX |
---|
8462 | ) | |
---|
8463 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8464 | ;; |
---|
8465 | esac |
---|
8466 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8467 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8468 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8470 | else |
---|
8471 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8472 | fi |
---|
8473 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8474 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8475 | |
---|
8476 | fi |
---|
8477 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8478 | cat >>confdefs.h <<_ACEOF |
---|
8479 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8480 | _ACEOF |
---|
8481 | curlHeader="yes" |
---|
8482 | else |
---|
8483 | curlHeader="no" |
---|
8484 | fi |
---|
8485 | |
---|
8486 | done |
---|
8487 | |
---|
8488 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
8489 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
8490 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
8491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8492 | else |
---|
8493 | ac_check_lib_save_LIBS=$LIBS |
---|
8494 | LIBS="-lcurl $LIBS" |
---|
8495 | cat >conftest.$ac_ext <<_ACEOF |
---|
8496 | /* confdefs.h. */ |
---|
8497 | _ACEOF |
---|
8498 | cat confdefs.h >>conftest.$ac_ext |
---|
8499 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8500 | /* end confdefs.h. */ |
---|
8501 | |
---|
8502 | |
---|
8503 | int |
---|
8504 | main () |
---|
8505 | { |
---|
8506 | main (); |
---|
8507 | ; |
---|
8508 | return 0; |
---|
8509 | } |
---|
8510 | _ACEOF |
---|
8511 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8513 | (eval $ac_link) 2>conftest.er1 |
---|
8514 | ac_status=$? |
---|
8515 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8516 | rm -f conftest.er1 |
---|
8517 | cat conftest.err >&5 |
---|
8518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8519 | (exit $ac_status); } && |
---|
8520 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8521 | || test ! -s conftest.err' |
---|
8522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8523 | (eval $ac_try) 2>&5 |
---|
8524 | ac_status=$? |
---|
8525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8526 | (exit $ac_status); }; } && |
---|
8527 | { ac_try='test -s conftest$ac_exeext' |
---|
8528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8529 | (eval $ac_try) 2>&5 |
---|
8530 | ac_status=$? |
---|
8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8532 | (exit $ac_status); }; }; then |
---|
8533 | ac_cv_lib_curl_main=yes |
---|
8534 | else |
---|
8535 | echo "$as_me: failed program was:" >&5 |
---|
8536 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8537 | |
---|
8538 | ac_cv_lib_curl_main=no |
---|
8539 | fi |
---|
8540 | rm -f conftest.err conftest.$ac_objext \ |
---|
8541 | conftest$ac_exeext conftest.$ac_ext |
---|
8542 | LIBS=$ac_check_lib_save_LIBS |
---|
8543 | fi |
---|
8544 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
8545 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
8546 | if test $ac_cv_lib_curl_main = yes; then |
---|
8547 | FOUND_curl=yes |
---|
8548 | fi |
---|
8549 | |
---|
8550 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
8551 | have_curl=yes |
---|
8552 | CURL_LIBS=`curl-config --libs` |
---|
8553 | CURLCFLAGS=`curl-config --cflags` |
---|
8554 | |
---|
8555 | cat >>confdefs.h <<_ACEOF |
---|
8556 | #define HAVE_CURL 1 |
---|
8557 | _ACEOF |
---|
8558 | |
---|
8559 | else |
---|
8560 | have_curl=no |
---|
8561 | fi |
---|
8562 | |
---|
8563 | fi |
---|
8564 | |
---|
8565 | |
---|
8566 | |
---|
8567 | |
---|
8568 | if test x$have_curl = xyes; then |
---|
8569 | HAVE_CURL_TRUE= |
---|
8570 | HAVE_CURL_FALSE='#' |
---|
8571 | else |
---|
8572 | HAVE_CURL_TRUE='#' |
---|
8573 | HAVE_CURL_FALSE= |
---|
8574 | fi |
---|
8575 | |
---|
8576 | |
---|
8577 | #--------# |
---|
8578 | # efence # |
---|
8579 | #--------# |
---|
8580 | if test x$def_efence = xyes ; then |
---|
8581 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
8582 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
8583 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
8584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8585 | else |
---|
8586 | ac_check_lib_save_LIBS=$LIBS |
---|
8587 | LIBS="-lefence $LIBS" |
---|
8588 | cat >conftest.$ac_ext <<_ACEOF |
---|
8589 | /* confdefs.h. */ |
---|
8590 | _ACEOF |
---|
8591 | cat confdefs.h >>conftest.$ac_ext |
---|
8592 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8593 | /* end confdefs.h. */ |
---|
8594 | |
---|
8595 | |
---|
8596 | int |
---|
8597 | main () |
---|
8598 | { |
---|
8599 | main (); |
---|
8600 | ; |
---|
8601 | return 0; |
---|
8602 | } |
---|
8603 | _ACEOF |
---|
8604 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8606 | (eval $ac_link) 2>conftest.er1 |
---|
8607 | ac_status=$? |
---|
8608 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8609 | rm -f conftest.er1 |
---|
8610 | cat conftest.err >&5 |
---|
8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8612 | (exit $ac_status); } && |
---|
8613 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8614 | || test ! -s conftest.err' |
---|
8615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8616 | (eval $ac_try) 2>&5 |
---|
8617 | ac_status=$? |
---|
8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8619 | (exit $ac_status); }; } && |
---|
8620 | { ac_try='test -s conftest$ac_exeext' |
---|
8621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8622 | (eval $ac_try) 2>&5 |
---|
8623 | ac_status=$? |
---|
8624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8625 | (exit $ac_status); }; }; then |
---|
8626 | ac_cv_lib_efence_main=yes |
---|
8627 | else |
---|
8628 | echo "$as_me: failed program was:" >&5 |
---|
8629 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8630 | |
---|
8631 | ac_cv_lib_efence_main=no |
---|
8632 | fi |
---|
8633 | rm -f conftest.err conftest.$ac_objext \ |
---|
8634 | conftest$ac_exeext conftest.$ac_ext |
---|
8635 | LIBS=$ac_check_lib_save_LIBS |
---|
8636 | fi |
---|
8637 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
8638 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
8639 | if test $ac_cv_lib_efence_main = yes; then |
---|
8640 | FOUND_efence=yes |
---|
8641 | fi |
---|
8642 | |
---|
8643 | if test x$FOUND_efence = xyes ; then |
---|
8644 | LIBS="$LIBS -lefence" |
---|
8645 | fi |
---|
8646 | |
---|
8647 | fi |
---|
8648 | |
---|
8649 | # FIXME: Replace `main' with a function in `-lm': |
---|
8650 | |
---|
8651 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
8652 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
8653 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
8654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8655 | else |
---|
8656 | ac_check_lib_save_LIBS=$LIBS |
---|
8657 | LIBS="-lm $LIBS" |
---|
8658 | cat >conftest.$ac_ext <<_ACEOF |
---|
8659 | /* confdefs.h. */ |
---|
8660 | _ACEOF |
---|
8661 | cat confdefs.h >>conftest.$ac_ext |
---|
8662 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8663 | /* end confdefs.h. */ |
---|
8664 | |
---|
8665 | |
---|
8666 | int |
---|
8667 | main () |
---|
8668 | { |
---|
8669 | main (); |
---|
8670 | ; |
---|
8671 | return 0; |
---|
8672 | } |
---|
8673 | _ACEOF |
---|
8674 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8676 | (eval $ac_link) 2>conftest.er1 |
---|
8677 | ac_status=$? |
---|
8678 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8679 | rm -f conftest.er1 |
---|
8680 | cat conftest.err >&5 |
---|
8681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8682 | (exit $ac_status); } && |
---|
8683 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8684 | || test ! -s conftest.err' |
---|
8685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8686 | (eval $ac_try) 2>&5 |
---|
8687 | ac_status=$? |
---|
8688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8689 | (exit $ac_status); }; } && |
---|
8690 | { ac_try='test -s conftest$ac_exeext' |
---|
8691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8692 | (eval $ac_try) 2>&5 |
---|
8693 | ac_status=$? |
---|
8694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8695 | (exit $ac_status); }; }; then |
---|
8696 | ac_cv_lib_m_main=yes |
---|
8697 | else |
---|
8698 | echo "$as_me: failed program was:" >&5 |
---|
8699 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8700 | |
---|
8701 | ac_cv_lib_m_main=no |
---|
8702 | fi |
---|
8703 | rm -f conftest.err conftest.$ac_objext \ |
---|
8704 | conftest$ac_exeext conftest.$ac_ext |
---|
8705 | LIBS=$ac_check_lib_save_LIBS |
---|
8706 | fi |
---|
8707 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
8708 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
8709 | if test $ac_cv_lib_m_main = yes; then |
---|
8710 | cat >>confdefs.h <<_ACEOF |
---|
8711 | #define HAVE_LIBM 1 |
---|
8712 | _ACEOF |
---|
8713 | |
---|
8714 | LIBS="-lm $LIBS" |
---|
8715 | |
---|
8716 | fi |
---|
8717 | |
---|
8718 | |
---|
8719 | |
---|
8720 | # Checks for header files. |
---|
8721 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
8722 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
8723 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
8724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8725 | else |
---|
8726 | cat >conftest.$ac_ext <<_ACEOF |
---|
8727 | /* confdefs.h. */ |
---|
8728 | _ACEOF |
---|
8729 | cat confdefs.h >>conftest.$ac_ext |
---|
8730 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8731 | /* end confdefs.h. */ |
---|
8732 | #include <stdlib.h> |
---|
8733 | #include <stdarg.h> |
---|
8734 | #include <string.h> |
---|
8735 | #include <float.h> |
---|
8736 | |
---|
8737 | int |
---|
8738 | main () |
---|
8739 | { |
---|
8740 | |
---|
8741 | ; |
---|
8742 | return 0; |
---|
8743 | } |
---|
8744 | _ACEOF |
---|
8745 | rm -f conftest.$ac_objext |
---|
8746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8747 | (eval $ac_compile) 2>conftest.er1 |
---|
8748 | ac_status=$? |
---|
8749 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8750 | rm -f conftest.er1 |
---|
8751 | cat conftest.err >&5 |
---|
8752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8753 | (exit $ac_status); } && |
---|
8754 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8755 | || test ! -s conftest.err' |
---|
8756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8757 | (eval $ac_try) 2>&5 |
---|
8758 | ac_status=$? |
---|
8759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8760 | (exit $ac_status); }; } && |
---|
8761 | { ac_try='test -s conftest.$ac_objext' |
---|
8762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8763 | (eval $ac_try) 2>&5 |
---|
8764 | ac_status=$? |
---|
8765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8766 | (exit $ac_status); }; }; then |
---|
8767 | ac_cv_header_stdc=yes |
---|
8768 | else |
---|
8769 | echo "$as_me: failed program was:" >&5 |
---|
8770 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8771 | |
---|
8772 | ac_cv_header_stdc=no |
---|
8773 | fi |
---|
8774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8775 | |
---|
8776 | if test $ac_cv_header_stdc = yes; then |
---|
8777 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
8778 | cat >conftest.$ac_ext <<_ACEOF |
---|
8779 | /* confdefs.h. */ |
---|
8780 | _ACEOF |
---|
8781 | cat confdefs.h >>conftest.$ac_ext |
---|
8782 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8783 | /* end confdefs.h. */ |
---|
8784 | #include <string.h> |
---|
8785 | |
---|
8786 | _ACEOF |
---|
8787 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8788 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
8789 | : |
---|
8790 | else |
---|
8791 | ac_cv_header_stdc=no |
---|
8792 | fi |
---|
8793 | rm -f conftest* |
---|
8794 | |
---|
8795 | fi |
---|
8796 | |
---|
8797 | if test $ac_cv_header_stdc = yes; then |
---|
8798 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
8799 | cat >conftest.$ac_ext <<_ACEOF |
---|
8800 | /* confdefs.h. */ |
---|
8801 | _ACEOF |
---|
8802 | cat confdefs.h >>conftest.$ac_ext |
---|
8803 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8804 | /* end confdefs.h. */ |
---|
8805 | #include <stdlib.h> |
---|
8806 | |
---|
8807 | _ACEOF |
---|
8808 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8809 | $EGREP "free" >/dev/null 2>&1; then |
---|
8810 | : |
---|
8811 | else |
---|
8812 | ac_cv_header_stdc=no |
---|
8813 | fi |
---|
8814 | rm -f conftest* |
---|
8815 | |
---|
8816 | fi |
---|
8817 | |
---|
8818 | if test $ac_cv_header_stdc = yes; then |
---|
8819 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
8820 | if test "$cross_compiling" = yes; then |
---|
8821 | : |
---|
8822 | else |
---|
8823 | cat >conftest.$ac_ext <<_ACEOF |
---|
8824 | /* confdefs.h. */ |
---|
8825 | _ACEOF |
---|
8826 | cat confdefs.h >>conftest.$ac_ext |
---|
8827 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8828 | /* end confdefs.h. */ |
---|
8829 | #include <ctype.h> |
---|
8830 | #if ((' ' & 0x0FF) == 0x020) |
---|
8831 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
8832 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
8833 | #else |
---|
8834 | # define ISLOWER(c) \ |
---|
8835 | (('a' <= (c) && (c) <= 'i') \ |
---|
8836 | || ('j' <= (c) && (c) <= 'r') \ |
---|
8837 | || ('s' <= (c) && (c) <= 'z')) |
---|
8838 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
8839 | #endif |
---|
8840 | |
---|
8841 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
8842 | int |
---|
8843 | main () |
---|
8844 | { |
---|
8845 | int i; |
---|
8846 | for (i = 0; i < 256; i++) |
---|
8847 | if (XOR (islower (i), ISLOWER (i)) |
---|
8848 | || toupper (i) != TOUPPER (i)) |
---|
8849 | exit(2); |
---|
8850 | exit (0); |
---|
8851 | } |
---|
8852 | _ACEOF |
---|
8853 | rm -f conftest$ac_exeext |
---|
8854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8855 | (eval $ac_link) 2>&5 |
---|
8856 | ac_status=$? |
---|
8857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8858 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
8859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8860 | (eval $ac_try) 2>&5 |
---|
8861 | ac_status=$? |
---|
8862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8863 | (exit $ac_status); }; }; then |
---|
8864 | : |
---|
8865 | else |
---|
8866 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
8867 | echo "$as_me: failed program was:" >&5 |
---|
8868 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8869 | |
---|
8870 | ( exit $ac_status ) |
---|
8871 | ac_cv_header_stdc=no |
---|
8872 | fi |
---|
8873 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
8874 | fi |
---|
8875 | fi |
---|
8876 | fi |
---|
8877 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
8878 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
8879 | if test $ac_cv_header_stdc = yes; then |
---|
8880 | |
---|
8881 | cat >>confdefs.h <<\_ACEOF |
---|
8882 | #define STDC_HEADERS 1 |
---|
8883 | _ACEOF |
---|
8884 | |
---|
8885 | fi |
---|
8886 | |
---|
8887 | |
---|
8888 | |
---|
8889 | for ac_header in stdlib.h string.h |
---|
8890 | do |
---|
8891 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8892 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8893 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8894 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8895 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8897 | fi |
---|
8898 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8899 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8900 | else |
---|
8901 | # Is the header compilable? |
---|
8902 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8903 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8904 | cat >conftest.$ac_ext <<_ACEOF |
---|
8905 | /* confdefs.h. */ |
---|
8906 | _ACEOF |
---|
8907 | cat confdefs.h >>conftest.$ac_ext |
---|
8908 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8909 | /* end confdefs.h. */ |
---|
8910 | $ac_includes_default |
---|
8911 | #include <$ac_header> |
---|
8912 | _ACEOF |
---|
8913 | rm -f conftest.$ac_objext |
---|
8914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8915 | (eval $ac_compile) 2>conftest.er1 |
---|
8916 | ac_status=$? |
---|
8917 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8918 | rm -f conftest.er1 |
---|
8919 | cat conftest.err >&5 |
---|
8920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8921 | (exit $ac_status); } && |
---|
8922 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8923 | || test ! -s conftest.err' |
---|
8924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8925 | (eval $ac_try) 2>&5 |
---|
8926 | ac_status=$? |
---|
8927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8928 | (exit $ac_status); }; } && |
---|
8929 | { ac_try='test -s conftest.$ac_objext' |
---|
8930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8931 | (eval $ac_try) 2>&5 |
---|
8932 | ac_status=$? |
---|
8933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8934 | (exit $ac_status); }; }; then |
---|
8935 | ac_header_compiler=yes |
---|
8936 | else |
---|
8937 | echo "$as_me: failed program was:" >&5 |
---|
8938 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8939 | |
---|
8940 | ac_header_compiler=no |
---|
8941 | fi |
---|
8942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8943 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8944 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8945 | |
---|
8946 | # Is the header present? |
---|
8947 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8948 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8949 | cat >conftest.$ac_ext <<_ACEOF |
---|
8950 | /* confdefs.h. */ |
---|
8951 | _ACEOF |
---|
8952 | cat confdefs.h >>conftest.$ac_ext |
---|
8953 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8954 | /* end confdefs.h. */ |
---|
8955 | #include <$ac_header> |
---|
8956 | _ACEOF |
---|
8957 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8958 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8959 | ac_status=$? |
---|
8960 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8961 | rm -f conftest.er1 |
---|
8962 | cat conftest.err >&5 |
---|
8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8964 | (exit $ac_status); } >/dev/null; then |
---|
8965 | if test -s conftest.err; then |
---|
8966 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8967 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8968 | else |
---|
8969 | ac_cpp_err= |
---|
8970 | fi |
---|
8971 | else |
---|
8972 | ac_cpp_err=yes |
---|
8973 | fi |
---|
8974 | if test -z "$ac_cpp_err"; then |
---|
8975 | ac_header_preproc=yes |
---|
8976 | else |
---|
8977 | echo "$as_me: failed program was:" >&5 |
---|
8978 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8979 | |
---|
8980 | ac_header_preproc=no |
---|
8981 | fi |
---|
8982 | rm -f conftest.err conftest.$ac_ext |
---|
8983 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8984 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8985 | |
---|
8986 | # So? What about this header? |
---|
8987 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8988 | yes:no: ) |
---|
8989 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8990 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8991 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8992 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8993 | ac_header_preproc=yes |
---|
8994 | ;; |
---|
8995 | no:yes:* ) |
---|
8996 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8997 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8998 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8999 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9000 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9001 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9002 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9003 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9004 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9005 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9006 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9007 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9008 | ( |
---|
9009 | cat <<\_ASBOX |
---|
9010 | ## ---------------------------------------------- ## |
---|
9011 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9012 | ## ---------------------------------------------- ## |
---|
9013 | _ASBOX |
---|
9014 | ) | |
---|
9015 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9016 | ;; |
---|
9017 | esac |
---|
9018 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9019 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9022 | else |
---|
9023 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9024 | fi |
---|
9025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9026 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9027 | |
---|
9028 | fi |
---|
9029 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9030 | cat >>confdefs.h <<_ACEOF |
---|
9031 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9032 | _ACEOF |
---|
9033 | |
---|
9034 | fi |
---|
9035 | |
---|
9036 | done |
---|
9037 | |
---|
9038 | |
---|
9039 | # Checks for typedefs, structures, and compiler characteristics. |
---|
9040 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
9041 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
9042 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
9043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9044 | else |
---|
9045 | cat >conftest.$ac_ext <<_ACEOF |
---|
9046 | /* confdefs.h. */ |
---|
9047 | _ACEOF |
---|
9048 | cat confdefs.h >>conftest.$ac_ext |
---|
9049 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9050 | /* end confdefs.h. */ |
---|
9051 | |
---|
9052 | #include <stdbool.h> |
---|
9053 | #ifndef bool |
---|
9054 | # error bool is not defined |
---|
9055 | #endif |
---|
9056 | #ifndef false |
---|
9057 | # error false is not defined |
---|
9058 | #endif |
---|
9059 | #if false |
---|
9060 | # error false is not 0 |
---|
9061 | #endif |
---|
9062 | #ifndef true |
---|
9063 | # error true is not defined |
---|
9064 | #endif |
---|
9065 | #if true != 1 |
---|
9066 | # error true is not 1 |
---|
9067 | #endif |
---|
9068 | #ifndef __bool_true_false_are_defined |
---|
9069 | # error __bool_true_false_are_defined is not defined |
---|
9070 | #endif |
---|
9071 | |
---|
9072 | struct s { _Bool s: 1; _Bool t; } s; |
---|
9073 | |
---|
9074 | char a[true == 1 ? 1 : -1]; |
---|
9075 | char b[false == 0 ? 1 : -1]; |
---|
9076 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
9077 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
9078 | bool e = &s; |
---|
9079 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
9080 | char g[true]; |
---|
9081 | char h[sizeof (_Bool)]; |
---|
9082 | char i[sizeof s.t]; |
---|
9083 | |
---|
9084 | int |
---|
9085 | main () |
---|
9086 | { |
---|
9087 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
9088 | ; |
---|
9089 | return 0; |
---|
9090 | } |
---|
9091 | _ACEOF |
---|
9092 | rm -f conftest.$ac_objext |
---|
9093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9094 | (eval $ac_compile) 2>conftest.er1 |
---|
9095 | ac_status=$? |
---|
9096 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9097 | rm -f conftest.er1 |
---|
9098 | cat conftest.err >&5 |
---|
9099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9100 | (exit $ac_status); } && |
---|
9101 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9102 | || test ! -s conftest.err' |
---|
9103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9104 | (eval $ac_try) 2>&5 |
---|
9105 | ac_status=$? |
---|
9106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9107 | (exit $ac_status); }; } && |
---|
9108 | { ac_try='test -s conftest.$ac_objext' |
---|
9109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9110 | (eval $ac_try) 2>&5 |
---|
9111 | ac_status=$? |
---|
9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9113 | (exit $ac_status); }; }; then |
---|
9114 | ac_cv_header_stdbool_h=yes |
---|
9115 | else |
---|
9116 | echo "$as_me: failed program was:" >&5 |
---|
9117 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9118 | |
---|
9119 | ac_cv_header_stdbool_h=no |
---|
9120 | fi |
---|
9121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9122 | fi |
---|
9123 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
9124 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
9125 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
9126 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
9127 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
9128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9129 | else |
---|
9130 | cat >conftest.$ac_ext <<_ACEOF |
---|
9131 | /* confdefs.h. */ |
---|
9132 | _ACEOF |
---|
9133 | cat confdefs.h >>conftest.$ac_ext |
---|
9134 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9135 | /* end confdefs.h. */ |
---|
9136 | $ac_includes_default |
---|
9137 | int |
---|
9138 | main () |
---|
9139 | { |
---|
9140 | if ((_Bool *) 0) |
---|
9141 | return 0; |
---|
9142 | if (sizeof (_Bool)) |
---|
9143 | return 0; |
---|
9144 | ; |
---|
9145 | return 0; |
---|
9146 | } |
---|
9147 | _ACEOF |
---|
9148 | rm -f conftest.$ac_objext |
---|
9149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9150 | (eval $ac_compile) 2>conftest.er1 |
---|
9151 | ac_status=$? |
---|
9152 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9153 | rm -f conftest.er1 |
---|
9154 | cat conftest.err >&5 |
---|
9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9156 | (exit $ac_status); } && |
---|
9157 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9158 | || test ! -s conftest.err' |
---|
9159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9160 | (eval $ac_try) 2>&5 |
---|
9161 | ac_status=$? |
---|
9162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9163 | (exit $ac_status); }; } && |
---|
9164 | { ac_try='test -s conftest.$ac_objext' |
---|
9165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9166 | (eval $ac_try) 2>&5 |
---|
9167 | ac_status=$? |
---|
9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9169 | (exit $ac_status); }; }; then |
---|
9170 | ac_cv_type__Bool=yes |
---|
9171 | else |
---|
9172 | echo "$as_me: failed program was:" >&5 |
---|
9173 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9174 | |
---|
9175 | ac_cv_type__Bool=no |
---|
9176 | fi |
---|
9177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9178 | fi |
---|
9179 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
9180 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
9181 | if test $ac_cv_type__Bool = yes; then |
---|
9182 | |
---|
9183 | cat >>confdefs.h <<_ACEOF |
---|
9184 | #define HAVE__BOOL 1 |
---|
9185 | _ACEOF |
---|
9186 | |
---|
9187 | |
---|
9188 | fi |
---|
9189 | |
---|
9190 | if test $ac_cv_header_stdbool_h = yes; then |
---|
9191 | |
---|
9192 | cat >>confdefs.h <<\_ACEOF |
---|
9193 | #define HAVE_STDBOOL_H 1 |
---|
9194 | _ACEOF |
---|
9195 | |
---|
9196 | fi |
---|
9197 | |
---|
9198 | |
---|
9199 | # Checks for library functions. |
---|
9200 | |
---|
9201 | for ac_header in stdlib.h |
---|
9202 | do |
---|
9203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9205 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9209 | fi |
---|
9210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9212 | else |
---|
9213 | # Is the header compilable? |
---|
9214 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9215 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9216 | cat >conftest.$ac_ext <<_ACEOF |
---|
9217 | /* confdefs.h. */ |
---|
9218 | _ACEOF |
---|
9219 | cat confdefs.h >>conftest.$ac_ext |
---|
9220 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9221 | /* end confdefs.h. */ |
---|
9222 | $ac_includes_default |
---|
9223 | #include <$ac_header> |
---|
9224 | _ACEOF |
---|
9225 | rm -f conftest.$ac_objext |
---|
9226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9227 | (eval $ac_compile) 2>conftest.er1 |
---|
9228 | ac_status=$? |
---|
9229 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9230 | rm -f conftest.er1 |
---|
9231 | cat conftest.err >&5 |
---|
9232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9233 | (exit $ac_status); } && |
---|
9234 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9235 | || test ! -s conftest.err' |
---|
9236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9237 | (eval $ac_try) 2>&5 |
---|
9238 | ac_status=$? |
---|
9239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9240 | (exit $ac_status); }; } && |
---|
9241 | { ac_try='test -s conftest.$ac_objext' |
---|
9242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9243 | (eval $ac_try) 2>&5 |
---|
9244 | ac_status=$? |
---|
9245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9246 | (exit $ac_status); }; }; then |
---|
9247 | ac_header_compiler=yes |
---|
9248 | else |
---|
9249 | echo "$as_me: failed program was:" >&5 |
---|
9250 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9251 | |
---|
9252 | ac_header_compiler=no |
---|
9253 | fi |
---|
9254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9255 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9256 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9257 | |
---|
9258 | # Is the header present? |
---|
9259 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9260 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9261 | cat >conftest.$ac_ext <<_ACEOF |
---|
9262 | /* confdefs.h. */ |
---|
9263 | _ACEOF |
---|
9264 | cat confdefs.h >>conftest.$ac_ext |
---|
9265 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9266 | /* end confdefs.h. */ |
---|
9267 | #include <$ac_header> |
---|
9268 | _ACEOF |
---|
9269 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9271 | ac_status=$? |
---|
9272 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9273 | rm -f conftest.er1 |
---|
9274 | cat conftest.err >&5 |
---|
9275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9276 | (exit $ac_status); } >/dev/null; then |
---|
9277 | if test -s conftest.err; then |
---|
9278 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9279 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9280 | else |
---|
9281 | ac_cpp_err= |
---|
9282 | fi |
---|
9283 | else |
---|
9284 | ac_cpp_err=yes |
---|
9285 | fi |
---|
9286 | if test -z "$ac_cpp_err"; then |
---|
9287 | ac_header_preproc=yes |
---|
9288 | else |
---|
9289 | echo "$as_me: failed program was:" >&5 |
---|
9290 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9291 | |
---|
9292 | ac_header_preproc=no |
---|
9293 | fi |
---|
9294 | rm -f conftest.err conftest.$ac_ext |
---|
9295 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9296 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9297 | |
---|
9298 | # So? What about this header? |
---|
9299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9300 | yes:no: ) |
---|
9301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9304 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9305 | ac_header_preproc=yes |
---|
9306 | ;; |
---|
9307 | no:yes:* ) |
---|
9308 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9309 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9310 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9311 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9312 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9313 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9314 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9315 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9317 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9318 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9319 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9320 | ( |
---|
9321 | cat <<\_ASBOX |
---|
9322 | ## ---------------------------------------------- ## |
---|
9323 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9324 | ## ---------------------------------------------- ## |
---|
9325 | _ASBOX |
---|
9326 | ) | |
---|
9327 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9328 | ;; |
---|
9329 | esac |
---|
9330 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9331 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9334 | else |
---|
9335 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9336 | fi |
---|
9337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9338 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9339 | |
---|
9340 | fi |
---|
9341 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9342 | cat >>confdefs.h <<_ACEOF |
---|
9343 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9344 | _ACEOF |
---|
9345 | |
---|
9346 | fi |
---|
9347 | |
---|
9348 | done |
---|
9349 | |
---|
9350 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
9351 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
9352 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
9353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9354 | else |
---|
9355 | if test "$cross_compiling" = yes; then |
---|
9356 | ac_cv_func_malloc_0_nonnull=no |
---|
9357 | else |
---|
9358 | cat >conftest.$ac_ext <<_ACEOF |
---|
9359 | /* confdefs.h. */ |
---|
9360 | _ACEOF |
---|
9361 | cat confdefs.h >>conftest.$ac_ext |
---|
9362 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9363 | /* end confdefs.h. */ |
---|
9364 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
9365 | # include <stdlib.h> |
---|
9366 | #else |
---|
9367 | char *malloc (); |
---|
9368 | #endif |
---|
9369 | |
---|
9370 | int |
---|
9371 | main () |
---|
9372 | { |
---|
9373 | exit (malloc (0) ? 0 : 1); |
---|
9374 | ; |
---|
9375 | return 0; |
---|
9376 | } |
---|
9377 | _ACEOF |
---|
9378 | rm -f conftest$ac_exeext |
---|
9379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9380 | (eval $ac_link) 2>&5 |
---|
9381 | ac_status=$? |
---|
9382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9383 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
9384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9385 | (eval $ac_try) 2>&5 |
---|
9386 | ac_status=$? |
---|
9387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9388 | (exit $ac_status); }; }; then |
---|
9389 | ac_cv_func_malloc_0_nonnull=yes |
---|
9390 | else |
---|
9391 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
9392 | echo "$as_me: failed program was:" >&5 |
---|
9393 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9394 | |
---|
9395 | ( exit $ac_status ) |
---|
9396 | ac_cv_func_malloc_0_nonnull=no |
---|
9397 | fi |
---|
9398 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
9399 | fi |
---|
9400 | fi |
---|
9401 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
9402 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
9403 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
9404 | |
---|
9405 | cat >>confdefs.h <<\_ACEOF |
---|
9406 | #define HAVE_MALLOC 1 |
---|
9407 | _ACEOF |
---|
9408 | |
---|
9409 | else |
---|
9410 | cat >>confdefs.h <<\_ACEOF |
---|
9411 | #define HAVE_MALLOC 0 |
---|
9412 | _ACEOF |
---|
9413 | |
---|
9414 | case $LIBOBJS in |
---|
9415 | "malloc.$ac_objext" | \ |
---|
9416 | *" malloc.$ac_objext" | \ |
---|
9417 | "malloc.$ac_objext "* | \ |
---|
9418 | *" malloc.$ac_objext "* ) ;; |
---|
9419 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
9420 | esac |
---|
9421 | |
---|
9422 | |
---|
9423 | cat >>confdefs.h <<\_ACEOF |
---|
9424 | #define malloc rpl_malloc |
---|
9425 | _ACEOF |
---|
9426 | |
---|
9427 | fi |
---|
9428 | |
---|
9429 | |
---|
9430 | |
---|
9431 | |
---|
9432 | |
---|
9433 | for ac_func in bzero sqrt |
---|
9434 | do |
---|
9435 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
9436 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
9437 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
9438 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
9439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9440 | else |
---|
9441 | cat >conftest.$ac_ext <<_ACEOF |
---|
9442 | /* confdefs.h. */ |
---|
9443 | _ACEOF |
---|
9444 | cat confdefs.h >>conftest.$ac_ext |
---|
9445 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9446 | /* end confdefs.h. */ |
---|
9447 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
9448 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
9449 | #define $ac_func innocuous_$ac_func |
---|
9450 | |
---|
9451 | /* System header to define __stub macros and hopefully few prototypes, |
---|
9452 | which can conflict with char $ac_func (); below. |
---|
9453 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
9454 | <limits.h> exists even on freestanding compilers. */ |
---|
9455 | |
---|
9456 | #ifdef __STDC__ |
---|
9457 | # include <limits.h> |
---|
9458 | #else |
---|
9459 | # include <assert.h> |
---|
9460 | #endif |
---|
9461 | |
---|
9462 | #undef $ac_func |
---|
9463 | |
---|
9464 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9465 | #ifdef __cplusplus |
---|
9466 | extern "C" |
---|
9467 | { |
---|
9468 | #endif |
---|
9469 | /* We use char because int might match the return type of a gcc2 |
---|
9470 | builtin and then its argument prototype would still apply. */ |
---|
9471 | char $ac_func (); |
---|
9472 | /* The GNU C library defines this for functions which it implements |
---|
9473 | to always fail with ENOSYS. Some functions are actually named |
---|
9474 | something starting with __ and the normal name is an alias. */ |
---|
9475 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
9476 | choke me |
---|
9477 | #else |
---|
9478 | char (*f) () = $ac_func; |
---|
9479 | #endif |
---|
9480 | #ifdef __cplusplus |
---|
9481 | } |
---|
9482 | #endif |
---|
9483 | |
---|
9484 | int |
---|
9485 | main () |
---|
9486 | { |
---|
9487 | return f != $ac_func; |
---|
9488 | ; |
---|
9489 | return 0; |
---|
9490 | } |
---|
9491 | _ACEOF |
---|
9492 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9494 | (eval $ac_link) 2>conftest.er1 |
---|
9495 | ac_status=$? |
---|
9496 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9497 | rm -f conftest.er1 |
---|
9498 | cat conftest.err >&5 |
---|
9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9500 | (exit $ac_status); } && |
---|
9501 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9502 | || test ! -s conftest.err' |
---|
9503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9504 | (eval $ac_try) 2>&5 |
---|
9505 | ac_status=$? |
---|
9506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9507 | (exit $ac_status); }; } && |
---|
9508 | { ac_try='test -s conftest$ac_exeext' |
---|
9509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9510 | (eval $ac_try) 2>&5 |
---|
9511 | ac_status=$? |
---|
9512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9513 | (exit $ac_status); }; }; then |
---|
9514 | eval "$as_ac_var=yes" |
---|
9515 | else |
---|
9516 | echo "$as_me: failed program was:" >&5 |
---|
9517 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9518 | |
---|
9519 | eval "$as_ac_var=no" |
---|
9520 | fi |
---|
9521 | rm -f conftest.err conftest.$ac_objext \ |
---|
9522 | conftest$ac_exeext conftest.$ac_ext |
---|
9523 | fi |
---|
9524 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
9525 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
9526 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
9527 | cat >>confdefs.h <<_ACEOF |
---|
9528 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
9529 | _ACEOF |
---|
9530 | |
---|
9531 | fi |
---|
9532 | done |
---|
9533 | |
---|
9534 | |
---|
9535 | ###################### |
---|
9536 | ## OUTPUT CONFIGURE ## |
---|
9537 | ###################### |
---|
9538 | ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/tinyxml/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile" |
---|
9539 | |
---|
9540 | |
---|
9541 | cat >confcache <<\_ACEOF |
---|
9542 | # This file is a shell script that caches the results of configure |
---|
9543 | # tests run on this system so they can be shared between configure |
---|
9544 | # scripts and configure runs, see configure's option --config-cache. |
---|
9545 | # It is not useful on other systems. If it contains results you don't |
---|
9546 | # want to keep, you may remove or edit it. |
---|
9547 | # |
---|
9548 | # config.status only pays attention to the cache file if you give it |
---|
9549 | # the --recheck option to rerun configure. |
---|
9550 | # |
---|
9551 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
9552 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
9553 | # following values. |
---|
9554 | |
---|
9555 | _ACEOF |
---|
9556 | |
---|
9557 | # The following way of writing the cache mishandles newlines in values, |
---|
9558 | # but we know of no workaround that is simple, portable, and efficient. |
---|
9559 | # So, don't put newlines in cache variables' values. |
---|
9560 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
9561 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
9562 | { |
---|
9563 | (set) 2>&1 | |
---|
9564 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
9565 | *ac_space=\ *) |
---|
9566 | # `set' does not quote correctly, so add quotes (double-quote |
---|
9567 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
9568 | sed -n \ |
---|
9569 | "s/'/'\\\\''/g; |
---|
9570 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
9571 | ;; |
---|
9572 | *) |
---|
9573 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
9574 | sed -n \ |
---|
9575 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
9576 | ;; |
---|
9577 | esac; |
---|
9578 | } | |
---|
9579 | sed ' |
---|
9580 | t clear |
---|
9581 | : clear |
---|
9582 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
9583 | t end |
---|
9584 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
9585 | : end' >>confcache |
---|
9586 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
9587 | if test -w $cache_file; then |
---|
9588 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
9589 | cat confcache >$cache_file |
---|
9590 | else |
---|
9591 | echo "not updating unwritable cache $cache_file" |
---|
9592 | fi |
---|
9593 | fi |
---|
9594 | rm -f confcache |
---|
9595 | |
---|
9596 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
9597 | # Let make expand exec_prefix. |
---|
9598 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
9599 | |
---|
9600 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
9601 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
9602 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
9603 | # (actually we leave an empty line to preserve line numbers). |
---|
9604 | if test "x$srcdir" = x.; then |
---|
9605 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
9606 | s/:*\$(srcdir):*/:/; |
---|
9607 | s/:*\${srcdir}:*/:/; |
---|
9608 | s/:*@srcdir@:*/:/; |
---|
9609 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
9610 | s/:*$//; |
---|
9611 | s/^[^=]*=[ ]*$//; |
---|
9612 | }' |
---|
9613 | fi |
---|
9614 | |
---|
9615 | DEFS=-DHAVE_CONFIG_H |
---|
9616 | |
---|
9617 | ac_libobjs= |
---|
9618 | ac_ltlibobjs= |
---|
9619 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
9620 | # 1. Remove the extension, and $U if already installed. |
---|
9621 | ac_i=`echo "$ac_i" | |
---|
9622 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
9623 | # 2. Add them. |
---|
9624 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
9625 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
9626 | done |
---|
9627 | LIBOBJS=$ac_libobjs |
---|
9628 | |
---|
9629 | LTLIBOBJS=$ac_ltlibobjs |
---|
9630 | |
---|
9631 | |
---|
9632 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
9633 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
9634 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9635 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
9636 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9637 | { (exit 1); exit 1; }; } |
---|
9638 | fi |
---|
9639 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
9640 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
9641 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9642 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
9643 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9644 | { (exit 1); exit 1; }; } |
---|
9645 | fi |
---|
9646 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
9647 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
9648 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9649 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
9650 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9651 | { (exit 1); exit 1; }; } |
---|
9652 | fi |
---|
9653 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
9654 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
9655 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9656 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
9657 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9658 | { (exit 1); exit 1; }; } |
---|
9659 | fi |
---|
9660 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
9661 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
9662 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9663 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
9664 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9665 | { (exit 1); exit 1; }; } |
---|
9666 | fi |
---|
9667 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
9668 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
9669 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9670 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
9671 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9672 | { (exit 1); exit 1; }; } |
---|
9673 | fi |
---|
9674 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
9675 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
9676 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9677 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
9678 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9679 | { (exit 1); exit 1; }; } |
---|
9680 | fi |
---|
9681 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
9682 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
9683 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9684 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
9685 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9686 | { (exit 1); exit 1; }; } |
---|
9687 | fi |
---|
9688 | |
---|
9689 | : ${CONFIG_STATUS=./config.status} |
---|
9690 | ac_clean_files_save=$ac_clean_files |
---|
9691 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
9692 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
9693 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
9694 | cat >$CONFIG_STATUS <<_ACEOF |
---|
9695 | #! $SHELL |
---|
9696 | # Generated by $as_me. |
---|
9697 | # Run this file to recreate the current configuration. |
---|
9698 | # Compiler output produced by configure, useful for debugging |
---|
9699 | # configure, is in config.log if it exists. |
---|
9700 | |
---|
9701 | debug=false |
---|
9702 | ac_cs_recheck=false |
---|
9703 | ac_cs_silent=false |
---|
9704 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
9705 | _ACEOF |
---|
9706 | |
---|
9707 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9708 | ## --------------------- ## |
---|
9709 | ## M4sh Initialization. ## |
---|
9710 | ## --------------------- ## |
---|
9711 | |
---|
9712 | # Be Bourne compatible |
---|
9713 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
9714 | emulate sh |
---|
9715 | NULLCMD=: |
---|
9716 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
9717 | # is contrary to our usage. Disable this feature. |
---|
9718 | alias -g '${1+"$@"}'='"$@"' |
---|
9719 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
9720 | set -o posix |
---|
9721 | fi |
---|
9722 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
9723 | |
---|
9724 | # Support unset when possible. |
---|
9725 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
9726 | as_unset=unset |
---|
9727 | else |
---|
9728 | as_unset=false |
---|
9729 | fi |
---|
9730 | |
---|
9731 | |
---|
9732 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
9733 | $as_unset ENV MAIL MAILPATH |
---|
9734 | PS1='$ ' |
---|
9735 | PS2='> ' |
---|
9736 | PS4='+ ' |
---|
9737 | |
---|
9738 | # NLS nuisances. |
---|
9739 | for as_var in \ |
---|
9740 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
9741 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
9742 | LC_TELEPHONE LC_TIME |
---|
9743 | do |
---|
9744 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
9745 | eval $as_var=C; export $as_var |
---|
9746 | else |
---|
9747 | $as_unset $as_var |
---|
9748 | fi |
---|
9749 | done |
---|
9750 | |
---|
9751 | # Required to use basename. |
---|
9752 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
9753 | as_expr=expr |
---|
9754 | else |
---|
9755 | as_expr=false |
---|
9756 | fi |
---|
9757 | |
---|
9758 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
9759 | as_basename=basename |
---|
9760 | else |
---|
9761 | as_basename=false |
---|
9762 | fi |
---|
9763 | |
---|
9764 | |
---|
9765 | # Name of the executable. |
---|
9766 | as_me=`$as_basename "$0" || |
---|
9767 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
9768 | X"$0" : 'X\(//\)$' \| \ |
---|
9769 | X"$0" : 'X\(/\)$' \| \ |
---|
9770 | . : '\(.\)' 2>/dev/null || |
---|
9771 | echo X/"$0" | |
---|
9772 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
9773 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
9774 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
9775 | s/.*/./; q'` |
---|
9776 | |
---|
9777 | |
---|
9778 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
9779 | # Avoid depending upon Character Ranges. |
---|
9780 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
9781 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
9782 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
9783 | as_cr_digits='0123456789' |
---|
9784 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
9785 | |
---|
9786 | # The user is always right. |
---|
9787 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
9788 | echo "#! /bin/sh" >conf$$.sh |
---|
9789 | echo "exit 0" >>conf$$.sh |
---|
9790 | chmod +x conf$$.sh |
---|
9791 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
9792 | PATH_SEPARATOR=';' |
---|
9793 | else |
---|
9794 | PATH_SEPARATOR=: |
---|
9795 | fi |
---|
9796 | rm -f conf$$.sh |
---|
9797 | fi |
---|
9798 | |
---|
9799 | |
---|
9800 | as_lineno_1=$LINENO |
---|
9801 | as_lineno_2=$LINENO |
---|
9802 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
9803 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
9804 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
9805 | # Find who we are. Look in the path if we contain no path at all |
---|
9806 | # relative or not. |
---|
9807 | case $0 in |
---|
9808 | *[\\/]* ) as_myself=$0 ;; |
---|
9809 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9810 | for as_dir in $PATH |
---|
9811 | do |
---|
9812 | IFS=$as_save_IFS |
---|
9813 | test -z "$as_dir" && as_dir=. |
---|
9814 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
9815 | done |
---|
9816 | |
---|
9817 | ;; |
---|
9818 | esac |
---|
9819 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
9820 | # in which case we are not to be found in the path. |
---|
9821 | if test "x$as_myself" = x; then |
---|
9822 | as_myself=$0 |
---|
9823 | fi |
---|
9824 | if test ! -f "$as_myself"; then |
---|
9825 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
9826 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
9827 | { (exit 1); exit 1; }; } |
---|
9828 | fi |
---|
9829 | case $CONFIG_SHELL in |
---|
9830 | '') |
---|
9831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9832 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
9833 | do |
---|
9834 | IFS=$as_save_IFS |
---|
9835 | test -z "$as_dir" && as_dir=. |
---|
9836 | for as_base in sh bash ksh sh5; do |
---|
9837 | case $as_dir in |
---|
9838 | /*) |
---|
9839 | if ("$as_dir/$as_base" -c ' |
---|
9840 | as_lineno_1=$LINENO |
---|
9841 | as_lineno_2=$LINENO |
---|
9842 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
9843 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
9844 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
9845 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
9846 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
9847 | CONFIG_SHELL=$as_dir/$as_base |
---|
9848 | export CONFIG_SHELL |
---|
9849 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
9850 | fi;; |
---|
9851 | esac |
---|
9852 | done |
---|
9853 | done |
---|
9854 | ;; |
---|
9855 | esac |
---|
9856 | |
---|
9857 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
9858 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
9859 | # line-number line before each line; the second 'sed' does the real |
---|
9860 | # work. The second script uses 'N' to pair each line-number line |
---|
9861 | # with the numbered line, and appends trailing '-' during |
---|
9862 | # substitution so that $LINENO is not a special case at line end. |
---|
9863 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
9864 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
9865 | sed '=' <$as_myself | |
---|
9866 | sed ' |
---|
9867 | N |
---|
9868 | s,$,-, |
---|
9869 | : loop |
---|
9870 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
9871 | t loop |
---|
9872 | s,-$,, |
---|
9873 | s,^['$as_cr_digits']*\n,, |
---|
9874 | ' >$as_me.lineno && |
---|
9875 | chmod +x $as_me.lineno || |
---|
9876 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
9877 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
9878 | { (exit 1); exit 1; }; } |
---|
9879 | |
---|
9880 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
9881 | # (the dirname of $[0] is not the place where we might find the |
---|
9882 | # original and so on. Autoconf is especially sensible to this). |
---|
9883 | . ./$as_me.lineno |
---|
9884 | # Exit status is that of the last command. |
---|
9885 | exit |
---|
9886 | } |
---|
9887 | |
---|
9888 | |
---|
9889 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
9890 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
9891 | ' ECHO_T=' ' ;; |
---|
9892 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
9893 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
9894 | esac |
---|
9895 | |
---|
9896 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
9897 | as_expr=expr |
---|
9898 | else |
---|
9899 | as_expr=false |
---|
9900 | fi |
---|
9901 | |
---|
9902 | rm -f conf$$ conf$$.exe conf$$.file |
---|
9903 | echo >conf$$.file |
---|
9904 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
9905 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
9906 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
9907 | if test -f conf$$.exe; then |
---|
9908 | # Don't use ln at all; we don't have any links |
---|
9909 | as_ln_s='cp -p' |
---|
9910 | else |
---|
9911 | as_ln_s='ln -s' |
---|
9912 | fi |
---|
9913 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
9914 | as_ln_s=ln |
---|
9915 | else |
---|
9916 | as_ln_s='cp -p' |
---|
9917 | fi |
---|
9918 | rm -f conf$$ conf$$.exe conf$$.file |
---|
9919 | |
---|
9920 | if mkdir -p . 2>/dev/null; then |
---|
9921 | as_mkdir_p=: |
---|
9922 | else |
---|
9923 | test -d ./-p && rmdir ./-p |
---|
9924 | as_mkdir_p=false |
---|
9925 | fi |
---|
9926 | |
---|
9927 | as_executable_p="test -f" |
---|
9928 | |
---|
9929 | # Sed expression to map a string onto a valid CPP name. |
---|
9930 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
9931 | |
---|
9932 | # Sed expression to map a string onto a valid variable name. |
---|
9933 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
9934 | |
---|
9935 | |
---|
9936 | # IFS |
---|
9937 | # We need space, tab and new line, in precisely that order. |
---|
9938 | as_nl=' |
---|
9939 | ' |
---|
9940 | IFS=" $as_nl" |
---|
9941 | |
---|
9942 | # CDPATH. |
---|
9943 | $as_unset CDPATH |
---|
9944 | |
---|
9945 | exec 6>&1 |
---|
9946 | |
---|
9947 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
9948 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
9949 | # values after options handling. Logging --version etc. is OK. |
---|
9950 | exec 5>>config.log |
---|
9951 | { |
---|
9952 | echo |
---|
9953 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
9954 | ## Running $as_me. ## |
---|
9955 | _ASBOX |
---|
9956 | } >&5 |
---|
9957 | cat >&5 <<_CSEOF |
---|
9958 | |
---|
9959 | This file was extended by orxonox $as_me 0.3.1_alpha, which was |
---|
9960 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
9961 | |
---|
9962 | CONFIG_FILES = $CONFIG_FILES |
---|
9963 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
9964 | CONFIG_LINKS = $CONFIG_LINKS |
---|
9965 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
9966 | $ $0 $@ |
---|
9967 | |
---|
9968 | _CSEOF |
---|
9969 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
9970 | echo >&5 |
---|
9971 | _ACEOF |
---|
9972 | |
---|
9973 | # Files that config.status was made for. |
---|
9974 | if test -n "$ac_config_files"; then |
---|
9975 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
9976 | fi |
---|
9977 | |
---|
9978 | if test -n "$ac_config_headers"; then |
---|
9979 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
9980 | fi |
---|
9981 | |
---|
9982 | if test -n "$ac_config_links"; then |
---|
9983 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
9984 | fi |
---|
9985 | |
---|
9986 | if test -n "$ac_config_commands"; then |
---|
9987 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
9988 | fi |
---|
9989 | |
---|
9990 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9991 | |
---|
9992 | ac_cs_usage="\ |
---|
9993 | \`$as_me' instantiates files from templates according to the |
---|
9994 | current configuration. |
---|
9995 | |
---|
9996 | Usage: $0 [OPTIONS] [FILE]... |
---|
9997 | |
---|
9998 | -h, --help print this help, then exit |
---|
9999 | -V, --version print version number, then exit |
---|
10000 | -q, --quiet do not print progress messages |
---|
10001 | -d, --debug don't remove temporary files |
---|
10002 | --recheck update $as_me by reconfiguring in the same conditions |
---|
10003 | --file=FILE[:TEMPLATE] |
---|
10004 | instantiate the configuration file FILE |
---|
10005 | --header=FILE[:TEMPLATE] |
---|
10006 | instantiate the configuration header FILE |
---|
10007 | |
---|
10008 | Configuration files: |
---|
10009 | $config_files |
---|
10010 | |
---|
10011 | Configuration headers: |
---|
10012 | $config_headers |
---|
10013 | |
---|
10014 | Configuration commands: |
---|
10015 | $config_commands |
---|
10016 | |
---|
10017 | Report bugs to <bug-autoconf@gnu.org>." |
---|
10018 | _ACEOF |
---|
10019 | |
---|
10020 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10021 | ac_cs_version="\\ |
---|
10022 | orxonox config.status 0.3.1_alpha |
---|
10023 | configured by $0, generated by GNU Autoconf 2.59, |
---|
10024 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
10025 | |
---|
10026 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
10027 | This config.status script is free software; the Free Software Foundation |
---|
10028 | gives unlimited permission to copy, distribute and modify it." |
---|
10029 | srcdir=$srcdir |
---|
10030 | INSTALL="$INSTALL" |
---|
10031 | _ACEOF |
---|
10032 | |
---|
10033 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10034 | # If no file are specified by the user, then we need to provide default |
---|
10035 | # value. By we need to know if files were specified by the user. |
---|
10036 | ac_need_defaults=: |
---|
10037 | while test $# != 0 |
---|
10038 | do |
---|
10039 | case $1 in |
---|
10040 | --*=*) |
---|
10041 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
10042 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
10043 | ac_shift=: |
---|
10044 | ;; |
---|
10045 | -*) |
---|
10046 | ac_option=$1 |
---|
10047 | ac_optarg=$2 |
---|
10048 | ac_shift=shift |
---|
10049 | ;; |
---|
10050 | *) # This is not an option, so the user has probably given explicit |
---|
10051 | # arguments. |
---|
10052 | ac_option=$1 |
---|
10053 | ac_need_defaults=false;; |
---|
10054 | esac |
---|
10055 | |
---|
10056 | case $ac_option in |
---|
10057 | # Handling of the options. |
---|
10058 | _ACEOF |
---|
10059 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10060 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
10061 | ac_cs_recheck=: ;; |
---|
10062 | --version | --vers* | -V ) |
---|
10063 | echo "$ac_cs_version"; exit 0 ;; |
---|
10064 | --he | --h) |
---|
10065 | # Conflict between --help and --header |
---|
10066 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
10067 | Try \`$0 --help' for more information." >&5 |
---|
10068 | echo "$as_me: error: ambiguous option: $1 |
---|
10069 | Try \`$0 --help' for more information." >&2;} |
---|
10070 | { (exit 1); exit 1; }; };; |
---|
10071 | --help | --hel | -h ) |
---|
10072 | echo "$ac_cs_usage"; exit 0 ;; |
---|
10073 | --debug | --d* | -d ) |
---|
10074 | debug=: ;; |
---|
10075 | --file | --fil | --fi | --f ) |
---|
10076 | $ac_shift |
---|
10077 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
10078 | ac_need_defaults=false;; |
---|
10079 | --header | --heade | --head | --hea ) |
---|
10080 | $ac_shift |
---|
10081 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
10082 | ac_need_defaults=false;; |
---|
10083 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
10084 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
10085 | ac_cs_silent=: ;; |
---|
10086 | |
---|
10087 | # This is an error. |
---|
10088 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
10089 | Try \`$0 --help' for more information." >&5 |
---|
10090 | echo "$as_me: error: unrecognized option: $1 |
---|
10091 | Try \`$0 --help' for more information." >&2;} |
---|
10092 | { (exit 1); exit 1; }; } ;; |
---|
10093 | |
---|
10094 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
10095 | |
---|
10096 | esac |
---|
10097 | shift |
---|
10098 | done |
---|
10099 | |
---|
10100 | ac_configure_extra_args= |
---|
10101 | |
---|
10102 | if $ac_cs_silent; then |
---|
10103 | exec 6>/dev/null |
---|
10104 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
10105 | fi |
---|
10106 | |
---|
10107 | _ACEOF |
---|
10108 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10109 | if \$ac_cs_recheck; then |
---|
10110 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
10111 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
10112 | fi |
---|
10113 | |
---|
10114 | _ACEOF |
---|
10115 | |
---|
10116 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10117 | # |
---|
10118 | # INIT-COMMANDS section. |
---|
10119 | # |
---|
10120 | |
---|
10121 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
10122 | |
---|
10123 | _ACEOF |
---|
10124 | |
---|
10125 | |
---|
10126 | |
---|
10127 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10128 | for ac_config_target in $ac_config_targets |
---|
10129 | do |
---|
10130 | case "$ac_config_target" in |
---|
10131 | # Handling of arguments. |
---|
10132 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
10133 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
10134 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
10135 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
10136 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
10137 | "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;; |
---|
10138 | "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;; |
---|
10139 | "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;; |
---|
10140 | "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;; |
---|
10141 | "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;; |
---|
10142 | "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;; |
---|
10143 | "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;; |
---|
10144 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
10145 | "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; |
---|
10146 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
10147 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
10148 | "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;; |
---|
10149 | "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;; |
---|
10150 | "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;; |
---|
10151 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
10152 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
10153 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
10154 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
10155 | { (exit 1); exit 1; }; };; |
---|
10156 | esac |
---|
10157 | done |
---|
10158 | |
---|
10159 | # If the user did not use the arguments to specify the items to instantiate, |
---|
10160 | # then the envvar interface is used. Set only those that are not. |
---|
10161 | # We use the long form for the default assignment because of an extremely |
---|
10162 | # bizarre bug on SunOS 4.1.3. |
---|
10163 | if $ac_need_defaults; then |
---|
10164 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
10165 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
10166 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
10167 | fi |
---|
10168 | |
---|
10169 | # Have a temporary directory for convenience. Make it in the build tree |
---|
10170 | # simply because there is no reason to put it here, and in addition, |
---|
10171 | # creating and moving files from /tmp can sometimes cause problems. |
---|
10172 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
10173 | $debug || |
---|
10174 | { |
---|
10175 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
10176 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
10177 | } |
---|
10178 | |
---|
10179 | # Create a (secure) tmp directory for tmp files. |
---|
10180 | |
---|
10181 | { |
---|
10182 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
10183 | test -n "$tmp" && test -d "$tmp" |
---|
10184 | } || |
---|
10185 | { |
---|
10186 | tmp=./confstat$$-$RANDOM |
---|
10187 | (umask 077 && mkdir $tmp) |
---|
10188 | } || |
---|
10189 | { |
---|
10190 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
10191 | { (exit 1); exit 1; } |
---|
10192 | } |
---|
10193 | |
---|
10194 | _ACEOF |
---|
10195 | |
---|
10196 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10197 | |
---|
10198 | # |
---|
10199 | # CONFIG_FILES section. |
---|
10200 | # |
---|
10201 | |
---|
10202 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
10203 | # This happens for instance when ./config.status config.h |
---|
10204 | if test -n "\$CONFIG_FILES"; then |
---|
10205 | # Protect against being on the right side of a sed subst in config.status. |
---|
10206 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
10207 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
10208 | s,@SHELL@,$SHELL,;t t |
---|
10209 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
10210 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
10211 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
10212 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
10213 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
10214 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
10215 | s,@exec_prefix@,$exec_prefix,;t t |
---|
10216 | s,@prefix@,$prefix,;t t |
---|
10217 | s,@program_transform_name@,$program_transform_name,;t t |
---|
10218 | s,@bindir@,$bindir,;t t |
---|
10219 | s,@sbindir@,$sbindir,;t t |
---|
10220 | s,@libexecdir@,$libexecdir,;t t |
---|
10221 | s,@datadir@,$datadir,;t t |
---|
10222 | s,@sysconfdir@,$sysconfdir,;t t |
---|
10223 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
10224 | s,@localstatedir@,$localstatedir,;t t |
---|
10225 | s,@libdir@,$libdir,;t t |
---|
10226 | s,@includedir@,$includedir,;t t |
---|
10227 | s,@oldincludedir@,$oldincludedir,;t t |
---|
10228 | s,@infodir@,$infodir,;t t |
---|
10229 | s,@mandir@,$mandir,;t t |
---|
10230 | s,@build_alias@,$build_alias,;t t |
---|
10231 | s,@host_alias@,$host_alias,;t t |
---|
10232 | s,@target_alias@,$target_alias,;t t |
---|
10233 | s,@DEFS@,$DEFS,;t t |
---|
10234 | s,@ECHO_C@,$ECHO_C,;t t |
---|
10235 | s,@ECHO_N@,$ECHO_N,;t t |
---|
10236 | s,@ECHO_T@,$ECHO_T,;t t |
---|
10237 | s,@LIBS@,$LIBS,;t t |
---|
10238 | s,@build@,$build,;t t |
---|
10239 | s,@build_cpu@,$build_cpu,;t t |
---|
10240 | s,@build_vendor@,$build_vendor,;t t |
---|
10241 | s,@build_os@,$build_os,;t t |
---|
10242 | s,@host@,$host,;t t |
---|
10243 | s,@host_cpu@,$host_cpu,;t t |
---|
10244 | s,@host_vendor@,$host_vendor,;t t |
---|
10245 | s,@host_os@,$host_os,;t t |
---|
10246 | s,@target@,$target,;t t |
---|
10247 | s,@target_cpu@,$target_cpu,;t t |
---|
10248 | s,@target_vendor@,$target_vendor,;t t |
---|
10249 | s,@target_os@,$target_os,;t t |
---|
10250 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
10251 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
10252 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
10253 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
10254 | s,@PACKAGE@,$PACKAGE,;t t |
---|
10255 | s,@VERSION@,$VERSION,;t t |
---|
10256 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
10257 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
10258 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
10259 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
10260 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
10261 | s,@AMTAR@,$AMTAR,;t t |
---|
10262 | s,@install_sh@,$install_sh,;t t |
---|
10263 | s,@STRIP@,$STRIP,;t t |
---|
10264 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
10265 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
10266 | s,@mkdir_p@,$mkdir_p,;t t |
---|
10267 | s,@AWK@,$AWK,;t t |
---|
10268 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
10269 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
10270 | s,@CXX@,$CXX,;t t |
---|
10271 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
10272 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
10273 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
10274 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
10275 | s,@EXEEXT@,$EXEEXT,;t t |
---|
10276 | s,@OBJEXT@,$OBJEXT,;t t |
---|
10277 | s,@DEPDIR@,$DEPDIR,;t t |
---|
10278 | s,@am__include@,$am__include,;t t |
---|
10279 | s,@am__quote@,$am__quote,;t t |
---|
10280 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
10281 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
10282 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
10283 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
10284 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
10285 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
10286 | s,@RANLIB@,$RANLIB,;t t |
---|
10287 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
10288 | s,@CC@,$CC,;t t |
---|
10289 | s,@CFLAGS@,$CFLAGS,;t t |
---|
10290 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
10291 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
10292 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
10293 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
10294 | s,@CPP@,$CPP,;t t |
---|
10295 | s,@EGREP@,$EGREP,;t t |
---|
10296 | s,@DEBUG@,$DEBUG,;t t |
---|
10297 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
10298 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
10299 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
10300 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
10301 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
10302 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
10303 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
10304 | s,@GPROF@,$GPROF,;t t |
---|
10305 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
10306 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
10307 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
10308 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
10309 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
10310 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
10311 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
10312 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
10313 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
10314 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
10315 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
10316 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
10317 | CEOF |
---|
10318 | |
---|
10319 | _ACEOF |
---|
10320 | |
---|
10321 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10322 | # Split the substitutions into bite-sized pieces for seds with |
---|
10323 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
10324 | ac_max_sed_lines=48 |
---|
10325 | ac_sed_frag=1 # Number of current file. |
---|
10326 | ac_beg=1 # First line for current file. |
---|
10327 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
10328 | ac_more_lines=: |
---|
10329 | ac_sed_cmds= |
---|
10330 | while $ac_more_lines; do |
---|
10331 | if test $ac_beg -gt 1; then |
---|
10332 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
10333 | else |
---|
10334 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
10335 | fi |
---|
10336 | if test ! -s $tmp/subs.frag; then |
---|
10337 | ac_more_lines=false |
---|
10338 | else |
---|
10339 | # The purpose of the label and of the branching condition is to |
---|
10340 | # speed up the sed processing (if there are no `@' at all, there |
---|
10341 | # is no need to browse any of the substitutions). |
---|
10342 | # These are the two extra sed commands mentioned above. |
---|
10343 | (echo ':t |
---|
10344 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
10345 | if test -z "$ac_sed_cmds"; then |
---|
10346 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
10347 | else |
---|
10348 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
10349 | fi |
---|
10350 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
10351 | ac_beg=$ac_end |
---|
10352 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
10353 | fi |
---|
10354 | done |
---|
10355 | if test -z "$ac_sed_cmds"; then |
---|
10356 | ac_sed_cmds=cat |
---|
10357 | fi |
---|
10358 | fi # test -n "$CONFIG_FILES" |
---|
10359 | |
---|
10360 | _ACEOF |
---|
10361 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10362 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
10363 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
10364 | case $ac_file in |
---|
10365 | - | *:- | *:-:* ) # input from stdin |
---|
10366 | cat >$tmp/stdin |
---|
10367 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10368 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10369 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10370 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10371 | * ) ac_file_in=$ac_file.in ;; |
---|
10372 | esac |
---|
10373 | |
---|
10374 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
10375 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
10376 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10377 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
10378 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
10379 | X"$ac_file" : 'X\(/\)' \| \ |
---|
10380 | . : '\(.\)' 2>/dev/null || |
---|
10381 | echo X"$ac_file" | |
---|
10382 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10383 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10384 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10385 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10386 | s/.*/./; q'` |
---|
10387 | { if $as_mkdir_p; then |
---|
10388 | mkdir -p "$ac_dir" |
---|
10389 | else |
---|
10390 | as_dir="$ac_dir" |
---|
10391 | as_dirs= |
---|
10392 | while test ! -d "$as_dir"; do |
---|
10393 | as_dirs="$as_dir $as_dirs" |
---|
10394 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10395 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10396 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10397 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10398 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10399 | . : '\(.\)' 2>/dev/null || |
---|
10400 | echo X"$as_dir" | |
---|
10401 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10402 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10403 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10404 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10405 | s/.*/./; q'` |
---|
10406 | done |
---|
10407 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10408 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
10409 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
10410 | { (exit 1); exit 1; }; }; } |
---|
10411 | |
---|
10412 | ac_builddir=. |
---|
10413 | |
---|
10414 | if test "$ac_dir" != .; then |
---|
10415 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
10416 | # A "../" for each directory in $ac_dir_suffix. |
---|
10417 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
10418 | else |
---|
10419 | ac_dir_suffix= ac_top_builddir= |
---|
10420 | fi |
---|
10421 | |
---|
10422 | case $srcdir in |
---|
10423 | .) # No --srcdir option. We are building in place. |
---|
10424 | ac_srcdir=. |
---|
10425 | if test -z "$ac_top_builddir"; then |
---|
10426 | ac_top_srcdir=. |
---|
10427 | else |
---|
10428 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
10429 | fi ;; |
---|
10430 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
10431 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
10432 | ac_top_srcdir=$srcdir ;; |
---|
10433 | *) # Relative path. |
---|
10434 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
10435 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
10436 | esac |
---|
10437 | |
---|
10438 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
10439 | # the directories may not exist. |
---|
10440 | case `pwd` in |
---|
10441 | .) ac_abs_builddir="$ac_dir";; |
---|
10442 | *) |
---|
10443 | case "$ac_dir" in |
---|
10444 | .) ac_abs_builddir=`pwd`;; |
---|
10445 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
10446 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
10447 | esac;; |
---|
10448 | esac |
---|
10449 | case $ac_abs_builddir in |
---|
10450 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
10451 | *) |
---|
10452 | case ${ac_top_builddir}. in |
---|
10453 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
10454 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
10455 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
10456 | esac;; |
---|
10457 | esac |
---|
10458 | case $ac_abs_builddir in |
---|
10459 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
10460 | *) |
---|
10461 | case $ac_srcdir in |
---|
10462 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
10463 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
10464 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
10465 | esac;; |
---|
10466 | esac |
---|
10467 | case $ac_abs_builddir in |
---|
10468 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
10469 | *) |
---|
10470 | case $ac_top_srcdir in |
---|
10471 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
10472 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
10473 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
10474 | esac;; |
---|
10475 | esac |
---|
10476 | |
---|
10477 | |
---|
10478 | case $INSTALL in |
---|
10479 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
10480 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
10481 | esac |
---|
10482 | |
---|
10483 | if test x"$ac_file" != x-; then |
---|
10484 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
10485 | echo "$as_me: creating $ac_file" >&6;} |
---|
10486 | rm -f "$ac_file" |
---|
10487 | fi |
---|
10488 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
10489 | # use $as_me), people would be surprised to read: |
---|
10490 | # /* config.h. Generated by config.status. */ |
---|
10491 | if test x"$ac_file" = x-; then |
---|
10492 | configure_input= |
---|
10493 | else |
---|
10494 | configure_input="$ac_file. " |
---|
10495 | fi |
---|
10496 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
10497 | sed 's,.*/,,'` by configure." |
---|
10498 | |
---|
10499 | # First look for the input files in the build tree, otherwise in the |
---|
10500 | # src tree. |
---|
10501 | ac_file_inputs=`IFS=: |
---|
10502 | for f in $ac_file_in; do |
---|
10503 | case $f in |
---|
10504 | -) echo $tmp/stdin ;; |
---|
10505 | [\\/$]*) |
---|
10506 | # Absolute (can't be DOS-style, as IFS=:) |
---|
10507 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10508 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10509 | { (exit 1); exit 1; }; } |
---|
10510 | echo "$f";; |
---|
10511 | *) # Relative |
---|
10512 | if test -f "$f"; then |
---|
10513 | # Build tree |
---|
10514 | echo "$f" |
---|
10515 | elif test -f "$srcdir/$f"; then |
---|
10516 | # Source tree |
---|
10517 | echo "$srcdir/$f" |
---|
10518 | else |
---|
10519 | # /dev/null tree |
---|
10520 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10521 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10522 | { (exit 1); exit 1; }; } |
---|
10523 | fi;; |
---|
10524 | esac |
---|
10525 | done` || { (exit 1); exit 1; } |
---|
10526 | _ACEOF |
---|
10527 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10528 | sed "$ac_vpsub |
---|
10529 | $extrasub |
---|
10530 | _ACEOF |
---|
10531 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10532 | :t |
---|
10533 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
10534 | s,@configure_input@,$configure_input,;t t |
---|
10535 | s,@srcdir@,$ac_srcdir,;t t |
---|
10536 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
10537 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
10538 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
10539 | s,@builddir@,$ac_builddir,;t t |
---|
10540 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
10541 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
10542 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
10543 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
10544 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
10545 | rm -f $tmp/stdin |
---|
10546 | if test x"$ac_file" != x-; then |
---|
10547 | mv $tmp/out $ac_file |
---|
10548 | else |
---|
10549 | cat $tmp/out |
---|
10550 | rm -f $tmp/out |
---|
10551 | fi |
---|
10552 | |
---|
10553 | done |
---|
10554 | _ACEOF |
---|
10555 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10556 | |
---|
10557 | # |
---|
10558 | # CONFIG_HEADER section. |
---|
10559 | # |
---|
10560 | |
---|
10561 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
10562 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
10563 | # |
---|
10564 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
10565 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
10566 | ac_dB='[ ].*$,\1#\2' |
---|
10567 | ac_dC=' ' |
---|
10568 | ac_dD=',;t' |
---|
10569 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
10570 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
10571 | ac_uB='$,\1#\2define\3' |
---|
10572 | ac_uC=' ' |
---|
10573 | ac_uD=',;t' |
---|
10574 | |
---|
10575 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
10576 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
10577 | case $ac_file in |
---|
10578 | - | *:- | *:-:* ) # input from stdin |
---|
10579 | cat >$tmp/stdin |
---|
10580 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10581 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10582 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10583 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10584 | * ) ac_file_in=$ac_file.in ;; |
---|
10585 | esac |
---|
10586 | |
---|
10587 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
10588 | echo "$as_me: creating $ac_file" >&6;} |
---|
10589 | |
---|
10590 | # First look for the input files in the build tree, otherwise in the |
---|
10591 | # src tree. |
---|
10592 | ac_file_inputs=`IFS=: |
---|
10593 | for f in $ac_file_in; do |
---|
10594 | case $f in |
---|
10595 | -) echo $tmp/stdin ;; |
---|
10596 | [\\/$]*) |
---|
10597 | # Absolute (can't be DOS-style, as IFS=:) |
---|
10598 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10599 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10600 | { (exit 1); exit 1; }; } |
---|
10601 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
10602 | echo "$f";; |
---|
10603 | *) # Relative |
---|
10604 | if test -f "$f"; then |
---|
10605 | # Build tree |
---|
10606 | echo "$f" |
---|
10607 | elif test -f "$srcdir/$f"; then |
---|
10608 | # Source tree |
---|
10609 | echo "$srcdir/$f" |
---|
10610 | else |
---|
10611 | # /dev/null tree |
---|
10612 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10613 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10614 | { (exit 1); exit 1; }; } |
---|
10615 | fi;; |
---|
10616 | esac |
---|
10617 | done` || { (exit 1); exit 1; } |
---|
10618 | # Remove the trailing spaces. |
---|
10619 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
10620 | |
---|
10621 | _ACEOF |
---|
10622 | |
---|
10623 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
10624 | # `conftest.undefs', that substitutes the proper values into |
---|
10625 | # config.h.in to produce config.h. The first handles `#define' |
---|
10626 | # templates, and the second `#undef' templates. |
---|
10627 | # And first: Protect against being on the right side of a sed subst in |
---|
10628 | # config.status. Protect against being in an unquoted here document |
---|
10629 | # in config.status. |
---|
10630 | rm -f conftest.defines conftest.undefs |
---|
10631 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
10632 | # Putting comments in sed scripts is not portable. |
---|
10633 | # |
---|
10634 | # `end' is used to avoid that the second main sed command (meant for |
---|
10635 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
10636 | # See the Autoconf documentation for `clear'. |
---|
10637 | cat >confdef2sed.sed <<\_ACEOF |
---|
10638 | s/[\\&,]/\\&/g |
---|
10639 | s,[\\$`],\\&,g |
---|
10640 | t clear |
---|
10641 | : clear |
---|
10642 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
10643 | t end |
---|
10644 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
10645 | : end |
---|
10646 | _ACEOF |
---|
10647 | # If some macros were called several times there might be several times |
---|
10648 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
10649 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
10650 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
10651 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
10652 | rm -f confdef2sed.sed |
---|
10653 | |
---|
10654 | # This sed command replaces #undef with comments. This is necessary, for |
---|
10655 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
10656 | # on some systems where configure will not decide to define it. |
---|
10657 | cat >>conftest.undefs <<\_ACEOF |
---|
10658 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
10659 | _ACEOF |
---|
10660 | |
---|
10661 | # Break up conftest.defines because some shells have a limit on the size |
---|
10662 | # of here documents, and old seds have small limits too (100 cmds). |
---|
10663 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
10664 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
10665 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
10666 | echo ' :' >>$CONFIG_STATUS |
---|
10667 | rm -f conftest.tail |
---|
10668 | while grep . conftest.defines >/dev/null |
---|
10669 | do |
---|
10670 | # Write a limited-size here document to $tmp/defines.sed. |
---|
10671 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
10672 | # Speed up: don't consider the non `#define' lines. |
---|
10673 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
10674 | # Work around the forget-to-reset-the-flag bug. |
---|
10675 | echo 't clr' >>$CONFIG_STATUS |
---|
10676 | echo ': clr' >>$CONFIG_STATUS |
---|
10677 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
10678 | echo 'CEOF |
---|
10679 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
10680 | rm -f $tmp/in |
---|
10681 | mv $tmp/out $tmp/in |
---|
10682 | ' >>$CONFIG_STATUS |
---|
10683 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
10684 | rm -f conftest.defines |
---|
10685 | mv conftest.tail conftest.defines |
---|
10686 | done |
---|
10687 | rm -f conftest.defines |
---|
10688 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
10689 | echo >>$CONFIG_STATUS |
---|
10690 | |
---|
10691 | # Break up conftest.undefs because some shells have a limit on the size |
---|
10692 | # of here documents, and old seds have small limits too (100 cmds). |
---|
10693 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
10694 | rm -f conftest.tail |
---|
10695 | while grep . conftest.undefs >/dev/null |
---|
10696 | do |
---|
10697 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
10698 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
10699 | # Speed up: don't consider the non `#undef' |
---|
10700 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
10701 | # Work around the forget-to-reset-the-flag bug. |
---|
10702 | echo 't clr' >>$CONFIG_STATUS |
---|
10703 | echo ': clr' >>$CONFIG_STATUS |
---|
10704 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
10705 | echo 'CEOF |
---|
10706 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
10707 | rm -f $tmp/in |
---|
10708 | mv $tmp/out $tmp/in |
---|
10709 | ' >>$CONFIG_STATUS |
---|
10710 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
10711 | rm -f conftest.undefs |
---|
10712 | mv conftest.tail conftest.undefs |
---|
10713 | done |
---|
10714 | rm -f conftest.undefs |
---|
10715 | |
---|
10716 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10717 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
10718 | # use $as_me), people would be surprised to read: |
---|
10719 | # /* config.h. Generated by config.status. */ |
---|
10720 | if test x"$ac_file" = x-; then |
---|
10721 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
10722 | else |
---|
10723 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
10724 | fi |
---|
10725 | cat $tmp/in >>$tmp/config.h |
---|
10726 | rm -f $tmp/in |
---|
10727 | if test x"$ac_file" != x-; then |
---|
10728 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
10729 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
10730 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
10731 | else |
---|
10732 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
10733 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10734 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
10735 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
10736 | X"$ac_file" : 'X\(/\)' \| \ |
---|
10737 | . : '\(.\)' 2>/dev/null || |
---|
10738 | echo X"$ac_file" | |
---|
10739 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10740 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10741 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10742 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10743 | s/.*/./; q'` |
---|
10744 | { if $as_mkdir_p; then |
---|
10745 | mkdir -p "$ac_dir" |
---|
10746 | else |
---|
10747 | as_dir="$ac_dir" |
---|
10748 | as_dirs= |
---|
10749 | while test ! -d "$as_dir"; do |
---|
10750 | as_dirs="$as_dir $as_dirs" |
---|
10751 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10752 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10753 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10754 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10755 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10756 | . : '\(.\)' 2>/dev/null || |
---|
10757 | echo X"$as_dir" | |
---|
10758 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10759 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10760 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10761 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10762 | s/.*/./; q'` |
---|
10763 | done |
---|
10764 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10765 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
10766 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
10767 | { (exit 1); exit 1; }; }; } |
---|
10768 | |
---|
10769 | rm -f $ac_file |
---|
10770 | mv $tmp/config.h $ac_file |
---|
10771 | fi |
---|
10772 | else |
---|
10773 | cat $tmp/config.h |
---|
10774 | rm -f $tmp/config.h |
---|
10775 | fi |
---|
10776 | # Compute $ac_file's index in $config_headers. |
---|
10777 | _am_stamp_count=1 |
---|
10778 | for _am_header in $config_headers :; do |
---|
10779 | case $_am_header in |
---|
10780 | $ac_file | $ac_file:* ) |
---|
10781 | break ;; |
---|
10782 | * ) |
---|
10783 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
10784 | esac |
---|
10785 | done |
---|
10786 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
10787 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10788 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
10789 | X$ac_file : 'X\(//\)$' \| \ |
---|
10790 | X$ac_file : 'X\(/\)' \| \ |
---|
10791 | . : '\(.\)' 2>/dev/null || |
---|
10792 | echo X$ac_file | |
---|
10793 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10794 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10795 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10796 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10797 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
10798 | done |
---|
10799 | _ACEOF |
---|
10800 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10801 | |
---|
10802 | # |
---|
10803 | # CONFIG_COMMANDS section. |
---|
10804 | # |
---|
10805 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
10806 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
10807 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10808 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
10809 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10810 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
10811 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
10812 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
10813 | . : '\(.\)' 2>/dev/null || |
---|
10814 | echo X"$ac_dest" | |
---|
10815 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10816 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10817 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10818 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10819 | s/.*/./; q'` |
---|
10820 | { if $as_mkdir_p; then |
---|
10821 | mkdir -p "$ac_dir" |
---|
10822 | else |
---|
10823 | as_dir="$ac_dir" |
---|
10824 | as_dirs= |
---|
10825 | while test ! -d "$as_dir"; do |
---|
10826 | as_dirs="$as_dir $as_dirs" |
---|
10827 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10828 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10829 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10830 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10831 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10832 | . : '\(.\)' 2>/dev/null || |
---|
10833 | echo X"$as_dir" | |
---|
10834 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10835 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10836 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10837 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10838 | s/.*/./; q'` |
---|
10839 | done |
---|
10840 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10841 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
10842 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
10843 | { (exit 1); exit 1; }; }; } |
---|
10844 | |
---|
10845 | ac_builddir=. |
---|
10846 | |
---|
10847 | if test "$ac_dir" != .; then |
---|
10848 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
10849 | # A "../" for each directory in $ac_dir_suffix. |
---|
10850 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
10851 | else |
---|
10852 | ac_dir_suffix= ac_top_builddir= |
---|
10853 | fi |
---|
10854 | |
---|
10855 | case $srcdir in |
---|
10856 | .) # No --srcdir option. We are building in place. |
---|
10857 | ac_srcdir=. |
---|
10858 | if test -z "$ac_top_builddir"; then |
---|
10859 | ac_top_srcdir=. |
---|
10860 | else |
---|
10861 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
10862 | fi ;; |
---|
10863 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
10864 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
10865 | ac_top_srcdir=$srcdir ;; |
---|
10866 | *) # Relative path. |
---|
10867 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
10868 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
10869 | esac |
---|
10870 | |
---|
10871 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
10872 | # the directories may not exist. |
---|
10873 | case `pwd` in |
---|
10874 | .) ac_abs_builddir="$ac_dir";; |
---|
10875 | *) |
---|
10876 | case "$ac_dir" in |
---|
10877 | .) ac_abs_builddir=`pwd`;; |
---|
10878 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
10879 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
10880 | esac;; |
---|
10881 | esac |
---|
10882 | case $ac_abs_builddir in |
---|
10883 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
10884 | *) |
---|
10885 | case ${ac_top_builddir}. in |
---|
10886 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
10887 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
10888 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
10889 | esac;; |
---|
10890 | esac |
---|
10891 | case $ac_abs_builddir in |
---|
10892 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
10893 | *) |
---|
10894 | case $ac_srcdir in |
---|
10895 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
10896 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
10897 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
10898 | esac;; |
---|
10899 | esac |
---|
10900 | case $ac_abs_builddir in |
---|
10901 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
10902 | *) |
---|
10903 | case $ac_top_srcdir in |
---|
10904 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
10905 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
10906 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
10907 | esac;; |
---|
10908 | esac |
---|
10909 | |
---|
10910 | |
---|
10911 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
10912 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
10913 | case $ac_dest in |
---|
10914 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
10915 | # Strip MF so we end up with the name of the file. |
---|
10916 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
10917 | # Check whether this is an Automake generated Makefile or not. |
---|
10918 | # We used to match only the files named `Makefile.in', but |
---|
10919 | # some people rename them; so instead we look at the file content. |
---|
10920 | # Grep'ing the first line is not enough: some people post-process |
---|
10921 | # each Makefile.in and add a new line on top of each file to say so. |
---|
10922 | # So let's grep whole file. |
---|
10923 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
10924 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
10925 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10926 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
10927 | X"$mf" : 'X\(//\)$' \| \ |
---|
10928 | X"$mf" : 'X\(/\)' \| \ |
---|
10929 | . : '\(.\)' 2>/dev/null || |
---|
10930 | echo X"$mf" | |
---|
10931 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10932 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10933 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10934 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10935 | s/.*/./; q'` |
---|
10936 | else |
---|
10937 | continue |
---|
10938 | fi |
---|
10939 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
10940 | # Extract the definition of DEP_FILES from the Makefile without |
---|
10941 | # running `make'. |
---|
10942 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
10943 | test -z "$DEPDIR" && continue |
---|
10944 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
10945 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
10946 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
10947 | # We invoke sed twice because it is the simplest approach to |
---|
10948 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
10949 | for file in `sed -n ' |
---|
10950 | /^DEP_FILES = .*\\\\$/ { |
---|
10951 | s/^DEP_FILES = // |
---|
10952 | :loop |
---|
10953 | s/\\\\$// |
---|
10954 | p |
---|
10955 | n |
---|
10956 | /\\\\$/ b loop |
---|
10957 | p |
---|
10958 | } |
---|
10959 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
10960 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
10961 | # Make sure the directory exists. |
---|
10962 | test -f "$dirpart/$file" && continue |
---|
10963 | fdir=`(dirname "$file") 2>/dev/null || |
---|
10964 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10965 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
10966 | X"$file" : 'X\(//\)$' \| \ |
---|
10967 | X"$file" : 'X\(/\)' \| \ |
---|
10968 | . : '\(.\)' 2>/dev/null || |
---|
10969 | echo X"$file" | |
---|
10970 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10971 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10972 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10973 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10974 | s/.*/./; q'` |
---|
10975 | { if $as_mkdir_p; then |
---|
10976 | mkdir -p $dirpart/$fdir |
---|
10977 | else |
---|
10978 | as_dir=$dirpart/$fdir |
---|
10979 | as_dirs= |
---|
10980 | while test ! -d "$as_dir"; do |
---|
10981 | as_dirs="$as_dir $as_dirs" |
---|
10982 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10983 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10984 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10985 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10986 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10987 | . : '\(.\)' 2>/dev/null || |
---|
10988 | echo X"$as_dir" | |
---|
10989 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10990 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10991 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10992 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10993 | s/.*/./; q'` |
---|
10994 | done |
---|
10995 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10996 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
10997 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
10998 | { (exit 1); exit 1; }; }; } |
---|
10999 | |
---|
11000 | # echo "creating $dirpart/$file" |
---|
11001 | echo '# dummy' > "$dirpart/$file" |
---|
11002 | done |
---|
11003 | done |
---|
11004 | ;; |
---|
11005 | esac |
---|
11006 | done |
---|
11007 | _ACEOF |
---|
11008 | |
---|
11009 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11010 | |
---|
11011 | { (exit 0); exit 0; } |
---|
11012 | _ACEOF |
---|
11013 | chmod +x $CONFIG_STATUS |
---|
11014 | ac_clean_files=$ac_clean_files_save |
---|
11015 | |
---|
11016 | |
---|
11017 | # configure is writing to config.log, and then calls config.status. |
---|
11018 | # config.status does its own redirection, appending to config.log. |
---|
11019 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
11020 | # by configure, so config.status won't be able to write to it; its |
---|
11021 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
11022 | # effectively closing config.log, so it can be properly (re)opened and |
---|
11023 | # appended to by config.status. When coming back to configure, we |
---|
11024 | # need to make the FD available again. |
---|
11025 | if test "$no_create" != yes; then |
---|
11026 | ac_cs_success=: |
---|
11027 | ac_config_status_args= |
---|
11028 | test "$silent" = yes && |
---|
11029 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
11030 | exec 5>/dev/null |
---|
11031 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
11032 | exec 5>>config.log |
---|
11033 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
11034 | # would make configure fail if this is the last instruction. |
---|
11035 | $ac_cs_success || { (exit 1); exit 1; } |
---|
11036 | fi |
---|
11037 | |
---|