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-sub-projects also builds the subProjects while make from srcdir |
---|
882 | |
---|
883 | Some influential environment variables: |
---|
884 | CXX C++ compiler command |
---|
885 | CXXFLAGS C++ compiler flags |
---|
886 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
887 | nonstandard directory <lib dir> |
---|
888 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
889 | headers in a nonstandard directory <include dir> |
---|
890 | CC C compiler command |
---|
891 | CFLAGS C compiler flags |
---|
892 | CPP C preprocessor |
---|
893 | |
---|
894 | Use these variables to override the choices made by `configure' or to help |
---|
895 | it to find libraries and programs with nonstandard names/locations. |
---|
896 | |
---|
897 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
898 | _ACEOF |
---|
899 | fi |
---|
900 | |
---|
901 | if test "$ac_init_help" = "recursive"; then |
---|
902 | # If there are subdirs, report their specific --help. |
---|
903 | ac_popdir=`pwd` |
---|
904 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
905 | test -d $ac_dir || continue |
---|
906 | ac_builddir=. |
---|
907 | |
---|
908 | if test "$ac_dir" != .; then |
---|
909 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
910 | # A "../" for each directory in $ac_dir_suffix. |
---|
911 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
912 | else |
---|
913 | ac_dir_suffix= ac_top_builddir= |
---|
914 | fi |
---|
915 | |
---|
916 | case $srcdir in |
---|
917 | .) # No --srcdir option. We are building in place. |
---|
918 | ac_srcdir=. |
---|
919 | if test -z "$ac_top_builddir"; then |
---|
920 | ac_top_srcdir=. |
---|
921 | else |
---|
922 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
923 | fi ;; |
---|
924 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
925 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
926 | ac_top_srcdir=$srcdir ;; |
---|
927 | *) # Relative path. |
---|
928 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
929 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
930 | esac |
---|
931 | |
---|
932 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
933 | # the directories may not exist. |
---|
934 | case `pwd` in |
---|
935 | .) ac_abs_builddir="$ac_dir";; |
---|
936 | *) |
---|
937 | case "$ac_dir" in |
---|
938 | .) ac_abs_builddir=`pwd`;; |
---|
939 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
940 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
941 | esac;; |
---|
942 | esac |
---|
943 | case $ac_abs_builddir in |
---|
944 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
945 | *) |
---|
946 | case ${ac_top_builddir}. in |
---|
947 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
948 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
949 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
950 | esac;; |
---|
951 | esac |
---|
952 | case $ac_abs_builddir in |
---|
953 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
954 | *) |
---|
955 | case $ac_srcdir in |
---|
956 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
957 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
958 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
959 | esac;; |
---|
960 | esac |
---|
961 | case $ac_abs_builddir in |
---|
962 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
963 | *) |
---|
964 | case $ac_top_srcdir in |
---|
965 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
966 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
967 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
968 | esac;; |
---|
969 | esac |
---|
970 | |
---|
971 | cd $ac_dir |
---|
972 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
973 | if test -f $ac_srcdir/configure.gnu; then |
---|
974 | echo |
---|
975 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
976 | elif test -f $ac_srcdir/configure; then |
---|
977 | echo |
---|
978 | $SHELL $ac_srcdir/configure --help=recursive |
---|
979 | elif test -f $ac_srcdir/configure.ac || |
---|
980 | test -f $ac_srcdir/configure.in; then |
---|
981 | echo |
---|
982 | $ac_configure --help |
---|
983 | else |
---|
984 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
985 | fi |
---|
986 | cd $ac_popdir |
---|
987 | done |
---|
988 | fi |
---|
989 | |
---|
990 | test -n "$ac_init_help" && exit 0 |
---|
991 | if $ac_init_version; then |
---|
992 | cat <<\_ACEOF |
---|
993 | orxonox configure 0.3.1_alpha |
---|
994 | generated by GNU Autoconf 2.59 |
---|
995 | |
---|
996 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
997 | This configure script is free software; the Free Software Foundation |
---|
998 | gives unlimited permission to copy, distribute and modify it. |
---|
999 | _ACEOF |
---|
1000 | exit 0 |
---|
1001 | fi |
---|
1002 | exec 5>config.log |
---|
1003 | cat >&5 <<_ACEOF |
---|
1004 | This file contains any messages produced by compilers while |
---|
1005 | running configure, to aid debugging if configure makes a mistake. |
---|
1006 | |
---|
1007 | It was created by orxonox $as_me 0.3.1_alpha, which was |
---|
1008 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1009 | |
---|
1010 | $ $0 $@ |
---|
1011 | |
---|
1012 | _ACEOF |
---|
1013 | { |
---|
1014 | cat <<_ASUNAME |
---|
1015 | ## --------- ## |
---|
1016 | ## Platform. ## |
---|
1017 | ## --------- ## |
---|
1018 | |
---|
1019 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1020 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1021 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1022 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1023 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1024 | |
---|
1025 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1026 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1027 | |
---|
1028 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1029 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1030 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1031 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1032 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1033 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1034 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1035 | |
---|
1036 | _ASUNAME |
---|
1037 | |
---|
1038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1039 | for as_dir in $PATH |
---|
1040 | do |
---|
1041 | IFS=$as_save_IFS |
---|
1042 | test -z "$as_dir" && as_dir=. |
---|
1043 | echo "PATH: $as_dir" |
---|
1044 | done |
---|
1045 | |
---|
1046 | } >&5 |
---|
1047 | |
---|
1048 | cat >&5 <<_ACEOF |
---|
1049 | |
---|
1050 | |
---|
1051 | ## ----------- ## |
---|
1052 | ## Core tests. ## |
---|
1053 | ## ----------- ## |
---|
1054 | |
---|
1055 | _ACEOF |
---|
1056 | |
---|
1057 | |
---|
1058 | # Keep a trace of the command line. |
---|
1059 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1060 | # Strip out --silent because we don't want to record it for future runs. |
---|
1061 | # Also quote any args containing shell meta-characters. |
---|
1062 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1063 | ac_configure_args= |
---|
1064 | ac_configure_args0= |
---|
1065 | ac_configure_args1= |
---|
1066 | ac_sep= |
---|
1067 | ac_must_keep_next=false |
---|
1068 | for ac_pass in 1 2 |
---|
1069 | do |
---|
1070 | for ac_arg |
---|
1071 | do |
---|
1072 | case $ac_arg in |
---|
1073 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1074 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1075 | | -silent | --silent | --silen | --sile | --sil) |
---|
1076 | continue ;; |
---|
1077 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1078 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1079 | esac |
---|
1080 | case $ac_pass in |
---|
1081 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1082 | 2) |
---|
1083 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1084 | if test $ac_must_keep_next = true; then |
---|
1085 | ac_must_keep_next=false # Got value, back to normal. |
---|
1086 | else |
---|
1087 | case $ac_arg in |
---|
1088 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1089 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1090 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1091 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1092 | case "$ac_configure_args0 " in |
---|
1093 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1094 | esac |
---|
1095 | ;; |
---|
1096 | -* ) ac_must_keep_next=true ;; |
---|
1097 | esac |
---|
1098 | fi |
---|
1099 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1100 | # Get rid of the leading space. |
---|
1101 | ac_sep=" " |
---|
1102 | ;; |
---|
1103 | esac |
---|
1104 | done |
---|
1105 | done |
---|
1106 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1107 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1108 | |
---|
1109 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1110 | # config.log. We remove comments because anyway the quotes in there |
---|
1111 | # would cause problems or look ugly. |
---|
1112 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1113 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1114 | trap 'exit_status=$? |
---|
1115 | # Save into config.log some information that might help in debugging. |
---|
1116 | { |
---|
1117 | echo |
---|
1118 | |
---|
1119 | cat <<\_ASBOX |
---|
1120 | ## ---------------- ## |
---|
1121 | ## Cache variables. ## |
---|
1122 | ## ---------------- ## |
---|
1123 | _ASBOX |
---|
1124 | echo |
---|
1125 | # The following way of writing the cache mishandles newlines in values, |
---|
1126 | { |
---|
1127 | (set) 2>&1 | |
---|
1128 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1129 | *ac_space=\ *) |
---|
1130 | sed -n \ |
---|
1131 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1132 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1133 | ;; |
---|
1134 | *) |
---|
1135 | sed -n \ |
---|
1136 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1137 | ;; |
---|
1138 | esac; |
---|
1139 | } |
---|
1140 | echo |
---|
1141 | |
---|
1142 | cat <<\_ASBOX |
---|
1143 | ## ----------------- ## |
---|
1144 | ## Output variables. ## |
---|
1145 | ## ----------------- ## |
---|
1146 | _ASBOX |
---|
1147 | echo |
---|
1148 | for ac_var in $ac_subst_vars |
---|
1149 | do |
---|
1150 | eval ac_val=$`echo $ac_var` |
---|
1151 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1152 | done | sort |
---|
1153 | echo |
---|
1154 | |
---|
1155 | if test -n "$ac_subst_files"; then |
---|
1156 | cat <<\_ASBOX |
---|
1157 | ## ------------- ## |
---|
1158 | ## Output files. ## |
---|
1159 | ## ------------- ## |
---|
1160 | _ASBOX |
---|
1161 | echo |
---|
1162 | for ac_var in $ac_subst_files |
---|
1163 | do |
---|
1164 | eval ac_val=$`echo $ac_var` |
---|
1165 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1166 | done | sort |
---|
1167 | echo |
---|
1168 | fi |
---|
1169 | |
---|
1170 | if test -s confdefs.h; then |
---|
1171 | cat <<\_ASBOX |
---|
1172 | ## ----------- ## |
---|
1173 | ## confdefs.h. ## |
---|
1174 | ## ----------- ## |
---|
1175 | _ASBOX |
---|
1176 | echo |
---|
1177 | sed "/^$/d" confdefs.h | sort |
---|
1178 | echo |
---|
1179 | fi |
---|
1180 | test "$ac_signal" != 0 && |
---|
1181 | echo "$as_me: caught signal $ac_signal" |
---|
1182 | echo "$as_me: exit $exit_status" |
---|
1183 | } >&5 |
---|
1184 | rm -f core *.core && |
---|
1185 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1186 | exit $exit_status |
---|
1187 | ' 0 |
---|
1188 | for ac_signal in 1 2 13 15; do |
---|
1189 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1190 | done |
---|
1191 | ac_signal=0 |
---|
1192 | |
---|
1193 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1194 | rm -rf conftest* confdefs.h |
---|
1195 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1196 | echo >confdefs.h |
---|
1197 | |
---|
1198 | # Predefined preprocessor variables. |
---|
1199 | |
---|
1200 | cat >>confdefs.h <<_ACEOF |
---|
1201 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1202 | _ACEOF |
---|
1203 | |
---|
1204 | |
---|
1205 | cat >>confdefs.h <<_ACEOF |
---|
1206 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1207 | _ACEOF |
---|
1208 | |
---|
1209 | |
---|
1210 | cat >>confdefs.h <<_ACEOF |
---|
1211 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1212 | _ACEOF |
---|
1213 | |
---|
1214 | |
---|
1215 | cat >>confdefs.h <<_ACEOF |
---|
1216 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1217 | _ACEOF |
---|
1218 | |
---|
1219 | |
---|
1220 | cat >>confdefs.h <<_ACEOF |
---|
1221 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1222 | _ACEOF |
---|
1223 | |
---|
1224 | |
---|
1225 | # Let the site file select an alternate cache file if it wants to. |
---|
1226 | # Prefer explicitly selected file to automatically selected ones. |
---|
1227 | if test -z "$CONFIG_SITE"; then |
---|
1228 | if test "x$prefix" != xNONE; then |
---|
1229 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1230 | else |
---|
1231 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1232 | fi |
---|
1233 | fi |
---|
1234 | for ac_site_file in $CONFIG_SITE; do |
---|
1235 | if test -r "$ac_site_file"; then |
---|
1236 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1237 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1238 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1239 | . "$ac_site_file" |
---|
1240 | fi |
---|
1241 | done |
---|
1242 | |
---|
1243 | if test -r "$cache_file"; then |
---|
1244 | # Some versions of bash will fail to source /dev/null (special |
---|
1245 | # files actually), so we avoid doing that. |
---|
1246 | if test -f "$cache_file"; then |
---|
1247 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1248 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1249 | case $cache_file in |
---|
1250 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1251 | *) . ./$cache_file;; |
---|
1252 | esac |
---|
1253 | fi |
---|
1254 | else |
---|
1255 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1256 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1257 | >$cache_file |
---|
1258 | fi |
---|
1259 | |
---|
1260 | # Check that the precious variables saved in the cache have kept the same |
---|
1261 | # value. |
---|
1262 | ac_cache_corrupted=false |
---|
1263 | for ac_var in `(set) 2>&1 | |
---|
1264 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1265 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1266 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1267 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1268 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1269 | case $ac_old_set,$ac_new_set in |
---|
1270 | set,) |
---|
1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1272 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1273 | ac_cache_corrupted=: ;; |
---|
1274 | ,set) |
---|
1275 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1276 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1277 | ac_cache_corrupted=: ;; |
---|
1278 | ,);; |
---|
1279 | *) |
---|
1280 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1281 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1282 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1283 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1284 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1285 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1286 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1287 | ac_cache_corrupted=: |
---|
1288 | fi;; |
---|
1289 | esac |
---|
1290 | # Pass precious variables to config.status. |
---|
1291 | if test "$ac_new_set" = set; then |
---|
1292 | case $ac_new_val in |
---|
1293 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1294 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1295 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1296 | esac |
---|
1297 | case " $ac_configure_args " in |
---|
1298 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1299 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1300 | esac |
---|
1301 | fi |
---|
1302 | done |
---|
1303 | if $ac_cache_corrupted; then |
---|
1304 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1305 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1306 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1307 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1308 | { (exit 1); exit 1; }; } |
---|
1309 | fi |
---|
1310 | |
---|
1311 | ac_ext=c |
---|
1312 | ac_cpp='$CPP $CPPFLAGS' |
---|
1313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1316 | |
---|
1317 | |
---|
1318 | |
---|
1319 | |
---|
1320 | |
---|
1321 | |
---|
1322 | |
---|
1323 | |
---|
1324 | |
---|
1325 | |
---|
1326 | |
---|
1327 | |
---|
1328 | |
---|
1329 | |
---|
1330 | |
---|
1331 | |
---|
1332 | |
---|
1333 | |
---|
1334 | |
---|
1335 | |
---|
1336 | |
---|
1337 | |
---|
1338 | |
---|
1339 | |
---|
1340 | |
---|
1341 | |
---|
1342 | |
---|
1343 | |
---|
1344 | ## Detect the canonical host and target build environment. |
---|
1345 | ac_aux_dir= |
---|
1346 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1347 | if test -f $ac_dir/install-sh; then |
---|
1348 | ac_aux_dir=$ac_dir |
---|
1349 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1350 | break |
---|
1351 | elif test -f $ac_dir/install.sh; then |
---|
1352 | ac_aux_dir=$ac_dir |
---|
1353 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1354 | break |
---|
1355 | elif test -f $ac_dir/shtool; then |
---|
1356 | ac_aux_dir=$ac_dir |
---|
1357 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1358 | break |
---|
1359 | fi |
---|
1360 | done |
---|
1361 | if test -z "$ac_aux_dir"; then |
---|
1362 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1363 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1364 | { (exit 1); exit 1; }; } |
---|
1365 | fi |
---|
1366 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1367 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1368 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1369 | |
---|
1370 | # Make sure we can run config.sub. |
---|
1371 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1372 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1373 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1374 | { (exit 1); exit 1; }; } |
---|
1375 | |
---|
1376 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1377 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1378 | if test "${ac_cv_build+set}" = set; then |
---|
1379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1380 | else |
---|
1381 | ac_cv_build_alias=$build_alias |
---|
1382 | test -z "$ac_cv_build_alias" && |
---|
1383 | ac_cv_build_alias=`$ac_config_guess` |
---|
1384 | test -z "$ac_cv_build_alias" && |
---|
1385 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1386 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1387 | { (exit 1); exit 1; }; } |
---|
1388 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1389 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1390 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1391 | { (exit 1); exit 1; }; } |
---|
1392 | |
---|
1393 | fi |
---|
1394 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1395 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1396 | build=$ac_cv_build |
---|
1397 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1398 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1399 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1400 | |
---|
1401 | |
---|
1402 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1403 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1404 | if test "${ac_cv_host+set}" = set; then |
---|
1405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1406 | else |
---|
1407 | ac_cv_host_alias=$host_alias |
---|
1408 | test -z "$ac_cv_host_alias" && |
---|
1409 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1410 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1411 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1412 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1413 | { (exit 1); exit 1; }; } |
---|
1414 | |
---|
1415 | fi |
---|
1416 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1417 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1418 | host=$ac_cv_host |
---|
1419 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1420 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1421 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1422 | |
---|
1423 | |
---|
1424 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1425 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1426 | if test "${ac_cv_target+set}" = set; then |
---|
1427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1428 | else |
---|
1429 | ac_cv_target_alias=$target_alias |
---|
1430 | test "x$ac_cv_target_alias" = "x" && |
---|
1431 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1432 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1433 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1434 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1435 | { (exit 1); exit 1; }; } |
---|
1436 | |
---|
1437 | fi |
---|
1438 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1439 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1440 | target=$ac_cv_target |
---|
1441 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1442 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1443 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1444 | |
---|
1445 | |
---|
1446 | # The aliases save the names the user supplied, while $host etc. |
---|
1447 | # will get canonicalized. |
---|
1448 | test -n "$target_alias" && |
---|
1449 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1450 | NONENONEs,x,x, && |
---|
1451 | program_prefix=${target_alias}- |
---|
1452 | |
---|
1453 | am__api_version="1.8" |
---|
1454 | # Find a good install program. We prefer a C program (faster), |
---|
1455 | # so one script is as good as another. But avoid the broken or |
---|
1456 | # incompatible versions: |
---|
1457 | # SysV /etc/install, /usr/sbin/install |
---|
1458 | # SunOS /usr/etc/install |
---|
1459 | # IRIX /sbin/install |
---|
1460 | # AIX /bin/install |
---|
1461 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1462 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1463 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1464 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1465 | # OS/2's system install, which has a completely different semantic |
---|
1466 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1467 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1468 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1469 | if test -z "$INSTALL"; then |
---|
1470 | if test "${ac_cv_path_install+set}" = set; then |
---|
1471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1472 | else |
---|
1473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1474 | for as_dir in $PATH |
---|
1475 | do |
---|
1476 | IFS=$as_save_IFS |
---|
1477 | test -z "$as_dir" && as_dir=. |
---|
1478 | # Account for people who put trailing slashes in PATH elements. |
---|
1479 | case $as_dir/ in |
---|
1480 | ./ | .// | /cC/* | \ |
---|
1481 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1482 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1483 | /usr/ucb/* ) ;; |
---|
1484 | *) |
---|
1485 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1486 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1487 | # by default. |
---|
1488 | for ac_prog in ginstall scoinst install; do |
---|
1489 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1490 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1491 | if test $ac_prog = install && |
---|
1492 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1493 | # AIX install. It has an incompatible calling convention. |
---|
1494 | : |
---|
1495 | elif test $ac_prog = install && |
---|
1496 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1497 | # program-specific install script used by HP pwplus--don't use. |
---|
1498 | : |
---|
1499 | else |
---|
1500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1501 | break 3 |
---|
1502 | fi |
---|
1503 | fi |
---|
1504 | done |
---|
1505 | done |
---|
1506 | ;; |
---|
1507 | esac |
---|
1508 | done |
---|
1509 | |
---|
1510 | |
---|
1511 | fi |
---|
1512 | if test "${ac_cv_path_install+set}" = set; then |
---|
1513 | INSTALL=$ac_cv_path_install |
---|
1514 | else |
---|
1515 | # As a last resort, use the slow shell script. We don't cache a |
---|
1516 | # path for INSTALL within a source directory, because that will |
---|
1517 | # break other packages using the cache if that directory is |
---|
1518 | # removed, or if the path is relative. |
---|
1519 | INSTALL=$ac_install_sh |
---|
1520 | fi |
---|
1521 | fi |
---|
1522 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1523 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1524 | |
---|
1525 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1526 | # It thinks the first close brace ends the variable substitution. |
---|
1527 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1528 | |
---|
1529 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1530 | |
---|
1531 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1532 | |
---|
1533 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1534 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1535 | # Just in case |
---|
1536 | sleep 1 |
---|
1537 | echo timestamp > conftest.file |
---|
1538 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1539 | # arguments. Must try -L first in case configure is actually a |
---|
1540 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1541 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1542 | # directory). |
---|
1543 | if ( |
---|
1544 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1545 | if test "$*" = "X"; then |
---|
1546 | # -L didn't work. |
---|
1547 | set X `ls -t $srcdir/configure conftest.file` |
---|
1548 | fi |
---|
1549 | rm -f conftest.file |
---|
1550 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1551 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1552 | |
---|
1553 | # If neither matched, then we have a broken ls. This can happen |
---|
1554 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1555 | # broken ls alias from the environment. This has actually |
---|
1556 | # happened. Such a system could not be considered "sane". |
---|
1557 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1558 | alias in your environment" >&5 |
---|
1559 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1560 | alias in your environment" >&2;} |
---|
1561 | { (exit 1); exit 1; }; } |
---|
1562 | fi |
---|
1563 | |
---|
1564 | test "$2" = conftest.file |
---|
1565 | ) |
---|
1566 | then |
---|
1567 | # Ok. |
---|
1568 | : |
---|
1569 | else |
---|
1570 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1571 | Check your system clock" >&5 |
---|
1572 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1573 | Check your system clock" >&2;} |
---|
1574 | { (exit 1); exit 1; }; } |
---|
1575 | fi |
---|
1576 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1577 | echo "${ECHO_T}yes" >&6 |
---|
1578 | test "$program_prefix" != NONE && |
---|
1579 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1580 | # Use a double $ so make ignores it. |
---|
1581 | test "$program_suffix" != NONE && |
---|
1582 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1583 | # Double any \ or $. echo might interpret backslashes. |
---|
1584 | # By default was `s,x,x', remove it if useless. |
---|
1585 | cat <<\_ACEOF >conftest.sed |
---|
1586 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1587 | _ACEOF |
---|
1588 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1589 | rm conftest.sed |
---|
1590 | |
---|
1591 | # expand $ac_aux_dir to an absolute path |
---|
1592 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1593 | |
---|
1594 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1595 | # Use eval to expand $SHELL |
---|
1596 | if eval "$MISSING --run true"; then |
---|
1597 | am_missing_run="$MISSING --run " |
---|
1598 | else |
---|
1599 | am_missing_run= |
---|
1600 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1601 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1602 | fi |
---|
1603 | |
---|
1604 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1605 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
1606 | # argument. Indeed, we sometimes output rules like |
---|
1607 | # $(mkdir_p) $(somedir) |
---|
1608 | # where $(somedir) is conditionally defined. |
---|
1609 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
1610 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
1611 | mkdir_p='mkdir -p -- .' |
---|
1612 | else |
---|
1613 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1614 | # recognize any option. It will interpret all options as |
---|
1615 | # directories to create, and then abort because `.' already |
---|
1616 | # exists. |
---|
1617 | for d in ./-p ./--version; |
---|
1618 | do |
---|
1619 | test -d $d && rmdir $d |
---|
1620 | done |
---|
1621 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1622 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1623 | mkdir_p='$(mkinstalldirs)' |
---|
1624 | else |
---|
1625 | mkdir_p='$(install_sh) -d' |
---|
1626 | fi |
---|
1627 | fi |
---|
1628 | |
---|
1629 | for ac_prog in gawk mawk nawk awk |
---|
1630 | do |
---|
1631 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1632 | set dummy $ac_prog; ac_word=$2 |
---|
1633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1635 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1637 | else |
---|
1638 | if test -n "$AWK"; then |
---|
1639 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1640 | else |
---|
1641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1642 | for as_dir in $PATH |
---|
1643 | do |
---|
1644 | IFS=$as_save_IFS |
---|
1645 | test -z "$as_dir" && as_dir=. |
---|
1646 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1647 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1648 | ac_cv_prog_AWK="$ac_prog" |
---|
1649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1650 | break 2 |
---|
1651 | fi |
---|
1652 | done |
---|
1653 | done |
---|
1654 | |
---|
1655 | fi |
---|
1656 | fi |
---|
1657 | AWK=$ac_cv_prog_AWK |
---|
1658 | if test -n "$AWK"; then |
---|
1659 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1660 | echo "${ECHO_T}$AWK" >&6 |
---|
1661 | else |
---|
1662 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1663 | echo "${ECHO_T}no" >&6 |
---|
1664 | fi |
---|
1665 | |
---|
1666 | test -n "$AWK" && break |
---|
1667 | done |
---|
1668 | |
---|
1669 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1670 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1671 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1672 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1674 | else |
---|
1675 | cat >conftest.make <<\_ACEOF |
---|
1676 | all: |
---|
1677 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1678 | _ACEOF |
---|
1679 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1680 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1681 | if test -n "$ac_maketemp"; then |
---|
1682 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1683 | else |
---|
1684 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1685 | fi |
---|
1686 | rm -f conftest.make |
---|
1687 | fi |
---|
1688 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1689 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1690 | echo "${ECHO_T}yes" >&6 |
---|
1691 | SET_MAKE= |
---|
1692 | else |
---|
1693 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1694 | echo "${ECHO_T}no" >&6 |
---|
1695 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1696 | fi |
---|
1697 | |
---|
1698 | rm -rf .tst 2>/dev/null |
---|
1699 | mkdir .tst 2>/dev/null |
---|
1700 | if test -d .tst; then |
---|
1701 | am__leading_dot=. |
---|
1702 | else |
---|
1703 | am__leading_dot=_ |
---|
1704 | fi |
---|
1705 | rmdir .tst 2>/dev/null |
---|
1706 | |
---|
1707 | # test to see if srcdir already configured |
---|
1708 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1709 | test -f $srcdir/config.status; then |
---|
1710 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1711 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1712 | { (exit 1); exit 1; }; } |
---|
1713 | fi |
---|
1714 | |
---|
1715 | # test whether we have cygpath |
---|
1716 | if test -z "$CYGPATH_W"; then |
---|
1717 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1718 | CYGPATH_W='cygpath -w' |
---|
1719 | else |
---|
1720 | CYGPATH_W=echo |
---|
1721 | fi |
---|
1722 | fi |
---|
1723 | |
---|
1724 | |
---|
1725 | # Define the identity of the package. |
---|
1726 | PACKAGE='orxonox' |
---|
1727 | VERSION='0.3.1_alpha' |
---|
1728 | |
---|
1729 | |
---|
1730 | cat >>confdefs.h <<_ACEOF |
---|
1731 | #define PACKAGE "$PACKAGE" |
---|
1732 | _ACEOF |
---|
1733 | |
---|
1734 | |
---|
1735 | cat >>confdefs.h <<_ACEOF |
---|
1736 | #define VERSION "$VERSION" |
---|
1737 | _ACEOF |
---|
1738 | |
---|
1739 | # Some tools Automake needs. |
---|
1740 | |
---|
1741 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1742 | |
---|
1743 | |
---|
1744 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1745 | |
---|
1746 | |
---|
1747 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1748 | |
---|
1749 | |
---|
1750 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1751 | |
---|
1752 | |
---|
1753 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1754 | |
---|
1755 | |
---|
1756 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1757 | |
---|
1758 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1759 | |
---|
1760 | # Installed binaries are usually stripped using `strip' when the user |
---|
1761 | # run `make install-strip'. However `strip' might not be the right |
---|
1762 | # tool to use in cross-compilation environments, therefore Automake |
---|
1763 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1764 | if test "$cross_compiling" != no; then |
---|
1765 | if test -n "$ac_tool_prefix"; then |
---|
1766 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1767 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1768 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1770 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1772 | else |
---|
1773 | if test -n "$STRIP"; then |
---|
1774 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1775 | else |
---|
1776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1777 | for as_dir in $PATH |
---|
1778 | do |
---|
1779 | IFS=$as_save_IFS |
---|
1780 | test -z "$as_dir" && as_dir=. |
---|
1781 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1782 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1783 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1785 | break 2 |
---|
1786 | fi |
---|
1787 | done |
---|
1788 | done |
---|
1789 | |
---|
1790 | fi |
---|
1791 | fi |
---|
1792 | STRIP=$ac_cv_prog_STRIP |
---|
1793 | if test -n "$STRIP"; then |
---|
1794 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1795 | echo "${ECHO_T}$STRIP" >&6 |
---|
1796 | else |
---|
1797 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1798 | echo "${ECHO_T}no" >&6 |
---|
1799 | fi |
---|
1800 | |
---|
1801 | fi |
---|
1802 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1803 | ac_ct_STRIP=$STRIP |
---|
1804 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1805 | set dummy strip; ac_word=$2 |
---|
1806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1808 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1810 | else |
---|
1811 | if test -n "$ac_ct_STRIP"; then |
---|
1812 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1813 | else |
---|
1814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1815 | for as_dir in $PATH |
---|
1816 | do |
---|
1817 | IFS=$as_save_IFS |
---|
1818 | test -z "$as_dir" && as_dir=. |
---|
1819 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1821 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1823 | break 2 |
---|
1824 | fi |
---|
1825 | done |
---|
1826 | done |
---|
1827 | |
---|
1828 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1829 | fi |
---|
1830 | fi |
---|
1831 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1832 | if test -n "$ac_ct_STRIP"; then |
---|
1833 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1834 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1835 | else |
---|
1836 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1837 | echo "${ECHO_T}no" >&6 |
---|
1838 | fi |
---|
1839 | |
---|
1840 | STRIP=$ac_ct_STRIP |
---|
1841 | else |
---|
1842 | STRIP="$ac_cv_prog_STRIP" |
---|
1843 | fi |
---|
1844 | |
---|
1845 | fi |
---|
1846 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1847 | |
---|
1848 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1849 | # some platforms. |
---|
1850 | |
---|
1851 | |
---|
1852 | |
---|
1853 | |
---|
1854 | |
---|
1855 | ac_config_headers="$ac_config_headers config.h" |
---|
1856 | |
---|
1857 | |
---|
1858 | ######################### |
---|
1859 | ## Checks for programs ## |
---|
1860 | ######################### |
---|
1861 | ac_ext=cc |
---|
1862 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1863 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1864 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1865 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1866 | if test -n "$ac_tool_prefix"; then |
---|
1867 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1868 | do |
---|
1869 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1870 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1871 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1873 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1875 | else |
---|
1876 | if test -n "$CXX"; then |
---|
1877 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1878 | else |
---|
1879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1880 | for as_dir in $PATH |
---|
1881 | do |
---|
1882 | IFS=$as_save_IFS |
---|
1883 | test -z "$as_dir" && as_dir=. |
---|
1884 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1885 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1886 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1888 | break 2 |
---|
1889 | fi |
---|
1890 | done |
---|
1891 | done |
---|
1892 | |
---|
1893 | fi |
---|
1894 | fi |
---|
1895 | CXX=$ac_cv_prog_CXX |
---|
1896 | if test -n "$CXX"; then |
---|
1897 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1898 | echo "${ECHO_T}$CXX" >&6 |
---|
1899 | else |
---|
1900 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1901 | echo "${ECHO_T}no" >&6 |
---|
1902 | fi |
---|
1903 | |
---|
1904 | test -n "$CXX" && break |
---|
1905 | done |
---|
1906 | fi |
---|
1907 | if test -z "$CXX"; then |
---|
1908 | ac_ct_CXX=$CXX |
---|
1909 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1910 | do |
---|
1911 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1912 | set dummy $ac_prog; ac_word=$2 |
---|
1913 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1915 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1917 | else |
---|
1918 | if test -n "$ac_ct_CXX"; then |
---|
1919 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1920 | else |
---|
1921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1922 | for as_dir in $PATH |
---|
1923 | do |
---|
1924 | IFS=$as_save_IFS |
---|
1925 | test -z "$as_dir" && as_dir=. |
---|
1926 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1927 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1928 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1929 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1930 | break 2 |
---|
1931 | fi |
---|
1932 | done |
---|
1933 | done |
---|
1934 | |
---|
1935 | fi |
---|
1936 | fi |
---|
1937 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1938 | if test -n "$ac_ct_CXX"; then |
---|
1939 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1940 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1941 | else |
---|
1942 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1943 | echo "${ECHO_T}no" >&6 |
---|
1944 | fi |
---|
1945 | |
---|
1946 | test -n "$ac_ct_CXX" && break |
---|
1947 | done |
---|
1948 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1949 | |
---|
1950 | CXX=$ac_ct_CXX |
---|
1951 | fi |
---|
1952 | |
---|
1953 | |
---|
1954 | # Provide some information about the compiler. |
---|
1955 | echo "$as_me:$LINENO:" \ |
---|
1956 | "checking for C++ compiler version" >&5 |
---|
1957 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1958 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1959 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1960 | ac_status=$? |
---|
1961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1962 | (exit $ac_status); } |
---|
1963 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1964 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1965 | ac_status=$? |
---|
1966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1967 | (exit $ac_status); } |
---|
1968 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1969 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1970 | ac_status=$? |
---|
1971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1972 | (exit $ac_status); } |
---|
1973 | |
---|
1974 | cat >conftest.$ac_ext <<_ACEOF |
---|
1975 | /* confdefs.h. */ |
---|
1976 | _ACEOF |
---|
1977 | cat confdefs.h >>conftest.$ac_ext |
---|
1978 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1979 | /* end confdefs.h. */ |
---|
1980 | |
---|
1981 | int |
---|
1982 | main () |
---|
1983 | { |
---|
1984 | |
---|
1985 | ; |
---|
1986 | return 0; |
---|
1987 | } |
---|
1988 | _ACEOF |
---|
1989 | ac_clean_files_save=$ac_clean_files |
---|
1990 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1991 | # Try to create an executable without -o first, disregard a.out. |
---|
1992 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1993 | # of exeext. |
---|
1994 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1995 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1996 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1997 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1998 | (eval $ac_link_default) 2>&5 |
---|
1999 | ac_status=$? |
---|
2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2001 | (exit $ac_status); }; then |
---|
2002 | # Find the output, starting from the most likely. This scheme is |
---|
2003 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2004 | # resort. |
---|
2005 | |
---|
2006 | # Be careful to initialize this variable, since it used to be cached. |
---|
2007 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2008 | ac_cv_exeext= |
---|
2009 | # b.out is created by i960 compilers. |
---|
2010 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2011 | do |
---|
2012 | test -f "$ac_file" || continue |
---|
2013 | case $ac_file in |
---|
2014 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2015 | ;; |
---|
2016 | conftest.$ac_ext ) |
---|
2017 | # This is the source file. |
---|
2018 | ;; |
---|
2019 | [ab].out ) |
---|
2020 | # We found the default executable, but exeext='' is most |
---|
2021 | # certainly right. |
---|
2022 | break;; |
---|
2023 | *.* ) |
---|
2024 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2025 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2026 | # but it would be cool to find out if it's true. Does anybody |
---|
2027 | # maintain Libtool? --akim. |
---|
2028 | export ac_cv_exeext |
---|
2029 | break;; |
---|
2030 | * ) |
---|
2031 | break;; |
---|
2032 | esac |
---|
2033 | done |
---|
2034 | else |
---|
2035 | echo "$as_me: failed program was:" >&5 |
---|
2036 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2037 | |
---|
2038 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
2039 | See \`config.log' for more details." >&5 |
---|
2040 | echo "$as_me: error: C++ compiler cannot create executables |
---|
2041 | See \`config.log' for more details." >&2;} |
---|
2042 | { (exit 77); exit 77; }; } |
---|
2043 | fi |
---|
2044 | |
---|
2045 | ac_exeext=$ac_cv_exeext |
---|
2046 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2047 | echo "${ECHO_T}$ac_file" >&6 |
---|
2048 | |
---|
2049 | # Check the compiler produces executables we can run. If not, either |
---|
2050 | # the compiler is broken, or we cross compile. |
---|
2051 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
2052 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
2053 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2054 | # If not cross compiling, check that we can run a simple program. |
---|
2055 | if test "$cross_compiling" != yes; then |
---|
2056 | if { ac_try='./$ac_file' |
---|
2057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2058 | (eval $ac_try) 2>&5 |
---|
2059 | ac_status=$? |
---|
2060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2061 | (exit $ac_status); }; }; then |
---|
2062 | cross_compiling=no |
---|
2063 | else |
---|
2064 | if test "$cross_compiling" = maybe; then |
---|
2065 | cross_compiling=yes |
---|
2066 | else |
---|
2067 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2068 | If you meant to cross compile, use \`--host'. |
---|
2069 | See \`config.log' for more details." >&5 |
---|
2070 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2071 | If you meant to cross compile, use \`--host'. |
---|
2072 | See \`config.log' for more details." >&2;} |
---|
2073 | { (exit 1); exit 1; }; } |
---|
2074 | fi |
---|
2075 | fi |
---|
2076 | fi |
---|
2077 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2078 | echo "${ECHO_T}yes" >&6 |
---|
2079 | |
---|
2080 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2081 | ac_clean_files=$ac_clean_files_save |
---|
2082 | # Check the compiler produces executables we can run. If not, either |
---|
2083 | # the compiler is broken, or we cross compile. |
---|
2084 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2085 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2086 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2087 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2088 | |
---|
2089 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2090 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2092 | (eval $ac_link) 2>&5 |
---|
2093 | ac_status=$? |
---|
2094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2095 | (exit $ac_status); }; then |
---|
2096 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2097 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2098 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2099 | # `rm'. |
---|
2100 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2101 | test -f "$ac_file" || continue |
---|
2102 | case $ac_file in |
---|
2103 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2104 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2105 | export ac_cv_exeext |
---|
2106 | break;; |
---|
2107 | * ) break;; |
---|
2108 | esac |
---|
2109 | done |
---|
2110 | else |
---|
2111 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2112 | See \`config.log' for more details." >&5 |
---|
2113 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2114 | See \`config.log' for more details." >&2;} |
---|
2115 | { (exit 1); exit 1; }; } |
---|
2116 | fi |
---|
2117 | |
---|
2118 | rm -f conftest$ac_cv_exeext |
---|
2119 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2120 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2121 | |
---|
2122 | rm -f conftest.$ac_ext |
---|
2123 | EXEEXT=$ac_cv_exeext |
---|
2124 | ac_exeext=$EXEEXT |
---|
2125 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2126 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2127 | if test "${ac_cv_objext+set}" = set; then |
---|
2128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2129 | else |
---|
2130 | cat >conftest.$ac_ext <<_ACEOF |
---|
2131 | /* confdefs.h. */ |
---|
2132 | _ACEOF |
---|
2133 | cat confdefs.h >>conftest.$ac_ext |
---|
2134 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2135 | /* end confdefs.h. */ |
---|
2136 | |
---|
2137 | int |
---|
2138 | main () |
---|
2139 | { |
---|
2140 | |
---|
2141 | ; |
---|
2142 | return 0; |
---|
2143 | } |
---|
2144 | _ACEOF |
---|
2145 | rm -f conftest.o conftest.obj |
---|
2146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2147 | (eval $ac_compile) 2>&5 |
---|
2148 | ac_status=$? |
---|
2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2150 | (exit $ac_status); }; then |
---|
2151 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2152 | case $ac_file in |
---|
2153 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2154 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2155 | break;; |
---|
2156 | esac |
---|
2157 | done |
---|
2158 | else |
---|
2159 | echo "$as_me: failed program was:" >&5 |
---|
2160 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2161 | |
---|
2162 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2163 | See \`config.log' for more details." >&5 |
---|
2164 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2165 | See \`config.log' for more details." >&2;} |
---|
2166 | { (exit 1); exit 1; }; } |
---|
2167 | fi |
---|
2168 | |
---|
2169 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2170 | fi |
---|
2171 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2172 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2173 | OBJEXT=$ac_cv_objext |
---|
2174 | ac_objext=$OBJEXT |
---|
2175 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2176 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2177 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2179 | else |
---|
2180 | cat >conftest.$ac_ext <<_ACEOF |
---|
2181 | /* confdefs.h. */ |
---|
2182 | _ACEOF |
---|
2183 | cat confdefs.h >>conftest.$ac_ext |
---|
2184 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2185 | /* end confdefs.h. */ |
---|
2186 | |
---|
2187 | int |
---|
2188 | main () |
---|
2189 | { |
---|
2190 | #ifndef __GNUC__ |
---|
2191 | choke me |
---|
2192 | #endif |
---|
2193 | |
---|
2194 | ; |
---|
2195 | return 0; |
---|
2196 | } |
---|
2197 | _ACEOF |
---|
2198 | rm -f conftest.$ac_objext |
---|
2199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2200 | (eval $ac_compile) 2>conftest.er1 |
---|
2201 | ac_status=$? |
---|
2202 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2203 | rm -f conftest.er1 |
---|
2204 | cat conftest.err >&5 |
---|
2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2206 | (exit $ac_status); } && |
---|
2207 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2208 | || test ! -s conftest.err' |
---|
2209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2210 | (eval $ac_try) 2>&5 |
---|
2211 | ac_status=$? |
---|
2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2213 | (exit $ac_status); }; } && |
---|
2214 | { ac_try='test -s conftest.$ac_objext' |
---|
2215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2216 | (eval $ac_try) 2>&5 |
---|
2217 | ac_status=$? |
---|
2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2219 | (exit $ac_status); }; }; then |
---|
2220 | ac_compiler_gnu=yes |
---|
2221 | else |
---|
2222 | echo "$as_me: failed program was:" >&5 |
---|
2223 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2224 | |
---|
2225 | ac_compiler_gnu=no |
---|
2226 | fi |
---|
2227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2228 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2229 | |
---|
2230 | fi |
---|
2231 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2232 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2233 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2234 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2235 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2236 | CXXFLAGS="-g" |
---|
2237 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2238 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2239 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2241 | else |
---|
2242 | cat >conftest.$ac_ext <<_ACEOF |
---|
2243 | /* confdefs.h. */ |
---|
2244 | _ACEOF |
---|
2245 | cat confdefs.h >>conftest.$ac_ext |
---|
2246 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2247 | /* end confdefs.h. */ |
---|
2248 | |
---|
2249 | int |
---|
2250 | main () |
---|
2251 | { |
---|
2252 | |
---|
2253 | ; |
---|
2254 | return 0; |
---|
2255 | } |
---|
2256 | _ACEOF |
---|
2257 | rm -f conftest.$ac_objext |
---|
2258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2259 | (eval $ac_compile) 2>conftest.er1 |
---|
2260 | ac_status=$? |
---|
2261 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2262 | rm -f conftest.er1 |
---|
2263 | cat conftest.err >&5 |
---|
2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2265 | (exit $ac_status); } && |
---|
2266 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2267 | || test ! -s conftest.err' |
---|
2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2269 | (eval $ac_try) 2>&5 |
---|
2270 | ac_status=$? |
---|
2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2272 | (exit $ac_status); }; } && |
---|
2273 | { ac_try='test -s conftest.$ac_objext' |
---|
2274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2275 | (eval $ac_try) 2>&5 |
---|
2276 | ac_status=$? |
---|
2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2278 | (exit $ac_status); }; }; then |
---|
2279 | ac_cv_prog_cxx_g=yes |
---|
2280 | else |
---|
2281 | echo "$as_me: failed program was:" >&5 |
---|
2282 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2283 | |
---|
2284 | ac_cv_prog_cxx_g=no |
---|
2285 | fi |
---|
2286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2287 | fi |
---|
2288 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2289 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2290 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2291 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2292 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2293 | if test "$GXX" = yes; then |
---|
2294 | CXXFLAGS="-g -O2" |
---|
2295 | else |
---|
2296 | CXXFLAGS="-g" |
---|
2297 | fi |
---|
2298 | else |
---|
2299 | if test "$GXX" = yes; then |
---|
2300 | CXXFLAGS="-O2" |
---|
2301 | else |
---|
2302 | CXXFLAGS= |
---|
2303 | fi |
---|
2304 | fi |
---|
2305 | for ac_declaration in \ |
---|
2306 | '' \ |
---|
2307 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2308 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2309 | 'extern "C" void exit (int) throw ();' \ |
---|
2310 | 'extern "C" void exit (int);' \ |
---|
2311 | 'void exit (int);' |
---|
2312 | do |
---|
2313 | cat >conftest.$ac_ext <<_ACEOF |
---|
2314 | /* confdefs.h. */ |
---|
2315 | _ACEOF |
---|
2316 | cat confdefs.h >>conftest.$ac_ext |
---|
2317 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2318 | /* end confdefs.h. */ |
---|
2319 | $ac_declaration |
---|
2320 | #include <stdlib.h> |
---|
2321 | int |
---|
2322 | main () |
---|
2323 | { |
---|
2324 | exit (42); |
---|
2325 | ; |
---|
2326 | return 0; |
---|
2327 | } |
---|
2328 | _ACEOF |
---|
2329 | rm -f conftest.$ac_objext |
---|
2330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2331 | (eval $ac_compile) 2>conftest.er1 |
---|
2332 | ac_status=$? |
---|
2333 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2334 | rm -f conftest.er1 |
---|
2335 | cat conftest.err >&5 |
---|
2336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2337 | (exit $ac_status); } && |
---|
2338 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2339 | || test ! -s conftest.err' |
---|
2340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2341 | (eval $ac_try) 2>&5 |
---|
2342 | ac_status=$? |
---|
2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2344 | (exit $ac_status); }; } && |
---|
2345 | { ac_try='test -s conftest.$ac_objext' |
---|
2346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2347 | (eval $ac_try) 2>&5 |
---|
2348 | ac_status=$? |
---|
2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2350 | (exit $ac_status); }; }; then |
---|
2351 | : |
---|
2352 | else |
---|
2353 | echo "$as_me: failed program was:" >&5 |
---|
2354 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2355 | |
---|
2356 | continue |
---|
2357 | fi |
---|
2358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2359 | cat >conftest.$ac_ext <<_ACEOF |
---|
2360 | /* confdefs.h. */ |
---|
2361 | _ACEOF |
---|
2362 | cat confdefs.h >>conftest.$ac_ext |
---|
2363 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2364 | /* end confdefs.h. */ |
---|
2365 | $ac_declaration |
---|
2366 | int |
---|
2367 | main () |
---|
2368 | { |
---|
2369 | exit (42); |
---|
2370 | ; |
---|
2371 | return 0; |
---|
2372 | } |
---|
2373 | _ACEOF |
---|
2374 | rm -f conftest.$ac_objext |
---|
2375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2376 | (eval $ac_compile) 2>conftest.er1 |
---|
2377 | ac_status=$? |
---|
2378 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2379 | rm -f conftest.er1 |
---|
2380 | cat conftest.err >&5 |
---|
2381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2382 | (exit $ac_status); } && |
---|
2383 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2384 | || test ! -s conftest.err' |
---|
2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2386 | (eval $ac_try) 2>&5 |
---|
2387 | ac_status=$? |
---|
2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2389 | (exit $ac_status); }; } && |
---|
2390 | { ac_try='test -s conftest.$ac_objext' |
---|
2391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2392 | (eval $ac_try) 2>&5 |
---|
2393 | ac_status=$? |
---|
2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2395 | (exit $ac_status); }; }; then |
---|
2396 | break |
---|
2397 | else |
---|
2398 | echo "$as_me: failed program was:" >&5 |
---|
2399 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2400 | |
---|
2401 | fi |
---|
2402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2403 | done |
---|
2404 | rm -f conftest* |
---|
2405 | if test -n "$ac_declaration"; then |
---|
2406 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2407 | echo $ac_declaration >>confdefs.h |
---|
2408 | echo '#endif' >>confdefs.h |
---|
2409 | fi |
---|
2410 | |
---|
2411 | ac_ext=c |
---|
2412 | ac_cpp='$CPP $CPPFLAGS' |
---|
2413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2416 | DEPDIR="${am__leading_dot}deps" |
---|
2417 | |
---|
2418 | ac_config_commands="$ac_config_commands depfiles" |
---|
2419 | |
---|
2420 | |
---|
2421 | am_make=${MAKE-make} |
---|
2422 | cat > confinc << 'END' |
---|
2423 | am__doit: |
---|
2424 | @echo done |
---|
2425 | .PHONY: am__doit |
---|
2426 | END |
---|
2427 | # If we don't find an include directive, just comment out the code. |
---|
2428 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2429 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2430 | am__include="#" |
---|
2431 | am__quote= |
---|
2432 | _am_result=none |
---|
2433 | # First try GNU make style include. |
---|
2434 | echo "include confinc" > confmf |
---|
2435 | # We grep out `Entering directory' and `Leaving directory' |
---|
2436 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2437 | # In particular we don't look at `^make:' because GNU make might |
---|
2438 | # be invoked under some other name (usually "gmake"), in which |
---|
2439 | # case it prints its new name instead of `make'. |
---|
2440 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2441 | am__include=include |
---|
2442 | am__quote= |
---|
2443 | _am_result=GNU |
---|
2444 | fi |
---|
2445 | # Now try BSD make style include. |
---|
2446 | if test "$am__include" = "#"; then |
---|
2447 | echo '.include "confinc"' > confmf |
---|
2448 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2449 | am__include=.include |
---|
2450 | am__quote="\"" |
---|
2451 | _am_result=BSD |
---|
2452 | fi |
---|
2453 | fi |
---|
2454 | |
---|
2455 | |
---|
2456 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2457 | echo "${ECHO_T}$_am_result" >&6 |
---|
2458 | rm -f confinc confmf |
---|
2459 | |
---|
2460 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2461 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2462 | enableval="$enable_dependency_tracking" |
---|
2463 | |
---|
2464 | fi; |
---|
2465 | if test "x$enable_dependency_tracking" != xno; then |
---|
2466 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2467 | AMDEPBACKSLASH='\' |
---|
2468 | fi |
---|
2469 | |
---|
2470 | |
---|
2471 | if test "x$enable_dependency_tracking" != xno; then |
---|
2472 | AMDEP_TRUE= |
---|
2473 | AMDEP_FALSE='#' |
---|
2474 | else |
---|
2475 | AMDEP_TRUE='#' |
---|
2476 | AMDEP_FALSE= |
---|
2477 | fi |
---|
2478 | |
---|
2479 | |
---|
2480 | |
---|
2481 | |
---|
2482 | depcc="$CXX" am_compiler_list= |
---|
2483 | |
---|
2484 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2485 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2486 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2488 | else |
---|
2489 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2490 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2491 | # making bogus files that we don't know about and never remove. For |
---|
2492 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2493 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2494 | # in D'. |
---|
2495 | mkdir conftest.dir |
---|
2496 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2497 | # using a relative directory. |
---|
2498 | cp "$am_depcomp" conftest.dir |
---|
2499 | cd conftest.dir |
---|
2500 | # We will build objects and dependencies in a subdirectory because |
---|
2501 | # it helps to detect inapplicable dependency modes. For instance |
---|
2502 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2503 | # side effect of compilation, but ICC will put the dependencies in |
---|
2504 | # the current directory while Tru64 will put them in the object |
---|
2505 | # directory. |
---|
2506 | mkdir sub |
---|
2507 | |
---|
2508 | am_cv_CXX_dependencies_compiler_type=none |
---|
2509 | if test "$am_compiler_list" = ""; then |
---|
2510 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2511 | fi |
---|
2512 | for depmode in $am_compiler_list; do |
---|
2513 | # Setup a source with many dependencies, because some compilers |
---|
2514 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2515 | # we should not choose a depcomp mode which is confused by this. |
---|
2516 | # |
---|
2517 | # We need to recreate these files for each test, as the compiler may |
---|
2518 | # overwrite some of them when testing with obscure command lines. |
---|
2519 | # This happens at least with the AIX C compiler. |
---|
2520 | : > sub/conftest.c |
---|
2521 | for i in 1 2 3 4 5 6; do |
---|
2522 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2523 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
2524 | # Solaris 8's {/usr,}/bin/sh. |
---|
2525 | touch sub/conftst$i.h |
---|
2526 | done |
---|
2527 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2528 | |
---|
2529 | case $depmode in |
---|
2530 | nosideeffect) |
---|
2531 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2532 | # only be used when explicitly requested |
---|
2533 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2534 | continue |
---|
2535 | else |
---|
2536 | break |
---|
2537 | fi |
---|
2538 | ;; |
---|
2539 | none) break ;; |
---|
2540 | esac |
---|
2541 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2542 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2543 | # handle `-M -o', and we need to detect this. |
---|
2544 | if depmode=$depmode \ |
---|
2545 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2546 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2547 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2548 | >/dev/null 2>conftest.err && |
---|
2549 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2550 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2551 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2552 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2553 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
2554 | # that says an option was ignored or not supported. |
---|
2555 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
2556 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
2557 | # The diagnosis changed in icc 8.0: |
---|
2558 | # icc: Command line remark: option '-MP' not supported |
---|
2559 | if (grep 'ignoring option' conftest.err || |
---|
2560 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
2561 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2562 | break |
---|
2563 | fi |
---|
2564 | fi |
---|
2565 | done |
---|
2566 | |
---|
2567 | cd .. |
---|
2568 | rm -rf conftest.dir |
---|
2569 | else |
---|
2570 | am_cv_CXX_dependencies_compiler_type=none |
---|
2571 | fi |
---|
2572 | |
---|
2573 | fi |
---|
2574 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2575 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2576 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2577 | |
---|
2578 | |
---|
2579 | |
---|
2580 | if |
---|
2581 | test "x$enable_dependency_tracking" != xno \ |
---|
2582 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2583 | am__fastdepCXX_TRUE= |
---|
2584 | am__fastdepCXX_FALSE='#' |
---|
2585 | else |
---|
2586 | am__fastdepCXX_TRUE='#' |
---|
2587 | am__fastdepCXX_FALSE= |
---|
2588 | fi |
---|
2589 | |
---|
2590 | |
---|
2591 | if test -n "$ac_tool_prefix"; then |
---|
2592 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2593 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2596 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
2597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2598 | else |
---|
2599 | if test -n "$RANLIB"; then |
---|
2600 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2601 | else |
---|
2602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2603 | for as_dir in $PATH |
---|
2604 | do |
---|
2605 | IFS=$as_save_IFS |
---|
2606 | test -z "$as_dir" && as_dir=. |
---|
2607 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2609 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2611 | break 2 |
---|
2612 | fi |
---|
2613 | done |
---|
2614 | done |
---|
2615 | |
---|
2616 | fi |
---|
2617 | fi |
---|
2618 | RANLIB=$ac_cv_prog_RANLIB |
---|
2619 | if test -n "$RANLIB"; then |
---|
2620 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
2621 | echo "${ECHO_T}$RANLIB" >&6 |
---|
2622 | else |
---|
2623 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2624 | echo "${ECHO_T}no" >&6 |
---|
2625 | fi |
---|
2626 | |
---|
2627 | fi |
---|
2628 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2629 | ac_ct_RANLIB=$RANLIB |
---|
2630 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2631 | set dummy ranlib; ac_word=$2 |
---|
2632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2634 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2636 | else |
---|
2637 | if test -n "$ac_ct_RANLIB"; then |
---|
2638 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2639 | else |
---|
2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2641 | for as_dir in $PATH |
---|
2642 | do |
---|
2643 | IFS=$as_save_IFS |
---|
2644 | test -z "$as_dir" && as_dir=. |
---|
2645 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2647 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2649 | break 2 |
---|
2650 | fi |
---|
2651 | done |
---|
2652 | done |
---|
2653 | |
---|
2654 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
2655 | fi |
---|
2656 | fi |
---|
2657 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2658 | if test -n "$ac_ct_RANLIB"; then |
---|
2659 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
2660 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
2661 | else |
---|
2662 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2663 | echo "${ECHO_T}no" >&6 |
---|
2664 | fi |
---|
2665 | |
---|
2666 | RANLIB=$ac_ct_RANLIB |
---|
2667 | else |
---|
2668 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2669 | fi |
---|
2670 | |
---|
2671 | ac_ext=c |
---|
2672 | ac_cpp='$CPP $CPPFLAGS' |
---|
2673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2676 | if test -n "$ac_tool_prefix"; then |
---|
2677 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2678 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2681 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2683 | else |
---|
2684 | if test -n "$CC"; then |
---|
2685 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2686 | else |
---|
2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2688 | for as_dir in $PATH |
---|
2689 | do |
---|
2690 | IFS=$as_save_IFS |
---|
2691 | test -z "$as_dir" && as_dir=. |
---|
2692 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2694 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2696 | break 2 |
---|
2697 | fi |
---|
2698 | done |
---|
2699 | done |
---|
2700 | |
---|
2701 | fi |
---|
2702 | fi |
---|
2703 | CC=$ac_cv_prog_CC |
---|
2704 | if test -n "$CC"; then |
---|
2705 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2706 | echo "${ECHO_T}$CC" >&6 |
---|
2707 | else |
---|
2708 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2709 | echo "${ECHO_T}no" >&6 |
---|
2710 | fi |
---|
2711 | |
---|
2712 | fi |
---|
2713 | if test -z "$ac_cv_prog_CC"; then |
---|
2714 | ac_ct_CC=$CC |
---|
2715 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2716 | set dummy gcc; ac_word=$2 |
---|
2717 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2719 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2721 | else |
---|
2722 | if test -n "$ac_ct_CC"; then |
---|
2723 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2724 | else |
---|
2725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2726 | for as_dir in $PATH |
---|
2727 | do |
---|
2728 | IFS=$as_save_IFS |
---|
2729 | test -z "$as_dir" && as_dir=. |
---|
2730 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2731 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2732 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2734 | break 2 |
---|
2735 | fi |
---|
2736 | done |
---|
2737 | done |
---|
2738 | |
---|
2739 | fi |
---|
2740 | fi |
---|
2741 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2742 | if test -n "$ac_ct_CC"; then |
---|
2743 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2744 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2745 | else |
---|
2746 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2747 | echo "${ECHO_T}no" >&6 |
---|
2748 | fi |
---|
2749 | |
---|
2750 | CC=$ac_ct_CC |
---|
2751 | else |
---|
2752 | CC="$ac_cv_prog_CC" |
---|
2753 | fi |
---|
2754 | |
---|
2755 | if test -z "$CC"; then |
---|
2756 | if test -n "$ac_tool_prefix"; then |
---|
2757 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2758 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2761 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2763 | else |
---|
2764 | if test -n "$CC"; then |
---|
2765 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2766 | else |
---|
2767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2768 | for as_dir in $PATH |
---|
2769 | do |
---|
2770 | IFS=$as_save_IFS |
---|
2771 | test -z "$as_dir" && as_dir=. |
---|
2772 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2774 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2776 | break 2 |
---|
2777 | fi |
---|
2778 | done |
---|
2779 | done |
---|
2780 | |
---|
2781 | fi |
---|
2782 | fi |
---|
2783 | CC=$ac_cv_prog_CC |
---|
2784 | if test -n "$CC"; then |
---|
2785 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2786 | echo "${ECHO_T}$CC" >&6 |
---|
2787 | else |
---|
2788 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2789 | echo "${ECHO_T}no" >&6 |
---|
2790 | fi |
---|
2791 | |
---|
2792 | fi |
---|
2793 | if test -z "$ac_cv_prog_CC"; then |
---|
2794 | ac_ct_CC=$CC |
---|
2795 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2796 | set dummy cc; ac_word=$2 |
---|
2797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2799 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2801 | else |
---|
2802 | if test -n "$ac_ct_CC"; then |
---|
2803 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2804 | else |
---|
2805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2806 | for as_dir in $PATH |
---|
2807 | do |
---|
2808 | IFS=$as_save_IFS |
---|
2809 | test -z "$as_dir" && as_dir=. |
---|
2810 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2812 | ac_cv_prog_ac_ct_CC="cc" |
---|
2813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2814 | break 2 |
---|
2815 | fi |
---|
2816 | done |
---|
2817 | done |
---|
2818 | |
---|
2819 | fi |
---|
2820 | fi |
---|
2821 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2822 | if test -n "$ac_ct_CC"; then |
---|
2823 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2824 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2825 | else |
---|
2826 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2827 | echo "${ECHO_T}no" >&6 |
---|
2828 | fi |
---|
2829 | |
---|
2830 | CC=$ac_ct_CC |
---|
2831 | else |
---|
2832 | CC="$ac_cv_prog_CC" |
---|
2833 | fi |
---|
2834 | |
---|
2835 | fi |
---|
2836 | if test -z "$CC"; then |
---|
2837 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2838 | set dummy cc; ac_word=$2 |
---|
2839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2841 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2843 | else |
---|
2844 | if test -n "$CC"; then |
---|
2845 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2846 | else |
---|
2847 | ac_prog_rejected=no |
---|
2848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2849 | for as_dir in $PATH |
---|
2850 | do |
---|
2851 | IFS=$as_save_IFS |
---|
2852 | test -z "$as_dir" && as_dir=. |
---|
2853 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2855 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2856 | ac_prog_rejected=yes |
---|
2857 | continue |
---|
2858 | fi |
---|
2859 | ac_cv_prog_CC="cc" |
---|
2860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2861 | break 2 |
---|
2862 | fi |
---|
2863 | done |
---|
2864 | done |
---|
2865 | |
---|
2866 | if test $ac_prog_rejected = yes; then |
---|
2867 | # We found a bogon in the path, so make sure we never use it. |
---|
2868 | set dummy $ac_cv_prog_CC |
---|
2869 | shift |
---|
2870 | if test $# != 0; then |
---|
2871 | # We chose a different compiler from the bogus one. |
---|
2872 | # However, it has the same basename, so the bogon will be chosen |
---|
2873 | # first if we set CC to just the basename; use the full file name. |
---|
2874 | shift |
---|
2875 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2876 | fi |
---|
2877 | fi |
---|
2878 | fi |
---|
2879 | fi |
---|
2880 | CC=$ac_cv_prog_CC |
---|
2881 | if test -n "$CC"; then |
---|
2882 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2883 | echo "${ECHO_T}$CC" >&6 |
---|
2884 | else |
---|
2885 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2886 | echo "${ECHO_T}no" >&6 |
---|
2887 | fi |
---|
2888 | |
---|
2889 | fi |
---|
2890 | if test -z "$CC"; then |
---|
2891 | if test -n "$ac_tool_prefix"; then |
---|
2892 | for ac_prog in cl |
---|
2893 | do |
---|
2894 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2895 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2896 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2898 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2900 | else |
---|
2901 | if test -n "$CC"; then |
---|
2902 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2903 | else |
---|
2904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2905 | for as_dir in $PATH |
---|
2906 | do |
---|
2907 | IFS=$as_save_IFS |
---|
2908 | test -z "$as_dir" && as_dir=. |
---|
2909 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2911 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2913 | break 2 |
---|
2914 | fi |
---|
2915 | done |
---|
2916 | done |
---|
2917 | |
---|
2918 | fi |
---|
2919 | fi |
---|
2920 | CC=$ac_cv_prog_CC |
---|
2921 | if test -n "$CC"; then |
---|
2922 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2923 | echo "${ECHO_T}$CC" >&6 |
---|
2924 | else |
---|
2925 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2926 | echo "${ECHO_T}no" >&6 |
---|
2927 | fi |
---|
2928 | |
---|
2929 | test -n "$CC" && break |
---|
2930 | done |
---|
2931 | fi |
---|
2932 | if test -z "$CC"; then |
---|
2933 | ac_ct_CC=$CC |
---|
2934 | for ac_prog in cl |
---|
2935 | do |
---|
2936 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2937 | set dummy $ac_prog; ac_word=$2 |
---|
2938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2940 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2942 | else |
---|
2943 | if test -n "$ac_ct_CC"; then |
---|
2944 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2945 | else |
---|
2946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2947 | for as_dir in $PATH |
---|
2948 | do |
---|
2949 | IFS=$as_save_IFS |
---|
2950 | test -z "$as_dir" && as_dir=. |
---|
2951 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2953 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2955 | break 2 |
---|
2956 | fi |
---|
2957 | done |
---|
2958 | done |
---|
2959 | |
---|
2960 | fi |
---|
2961 | fi |
---|
2962 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2963 | if test -n "$ac_ct_CC"; then |
---|
2964 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2965 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2966 | else |
---|
2967 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2968 | echo "${ECHO_T}no" >&6 |
---|
2969 | fi |
---|
2970 | |
---|
2971 | test -n "$ac_ct_CC" && break |
---|
2972 | done |
---|
2973 | |
---|
2974 | CC=$ac_ct_CC |
---|
2975 | fi |
---|
2976 | |
---|
2977 | fi |
---|
2978 | |
---|
2979 | |
---|
2980 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2981 | See \`config.log' for more details." >&5 |
---|
2982 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2983 | See \`config.log' for more details." >&2;} |
---|
2984 | { (exit 1); exit 1; }; } |
---|
2985 | |
---|
2986 | # Provide some information about the compiler. |
---|
2987 | echo "$as_me:$LINENO:" \ |
---|
2988 | "checking for C compiler version" >&5 |
---|
2989 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2990 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2991 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2992 | ac_status=$? |
---|
2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2994 | (exit $ac_status); } |
---|
2995 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2996 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2997 | ac_status=$? |
---|
2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2999 | (exit $ac_status); } |
---|
3000 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3001 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3002 | ac_status=$? |
---|
3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3004 | (exit $ac_status); } |
---|
3005 | |
---|
3006 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
3007 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
3008 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3010 | else |
---|
3011 | cat >conftest.$ac_ext <<_ACEOF |
---|
3012 | /* confdefs.h. */ |
---|
3013 | _ACEOF |
---|
3014 | cat confdefs.h >>conftest.$ac_ext |
---|
3015 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3016 | /* end confdefs.h. */ |
---|
3017 | |
---|
3018 | int |
---|
3019 | main () |
---|
3020 | { |
---|
3021 | #ifndef __GNUC__ |
---|
3022 | choke me |
---|
3023 | #endif |
---|
3024 | |
---|
3025 | ; |
---|
3026 | return 0; |
---|
3027 | } |
---|
3028 | _ACEOF |
---|
3029 | rm -f conftest.$ac_objext |
---|
3030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3031 | (eval $ac_compile) 2>conftest.er1 |
---|
3032 | ac_status=$? |
---|
3033 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3034 | rm -f conftest.er1 |
---|
3035 | cat conftest.err >&5 |
---|
3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3037 | (exit $ac_status); } && |
---|
3038 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3039 | || test ! -s conftest.err' |
---|
3040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3041 | (eval $ac_try) 2>&5 |
---|
3042 | ac_status=$? |
---|
3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3044 | (exit $ac_status); }; } && |
---|
3045 | { ac_try='test -s conftest.$ac_objext' |
---|
3046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3047 | (eval $ac_try) 2>&5 |
---|
3048 | ac_status=$? |
---|
3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3050 | (exit $ac_status); }; }; then |
---|
3051 | ac_compiler_gnu=yes |
---|
3052 | else |
---|
3053 | echo "$as_me: failed program was:" >&5 |
---|
3054 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3055 | |
---|
3056 | ac_compiler_gnu=no |
---|
3057 | fi |
---|
3058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3059 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3060 | |
---|
3061 | fi |
---|
3062 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3063 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
3064 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
3065 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3066 | ac_save_CFLAGS=$CFLAGS |
---|
3067 | CFLAGS="-g" |
---|
3068 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
3069 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
3070 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3072 | else |
---|
3073 | cat >conftest.$ac_ext <<_ACEOF |
---|
3074 | /* confdefs.h. */ |
---|
3075 | _ACEOF |
---|
3076 | cat confdefs.h >>conftest.$ac_ext |
---|
3077 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3078 | /* end confdefs.h. */ |
---|
3079 | |
---|
3080 | int |
---|
3081 | main () |
---|
3082 | { |
---|
3083 | |
---|
3084 | ; |
---|
3085 | return 0; |
---|
3086 | } |
---|
3087 | _ACEOF |
---|
3088 | rm -f conftest.$ac_objext |
---|
3089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3090 | (eval $ac_compile) 2>conftest.er1 |
---|
3091 | ac_status=$? |
---|
3092 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3093 | rm -f conftest.er1 |
---|
3094 | cat conftest.err >&5 |
---|
3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3096 | (exit $ac_status); } && |
---|
3097 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3098 | || test ! -s conftest.err' |
---|
3099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3100 | (eval $ac_try) 2>&5 |
---|
3101 | ac_status=$? |
---|
3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3103 | (exit $ac_status); }; } && |
---|
3104 | { ac_try='test -s conftest.$ac_objext' |
---|
3105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3106 | (eval $ac_try) 2>&5 |
---|
3107 | ac_status=$? |
---|
3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3109 | (exit $ac_status); }; }; then |
---|
3110 | ac_cv_prog_cc_g=yes |
---|
3111 | else |
---|
3112 | echo "$as_me: failed program was:" >&5 |
---|
3113 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3114 | |
---|
3115 | ac_cv_prog_cc_g=no |
---|
3116 | fi |
---|
3117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3118 | fi |
---|
3119 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3120 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
3121 | if test "$ac_test_CFLAGS" = set; then |
---|
3122 | CFLAGS=$ac_save_CFLAGS |
---|
3123 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3124 | if test "$GCC" = yes; then |
---|
3125 | CFLAGS="-g -O2" |
---|
3126 | else |
---|
3127 | CFLAGS="-g" |
---|
3128 | fi |
---|
3129 | else |
---|
3130 | if test "$GCC" = yes; then |
---|
3131 | CFLAGS="-O2" |
---|
3132 | else |
---|
3133 | CFLAGS= |
---|
3134 | fi |
---|
3135 | fi |
---|
3136 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3137 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3138 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3140 | else |
---|
3141 | ac_cv_prog_cc_stdc=no |
---|
3142 | ac_save_CC=$CC |
---|
3143 | cat >conftest.$ac_ext <<_ACEOF |
---|
3144 | /* confdefs.h. */ |
---|
3145 | _ACEOF |
---|
3146 | cat confdefs.h >>conftest.$ac_ext |
---|
3147 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3148 | /* end confdefs.h. */ |
---|
3149 | #include <stdarg.h> |
---|
3150 | #include <stdio.h> |
---|
3151 | #include <sys/types.h> |
---|
3152 | #include <sys/stat.h> |
---|
3153 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3154 | struct buf { int x; }; |
---|
3155 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3156 | static char *e (p, i) |
---|
3157 | char **p; |
---|
3158 | int i; |
---|
3159 | { |
---|
3160 | return p[i]; |
---|
3161 | } |
---|
3162 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3163 | { |
---|
3164 | char *s; |
---|
3165 | va_list v; |
---|
3166 | va_start (v,p); |
---|
3167 | s = g (p, va_arg (v,int)); |
---|
3168 | va_end (v); |
---|
3169 | return s; |
---|
3170 | } |
---|
3171 | |
---|
3172 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3173 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3174 | These don't provoke an error unfortunately, instead are silently treated |
---|
3175 | as 'x'. The following induces an error, until -std1 is added to get |
---|
3176 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3177 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3178 | that's true only with -std1. */ |
---|
3179 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3180 | |
---|
3181 | int test (int i, double x); |
---|
3182 | struct s1 {int (*f) (int a);}; |
---|
3183 | struct s2 {int (*f) (double a);}; |
---|
3184 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3185 | int argc; |
---|
3186 | char **argv; |
---|
3187 | int |
---|
3188 | main () |
---|
3189 | { |
---|
3190 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3191 | ; |
---|
3192 | return 0; |
---|
3193 | } |
---|
3194 | _ACEOF |
---|
3195 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3196 | # breaks some systems' header files. |
---|
3197 | # AIX -qlanglvl=ansi |
---|
3198 | # Ultrix and OSF/1 -std1 |
---|
3199 | # HP-UX 10.20 and later -Ae |
---|
3200 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3201 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3202 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3203 | do |
---|
3204 | CC="$ac_save_CC $ac_arg" |
---|
3205 | rm -f conftest.$ac_objext |
---|
3206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3207 | (eval $ac_compile) 2>conftest.er1 |
---|
3208 | ac_status=$? |
---|
3209 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3210 | rm -f conftest.er1 |
---|
3211 | cat conftest.err >&5 |
---|
3212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3213 | (exit $ac_status); } && |
---|
3214 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3215 | || test ! -s conftest.err' |
---|
3216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3217 | (eval $ac_try) 2>&5 |
---|
3218 | ac_status=$? |
---|
3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3220 | (exit $ac_status); }; } && |
---|
3221 | { ac_try='test -s conftest.$ac_objext' |
---|
3222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3223 | (eval $ac_try) 2>&5 |
---|
3224 | ac_status=$? |
---|
3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3226 | (exit $ac_status); }; }; then |
---|
3227 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3228 | break |
---|
3229 | else |
---|
3230 | echo "$as_me: failed program was:" >&5 |
---|
3231 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3232 | |
---|
3233 | fi |
---|
3234 | rm -f conftest.err conftest.$ac_objext |
---|
3235 | done |
---|
3236 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3237 | CC=$ac_save_CC |
---|
3238 | |
---|
3239 | fi |
---|
3240 | |
---|
3241 | case "x$ac_cv_prog_cc_stdc" in |
---|
3242 | x|xno) |
---|
3243 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3244 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3245 | *) |
---|
3246 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3247 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3248 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3249 | esac |
---|
3250 | |
---|
3251 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3252 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3253 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3254 | # the declaration of exit, since it's the most demanding environment. |
---|
3255 | cat >conftest.$ac_ext <<_ACEOF |
---|
3256 | #ifndef __cplusplus |
---|
3257 | choke me |
---|
3258 | #endif |
---|
3259 | _ACEOF |
---|
3260 | rm -f conftest.$ac_objext |
---|
3261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3262 | (eval $ac_compile) 2>conftest.er1 |
---|
3263 | ac_status=$? |
---|
3264 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3265 | rm -f conftest.er1 |
---|
3266 | cat conftest.err >&5 |
---|
3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3268 | (exit $ac_status); } && |
---|
3269 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3270 | || test ! -s conftest.err' |
---|
3271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3272 | (eval $ac_try) 2>&5 |
---|
3273 | ac_status=$? |
---|
3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3275 | (exit $ac_status); }; } && |
---|
3276 | { ac_try='test -s conftest.$ac_objext' |
---|
3277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3278 | (eval $ac_try) 2>&5 |
---|
3279 | ac_status=$? |
---|
3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3281 | (exit $ac_status); }; }; then |
---|
3282 | for ac_declaration in \ |
---|
3283 | '' \ |
---|
3284 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3285 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3286 | 'extern "C" void exit (int) throw ();' \ |
---|
3287 | 'extern "C" void exit (int);' \ |
---|
3288 | 'void exit (int);' |
---|
3289 | do |
---|
3290 | cat >conftest.$ac_ext <<_ACEOF |
---|
3291 | /* confdefs.h. */ |
---|
3292 | _ACEOF |
---|
3293 | cat confdefs.h >>conftest.$ac_ext |
---|
3294 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3295 | /* end confdefs.h. */ |
---|
3296 | $ac_declaration |
---|
3297 | #include <stdlib.h> |
---|
3298 | int |
---|
3299 | main () |
---|
3300 | { |
---|
3301 | exit (42); |
---|
3302 | ; |
---|
3303 | return 0; |
---|
3304 | } |
---|
3305 | _ACEOF |
---|
3306 | rm -f conftest.$ac_objext |
---|
3307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3308 | (eval $ac_compile) 2>conftest.er1 |
---|
3309 | ac_status=$? |
---|
3310 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3311 | rm -f conftest.er1 |
---|
3312 | cat conftest.err >&5 |
---|
3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3314 | (exit $ac_status); } && |
---|
3315 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3316 | || test ! -s conftest.err' |
---|
3317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3318 | (eval $ac_try) 2>&5 |
---|
3319 | ac_status=$? |
---|
3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3321 | (exit $ac_status); }; } && |
---|
3322 | { ac_try='test -s conftest.$ac_objext' |
---|
3323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3324 | (eval $ac_try) 2>&5 |
---|
3325 | ac_status=$? |
---|
3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3327 | (exit $ac_status); }; }; then |
---|
3328 | : |
---|
3329 | else |
---|
3330 | echo "$as_me: failed program was:" >&5 |
---|
3331 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3332 | |
---|
3333 | continue |
---|
3334 | fi |
---|
3335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3336 | cat >conftest.$ac_ext <<_ACEOF |
---|
3337 | /* confdefs.h. */ |
---|
3338 | _ACEOF |
---|
3339 | cat confdefs.h >>conftest.$ac_ext |
---|
3340 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3341 | /* end confdefs.h. */ |
---|
3342 | $ac_declaration |
---|
3343 | int |
---|
3344 | main () |
---|
3345 | { |
---|
3346 | exit (42); |
---|
3347 | ; |
---|
3348 | return 0; |
---|
3349 | } |
---|
3350 | _ACEOF |
---|
3351 | rm -f conftest.$ac_objext |
---|
3352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3353 | (eval $ac_compile) 2>conftest.er1 |
---|
3354 | ac_status=$? |
---|
3355 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3356 | rm -f conftest.er1 |
---|
3357 | cat conftest.err >&5 |
---|
3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3359 | (exit $ac_status); } && |
---|
3360 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3361 | || test ! -s conftest.err' |
---|
3362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3363 | (eval $ac_try) 2>&5 |
---|
3364 | ac_status=$? |
---|
3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3366 | (exit $ac_status); }; } && |
---|
3367 | { ac_try='test -s conftest.$ac_objext' |
---|
3368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3369 | (eval $ac_try) 2>&5 |
---|
3370 | ac_status=$? |
---|
3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3372 | (exit $ac_status); }; }; then |
---|
3373 | break |
---|
3374 | else |
---|
3375 | echo "$as_me: failed program was:" >&5 |
---|
3376 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3377 | |
---|
3378 | fi |
---|
3379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3380 | done |
---|
3381 | rm -f conftest* |
---|
3382 | if test -n "$ac_declaration"; then |
---|
3383 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3384 | echo $ac_declaration >>confdefs.h |
---|
3385 | echo '#endif' >>confdefs.h |
---|
3386 | fi |
---|
3387 | |
---|
3388 | else |
---|
3389 | echo "$as_me: failed program was:" >&5 |
---|
3390 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3391 | |
---|
3392 | fi |
---|
3393 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3394 | ac_ext=c |
---|
3395 | ac_cpp='$CPP $CPPFLAGS' |
---|
3396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3399 | |
---|
3400 | depcc="$CC" am_compiler_list= |
---|
3401 | |
---|
3402 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3403 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3404 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3406 | else |
---|
3407 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3408 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3409 | # making bogus files that we don't know about and never remove. For |
---|
3410 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3411 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3412 | # in D'. |
---|
3413 | mkdir conftest.dir |
---|
3414 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3415 | # using a relative directory. |
---|
3416 | cp "$am_depcomp" conftest.dir |
---|
3417 | cd conftest.dir |
---|
3418 | # We will build objects and dependencies in a subdirectory because |
---|
3419 | # it helps to detect inapplicable dependency modes. For instance |
---|
3420 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3421 | # side effect of compilation, but ICC will put the dependencies in |
---|
3422 | # the current directory while Tru64 will put them in the object |
---|
3423 | # directory. |
---|
3424 | mkdir sub |
---|
3425 | |
---|
3426 | am_cv_CC_dependencies_compiler_type=none |
---|
3427 | if test "$am_compiler_list" = ""; then |
---|
3428 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3429 | fi |
---|
3430 | for depmode in $am_compiler_list; do |
---|
3431 | # Setup a source with many dependencies, because some compilers |
---|
3432 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3433 | # we should not choose a depcomp mode which is confused by this. |
---|
3434 | # |
---|
3435 | # We need to recreate these files for each test, as the compiler may |
---|
3436 | # overwrite some of them when testing with obscure command lines. |
---|
3437 | # This happens at least with the AIX C compiler. |
---|
3438 | : > sub/conftest.c |
---|
3439 | for i in 1 2 3 4 5 6; do |
---|
3440 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3441 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3442 | # Solaris 8's {/usr,}/bin/sh. |
---|
3443 | touch sub/conftst$i.h |
---|
3444 | done |
---|
3445 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3446 | |
---|
3447 | case $depmode in |
---|
3448 | nosideeffect) |
---|
3449 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3450 | # only be used when explicitly requested |
---|
3451 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3452 | continue |
---|
3453 | else |
---|
3454 | break |
---|
3455 | fi |
---|
3456 | ;; |
---|
3457 | none) break ;; |
---|
3458 | esac |
---|
3459 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3460 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3461 | # handle `-M -o', and we need to detect this. |
---|
3462 | if depmode=$depmode \ |
---|
3463 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3464 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3465 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3466 | >/dev/null 2>conftest.err && |
---|
3467 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3468 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3469 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3470 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3471 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3472 | # that says an option was ignored or not supported. |
---|
3473 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3474 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3475 | # The diagnosis changed in icc 8.0: |
---|
3476 | # icc: Command line remark: option '-MP' not supported |
---|
3477 | if (grep 'ignoring option' conftest.err || |
---|
3478 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3479 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3480 | break |
---|
3481 | fi |
---|
3482 | fi |
---|
3483 | done |
---|
3484 | |
---|
3485 | cd .. |
---|
3486 | rm -rf conftest.dir |
---|
3487 | else |
---|
3488 | am_cv_CC_dependencies_compiler_type=none |
---|
3489 | fi |
---|
3490 | |
---|
3491 | fi |
---|
3492 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3493 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3494 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3495 | |
---|
3496 | |
---|
3497 | |
---|
3498 | if |
---|
3499 | test "x$enable_dependency_tracking" != xno \ |
---|
3500 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3501 | am__fastdepCC_TRUE= |
---|
3502 | am__fastdepCC_FALSE='#' |
---|
3503 | else |
---|
3504 | am__fastdepCC_TRUE='#' |
---|
3505 | am__fastdepCC_FALSE= |
---|
3506 | fi |
---|
3507 | |
---|
3508 | |
---|
3509 | |
---|
3510 | ac_ext=c |
---|
3511 | ac_cpp='$CPP $CPPFLAGS' |
---|
3512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3515 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3516 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3517 | # On Suns, sometimes $CPP names a directory. |
---|
3518 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3519 | CPP= |
---|
3520 | fi |
---|
3521 | if test -z "$CPP"; then |
---|
3522 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3524 | else |
---|
3525 | # Double quotes because CPP needs to be expanded |
---|
3526 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3527 | do |
---|
3528 | ac_preproc_ok=false |
---|
3529 | for ac_c_preproc_warn_flag in '' yes |
---|
3530 | do |
---|
3531 | # Use a header file that comes with gcc, so configuring glibc |
---|
3532 | # with a fresh cross-compiler works. |
---|
3533 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3534 | # <limits.h> exists even on freestanding compilers. |
---|
3535 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3536 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3537 | cat >conftest.$ac_ext <<_ACEOF |
---|
3538 | /* confdefs.h. */ |
---|
3539 | _ACEOF |
---|
3540 | cat confdefs.h >>conftest.$ac_ext |
---|
3541 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3542 | /* end confdefs.h. */ |
---|
3543 | #ifdef __STDC__ |
---|
3544 | # include <limits.h> |
---|
3545 | #else |
---|
3546 | # include <assert.h> |
---|
3547 | #endif |
---|
3548 | Syntax error |
---|
3549 | _ACEOF |
---|
3550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3552 | ac_status=$? |
---|
3553 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3554 | rm -f conftest.er1 |
---|
3555 | cat conftest.err >&5 |
---|
3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3557 | (exit $ac_status); } >/dev/null; then |
---|
3558 | if test -s conftest.err; then |
---|
3559 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3561 | else |
---|
3562 | ac_cpp_err= |
---|
3563 | fi |
---|
3564 | else |
---|
3565 | ac_cpp_err=yes |
---|
3566 | fi |
---|
3567 | if test -z "$ac_cpp_err"; then |
---|
3568 | : |
---|
3569 | else |
---|
3570 | echo "$as_me: failed program was:" >&5 |
---|
3571 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3572 | |
---|
3573 | # Broken: fails on valid input. |
---|
3574 | continue |
---|
3575 | fi |
---|
3576 | rm -f conftest.err conftest.$ac_ext |
---|
3577 | |
---|
3578 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3579 | # can be detected and how. |
---|
3580 | cat >conftest.$ac_ext <<_ACEOF |
---|
3581 | /* confdefs.h. */ |
---|
3582 | _ACEOF |
---|
3583 | cat confdefs.h >>conftest.$ac_ext |
---|
3584 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3585 | /* end confdefs.h. */ |
---|
3586 | #include <ac_nonexistent.h> |
---|
3587 | _ACEOF |
---|
3588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3590 | ac_status=$? |
---|
3591 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3592 | rm -f conftest.er1 |
---|
3593 | cat conftest.err >&5 |
---|
3594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3595 | (exit $ac_status); } >/dev/null; then |
---|
3596 | if test -s conftest.err; then |
---|
3597 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3598 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3599 | else |
---|
3600 | ac_cpp_err= |
---|
3601 | fi |
---|
3602 | else |
---|
3603 | ac_cpp_err=yes |
---|
3604 | fi |
---|
3605 | if test -z "$ac_cpp_err"; then |
---|
3606 | # Broken: success on invalid input. |
---|
3607 | continue |
---|
3608 | else |
---|
3609 | echo "$as_me: failed program was:" >&5 |
---|
3610 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3611 | |
---|
3612 | # Passes both tests. |
---|
3613 | ac_preproc_ok=: |
---|
3614 | break |
---|
3615 | fi |
---|
3616 | rm -f conftest.err conftest.$ac_ext |
---|
3617 | |
---|
3618 | done |
---|
3619 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3620 | rm -f conftest.err conftest.$ac_ext |
---|
3621 | if $ac_preproc_ok; then |
---|
3622 | break |
---|
3623 | fi |
---|
3624 | |
---|
3625 | done |
---|
3626 | ac_cv_prog_CPP=$CPP |
---|
3627 | |
---|
3628 | fi |
---|
3629 | CPP=$ac_cv_prog_CPP |
---|
3630 | else |
---|
3631 | ac_cv_prog_CPP=$CPP |
---|
3632 | fi |
---|
3633 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3634 | echo "${ECHO_T}$CPP" >&6 |
---|
3635 | ac_preproc_ok=false |
---|
3636 | for ac_c_preproc_warn_flag in '' yes |
---|
3637 | do |
---|
3638 | # Use a header file that comes with gcc, so configuring glibc |
---|
3639 | # with a fresh cross-compiler works. |
---|
3640 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3641 | # <limits.h> exists even on freestanding compilers. |
---|
3642 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3643 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3644 | cat >conftest.$ac_ext <<_ACEOF |
---|
3645 | /* confdefs.h. */ |
---|
3646 | _ACEOF |
---|
3647 | cat confdefs.h >>conftest.$ac_ext |
---|
3648 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3649 | /* end confdefs.h. */ |
---|
3650 | #ifdef __STDC__ |
---|
3651 | # include <limits.h> |
---|
3652 | #else |
---|
3653 | # include <assert.h> |
---|
3654 | #endif |
---|
3655 | Syntax error |
---|
3656 | _ACEOF |
---|
3657 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3658 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3659 | ac_status=$? |
---|
3660 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3661 | rm -f conftest.er1 |
---|
3662 | cat conftest.err >&5 |
---|
3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3664 | (exit $ac_status); } >/dev/null; then |
---|
3665 | if test -s conftest.err; then |
---|
3666 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3667 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3668 | else |
---|
3669 | ac_cpp_err= |
---|
3670 | fi |
---|
3671 | else |
---|
3672 | ac_cpp_err=yes |
---|
3673 | fi |
---|
3674 | if test -z "$ac_cpp_err"; then |
---|
3675 | : |
---|
3676 | else |
---|
3677 | echo "$as_me: failed program was:" >&5 |
---|
3678 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3679 | |
---|
3680 | # Broken: fails on valid input. |
---|
3681 | continue |
---|
3682 | fi |
---|
3683 | rm -f conftest.err conftest.$ac_ext |
---|
3684 | |
---|
3685 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3686 | # can be detected and how. |
---|
3687 | cat >conftest.$ac_ext <<_ACEOF |
---|
3688 | /* confdefs.h. */ |
---|
3689 | _ACEOF |
---|
3690 | cat confdefs.h >>conftest.$ac_ext |
---|
3691 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3692 | /* end confdefs.h. */ |
---|
3693 | #include <ac_nonexistent.h> |
---|
3694 | _ACEOF |
---|
3695 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3696 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3697 | ac_status=$? |
---|
3698 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3699 | rm -f conftest.er1 |
---|
3700 | cat conftest.err >&5 |
---|
3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3702 | (exit $ac_status); } >/dev/null; then |
---|
3703 | if test -s conftest.err; then |
---|
3704 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3705 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3706 | else |
---|
3707 | ac_cpp_err= |
---|
3708 | fi |
---|
3709 | else |
---|
3710 | ac_cpp_err=yes |
---|
3711 | fi |
---|
3712 | if test -z "$ac_cpp_err"; then |
---|
3713 | # Broken: success on invalid input. |
---|
3714 | continue |
---|
3715 | else |
---|
3716 | echo "$as_me: failed program was:" >&5 |
---|
3717 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3718 | |
---|
3719 | # Passes both tests. |
---|
3720 | ac_preproc_ok=: |
---|
3721 | break |
---|
3722 | fi |
---|
3723 | rm -f conftest.err conftest.$ac_ext |
---|
3724 | |
---|
3725 | done |
---|
3726 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3727 | rm -f conftest.err conftest.$ac_ext |
---|
3728 | if $ac_preproc_ok; then |
---|
3729 | : |
---|
3730 | else |
---|
3731 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3732 | See \`config.log' for more details." >&5 |
---|
3733 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3734 | See \`config.log' for more details." >&2;} |
---|
3735 | { (exit 1); exit 1; }; } |
---|
3736 | fi |
---|
3737 | |
---|
3738 | ac_ext=c |
---|
3739 | ac_cpp='$CPP $CPPFLAGS' |
---|
3740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3743 | |
---|
3744 | |
---|
3745 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3746 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3747 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3749 | else |
---|
3750 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3751 | then ac_cv_prog_egrep='grep -E' |
---|
3752 | else ac_cv_prog_egrep='egrep' |
---|
3753 | fi |
---|
3754 | fi |
---|
3755 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3756 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3757 | EGREP=$ac_cv_prog_egrep |
---|
3758 | |
---|
3759 | |
---|
3760 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3761 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3762 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3764 | else |
---|
3765 | cat >conftest.$ac_ext <<_ACEOF |
---|
3766 | /* confdefs.h. */ |
---|
3767 | _ACEOF |
---|
3768 | cat confdefs.h >>conftest.$ac_ext |
---|
3769 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3770 | /* end confdefs.h. */ |
---|
3771 | #include <stdlib.h> |
---|
3772 | #include <stdarg.h> |
---|
3773 | #include <string.h> |
---|
3774 | #include <float.h> |
---|
3775 | |
---|
3776 | int |
---|
3777 | main () |
---|
3778 | { |
---|
3779 | |
---|
3780 | ; |
---|
3781 | return 0; |
---|
3782 | } |
---|
3783 | _ACEOF |
---|
3784 | rm -f conftest.$ac_objext |
---|
3785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3786 | (eval $ac_compile) 2>conftest.er1 |
---|
3787 | ac_status=$? |
---|
3788 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3789 | rm -f conftest.er1 |
---|
3790 | cat conftest.err >&5 |
---|
3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3792 | (exit $ac_status); } && |
---|
3793 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3794 | || test ! -s conftest.err' |
---|
3795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3796 | (eval $ac_try) 2>&5 |
---|
3797 | ac_status=$? |
---|
3798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3799 | (exit $ac_status); }; } && |
---|
3800 | { ac_try='test -s conftest.$ac_objext' |
---|
3801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3802 | (eval $ac_try) 2>&5 |
---|
3803 | ac_status=$? |
---|
3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3805 | (exit $ac_status); }; }; then |
---|
3806 | ac_cv_header_stdc=yes |
---|
3807 | else |
---|
3808 | echo "$as_me: failed program was:" >&5 |
---|
3809 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3810 | |
---|
3811 | ac_cv_header_stdc=no |
---|
3812 | fi |
---|
3813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3814 | |
---|
3815 | if test $ac_cv_header_stdc = yes; then |
---|
3816 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3817 | cat >conftest.$ac_ext <<_ACEOF |
---|
3818 | /* confdefs.h. */ |
---|
3819 | _ACEOF |
---|
3820 | cat confdefs.h >>conftest.$ac_ext |
---|
3821 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3822 | /* end confdefs.h. */ |
---|
3823 | #include <string.h> |
---|
3824 | |
---|
3825 | _ACEOF |
---|
3826 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3827 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3828 | : |
---|
3829 | else |
---|
3830 | ac_cv_header_stdc=no |
---|
3831 | fi |
---|
3832 | rm -f conftest* |
---|
3833 | |
---|
3834 | fi |
---|
3835 | |
---|
3836 | if test $ac_cv_header_stdc = yes; then |
---|
3837 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3838 | cat >conftest.$ac_ext <<_ACEOF |
---|
3839 | /* confdefs.h. */ |
---|
3840 | _ACEOF |
---|
3841 | cat confdefs.h >>conftest.$ac_ext |
---|
3842 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3843 | /* end confdefs.h. */ |
---|
3844 | #include <stdlib.h> |
---|
3845 | |
---|
3846 | _ACEOF |
---|
3847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3848 | $EGREP "free" >/dev/null 2>&1; then |
---|
3849 | : |
---|
3850 | else |
---|
3851 | ac_cv_header_stdc=no |
---|
3852 | fi |
---|
3853 | rm -f conftest* |
---|
3854 | |
---|
3855 | fi |
---|
3856 | |
---|
3857 | if test $ac_cv_header_stdc = yes; then |
---|
3858 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3859 | if test "$cross_compiling" = yes; then |
---|
3860 | : |
---|
3861 | else |
---|
3862 | cat >conftest.$ac_ext <<_ACEOF |
---|
3863 | /* confdefs.h. */ |
---|
3864 | _ACEOF |
---|
3865 | cat confdefs.h >>conftest.$ac_ext |
---|
3866 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3867 | /* end confdefs.h. */ |
---|
3868 | #include <ctype.h> |
---|
3869 | #if ((' ' & 0x0FF) == 0x020) |
---|
3870 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3871 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3872 | #else |
---|
3873 | # define ISLOWER(c) \ |
---|
3874 | (('a' <= (c) && (c) <= 'i') \ |
---|
3875 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3876 | || ('s' <= (c) && (c) <= 'z')) |
---|
3877 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3878 | #endif |
---|
3879 | |
---|
3880 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3881 | int |
---|
3882 | main () |
---|
3883 | { |
---|
3884 | int i; |
---|
3885 | for (i = 0; i < 256; i++) |
---|
3886 | if (XOR (islower (i), ISLOWER (i)) |
---|
3887 | || toupper (i) != TOUPPER (i)) |
---|
3888 | exit(2); |
---|
3889 | exit (0); |
---|
3890 | } |
---|
3891 | _ACEOF |
---|
3892 | rm -f conftest$ac_exeext |
---|
3893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3894 | (eval $ac_link) 2>&5 |
---|
3895 | ac_status=$? |
---|
3896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3897 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3899 | (eval $ac_try) 2>&5 |
---|
3900 | ac_status=$? |
---|
3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3902 | (exit $ac_status); }; }; then |
---|
3903 | : |
---|
3904 | else |
---|
3905 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3906 | echo "$as_me: failed program was:" >&5 |
---|
3907 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3908 | |
---|
3909 | ( exit $ac_status ) |
---|
3910 | ac_cv_header_stdc=no |
---|
3911 | fi |
---|
3912 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3913 | fi |
---|
3914 | fi |
---|
3915 | fi |
---|
3916 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3917 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3918 | if test $ac_cv_header_stdc = yes; then |
---|
3919 | |
---|
3920 | cat >>confdefs.h <<\_ACEOF |
---|
3921 | #define STDC_HEADERS 1 |
---|
3922 | _ACEOF |
---|
3923 | |
---|
3924 | fi |
---|
3925 | |
---|
3926 | |
---|
3927 | ## THIS IS OUR DEFAULT-DATA-DIRECTORY |
---|
3928 | |
---|
3929 | ################################## |
---|
3930 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
3931 | ################################## |
---|
3932 | #----------------# |
---|
3933 | # Data-Directory # |
---|
3934 | #----------------# |
---|
3935 | DATA_DIR=$datadir |
---|
3936 | echo \$\{prefix\} |
---|
3937 | if test $DATA_DIR = \$\{prefix\}/share ; then |
---|
3938 | echo "not given" |
---|
3939 | DATA_DIR=/usr/share |
---|
3940 | else |
---|
3941 | echo "given: $DATA_DIR" |
---|
3942 | fi |
---|
3943 | |
---|
3944 | cat >>confdefs.h <<_ACEOF |
---|
3945 | #define DATADIR "$DATA_DIR" |
---|
3946 | _ACEOF |
---|
3947 | |
---|
3948 | |
---|
3949 | #-----------------# |
---|
3950 | # DEBUG-statement # |
---|
3951 | #-----------------# |
---|
3952 | DEBUG=no |
---|
3953 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
3954 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
3955 | # Check whether --enable-debug or --disable-debug was given. |
---|
3956 | if test "${enable_debug+set}" = set; then |
---|
3957 | enableval="$enable_debug" |
---|
3958 | DEBUG=$enableval |
---|
3959 | fi; |
---|
3960 | |
---|
3961 | if test x$DEBUG = xno; then |
---|
3962 | echo "no" |
---|
3963 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
3964 | DEBUG=4 |
---|
3965 | elif test x$DEBUG = xyes; then |
---|
3966 | echo "yes" |
---|
3967 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
3968 | DEBUG=4 |
---|
3969 | else |
---|
3970 | echo "yes: setting debuglevel to to $DEBUG" |
---|
3971 | fi |
---|
3972 | |
---|
3973 | cat >>confdefs.h <<_ACEOF |
---|
3974 | #define DEBUG $DEBUG |
---|
3975 | _ACEOF |
---|
3976 | |
---|
3977 | |
---|
3978 | |
---|
3979 | |
---|
3980 | #---------------# |
---|
3981 | # Modular Debug # |
---|
3982 | #---------------# |
---|
3983 | MODULAR_DEBUG=yes |
---|
3984 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
3985 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
3986 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
3987 | if test "${enable_modular_debug+set}" = set; then |
---|
3988 | enableval="$enable_modular_debug" |
---|
3989 | MODULAR_DEBUG=$enableval |
---|
3990 | fi; |
---|
3991 | |
---|
3992 | if test x$MODULAR_DEBUG = xno; then |
---|
3993 | echo "no" |
---|
3994 | elif test x$MODULAR_DEBUG = xyes; then |
---|
3995 | echo "yes" |
---|
3996 | |
---|
3997 | cat >>confdefs.h <<_ACEOF |
---|
3998 | #define MODULAR_DEBUG 1 |
---|
3999 | _ACEOF |
---|
4000 | |
---|
4001 | fi |
---|
4002 | |
---|
4003 | #--------------# |
---|
4004 | # GTK-disabled # |
---|
4005 | #--------------# |
---|
4006 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
4007 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
4008 | # Check whether --enable-gtk or --disable-gtk was given. |
---|
4009 | if test "${enable_gtk+set}" = set; then |
---|
4010 | enableval="$enable_gtk" |
---|
4011 | def_gtk=no |
---|
4012 | else |
---|
4013 | def_gtk=yes |
---|
4014 | fi; |
---|
4015 | if test x$def_gtk = xyes; then |
---|
4016 | echo "yes" |
---|
4017 | fi |
---|
4018 | if test x$def_gtk = xno; then |
---|
4019 | echo "no" |
---|
4020 | fi |
---|
4021 | |
---|
4022 | #------------------# |
---|
4023 | # libCurl-disabled # |
---|
4024 | #------------------# |
---|
4025 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
4026 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
4027 | # Check whether --enable-curl or --disable-curl was given. |
---|
4028 | if test "${enable_curl+set}" = set; then |
---|
4029 | enableval="$enable_curl" |
---|
4030 | def_curl=no |
---|
4031 | else |
---|
4032 | def_curl=yes |
---|
4033 | fi; |
---|
4034 | if test x$def_curl = xyes; then |
---|
4035 | echo "yes" |
---|
4036 | fi |
---|
4037 | if test x$def_curl = xno; then |
---|
4038 | echo "no" |
---|
4039 | fi |
---|
4040 | |
---|
4041 | #-------------------# |
---|
4042 | # SubProject-enable # |
---|
4043 | #-------------------# |
---|
4044 | def_sub_projects=no |
---|
4045 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
4046 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
4047 | |
---|
4048 | # Check whether --with-sub-projects or --without-sub-projects was given. |
---|
4049 | if test "${with_sub_projects+set}" = set; then |
---|
4050 | withval="$with_sub_projects" |
---|
4051 | def_sub_projects=yes |
---|
4052 | fi; |
---|
4053 | if test x$def_sub_projects = xyes; then |
---|
4054 | echo "yes" |
---|
4055 | fi |
---|
4056 | if test x$def_sub_projects = xno; then |
---|
4057 | echo "no" |
---|
4058 | fi |
---|
4059 | |
---|
4060 | |
---|
4061 | if test x$def_sub_projects = xyes; then |
---|
4062 | SUB_PROJECTS_TRUE= |
---|
4063 | SUB_PROJECTS_FALSE='#' |
---|
4064 | else |
---|
4065 | SUB_PROJECTS_TRUE='#' |
---|
4066 | SUB_PROJECTS_FALSE= |
---|
4067 | fi |
---|
4068 | |
---|
4069 | |
---|
4070 | #-------------------# |
---|
4071 | # Profiling Enabled # |
---|
4072 | #-------------------# |
---|
4073 | def_profiling=no |
---|
4074 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
4075 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
4076 | # Check whether --enable-profile or --disable-profile was given. |
---|
4077 | if test "${enable_profile+set}" = set; then |
---|
4078 | enableval="$enable_profile" |
---|
4079 | def_profiling=yes |
---|
4080 | fi; |
---|
4081 | if test x$def_profiling = xyes; then |
---|
4082 | echo "yes" |
---|
4083 | CXXFLAGS="$CXXFLAGS -pg" |
---|
4084 | fi |
---|
4085 | if test x$def_profiling = xno; then |
---|
4086 | echo "no" |
---|
4087 | fi |
---|
4088 | |
---|
4089 | #----------------# |
---|
4090 | # efence Enabled # |
---|
4091 | #----------------# |
---|
4092 | def_efence=no |
---|
4093 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
4094 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
4095 | # Check whether --enable-efence or --disable-efence was given. |
---|
4096 | if test "${enable_efence+set}" = set; then |
---|
4097 | enableval="$enable_efence" |
---|
4098 | def_efence=yes |
---|
4099 | fi; |
---|
4100 | if test x$def_efence = xyes; then |
---|
4101 | echo "yes" |
---|
4102 | fi |
---|
4103 | if test x$def_efence = xno; then |
---|
4104 | echo "no" |
---|
4105 | fi |
---|
4106 | |
---|
4107 | #----------------------# |
---|
4108 | # Documentation-enable # |
---|
4109 | #----------------------# |
---|
4110 | def_documentation=no |
---|
4111 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
4112 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
4113 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
4114 | if test "${enable_documentation+set}" = set; then |
---|
4115 | enableval="$enable_documentation" |
---|
4116 | def_documentation=yes |
---|
4117 | fi; |
---|
4118 | if test x$def_documentation = xyes; then |
---|
4119 | echo "yes" |
---|
4120 | fi |
---|
4121 | if test x$def_documentation = xno; then |
---|
4122 | echo "no" |
---|
4123 | fi |
---|
4124 | |
---|
4125 | |
---|
4126 | if test x$def_documentation = xyes; then |
---|
4127 | DOCUMENTATION_TRUE= |
---|
4128 | DOCUMENTATION_FALSE='#' |
---|
4129 | else |
---|
4130 | DOCUMENTATION_TRUE='#' |
---|
4131 | DOCUMENTATION_FALSE= |
---|
4132 | fi |
---|
4133 | |
---|
4134 | |
---|
4135 | ####################### |
---|
4136 | ## PROGRAMM CHECKING ## |
---|
4137 | ## 3. party Programs ## |
---|
4138 | ####################### |
---|
4139 | |
---|
4140 | #----------------------# |
---|
4141 | # checking for Doxygen # |
---|
4142 | #----------------------# |
---|
4143 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
4144 | set dummy doxygen; ac_word=$2 |
---|
4145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4147 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4149 | else |
---|
4150 | case $DOXYGEN in |
---|
4151 | [\\/]* | ?:[\\/]*) |
---|
4152 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
4153 | ;; |
---|
4154 | *) |
---|
4155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4156 | for as_dir in $PATH |
---|
4157 | do |
---|
4158 | IFS=$as_save_IFS |
---|
4159 | test -z "$as_dir" && as_dir=. |
---|
4160 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4162 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
4163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4164 | break 2 |
---|
4165 | fi |
---|
4166 | done |
---|
4167 | done |
---|
4168 | |
---|
4169 | ;; |
---|
4170 | esac |
---|
4171 | fi |
---|
4172 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
4173 | |
---|
4174 | if test -n "$DOXYGEN"; then |
---|
4175 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
4176 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
4177 | else |
---|
4178 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4179 | echo "${ECHO_T}no" >&6 |
---|
4180 | fi |
---|
4181 | |
---|
4182 | |
---|
4183 | |
---|
4184 | if test $DOXYGEN; then |
---|
4185 | DOXYGEN_TRUE= |
---|
4186 | DOXYGEN_FALSE='#' |
---|
4187 | else |
---|
4188 | DOXYGEN_TRUE='#' |
---|
4189 | DOXYGEN_FALSE= |
---|
4190 | fi |
---|
4191 | |
---|
4192 | |
---|
4193 | #--------------------# |
---|
4194 | # checking for gprof # |
---|
4195 | #--------------------# |
---|
4196 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
4197 | set dummy gprof; ac_word=$2 |
---|
4198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4200 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
4201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4202 | else |
---|
4203 | case $GPROF in |
---|
4204 | [\\/]* | ?:[\\/]*) |
---|
4205 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
4206 | ;; |
---|
4207 | *) |
---|
4208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4209 | for as_dir in $PATH |
---|
4210 | do |
---|
4211 | IFS=$as_save_IFS |
---|
4212 | test -z "$as_dir" && as_dir=. |
---|
4213 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4214 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4215 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
4216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4217 | break 2 |
---|
4218 | fi |
---|
4219 | done |
---|
4220 | done |
---|
4221 | |
---|
4222 | ;; |
---|
4223 | esac |
---|
4224 | fi |
---|
4225 | GPROF=$ac_cv_path_GPROF |
---|
4226 | |
---|
4227 | if test -n "$GPROF"; then |
---|
4228 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
4229 | echo "${ECHO_T}$GPROF" >&6 |
---|
4230 | else |
---|
4231 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4232 | echo "${ECHO_T}no" >&6 |
---|
4233 | fi |
---|
4234 | |
---|
4235 | |
---|
4236 | #-------------------------# |
---|
4237 | # checking for pkg-config # |
---|
4238 | #-------------------------# |
---|
4239 | if test x$def_gtk = xyes; then |
---|
4240 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
4241 | set dummy pkg-config; ac_word=$2 |
---|
4242 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4244 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
4245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4246 | else |
---|
4247 | case $PKG_CONFIG in |
---|
4248 | [\\/]* | ?:[\\/]*) |
---|
4249 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
4250 | ;; |
---|
4251 | *) |
---|
4252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4253 | for as_dir in $PATH |
---|
4254 | do |
---|
4255 | IFS=$as_save_IFS |
---|
4256 | test -z "$as_dir" && as_dir=. |
---|
4257 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4258 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4259 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
4260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4261 | break 2 |
---|
4262 | fi |
---|
4263 | done |
---|
4264 | done |
---|
4265 | |
---|
4266 | ;; |
---|
4267 | esac |
---|
4268 | fi |
---|
4269 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
4270 | |
---|
4271 | if test -n "$PKG_CONFIG"; then |
---|
4272 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
4273 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
4274 | else |
---|
4275 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4276 | echo "${ECHO_T}no" >&6 |
---|
4277 | fi |
---|
4278 | |
---|
4279 | fi |
---|
4280 | |
---|
4281 | |
---|
4282 | ######################### |
---|
4283 | ## CHECKING FOR SYSTEM ## |
---|
4284 | ######################### |
---|
4285 | ## here the system is checked, and openGL is included |
---|
4286 | ## also checking for SDL on differen Systems |
---|
4287 | |
---|
4288 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
4289 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
4290 | ## checking for openGL-environment and other sys-specific parameters |
---|
4291 | case "$target" in |
---|
4292 | |
---|
4293 | ########### |
---|
4294 | #---------# |
---|
4295 | # WINDOWS # |
---|
4296 | #---------# |
---|
4297 | ########### |
---|
4298 | *-*-mingw32*) |
---|
4299 | echo "mingw-WINDOWS detected" |
---|
4300 | |
---|
4301 | CPPFLAGS="-I/usr/include -I/mingw/include" |
---|
4302 | |
---|
4303 | mingw="yes" |
---|
4304 | MSBITFIELDS="-mms-bitfields" |
---|
4305 | MWINDOWS="-mwindows" |
---|
4306 | |
---|
4307 | |
---|
4308 | |
---|
4309 | # checking for mingw32 |
---|
4310 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4311 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4312 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4314 | else |
---|
4315 | ac_check_lib_save_LIBS=$LIBS |
---|
4316 | LIBS="-lmingw32 $LIBS" |
---|
4317 | cat >conftest.$ac_ext <<_ACEOF |
---|
4318 | /* confdefs.h. */ |
---|
4319 | _ACEOF |
---|
4320 | cat confdefs.h >>conftest.$ac_ext |
---|
4321 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4322 | /* end confdefs.h. */ |
---|
4323 | |
---|
4324 | |
---|
4325 | int |
---|
4326 | main () |
---|
4327 | { |
---|
4328 | main (); |
---|
4329 | ; |
---|
4330 | return 0; |
---|
4331 | } |
---|
4332 | _ACEOF |
---|
4333 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4335 | (eval $ac_link) 2>conftest.er1 |
---|
4336 | ac_status=$? |
---|
4337 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4338 | rm -f conftest.er1 |
---|
4339 | cat conftest.err >&5 |
---|
4340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4341 | (exit $ac_status); } && |
---|
4342 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4343 | || test ! -s conftest.err' |
---|
4344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4345 | (eval $ac_try) 2>&5 |
---|
4346 | ac_status=$? |
---|
4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4348 | (exit $ac_status); }; } && |
---|
4349 | { ac_try='test -s conftest$ac_exeext' |
---|
4350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4351 | (eval $ac_try) 2>&5 |
---|
4352 | ac_status=$? |
---|
4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4354 | (exit $ac_status); }; }; then |
---|
4355 | ac_cv_lib_mingw32_main=yes |
---|
4356 | else |
---|
4357 | echo "$as_me: failed program was:" >&5 |
---|
4358 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4359 | |
---|
4360 | ac_cv_lib_mingw32_main=no |
---|
4361 | fi |
---|
4362 | rm -f conftest.err conftest.$ac_objext \ |
---|
4363 | conftest$ac_exeext conftest.$ac_ext |
---|
4364 | LIBS=$ac_check_lib_save_LIBS |
---|
4365 | fi |
---|
4366 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4367 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4368 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4369 | FOUND_mingw32=yes |
---|
4370 | fi |
---|
4371 | |
---|
4372 | if test x$FOUND_mingw32 = xyes; then |
---|
4373 | LIBS="$LIBS -lmingw32" |
---|
4374 | fi |
---|
4375 | |
---|
4376 | #-----------# |
---|
4377 | # SDL (win) # |
---|
4378 | #-----------# |
---|
4379 | # checking for SDL-headers |
---|
4380 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4381 | |
---|
4382 | |
---|
4383 | |
---|
4384 | |
---|
4385 | |
---|
4386 | |
---|
4387 | |
---|
4388 | |
---|
4389 | |
---|
4390 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4391 | inttypes.h stdint.h unistd.h |
---|
4392 | do |
---|
4393 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4398 | else |
---|
4399 | cat >conftest.$ac_ext <<_ACEOF |
---|
4400 | /* confdefs.h. */ |
---|
4401 | _ACEOF |
---|
4402 | cat confdefs.h >>conftest.$ac_ext |
---|
4403 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4404 | /* end confdefs.h. */ |
---|
4405 | $ac_includes_default |
---|
4406 | |
---|
4407 | #include <$ac_header> |
---|
4408 | _ACEOF |
---|
4409 | rm -f conftest.$ac_objext |
---|
4410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4411 | (eval $ac_compile) 2>conftest.er1 |
---|
4412 | ac_status=$? |
---|
4413 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4414 | rm -f conftest.er1 |
---|
4415 | cat conftest.err >&5 |
---|
4416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4417 | (exit $ac_status); } && |
---|
4418 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4419 | || test ! -s conftest.err' |
---|
4420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4421 | (eval $ac_try) 2>&5 |
---|
4422 | ac_status=$? |
---|
4423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4424 | (exit $ac_status); }; } && |
---|
4425 | { ac_try='test -s conftest.$ac_objext' |
---|
4426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4427 | (eval $ac_try) 2>&5 |
---|
4428 | ac_status=$? |
---|
4429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4430 | (exit $ac_status); }; }; then |
---|
4431 | eval "$as_ac_Header=yes" |
---|
4432 | else |
---|
4433 | echo "$as_me: failed program was:" >&5 |
---|
4434 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4435 | |
---|
4436 | eval "$as_ac_Header=no" |
---|
4437 | fi |
---|
4438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4439 | fi |
---|
4440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4442 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4443 | cat >>confdefs.h <<_ACEOF |
---|
4444 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4445 | _ACEOF |
---|
4446 | |
---|
4447 | fi |
---|
4448 | |
---|
4449 | done |
---|
4450 | |
---|
4451 | |
---|
4452 | |
---|
4453 | for ac_header in SDL/SDL.h |
---|
4454 | do |
---|
4455 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4457 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
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 | else |
---|
4465 | # Is the header compilable? |
---|
4466 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4467 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4468 | cat >conftest.$ac_ext <<_ACEOF |
---|
4469 | /* confdefs.h. */ |
---|
4470 | _ACEOF |
---|
4471 | cat confdefs.h >>conftest.$ac_ext |
---|
4472 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4473 | /* end confdefs.h. */ |
---|
4474 | $ac_includes_default |
---|
4475 | #include <$ac_header> |
---|
4476 | _ACEOF |
---|
4477 | rm -f conftest.$ac_objext |
---|
4478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4479 | (eval $ac_compile) 2>conftest.er1 |
---|
4480 | ac_status=$? |
---|
4481 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4482 | rm -f conftest.er1 |
---|
4483 | cat conftest.err >&5 |
---|
4484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4485 | (exit $ac_status); } && |
---|
4486 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4487 | || test ! -s conftest.err' |
---|
4488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4489 | (eval $ac_try) 2>&5 |
---|
4490 | ac_status=$? |
---|
4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4492 | (exit $ac_status); }; } && |
---|
4493 | { ac_try='test -s conftest.$ac_objext' |
---|
4494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4495 | (eval $ac_try) 2>&5 |
---|
4496 | ac_status=$? |
---|
4497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4498 | (exit $ac_status); }; }; then |
---|
4499 | ac_header_compiler=yes |
---|
4500 | else |
---|
4501 | echo "$as_me: failed program was:" >&5 |
---|
4502 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4503 | |
---|
4504 | ac_header_compiler=no |
---|
4505 | fi |
---|
4506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4507 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4508 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4509 | |
---|
4510 | # Is the header present? |
---|
4511 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4512 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4513 | cat >conftest.$ac_ext <<_ACEOF |
---|
4514 | /* confdefs.h. */ |
---|
4515 | _ACEOF |
---|
4516 | cat confdefs.h >>conftest.$ac_ext |
---|
4517 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4518 | /* end confdefs.h. */ |
---|
4519 | #include <$ac_header> |
---|
4520 | _ACEOF |
---|
4521 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4522 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4523 | ac_status=$? |
---|
4524 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4525 | rm -f conftest.er1 |
---|
4526 | cat conftest.err >&5 |
---|
4527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4528 | (exit $ac_status); } >/dev/null; then |
---|
4529 | if test -s conftest.err; then |
---|
4530 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4531 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4532 | else |
---|
4533 | ac_cpp_err= |
---|
4534 | fi |
---|
4535 | else |
---|
4536 | ac_cpp_err=yes |
---|
4537 | fi |
---|
4538 | if test -z "$ac_cpp_err"; then |
---|
4539 | ac_header_preproc=yes |
---|
4540 | else |
---|
4541 | echo "$as_me: failed program was:" >&5 |
---|
4542 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4543 | |
---|
4544 | ac_header_preproc=no |
---|
4545 | fi |
---|
4546 | rm -f conftest.err conftest.$ac_ext |
---|
4547 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4548 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4549 | |
---|
4550 | # So? What about this header? |
---|
4551 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4552 | yes:no: ) |
---|
4553 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4554 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4555 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4556 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4557 | ac_header_preproc=yes |
---|
4558 | ;; |
---|
4559 | no:yes:* ) |
---|
4560 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4561 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4562 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4563 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4564 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4565 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4566 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4567 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4568 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4569 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4570 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4571 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4572 | ( |
---|
4573 | cat <<\_ASBOX |
---|
4574 | ## ---------------------------------------------- ## |
---|
4575 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4576 | ## ---------------------------------------------- ## |
---|
4577 | _ASBOX |
---|
4578 | ) | |
---|
4579 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4580 | ;; |
---|
4581 | esac |
---|
4582 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4583 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4584 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4586 | else |
---|
4587 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4588 | fi |
---|
4589 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4590 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4591 | |
---|
4592 | fi |
---|
4593 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4594 | cat >>confdefs.h <<_ACEOF |
---|
4595 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4596 | _ACEOF |
---|
4597 | |
---|
4598 | else |
---|
4599 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4600 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4601 | { (exit 1); exit 1; }; } |
---|
4602 | fi |
---|
4603 | |
---|
4604 | done |
---|
4605 | |
---|
4606 | |
---|
4607 | #checking for libSDL |
---|
4608 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
4609 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
4610 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
4611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4612 | else |
---|
4613 | ac_check_lib_save_LIBS=$LIBS |
---|
4614 | LIBS="-lsdlmain $LIBS" |
---|
4615 | cat >conftest.$ac_ext <<_ACEOF |
---|
4616 | /* confdefs.h. */ |
---|
4617 | _ACEOF |
---|
4618 | cat confdefs.h >>conftest.$ac_ext |
---|
4619 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4620 | /* end confdefs.h. */ |
---|
4621 | |
---|
4622 | |
---|
4623 | int |
---|
4624 | main () |
---|
4625 | { |
---|
4626 | main (); |
---|
4627 | ; |
---|
4628 | return 0; |
---|
4629 | } |
---|
4630 | _ACEOF |
---|
4631 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4633 | (eval $ac_link) 2>conftest.er1 |
---|
4634 | ac_status=$? |
---|
4635 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4636 | rm -f conftest.er1 |
---|
4637 | cat conftest.err >&5 |
---|
4638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4639 | (exit $ac_status); } && |
---|
4640 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4641 | || test ! -s conftest.err' |
---|
4642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4643 | (eval $ac_try) 2>&5 |
---|
4644 | ac_status=$? |
---|
4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4646 | (exit $ac_status); }; } && |
---|
4647 | { ac_try='test -s conftest$ac_exeext' |
---|
4648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4649 | (eval $ac_try) 2>&5 |
---|
4650 | ac_status=$? |
---|
4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4652 | (exit $ac_status); }; }; then |
---|
4653 | ac_cv_lib_sdlmain_main=yes |
---|
4654 | else |
---|
4655 | echo "$as_me: failed program was:" >&5 |
---|
4656 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4657 | |
---|
4658 | ac_cv_lib_sdlmain_main=no |
---|
4659 | fi |
---|
4660 | rm -f conftest.err conftest.$ac_objext \ |
---|
4661 | conftest$ac_exeext conftest.$ac_ext |
---|
4662 | LIBS=$ac_check_lib_save_LIBS |
---|
4663 | fi |
---|
4664 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
4665 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
4666 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
4667 | FOUND_sdlmain=yes |
---|
4668 | fi |
---|
4669 | |
---|
4670 | if test x$FOUND_sdlmain = xyes ; then |
---|
4671 | LIBS="$LIBS -lsdlmain" |
---|
4672 | else |
---|
4673 | echo "------------------" |
---|
4674 | echo "SDL library not found." |
---|
4675 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4676 | echo "------------------" |
---|
4677 | exit 1 |
---|
4678 | fi |
---|
4679 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
4680 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
4681 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
4682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4683 | else |
---|
4684 | ac_check_lib_save_LIBS=$LIBS |
---|
4685 | LIBS="-lsdl $LIBS" |
---|
4686 | cat >conftest.$ac_ext <<_ACEOF |
---|
4687 | /* confdefs.h. */ |
---|
4688 | _ACEOF |
---|
4689 | cat confdefs.h >>conftest.$ac_ext |
---|
4690 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4691 | /* end confdefs.h. */ |
---|
4692 | |
---|
4693 | |
---|
4694 | int |
---|
4695 | main () |
---|
4696 | { |
---|
4697 | main (); |
---|
4698 | ; |
---|
4699 | return 0; |
---|
4700 | } |
---|
4701 | _ACEOF |
---|
4702 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4704 | (eval $ac_link) 2>conftest.er1 |
---|
4705 | ac_status=$? |
---|
4706 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4707 | rm -f conftest.er1 |
---|
4708 | cat conftest.err >&5 |
---|
4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4710 | (exit $ac_status); } && |
---|
4711 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4712 | || test ! -s conftest.err' |
---|
4713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4714 | (eval $ac_try) 2>&5 |
---|
4715 | ac_status=$? |
---|
4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4717 | (exit $ac_status); }; } && |
---|
4718 | { ac_try='test -s conftest$ac_exeext' |
---|
4719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4720 | (eval $ac_try) 2>&5 |
---|
4721 | ac_status=$? |
---|
4722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4723 | (exit $ac_status); }; }; then |
---|
4724 | ac_cv_lib_sdl_main=yes |
---|
4725 | else |
---|
4726 | echo "$as_me: failed program was:" >&5 |
---|
4727 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4728 | |
---|
4729 | ac_cv_lib_sdl_main=no |
---|
4730 | fi |
---|
4731 | rm -f conftest.err conftest.$ac_objext \ |
---|
4732 | conftest$ac_exeext conftest.$ac_ext |
---|
4733 | LIBS=$ac_check_lib_save_LIBS |
---|
4734 | fi |
---|
4735 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
4736 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
4737 | if test $ac_cv_lib_sdl_main = yes; then |
---|
4738 | FOUND_sdl=yes |
---|
4739 | fi |
---|
4740 | |
---|
4741 | if test x$FOUND_sdl = xyes ; then |
---|
4742 | LIBS="$LIBS -lsdl" |
---|
4743 | else |
---|
4744 | echo "------------------" |
---|
4745 | echo "SDL library not found." |
---|
4746 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4747 | echo "------------------" |
---|
4748 | exit -1 |
---|
4749 | fi |
---|
4750 | |
---|
4751 | #---------------# |
---|
4752 | # open-GL (win) # |
---|
4753 | #---------------# |
---|
4754 | # checking gl header |
---|
4755 | |
---|
4756 | for ac_header in GL/gl.h |
---|
4757 | do |
---|
4758 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4764 | fi |
---|
4765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4767 | else |
---|
4768 | # Is the header compilable? |
---|
4769 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4770 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4771 | cat >conftest.$ac_ext <<_ACEOF |
---|
4772 | /* confdefs.h. */ |
---|
4773 | _ACEOF |
---|
4774 | cat confdefs.h >>conftest.$ac_ext |
---|
4775 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4776 | /* end confdefs.h. */ |
---|
4777 | $ac_includes_default |
---|
4778 | #include <$ac_header> |
---|
4779 | _ACEOF |
---|
4780 | rm -f conftest.$ac_objext |
---|
4781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4782 | (eval $ac_compile) 2>conftest.er1 |
---|
4783 | ac_status=$? |
---|
4784 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4785 | rm -f conftest.er1 |
---|
4786 | cat conftest.err >&5 |
---|
4787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4788 | (exit $ac_status); } && |
---|
4789 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4790 | || test ! -s conftest.err' |
---|
4791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4792 | (eval $ac_try) 2>&5 |
---|
4793 | ac_status=$? |
---|
4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4795 | (exit $ac_status); }; } && |
---|
4796 | { ac_try='test -s conftest.$ac_objext' |
---|
4797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4798 | (eval $ac_try) 2>&5 |
---|
4799 | ac_status=$? |
---|
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4801 | (exit $ac_status); }; }; then |
---|
4802 | ac_header_compiler=yes |
---|
4803 | else |
---|
4804 | echo "$as_me: failed program was:" >&5 |
---|
4805 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4806 | |
---|
4807 | ac_header_compiler=no |
---|
4808 | fi |
---|
4809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4810 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4811 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4812 | |
---|
4813 | # Is the header present? |
---|
4814 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4815 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4816 | cat >conftest.$ac_ext <<_ACEOF |
---|
4817 | /* confdefs.h. */ |
---|
4818 | _ACEOF |
---|
4819 | cat confdefs.h >>conftest.$ac_ext |
---|
4820 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4821 | /* end confdefs.h. */ |
---|
4822 | #include <$ac_header> |
---|
4823 | _ACEOF |
---|
4824 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4825 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4826 | ac_status=$? |
---|
4827 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4828 | rm -f conftest.er1 |
---|
4829 | cat conftest.err >&5 |
---|
4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4831 | (exit $ac_status); } >/dev/null; then |
---|
4832 | if test -s conftest.err; then |
---|
4833 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4834 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4835 | else |
---|
4836 | ac_cpp_err= |
---|
4837 | fi |
---|
4838 | else |
---|
4839 | ac_cpp_err=yes |
---|
4840 | fi |
---|
4841 | if test -z "$ac_cpp_err"; then |
---|
4842 | ac_header_preproc=yes |
---|
4843 | else |
---|
4844 | echo "$as_me: failed program was:" >&5 |
---|
4845 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4846 | |
---|
4847 | ac_header_preproc=no |
---|
4848 | fi |
---|
4849 | rm -f conftest.err conftest.$ac_ext |
---|
4850 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4851 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4852 | |
---|
4853 | # So? What about this header? |
---|
4854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4855 | yes:no: ) |
---|
4856 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4857 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4859 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4860 | ac_header_preproc=yes |
---|
4861 | ;; |
---|
4862 | no:yes:* ) |
---|
4863 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4864 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4865 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4866 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4867 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4868 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4869 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4870 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4872 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4873 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4874 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4875 | ( |
---|
4876 | cat <<\_ASBOX |
---|
4877 | ## ---------------------------------------------- ## |
---|
4878 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4879 | ## ---------------------------------------------- ## |
---|
4880 | _ASBOX |
---|
4881 | ) | |
---|
4882 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4883 | ;; |
---|
4884 | esac |
---|
4885 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4887 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4889 | else |
---|
4890 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4891 | fi |
---|
4892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4894 | |
---|
4895 | fi |
---|
4896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4897 | cat >>confdefs.h <<_ACEOF |
---|
4898 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4899 | _ACEOF |
---|
4900 | |
---|
4901 | else |
---|
4902 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4903 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4904 | { (exit 1); exit 1; }; } |
---|
4905 | fi |
---|
4906 | |
---|
4907 | done |
---|
4908 | |
---|
4909 | # checking for Windows openGl library |
---|
4910 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4911 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4912 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4914 | else |
---|
4915 | ac_check_lib_save_LIBS=$LIBS |
---|
4916 | LIBS="-lopengl32 $LIBS" |
---|
4917 | cat >conftest.$ac_ext <<_ACEOF |
---|
4918 | /* confdefs.h. */ |
---|
4919 | _ACEOF |
---|
4920 | cat confdefs.h >>conftest.$ac_ext |
---|
4921 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4922 | /* end confdefs.h. */ |
---|
4923 | |
---|
4924 | |
---|
4925 | int |
---|
4926 | main () |
---|
4927 | { |
---|
4928 | main (); |
---|
4929 | ; |
---|
4930 | return 0; |
---|
4931 | } |
---|
4932 | _ACEOF |
---|
4933 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4935 | (eval $ac_link) 2>conftest.er1 |
---|
4936 | ac_status=$? |
---|
4937 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4938 | rm -f conftest.er1 |
---|
4939 | cat conftest.err >&5 |
---|
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4941 | (exit $ac_status); } && |
---|
4942 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4943 | || test ! -s conftest.err' |
---|
4944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4945 | (eval $ac_try) 2>&5 |
---|
4946 | ac_status=$? |
---|
4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4948 | (exit $ac_status); }; } && |
---|
4949 | { ac_try='test -s conftest$ac_exeext' |
---|
4950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4951 | (eval $ac_try) 2>&5 |
---|
4952 | ac_status=$? |
---|
4953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4954 | (exit $ac_status); }; }; then |
---|
4955 | ac_cv_lib_opengl32_main=yes |
---|
4956 | else |
---|
4957 | echo "$as_me: failed program was:" >&5 |
---|
4958 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4959 | |
---|
4960 | ac_cv_lib_opengl32_main=no |
---|
4961 | fi |
---|
4962 | rm -f conftest.err conftest.$ac_objext \ |
---|
4963 | conftest$ac_exeext conftest.$ac_ext |
---|
4964 | LIBS=$ac_check_lib_save_LIBS |
---|
4965 | fi |
---|
4966 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4967 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4968 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4969 | FOUND_opengl32=yes |
---|
4970 | else |
---|
4971 | "gl/gl.h" |
---|
4972 | fi |
---|
4973 | |
---|
4974 | if test x$FOUND_opengl32 = xyes ; then |
---|
4975 | LIBS="$LIBS -lopengl32" |
---|
4976 | else |
---|
4977 | echo "------------------" |
---|
4978 | echo "opengl not found." |
---|
4979 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4980 | echo "------------------" |
---|
4981 | exit -1 |
---|
4982 | fi |
---|
4983 | |
---|
4984 | # cheking for GLU-header |
---|
4985 | |
---|
4986 | for ac_header in GL/glu.h |
---|
4987 | do |
---|
4988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4989 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4990 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4994 | fi |
---|
4995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4997 | else |
---|
4998 | # Is the header compilable? |
---|
4999 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5000 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5001 | cat >conftest.$ac_ext <<_ACEOF |
---|
5002 | /* confdefs.h. */ |
---|
5003 | _ACEOF |
---|
5004 | cat confdefs.h >>conftest.$ac_ext |
---|
5005 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5006 | /* end confdefs.h. */ |
---|
5007 | $ac_includes_default |
---|
5008 | #include <$ac_header> |
---|
5009 | _ACEOF |
---|
5010 | rm -f conftest.$ac_objext |
---|
5011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5012 | (eval $ac_compile) 2>conftest.er1 |
---|
5013 | ac_status=$? |
---|
5014 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5015 | rm -f conftest.er1 |
---|
5016 | cat conftest.err >&5 |
---|
5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5018 | (exit $ac_status); } && |
---|
5019 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5020 | || test ! -s conftest.err' |
---|
5021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5022 | (eval $ac_try) 2>&5 |
---|
5023 | ac_status=$? |
---|
5024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5025 | (exit $ac_status); }; } && |
---|
5026 | { ac_try='test -s conftest.$ac_objext' |
---|
5027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5028 | (eval $ac_try) 2>&5 |
---|
5029 | ac_status=$? |
---|
5030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5031 | (exit $ac_status); }; }; then |
---|
5032 | ac_header_compiler=yes |
---|
5033 | else |
---|
5034 | echo "$as_me: failed program was:" >&5 |
---|
5035 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5036 | |
---|
5037 | ac_header_compiler=no |
---|
5038 | fi |
---|
5039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5040 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5041 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5042 | |
---|
5043 | # Is the header present? |
---|
5044 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5045 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5046 | cat >conftest.$ac_ext <<_ACEOF |
---|
5047 | /* confdefs.h. */ |
---|
5048 | _ACEOF |
---|
5049 | cat confdefs.h >>conftest.$ac_ext |
---|
5050 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5051 | /* end confdefs.h. */ |
---|
5052 | #include <$ac_header> |
---|
5053 | _ACEOF |
---|
5054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5056 | ac_status=$? |
---|
5057 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5058 | rm -f conftest.er1 |
---|
5059 | cat conftest.err >&5 |
---|
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5061 | (exit $ac_status); } >/dev/null; then |
---|
5062 | if test -s conftest.err; then |
---|
5063 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5064 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5065 | else |
---|
5066 | ac_cpp_err= |
---|
5067 | fi |
---|
5068 | else |
---|
5069 | ac_cpp_err=yes |
---|
5070 | fi |
---|
5071 | if test -z "$ac_cpp_err"; then |
---|
5072 | ac_header_preproc=yes |
---|
5073 | else |
---|
5074 | echo "$as_me: failed program was:" >&5 |
---|
5075 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5076 | |
---|
5077 | ac_header_preproc=no |
---|
5078 | fi |
---|
5079 | rm -f conftest.err conftest.$ac_ext |
---|
5080 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5081 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5082 | |
---|
5083 | # So? What about this header? |
---|
5084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5085 | yes:no: ) |
---|
5086 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5087 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5089 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5090 | ac_header_preproc=yes |
---|
5091 | ;; |
---|
5092 | no:yes:* ) |
---|
5093 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5094 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5095 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5096 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5097 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5098 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5099 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5100 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5102 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5103 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5104 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5105 | ( |
---|
5106 | cat <<\_ASBOX |
---|
5107 | ## ---------------------------------------------- ## |
---|
5108 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5109 | ## ---------------------------------------------- ## |
---|
5110 | _ASBOX |
---|
5111 | ) | |
---|
5112 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5113 | ;; |
---|
5114 | esac |
---|
5115 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5116 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5119 | else |
---|
5120 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5121 | fi |
---|
5122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5123 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5124 | |
---|
5125 | fi |
---|
5126 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5127 | cat >>confdefs.h <<_ACEOF |
---|
5128 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5129 | _ACEOF |
---|
5130 | |
---|
5131 | else |
---|
5132 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5133 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5134 | { (exit 1); exit 1; }; } |
---|
5135 | fi |
---|
5136 | |
---|
5137 | done |
---|
5138 | |
---|
5139 | |
---|
5140 | # checking for libGLU |
---|
5141 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
5142 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
5143 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
5144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5145 | else |
---|
5146 | ac_check_lib_save_LIBS=$LIBS |
---|
5147 | LIBS="-lglu32 $LIBS" |
---|
5148 | cat >conftest.$ac_ext <<_ACEOF |
---|
5149 | /* confdefs.h. */ |
---|
5150 | _ACEOF |
---|
5151 | cat confdefs.h >>conftest.$ac_ext |
---|
5152 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5153 | /* end confdefs.h. */ |
---|
5154 | |
---|
5155 | |
---|
5156 | int |
---|
5157 | main () |
---|
5158 | { |
---|
5159 | main (); |
---|
5160 | ; |
---|
5161 | return 0; |
---|
5162 | } |
---|
5163 | _ACEOF |
---|
5164 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5166 | (eval $ac_link) 2>conftest.er1 |
---|
5167 | ac_status=$? |
---|
5168 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5169 | rm -f conftest.er1 |
---|
5170 | cat conftest.err >&5 |
---|
5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5172 | (exit $ac_status); } && |
---|
5173 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5174 | || test ! -s conftest.err' |
---|
5175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5176 | (eval $ac_try) 2>&5 |
---|
5177 | ac_status=$? |
---|
5178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5179 | (exit $ac_status); }; } && |
---|
5180 | { ac_try='test -s conftest$ac_exeext' |
---|
5181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5182 | (eval $ac_try) 2>&5 |
---|
5183 | ac_status=$? |
---|
5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5185 | (exit $ac_status); }; }; then |
---|
5186 | ac_cv_lib_glu32_main=yes |
---|
5187 | else |
---|
5188 | echo "$as_me: failed program was:" >&5 |
---|
5189 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5190 | |
---|
5191 | ac_cv_lib_glu32_main=no |
---|
5192 | fi |
---|
5193 | rm -f conftest.err conftest.$ac_objext \ |
---|
5194 | conftest$ac_exeext conftest.$ac_ext |
---|
5195 | LIBS=$ac_check_lib_save_LIBS |
---|
5196 | fi |
---|
5197 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
5198 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
5199 | if test $ac_cv_lib_glu32_main = yes; then |
---|
5200 | FOUND_glu32=yes |
---|
5201 | fi |
---|
5202 | |
---|
5203 | if test x$FOUND_glu32 = xyes ; then |
---|
5204 | LIBS="$LIBS -lGLU32" |
---|
5205 | else |
---|
5206 | echo "------------------" |
---|
5207 | echo "GLU library not found." |
---|
5208 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5209 | echo "------------------" |
---|
5210 | exit -1 |
---|
5211 | fi |
---|
5212 | |
---|
5213 | #--------# |
---|
5214 | # openAL # |
---|
5215 | #--------# |
---|
5216 | # checking for openAL-headers |
---|
5217 | |
---|
5218 | for ac_header in AL/al.h |
---|
5219 | do |
---|
5220 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5222 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5226 | fi |
---|
5227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5228 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5229 | else |
---|
5230 | # Is the header compilable? |
---|
5231 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5232 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5233 | cat >conftest.$ac_ext <<_ACEOF |
---|
5234 | /* confdefs.h. */ |
---|
5235 | _ACEOF |
---|
5236 | cat confdefs.h >>conftest.$ac_ext |
---|
5237 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5238 | /* end confdefs.h. */ |
---|
5239 | $ac_includes_default |
---|
5240 | #include <$ac_header> |
---|
5241 | _ACEOF |
---|
5242 | rm -f conftest.$ac_objext |
---|
5243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5244 | (eval $ac_compile) 2>conftest.er1 |
---|
5245 | ac_status=$? |
---|
5246 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5247 | rm -f conftest.er1 |
---|
5248 | cat conftest.err >&5 |
---|
5249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5250 | (exit $ac_status); } && |
---|
5251 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5252 | || test ! -s conftest.err' |
---|
5253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5254 | (eval $ac_try) 2>&5 |
---|
5255 | ac_status=$? |
---|
5256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5257 | (exit $ac_status); }; } && |
---|
5258 | { ac_try='test -s conftest.$ac_objext' |
---|
5259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5260 | (eval $ac_try) 2>&5 |
---|
5261 | ac_status=$? |
---|
5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5263 | (exit $ac_status); }; }; then |
---|
5264 | ac_header_compiler=yes |
---|
5265 | else |
---|
5266 | echo "$as_me: failed program was:" >&5 |
---|
5267 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5268 | |
---|
5269 | ac_header_compiler=no |
---|
5270 | fi |
---|
5271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5272 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5273 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5274 | |
---|
5275 | # Is the header present? |
---|
5276 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5277 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5278 | cat >conftest.$ac_ext <<_ACEOF |
---|
5279 | /* confdefs.h. */ |
---|
5280 | _ACEOF |
---|
5281 | cat confdefs.h >>conftest.$ac_ext |
---|
5282 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5283 | /* end confdefs.h. */ |
---|
5284 | #include <$ac_header> |
---|
5285 | _ACEOF |
---|
5286 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5287 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5288 | ac_status=$? |
---|
5289 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5290 | rm -f conftest.er1 |
---|
5291 | cat conftest.err >&5 |
---|
5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5293 | (exit $ac_status); } >/dev/null; then |
---|
5294 | if test -s conftest.err; then |
---|
5295 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5296 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5297 | else |
---|
5298 | ac_cpp_err= |
---|
5299 | fi |
---|
5300 | else |
---|
5301 | ac_cpp_err=yes |
---|
5302 | fi |
---|
5303 | if test -z "$ac_cpp_err"; then |
---|
5304 | ac_header_preproc=yes |
---|
5305 | else |
---|
5306 | echo "$as_me: failed program was:" >&5 |
---|
5307 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5308 | |
---|
5309 | ac_header_preproc=no |
---|
5310 | fi |
---|
5311 | rm -f conftest.err conftest.$ac_ext |
---|
5312 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5313 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5314 | |
---|
5315 | # So? What about this header? |
---|
5316 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5317 | yes:no: ) |
---|
5318 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5319 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5321 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5322 | ac_header_preproc=yes |
---|
5323 | ;; |
---|
5324 | no:yes:* ) |
---|
5325 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5326 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5327 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5328 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5329 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5330 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5331 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5332 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5334 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5335 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5336 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5337 | ( |
---|
5338 | cat <<\_ASBOX |
---|
5339 | ## ---------------------------------------------- ## |
---|
5340 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5341 | ## ---------------------------------------------- ## |
---|
5342 | _ASBOX |
---|
5343 | ) | |
---|
5344 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5345 | ;; |
---|
5346 | esac |
---|
5347 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5348 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5349 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5351 | else |
---|
5352 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5353 | fi |
---|
5354 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5355 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5356 | |
---|
5357 | fi |
---|
5358 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5359 | cat >>confdefs.h <<_ACEOF |
---|
5360 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5361 | _ACEOF |
---|
5362 | |
---|
5363 | else |
---|
5364 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
5365 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
5366 | { (exit 1); exit 1; }; } |
---|
5367 | fi |
---|
5368 | |
---|
5369 | done |
---|
5370 | |
---|
5371 | # checking for openAL-lib |
---|
5372 | echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 |
---|
5373 | echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 |
---|
5374 | if test "${ac_cv_lib_OpenAL32_main+set}" = set; then |
---|
5375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5376 | else |
---|
5377 | ac_check_lib_save_LIBS=$LIBS |
---|
5378 | LIBS="-lOpenAL32 $LIBS" |
---|
5379 | cat >conftest.$ac_ext <<_ACEOF |
---|
5380 | /* confdefs.h. */ |
---|
5381 | _ACEOF |
---|
5382 | cat confdefs.h >>conftest.$ac_ext |
---|
5383 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5384 | /* end confdefs.h. */ |
---|
5385 | |
---|
5386 | |
---|
5387 | int |
---|
5388 | main () |
---|
5389 | { |
---|
5390 | main (); |
---|
5391 | ; |
---|
5392 | return 0; |
---|
5393 | } |
---|
5394 | _ACEOF |
---|
5395 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5397 | (eval $ac_link) 2>conftest.er1 |
---|
5398 | ac_status=$? |
---|
5399 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5400 | rm -f conftest.er1 |
---|
5401 | cat conftest.err >&5 |
---|
5402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5403 | (exit $ac_status); } && |
---|
5404 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5405 | || test ! -s conftest.err' |
---|
5406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5407 | (eval $ac_try) 2>&5 |
---|
5408 | ac_status=$? |
---|
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5410 | (exit $ac_status); }; } && |
---|
5411 | { ac_try='test -s conftest$ac_exeext' |
---|
5412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5413 | (eval $ac_try) 2>&5 |
---|
5414 | ac_status=$? |
---|
5415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5416 | (exit $ac_status); }; }; then |
---|
5417 | ac_cv_lib_OpenAL32_main=yes |
---|
5418 | else |
---|
5419 | echo "$as_me: failed program was:" >&5 |
---|
5420 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5421 | |
---|
5422 | ac_cv_lib_OpenAL32_main=no |
---|
5423 | fi |
---|
5424 | rm -f conftest.err conftest.$ac_objext \ |
---|
5425 | conftest$ac_exeext conftest.$ac_ext |
---|
5426 | LIBS=$ac_check_lib_save_LIBS |
---|
5427 | fi |
---|
5428 | echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 |
---|
5429 | echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 |
---|
5430 | if test $ac_cv_lib_OpenAL32_main = yes; then |
---|
5431 | FOUND_openal=yes |
---|
5432 | fi |
---|
5433 | |
---|
5434 | echo "$as_me:$LINENO: checking for main in -lALut" >&5 |
---|
5435 | echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 |
---|
5436 | if test "${ac_cv_lib_ALut_main+set}" = set; then |
---|
5437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5438 | else |
---|
5439 | ac_check_lib_save_LIBS=$LIBS |
---|
5440 | LIBS="-lALut $LIBS" |
---|
5441 | cat >conftest.$ac_ext <<_ACEOF |
---|
5442 | /* confdefs.h. */ |
---|
5443 | _ACEOF |
---|
5444 | cat confdefs.h >>conftest.$ac_ext |
---|
5445 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5446 | /* end confdefs.h. */ |
---|
5447 | |
---|
5448 | |
---|
5449 | int |
---|
5450 | main () |
---|
5451 | { |
---|
5452 | main (); |
---|
5453 | ; |
---|
5454 | return 0; |
---|
5455 | } |
---|
5456 | _ACEOF |
---|
5457 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5459 | (eval $ac_link) 2>conftest.er1 |
---|
5460 | ac_status=$? |
---|
5461 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5462 | rm -f conftest.er1 |
---|
5463 | cat conftest.err >&5 |
---|
5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5465 | (exit $ac_status); } && |
---|
5466 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5467 | || test ! -s conftest.err' |
---|
5468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5469 | (eval $ac_try) 2>&5 |
---|
5470 | ac_status=$? |
---|
5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5472 | (exit $ac_status); }; } && |
---|
5473 | { ac_try='test -s conftest$ac_exeext' |
---|
5474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5475 | (eval $ac_try) 2>&5 |
---|
5476 | ac_status=$? |
---|
5477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5478 | (exit $ac_status); }; }; then |
---|
5479 | ac_cv_lib_ALut_main=yes |
---|
5480 | else |
---|
5481 | echo "$as_me: failed program was:" >&5 |
---|
5482 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5483 | |
---|
5484 | ac_cv_lib_ALut_main=no |
---|
5485 | fi |
---|
5486 | rm -f conftest.err conftest.$ac_objext \ |
---|
5487 | conftest$ac_exeext conftest.$ac_ext |
---|
5488 | LIBS=$ac_check_lib_save_LIBS |
---|
5489 | fi |
---|
5490 | echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5 |
---|
5491 | echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6 |
---|
5492 | if test $ac_cv_lib_ALut_main = yes; then |
---|
5493 | FOUND_ALut=yes |
---|
5494 | fi |
---|
5495 | |
---|
5496 | if test x$FOUND_openal = xyes ; then |
---|
5497 | if test x$FOUND_ALut = xyes ; then |
---|
5498 | LIBS="$LIBS -lALut -lOpenAL32" |
---|
5499 | else |
---|
5500 | echo "------------------" |
---|
5501 | echo "openal library not found." |
---|
5502 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
5503 | echo "------------------" |
---|
5504 | exit -1 |
---|
5505 | fi |
---|
5506 | fi |
---|
5507 | ;; |
---|
5508 | |
---|
5509 | ######### |
---|
5510 | #-------# |
---|
5511 | # LINUX # |
---|
5512 | #-------# |
---|
5513 | ######### |
---|
5514 | *-*-linux*) |
---|
5515 | echo "Linux detected" |
---|
5516 | |
---|
5517 | Linux="yes" |
---|
5518 | |
---|
5519 | CPPFLAGS="-I/usr/X11R6/include -I/usr/include" |
---|
5520 | ##LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
5521 | # checking gl header |
---|
5522 | |
---|
5523 | for ac_header in GL/gl.h |
---|
5524 | do |
---|
5525 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5527 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5528 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5529 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5531 | fi |
---|
5532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5533 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5534 | else |
---|
5535 | # Is the header compilable? |
---|
5536 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5537 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5538 | cat >conftest.$ac_ext <<_ACEOF |
---|
5539 | /* confdefs.h. */ |
---|
5540 | _ACEOF |
---|
5541 | cat confdefs.h >>conftest.$ac_ext |
---|
5542 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5543 | /* end confdefs.h. */ |
---|
5544 | $ac_includes_default |
---|
5545 | #include <$ac_header> |
---|
5546 | _ACEOF |
---|
5547 | rm -f conftest.$ac_objext |
---|
5548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5549 | (eval $ac_compile) 2>conftest.er1 |
---|
5550 | ac_status=$? |
---|
5551 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5552 | rm -f conftest.er1 |
---|
5553 | cat conftest.err >&5 |
---|
5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5555 | (exit $ac_status); } && |
---|
5556 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5557 | || test ! -s conftest.err' |
---|
5558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5559 | (eval $ac_try) 2>&5 |
---|
5560 | ac_status=$? |
---|
5561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5562 | (exit $ac_status); }; } && |
---|
5563 | { ac_try='test -s conftest.$ac_objext' |
---|
5564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5565 | (eval $ac_try) 2>&5 |
---|
5566 | ac_status=$? |
---|
5567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5568 | (exit $ac_status); }; }; then |
---|
5569 | ac_header_compiler=yes |
---|
5570 | else |
---|
5571 | echo "$as_me: failed program was:" >&5 |
---|
5572 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5573 | |
---|
5574 | ac_header_compiler=no |
---|
5575 | fi |
---|
5576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5577 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5578 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5579 | |
---|
5580 | # Is the header present? |
---|
5581 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5582 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5583 | cat >conftest.$ac_ext <<_ACEOF |
---|
5584 | /* confdefs.h. */ |
---|
5585 | _ACEOF |
---|
5586 | cat confdefs.h >>conftest.$ac_ext |
---|
5587 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5588 | /* end confdefs.h. */ |
---|
5589 | #include <$ac_header> |
---|
5590 | _ACEOF |
---|
5591 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5592 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5593 | ac_status=$? |
---|
5594 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5595 | rm -f conftest.er1 |
---|
5596 | cat conftest.err >&5 |
---|
5597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5598 | (exit $ac_status); } >/dev/null; then |
---|
5599 | if test -s conftest.err; then |
---|
5600 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5601 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5602 | else |
---|
5603 | ac_cpp_err= |
---|
5604 | fi |
---|
5605 | else |
---|
5606 | ac_cpp_err=yes |
---|
5607 | fi |
---|
5608 | if test -z "$ac_cpp_err"; then |
---|
5609 | ac_header_preproc=yes |
---|
5610 | else |
---|
5611 | echo "$as_me: failed program was:" >&5 |
---|
5612 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5613 | |
---|
5614 | ac_header_preproc=no |
---|
5615 | fi |
---|
5616 | rm -f conftest.err conftest.$ac_ext |
---|
5617 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5618 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5619 | |
---|
5620 | # So? What about this header? |
---|
5621 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5622 | yes:no: ) |
---|
5623 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5624 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5625 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5626 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5627 | ac_header_preproc=yes |
---|
5628 | ;; |
---|
5629 | no:yes:* ) |
---|
5630 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5631 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5632 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5633 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5634 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5635 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5636 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5637 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5638 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5639 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5640 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5641 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5642 | ( |
---|
5643 | cat <<\_ASBOX |
---|
5644 | ## ---------------------------------------------- ## |
---|
5645 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5646 | ## ---------------------------------------------- ## |
---|
5647 | _ASBOX |
---|
5648 | ) | |
---|
5649 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5650 | ;; |
---|
5651 | esac |
---|
5652 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5653 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5654 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5656 | else |
---|
5657 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5658 | fi |
---|
5659 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5660 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5661 | |
---|
5662 | fi |
---|
5663 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5664 | cat >>confdefs.h <<_ACEOF |
---|
5665 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5666 | _ACEOF |
---|
5667 | |
---|
5668 | else |
---|
5669 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5670 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5671 | { (exit 1); exit 1; }; } |
---|
5672 | fi |
---|
5673 | |
---|
5674 | done |
---|
5675 | |
---|
5676 | |
---|
5677 | # checking for Unix GL |
---|
5678 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
5679 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
5680 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
5681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5682 | else |
---|
5683 | ac_check_lib_save_LIBS=$LIBS |
---|
5684 | LIBS="-lGL $LIBS" |
---|
5685 | cat >conftest.$ac_ext <<_ACEOF |
---|
5686 | /* confdefs.h. */ |
---|
5687 | _ACEOF |
---|
5688 | cat confdefs.h >>conftest.$ac_ext |
---|
5689 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5690 | /* end confdefs.h. */ |
---|
5691 | |
---|
5692 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5693 | #ifdef __cplusplus |
---|
5694 | extern "C" |
---|
5695 | #endif |
---|
5696 | /* We use char because int might match the return type of a gcc2 |
---|
5697 | builtin and then its argument prototype would still apply. */ |
---|
5698 | char glLoadIdentity (); |
---|
5699 | int |
---|
5700 | main () |
---|
5701 | { |
---|
5702 | glLoadIdentity (); |
---|
5703 | ; |
---|
5704 | return 0; |
---|
5705 | } |
---|
5706 | _ACEOF |
---|
5707 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5709 | (eval $ac_link) 2>conftest.er1 |
---|
5710 | ac_status=$? |
---|
5711 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5712 | rm -f conftest.er1 |
---|
5713 | cat conftest.err >&5 |
---|
5714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5715 | (exit $ac_status); } && |
---|
5716 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5717 | || test ! -s conftest.err' |
---|
5718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5719 | (eval $ac_try) 2>&5 |
---|
5720 | ac_status=$? |
---|
5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5722 | (exit $ac_status); }; } && |
---|
5723 | { ac_try='test -s conftest$ac_exeext' |
---|
5724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5725 | (eval $ac_try) 2>&5 |
---|
5726 | ac_status=$? |
---|
5727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5728 | (exit $ac_status); }; }; then |
---|
5729 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
5730 | else |
---|
5731 | echo "$as_me: failed program was:" >&5 |
---|
5732 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5733 | |
---|
5734 | ac_cv_lib_GL_glLoadIdentity=no |
---|
5735 | fi |
---|
5736 | rm -f conftest.err conftest.$ac_objext \ |
---|
5737 | conftest$ac_exeext conftest.$ac_ext |
---|
5738 | LIBS=$ac_check_lib_save_LIBS |
---|
5739 | fi |
---|
5740 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
5741 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
5742 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
5743 | FOUND_GL=yes |
---|
5744 | fi |
---|
5745 | |
---|
5746 | if test x$FOUND_GL = xyes ; then |
---|
5747 | LIBS="$LIBS -lGL" |
---|
5748 | else |
---|
5749 | echo "------------------" |
---|
5750 | echo "opengl not found." |
---|
5751 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
5752 | echo "------------------" |
---|
5753 | exit -1 |
---|
5754 | fi |
---|
5755 | |
---|
5756 | # cheking for GLU-header |
---|
5757 | |
---|
5758 | for ac_header in GL/glu.h |
---|
5759 | do |
---|
5760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5762 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5764 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5766 | fi |
---|
5767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5768 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5769 | else |
---|
5770 | # Is the header compilable? |
---|
5771 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5772 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5773 | cat >conftest.$ac_ext <<_ACEOF |
---|
5774 | /* confdefs.h. */ |
---|
5775 | _ACEOF |
---|
5776 | cat confdefs.h >>conftest.$ac_ext |
---|
5777 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5778 | /* end confdefs.h. */ |
---|
5779 | $ac_includes_default |
---|
5780 | #include <$ac_header> |
---|
5781 | _ACEOF |
---|
5782 | rm -f conftest.$ac_objext |
---|
5783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5784 | (eval $ac_compile) 2>conftest.er1 |
---|
5785 | ac_status=$? |
---|
5786 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5787 | rm -f conftest.er1 |
---|
5788 | cat conftest.err >&5 |
---|
5789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5790 | (exit $ac_status); } && |
---|
5791 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5792 | || test ! -s conftest.err' |
---|
5793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5794 | (eval $ac_try) 2>&5 |
---|
5795 | ac_status=$? |
---|
5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5797 | (exit $ac_status); }; } && |
---|
5798 | { ac_try='test -s conftest.$ac_objext' |
---|
5799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5800 | (eval $ac_try) 2>&5 |
---|
5801 | ac_status=$? |
---|
5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5803 | (exit $ac_status); }; }; then |
---|
5804 | ac_header_compiler=yes |
---|
5805 | else |
---|
5806 | echo "$as_me: failed program was:" >&5 |
---|
5807 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5808 | |
---|
5809 | ac_header_compiler=no |
---|
5810 | fi |
---|
5811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5812 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5813 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5814 | |
---|
5815 | # Is the header present? |
---|
5816 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5817 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5818 | cat >conftest.$ac_ext <<_ACEOF |
---|
5819 | /* confdefs.h. */ |
---|
5820 | _ACEOF |
---|
5821 | cat confdefs.h >>conftest.$ac_ext |
---|
5822 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5823 | /* end confdefs.h. */ |
---|
5824 | #include <$ac_header> |
---|
5825 | _ACEOF |
---|
5826 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5827 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5828 | ac_status=$? |
---|
5829 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5830 | rm -f conftest.er1 |
---|
5831 | cat conftest.err >&5 |
---|
5832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5833 | (exit $ac_status); } >/dev/null; then |
---|
5834 | if test -s conftest.err; then |
---|
5835 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5836 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5837 | else |
---|
5838 | ac_cpp_err= |
---|
5839 | fi |
---|
5840 | else |
---|
5841 | ac_cpp_err=yes |
---|
5842 | fi |
---|
5843 | if test -z "$ac_cpp_err"; then |
---|
5844 | ac_header_preproc=yes |
---|
5845 | else |
---|
5846 | echo "$as_me: failed program was:" >&5 |
---|
5847 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5848 | |
---|
5849 | ac_header_preproc=no |
---|
5850 | fi |
---|
5851 | rm -f conftest.err conftest.$ac_ext |
---|
5852 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5853 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5854 | |
---|
5855 | # So? What about this header? |
---|
5856 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5857 | yes:no: ) |
---|
5858 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5859 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5861 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5862 | ac_header_preproc=yes |
---|
5863 | ;; |
---|
5864 | no:yes:* ) |
---|
5865 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5866 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5867 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5868 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5869 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5870 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5871 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5872 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5874 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5875 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5876 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5877 | ( |
---|
5878 | cat <<\_ASBOX |
---|
5879 | ## ---------------------------------------------- ## |
---|
5880 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5881 | ## ---------------------------------------------- ## |
---|
5882 | _ASBOX |
---|
5883 | ) | |
---|
5884 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5885 | ;; |
---|
5886 | esac |
---|
5887 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5888 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5889 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5891 | else |
---|
5892 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5893 | fi |
---|
5894 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5896 | |
---|
5897 | fi |
---|
5898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5899 | cat >>confdefs.h <<_ACEOF |
---|
5900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5901 | _ACEOF |
---|
5902 | |
---|
5903 | else |
---|
5904 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5905 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5906 | { (exit 1); exit 1; }; } |
---|
5907 | fi |
---|
5908 | |
---|
5909 | done |
---|
5910 | |
---|
5911 | |
---|
5912 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
5913 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
5914 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
5915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5916 | else |
---|
5917 | ac_check_lib_save_LIBS=$LIBS |
---|
5918 | LIBS="-lGLU $LIBS" |
---|
5919 | cat >conftest.$ac_ext <<_ACEOF |
---|
5920 | /* confdefs.h. */ |
---|
5921 | _ACEOF |
---|
5922 | cat confdefs.h >>conftest.$ac_ext |
---|
5923 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5924 | /* end confdefs.h. */ |
---|
5925 | |
---|
5926 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5927 | #ifdef __cplusplus |
---|
5928 | extern "C" |
---|
5929 | #endif |
---|
5930 | /* We use char because int might match the return type of a gcc2 |
---|
5931 | builtin and then its argument prototype would still apply. */ |
---|
5932 | char gluProject (); |
---|
5933 | int |
---|
5934 | main () |
---|
5935 | { |
---|
5936 | gluProject (); |
---|
5937 | ; |
---|
5938 | return 0; |
---|
5939 | } |
---|
5940 | _ACEOF |
---|
5941 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5943 | (eval $ac_link) 2>conftest.er1 |
---|
5944 | ac_status=$? |
---|
5945 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5946 | rm -f conftest.er1 |
---|
5947 | cat conftest.err >&5 |
---|
5948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5949 | (exit $ac_status); } && |
---|
5950 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5951 | || test ! -s conftest.err' |
---|
5952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5953 | (eval $ac_try) 2>&5 |
---|
5954 | ac_status=$? |
---|
5955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5956 | (exit $ac_status); }; } && |
---|
5957 | { ac_try='test -s conftest$ac_exeext' |
---|
5958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5959 | (eval $ac_try) 2>&5 |
---|
5960 | ac_status=$? |
---|
5961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5962 | (exit $ac_status); }; }; then |
---|
5963 | ac_cv_lib_GLU_gluProject=yes |
---|
5964 | else |
---|
5965 | echo "$as_me: failed program was:" >&5 |
---|
5966 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5967 | |
---|
5968 | ac_cv_lib_GLU_gluProject=no |
---|
5969 | fi |
---|
5970 | rm -f conftest.err conftest.$ac_objext \ |
---|
5971 | conftest$ac_exeext conftest.$ac_ext |
---|
5972 | LIBS=$ac_check_lib_save_LIBS |
---|
5973 | fi |
---|
5974 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
5975 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
5976 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
5977 | FOUND_GLU=yes |
---|
5978 | fi |
---|
5979 | |
---|
5980 | if test x$FOUND_GLU = xyes ; then |
---|
5981 | LIBS="$LIBS -lGLU" |
---|
5982 | else |
---|
5983 | echo "------------------" |
---|
5984 | echo "GLU library not found." |
---|
5985 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5986 | echo "------------------" |
---|
5987 | exit -1 |
---|
5988 | fi |
---|
5989 | |
---|
5990 | #--------# |
---|
5991 | # openAL # |
---|
5992 | #--------# |
---|
5993 | # checking for openAL-headers |
---|
5994 | |
---|
5995 | for ac_header in AL/al.h |
---|
5996 | do |
---|
5997 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5999 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6003 | fi |
---|
6004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6005 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6006 | else |
---|
6007 | # Is the header compilable? |
---|
6008 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6009 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6010 | cat >conftest.$ac_ext <<_ACEOF |
---|
6011 | /* confdefs.h. */ |
---|
6012 | _ACEOF |
---|
6013 | cat confdefs.h >>conftest.$ac_ext |
---|
6014 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6015 | /* end confdefs.h. */ |
---|
6016 | $ac_includes_default |
---|
6017 | #include <$ac_header> |
---|
6018 | _ACEOF |
---|
6019 | rm -f conftest.$ac_objext |
---|
6020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6021 | (eval $ac_compile) 2>conftest.er1 |
---|
6022 | ac_status=$? |
---|
6023 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6024 | rm -f conftest.er1 |
---|
6025 | cat conftest.err >&5 |
---|
6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6027 | (exit $ac_status); } && |
---|
6028 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6029 | || test ! -s conftest.err' |
---|
6030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6031 | (eval $ac_try) 2>&5 |
---|
6032 | ac_status=$? |
---|
6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6034 | (exit $ac_status); }; } && |
---|
6035 | { ac_try='test -s conftest.$ac_objext' |
---|
6036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6037 | (eval $ac_try) 2>&5 |
---|
6038 | ac_status=$? |
---|
6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6040 | (exit $ac_status); }; }; then |
---|
6041 | ac_header_compiler=yes |
---|
6042 | else |
---|
6043 | echo "$as_me: failed program was:" >&5 |
---|
6044 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6045 | |
---|
6046 | ac_header_compiler=no |
---|
6047 | fi |
---|
6048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6049 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6050 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6051 | |
---|
6052 | # Is the header present? |
---|
6053 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6054 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6055 | cat >conftest.$ac_ext <<_ACEOF |
---|
6056 | /* confdefs.h. */ |
---|
6057 | _ACEOF |
---|
6058 | cat confdefs.h >>conftest.$ac_ext |
---|
6059 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6060 | /* end confdefs.h. */ |
---|
6061 | #include <$ac_header> |
---|
6062 | _ACEOF |
---|
6063 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6064 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6065 | ac_status=$? |
---|
6066 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6067 | rm -f conftest.er1 |
---|
6068 | cat conftest.err >&5 |
---|
6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6070 | (exit $ac_status); } >/dev/null; then |
---|
6071 | if test -s conftest.err; then |
---|
6072 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6073 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6074 | else |
---|
6075 | ac_cpp_err= |
---|
6076 | fi |
---|
6077 | else |
---|
6078 | ac_cpp_err=yes |
---|
6079 | fi |
---|
6080 | if test -z "$ac_cpp_err"; then |
---|
6081 | ac_header_preproc=yes |
---|
6082 | else |
---|
6083 | echo "$as_me: failed program was:" >&5 |
---|
6084 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6085 | |
---|
6086 | ac_header_preproc=no |
---|
6087 | fi |
---|
6088 | rm -f conftest.err conftest.$ac_ext |
---|
6089 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6090 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6091 | |
---|
6092 | # So? What about this header? |
---|
6093 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6094 | yes:no: ) |
---|
6095 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6096 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6098 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6099 | ac_header_preproc=yes |
---|
6100 | ;; |
---|
6101 | no:yes:* ) |
---|
6102 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6103 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6104 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6105 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6106 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6107 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6108 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6109 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6111 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6112 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6113 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6114 | ( |
---|
6115 | cat <<\_ASBOX |
---|
6116 | ## ---------------------------------------------- ## |
---|
6117 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6118 | ## ---------------------------------------------- ## |
---|
6119 | _ASBOX |
---|
6120 | ) | |
---|
6121 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6122 | ;; |
---|
6123 | esac |
---|
6124 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6128 | else |
---|
6129 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6130 | fi |
---|
6131 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6132 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6133 | |
---|
6134 | fi |
---|
6135 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6136 | cat >>confdefs.h <<_ACEOF |
---|
6137 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6138 | _ACEOF |
---|
6139 | |
---|
6140 | else |
---|
6141 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
6142 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
6143 | { (exit 1); exit 1; }; } |
---|
6144 | fi |
---|
6145 | |
---|
6146 | done |
---|
6147 | |
---|
6148 | # checking for openAL-lib |
---|
6149 | echo "$as_me:$LINENO: checking for main in -lopenal" >&5 |
---|
6150 | echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 |
---|
6151 | if test "${ac_cv_lib_openal_main+set}" = set; then |
---|
6152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6153 | else |
---|
6154 | ac_check_lib_save_LIBS=$LIBS |
---|
6155 | LIBS="-lopenal $LIBS" |
---|
6156 | cat >conftest.$ac_ext <<_ACEOF |
---|
6157 | /* confdefs.h. */ |
---|
6158 | _ACEOF |
---|
6159 | cat confdefs.h >>conftest.$ac_ext |
---|
6160 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6161 | /* end confdefs.h. */ |
---|
6162 | |
---|
6163 | |
---|
6164 | int |
---|
6165 | main () |
---|
6166 | { |
---|
6167 | main (); |
---|
6168 | ; |
---|
6169 | return 0; |
---|
6170 | } |
---|
6171 | _ACEOF |
---|
6172 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6174 | (eval $ac_link) 2>conftest.er1 |
---|
6175 | ac_status=$? |
---|
6176 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6177 | rm -f conftest.er1 |
---|
6178 | cat conftest.err >&5 |
---|
6179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6180 | (exit $ac_status); } && |
---|
6181 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6182 | || test ! -s conftest.err' |
---|
6183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6184 | (eval $ac_try) 2>&5 |
---|
6185 | ac_status=$? |
---|
6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6187 | (exit $ac_status); }; } && |
---|
6188 | { ac_try='test -s conftest$ac_exeext' |
---|
6189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6190 | (eval $ac_try) 2>&5 |
---|
6191 | ac_status=$? |
---|
6192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6193 | (exit $ac_status); }; }; then |
---|
6194 | ac_cv_lib_openal_main=yes |
---|
6195 | else |
---|
6196 | echo "$as_me: failed program was:" >&5 |
---|
6197 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6198 | |
---|
6199 | ac_cv_lib_openal_main=no |
---|
6200 | fi |
---|
6201 | rm -f conftest.err conftest.$ac_objext \ |
---|
6202 | conftest$ac_exeext conftest.$ac_ext |
---|
6203 | LIBS=$ac_check_lib_save_LIBS |
---|
6204 | fi |
---|
6205 | echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 |
---|
6206 | echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 |
---|
6207 | if test $ac_cv_lib_openal_main = yes; then |
---|
6208 | FOUND_openal=yes |
---|
6209 | fi |
---|
6210 | |
---|
6211 | if test x$FOUND_openal = xyes ; then |
---|
6212 | LIBS="$LIBS -lopenal" |
---|
6213 | else |
---|
6214 | echo "------------------" |
---|
6215 | echo "openal library not found." |
---|
6216 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
6217 | echo "------------------" |
---|
6218 | exit -1 |
---|
6219 | fi |
---|
6220 | |
---|
6221 | # checking for SDL |
---|
6222 | echo "$as_me:$LINENO: checking for SDL-version" >&5 |
---|
6223 | echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 |
---|
6224 | SDL_VERSION=`sdl-config --version` |
---|
6225 | echo $SDL_VERSION |
---|
6226 | |
---|
6227 | CPPFLAGS="`sdl-config --cflags` $CPPFLAGS" |
---|
6228 | |
---|
6229 | for ac_header in SDL.h |
---|
6230 | do |
---|
6231 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6232 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6233 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6234 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6235 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6237 | fi |
---|
6238 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6239 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6240 | else |
---|
6241 | # Is the header compilable? |
---|
6242 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6243 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6244 | cat >conftest.$ac_ext <<_ACEOF |
---|
6245 | /* confdefs.h. */ |
---|
6246 | _ACEOF |
---|
6247 | cat confdefs.h >>conftest.$ac_ext |
---|
6248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6249 | /* end confdefs.h. */ |
---|
6250 | $ac_includes_default |
---|
6251 | #include <$ac_header> |
---|
6252 | _ACEOF |
---|
6253 | rm -f conftest.$ac_objext |
---|
6254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6255 | (eval $ac_compile) 2>conftest.er1 |
---|
6256 | ac_status=$? |
---|
6257 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6258 | rm -f conftest.er1 |
---|
6259 | cat conftest.err >&5 |
---|
6260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6261 | (exit $ac_status); } && |
---|
6262 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6263 | || test ! -s conftest.err' |
---|
6264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6265 | (eval $ac_try) 2>&5 |
---|
6266 | ac_status=$? |
---|
6267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6268 | (exit $ac_status); }; } && |
---|
6269 | { ac_try='test -s conftest.$ac_objext' |
---|
6270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6271 | (eval $ac_try) 2>&5 |
---|
6272 | ac_status=$? |
---|
6273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6274 | (exit $ac_status); }; }; then |
---|
6275 | ac_header_compiler=yes |
---|
6276 | else |
---|
6277 | echo "$as_me: failed program was:" >&5 |
---|
6278 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6279 | |
---|
6280 | ac_header_compiler=no |
---|
6281 | fi |
---|
6282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6283 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6284 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6285 | |
---|
6286 | # Is the header present? |
---|
6287 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6288 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6289 | cat >conftest.$ac_ext <<_ACEOF |
---|
6290 | /* confdefs.h. */ |
---|
6291 | _ACEOF |
---|
6292 | cat confdefs.h >>conftest.$ac_ext |
---|
6293 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6294 | /* end confdefs.h. */ |
---|
6295 | #include <$ac_header> |
---|
6296 | _ACEOF |
---|
6297 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6298 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6299 | ac_status=$? |
---|
6300 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6301 | rm -f conftest.er1 |
---|
6302 | cat conftest.err >&5 |
---|
6303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6304 | (exit $ac_status); } >/dev/null; then |
---|
6305 | if test -s conftest.err; then |
---|
6306 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6307 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6308 | else |
---|
6309 | ac_cpp_err= |
---|
6310 | fi |
---|
6311 | else |
---|
6312 | ac_cpp_err=yes |
---|
6313 | fi |
---|
6314 | if test -z "$ac_cpp_err"; then |
---|
6315 | ac_header_preproc=yes |
---|
6316 | else |
---|
6317 | echo "$as_me: failed program was:" >&5 |
---|
6318 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6319 | |
---|
6320 | ac_header_preproc=no |
---|
6321 | fi |
---|
6322 | rm -f conftest.err conftest.$ac_ext |
---|
6323 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6324 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6325 | |
---|
6326 | # So? What about this header? |
---|
6327 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6328 | yes:no: ) |
---|
6329 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6330 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6332 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6333 | ac_header_preproc=yes |
---|
6334 | ;; |
---|
6335 | no:yes:* ) |
---|
6336 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6337 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6338 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6339 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6340 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6341 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6342 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6343 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6344 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6345 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6346 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6347 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6348 | ( |
---|
6349 | cat <<\_ASBOX |
---|
6350 | ## ---------------------------------------------- ## |
---|
6351 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6352 | ## ---------------------------------------------- ## |
---|
6353 | _ASBOX |
---|
6354 | ) | |
---|
6355 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6356 | ;; |
---|
6357 | esac |
---|
6358 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6359 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6362 | else |
---|
6363 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6364 | fi |
---|
6365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6366 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6367 | |
---|
6368 | fi |
---|
6369 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6370 | cat >>confdefs.h <<_ACEOF |
---|
6371 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6372 | _ACEOF |
---|
6373 | |
---|
6374 | else |
---|
6375 | |
---|
6376 | for ac_header in SDL/SDL.h |
---|
6377 | do |
---|
6378 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6380 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
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 | else |
---|
6388 | # Is the header compilable? |
---|
6389 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6390 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6391 | cat >conftest.$ac_ext <<_ACEOF |
---|
6392 | /* confdefs.h. */ |
---|
6393 | _ACEOF |
---|
6394 | cat confdefs.h >>conftest.$ac_ext |
---|
6395 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6396 | /* end confdefs.h. */ |
---|
6397 | $ac_includes_default |
---|
6398 | #include <$ac_header> |
---|
6399 | _ACEOF |
---|
6400 | rm -f conftest.$ac_objext |
---|
6401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6402 | (eval $ac_compile) 2>conftest.er1 |
---|
6403 | ac_status=$? |
---|
6404 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6405 | rm -f conftest.er1 |
---|
6406 | cat conftest.err >&5 |
---|
6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6408 | (exit $ac_status); } && |
---|
6409 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6410 | || test ! -s conftest.err' |
---|
6411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6412 | (eval $ac_try) 2>&5 |
---|
6413 | ac_status=$? |
---|
6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6415 | (exit $ac_status); }; } && |
---|
6416 | { ac_try='test -s conftest.$ac_objext' |
---|
6417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6418 | (eval $ac_try) 2>&5 |
---|
6419 | ac_status=$? |
---|
6420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6421 | (exit $ac_status); }; }; then |
---|
6422 | ac_header_compiler=yes |
---|
6423 | else |
---|
6424 | echo "$as_me: failed program was:" >&5 |
---|
6425 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6426 | |
---|
6427 | ac_header_compiler=no |
---|
6428 | fi |
---|
6429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6431 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6432 | |
---|
6433 | # Is the header present? |
---|
6434 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6435 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6436 | cat >conftest.$ac_ext <<_ACEOF |
---|
6437 | /* confdefs.h. */ |
---|
6438 | _ACEOF |
---|
6439 | cat confdefs.h >>conftest.$ac_ext |
---|
6440 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6441 | /* end confdefs.h. */ |
---|
6442 | #include <$ac_header> |
---|
6443 | _ACEOF |
---|
6444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6446 | ac_status=$? |
---|
6447 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6448 | rm -f conftest.er1 |
---|
6449 | cat conftest.err >&5 |
---|
6450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6451 | (exit $ac_status); } >/dev/null; then |
---|
6452 | if test -s conftest.err; then |
---|
6453 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6454 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6455 | else |
---|
6456 | ac_cpp_err= |
---|
6457 | fi |
---|
6458 | else |
---|
6459 | ac_cpp_err=yes |
---|
6460 | fi |
---|
6461 | if test -z "$ac_cpp_err"; then |
---|
6462 | ac_header_preproc=yes |
---|
6463 | else |
---|
6464 | echo "$as_me: failed program was:" >&5 |
---|
6465 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6466 | |
---|
6467 | ac_header_preproc=no |
---|
6468 | fi |
---|
6469 | rm -f conftest.err conftest.$ac_ext |
---|
6470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6471 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6472 | |
---|
6473 | # So? What about this header? |
---|
6474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6475 | yes:no: ) |
---|
6476 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6477 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6479 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6480 | ac_header_preproc=yes |
---|
6481 | ;; |
---|
6482 | no:yes:* ) |
---|
6483 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6484 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6485 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6486 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6487 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6488 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6489 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6490 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6491 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6492 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6493 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6494 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6495 | ( |
---|
6496 | cat <<\_ASBOX |
---|
6497 | ## ---------------------------------------------- ## |
---|
6498 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6499 | ## ---------------------------------------------- ## |
---|
6500 | _ASBOX |
---|
6501 | ) | |
---|
6502 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6503 | ;; |
---|
6504 | esac |
---|
6505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6509 | else |
---|
6510 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6511 | fi |
---|
6512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6513 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6514 | |
---|
6515 | fi |
---|
6516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6517 | cat >>confdefs.h <<_ACEOF |
---|
6518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6519 | _ACEOF |
---|
6520 | |
---|
6521 | else |
---|
6522 | { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 |
---|
6523 | echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} |
---|
6524 | { (exit 1); exit 1; }; } |
---|
6525 | fi |
---|
6526 | |
---|
6527 | done |
---|
6528 | |
---|
6529 | fi |
---|
6530 | |
---|
6531 | done |
---|
6532 | |
---|
6533 | |
---|
6534 | LIBS="`sdl-config --libs` $LIBS" |
---|
6535 | ;; |
---|
6536 | |
---|
6537 | ############# |
---|
6538 | #-----------# |
---|
6539 | # MAC -OS X # |
---|
6540 | #-----------# |
---|
6541 | ############# |
---|
6542 | *darwin*) |
---|
6543 | echo "OS X detected" |
---|
6544 | |
---|
6545 | osX="yes" |
---|
6546 | |
---|
6547 | CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" |
---|
6548 | # checking gl header |
---|
6549 | |
---|
6550 | for ac_header in OpenGL/gl.h |
---|
6551 | do |
---|
6552 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6553 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6554 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6555 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6556 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6558 | fi |
---|
6559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6560 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6561 | else |
---|
6562 | # Is the header compilable? |
---|
6563 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6564 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6565 | cat >conftest.$ac_ext <<_ACEOF |
---|
6566 | /* confdefs.h. */ |
---|
6567 | _ACEOF |
---|
6568 | cat confdefs.h >>conftest.$ac_ext |
---|
6569 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6570 | /* end confdefs.h. */ |
---|
6571 | $ac_includes_default |
---|
6572 | #include <$ac_header> |
---|
6573 | _ACEOF |
---|
6574 | rm -f conftest.$ac_objext |
---|
6575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6576 | (eval $ac_compile) 2>conftest.er1 |
---|
6577 | ac_status=$? |
---|
6578 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6579 | rm -f conftest.er1 |
---|
6580 | cat conftest.err >&5 |
---|
6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6582 | (exit $ac_status); } && |
---|
6583 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6584 | || test ! -s conftest.err' |
---|
6585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6586 | (eval $ac_try) 2>&5 |
---|
6587 | ac_status=$? |
---|
6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6589 | (exit $ac_status); }; } && |
---|
6590 | { ac_try='test -s conftest.$ac_objext' |
---|
6591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6592 | (eval $ac_try) 2>&5 |
---|
6593 | ac_status=$? |
---|
6594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6595 | (exit $ac_status); }; }; then |
---|
6596 | ac_header_compiler=yes |
---|
6597 | else |
---|
6598 | echo "$as_me: failed program was:" >&5 |
---|
6599 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6600 | |
---|
6601 | ac_header_compiler=no |
---|
6602 | fi |
---|
6603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6604 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6605 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6606 | |
---|
6607 | # Is the header present? |
---|
6608 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6609 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6610 | cat >conftest.$ac_ext <<_ACEOF |
---|
6611 | /* confdefs.h. */ |
---|
6612 | _ACEOF |
---|
6613 | cat confdefs.h >>conftest.$ac_ext |
---|
6614 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6615 | /* end confdefs.h. */ |
---|
6616 | #include <$ac_header> |
---|
6617 | _ACEOF |
---|
6618 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6619 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6620 | ac_status=$? |
---|
6621 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6622 | rm -f conftest.er1 |
---|
6623 | cat conftest.err >&5 |
---|
6624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6625 | (exit $ac_status); } >/dev/null; then |
---|
6626 | if test -s conftest.err; then |
---|
6627 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6628 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6629 | else |
---|
6630 | ac_cpp_err= |
---|
6631 | fi |
---|
6632 | else |
---|
6633 | ac_cpp_err=yes |
---|
6634 | fi |
---|
6635 | if test -z "$ac_cpp_err"; then |
---|
6636 | ac_header_preproc=yes |
---|
6637 | else |
---|
6638 | echo "$as_me: failed program was:" >&5 |
---|
6639 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6640 | |
---|
6641 | ac_header_preproc=no |
---|
6642 | fi |
---|
6643 | rm -f conftest.err conftest.$ac_ext |
---|
6644 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6645 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6646 | |
---|
6647 | # So? What about this header? |
---|
6648 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6649 | yes:no: ) |
---|
6650 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6651 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6652 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6653 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6654 | ac_header_preproc=yes |
---|
6655 | ;; |
---|
6656 | no:yes:* ) |
---|
6657 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6658 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6659 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6660 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6661 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6662 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6663 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6664 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6666 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6667 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6668 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6669 | ( |
---|
6670 | cat <<\_ASBOX |
---|
6671 | ## ---------------------------------------------- ## |
---|
6672 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6673 | ## ---------------------------------------------- ## |
---|
6674 | _ASBOX |
---|
6675 | ) | |
---|
6676 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6677 | ;; |
---|
6678 | esac |
---|
6679 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6683 | else |
---|
6684 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6685 | fi |
---|
6686 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6687 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6688 | |
---|
6689 | fi |
---|
6690 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6691 | cat >>confdefs.h <<_ACEOF |
---|
6692 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6693 | _ACEOF |
---|
6694 | |
---|
6695 | else |
---|
6696 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6697 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6698 | { (exit 1); exit 1; }; } |
---|
6699 | fi |
---|
6700 | |
---|
6701 | done |
---|
6702 | |
---|
6703 | # cheking for GLU-header |
---|
6704 | |
---|
6705 | for ac_header in OpenGL/glu.h |
---|
6706 | do |
---|
6707 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6708 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6709 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6710 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6711 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6713 | fi |
---|
6714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6715 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6716 | else |
---|
6717 | # Is the header compilable? |
---|
6718 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6719 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6720 | cat >conftest.$ac_ext <<_ACEOF |
---|
6721 | /* confdefs.h. */ |
---|
6722 | _ACEOF |
---|
6723 | cat confdefs.h >>conftest.$ac_ext |
---|
6724 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6725 | /* end confdefs.h. */ |
---|
6726 | $ac_includes_default |
---|
6727 | #include <$ac_header> |
---|
6728 | _ACEOF |
---|
6729 | rm -f conftest.$ac_objext |
---|
6730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6731 | (eval $ac_compile) 2>conftest.er1 |
---|
6732 | ac_status=$? |
---|
6733 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6734 | rm -f conftest.er1 |
---|
6735 | cat conftest.err >&5 |
---|
6736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6737 | (exit $ac_status); } && |
---|
6738 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6739 | || test ! -s conftest.err' |
---|
6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6741 | (eval $ac_try) 2>&5 |
---|
6742 | ac_status=$? |
---|
6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6744 | (exit $ac_status); }; } && |
---|
6745 | { ac_try='test -s conftest.$ac_objext' |
---|
6746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6747 | (eval $ac_try) 2>&5 |
---|
6748 | ac_status=$? |
---|
6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6750 | (exit $ac_status); }; }; then |
---|
6751 | ac_header_compiler=yes |
---|
6752 | else |
---|
6753 | echo "$as_me: failed program was:" >&5 |
---|
6754 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6755 | |
---|
6756 | ac_header_compiler=no |
---|
6757 | fi |
---|
6758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6759 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6760 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6761 | |
---|
6762 | # Is the header present? |
---|
6763 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6764 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6765 | cat >conftest.$ac_ext <<_ACEOF |
---|
6766 | /* confdefs.h. */ |
---|
6767 | _ACEOF |
---|
6768 | cat confdefs.h >>conftest.$ac_ext |
---|
6769 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6770 | /* end confdefs.h. */ |
---|
6771 | #include <$ac_header> |
---|
6772 | _ACEOF |
---|
6773 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6774 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6775 | ac_status=$? |
---|
6776 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6777 | rm -f conftest.er1 |
---|
6778 | cat conftest.err >&5 |
---|
6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6780 | (exit $ac_status); } >/dev/null; then |
---|
6781 | if test -s conftest.err; then |
---|
6782 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6783 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6784 | else |
---|
6785 | ac_cpp_err= |
---|
6786 | fi |
---|
6787 | else |
---|
6788 | ac_cpp_err=yes |
---|
6789 | fi |
---|
6790 | if test -z "$ac_cpp_err"; then |
---|
6791 | ac_header_preproc=yes |
---|
6792 | else |
---|
6793 | echo "$as_me: failed program was:" >&5 |
---|
6794 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6795 | |
---|
6796 | ac_header_preproc=no |
---|
6797 | fi |
---|
6798 | rm -f conftest.err conftest.$ac_ext |
---|
6799 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6800 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6801 | |
---|
6802 | # So? What about this header? |
---|
6803 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6804 | yes:no: ) |
---|
6805 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6806 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6808 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6809 | ac_header_preproc=yes |
---|
6810 | ;; |
---|
6811 | no:yes:* ) |
---|
6812 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6813 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6814 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6815 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6816 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6817 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6818 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6819 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6820 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6821 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6822 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6823 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6824 | ( |
---|
6825 | cat <<\_ASBOX |
---|
6826 | ## ---------------------------------------------- ## |
---|
6827 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6828 | ## ---------------------------------------------- ## |
---|
6829 | _ASBOX |
---|
6830 | ) | |
---|
6831 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6832 | ;; |
---|
6833 | esac |
---|
6834 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6838 | else |
---|
6839 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6840 | fi |
---|
6841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6842 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6843 | |
---|
6844 | fi |
---|
6845 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6846 | cat >>confdefs.h <<_ACEOF |
---|
6847 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6848 | _ACEOF |
---|
6849 | |
---|
6850 | else |
---|
6851 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6852 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6853 | { (exit 1); exit 1; }; } |
---|
6854 | fi |
---|
6855 | |
---|
6856 | done |
---|
6857 | |
---|
6858 | |
---|
6859 | LIBS="$LIBS -framework OpenGL" |
---|
6860 | |
---|
6861 | |
---|
6862 | ## SDL-check |
---|
6863 | SDL_CFLAGS=`sdl-config --cflags` |
---|
6864 | SDL_LIBS=`sdl-config --libs` |
---|
6865 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
6866 | LIBS="$LIBS $SDL_LIBS" |
---|
6867 | |
---|
6868 | |
---|
6869 | # checking for SDL-headers |
---|
6870 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
6871 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
6872 | |
---|
6873 | ## checking for SDL |
---|
6874 | # SDL_VERSION=1.2.7 |
---|
6875 | # AM_PATH_SDL($SDL_VERSION, |
---|
6876 | # :, |
---|
6877 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
6878 | # ) |
---|
6879 | |
---|
6880 | |
---|
6881 | ;; |
---|
6882 | |
---|
6883 | *) |
---|
6884 | ;; |
---|
6885 | esac |
---|
6886 | |
---|
6887 | |
---|
6888 | |
---|
6889 | ################################### |
---|
6890 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
6891 | ################################### |
---|
6892 | |
---|
6893 | #---------# |
---|
6894 | # SDL_ttf # |
---|
6895 | #---------# |
---|
6896 | # checking for SDL_ttf-headers |
---|
6897 | |
---|
6898 | for ac_header in SDL_ttf.h |
---|
6899 | do |
---|
6900 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6902 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6906 | fi |
---|
6907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6909 | else |
---|
6910 | # Is the header compilable? |
---|
6911 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6912 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6913 | cat >conftest.$ac_ext <<_ACEOF |
---|
6914 | /* confdefs.h. */ |
---|
6915 | _ACEOF |
---|
6916 | cat confdefs.h >>conftest.$ac_ext |
---|
6917 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6918 | /* end confdefs.h. */ |
---|
6919 | $ac_includes_default |
---|
6920 | #include <$ac_header> |
---|
6921 | _ACEOF |
---|
6922 | rm -f conftest.$ac_objext |
---|
6923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6924 | (eval $ac_compile) 2>conftest.er1 |
---|
6925 | ac_status=$? |
---|
6926 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6927 | rm -f conftest.er1 |
---|
6928 | cat conftest.err >&5 |
---|
6929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6930 | (exit $ac_status); } && |
---|
6931 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6932 | || test ! -s conftest.err' |
---|
6933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6934 | (eval $ac_try) 2>&5 |
---|
6935 | ac_status=$? |
---|
6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6937 | (exit $ac_status); }; } && |
---|
6938 | { ac_try='test -s conftest.$ac_objext' |
---|
6939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6940 | (eval $ac_try) 2>&5 |
---|
6941 | ac_status=$? |
---|
6942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6943 | (exit $ac_status); }; }; then |
---|
6944 | ac_header_compiler=yes |
---|
6945 | else |
---|
6946 | echo "$as_me: failed program was:" >&5 |
---|
6947 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6948 | |
---|
6949 | ac_header_compiler=no |
---|
6950 | fi |
---|
6951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6952 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6953 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6954 | |
---|
6955 | # Is the header present? |
---|
6956 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6957 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6958 | cat >conftest.$ac_ext <<_ACEOF |
---|
6959 | /* confdefs.h. */ |
---|
6960 | _ACEOF |
---|
6961 | cat confdefs.h >>conftest.$ac_ext |
---|
6962 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6963 | /* end confdefs.h. */ |
---|
6964 | #include <$ac_header> |
---|
6965 | _ACEOF |
---|
6966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6968 | ac_status=$? |
---|
6969 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6970 | rm -f conftest.er1 |
---|
6971 | cat conftest.err >&5 |
---|
6972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6973 | (exit $ac_status); } >/dev/null; then |
---|
6974 | if test -s conftest.err; then |
---|
6975 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6976 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6977 | else |
---|
6978 | ac_cpp_err= |
---|
6979 | fi |
---|
6980 | else |
---|
6981 | ac_cpp_err=yes |
---|
6982 | fi |
---|
6983 | if test -z "$ac_cpp_err"; then |
---|
6984 | ac_header_preproc=yes |
---|
6985 | else |
---|
6986 | echo "$as_me: failed program was:" >&5 |
---|
6987 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6988 | |
---|
6989 | ac_header_preproc=no |
---|
6990 | fi |
---|
6991 | rm -f conftest.err conftest.$ac_ext |
---|
6992 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6993 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6994 | |
---|
6995 | # So? What about this header? |
---|
6996 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6997 | yes:no: ) |
---|
6998 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6999 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7001 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7002 | ac_header_preproc=yes |
---|
7003 | ;; |
---|
7004 | no:yes:* ) |
---|
7005 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7006 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7007 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7008 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7009 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7010 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7011 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7012 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7014 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7015 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7016 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7017 | ( |
---|
7018 | cat <<\_ASBOX |
---|
7019 | ## ---------------------------------------------- ## |
---|
7020 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7021 | ## ---------------------------------------------- ## |
---|
7022 | _ASBOX |
---|
7023 | ) | |
---|
7024 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7025 | ;; |
---|
7026 | esac |
---|
7027 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7029 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7031 | else |
---|
7032 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7033 | fi |
---|
7034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7035 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7036 | |
---|
7037 | fi |
---|
7038 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7039 | cat >>confdefs.h <<_ACEOF |
---|
7040 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7041 | _ACEOF |
---|
7042 | |
---|
7043 | else |
---|
7044 | |
---|
7045 | for ac_header in SDL/SDL_ttf.h |
---|
7046 | do |
---|
7047 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7053 | fi |
---|
7054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7056 | else |
---|
7057 | # Is the header compilable? |
---|
7058 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7059 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7060 | cat >conftest.$ac_ext <<_ACEOF |
---|
7061 | /* confdefs.h. */ |
---|
7062 | _ACEOF |
---|
7063 | cat confdefs.h >>conftest.$ac_ext |
---|
7064 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7065 | /* end confdefs.h. */ |
---|
7066 | $ac_includes_default |
---|
7067 | #include <$ac_header> |
---|
7068 | _ACEOF |
---|
7069 | rm -f conftest.$ac_objext |
---|
7070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7071 | (eval $ac_compile) 2>conftest.er1 |
---|
7072 | ac_status=$? |
---|
7073 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7074 | rm -f conftest.er1 |
---|
7075 | cat conftest.err >&5 |
---|
7076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7077 | (exit $ac_status); } && |
---|
7078 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7079 | || test ! -s conftest.err' |
---|
7080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7081 | (eval $ac_try) 2>&5 |
---|
7082 | ac_status=$? |
---|
7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7084 | (exit $ac_status); }; } && |
---|
7085 | { ac_try='test -s conftest.$ac_objext' |
---|
7086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7087 | (eval $ac_try) 2>&5 |
---|
7088 | ac_status=$? |
---|
7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7090 | (exit $ac_status); }; }; then |
---|
7091 | ac_header_compiler=yes |
---|
7092 | else |
---|
7093 | echo "$as_me: failed program was:" >&5 |
---|
7094 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7095 | |
---|
7096 | ac_header_compiler=no |
---|
7097 | fi |
---|
7098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7099 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7100 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7101 | |
---|
7102 | # Is the header present? |
---|
7103 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7105 | cat >conftest.$ac_ext <<_ACEOF |
---|
7106 | /* confdefs.h. */ |
---|
7107 | _ACEOF |
---|
7108 | cat confdefs.h >>conftest.$ac_ext |
---|
7109 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7110 | /* end confdefs.h. */ |
---|
7111 | #include <$ac_header> |
---|
7112 | _ACEOF |
---|
7113 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7114 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7115 | ac_status=$? |
---|
7116 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7117 | rm -f conftest.er1 |
---|
7118 | cat conftest.err >&5 |
---|
7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7120 | (exit $ac_status); } >/dev/null; then |
---|
7121 | if test -s conftest.err; then |
---|
7122 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7123 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7124 | else |
---|
7125 | ac_cpp_err= |
---|
7126 | fi |
---|
7127 | else |
---|
7128 | ac_cpp_err=yes |
---|
7129 | fi |
---|
7130 | if test -z "$ac_cpp_err"; then |
---|
7131 | ac_header_preproc=yes |
---|
7132 | else |
---|
7133 | echo "$as_me: failed program was:" >&5 |
---|
7134 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7135 | |
---|
7136 | ac_header_preproc=no |
---|
7137 | fi |
---|
7138 | rm -f conftest.err conftest.$ac_ext |
---|
7139 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7140 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7141 | |
---|
7142 | # So? What about this header? |
---|
7143 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7144 | yes:no: ) |
---|
7145 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7146 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7148 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7149 | ac_header_preproc=yes |
---|
7150 | ;; |
---|
7151 | no:yes:* ) |
---|
7152 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7153 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7154 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7155 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7156 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7157 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7158 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7159 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7161 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7162 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7163 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7164 | ( |
---|
7165 | cat <<\_ASBOX |
---|
7166 | ## ---------------------------------------------- ## |
---|
7167 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7168 | ## ---------------------------------------------- ## |
---|
7169 | _ASBOX |
---|
7170 | ) | |
---|
7171 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7172 | ;; |
---|
7173 | esac |
---|
7174 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7178 | else |
---|
7179 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7180 | fi |
---|
7181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7182 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7183 | |
---|
7184 | fi |
---|
7185 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7186 | cat >>confdefs.h <<_ACEOF |
---|
7187 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7188 | _ACEOF |
---|
7189 | |
---|
7190 | else |
---|
7191 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
7192 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
7193 | { (exit 1); exit 1; }; } |
---|
7194 | fi |
---|
7195 | |
---|
7196 | done |
---|
7197 | |
---|
7198 | fi |
---|
7199 | |
---|
7200 | done |
---|
7201 | |
---|
7202 | # checking for SDL_ttf-lib |
---|
7203 | echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 |
---|
7204 | echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 |
---|
7205 | if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then |
---|
7206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7207 | else |
---|
7208 | ac_check_lib_save_LIBS=$LIBS |
---|
7209 | LIBS="-lSDL_ttf $LIBS" |
---|
7210 | cat >conftest.$ac_ext <<_ACEOF |
---|
7211 | /* confdefs.h. */ |
---|
7212 | _ACEOF |
---|
7213 | cat confdefs.h >>conftest.$ac_ext |
---|
7214 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7215 | /* end confdefs.h. */ |
---|
7216 | |
---|
7217 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7218 | #ifdef __cplusplus |
---|
7219 | extern "C" |
---|
7220 | #endif |
---|
7221 | /* We use char because int might match the return type of a gcc2 |
---|
7222 | builtin and then its argument prototype would still apply. */ |
---|
7223 | char TTF_OpenFont (); |
---|
7224 | int |
---|
7225 | main () |
---|
7226 | { |
---|
7227 | TTF_OpenFont (); |
---|
7228 | ; |
---|
7229 | return 0; |
---|
7230 | } |
---|
7231 | _ACEOF |
---|
7232 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7234 | (eval $ac_link) 2>conftest.er1 |
---|
7235 | ac_status=$? |
---|
7236 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7237 | rm -f conftest.er1 |
---|
7238 | cat conftest.err >&5 |
---|
7239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7240 | (exit $ac_status); } && |
---|
7241 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7242 | || test ! -s conftest.err' |
---|
7243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7244 | (eval $ac_try) 2>&5 |
---|
7245 | ac_status=$? |
---|
7246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7247 | (exit $ac_status); }; } && |
---|
7248 | { ac_try='test -s conftest$ac_exeext' |
---|
7249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7250 | (eval $ac_try) 2>&5 |
---|
7251 | ac_status=$? |
---|
7252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7253 | (exit $ac_status); }; }; then |
---|
7254 | ac_cv_lib_SDL_ttf_TTF_OpenFont=yes |
---|
7255 | else |
---|
7256 | echo "$as_me: failed program was:" >&5 |
---|
7257 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7258 | |
---|
7259 | ac_cv_lib_SDL_ttf_TTF_OpenFont=no |
---|
7260 | fi |
---|
7261 | rm -f conftest.err conftest.$ac_objext \ |
---|
7262 | conftest$ac_exeext conftest.$ac_ext |
---|
7263 | LIBS=$ac_check_lib_save_LIBS |
---|
7264 | fi |
---|
7265 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 |
---|
7266 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 |
---|
7267 | if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then |
---|
7268 | FOUND_SDL_ttf=yes |
---|
7269 | fi |
---|
7270 | |
---|
7271 | if test x$FOUND_SDL_ttf = xyes ; then |
---|
7272 | LIBS="$LIBS -lSDL_ttf" |
---|
7273 | else |
---|
7274 | echo "------------------" |
---|
7275 | echo "SDL_ttf library not found." |
---|
7276 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
7277 | echo "------------------" |
---|
7278 | exit -1 |
---|
7279 | fi |
---|
7280 | |
---|
7281 | |
---|
7282 | #-----------# |
---|
7283 | # SDL_Image # |
---|
7284 | #-----------# |
---|
7285 | # checking for SDL_image-headers |
---|
7286 | |
---|
7287 | for ac_header in SDL_image.h |
---|
7288 | do |
---|
7289 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7290 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7291 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7292 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7295 | fi |
---|
7296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7297 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7298 | else |
---|
7299 | # Is the header compilable? |
---|
7300 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7301 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7302 | cat >conftest.$ac_ext <<_ACEOF |
---|
7303 | /* confdefs.h. */ |
---|
7304 | _ACEOF |
---|
7305 | cat confdefs.h >>conftest.$ac_ext |
---|
7306 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7307 | /* end confdefs.h. */ |
---|
7308 | $ac_includes_default |
---|
7309 | #include <$ac_header> |
---|
7310 | _ACEOF |
---|
7311 | rm -f conftest.$ac_objext |
---|
7312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7313 | (eval $ac_compile) 2>conftest.er1 |
---|
7314 | ac_status=$? |
---|
7315 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7316 | rm -f conftest.er1 |
---|
7317 | cat conftest.err >&5 |
---|
7318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7319 | (exit $ac_status); } && |
---|
7320 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7321 | || test ! -s conftest.err' |
---|
7322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7323 | (eval $ac_try) 2>&5 |
---|
7324 | ac_status=$? |
---|
7325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7326 | (exit $ac_status); }; } && |
---|
7327 | { ac_try='test -s conftest.$ac_objext' |
---|
7328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7329 | (eval $ac_try) 2>&5 |
---|
7330 | ac_status=$? |
---|
7331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7332 | (exit $ac_status); }; }; then |
---|
7333 | ac_header_compiler=yes |
---|
7334 | else |
---|
7335 | echo "$as_me: failed program was:" >&5 |
---|
7336 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7337 | |
---|
7338 | ac_header_compiler=no |
---|
7339 | fi |
---|
7340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7341 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7342 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7343 | |
---|
7344 | # Is the header present? |
---|
7345 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7346 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7347 | cat >conftest.$ac_ext <<_ACEOF |
---|
7348 | /* confdefs.h. */ |
---|
7349 | _ACEOF |
---|
7350 | cat confdefs.h >>conftest.$ac_ext |
---|
7351 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7352 | /* end confdefs.h. */ |
---|
7353 | #include <$ac_header> |
---|
7354 | _ACEOF |
---|
7355 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7356 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7357 | ac_status=$? |
---|
7358 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7359 | rm -f conftest.er1 |
---|
7360 | cat conftest.err >&5 |
---|
7361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7362 | (exit $ac_status); } >/dev/null; then |
---|
7363 | if test -s conftest.err; then |
---|
7364 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7365 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7366 | else |
---|
7367 | ac_cpp_err= |
---|
7368 | fi |
---|
7369 | else |
---|
7370 | ac_cpp_err=yes |
---|
7371 | fi |
---|
7372 | if test -z "$ac_cpp_err"; then |
---|
7373 | ac_header_preproc=yes |
---|
7374 | else |
---|
7375 | echo "$as_me: failed program was:" >&5 |
---|
7376 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7377 | |
---|
7378 | ac_header_preproc=no |
---|
7379 | fi |
---|
7380 | rm -f conftest.err conftest.$ac_ext |
---|
7381 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7382 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7383 | |
---|
7384 | # So? What about this header? |
---|
7385 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7386 | yes:no: ) |
---|
7387 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7388 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7389 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7390 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7391 | ac_header_preproc=yes |
---|
7392 | ;; |
---|
7393 | no:yes:* ) |
---|
7394 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7395 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7396 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7397 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7398 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7399 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7400 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7401 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7402 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7403 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7404 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7405 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7406 | ( |
---|
7407 | cat <<\_ASBOX |
---|
7408 | ## ---------------------------------------------- ## |
---|
7409 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7410 | ## ---------------------------------------------- ## |
---|
7411 | _ASBOX |
---|
7412 | ) | |
---|
7413 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7414 | ;; |
---|
7415 | esac |
---|
7416 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7420 | else |
---|
7421 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7422 | fi |
---|
7423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7424 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7425 | |
---|
7426 | fi |
---|
7427 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7428 | cat >>confdefs.h <<_ACEOF |
---|
7429 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7430 | _ACEOF |
---|
7431 | |
---|
7432 | else |
---|
7433 | |
---|
7434 | for ac_header in SDL/SDL_image.h |
---|
7435 | do |
---|
7436 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7438 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7442 | fi |
---|
7443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7445 | else |
---|
7446 | # Is the header compilable? |
---|
7447 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7448 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7449 | cat >conftest.$ac_ext <<_ACEOF |
---|
7450 | /* confdefs.h. */ |
---|
7451 | _ACEOF |
---|
7452 | cat confdefs.h >>conftest.$ac_ext |
---|
7453 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7454 | /* end confdefs.h. */ |
---|
7455 | $ac_includes_default |
---|
7456 | #include <$ac_header> |
---|
7457 | _ACEOF |
---|
7458 | rm -f conftest.$ac_objext |
---|
7459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7460 | (eval $ac_compile) 2>conftest.er1 |
---|
7461 | ac_status=$? |
---|
7462 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7463 | rm -f conftest.er1 |
---|
7464 | cat conftest.err >&5 |
---|
7465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7466 | (exit $ac_status); } && |
---|
7467 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7468 | || test ! -s conftest.err' |
---|
7469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7470 | (eval $ac_try) 2>&5 |
---|
7471 | ac_status=$? |
---|
7472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7473 | (exit $ac_status); }; } && |
---|
7474 | { ac_try='test -s conftest.$ac_objext' |
---|
7475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7476 | (eval $ac_try) 2>&5 |
---|
7477 | ac_status=$? |
---|
7478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7479 | (exit $ac_status); }; }; then |
---|
7480 | ac_header_compiler=yes |
---|
7481 | else |
---|
7482 | echo "$as_me: failed program was:" >&5 |
---|
7483 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7484 | |
---|
7485 | ac_header_compiler=no |
---|
7486 | fi |
---|
7487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7488 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7489 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7490 | |
---|
7491 | # Is the header present? |
---|
7492 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7493 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7494 | cat >conftest.$ac_ext <<_ACEOF |
---|
7495 | /* confdefs.h. */ |
---|
7496 | _ACEOF |
---|
7497 | cat confdefs.h >>conftest.$ac_ext |
---|
7498 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7499 | /* end confdefs.h. */ |
---|
7500 | #include <$ac_header> |
---|
7501 | _ACEOF |
---|
7502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7504 | ac_status=$? |
---|
7505 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7506 | rm -f conftest.er1 |
---|
7507 | cat conftest.err >&5 |
---|
7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7509 | (exit $ac_status); } >/dev/null; then |
---|
7510 | if test -s conftest.err; then |
---|
7511 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7512 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7513 | else |
---|
7514 | ac_cpp_err= |
---|
7515 | fi |
---|
7516 | else |
---|
7517 | ac_cpp_err=yes |
---|
7518 | fi |
---|
7519 | if test -z "$ac_cpp_err"; then |
---|
7520 | ac_header_preproc=yes |
---|
7521 | else |
---|
7522 | echo "$as_me: failed program was:" >&5 |
---|
7523 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7524 | |
---|
7525 | ac_header_preproc=no |
---|
7526 | fi |
---|
7527 | rm -f conftest.err conftest.$ac_ext |
---|
7528 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7529 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7530 | |
---|
7531 | # So? What about this header? |
---|
7532 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7533 | yes:no: ) |
---|
7534 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7535 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7536 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7537 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7538 | ac_header_preproc=yes |
---|
7539 | ;; |
---|
7540 | no:yes:* ) |
---|
7541 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7542 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7543 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7544 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7545 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7546 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7547 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7548 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7550 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7551 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7552 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7553 | ( |
---|
7554 | cat <<\_ASBOX |
---|
7555 | ## ---------------------------------------------- ## |
---|
7556 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7557 | ## ---------------------------------------------- ## |
---|
7558 | _ASBOX |
---|
7559 | ) | |
---|
7560 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7561 | ;; |
---|
7562 | esac |
---|
7563 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7564 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7565 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7567 | else |
---|
7568 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7569 | fi |
---|
7570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7572 | |
---|
7573 | fi |
---|
7574 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7575 | cat >>confdefs.h <<_ACEOF |
---|
7576 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7577 | _ACEOF |
---|
7578 | |
---|
7579 | else |
---|
7580 | { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 |
---|
7581 | echo "$as_me: error: SDL_image header not found." >&2;} |
---|
7582 | { (exit 1); exit 1; }; } |
---|
7583 | fi |
---|
7584 | |
---|
7585 | done |
---|
7586 | |
---|
7587 | fi |
---|
7588 | |
---|
7589 | done |
---|
7590 | |
---|
7591 | # checking for SDL_image-lib |
---|
7592 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
7593 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
7594 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
7595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7596 | else |
---|
7597 | ac_check_lib_save_LIBS=$LIBS |
---|
7598 | LIBS="-lSDL_image $LIBS" |
---|
7599 | cat >conftest.$ac_ext <<_ACEOF |
---|
7600 | /* confdefs.h. */ |
---|
7601 | _ACEOF |
---|
7602 | cat confdefs.h >>conftest.$ac_ext |
---|
7603 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7604 | /* end confdefs.h. */ |
---|
7605 | |
---|
7606 | |
---|
7607 | int |
---|
7608 | main () |
---|
7609 | { |
---|
7610 | main (); |
---|
7611 | ; |
---|
7612 | return 0; |
---|
7613 | } |
---|
7614 | _ACEOF |
---|
7615 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7617 | (eval $ac_link) 2>conftest.er1 |
---|
7618 | ac_status=$? |
---|
7619 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7620 | rm -f conftest.er1 |
---|
7621 | cat conftest.err >&5 |
---|
7622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7623 | (exit $ac_status); } && |
---|
7624 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7625 | || test ! -s conftest.err' |
---|
7626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7627 | (eval $ac_try) 2>&5 |
---|
7628 | ac_status=$? |
---|
7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7630 | (exit $ac_status); }; } && |
---|
7631 | { ac_try='test -s conftest$ac_exeext' |
---|
7632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7633 | (eval $ac_try) 2>&5 |
---|
7634 | ac_status=$? |
---|
7635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7636 | (exit $ac_status); }; }; then |
---|
7637 | ac_cv_lib_SDL_image_main=yes |
---|
7638 | else |
---|
7639 | echo "$as_me: failed program was:" >&5 |
---|
7640 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7641 | |
---|
7642 | ac_cv_lib_SDL_image_main=no |
---|
7643 | fi |
---|
7644 | rm -f conftest.err conftest.$ac_objext \ |
---|
7645 | conftest$ac_exeext conftest.$ac_ext |
---|
7646 | LIBS=$ac_check_lib_save_LIBS |
---|
7647 | fi |
---|
7648 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
7649 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
7650 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
7651 | FOUND_SDL_image=yes |
---|
7652 | fi |
---|
7653 | |
---|
7654 | if test x$FOUND_SDL_image = xyes ; then |
---|
7655 | LIBS="$LIBS -lSDL_image" |
---|
7656 | else |
---|
7657 | echo "------------------" |
---|
7658 | echo "SDL_image library not found." |
---|
7659 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
7660 | echo "------------------" |
---|
7661 | exit -1 |
---|
7662 | fi |
---|
7663 | |
---|
7664 | #-----# |
---|
7665 | # ogg # |
---|
7666 | #-----# |
---|
7667 | # checking for ogg-headers |
---|
7668 | |
---|
7669 | for ac_header in ogg/ogg.h |
---|
7670 | do |
---|
7671 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7672 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7673 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7674 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7675 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7677 | fi |
---|
7678 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7679 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7680 | else |
---|
7681 | # Is the header compilable? |
---|
7682 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7683 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7684 | cat >conftest.$ac_ext <<_ACEOF |
---|
7685 | /* confdefs.h. */ |
---|
7686 | _ACEOF |
---|
7687 | cat confdefs.h >>conftest.$ac_ext |
---|
7688 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7689 | /* end confdefs.h. */ |
---|
7690 | $ac_includes_default |
---|
7691 | #include <$ac_header> |
---|
7692 | _ACEOF |
---|
7693 | rm -f conftest.$ac_objext |
---|
7694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7695 | (eval $ac_compile) 2>conftest.er1 |
---|
7696 | ac_status=$? |
---|
7697 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7698 | rm -f conftest.er1 |
---|
7699 | cat conftest.err >&5 |
---|
7700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7701 | (exit $ac_status); } && |
---|
7702 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7703 | || test ! -s conftest.err' |
---|
7704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7705 | (eval $ac_try) 2>&5 |
---|
7706 | ac_status=$? |
---|
7707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7708 | (exit $ac_status); }; } && |
---|
7709 | { ac_try='test -s conftest.$ac_objext' |
---|
7710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7711 | (eval $ac_try) 2>&5 |
---|
7712 | ac_status=$? |
---|
7713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7714 | (exit $ac_status); }; }; then |
---|
7715 | ac_header_compiler=yes |
---|
7716 | else |
---|
7717 | echo "$as_me: failed program was:" >&5 |
---|
7718 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7719 | |
---|
7720 | ac_header_compiler=no |
---|
7721 | fi |
---|
7722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7723 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7724 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7725 | |
---|
7726 | # Is the header present? |
---|
7727 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7728 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7729 | cat >conftest.$ac_ext <<_ACEOF |
---|
7730 | /* confdefs.h. */ |
---|
7731 | _ACEOF |
---|
7732 | cat confdefs.h >>conftest.$ac_ext |
---|
7733 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7734 | /* end confdefs.h. */ |
---|
7735 | #include <$ac_header> |
---|
7736 | _ACEOF |
---|
7737 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7738 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7739 | ac_status=$? |
---|
7740 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7741 | rm -f conftest.er1 |
---|
7742 | cat conftest.err >&5 |
---|
7743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7744 | (exit $ac_status); } >/dev/null; then |
---|
7745 | if test -s conftest.err; then |
---|
7746 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7747 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7748 | else |
---|
7749 | ac_cpp_err= |
---|
7750 | fi |
---|
7751 | else |
---|
7752 | ac_cpp_err=yes |
---|
7753 | fi |
---|
7754 | if test -z "$ac_cpp_err"; then |
---|
7755 | ac_header_preproc=yes |
---|
7756 | else |
---|
7757 | echo "$as_me: failed program was:" >&5 |
---|
7758 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7759 | |
---|
7760 | ac_header_preproc=no |
---|
7761 | fi |
---|
7762 | rm -f conftest.err conftest.$ac_ext |
---|
7763 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7764 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7765 | |
---|
7766 | # So? What about this header? |
---|
7767 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7768 | yes:no: ) |
---|
7769 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7770 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7772 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7773 | ac_header_preproc=yes |
---|
7774 | ;; |
---|
7775 | no:yes:* ) |
---|
7776 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7777 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7778 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7779 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7780 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7781 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7782 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7783 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7784 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7785 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7786 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7787 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7788 | ( |
---|
7789 | cat <<\_ASBOX |
---|
7790 | ## ---------------------------------------------- ## |
---|
7791 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7792 | ## ---------------------------------------------- ## |
---|
7793 | _ASBOX |
---|
7794 | ) | |
---|
7795 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7796 | ;; |
---|
7797 | esac |
---|
7798 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7799 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7802 | else |
---|
7803 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7804 | fi |
---|
7805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7806 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7807 | |
---|
7808 | fi |
---|
7809 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7810 | cat >>confdefs.h <<_ACEOF |
---|
7811 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7812 | _ACEOF |
---|
7813 | |
---|
7814 | else |
---|
7815 | { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5 |
---|
7816 | echo "$as_me: error: cannot find ogg header." >&2;} |
---|
7817 | { (exit 1); exit 1; }; } |
---|
7818 | fi |
---|
7819 | |
---|
7820 | done |
---|
7821 | |
---|
7822 | # checking for ogg-lib |
---|
7823 | echo "$as_me:$LINENO: checking for main in -logg" >&5 |
---|
7824 | echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 |
---|
7825 | if test "${ac_cv_lib_ogg_main+set}" = set; then |
---|
7826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7827 | else |
---|
7828 | ac_check_lib_save_LIBS=$LIBS |
---|
7829 | LIBS="-logg $LIBS" |
---|
7830 | cat >conftest.$ac_ext <<_ACEOF |
---|
7831 | /* confdefs.h. */ |
---|
7832 | _ACEOF |
---|
7833 | cat confdefs.h >>conftest.$ac_ext |
---|
7834 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7835 | /* end confdefs.h. */ |
---|
7836 | |
---|
7837 | |
---|
7838 | int |
---|
7839 | main () |
---|
7840 | { |
---|
7841 | main (); |
---|
7842 | ; |
---|
7843 | return 0; |
---|
7844 | } |
---|
7845 | _ACEOF |
---|
7846 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7848 | (eval $ac_link) 2>conftest.er1 |
---|
7849 | ac_status=$? |
---|
7850 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7851 | rm -f conftest.er1 |
---|
7852 | cat conftest.err >&5 |
---|
7853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7854 | (exit $ac_status); } && |
---|
7855 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7856 | || test ! -s conftest.err' |
---|
7857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7858 | (eval $ac_try) 2>&5 |
---|
7859 | ac_status=$? |
---|
7860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7861 | (exit $ac_status); }; } && |
---|
7862 | { ac_try='test -s conftest$ac_exeext' |
---|
7863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7864 | (eval $ac_try) 2>&5 |
---|
7865 | ac_status=$? |
---|
7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7867 | (exit $ac_status); }; }; then |
---|
7868 | ac_cv_lib_ogg_main=yes |
---|
7869 | else |
---|
7870 | echo "$as_me: failed program was:" >&5 |
---|
7871 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7872 | |
---|
7873 | ac_cv_lib_ogg_main=no |
---|
7874 | fi |
---|
7875 | rm -f conftest.err conftest.$ac_objext \ |
---|
7876 | conftest$ac_exeext conftest.$ac_ext |
---|
7877 | LIBS=$ac_check_lib_save_LIBS |
---|
7878 | fi |
---|
7879 | echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 |
---|
7880 | echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 |
---|
7881 | if test $ac_cv_lib_ogg_main = yes; then |
---|
7882 | FOUND_ogg=yes |
---|
7883 | fi |
---|
7884 | |
---|
7885 | if test x$FOUND_ogg = xyes ; then |
---|
7886 | LIBS="$LIBS -logg" |
---|
7887 | else |
---|
7888 | echo "------------------" |
---|
7889 | echo "ogg library not found." |
---|
7890 | echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
7891 | echo "------------------" |
---|
7892 | exit -1 |
---|
7893 | fi |
---|
7894 | |
---|
7895 | #--------# |
---|
7896 | # vorbis # |
---|
7897 | #--------# |
---|
7898 | # checking for vorbis-lib |
---|
7899 | echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 |
---|
7900 | echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 |
---|
7901 | if test "${ac_cv_lib_vorbis_main+set}" = set; then |
---|
7902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7903 | else |
---|
7904 | ac_check_lib_save_LIBS=$LIBS |
---|
7905 | LIBS="-lvorbis $LIBS" |
---|
7906 | cat >conftest.$ac_ext <<_ACEOF |
---|
7907 | /* confdefs.h. */ |
---|
7908 | _ACEOF |
---|
7909 | cat confdefs.h >>conftest.$ac_ext |
---|
7910 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7911 | /* end confdefs.h. */ |
---|
7912 | |
---|
7913 | |
---|
7914 | int |
---|
7915 | main () |
---|
7916 | { |
---|
7917 | main (); |
---|
7918 | ; |
---|
7919 | return 0; |
---|
7920 | } |
---|
7921 | _ACEOF |
---|
7922 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7924 | (eval $ac_link) 2>conftest.er1 |
---|
7925 | ac_status=$? |
---|
7926 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7927 | rm -f conftest.er1 |
---|
7928 | cat conftest.err >&5 |
---|
7929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7930 | (exit $ac_status); } && |
---|
7931 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7932 | || test ! -s conftest.err' |
---|
7933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7934 | (eval $ac_try) 2>&5 |
---|
7935 | ac_status=$? |
---|
7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7937 | (exit $ac_status); }; } && |
---|
7938 | { ac_try='test -s conftest$ac_exeext' |
---|
7939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7940 | (eval $ac_try) 2>&5 |
---|
7941 | ac_status=$? |
---|
7942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7943 | (exit $ac_status); }; }; then |
---|
7944 | ac_cv_lib_vorbis_main=yes |
---|
7945 | else |
---|
7946 | echo "$as_me: failed program was:" >&5 |
---|
7947 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7948 | |
---|
7949 | ac_cv_lib_vorbis_main=no |
---|
7950 | fi |
---|
7951 | rm -f conftest.err conftest.$ac_objext \ |
---|
7952 | conftest$ac_exeext conftest.$ac_ext |
---|
7953 | LIBS=$ac_check_lib_save_LIBS |
---|
7954 | fi |
---|
7955 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 |
---|
7956 | echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 |
---|
7957 | if test $ac_cv_lib_vorbis_main = yes; then |
---|
7958 | FOUND_vorbis=yes |
---|
7959 | fi |
---|
7960 | |
---|
7961 | if test x$FOUND_vorbis = xyes ; then |
---|
7962 | LIBS="$LIBS -lvorbis" |
---|
7963 | else |
---|
7964 | echo "------------------" |
---|
7965 | echo "vorbis library not found." |
---|
7966 | echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
7967 | echo "------------------" |
---|
7968 | exit -1 |
---|
7969 | fi |
---|
7970 | |
---|
7971 | #------------# |
---|
7972 | # vorbisfile # |
---|
7973 | #------------# |
---|
7974 | # checking for vorbis-headers |
---|
7975 | |
---|
7976 | for ac_header in vorbis/vorbisfile.h |
---|
7977 | do |
---|
7978 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7980 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7981 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7982 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7984 | fi |
---|
7985 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7986 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7987 | else |
---|
7988 | # Is the header compilable? |
---|
7989 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7990 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7991 | cat >conftest.$ac_ext <<_ACEOF |
---|
7992 | /* confdefs.h. */ |
---|
7993 | _ACEOF |
---|
7994 | cat confdefs.h >>conftest.$ac_ext |
---|
7995 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7996 | /* end confdefs.h. */ |
---|
7997 | $ac_includes_default |
---|
7998 | #include <$ac_header> |
---|
7999 | _ACEOF |
---|
8000 | rm -f conftest.$ac_objext |
---|
8001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8002 | (eval $ac_compile) 2>conftest.er1 |
---|
8003 | ac_status=$? |
---|
8004 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8005 | rm -f conftest.er1 |
---|
8006 | cat conftest.err >&5 |
---|
8007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8008 | (exit $ac_status); } && |
---|
8009 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8010 | || test ! -s conftest.err' |
---|
8011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8012 | (eval $ac_try) 2>&5 |
---|
8013 | ac_status=$? |
---|
8014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8015 | (exit $ac_status); }; } && |
---|
8016 | { ac_try='test -s conftest.$ac_objext' |
---|
8017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8018 | (eval $ac_try) 2>&5 |
---|
8019 | ac_status=$? |
---|
8020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8021 | (exit $ac_status); }; }; then |
---|
8022 | ac_header_compiler=yes |
---|
8023 | else |
---|
8024 | echo "$as_me: failed program was:" >&5 |
---|
8025 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8026 | |
---|
8027 | ac_header_compiler=no |
---|
8028 | fi |
---|
8029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8030 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8031 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8032 | |
---|
8033 | # Is the header present? |
---|
8034 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8035 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8036 | cat >conftest.$ac_ext <<_ACEOF |
---|
8037 | /* confdefs.h. */ |
---|
8038 | _ACEOF |
---|
8039 | cat confdefs.h >>conftest.$ac_ext |
---|
8040 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8041 | /* end confdefs.h. */ |
---|
8042 | #include <$ac_header> |
---|
8043 | _ACEOF |
---|
8044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8046 | ac_status=$? |
---|
8047 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8048 | rm -f conftest.er1 |
---|
8049 | cat conftest.err >&5 |
---|
8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8051 | (exit $ac_status); } >/dev/null; then |
---|
8052 | if test -s conftest.err; then |
---|
8053 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8054 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8055 | else |
---|
8056 | ac_cpp_err= |
---|
8057 | fi |
---|
8058 | else |
---|
8059 | ac_cpp_err=yes |
---|
8060 | fi |
---|
8061 | if test -z "$ac_cpp_err"; then |
---|
8062 | ac_header_preproc=yes |
---|
8063 | else |
---|
8064 | echo "$as_me: failed program was:" >&5 |
---|
8065 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8066 | |
---|
8067 | ac_header_preproc=no |
---|
8068 | fi |
---|
8069 | rm -f conftest.err conftest.$ac_ext |
---|
8070 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8071 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8072 | |
---|
8073 | # So? What about this header? |
---|
8074 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8075 | yes:no: ) |
---|
8076 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8077 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8078 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8079 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8080 | ac_header_preproc=yes |
---|
8081 | ;; |
---|
8082 | no:yes:* ) |
---|
8083 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8084 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8085 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8086 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8087 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8088 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8089 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8090 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8091 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8092 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8093 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8094 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8095 | ( |
---|
8096 | cat <<\_ASBOX |
---|
8097 | ## ---------------------------------------------- ## |
---|
8098 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8099 | ## ---------------------------------------------- ## |
---|
8100 | _ASBOX |
---|
8101 | ) | |
---|
8102 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8103 | ;; |
---|
8104 | esac |
---|
8105 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8107 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8109 | else |
---|
8110 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8111 | fi |
---|
8112 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8113 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8114 | |
---|
8115 | fi |
---|
8116 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8117 | cat >>confdefs.h <<_ACEOF |
---|
8118 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8119 | _ACEOF |
---|
8120 | |
---|
8121 | else |
---|
8122 | { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 |
---|
8123 | echo "$as_me: error: cannot find vorbisfile header." >&2;} |
---|
8124 | { (exit 1); exit 1; }; } |
---|
8125 | fi |
---|
8126 | |
---|
8127 | done |
---|
8128 | |
---|
8129 | # checking for vorbisfile-lib |
---|
8130 | echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 |
---|
8131 | echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 |
---|
8132 | if test "${ac_cv_lib_vorbisfile_main+set}" = set; then |
---|
8133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8134 | else |
---|
8135 | ac_check_lib_save_LIBS=$LIBS |
---|
8136 | LIBS="-lvorbisfile $LIBS" |
---|
8137 | cat >conftest.$ac_ext <<_ACEOF |
---|
8138 | /* confdefs.h. */ |
---|
8139 | _ACEOF |
---|
8140 | cat confdefs.h >>conftest.$ac_ext |
---|
8141 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8142 | /* end confdefs.h. */ |
---|
8143 | |
---|
8144 | |
---|
8145 | int |
---|
8146 | main () |
---|
8147 | { |
---|
8148 | main (); |
---|
8149 | ; |
---|
8150 | return 0; |
---|
8151 | } |
---|
8152 | _ACEOF |
---|
8153 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8155 | (eval $ac_link) 2>conftest.er1 |
---|
8156 | ac_status=$? |
---|
8157 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8158 | rm -f conftest.er1 |
---|
8159 | cat conftest.err >&5 |
---|
8160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8161 | (exit $ac_status); } && |
---|
8162 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8163 | || test ! -s conftest.err' |
---|
8164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8165 | (eval $ac_try) 2>&5 |
---|
8166 | ac_status=$? |
---|
8167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8168 | (exit $ac_status); }; } && |
---|
8169 | { ac_try='test -s conftest$ac_exeext' |
---|
8170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8171 | (eval $ac_try) 2>&5 |
---|
8172 | ac_status=$? |
---|
8173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8174 | (exit $ac_status); }; }; then |
---|
8175 | ac_cv_lib_vorbisfile_main=yes |
---|
8176 | else |
---|
8177 | echo "$as_me: failed program was:" >&5 |
---|
8178 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8179 | |
---|
8180 | ac_cv_lib_vorbisfile_main=no |
---|
8181 | fi |
---|
8182 | rm -f conftest.err conftest.$ac_objext \ |
---|
8183 | conftest$ac_exeext conftest.$ac_ext |
---|
8184 | LIBS=$ac_check_lib_save_LIBS |
---|
8185 | fi |
---|
8186 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 |
---|
8187 | echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 |
---|
8188 | if test $ac_cv_lib_vorbisfile_main = yes; then |
---|
8189 | FOUND_vorbisfile=yes |
---|
8190 | fi |
---|
8191 | |
---|
8192 | if test x$FOUND_vorbisfile = xyes ; then |
---|
8193 | LIBS="$LIBS -lvorbisfile" |
---|
8194 | else |
---|
8195 | echo "------------------" |
---|
8196 | echo "vorbisfile library not found." |
---|
8197 | echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
8198 | echo "------------------" |
---|
8199 | exit -1 |
---|
8200 | fi |
---|
8201 | |
---|
8202 | #-----# |
---|
8203 | # GTK # |
---|
8204 | #-----# |
---|
8205 | if test x$def_gtk = xyes; then |
---|
8206 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
8207 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
8208 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
8209 | if `$PKG_CONFIG --exists gtk+-2.0`; then |
---|
8210 | echo "yes" |
---|
8211 | have_gtk2=yes |
---|
8212 | GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
---|
8213 | GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
---|
8214 | |
---|
8215 | cat >>confdefs.h <<_ACEOF |
---|
8216 | #define HAVE_GTK2 1 |
---|
8217 | _ACEOF |
---|
8218 | |
---|
8219 | if test $DEBUG -ge 3; then |
---|
8220 | echo "cflags: $GTK2_CFLAGS" |
---|
8221 | echo "libs: $GTK2_LIBS" |
---|
8222 | fi |
---|
8223 | else |
---|
8224 | echo "no" |
---|
8225 | fi |
---|
8226 | |
---|
8227 | fi |
---|
8228 | |
---|
8229 | |
---|
8230 | |
---|
8231 | |
---|
8232 | if test x$have_gtk2 = xyes; then |
---|
8233 | HAVE_GTK2_TRUE= |
---|
8234 | HAVE_GTK2_FALSE='#' |
---|
8235 | else |
---|
8236 | HAVE_GTK2_TRUE='#' |
---|
8237 | HAVE_GTK2_FALSE= |
---|
8238 | fi |
---|
8239 | |
---|
8240 | |
---|
8241 | #---------# |
---|
8242 | # libcURL # |
---|
8243 | #---------# |
---|
8244 | if test x$def_curl = xyes; then |
---|
8245 | |
---|
8246 | |
---|
8247 | for ac_header in curl/curl.h |
---|
8248 | do |
---|
8249 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8251 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8252 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8253 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8255 | fi |
---|
8256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8257 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8258 | else |
---|
8259 | # Is the header compilable? |
---|
8260 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8261 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8262 | cat >conftest.$ac_ext <<_ACEOF |
---|
8263 | /* confdefs.h. */ |
---|
8264 | _ACEOF |
---|
8265 | cat confdefs.h >>conftest.$ac_ext |
---|
8266 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8267 | /* end confdefs.h. */ |
---|
8268 | $ac_includes_default |
---|
8269 | #include <$ac_header> |
---|
8270 | _ACEOF |
---|
8271 | rm -f conftest.$ac_objext |
---|
8272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8273 | (eval $ac_compile) 2>conftest.er1 |
---|
8274 | ac_status=$? |
---|
8275 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8276 | rm -f conftest.er1 |
---|
8277 | cat conftest.err >&5 |
---|
8278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8279 | (exit $ac_status); } && |
---|
8280 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8281 | || test ! -s conftest.err' |
---|
8282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8283 | (eval $ac_try) 2>&5 |
---|
8284 | ac_status=$? |
---|
8285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8286 | (exit $ac_status); }; } && |
---|
8287 | { ac_try='test -s conftest.$ac_objext' |
---|
8288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8289 | (eval $ac_try) 2>&5 |
---|
8290 | ac_status=$? |
---|
8291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8292 | (exit $ac_status); }; }; then |
---|
8293 | ac_header_compiler=yes |
---|
8294 | else |
---|
8295 | echo "$as_me: failed program was:" >&5 |
---|
8296 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8297 | |
---|
8298 | ac_header_compiler=no |
---|
8299 | fi |
---|
8300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8301 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8302 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8303 | |
---|
8304 | # Is the header present? |
---|
8305 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8306 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8307 | cat >conftest.$ac_ext <<_ACEOF |
---|
8308 | /* confdefs.h. */ |
---|
8309 | _ACEOF |
---|
8310 | cat confdefs.h >>conftest.$ac_ext |
---|
8311 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8312 | /* end confdefs.h. */ |
---|
8313 | #include <$ac_header> |
---|
8314 | _ACEOF |
---|
8315 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8316 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8317 | ac_status=$? |
---|
8318 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8319 | rm -f conftest.er1 |
---|
8320 | cat conftest.err >&5 |
---|
8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8322 | (exit $ac_status); } >/dev/null; then |
---|
8323 | if test -s conftest.err; then |
---|
8324 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8325 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8326 | else |
---|
8327 | ac_cpp_err= |
---|
8328 | fi |
---|
8329 | else |
---|
8330 | ac_cpp_err=yes |
---|
8331 | fi |
---|
8332 | if test -z "$ac_cpp_err"; then |
---|
8333 | ac_header_preproc=yes |
---|
8334 | else |
---|
8335 | echo "$as_me: failed program was:" >&5 |
---|
8336 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8337 | |
---|
8338 | ac_header_preproc=no |
---|
8339 | fi |
---|
8340 | rm -f conftest.err conftest.$ac_ext |
---|
8341 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8342 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8343 | |
---|
8344 | # So? What about this header? |
---|
8345 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8346 | yes:no: ) |
---|
8347 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8348 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8350 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8351 | ac_header_preproc=yes |
---|
8352 | ;; |
---|
8353 | no:yes:* ) |
---|
8354 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8355 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8356 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8357 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8358 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8359 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8360 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8361 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8362 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8363 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8364 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8365 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8366 | ( |
---|
8367 | cat <<\_ASBOX |
---|
8368 | ## ---------------------------------------------- ## |
---|
8369 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8370 | ## ---------------------------------------------- ## |
---|
8371 | _ASBOX |
---|
8372 | ) | |
---|
8373 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8374 | ;; |
---|
8375 | esac |
---|
8376 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8378 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8380 | else |
---|
8381 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8382 | fi |
---|
8383 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8384 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8385 | |
---|
8386 | fi |
---|
8387 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8388 | cat >>confdefs.h <<_ACEOF |
---|
8389 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8390 | _ACEOF |
---|
8391 | curlHeader="yes" |
---|
8392 | else |
---|
8393 | curlHeader="no" |
---|
8394 | fi |
---|
8395 | |
---|
8396 | done |
---|
8397 | |
---|
8398 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
8399 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
8400 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
8401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8402 | else |
---|
8403 | ac_check_lib_save_LIBS=$LIBS |
---|
8404 | LIBS="-lcurl $LIBS" |
---|
8405 | cat >conftest.$ac_ext <<_ACEOF |
---|
8406 | /* confdefs.h. */ |
---|
8407 | _ACEOF |
---|
8408 | cat confdefs.h >>conftest.$ac_ext |
---|
8409 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8410 | /* end confdefs.h. */ |
---|
8411 | |
---|
8412 | |
---|
8413 | int |
---|
8414 | main () |
---|
8415 | { |
---|
8416 | main (); |
---|
8417 | ; |
---|
8418 | return 0; |
---|
8419 | } |
---|
8420 | _ACEOF |
---|
8421 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8423 | (eval $ac_link) 2>conftest.er1 |
---|
8424 | ac_status=$? |
---|
8425 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8426 | rm -f conftest.er1 |
---|
8427 | cat conftest.err >&5 |
---|
8428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8429 | (exit $ac_status); } && |
---|
8430 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8431 | || test ! -s conftest.err' |
---|
8432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8433 | (eval $ac_try) 2>&5 |
---|
8434 | ac_status=$? |
---|
8435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8436 | (exit $ac_status); }; } && |
---|
8437 | { ac_try='test -s conftest$ac_exeext' |
---|
8438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8439 | (eval $ac_try) 2>&5 |
---|
8440 | ac_status=$? |
---|
8441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8442 | (exit $ac_status); }; }; then |
---|
8443 | ac_cv_lib_curl_main=yes |
---|
8444 | else |
---|
8445 | echo "$as_me: failed program was:" >&5 |
---|
8446 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8447 | |
---|
8448 | ac_cv_lib_curl_main=no |
---|
8449 | fi |
---|
8450 | rm -f conftest.err conftest.$ac_objext \ |
---|
8451 | conftest$ac_exeext conftest.$ac_ext |
---|
8452 | LIBS=$ac_check_lib_save_LIBS |
---|
8453 | fi |
---|
8454 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
8455 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
8456 | if test $ac_cv_lib_curl_main = yes; then |
---|
8457 | FOUND_curl=yes |
---|
8458 | fi |
---|
8459 | |
---|
8460 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
8461 | have_curl=yes |
---|
8462 | CURL_LIBS=`curl-config --libs` |
---|
8463 | CURLCFLAGS=`curl-config --cflags` |
---|
8464 | |
---|
8465 | cat >>confdefs.h <<_ACEOF |
---|
8466 | #define HAVE_CURL 1 |
---|
8467 | _ACEOF |
---|
8468 | |
---|
8469 | else |
---|
8470 | have_curl=no |
---|
8471 | fi |
---|
8472 | |
---|
8473 | fi |
---|
8474 | |
---|
8475 | |
---|
8476 | |
---|
8477 | |
---|
8478 | if test x$have_curl = xyes; then |
---|
8479 | HAVE_CURL_TRUE= |
---|
8480 | HAVE_CURL_FALSE='#' |
---|
8481 | else |
---|
8482 | HAVE_CURL_TRUE='#' |
---|
8483 | HAVE_CURL_FALSE= |
---|
8484 | fi |
---|
8485 | |
---|
8486 | |
---|
8487 | #--------# |
---|
8488 | # efence # |
---|
8489 | #--------# |
---|
8490 | if test x$def_efence = xyes ; then |
---|
8491 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
8492 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
8493 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
8494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8495 | else |
---|
8496 | ac_check_lib_save_LIBS=$LIBS |
---|
8497 | LIBS="-lefence $LIBS" |
---|
8498 | cat >conftest.$ac_ext <<_ACEOF |
---|
8499 | /* confdefs.h. */ |
---|
8500 | _ACEOF |
---|
8501 | cat confdefs.h >>conftest.$ac_ext |
---|
8502 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8503 | /* end confdefs.h. */ |
---|
8504 | |
---|
8505 | |
---|
8506 | int |
---|
8507 | main () |
---|
8508 | { |
---|
8509 | main (); |
---|
8510 | ; |
---|
8511 | return 0; |
---|
8512 | } |
---|
8513 | _ACEOF |
---|
8514 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8516 | (eval $ac_link) 2>conftest.er1 |
---|
8517 | ac_status=$? |
---|
8518 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8519 | rm -f conftest.er1 |
---|
8520 | cat conftest.err >&5 |
---|
8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8522 | (exit $ac_status); } && |
---|
8523 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8524 | || test ! -s conftest.err' |
---|
8525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8526 | (eval $ac_try) 2>&5 |
---|
8527 | ac_status=$? |
---|
8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8529 | (exit $ac_status); }; } && |
---|
8530 | { ac_try='test -s conftest$ac_exeext' |
---|
8531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8532 | (eval $ac_try) 2>&5 |
---|
8533 | ac_status=$? |
---|
8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8535 | (exit $ac_status); }; }; then |
---|
8536 | ac_cv_lib_efence_main=yes |
---|
8537 | else |
---|
8538 | echo "$as_me: failed program was:" >&5 |
---|
8539 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8540 | |
---|
8541 | ac_cv_lib_efence_main=no |
---|
8542 | fi |
---|
8543 | rm -f conftest.err conftest.$ac_objext \ |
---|
8544 | conftest$ac_exeext conftest.$ac_ext |
---|
8545 | LIBS=$ac_check_lib_save_LIBS |
---|
8546 | fi |
---|
8547 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
8548 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
8549 | if test $ac_cv_lib_efence_main = yes; then |
---|
8550 | FOUND_efence=yes |
---|
8551 | fi |
---|
8552 | |
---|
8553 | if test x$FOUND_efence = xyes ; then |
---|
8554 | LIBS="$LIBS -lefence" |
---|
8555 | fi |
---|
8556 | |
---|
8557 | fi |
---|
8558 | |
---|
8559 | # FIXME: Replace `main' with a function in `-lm': |
---|
8560 | |
---|
8561 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
8562 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
8563 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
8564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8565 | else |
---|
8566 | ac_check_lib_save_LIBS=$LIBS |
---|
8567 | LIBS="-lm $LIBS" |
---|
8568 | cat >conftest.$ac_ext <<_ACEOF |
---|
8569 | /* confdefs.h. */ |
---|
8570 | _ACEOF |
---|
8571 | cat confdefs.h >>conftest.$ac_ext |
---|
8572 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8573 | /* end confdefs.h. */ |
---|
8574 | |
---|
8575 | |
---|
8576 | int |
---|
8577 | main () |
---|
8578 | { |
---|
8579 | main (); |
---|
8580 | ; |
---|
8581 | return 0; |
---|
8582 | } |
---|
8583 | _ACEOF |
---|
8584 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8586 | (eval $ac_link) 2>conftest.er1 |
---|
8587 | ac_status=$? |
---|
8588 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8589 | rm -f conftest.er1 |
---|
8590 | cat conftest.err >&5 |
---|
8591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8592 | (exit $ac_status); } && |
---|
8593 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8594 | || test ! -s conftest.err' |
---|
8595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8596 | (eval $ac_try) 2>&5 |
---|
8597 | ac_status=$? |
---|
8598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8599 | (exit $ac_status); }; } && |
---|
8600 | { ac_try='test -s conftest$ac_exeext' |
---|
8601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8602 | (eval $ac_try) 2>&5 |
---|
8603 | ac_status=$? |
---|
8604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8605 | (exit $ac_status); }; }; then |
---|
8606 | ac_cv_lib_m_main=yes |
---|
8607 | else |
---|
8608 | echo "$as_me: failed program was:" >&5 |
---|
8609 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8610 | |
---|
8611 | ac_cv_lib_m_main=no |
---|
8612 | fi |
---|
8613 | rm -f conftest.err conftest.$ac_objext \ |
---|
8614 | conftest$ac_exeext conftest.$ac_ext |
---|
8615 | LIBS=$ac_check_lib_save_LIBS |
---|
8616 | fi |
---|
8617 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
8618 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
8619 | if test $ac_cv_lib_m_main = yes; then |
---|
8620 | cat >>confdefs.h <<_ACEOF |
---|
8621 | #define HAVE_LIBM 1 |
---|
8622 | _ACEOF |
---|
8623 | |
---|
8624 | LIBS="-lm $LIBS" |
---|
8625 | |
---|
8626 | fi |
---|
8627 | |
---|
8628 | |
---|
8629 | |
---|
8630 | # Checks for header files. |
---|
8631 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
8632 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
8633 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
8634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8635 | else |
---|
8636 | cat >conftest.$ac_ext <<_ACEOF |
---|
8637 | /* confdefs.h. */ |
---|
8638 | _ACEOF |
---|
8639 | cat confdefs.h >>conftest.$ac_ext |
---|
8640 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8641 | /* end confdefs.h. */ |
---|
8642 | #include <stdlib.h> |
---|
8643 | #include <stdarg.h> |
---|
8644 | #include <string.h> |
---|
8645 | #include <float.h> |
---|
8646 | |
---|
8647 | int |
---|
8648 | main () |
---|
8649 | { |
---|
8650 | |
---|
8651 | ; |
---|
8652 | return 0; |
---|
8653 | } |
---|
8654 | _ACEOF |
---|
8655 | rm -f conftest.$ac_objext |
---|
8656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8657 | (eval $ac_compile) 2>conftest.er1 |
---|
8658 | ac_status=$? |
---|
8659 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8660 | rm -f conftest.er1 |
---|
8661 | cat conftest.err >&5 |
---|
8662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8663 | (exit $ac_status); } && |
---|
8664 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8665 | || test ! -s conftest.err' |
---|
8666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8667 | (eval $ac_try) 2>&5 |
---|
8668 | ac_status=$? |
---|
8669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8670 | (exit $ac_status); }; } && |
---|
8671 | { ac_try='test -s conftest.$ac_objext' |
---|
8672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8673 | (eval $ac_try) 2>&5 |
---|
8674 | ac_status=$? |
---|
8675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8676 | (exit $ac_status); }; }; then |
---|
8677 | ac_cv_header_stdc=yes |
---|
8678 | else |
---|
8679 | echo "$as_me: failed program was:" >&5 |
---|
8680 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8681 | |
---|
8682 | ac_cv_header_stdc=no |
---|
8683 | fi |
---|
8684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8685 | |
---|
8686 | if test $ac_cv_header_stdc = yes; then |
---|
8687 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
8688 | cat >conftest.$ac_ext <<_ACEOF |
---|
8689 | /* confdefs.h. */ |
---|
8690 | _ACEOF |
---|
8691 | cat confdefs.h >>conftest.$ac_ext |
---|
8692 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8693 | /* end confdefs.h. */ |
---|
8694 | #include <string.h> |
---|
8695 | |
---|
8696 | _ACEOF |
---|
8697 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8698 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
8699 | : |
---|
8700 | else |
---|
8701 | ac_cv_header_stdc=no |
---|
8702 | fi |
---|
8703 | rm -f conftest* |
---|
8704 | |
---|
8705 | fi |
---|
8706 | |
---|
8707 | if test $ac_cv_header_stdc = yes; then |
---|
8708 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
8709 | cat >conftest.$ac_ext <<_ACEOF |
---|
8710 | /* confdefs.h. */ |
---|
8711 | _ACEOF |
---|
8712 | cat confdefs.h >>conftest.$ac_ext |
---|
8713 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8714 | /* end confdefs.h. */ |
---|
8715 | #include <stdlib.h> |
---|
8716 | |
---|
8717 | _ACEOF |
---|
8718 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8719 | $EGREP "free" >/dev/null 2>&1; then |
---|
8720 | : |
---|
8721 | else |
---|
8722 | ac_cv_header_stdc=no |
---|
8723 | fi |
---|
8724 | rm -f conftest* |
---|
8725 | |
---|
8726 | fi |
---|
8727 | |
---|
8728 | if test $ac_cv_header_stdc = yes; then |
---|
8729 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
8730 | if test "$cross_compiling" = yes; then |
---|
8731 | : |
---|
8732 | else |
---|
8733 | cat >conftest.$ac_ext <<_ACEOF |
---|
8734 | /* confdefs.h. */ |
---|
8735 | _ACEOF |
---|
8736 | cat confdefs.h >>conftest.$ac_ext |
---|
8737 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8738 | /* end confdefs.h. */ |
---|
8739 | #include <ctype.h> |
---|
8740 | #if ((' ' & 0x0FF) == 0x020) |
---|
8741 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
8742 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
8743 | #else |
---|
8744 | # define ISLOWER(c) \ |
---|
8745 | (('a' <= (c) && (c) <= 'i') \ |
---|
8746 | || ('j' <= (c) && (c) <= 'r') \ |
---|
8747 | || ('s' <= (c) && (c) <= 'z')) |
---|
8748 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
8749 | #endif |
---|
8750 | |
---|
8751 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
8752 | int |
---|
8753 | main () |
---|
8754 | { |
---|
8755 | int i; |
---|
8756 | for (i = 0; i < 256; i++) |
---|
8757 | if (XOR (islower (i), ISLOWER (i)) |
---|
8758 | || toupper (i) != TOUPPER (i)) |
---|
8759 | exit(2); |
---|
8760 | exit (0); |
---|
8761 | } |
---|
8762 | _ACEOF |
---|
8763 | rm -f conftest$ac_exeext |
---|
8764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8765 | (eval $ac_link) 2>&5 |
---|
8766 | ac_status=$? |
---|
8767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8768 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
8769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8770 | (eval $ac_try) 2>&5 |
---|
8771 | ac_status=$? |
---|
8772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8773 | (exit $ac_status); }; }; then |
---|
8774 | : |
---|
8775 | else |
---|
8776 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
8777 | echo "$as_me: failed program was:" >&5 |
---|
8778 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8779 | |
---|
8780 | ( exit $ac_status ) |
---|
8781 | ac_cv_header_stdc=no |
---|
8782 | fi |
---|
8783 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
8784 | fi |
---|
8785 | fi |
---|
8786 | fi |
---|
8787 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
8788 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
8789 | if test $ac_cv_header_stdc = yes; then |
---|
8790 | |
---|
8791 | cat >>confdefs.h <<\_ACEOF |
---|
8792 | #define STDC_HEADERS 1 |
---|
8793 | _ACEOF |
---|
8794 | |
---|
8795 | fi |
---|
8796 | |
---|
8797 | |
---|
8798 | |
---|
8799 | for ac_header in stdlib.h string.h |
---|
8800 | do |
---|
8801 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8803 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8804 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8807 | fi |
---|
8808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8810 | else |
---|
8811 | # Is the header compilable? |
---|
8812 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8813 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8814 | cat >conftest.$ac_ext <<_ACEOF |
---|
8815 | /* confdefs.h. */ |
---|
8816 | _ACEOF |
---|
8817 | cat confdefs.h >>conftest.$ac_ext |
---|
8818 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8819 | /* end confdefs.h. */ |
---|
8820 | $ac_includes_default |
---|
8821 | #include <$ac_header> |
---|
8822 | _ACEOF |
---|
8823 | rm -f conftest.$ac_objext |
---|
8824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8825 | (eval $ac_compile) 2>conftest.er1 |
---|
8826 | ac_status=$? |
---|
8827 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8828 | rm -f conftest.er1 |
---|
8829 | cat conftest.err >&5 |
---|
8830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8831 | (exit $ac_status); } && |
---|
8832 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8833 | || test ! -s conftest.err' |
---|
8834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8835 | (eval $ac_try) 2>&5 |
---|
8836 | ac_status=$? |
---|
8837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8838 | (exit $ac_status); }; } && |
---|
8839 | { ac_try='test -s conftest.$ac_objext' |
---|
8840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8841 | (eval $ac_try) 2>&5 |
---|
8842 | ac_status=$? |
---|
8843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8844 | (exit $ac_status); }; }; then |
---|
8845 | ac_header_compiler=yes |
---|
8846 | else |
---|
8847 | echo "$as_me: failed program was:" >&5 |
---|
8848 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8849 | |
---|
8850 | ac_header_compiler=no |
---|
8851 | fi |
---|
8852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8854 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8855 | |
---|
8856 | # Is the header present? |
---|
8857 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8858 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8859 | cat >conftest.$ac_ext <<_ACEOF |
---|
8860 | /* confdefs.h. */ |
---|
8861 | _ACEOF |
---|
8862 | cat confdefs.h >>conftest.$ac_ext |
---|
8863 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8864 | /* end confdefs.h. */ |
---|
8865 | #include <$ac_header> |
---|
8866 | _ACEOF |
---|
8867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8869 | ac_status=$? |
---|
8870 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8871 | rm -f conftest.er1 |
---|
8872 | cat conftest.err >&5 |
---|
8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8874 | (exit $ac_status); } >/dev/null; then |
---|
8875 | if test -s conftest.err; then |
---|
8876 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8878 | else |
---|
8879 | ac_cpp_err= |
---|
8880 | fi |
---|
8881 | else |
---|
8882 | ac_cpp_err=yes |
---|
8883 | fi |
---|
8884 | if test -z "$ac_cpp_err"; then |
---|
8885 | ac_header_preproc=yes |
---|
8886 | else |
---|
8887 | echo "$as_me: failed program was:" >&5 |
---|
8888 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8889 | |
---|
8890 | ac_header_preproc=no |
---|
8891 | fi |
---|
8892 | rm -f conftest.err conftest.$ac_ext |
---|
8893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8894 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8895 | |
---|
8896 | # So? What about this header? |
---|
8897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8898 | yes:no: ) |
---|
8899 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8900 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8901 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8902 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8903 | ac_header_preproc=yes |
---|
8904 | ;; |
---|
8905 | no:yes:* ) |
---|
8906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8910 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8911 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8912 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8913 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8916 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8917 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8918 | ( |
---|
8919 | cat <<\_ASBOX |
---|
8920 | ## ---------------------------------------------- ## |
---|
8921 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8922 | ## ---------------------------------------------- ## |
---|
8923 | _ASBOX |
---|
8924 | ) | |
---|
8925 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8926 | ;; |
---|
8927 | esac |
---|
8928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8932 | else |
---|
8933 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8934 | fi |
---|
8935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8937 | |
---|
8938 | fi |
---|
8939 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8940 | cat >>confdefs.h <<_ACEOF |
---|
8941 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8942 | _ACEOF |
---|
8943 | |
---|
8944 | fi |
---|
8945 | |
---|
8946 | done |
---|
8947 | |
---|
8948 | |
---|
8949 | # Checks for typedefs, structures, and compiler characteristics. |
---|
8950 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
8951 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
8952 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
8953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8954 | else |
---|
8955 | cat >conftest.$ac_ext <<_ACEOF |
---|
8956 | /* confdefs.h. */ |
---|
8957 | _ACEOF |
---|
8958 | cat confdefs.h >>conftest.$ac_ext |
---|
8959 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8960 | /* end confdefs.h. */ |
---|
8961 | |
---|
8962 | #include <stdbool.h> |
---|
8963 | #ifndef bool |
---|
8964 | # error bool is not defined |
---|
8965 | #endif |
---|
8966 | #ifndef false |
---|
8967 | # error false is not defined |
---|
8968 | #endif |
---|
8969 | #if false |
---|
8970 | # error false is not 0 |
---|
8971 | #endif |
---|
8972 | #ifndef true |
---|
8973 | # error true is not defined |
---|
8974 | #endif |
---|
8975 | #if true != 1 |
---|
8976 | # error true is not 1 |
---|
8977 | #endif |
---|
8978 | #ifndef __bool_true_false_are_defined |
---|
8979 | # error __bool_true_false_are_defined is not defined |
---|
8980 | #endif |
---|
8981 | |
---|
8982 | struct s { _Bool s: 1; _Bool t; } s; |
---|
8983 | |
---|
8984 | char a[true == 1 ? 1 : -1]; |
---|
8985 | char b[false == 0 ? 1 : -1]; |
---|
8986 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
8987 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
8988 | bool e = &s; |
---|
8989 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
8990 | char g[true]; |
---|
8991 | char h[sizeof (_Bool)]; |
---|
8992 | char i[sizeof s.t]; |
---|
8993 | |
---|
8994 | int |
---|
8995 | main () |
---|
8996 | { |
---|
8997 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
8998 | ; |
---|
8999 | return 0; |
---|
9000 | } |
---|
9001 | _ACEOF |
---|
9002 | rm -f conftest.$ac_objext |
---|
9003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9004 | (eval $ac_compile) 2>conftest.er1 |
---|
9005 | ac_status=$? |
---|
9006 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9007 | rm -f conftest.er1 |
---|
9008 | cat conftest.err >&5 |
---|
9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9010 | (exit $ac_status); } && |
---|
9011 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9012 | || test ! -s conftest.err' |
---|
9013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9014 | (eval $ac_try) 2>&5 |
---|
9015 | ac_status=$? |
---|
9016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9017 | (exit $ac_status); }; } && |
---|
9018 | { ac_try='test -s conftest.$ac_objext' |
---|
9019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9020 | (eval $ac_try) 2>&5 |
---|
9021 | ac_status=$? |
---|
9022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9023 | (exit $ac_status); }; }; then |
---|
9024 | ac_cv_header_stdbool_h=yes |
---|
9025 | else |
---|
9026 | echo "$as_me: failed program was:" >&5 |
---|
9027 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9028 | |
---|
9029 | ac_cv_header_stdbool_h=no |
---|
9030 | fi |
---|
9031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9032 | fi |
---|
9033 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
9034 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
9035 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
9036 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
9037 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
9038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9039 | else |
---|
9040 | cat >conftest.$ac_ext <<_ACEOF |
---|
9041 | /* confdefs.h. */ |
---|
9042 | _ACEOF |
---|
9043 | cat confdefs.h >>conftest.$ac_ext |
---|
9044 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9045 | /* end confdefs.h. */ |
---|
9046 | $ac_includes_default |
---|
9047 | int |
---|
9048 | main () |
---|
9049 | { |
---|
9050 | if ((_Bool *) 0) |
---|
9051 | return 0; |
---|
9052 | if (sizeof (_Bool)) |
---|
9053 | return 0; |
---|
9054 | ; |
---|
9055 | return 0; |
---|
9056 | } |
---|
9057 | _ACEOF |
---|
9058 | rm -f conftest.$ac_objext |
---|
9059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9060 | (eval $ac_compile) 2>conftest.er1 |
---|
9061 | ac_status=$? |
---|
9062 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9063 | rm -f conftest.er1 |
---|
9064 | cat conftest.err >&5 |
---|
9065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9066 | (exit $ac_status); } && |
---|
9067 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9068 | || test ! -s conftest.err' |
---|
9069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9070 | (eval $ac_try) 2>&5 |
---|
9071 | ac_status=$? |
---|
9072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9073 | (exit $ac_status); }; } && |
---|
9074 | { ac_try='test -s conftest.$ac_objext' |
---|
9075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9076 | (eval $ac_try) 2>&5 |
---|
9077 | ac_status=$? |
---|
9078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9079 | (exit $ac_status); }; }; then |
---|
9080 | ac_cv_type__Bool=yes |
---|
9081 | else |
---|
9082 | echo "$as_me: failed program was:" >&5 |
---|
9083 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9084 | |
---|
9085 | ac_cv_type__Bool=no |
---|
9086 | fi |
---|
9087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9088 | fi |
---|
9089 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
9090 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
9091 | if test $ac_cv_type__Bool = yes; then |
---|
9092 | |
---|
9093 | cat >>confdefs.h <<_ACEOF |
---|
9094 | #define HAVE__BOOL 1 |
---|
9095 | _ACEOF |
---|
9096 | |
---|
9097 | |
---|
9098 | fi |
---|
9099 | |
---|
9100 | if test $ac_cv_header_stdbool_h = yes; then |
---|
9101 | |
---|
9102 | cat >>confdefs.h <<\_ACEOF |
---|
9103 | #define HAVE_STDBOOL_H 1 |
---|
9104 | _ACEOF |
---|
9105 | |
---|
9106 | fi |
---|
9107 | |
---|
9108 | |
---|
9109 | # Checks for library functions. |
---|
9110 | |
---|
9111 | for ac_header in stdlib.h |
---|
9112 | do |
---|
9113 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9114 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9115 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9116 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9119 | fi |
---|
9120 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9121 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9122 | else |
---|
9123 | # Is the header compilable? |
---|
9124 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9125 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9126 | cat >conftest.$ac_ext <<_ACEOF |
---|
9127 | /* confdefs.h. */ |
---|
9128 | _ACEOF |
---|
9129 | cat confdefs.h >>conftest.$ac_ext |
---|
9130 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9131 | /* end confdefs.h. */ |
---|
9132 | $ac_includes_default |
---|
9133 | #include <$ac_header> |
---|
9134 | _ACEOF |
---|
9135 | rm -f conftest.$ac_objext |
---|
9136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9137 | (eval $ac_compile) 2>conftest.er1 |
---|
9138 | ac_status=$? |
---|
9139 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9140 | rm -f conftest.er1 |
---|
9141 | cat conftest.err >&5 |
---|
9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9143 | (exit $ac_status); } && |
---|
9144 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9145 | || test ! -s conftest.err' |
---|
9146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9147 | (eval $ac_try) 2>&5 |
---|
9148 | ac_status=$? |
---|
9149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9150 | (exit $ac_status); }; } && |
---|
9151 | { ac_try='test -s conftest.$ac_objext' |
---|
9152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9153 | (eval $ac_try) 2>&5 |
---|
9154 | ac_status=$? |
---|
9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9156 | (exit $ac_status); }; }; then |
---|
9157 | ac_header_compiler=yes |
---|
9158 | else |
---|
9159 | echo "$as_me: failed program was:" >&5 |
---|
9160 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9161 | |
---|
9162 | ac_header_compiler=no |
---|
9163 | fi |
---|
9164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9165 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9166 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9167 | |
---|
9168 | # Is the header present? |
---|
9169 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9170 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9171 | cat >conftest.$ac_ext <<_ACEOF |
---|
9172 | /* confdefs.h. */ |
---|
9173 | _ACEOF |
---|
9174 | cat confdefs.h >>conftest.$ac_ext |
---|
9175 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9176 | /* end confdefs.h. */ |
---|
9177 | #include <$ac_header> |
---|
9178 | _ACEOF |
---|
9179 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9180 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9181 | ac_status=$? |
---|
9182 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9183 | rm -f conftest.er1 |
---|
9184 | cat conftest.err >&5 |
---|
9185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9186 | (exit $ac_status); } >/dev/null; then |
---|
9187 | if test -s conftest.err; then |
---|
9188 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9189 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9190 | else |
---|
9191 | ac_cpp_err= |
---|
9192 | fi |
---|
9193 | else |
---|
9194 | ac_cpp_err=yes |
---|
9195 | fi |
---|
9196 | if test -z "$ac_cpp_err"; then |
---|
9197 | ac_header_preproc=yes |
---|
9198 | else |
---|
9199 | echo "$as_me: failed program was:" >&5 |
---|
9200 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9201 | |
---|
9202 | ac_header_preproc=no |
---|
9203 | fi |
---|
9204 | rm -f conftest.err conftest.$ac_ext |
---|
9205 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9206 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9207 | |
---|
9208 | # So? What about this header? |
---|
9209 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9210 | yes:no: ) |
---|
9211 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9212 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9213 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9214 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9215 | ac_header_preproc=yes |
---|
9216 | ;; |
---|
9217 | no:yes:* ) |
---|
9218 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9219 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9220 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9221 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9222 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9223 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9224 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9225 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9227 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9228 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9229 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9230 | ( |
---|
9231 | cat <<\_ASBOX |
---|
9232 | ## ---------------------------------------------- ## |
---|
9233 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9234 | ## ---------------------------------------------- ## |
---|
9235 | _ASBOX |
---|
9236 | ) | |
---|
9237 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9238 | ;; |
---|
9239 | esac |
---|
9240 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9242 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9244 | else |
---|
9245 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9246 | fi |
---|
9247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9248 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9249 | |
---|
9250 | fi |
---|
9251 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9252 | cat >>confdefs.h <<_ACEOF |
---|
9253 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9254 | _ACEOF |
---|
9255 | |
---|
9256 | fi |
---|
9257 | |
---|
9258 | done |
---|
9259 | |
---|
9260 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
9261 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
9262 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
9263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9264 | else |
---|
9265 | if test "$cross_compiling" = yes; then |
---|
9266 | ac_cv_func_malloc_0_nonnull=no |
---|
9267 | else |
---|
9268 | cat >conftest.$ac_ext <<_ACEOF |
---|
9269 | /* confdefs.h. */ |
---|
9270 | _ACEOF |
---|
9271 | cat confdefs.h >>conftest.$ac_ext |
---|
9272 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9273 | /* end confdefs.h. */ |
---|
9274 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
9275 | # include <stdlib.h> |
---|
9276 | #else |
---|
9277 | char *malloc (); |
---|
9278 | #endif |
---|
9279 | |
---|
9280 | int |
---|
9281 | main () |
---|
9282 | { |
---|
9283 | exit (malloc (0) ? 0 : 1); |
---|
9284 | ; |
---|
9285 | return 0; |
---|
9286 | } |
---|
9287 | _ACEOF |
---|
9288 | rm -f conftest$ac_exeext |
---|
9289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9290 | (eval $ac_link) 2>&5 |
---|
9291 | ac_status=$? |
---|
9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9293 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
9294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9295 | (eval $ac_try) 2>&5 |
---|
9296 | ac_status=$? |
---|
9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9298 | (exit $ac_status); }; }; then |
---|
9299 | ac_cv_func_malloc_0_nonnull=yes |
---|
9300 | else |
---|
9301 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
9302 | echo "$as_me: failed program was:" >&5 |
---|
9303 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9304 | |
---|
9305 | ( exit $ac_status ) |
---|
9306 | ac_cv_func_malloc_0_nonnull=no |
---|
9307 | fi |
---|
9308 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
9309 | fi |
---|
9310 | fi |
---|
9311 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
9312 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
9313 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
9314 | |
---|
9315 | cat >>confdefs.h <<\_ACEOF |
---|
9316 | #define HAVE_MALLOC 1 |
---|
9317 | _ACEOF |
---|
9318 | |
---|
9319 | else |
---|
9320 | cat >>confdefs.h <<\_ACEOF |
---|
9321 | #define HAVE_MALLOC 0 |
---|
9322 | _ACEOF |
---|
9323 | |
---|
9324 | case $LIBOBJS in |
---|
9325 | "malloc.$ac_objext" | \ |
---|
9326 | *" malloc.$ac_objext" | \ |
---|
9327 | "malloc.$ac_objext "* | \ |
---|
9328 | *" malloc.$ac_objext "* ) ;; |
---|
9329 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
9330 | esac |
---|
9331 | |
---|
9332 | |
---|
9333 | cat >>confdefs.h <<\_ACEOF |
---|
9334 | #define malloc rpl_malloc |
---|
9335 | _ACEOF |
---|
9336 | |
---|
9337 | fi |
---|
9338 | |
---|
9339 | |
---|
9340 | |
---|
9341 | |
---|
9342 | |
---|
9343 | for ac_func in bzero sqrt |
---|
9344 | do |
---|
9345 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
9346 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
9347 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
9348 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
9349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9350 | else |
---|
9351 | cat >conftest.$ac_ext <<_ACEOF |
---|
9352 | /* confdefs.h. */ |
---|
9353 | _ACEOF |
---|
9354 | cat confdefs.h >>conftest.$ac_ext |
---|
9355 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9356 | /* end confdefs.h. */ |
---|
9357 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
9358 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
9359 | #define $ac_func innocuous_$ac_func |
---|
9360 | |
---|
9361 | /* System header to define __stub macros and hopefully few prototypes, |
---|
9362 | which can conflict with char $ac_func (); below. |
---|
9363 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
9364 | <limits.h> exists even on freestanding compilers. */ |
---|
9365 | |
---|
9366 | #ifdef __STDC__ |
---|
9367 | # include <limits.h> |
---|
9368 | #else |
---|
9369 | # include <assert.h> |
---|
9370 | #endif |
---|
9371 | |
---|
9372 | #undef $ac_func |
---|
9373 | |
---|
9374 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9375 | #ifdef __cplusplus |
---|
9376 | extern "C" |
---|
9377 | { |
---|
9378 | #endif |
---|
9379 | /* We use char because int might match the return type of a gcc2 |
---|
9380 | builtin and then its argument prototype would still apply. */ |
---|
9381 | char $ac_func (); |
---|
9382 | /* The GNU C library defines this for functions which it implements |
---|
9383 | to always fail with ENOSYS. Some functions are actually named |
---|
9384 | something starting with __ and the normal name is an alias. */ |
---|
9385 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
9386 | choke me |
---|
9387 | #else |
---|
9388 | char (*f) () = $ac_func; |
---|
9389 | #endif |
---|
9390 | #ifdef __cplusplus |
---|
9391 | } |
---|
9392 | #endif |
---|
9393 | |
---|
9394 | int |
---|
9395 | main () |
---|
9396 | { |
---|
9397 | return f != $ac_func; |
---|
9398 | ; |
---|
9399 | return 0; |
---|
9400 | } |
---|
9401 | _ACEOF |
---|
9402 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9404 | (eval $ac_link) 2>conftest.er1 |
---|
9405 | ac_status=$? |
---|
9406 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9407 | rm -f conftest.er1 |
---|
9408 | cat conftest.err >&5 |
---|
9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9410 | (exit $ac_status); } && |
---|
9411 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9412 | || test ! -s conftest.err' |
---|
9413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9414 | (eval $ac_try) 2>&5 |
---|
9415 | ac_status=$? |
---|
9416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9417 | (exit $ac_status); }; } && |
---|
9418 | { ac_try='test -s conftest$ac_exeext' |
---|
9419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9420 | (eval $ac_try) 2>&5 |
---|
9421 | ac_status=$? |
---|
9422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9423 | (exit $ac_status); }; }; then |
---|
9424 | eval "$as_ac_var=yes" |
---|
9425 | else |
---|
9426 | echo "$as_me: failed program was:" >&5 |
---|
9427 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9428 | |
---|
9429 | eval "$as_ac_var=no" |
---|
9430 | fi |
---|
9431 | rm -f conftest.err conftest.$ac_objext \ |
---|
9432 | conftest$ac_exeext conftest.$ac_ext |
---|
9433 | fi |
---|
9434 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
9435 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
9436 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
9437 | cat >>confdefs.h <<_ACEOF |
---|
9438 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
9439 | _ACEOF |
---|
9440 | |
---|
9441 | fi |
---|
9442 | done |
---|
9443 | |
---|
9444 | |
---|
9445 | ###################### |
---|
9446 | ## OUTPUT CONFIGURE ## |
---|
9447 | ###################### |
---|
9448 | 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/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" |
---|
9449 | |
---|
9450 | |
---|
9451 | cat >confcache <<\_ACEOF |
---|
9452 | # This file is a shell script that caches the results of configure |
---|
9453 | # tests run on this system so they can be shared between configure |
---|
9454 | # scripts and configure runs, see configure's option --config-cache. |
---|
9455 | # It is not useful on other systems. If it contains results you don't |
---|
9456 | # want to keep, you may remove or edit it. |
---|
9457 | # |
---|
9458 | # config.status only pays attention to the cache file if you give it |
---|
9459 | # the --recheck option to rerun configure. |
---|
9460 | # |
---|
9461 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
9462 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
9463 | # following values. |
---|
9464 | |
---|
9465 | _ACEOF |
---|
9466 | |
---|
9467 | # The following way of writing the cache mishandles newlines in values, |
---|
9468 | # but we know of no workaround that is simple, portable, and efficient. |
---|
9469 | # So, don't put newlines in cache variables' values. |
---|
9470 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
9471 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
9472 | { |
---|
9473 | (set) 2>&1 | |
---|
9474 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
9475 | *ac_space=\ *) |
---|
9476 | # `set' does not quote correctly, so add quotes (double-quote |
---|
9477 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
9478 | sed -n \ |
---|
9479 | "s/'/'\\\\''/g; |
---|
9480 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
9481 | ;; |
---|
9482 | *) |
---|
9483 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
9484 | sed -n \ |
---|
9485 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
9486 | ;; |
---|
9487 | esac; |
---|
9488 | } | |
---|
9489 | sed ' |
---|
9490 | t clear |
---|
9491 | : clear |
---|
9492 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
9493 | t end |
---|
9494 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
9495 | : end' >>confcache |
---|
9496 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
9497 | if test -w $cache_file; then |
---|
9498 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
9499 | cat confcache >$cache_file |
---|
9500 | else |
---|
9501 | echo "not updating unwritable cache $cache_file" |
---|
9502 | fi |
---|
9503 | fi |
---|
9504 | rm -f confcache |
---|
9505 | |
---|
9506 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
9507 | # Let make expand exec_prefix. |
---|
9508 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
9509 | |
---|
9510 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
9511 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
9512 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
9513 | # (actually we leave an empty line to preserve line numbers). |
---|
9514 | if test "x$srcdir" = x.; then |
---|
9515 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
9516 | s/:*\$(srcdir):*/:/; |
---|
9517 | s/:*\${srcdir}:*/:/; |
---|
9518 | s/:*@srcdir@:*/:/; |
---|
9519 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
9520 | s/:*$//; |
---|
9521 | s/^[^=]*=[ ]*$//; |
---|
9522 | }' |
---|
9523 | fi |
---|
9524 | |
---|
9525 | DEFS=-DHAVE_CONFIG_H |
---|
9526 | |
---|
9527 | ac_libobjs= |
---|
9528 | ac_ltlibobjs= |
---|
9529 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
9530 | # 1. Remove the extension, and $U if already installed. |
---|
9531 | ac_i=`echo "$ac_i" | |
---|
9532 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
9533 | # 2. Add them. |
---|
9534 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
9535 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
9536 | done |
---|
9537 | LIBOBJS=$ac_libobjs |
---|
9538 | |
---|
9539 | LTLIBOBJS=$ac_ltlibobjs |
---|
9540 | |
---|
9541 | |
---|
9542 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
9543 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
9544 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9545 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
9546 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9547 | { (exit 1); exit 1; }; } |
---|
9548 | fi |
---|
9549 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
9550 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
9551 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9552 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
9553 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9554 | { (exit 1); exit 1; }; } |
---|
9555 | fi |
---|
9556 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
9557 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
9558 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9559 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
9560 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9561 | { (exit 1); exit 1; }; } |
---|
9562 | fi |
---|
9563 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
9564 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
9565 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9566 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
9567 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9568 | { (exit 1); exit 1; }; } |
---|
9569 | fi |
---|
9570 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
9571 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
9572 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9573 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
9574 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9575 | { (exit 1); exit 1; }; } |
---|
9576 | fi |
---|
9577 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
9578 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
9579 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9580 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
9581 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9582 | { (exit 1); exit 1; }; } |
---|
9583 | fi |
---|
9584 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
9585 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
9586 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9587 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
9588 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9589 | { (exit 1); exit 1; }; } |
---|
9590 | fi |
---|
9591 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
9592 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
9593 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9594 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
9595 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9596 | { (exit 1); exit 1; }; } |
---|
9597 | fi |
---|
9598 | |
---|
9599 | : ${CONFIG_STATUS=./config.status} |
---|
9600 | ac_clean_files_save=$ac_clean_files |
---|
9601 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
9602 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
9603 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
9604 | cat >$CONFIG_STATUS <<_ACEOF |
---|
9605 | #! $SHELL |
---|
9606 | # Generated by $as_me. |
---|
9607 | # Run this file to recreate the current configuration. |
---|
9608 | # Compiler output produced by configure, useful for debugging |
---|
9609 | # configure, is in config.log if it exists. |
---|
9610 | |
---|
9611 | debug=false |
---|
9612 | ac_cs_recheck=false |
---|
9613 | ac_cs_silent=false |
---|
9614 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
9615 | _ACEOF |
---|
9616 | |
---|
9617 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9618 | ## --------------------- ## |
---|
9619 | ## M4sh Initialization. ## |
---|
9620 | ## --------------------- ## |
---|
9621 | |
---|
9622 | # Be Bourne compatible |
---|
9623 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
9624 | emulate sh |
---|
9625 | NULLCMD=: |
---|
9626 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
9627 | # is contrary to our usage. Disable this feature. |
---|
9628 | alias -g '${1+"$@"}'='"$@"' |
---|
9629 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
9630 | set -o posix |
---|
9631 | fi |
---|
9632 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
9633 | |
---|
9634 | # Support unset when possible. |
---|
9635 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
9636 | as_unset=unset |
---|
9637 | else |
---|
9638 | as_unset=false |
---|
9639 | fi |
---|
9640 | |
---|
9641 | |
---|
9642 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
9643 | $as_unset ENV MAIL MAILPATH |
---|
9644 | PS1='$ ' |
---|
9645 | PS2='> ' |
---|
9646 | PS4='+ ' |
---|
9647 | |
---|
9648 | # NLS nuisances. |
---|
9649 | for as_var in \ |
---|
9650 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
9651 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
9652 | LC_TELEPHONE LC_TIME |
---|
9653 | do |
---|
9654 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
9655 | eval $as_var=C; export $as_var |
---|
9656 | else |
---|
9657 | $as_unset $as_var |
---|
9658 | fi |
---|
9659 | done |
---|
9660 | |
---|
9661 | # Required to use basename. |
---|
9662 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
9663 | as_expr=expr |
---|
9664 | else |
---|
9665 | as_expr=false |
---|
9666 | fi |
---|
9667 | |
---|
9668 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
9669 | as_basename=basename |
---|
9670 | else |
---|
9671 | as_basename=false |
---|
9672 | fi |
---|
9673 | |
---|
9674 | |
---|
9675 | # Name of the executable. |
---|
9676 | as_me=`$as_basename "$0" || |
---|
9677 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
9678 | X"$0" : 'X\(//\)$' \| \ |
---|
9679 | X"$0" : 'X\(/\)$' \| \ |
---|
9680 | . : '\(.\)' 2>/dev/null || |
---|
9681 | echo X/"$0" | |
---|
9682 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
9683 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
9684 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
9685 | s/.*/./; q'` |
---|
9686 | |
---|
9687 | |
---|
9688 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
9689 | # Avoid depending upon Character Ranges. |
---|
9690 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
9691 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
9692 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
9693 | as_cr_digits='0123456789' |
---|
9694 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
9695 | |
---|
9696 | # The user is always right. |
---|
9697 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
9698 | echo "#! /bin/sh" >conf$$.sh |
---|
9699 | echo "exit 0" >>conf$$.sh |
---|
9700 | chmod +x conf$$.sh |
---|
9701 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
9702 | PATH_SEPARATOR=';' |
---|
9703 | else |
---|
9704 | PATH_SEPARATOR=: |
---|
9705 | fi |
---|
9706 | rm -f conf$$.sh |
---|
9707 | fi |
---|
9708 | |
---|
9709 | |
---|
9710 | as_lineno_1=$LINENO |
---|
9711 | as_lineno_2=$LINENO |
---|
9712 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
9713 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
9714 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
9715 | # Find who we are. Look in the path if we contain no path at all |
---|
9716 | # relative or not. |
---|
9717 | case $0 in |
---|
9718 | *[\\/]* ) as_myself=$0 ;; |
---|
9719 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9720 | for as_dir in $PATH |
---|
9721 | do |
---|
9722 | IFS=$as_save_IFS |
---|
9723 | test -z "$as_dir" && as_dir=. |
---|
9724 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
9725 | done |
---|
9726 | |
---|
9727 | ;; |
---|
9728 | esac |
---|
9729 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
9730 | # in which case we are not to be found in the path. |
---|
9731 | if test "x$as_myself" = x; then |
---|
9732 | as_myself=$0 |
---|
9733 | fi |
---|
9734 | if test ! -f "$as_myself"; then |
---|
9735 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
9736 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
9737 | { (exit 1); exit 1; }; } |
---|
9738 | fi |
---|
9739 | case $CONFIG_SHELL in |
---|
9740 | '') |
---|
9741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9742 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
9743 | do |
---|
9744 | IFS=$as_save_IFS |
---|
9745 | test -z "$as_dir" && as_dir=. |
---|
9746 | for as_base in sh bash ksh sh5; do |
---|
9747 | case $as_dir in |
---|
9748 | /*) |
---|
9749 | if ("$as_dir/$as_base" -c ' |
---|
9750 | as_lineno_1=$LINENO |
---|
9751 | as_lineno_2=$LINENO |
---|
9752 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
9753 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
9754 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
9755 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
9756 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
9757 | CONFIG_SHELL=$as_dir/$as_base |
---|
9758 | export CONFIG_SHELL |
---|
9759 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
9760 | fi;; |
---|
9761 | esac |
---|
9762 | done |
---|
9763 | done |
---|
9764 | ;; |
---|
9765 | esac |
---|
9766 | |
---|
9767 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
9768 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
9769 | # line-number line before each line; the second 'sed' does the real |
---|
9770 | # work. The second script uses 'N' to pair each line-number line |
---|
9771 | # with the numbered line, and appends trailing '-' during |
---|
9772 | # substitution so that $LINENO is not a special case at line end. |
---|
9773 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
9774 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
9775 | sed '=' <$as_myself | |
---|
9776 | sed ' |
---|
9777 | N |
---|
9778 | s,$,-, |
---|
9779 | : loop |
---|
9780 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
9781 | t loop |
---|
9782 | s,-$,, |
---|
9783 | s,^['$as_cr_digits']*\n,, |
---|
9784 | ' >$as_me.lineno && |
---|
9785 | chmod +x $as_me.lineno || |
---|
9786 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
9787 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
9788 | { (exit 1); exit 1; }; } |
---|
9789 | |
---|
9790 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
9791 | # (the dirname of $[0] is not the place where we might find the |
---|
9792 | # original and so on. Autoconf is especially sensible to this). |
---|
9793 | . ./$as_me.lineno |
---|
9794 | # Exit status is that of the last command. |
---|
9795 | exit |
---|
9796 | } |
---|
9797 | |
---|
9798 | |
---|
9799 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
9800 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
9801 | ' ECHO_T=' ' ;; |
---|
9802 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
9803 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
9804 | esac |
---|
9805 | |
---|
9806 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
9807 | as_expr=expr |
---|
9808 | else |
---|
9809 | as_expr=false |
---|
9810 | fi |
---|
9811 | |
---|
9812 | rm -f conf$$ conf$$.exe conf$$.file |
---|
9813 | echo >conf$$.file |
---|
9814 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
9815 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
9816 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
9817 | if test -f conf$$.exe; then |
---|
9818 | # Don't use ln at all; we don't have any links |
---|
9819 | as_ln_s='cp -p' |
---|
9820 | else |
---|
9821 | as_ln_s='ln -s' |
---|
9822 | fi |
---|
9823 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
9824 | as_ln_s=ln |
---|
9825 | else |
---|
9826 | as_ln_s='cp -p' |
---|
9827 | fi |
---|
9828 | rm -f conf$$ conf$$.exe conf$$.file |
---|
9829 | |
---|
9830 | if mkdir -p . 2>/dev/null; then |
---|
9831 | as_mkdir_p=: |
---|
9832 | else |
---|
9833 | test -d ./-p && rmdir ./-p |
---|
9834 | as_mkdir_p=false |
---|
9835 | fi |
---|
9836 | |
---|
9837 | as_executable_p="test -f" |
---|
9838 | |
---|
9839 | # Sed expression to map a string onto a valid CPP name. |
---|
9840 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
9841 | |
---|
9842 | # Sed expression to map a string onto a valid variable name. |
---|
9843 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
9844 | |
---|
9845 | |
---|
9846 | # IFS |
---|
9847 | # We need space, tab and new line, in precisely that order. |
---|
9848 | as_nl=' |
---|
9849 | ' |
---|
9850 | IFS=" $as_nl" |
---|
9851 | |
---|
9852 | # CDPATH. |
---|
9853 | $as_unset CDPATH |
---|
9854 | |
---|
9855 | exec 6>&1 |
---|
9856 | |
---|
9857 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
9858 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
9859 | # values after options handling. Logging --version etc. is OK. |
---|
9860 | exec 5>>config.log |
---|
9861 | { |
---|
9862 | echo |
---|
9863 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
9864 | ## Running $as_me. ## |
---|
9865 | _ASBOX |
---|
9866 | } >&5 |
---|
9867 | cat >&5 <<_CSEOF |
---|
9868 | |
---|
9869 | This file was extended by orxonox $as_me 0.3.1_alpha, which was |
---|
9870 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
9871 | |
---|
9872 | CONFIG_FILES = $CONFIG_FILES |
---|
9873 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
9874 | CONFIG_LINKS = $CONFIG_LINKS |
---|
9875 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
9876 | $ $0 $@ |
---|
9877 | |
---|
9878 | _CSEOF |
---|
9879 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
9880 | echo >&5 |
---|
9881 | _ACEOF |
---|
9882 | |
---|
9883 | # Files that config.status was made for. |
---|
9884 | if test -n "$ac_config_files"; then |
---|
9885 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
9886 | fi |
---|
9887 | |
---|
9888 | if test -n "$ac_config_headers"; then |
---|
9889 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
9890 | fi |
---|
9891 | |
---|
9892 | if test -n "$ac_config_links"; then |
---|
9893 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
9894 | fi |
---|
9895 | |
---|
9896 | if test -n "$ac_config_commands"; then |
---|
9897 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
9898 | fi |
---|
9899 | |
---|
9900 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9901 | |
---|
9902 | ac_cs_usage="\ |
---|
9903 | \`$as_me' instantiates files from templates according to the |
---|
9904 | current configuration. |
---|
9905 | |
---|
9906 | Usage: $0 [OPTIONS] [FILE]... |
---|
9907 | |
---|
9908 | -h, --help print this help, then exit |
---|
9909 | -V, --version print version number, then exit |
---|
9910 | -q, --quiet do not print progress messages |
---|
9911 | -d, --debug don't remove temporary files |
---|
9912 | --recheck update $as_me by reconfiguring in the same conditions |
---|
9913 | --file=FILE[:TEMPLATE] |
---|
9914 | instantiate the configuration file FILE |
---|
9915 | --header=FILE[:TEMPLATE] |
---|
9916 | instantiate the configuration header FILE |
---|
9917 | |
---|
9918 | Configuration files: |
---|
9919 | $config_files |
---|
9920 | |
---|
9921 | Configuration headers: |
---|
9922 | $config_headers |
---|
9923 | |
---|
9924 | Configuration commands: |
---|
9925 | $config_commands |
---|
9926 | |
---|
9927 | Report bugs to <bug-autoconf@gnu.org>." |
---|
9928 | _ACEOF |
---|
9929 | |
---|
9930 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
9931 | ac_cs_version="\\ |
---|
9932 | orxonox config.status 0.3.1_alpha |
---|
9933 | configured by $0, generated by GNU Autoconf 2.59, |
---|
9934 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
9935 | |
---|
9936 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
9937 | This config.status script is free software; the Free Software Foundation |
---|
9938 | gives unlimited permission to copy, distribute and modify it." |
---|
9939 | srcdir=$srcdir |
---|
9940 | INSTALL="$INSTALL" |
---|
9941 | _ACEOF |
---|
9942 | |
---|
9943 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9944 | # If no file are specified by the user, then we need to provide default |
---|
9945 | # value. By we need to know if files were specified by the user. |
---|
9946 | ac_need_defaults=: |
---|
9947 | while test $# != 0 |
---|
9948 | do |
---|
9949 | case $1 in |
---|
9950 | --*=*) |
---|
9951 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
9952 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
9953 | ac_shift=: |
---|
9954 | ;; |
---|
9955 | -*) |
---|
9956 | ac_option=$1 |
---|
9957 | ac_optarg=$2 |
---|
9958 | ac_shift=shift |
---|
9959 | ;; |
---|
9960 | *) # This is not an option, so the user has probably given explicit |
---|
9961 | # arguments. |
---|
9962 | ac_option=$1 |
---|
9963 | ac_need_defaults=false;; |
---|
9964 | esac |
---|
9965 | |
---|
9966 | case $ac_option in |
---|
9967 | # Handling of the options. |
---|
9968 | _ACEOF |
---|
9969 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9970 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
9971 | ac_cs_recheck=: ;; |
---|
9972 | --version | --vers* | -V ) |
---|
9973 | echo "$ac_cs_version"; exit 0 ;; |
---|
9974 | --he | --h) |
---|
9975 | # Conflict between --help and --header |
---|
9976 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
9977 | Try \`$0 --help' for more information." >&5 |
---|
9978 | echo "$as_me: error: ambiguous option: $1 |
---|
9979 | Try \`$0 --help' for more information." >&2;} |
---|
9980 | { (exit 1); exit 1; }; };; |
---|
9981 | --help | --hel | -h ) |
---|
9982 | echo "$ac_cs_usage"; exit 0 ;; |
---|
9983 | --debug | --d* | -d ) |
---|
9984 | debug=: ;; |
---|
9985 | --file | --fil | --fi | --f ) |
---|
9986 | $ac_shift |
---|
9987 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
9988 | ac_need_defaults=false;; |
---|
9989 | --header | --heade | --head | --hea ) |
---|
9990 | $ac_shift |
---|
9991 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
9992 | ac_need_defaults=false;; |
---|
9993 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
9994 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
9995 | ac_cs_silent=: ;; |
---|
9996 | |
---|
9997 | # This is an error. |
---|
9998 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
9999 | Try \`$0 --help' for more information." >&5 |
---|
10000 | echo "$as_me: error: unrecognized option: $1 |
---|
10001 | Try \`$0 --help' for more information." >&2;} |
---|
10002 | { (exit 1); exit 1; }; } ;; |
---|
10003 | |
---|
10004 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
10005 | |
---|
10006 | esac |
---|
10007 | shift |
---|
10008 | done |
---|
10009 | |
---|
10010 | ac_configure_extra_args= |
---|
10011 | |
---|
10012 | if $ac_cs_silent; then |
---|
10013 | exec 6>/dev/null |
---|
10014 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
10015 | fi |
---|
10016 | |
---|
10017 | _ACEOF |
---|
10018 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10019 | if \$ac_cs_recheck; then |
---|
10020 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
10021 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
10022 | fi |
---|
10023 | |
---|
10024 | _ACEOF |
---|
10025 | |
---|
10026 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10027 | # |
---|
10028 | # INIT-COMMANDS section. |
---|
10029 | # |
---|
10030 | |
---|
10031 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
10032 | |
---|
10033 | _ACEOF |
---|
10034 | |
---|
10035 | |
---|
10036 | |
---|
10037 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10038 | for ac_config_target in $ac_config_targets |
---|
10039 | do |
---|
10040 | case "$ac_config_target" in |
---|
10041 | # Handling of arguments. |
---|
10042 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
10043 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
10044 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
10045 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
10046 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
10047 | "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;; |
---|
10048 | "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;; |
---|
10049 | "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;; |
---|
10050 | "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;; |
---|
10051 | "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;; |
---|
10052 | "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;; |
---|
10053 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
10054 | "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; |
---|
10055 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
10056 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
10057 | "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;; |
---|
10058 | "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;; |
---|
10059 | "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;; |
---|
10060 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
10061 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
10062 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
10063 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
10064 | { (exit 1); exit 1; }; };; |
---|
10065 | esac |
---|
10066 | done |
---|
10067 | |
---|
10068 | # If the user did not use the arguments to specify the items to instantiate, |
---|
10069 | # then the envvar interface is used. Set only those that are not. |
---|
10070 | # We use the long form for the default assignment because of an extremely |
---|
10071 | # bizarre bug on SunOS 4.1.3. |
---|
10072 | if $ac_need_defaults; then |
---|
10073 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
10074 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
10075 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
10076 | fi |
---|
10077 | |
---|
10078 | # Have a temporary directory for convenience. Make it in the build tree |
---|
10079 | # simply because there is no reason to put it here, and in addition, |
---|
10080 | # creating and moving files from /tmp can sometimes cause problems. |
---|
10081 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
10082 | $debug || |
---|
10083 | { |
---|
10084 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
10085 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
10086 | } |
---|
10087 | |
---|
10088 | # Create a (secure) tmp directory for tmp files. |
---|
10089 | |
---|
10090 | { |
---|
10091 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
10092 | test -n "$tmp" && test -d "$tmp" |
---|
10093 | } || |
---|
10094 | { |
---|
10095 | tmp=./confstat$$-$RANDOM |
---|
10096 | (umask 077 && mkdir $tmp) |
---|
10097 | } || |
---|
10098 | { |
---|
10099 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
10100 | { (exit 1); exit 1; } |
---|
10101 | } |
---|
10102 | |
---|
10103 | _ACEOF |
---|
10104 | |
---|
10105 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10106 | |
---|
10107 | # |
---|
10108 | # CONFIG_FILES section. |
---|
10109 | # |
---|
10110 | |
---|
10111 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
10112 | # This happens for instance when ./config.status config.h |
---|
10113 | if test -n "\$CONFIG_FILES"; then |
---|
10114 | # Protect against being on the right side of a sed subst in config.status. |
---|
10115 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
10116 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
10117 | s,@SHELL@,$SHELL,;t t |
---|
10118 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
10119 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
10120 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
10121 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
10122 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
10123 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
10124 | s,@exec_prefix@,$exec_prefix,;t t |
---|
10125 | s,@prefix@,$prefix,;t t |
---|
10126 | s,@program_transform_name@,$program_transform_name,;t t |
---|
10127 | s,@bindir@,$bindir,;t t |
---|
10128 | s,@sbindir@,$sbindir,;t t |
---|
10129 | s,@libexecdir@,$libexecdir,;t t |
---|
10130 | s,@datadir@,$datadir,;t t |
---|
10131 | s,@sysconfdir@,$sysconfdir,;t t |
---|
10132 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
10133 | s,@localstatedir@,$localstatedir,;t t |
---|
10134 | s,@libdir@,$libdir,;t t |
---|
10135 | s,@includedir@,$includedir,;t t |
---|
10136 | s,@oldincludedir@,$oldincludedir,;t t |
---|
10137 | s,@infodir@,$infodir,;t t |
---|
10138 | s,@mandir@,$mandir,;t t |
---|
10139 | s,@build_alias@,$build_alias,;t t |
---|
10140 | s,@host_alias@,$host_alias,;t t |
---|
10141 | s,@target_alias@,$target_alias,;t t |
---|
10142 | s,@DEFS@,$DEFS,;t t |
---|
10143 | s,@ECHO_C@,$ECHO_C,;t t |
---|
10144 | s,@ECHO_N@,$ECHO_N,;t t |
---|
10145 | s,@ECHO_T@,$ECHO_T,;t t |
---|
10146 | s,@LIBS@,$LIBS,;t t |
---|
10147 | s,@build@,$build,;t t |
---|
10148 | s,@build_cpu@,$build_cpu,;t t |
---|
10149 | s,@build_vendor@,$build_vendor,;t t |
---|
10150 | s,@build_os@,$build_os,;t t |
---|
10151 | s,@host@,$host,;t t |
---|
10152 | s,@host_cpu@,$host_cpu,;t t |
---|
10153 | s,@host_vendor@,$host_vendor,;t t |
---|
10154 | s,@host_os@,$host_os,;t t |
---|
10155 | s,@target@,$target,;t t |
---|
10156 | s,@target_cpu@,$target_cpu,;t t |
---|
10157 | s,@target_vendor@,$target_vendor,;t t |
---|
10158 | s,@target_os@,$target_os,;t t |
---|
10159 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
10160 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
10161 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
10162 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
10163 | s,@PACKAGE@,$PACKAGE,;t t |
---|
10164 | s,@VERSION@,$VERSION,;t t |
---|
10165 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
10166 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
10167 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
10168 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
10169 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
10170 | s,@AMTAR@,$AMTAR,;t t |
---|
10171 | s,@install_sh@,$install_sh,;t t |
---|
10172 | s,@STRIP@,$STRIP,;t t |
---|
10173 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
10174 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
10175 | s,@mkdir_p@,$mkdir_p,;t t |
---|
10176 | s,@AWK@,$AWK,;t t |
---|
10177 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
10178 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
10179 | s,@CXX@,$CXX,;t t |
---|
10180 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
10181 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
10182 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
10183 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
10184 | s,@EXEEXT@,$EXEEXT,;t t |
---|
10185 | s,@OBJEXT@,$OBJEXT,;t t |
---|
10186 | s,@DEPDIR@,$DEPDIR,;t t |
---|
10187 | s,@am__include@,$am__include,;t t |
---|
10188 | s,@am__quote@,$am__quote,;t t |
---|
10189 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
10190 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
10191 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
10192 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
10193 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
10194 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
10195 | s,@RANLIB@,$RANLIB,;t t |
---|
10196 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
10197 | s,@CC@,$CC,;t t |
---|
10198 | s,@CFLAGS@,$CFLAGS,;t t |
---|
10199 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
10200 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
10201 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
10202 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
10203 | s,@CPP@,$CPP,;t t |
---|
10204 | s,@EGREP@,$EGREP,;t t |
---|
10205 | s,@DEBUG@,$DEBUG,;t t |
---|
10206 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
10207 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
10208 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
10209 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
10210 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
10211 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
10212 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
10213 | s,@GPROF@,$GPROF,;t t |
---|
10214 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
10215 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
10216 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
10217 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
10218 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
10219 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
10220 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
10221 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
10222 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
10223 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
10224 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
10225 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
10226 | CEOF |
---|
10227 | |
---|
10228 | _ACEOF |
---|
10229 | |
---|
10230 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10231 | # Split the substitutions into bite-sized pieces for seds with |
---|
10232 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
10233 | ac_max_sed_lines=48 |
---|
10234 | ac_sed_frag=1 # Number of current file. |
---|
10235 | ac_beg=1 # First line for current file. |
---|
10236 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
10237 | ac_more_lines=: |
---|
10238 | ac_sed_cmds= |
---|
10239 | while $ac_more_lines; do |
---|
10240 | if test $ac_beg -gt 1; then |
---|
10241 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
10242 | else |
---|
10243 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
10244 | fi |
---|
10245 | if test ! -s $tmp/subs.frag; then |
---|
10246 | ac_more_lines=false |
---|
10247 | else |
---|
10248 | # The purpose of the label and of the branching condition is to |
---|
10249 | # speed up the sed processing (if there are no `@' at all, there |
---|
10250 | # is no need to browse any of the substitutions). |
---|
10251 | # These are the two extra sed commands mentioned above. |
---|
10252 | (echo ':t |
---|
10253 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
10254 | if test -z "$ac_sed_cmds"; then |
---|
10255 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
10256 | else |
---|
10257 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
10258 | fi |
---|
10259 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
10260 | ac_beg=$ac_end |
---|
10261 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
10262 | fi |
---|
10263 | done |
---|
10264 | if test -z "$ac_sed_cmds"; then |
---|
10265 | ac_sed_cmds=cat |
---|
10266 | fi |
---|
10267 | fi # test -n "$CONFIG_FILES" |
---|
10268 | |
---|
10269 | _ACEOF |
---|
10270 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10271 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
10272 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
10273 | case $ac_file in |
---|
10274 | - | *:- | *:-:* ) # input from stdin |
---|
10275 | cat >$tmp/stdin |
---|
10276 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10277 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10278 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10279 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10280 | * ) ac_file_in=$ac_file.in ;; |
---|
10281 | esac |
---|
10282 | |
---|
10283 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
10284 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
10285 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10286 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
10287 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
10288 | X"$ac_file" : 'X\(/\)' \| \ |
---|
10289 | . : '\(.\)' 2>/dev/null || |
---|
10290 | echo X"$ac_file" | |
---|
10291 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10292 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10293 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10294 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10295 | s/.*/./; q'` |
---|
10296 | { if $as_mkdir_p; then |
---|
10297 | mkdir -p "$ac_dir" |
---|
10298 | else |
---|
10299 | as_dir="$ac_dir" |
---|
10300 | as_dirs= |
---|
10301 | while test ! -d "$as_dir"; do |
---|
10302 | as_dirs="$as_dir $as_dirs" |
---|
10303 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10304 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10305 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10306 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10307 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10308 | . : '\(.\)' 2>/dev/null || |
---|
10309 | echo X"$as_dir" | |
---|
10310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10311 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10312 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10313 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10314 | s/.*/./; q'` |
---|
10315 | done |
---|
10316 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10317 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
10318 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
10319 | { (exit 1); exit 1; }; }; } |
---|
10320 | |
---|
10321 | ac_builddir=. |
---|
10322 | |
---|
10323 | if test "$ac_dir" != .; then |
---|
10324 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
10325 | # A "../" for each directory in $ac_dir_suffix. |
---|
10326 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
10327 | else |
---|
10328 | ac_dir_suffix= ac_top_builddir= |
---|
10329 | fi |
---|
10330 | |
---|
10331 | case $srcdir in |
---|
10332 | .) # No --srcdir option. We are building in place. |
---|
10333 | ac_srcdir=. |
---|
10334 | if test -z "$ac_top_builddir"; then |
---|
10335 | ac_top_srcdir=. |
---|
10336 | else |
---|
10337 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
10338 | fi ;; |
---|
10339 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
10340 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
10341 | ac_top_srcdir=$srcdir ;; |
---|
10342 | *) # Relative path. |
---|
10343 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
10344 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
10345 | esac |
---|
10346 | |
---|
10347 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
10348 | # the directories may not exist. |
---|
10349 | case `pwd` in |
---|
10350 | .) ac_abs_builddir="$ac_dir";; |
---|
10351 | *) |
---|
10352 | case "$ac_dir" in |
---|
10353 | .) ac_abs_builddir=`pwd`;; |
---|
10354 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
10355 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
10356 | esac;; |
---|
10357 | esac |
---|
10358 | case $ac_abs_builddir in |
---|
10359 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
10360 | *) |
---|
10361 | case ${ac_top_builddir}. in |
---|
10362 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
10363 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
10364 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
10365 | esac;; |
---|
10366 | esac |
---|
10367 | case $ac_abs_builddir in |
---|
10368 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
10369 | *) |
---|
10370 | case $ac_srcdir in |
---|
10371 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
10372 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
10373 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
10374 | esac;; |
---|
10375 | esac |
---|
10376 | case $ac_abs_builddir in |
---|
10377 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
10378 | *) |
---|
10379 | case $ac_top_srcdir in |
---|
10380 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
10381 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
10382 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
10383 | esac;; |
---|
10384 | esac |
---|
10385 | |
---|
10386 | |
---|
10387 | case $INSTALL in |
---|
10388 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
10389 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
10390 | esac |
---|
10391 | |
---|
10392 | if test x"$ac_file" != x-; then |
---|
10393 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
10394 | echo "$as_me: creating $ac_file" >&6;} |
---|
10395 | rm -f "$ac_file" |
---|
10396 | fi |
---|
10397 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
10398 | # use $as_me), people would be surprised to read: |
---|
10399 | # /* config.h. Generated by config.status. */ |
---|
10400 | if test x"$ac_file" = x-; then |
---|
10401 | configure_input= |
---|
10402 | else |
---|
10403 | configure_input="$ac_file. " |
---|
10404 | fi |
---|
10405 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
10406 | sed 's,.*/,,'` by configure." |
---|
10407 | |
---|
10408 | # First look for the input files in the build tree, otherwise in the |
---|
10409 | # src tree. |
---|
10410 | ac_file_inputs=`IFS=: |
---|
10411 | for f in $ac_file_in; do |
---|
10412 | case $f in |
---|
10413 | -) echo $tmp/stdin ;; |
---|
10414 | [\\/$]*) |
---|
10415 | # Absolute (can't be DOS-style, as IFS=:) |
---|
10416 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10417 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10418 | { (exit 1); exit 1; }; } |
---|
10419 | echo "$f";; |
---|
10420 | *) # Relative |
---|
10421 | if test -f "$f"; then |
---|
10422 | # Build tree |
---|
10423 | echo "$f" |
---|
10424 | elif test -f "$srcdir/$f"; then |
---|
10425 | # Source tree |
---|
10426 | echo "$srcdir/$f" |
---|
10427 | else |
---|
10428 | # /dev/null tree |
---|
10429 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10430 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10431 | { (exit 1); exit 1; }; } |
---|
10432 | fi;; |
---|
10433 | esac |
---|
10434 | done` || { (exit 1); exit 1; } |
---|
10435 | _ACEOF |
---|
10436 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10437 | sed "$ac_vpsub |
---|
10438 | $extrasub |
---|
10439 | _ACEOF |
---|
10440 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10441 | :t |
---|
10442 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
10443 | s,@configure_input@,$configure_input,;t t |
---|
10444 | s,@srcdir@,$ac_srcdir,;t t |
---|
10445 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
10446 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
10447 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
10448 | s,@builddir@,$ac_builddir,;t t |
---|
10449 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
10450 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
10451 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
10452 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
10453 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
10454 | rm -f $tmp/stdin |
---|
10455 | if test x"$ac_file" != x-; then |
---|
10456 | mv $tmp/out $ac_file |
---|
10457 | else |
---|
10458 | cat $tmp/out |
---|
10459 | rm -f $tmp/out |
---|
10460 | fi |
---|
10461 | |
---|
10462 | done |
---|
10463 | _ACEOF |
---|
10464 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10465 | |
---|
10466 | # |
---|
10467 | # CONFIG_HEADER section. |
---|
10468 | # |
---|
10469 | |
---|
10470 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
10471 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
10472 | # |
---|
10473 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
10474 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
10475 | ac_dB='[ ].*$,\1#\2' |
---|
10476 | ac_dC=' ' |
---|
10477 | ac_dD=',;t' |
---|
10478 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
10479 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
10480 | ac_uB='$,\1#\2define\3' |
---|
10481 | ac_uC=' ' |
---|
10482 | ac_uD=',;t' |
---|
10483 | |
---|
10484 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
10485 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
10486 | case $ac_file in |
---|
10487 | - | *:- | *:-:* ) # input from stdin |
---|
10488 | cat >$tmp/stdin |
---|
10489 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10490 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10491 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10492 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10493 | * ) ac_file_in=$ac_file.in ;; |
---|
10494 | esac |
---|
10495 | |
---|
10496 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
10497 | echo "$as_me: creating $ac_file" >&6;} |
---|
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 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
10511 | echo "$f";; |
---|
10512 | *) # Relative |
---|
10513 | if test -f "$f"; then |
---|
10514 | # Build tree |
---|
10515 | echo "$f" |
---|
10516 | elif test -f "$srcdir/$f"; then |
---|
10517 | # Source tree |
---|
10518 | echo "$srcdir/$f" |
---|
10519 | else |
---|
10520 | # /dev/null tree |
---|
10521 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10522 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10523 | { (exit 1); exit 1; }; } |
---|
10524 | fi;; |
---|
10525 | esac |
---|
10526 | done` || { (exit 1); exit 1; } |
---|
10527 | # Remove the trailing spaces. |
---|
10528 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
10529 | |
---|
10530 | _ACEOF |
---|
10531 | |
---|
10532 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
10533 | # `conftest.undefs', that substitutes the proper values into |
---|
10534 | # config.h.in to produce config.h. The first handles `#define' |
---|
10535 | # templates, and the second `#undef' templates. |
---|
10536 | # And first: Protect against being on the right side of a sed subst in |
---|
10537 | # config.status. Protect against being in an unquoted here document |
---|
10538 | # in config.status. |
---|
10539 | rm -f conftest.defines conftest.undefs |
---|
10540 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
10541 | # Putting comments in sed scripts is not portable. |
---|
10542 | # |
---|
10543 | # `end' is used to avoid that the second main sed command (meant for |
---|
10544 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
10545 | # See the Autoconf documentation for `clear'. |
---|
10546 | cat >confdef2sed.sed <<\_ACEOF |
---|
10547 | s/[\\&,]/\\&/g |
---|
10548 | s,[\\$`],\\&,g |
---|
10549 | t clear |
---|
10550 | : clear |
---|
10551 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
10552 | t end |
---|
10553 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
10554 | : end |
---|
10555 | _ACEOF |
---|
10556 | # If some macros were called several times there might be several times |
---|
10557 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
10558 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
10559 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
10560 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
10561 | rm -f confdef2sed.sed |
---|
10562 | |
---|
10563 | # This sed command replaces #undef with comments. This is necessary, for |
---|
10564 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
10565 | # on some systems where configure will not decide to define it. |
---|
10566 | cat >>conftest.undefs <<\_ACEOF |
---|
10567 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
10568 | _ACEOF |
---|
10569 | |
---|
10570 | # Break up conftest.defines because some shells have a limit on the size |
---|
10571 | # of here documents, and old seds have small limits too (100 cmds). |
---|
10572 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
10573 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
10574 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
10575 | echo ' :' >>$CONFIG_STATUS |
---|
10576 | rm -f conftest.tail |
---|
10577 | while grep . conftest.defines >/dev/null |
---|
10578 | do |
---|
10579 | # Write a limited-size here document to $tmp/defines.sed. |
---|
10580 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
10581 | # Speed up: don't consider the non `#define' lines. |
---|
10582 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
10583 | # Work around the forget-to-reset-the-flag bug. |
---|
10584 | echo 't clr' >>$CONFIG_STATUS |
---|
10585 | echo ': clr' >>$CONFIG_STATUS |
---|
10586 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
10587 | echo 'CEOF |
---|
10588 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
10589 | rm -f $tmp/in |
---|
10590 | mv $tmp/out $tmp/in |
---|
10591 | ' >>$CONFIG_STATUS |
---|
10592 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
10593 | rm -f conftest.defines |
---|
10594 | mv conftest.tail conftest.defines |
---|
10595 | done |
---|
10596 | rm -f conftest.defines |
---|
10597 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
10598 | echo >>$CONFIG_STATUS |
---|
10599 | |
---|
10600 | # Break up conftest.undefs because some shells have a limit on the size |
---|
10601 | # of here documents, and old seds have small limits too (100 cmds). |
---|
10602 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
10603 | rm -f conftest.tail |
---|
10604 | while grep . conftest.undefs >/dev/null |
---|
10605 | do |
---|
10606 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
10607 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
10608 | # Speed up: don't consider the non `#undef' |
---|
10609 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
10610 | # Work around the forget-to-reset-the-flag bug. |
---|
10611 | echo 't clr' >>$CONFIG_STATUS |
---|
10612 | echo ': clr' >>$CONFIG_STATUS |
---|
10613 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
10614 | echo 'CEOF |
---|
10615 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
10616 | rm -f $tmp/in |
---|
10617 | mv $tmp/out $tmp/in |
---|
10618 | ' >>$CONFIG_STATUS |
---|
10619 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
10620 | rm -f conftest.undefs |
---|
10621 | mv conftest.tail conftest.undefs |
---|
10622 | done |
---|
10623 | rm -f conftest.undefs |
---|
10624 | |
---|
10625 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10626 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
10627 | # use $as_me), people would be surprised to read: |
---|
10628 | # /* config.h. Generated by config.status. */ |
---|
10629 | if test x"$ac_file" = x-; then |
---|
10630 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
10631 | else |
---|
10632 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
10633 | fi |
---|
10634 | cat $tmp/in >>$tmp/config.h |
---|
10635 | rm -f $tmp/in |
---|
10636 | if test x"$ac_file" != x-; then |
---|
10637 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
10638 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
10639 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
10640 | else |
---|
10641 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
10642 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10643 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
10644 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
10645 | X"$ac_file" : 'X\(/\)' \| \ |
---|
10646 | . : '\(.\)' 2>/dev/null || |
---|
10647 | echo X"$ac_file" | |
---|
10648 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10649 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10650 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10651 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10652 | s/.*/./; q'` |
---|
10653 | { if $as_mkdir_p; then |
---|
10654 | mkdir -p "$ac_dir" |
---|
10655 | else |
---|
10656 | as_dir="$ac_dir" |
---|
10657 | as_dirs= |
---|
10658 | while test ! -d "$as_dir"; do |
---|
10659 | as_dirs="$as_dir $as_dirs" |
---|
10660 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10661 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10662 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10663 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10664 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10665 | . : '\(.\)' 2>/dev/null || |
---|
10666 | echo X"$as_dir" | |
---|
10667 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10668 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10669 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10670 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10671 | s/.*/./; q'` |
---|
10672 | done |
---|
10673 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10674 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
10675 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
10676 | { (exit 1); exit 1; }; }; } |
---|
10677 | |
---|
10678 | rm -f $ac_file |
---|
10679 | mv $tmp/config.h $ac_file |
---|
10680 | fi |
---|
10681 | else |
---|
10682 | cat $tmp/config.h |
---|
10683 | rm -f $tmp/config.h |
---|
10684 | fi |
---|
10685 | # Compute $ac_file's index in $config_headers. |
---|
10686 | _am_stamp_count=1 |
---|
10687 | for _am_header in $config_headers :; do |
---|
10688 | case $_am_header in |
---|
10689 | $ac_file | $ac_file:* ) |
---|
10690 | break ;; |
---|
10691 | * ) |
---|
10692 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
10693 | esac |
---|
10694 | done |
---|
10695 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
10696 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10697 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
10698 | X$ac_file : 'X\(//\)$' \| \ |
---|
10699 | X$ac_file : 'X\(/\)' \| \ |
---|
10700 | . : '\(.\)' 2>/dev/null || |
---|
10701 | echo X$ac_file | |
---|
10702 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10703 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10704 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10705 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10706 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
10707 | done |
---|
10708 | _ACEOF |
---|
10709 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10710 | |
---|
10711 | # |
---|
10712 | # CONFIG_COMMANDS section. |
---|
10713 | # |
---|
10714 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
10715 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
10716 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10717 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
10718 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10719 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
10720 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
10721 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
10722 | . : '\(.\)' 2>/dev/null || |
---|
10723 | echo X"$ac_dest" | |
---|
10724 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10725 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10726 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10727 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10728 | s/.*/./; q'` |
---|
10729 | { if $as_mkdir_p; then |
---|
10730 | mkdir -p "$ac_dir" |
---|
10731 | else |
---|
10732 | as_dir="$ac_dir" |
---|
10733 | as_dirs= |
---|
10734 | while test ! -d "$as_dir"; do |
---|
10735 | as_dirs="$as_dir $as_dirs" |
---|
10736 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10737 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10738 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10739 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10740 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10741 | . : '\(.\)' 2>/dev/null || |
---|
10742 | echo X"$as_dir" | |
---|
10743 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10744 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10745 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10746 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10747 | s/.*/./; q'` |
---|
10748 | done |
---|
10749 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10750 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
10751 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
10752 | { (exit 1); exit 1; }; }; } |
---|
10753 | |
---|
10754 | ac_builddir=. |
---|
10755 | |
---|
10756 | if test "$ac_dir" != .; then |
---|
10757 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
10758 | # A "../" for each directory in $ac_dir_suffix. |
---|
10759 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
10760 | else |
---|
10761 | ac_dir_suffix= ac_top_builddir= |
---|
10762 | fi |
---|
10763 | |
---|
10764 | case $srcdir in |
---|
10765 | .) # No --srcdir option. We are building in place. |
---|
10766 | ac_srcdir=. |
---|
10767 | if test -z "$ac_top_builddir"; then |
---|
10768 | ac_top_srcdir=. |
---|
10769 | else |
---|
10770 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
10771 | fi ;; |
---|
10772 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
10773 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
10774 | ac_top_srcdir=$srcdir ;; |
---|
10775 | *) # Relative path. |
---|
10776 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
10777 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
10778 | esac |
---|
10779 | |
---|
10780 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
10781 | # the directories may not exist. |
---|
10782 | case `pwd` in |
---|
10783 | .) ac_abs_builddir="$ac_dir";; |
---|
10784 | *) |
---|
10785 | case "$ac_dir" in |
---|
10786 | .) ac_abs_builddir=`pwd`;; |
---|
10787 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
10788 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
10789 | esac;; |
---|
10790 | esac |
---|
10791 | case $ac_abs_builddir in |
---|
10792 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
10793 | *) |
---|
10794 | case ${ac_top_builddir}. in |
---|
10795 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
10796 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
10797 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
10798 | esac;; |
---|
10799 | esac |
---|
10800 | case $ac_abs_builddir in |
---|
10801 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
10802 | *) |
---|
10803 | case $ac_srcdir in |
---|
10804 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
10805 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
10806 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
10807 | esac;; |
---|
10808 | esac |
---|
10809 | case $ac_abs_builddir in |
---|
10810 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
10811 | *) |
---|
10812 | case $ac_top_srcdir in |
---|
10813 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
10814 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
10815 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
10816 | esac;; |
---|
10817 | esac |
---|
10818 | |
---|
10819 | |
---|
10820 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
10821 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
10822 | case $ac_dest in |
---|
10823 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
10824 | # Strip MF so we end up with the name of the file. |
---|
10825 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
10826 | # Check whether this is an Automake generated Makefile or not. |
---|
10827 | # We used to match only the files named `Makefile.in', but |
---|
10828 | # some people rename them; so instead we look at the file content. |
---|
10829 | # Grep'ing the first line is not enough: some people post-process |
---|
10830 | # each Makefile.in and add a new line on top of each file to say so. |
---|
10831 | # So let's grep whole file. |
---|
10832 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
10833 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
10834 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10835 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
10836 | X"$mf" : 'X\(//\)$' \| \ |
---|
10837 | X"$mf" : 'X\(/\)' \| \ |
---|
10838 | . : '\(.\)' 2>/dev/null || |
---|
10839 | echo X"$mf" | |
---|
10840 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10841 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10842 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10843 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10844 | s/.*/./; q'` |
---|
10845 | else |
---|
10846 | continue |
---|
10847 | fi |
---|
10848 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
10849 | # Extract the definition of DEP_FILES from the Makefile without |
---|
10850 | # running `make'. |
---|
10851 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
10852 | test -z "$DEPDIR" && continue |
---|
10853 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
10854 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
10855 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
10856 | # We invoke sed twice because it is the simplest approach to |
---|
10857 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
10858 | for file in `sed -n ' |
---|
10859 | /^DEP_FILES = .*\\\\$/ { |
---|
10860 | s/^DEP_FILES = // |
---|
10861 | :loop |
---|
10862 | s/\\\\$// |
---|
10863 | p |
---|
10864 | n |
---|
10865 | /\\\\$/ b loop |
---|
10866 | p |
---|
10867 | } |
---|
10868 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
10869 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
10870 | # Make sure the directory exists. |
---|
10871 | test -f "$dirpart/$file" && continue |
---|
10872 | fdir=`(dirname "$file") 2>/dev/null || |
---|
10873 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10874 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
10875 | X"$file" : 'X\(//\)$' \| \ |
---|
10876 | X"$file" : 'X\(/\)' \| \ |
---|
10877 | . : '\(.\)' 2>/dev/null || |
---|
10878 | echo X"$file" | |
---|
10879 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10880 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10881 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10882 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10883 | s/.*/./; q'` |
---|
10884 | { if $as_mkdir_p; then |
---|
10885 | mkdir -p $dirpart/$fdir |
---|
10886 | else |
---|
10887 | as_dir=$dirpart/$fdir |
---|
10888 | as_dirs= |
---|
10889 | while test ! -d "$as_dir"; do |
---|
10890 | as_dirs="$as_dir $as_dirs" |
---|
10891 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10892 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10893 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10894 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10895 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10896 | . : '\(.\)' 2>/dev/null || |
---|
10897 | echo X"$as_dir" | |
---|
10898 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10899 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10900 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10901 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10902 | s/.*/./; q'` |
---|
10903 | done |
---|
10904 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10905 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
10906 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
10907 | { (exit 1); exit 1; }; }; } |
---|
10908 | |
---|
10909 | # echo "creating $dirpart/$file" |
---|
10910 | echo '# dummy' > "$dirpart/$file" |
---|
10911 | done |
---|
10912 | done |
---|
10913 | ;; |
---|
10914 | esac |
---|
10915 | done |
---|
10916 | _ACEOF |
---|
10917 | |
---|
10918 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10919 | |
---|
10920 | { (exit 0); exit 0; } |
---|
10921 | _ACEOF |
---|
10922 | chmod +x $CONFIG_STATUS |
---|
10923 | ac_clean_files=$ac_clean_files_save |
---|
10924 | |
---|
10925 | |
---|
10926 | # configure is writing to config.log, and then calls config.status. |
---|
10927 | # config.status does its own redirection, appending to config.log. |
---|
10928 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
10929 | # by configure, so config.status won't be able to write to it; its |
---|
10930 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
10931 | # effectively closing config.log, so it can be properly (re)opened and |
---|
10932 | # appended to by config.status. When coming back to configure, we |
---|
10933 | # need to make the FD available again. |
---|
10934 | if test "$no_create" != yes; then |
---|
10935 | ac_cs_success=: |
---|
10936 | ac_config_status_args= |
---|
10937 | test "$silent" = yes && |
---|
10938 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
10939 | exec 5>/dev/null |
---|
10940 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
10941 | exec 5>>config.log |
---|
10942 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
10943 | # would make configure fail if this is the last instruction. |
---|
10944 | $ac_cs_success || { (exit 1); exit 1; } |
---|
10945 | fi |
---|
10946 | |
---|