1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for orxonox 0.1-pre-alpha. |
---|
4 | # |
---|
5 | # Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | ## --------------------- ## |
---|
11 | ## M4sh Initialization. ## |
---|
12 | ## --------------------- ## |
---|
13 | |
---|
14 | # Be Bourne compatible |
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
16 | emulate sh |
---|
17 | NULLCMD=: |
---|
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
19 | # is contrary to our usage. Disable this feature. |
---|
20 | alias -g '${1+"$@"}'='"$@"' |
---|
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
22 | set -o posix |
---|
23 | fi |
---|
24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
25 | |
---|
26 | # Support unset when possible. |
---|
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
28 | as_unset=unset |
---|
29 | else |
---|
30 | as_unset=false |
---|
31 | fi |
---|
32 | |
---|
33 | |
---|
34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
35 | $as_unset ENV MAIL MAILPATH |
---|
36 | PS1='$ ' |
---|
37 | PS2='> ' |
---|
38 | PS4='+ ' |
---|
39 | |
---|
40 | # NLS nuisances. |
---|
41 | for as_var in \ |
---|
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
44 | LC_TELEPHONE LC_TIME |
---|
45 | do |
---|
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
47 | eval $as_var=C; export $as_var |
---|
48 | else |
---|
49 | $as_unset $as_var |
---|
50 | fi |
---|
51 | done |
---|
52 | |
---|
53 | # Required to use basename. |
---|
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
55 | as_expr=expr |
---|
56 | else |
---|
57 | as_expr=false |
---|
58 | fi |
---|
59 | |
---|
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
61 | as_basename=basename |
---|
62 | else |
---|
63 | as_basename=false |
---|
64 | fi |
---|
65 | |
---|
66 | |
---|
67 | # Name of the executable. |
---|
68 | as_me=`$as_basename "$0" || |
---|
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
70 | X"$0" : 'X\(//\)$' \| \ |
---|
71 | X"$0" : 'X\(/\)$' \| \ |
---|
72 | . : '\(.\)' 2>/dev/null || |
---|
73 | echo X/"$0" | |
---|
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
77 | s/.*/./; q'` |
---|
78 | |
---|
79 | |
---|
80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
81 | # Avoid depending upon Character Ranges. |
---|
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
85 | as_cr_digits='0123456789' |
---|
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
87 | |
---|
88 | # The user is always right. |
---|
89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
90 | echo "#! /bin/sh" >conf$$.sh |
---|
91 | echo "exit 0" >>conf$$.sh |
---|
92 | chmod +x conf$$.sh |
---|
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
94 | PATH_SEPARATOR=';' |
---|
95 | else |
---|
96 | PATH_SEPARATOR=: |
---|
97 | fi |
---|
98 | rm -f conf$$.sh |
---|
99 | fi |
---|
100 | |
---|
101 | |
---|
102 | as_lineno_1=$LINENO |
---|
103 | as_lineno_2=$LINENO |
---|
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
107 | # Find who we are. Look in the path if we contain no path at all |
---|
108 | # relative or not. |
---|
109 | case $0 in |
---|
110 | *[\\/]* ) as_myself=$0 ;; |
---|
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
112 | for as_dir in $PATH |
---|
113 | do |
---|
114 | IFS=$as_save_IFS |
---|
115 | test -z "$as_dir" && as_dir=. |
---|
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
117 | done |
---|
118 | |
---|
119 | ;; |
---|
120 | esac |
---|
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
122 | # in which case we are not to be found in the path. |
---|
123 | if test "x$as_myself" = x; then |
---|
124 | as_myself=$0 |
---|
125 | fi |
---|
126 | if test ! -f "$as_myself"; then |
---|
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
128 | { (exit 1); exit 1; }; } |
---|
129 | fi |
---|
130 | case $CONFIG_SHELL in |
---|
131 | '') |
---|
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
134 | do |
---|
135 | IFS=$as_save_IFS |
---|
136 | test -z "$as_dir" && as_dir=. |
---|
137 | for as_base in sh bash ksh sh5; do |
---|
138 | case $as_dir in |
---|
139 | /*) |
---|
140 | if ("$as_dir/$as_base" -c ' |
---|
141 | as_lineno_1=$LINENO |
---|
142 | as_lineno_2=$LINENO |
---|
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
148 | CONFIG_SHELL=$as_dir/$as_base |
---|
149 | export CONFIG_SHELL |
---|
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
151 | fi;; |
---|
152 | esac |
---|
153 | done |
---|
154 | done |
---|
155 | ;; |
---|
156 | esac |
---|
157 | |
---|
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
160 | # line-number line before each line; the second 'sed' does the real |
---|
161 | # work. The second script uses 'N' to pair each line-number line |
---|
162 | # with the numbered line, and appends trailing '-' during |
---|
163 | # substitution so that $LINENO is not a special case at line end. |
---|
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
166 | sed '=' <$as_myself | |
---|
167 | sed ' |
---|
168 | N |
---|
169 | s,$,-, |
---|
170 | : loop |
---|
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
172 | t loop |
---|
173 | s,-$,, |
---|
174 | s,^['$as_cr_digits']*\n,, |
---|
175 | ' >$as_me.lineno && |
---|
176 | chmod +x $as_me.lineno || |
---|
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
178 | { (exit 1); exit 1; }; } |
---|
179 | |
---|
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
181 | # (the dirname of $[0] is not the place where we might find the |
---|
182 | # original and so on. Autoconf is especially sensible to this). |
---|
183 | . ./$as_me.lineno |
---|
184 | # Exit status is that of the last command. |
---|
185 | exit |
---|
186 | } |
---|
187 | |
---|
188 | |
---|
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
191 | ' ECHO_T=' ' ;; |
---|
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
194 | esac |
---|
195 | |
---|
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
197 | as_expr=expr |
---|
198 | else |
---|
199 | as_expr=false |
---|
200 | fi |
---|
201 | |
---|
202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
203 | echo >conf$$.file |
---|
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
207 | if test -f conf$$.exe; then |
---|
208 | # Don't use ln at all; we don't have any links |
---|
209 | as_ln_s='cp -p' |
---|
210 | else |
---|
211 | as_ln_s='ln -s' |
---|
212 | fi |
---|
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
214 | as_ln_s=ln |
---|
215 | else |
---|
216 | as_ln_s='cp -p' |
---|
217 | fi |
---|
218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
219 | |
---|
220 | if mkdir -p . 2>/dev/null; then |
---|
221 | as_mkdir_p=: |
---|
222 | else |
---|
223 | test -d ./-p && rmdir ./-p |
---|
224 | as_mkdir_p=false |
---|
225 | fi |
---|
226 | |
---|
227 | as_executable_p="test -f" |
---|
228 | |
---|
229 | # Sed expression to map a string onto a valid CPP name. |
---|
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
231 | |
---|
232 | # Sed expression to map a string onto a valid variable name. |
---|
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
234 | |
---|
235 | |
---|
236 | # IFS |
---|
237 | # We need space, tab and new line, in precisely that order. |
---|
238 | as_nl=' |
---|
239 | ' |
---|
240 | IFS=" $as_nl" |
---|
241 | |
---|
242 | # CDPATH. |
---|
243 | $as_unset CDPATH |
---|
244 | |
---|
245 | |
---|
246 | # Name of the host. |
---|
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
248 | # so uname gets run too. |
---|
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
250 | |
---|
251 | exec 6>&1 |
---|
252 | |
---|
253 | # |
---|
254 | # Initializations. |
---|
255 | # |
---|
256 | ac_default_prefix=/usr/local |
---|
257 | ac_config_libobj_dir=. |
---|
258 | cross_compiling=no |
---|
259 | subdirs= |
---|
260 | MFLAGS= |
---|
261 | MAKEFLAGS= |
---|
262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
263 | |
---|
264 | # Maximum number of lines to put in a shell here document. |
---|
265 | # This variable seems obsolete. It should probably be removed, and |
---|
266 | # only ac_max_sed_lines should be used. |
---|
267 | : ${ac_max_here_lines=38} |
---|
268 | |
---|
269 | # Identity of this package. |
---|
270 | PACKAGE_NAME='orxonox' |
---|
271 | PACKAGE_TARNAME='orxonox' |
---|
272 | PACKAGE_VERSION='0.1-pre-alpha' |
---|
273 | PACKAGE_STRING='orxonox 0.1-pre-alpha' |
---|
274 | PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch' |
---|
275 | |
---|
276 | ac_unique_file="." |
---|
277 | # Factoring default headers for most tests. |
---|
278 | ac_includes_default="\ |
---|
279 | #include <stdio.h> |
---|
280 | #if HAVE_SYS_TYPES_H |
---|
281 | # include <sys/types.h> |
---|
282 | #endif |
---|
283 | #if HAVE_SYS_STAT_H |
---|
284 | # include <sys/stat.h> |
---|
285 | #endif |
---|
286 | #if STDC_HEADERS |
---|
287 | # include <stdlib.h> |
---|
288 | # include <stddef.h> |
---|
289 | #else |
---|
290 | # if HAVE_STDLIB_H |
---|
291 | # include <stdlib.h> |
---|
292 | # endif |
---|
293 | #endif |
---|
294 | #if HAVE_STRING_H |
---|
295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
296 | # include <memory.h> |
---|
297 | # endif |
---|
298 | # include <string.h> |
---|
299 | #endif |
---|
300 | #if HAVE_STRINGS_H |
---|
301 | # include <strings.h> |
---|
302 | #endif |
---|
303 | #if HAVE_INTTYPES_H |
---|
304 | # include <inttypes.h> |
---|
305 | #else |
---|
306 | # if HAVE_STDINT_H |
---|
307 | # include <stdint.h> |
---|
308 | # endif |
---|
309 | #endif |
---|
310 | #if HAVE_UNISTD_H |
---|
311 | # include <unistd.h> |
---|
312 | #endif" |
---|
313 | |
---|
314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_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.1-pre-alpha to adapt to many kinds of systems. |
---|
792 | |
---|
793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
794 | |
---|
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
797 | |
---|
798 | Defaults for the options are specified in brackets. |
---|
799 | |
---|
800 | Configuration: |
---|
801 | -h, --help display this help and exit |
---|
802 | --help=short display options specific to this package |
---|
803 | --help=recursive display the short help of all the included packages |
---|
804 | -V, --version display version information and exit |
---|
805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
808 | -n, --no-create do not create output files |
---|
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
810 | |
---|
811 | _ACEOF |
---|
812 | |
---|
813 | cat <<_ACEOF |
---|
814 | Installation directories: |
---|
815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
816 | [$ac_default_prefix] |
---|
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
818 | [PREFIX] |
---|
819 | |
---|
820 | By default, \`make install' will install all the files in |
---|
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
823 | for instance \`--prefix=\$HOME'. |
---|
824 | |
---|
825 | For better control, use the options below. |
---|
826 | |
---|
827 | Fine tuning of the installation directories: |
---|
828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
836 | --includedir=DIR C header files [PREFIX/include] |
---|
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
838 | --infodir=DIR info documentation [PREFIX/info] |
---|
839 | --mandir=DIR man documentation [PREFIX/man] |
---|
840 | _ACEOF |
---|
841 | |
---|
842 | cat <<\_ACEOF |
---|
843 | |
---|
844 | Program names: |
---|
845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
848 | |
---|
849 | System types: |
---|
850 | --build=BUILD configure for building on BUILD [guessed] |
---|
851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
852 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
853 | _ACEOF |
---|
854 | fi |
---|
855 | |
---|
856 | if test -n "$ac_init_help"; then |
---|
857 | case $ac_init_help in |
---|
858 | short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";; |
---|
859 | esac |
---|
860 | cat <<\_ACEOF |
---|
861 | |
---|
862 | Optional Features: |
---|
863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
865 | --disable-dependency-tracking speeds up one-time build |
---|
866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
867 | --enable-debug compiles GTK in debug mode. Lots of Debug info about |
---|
868 | the game |
---|
869 | |
---|
870 | Optional Packages: |
---|
871 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
872 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
873 | --without-gtk Prevents GTK from being loaded |
---|
874 | --without-sdl-image Prevents SDL_image from being loaded |
---|
875 | |
---|
876 | Some influential environment variables: |
---|
877 | CXX C++ compiler command |
---|
878 | CXXFLAGS C++ compiler flags |
---|
879 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
880 | nonstandard directory <lib dir> |
---|
881 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
882 | headers in a nonstandard directory <include dir> |
---|
883 | CC C compiler command |
---|
884 | CFLAGS C compiler flags |
---|
885 | CPP C preprocessor |
---|
886 | |
---|
887 | Use these variables to override the choices made by `configure' or to help |
---|
888 | it to find libraries and programs with nonstandard names/locations. |
---|
889 | |
---|
890 | Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
891 | _ACEOF |
---|
892 | fi |
---|
893 | |
---|
894 | if test "$ac_init_help" = "recursive"; then |
---|
895 | # If there are subdirs, report their specific --help. |
---|
896 | ac_popdir=`pwd` |
---|
897 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
898 | test -d $ac_dir || continue |
---|
899 | ac_builddir=. |
---|
900 | |
---|
901 | if test "$ac_dir" != .; then |
---|
902 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
903 | # A "../" for each directory in $ac_dir_suffix. |
---|
904 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
905 | else |
---|
906 | ac_dir_suffix= ac_top_builddir= |
---|
907 | fi |
---|
908 | |
---|
909 | case $srcdir in |
---|
910 | .) # No --srcdir option. We are building in place. |
---|
911 | ac_srcdir=. |
---|
912 | if test -z "$ac_top_builddir"; then |
---|
913 | ac_top_srcdir=. |
---|
914 | else |
---|
915 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
916 | fi ;; |
---|
917 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
918 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
919 | ac_top_srcdir=$srcdir ;; |
---|
920 | *) # Relative path. |
---|
921 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
922 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
923 | esac |
---|
924 | |
---|
925 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
926 | # the directories may not exist. |
---|
927 | case `pwd` in |
---|
928 | .) ac_abs_builddir="$ac_dir";; |
---|
929 | *) |
---|
930 | case "$ac_dir" in |
---|
931 | .) ac_abs_builddir=`pwd`;; |
---|
932 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
933 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
934 | esac;; |
---|
935 | esac |
---|
936 | case $ac_abs_builddir in |
---|
937 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
938 | *) |
---|
939 | case ${ac_top_builddir}. in |
---|
940 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
941 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
942 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
943 | esac;; |
---|
944 | esac |
---|
945 | case $ac_abs_builddir in |
---|
946 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
947 | *) |
---|
948 | case $ac_srcdir in |
---|
949 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
950 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
951 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
952 | esac;; |
---|
953 | esac |
---|
954 | case $ac_abs_builddir in |
---|
955 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
956 | *) |
---|
957 | case $ac_top_srcdir in |
---|
958 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
959 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
960 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
961 | esac;; |
---|
962 | esac |
---|
963 | |
---|
964 | cd $ac_dir |
---|
965 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
966 | if test -f $ac_srcdir/configure.gnu; then |
---|
967 | echo |
---|
968 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
969 | elif test -f $ac_srcdir/configure; then |
---|
970 | echo |
---|
971 | $SHELL $ac_srcdir/configure --help=recursive |
---|
972 | elif test -f $ac_srcdir/configure.ac || |
---|
973 | test -f $ac_srcdir/configure.in; then |
---|
974 | echo |
---|
975 | $ac_configure --help |
---|
976 | else |
---|
977 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
978 | fi |
---|
979 | cd $ac_popdir |
---|
980 | done |
---|
981 | fi |
---|
982 | |
---|
983 | test -n "$ac_init_help" && exit 0 |
---|
984 | if $ac_init_version; then |
---|
985 | cat <<\_ACEOF |
---|
986 | orxonox configure 0.1-pre-alpha |
---|
987 | generated by GNU Autoconf 2.59 |
---|
988 | |
---|
989 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
990 | This configure script is free software; the Free Software Foundation |
---|
991 | gives unlimited permission to copy, distribute and modify it. |
---|
992 | _ACEOF |
---|
993 | exit 0 |
---|
994 | fi |
---|
995 | exec 5>config.log |
---|
996 | cat >&5 <<_ACEOF |
---|
997 | This file contains any messages produced by compilers while |
---|
998 | running configure, to aid debugging if configure makes a mistake. |
---|
999 | |
---|
1000 | It was created by orxonox $as_me 0.1-pre-alpha, which was |
---|
1001 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1002 | |
---|
1003 | $ $0 $@ |
---|
1004 | |
---|
1005 | _ACEOF |
---|
1006 | { |
---|
1007 | cat <<_ASUNAME |
---|
1008 | ## --------- ## |
---|
1009 | ## Platform. ## |
---|
1010 | ## --------- ## |
---|
1011 | |
---|
1012 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1013 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1014 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1015 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1016 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1017 | |
---|
1018 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1019 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1020 | |
---|
1021 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1022 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1023 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1024 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1025 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1026 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1027 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1028 | |
---|
1029 | _ASUNAME |
---|
1030 | |
---|
1031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1032 | for as_dir in $PATH |
---|
1033 | do |
---|
1034 | IFS=$as_save_IFS |
---|
1035 | test -z "$as_dir" && as_dir=. |
---|
1036 | echo "PATH: $as_dir" |
---|
1037 | done |
---|
1038 | |
---|
1039 | } >&5 |
---|
1040 | |
---|
1041 | cat >&5 <<_ACEOF |
---|
1042 | |
---|
1043 | |
---|
1044 | ## ----------- ## |
---|
1045 | ## Core tests. ## |
---|
1046 | ## ----------- ## |
---|
1047 | |
---|
1048 | _ACEOF |
---|
1049 | |
---|
1050 | |
---|
1051 | # Keep a trace of the command line. |
---|
1052 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1053 | # Strip out --silent because we don't want to record it for future runs. |
---|
1054 | # Also quote any args containing shell meta-characters. |
---|
1055 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1056 | ac_configure_args= |
---|
1057 | ac_configure_args0= |
---|
1058 | ac_configure_args1= |
---|
1059 | ac_sep= |
---|
1060 | ac_must_keep_next=false |
---|
1061 | for ac_pass in 1 2 |
---|
1062 | do |
---|
1063 | for ac_arg |
---|
1064 | do |
---|
1065 | case $ac_arg in |
---|
1066 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1067 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1068 | | -silent | --silent | --silen | --sile | --sil) |
---|
1069 | continue ;; |
---|
1070 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1071 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1072 | esac |
---|
1073 | case $ac_pass in |
---|
1074 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1075 | 2) |
---|
1076 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1077 | if test $ac_must_keep_next = true; then |
---|
1078 | ac_must_keep_next=false # Got value, back to normal. |
---|
1079 | else |
---|
1080 | case $ac_arg in |
---|
1081 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1082 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1083 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1084 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1085 | case "$ac_configure_args0 " in |
---|
1086 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1087 | esac |
---|
1088 | ;; |
---|
1089 | -* ) ac_must_keep_next=true ;; |
---|
1090 | esac |
---|
1091 | fi |
---|
1092 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1093 | # Get rid of the leading space. |
---|
1094 | ac_sep=" " |
---|
1095 | ;; |
---|
1096 | esac |
---|
1097 | done |
---|
1098 | done |
---|
1099 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1100 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1101 | |
---|
1102 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1103 | # config.log. We remove comments because anyway the quotes in there |
---|
1104 | # would cause problems or look ugly. |
---|
1105 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1106 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1107 | trap 'exit_status=$? |
---|
1108 | # Save into config.log some information that might help in debugging. |
---|
1109 | { |
---|
1110 | echo |
---|
1111 | |
---|
1112 | cat <<\_ASBOX |
---|
1113 | ## ---------------- ## |
---|
1114 | ## Cache variables. ## |
---|
1115 | ## ---------------- ## |
---|
1116 | _ASBOX |
---|
1117 | echo |
---|
1118 | # The following way of writing the cache mishandles newlines in values, |
---|
1119 | { |
---|
1120 | (set) 2>&1 | |
---|
1121 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1122 | *ac_space=\ *) |
---|
1123 | sed -n \ |
---|
1124 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1125 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1126 | ;; |
---|
1127 | *) |
---|
1128 | sed -n \ |
---|
1129 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1130 | ;; |
---|
1131 | esac; |
---|
1132 | } |
---|
1133 | echo |
---|
1134 | |
---|
1135 | cat <<\_ASBOX |
---|
1136 | ## ----------------- ## |
---|
1137 | ## Output variables. ## |
---|
1138 | ## ----------------- ## |
---|
1139 | _ASBOX |
---|
1140 | echo |
---|
1141 | for ac_var in $ac_subst_vars |
---|
1142 | do |
---|
1143 | eval ac_val=$`echo $ac_var` |
---|
1144 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1145 | done | sort |
---|
1146 | echo |
---|
1147 | |
---|
1148 | if test -n "$ac_subst_files"; then |
---|
1149 | cat <<\_ASBOX |
---|
1150 | ## ------------- ## |
---|
1151 | ## Output files. ## |
---|
1152 | ## ------------- ## |
---|
1153 | _ASBOX |
---|
1154 | echo |
---|
1155 | for ac_var in $ac_subst_files |
---|
1156 | do |
---|
1157 | eval ac_val=$`echo $ac_var` |
---|
1158 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1159 | done | sort |
---|
1160 | echo |
---|
1161 | fi |
---|
1162 | |
---|
1163 | if test -s confdefs.h; then |
---|
1164 | cat <<\_ASBOX |
---|
1165 | ## ----------- ## |
---|
1166 | ## confdefs.h. ## |
---|
1167 | ## ----------- ## |
---|
1168 | _ASBOX |
---|
1169 | echo |
---|
1170 | sed "/^$/d" confdefs.h | sort |
---|
1171 | echo |
---|
1172 | fi |
---|
1173 | test "$ac_signal" != 0 && |
---|
1174 | echo "$as_me: caught signal $ac_signal" |
---|
1175 | echo "$as_me: exit $exit_status" |
---|
1176 | } >&5 |
---|
1177 | rm -f core *.core && |
---|
1178 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1179 | exit $exit_status |
---|
1180 | ' 0 |
---|
1181 | for ac_signal in 1 2 13 15; do |
---|
1182 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1183 | done |
---|
1184 | ac_signal=0 |
---|
1185 | |
---|
1186 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1187 | rm -rf conftest* confdefs.h |
---|
1188 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1189 | echo >confdefs.h |
---|
1190 | |
---|
1191 | # Predefined preprocessor variables. |
---|
1192 | |
---|
1193 | cat >>confdefs.h <<_ACEOF |
---|
1194 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1195 | _ACEOF |
---|
1196 | |
---|
1197 | |
---|
1198 | cat >>confdefs.h <<_ACEOF |
---|
1199 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1200 | _ACEOF |
---|
1201 | |
---|
1202 | |
---|
1203 | cat >>confdefs.h <<_ACEOF |
---|
1204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1205 | _ACEOF |
---|
1206 | |
---|
1207 | |
---|
1208 | cat >>confdefs.h <<_ACEOF |
---|
1209 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1210 | _ACEOF |
---|
1211 | |
---|
1212 | |
---|
1213 | cat >>confdefs.h <<_ACEOF |
---|
1214 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1215 | _ACEOF |
---|
1216 | |
---|
1217 | |
---|
1218 | # Let the site file select an alternate cache file if it wants to. |
---|
1219 | # Prefer explicitly selected file to automatically selected ones. |
---|
1220 | if test -z "$CONFIG_SITE"; then |
---|
1221 | if test "x$prefix" != xNONE; then |
---|
1222 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1223 | else |
---|
1224 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1225 | fi |
---|
1226 | fi |
---|
1227 | for ac_site_file in $CONFIG_SITE; do |
---|
1228 | if test -r "$ac_site_file"; then |
---|
1229 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1230 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1231 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1232 | . "$ac_site_file" |
---|
1233 | fi |
---|
1234 | done |
---|
1235 | |
---|
1236 | if test -r "$cache_file"; then |
---|
1237 | # Some versions of bash will fail to source /dev/null (special |
---|
1238 | # files actually), so we avoid doing that. |
---|
1239 | if test -f "$cache_file"; then |
---|
1240 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1241 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1242 | case $cache_file in |
---|
1243 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1244 | *) . ./$cache_file;; |
---|
1245 | esac |
---|
1246 | fi |
---|
1247 | else |
---|
1248 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1249 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1250 | >$cache_file |
---|
1251 | fi |
---|
1252 | |
---|
1253 | # Check that the precious variables saved in the cache have kept the same |
---|
1254 | # value. |
---|
1255 | ac_cache_corrupted=false |
---|
1256 | for ac_var in `(set) 2>&1 | |
---|
1257 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1258 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1259 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1260 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1261 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1262 | case $ac_old_set,$ac_new_set in |
---|
1263 | set,) |
---|
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1265 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1266 | ac_cache_corrupted=: ;; |
---|
1267 | ,set) |
---|
1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1269 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1270 | ac_cache_corrupted=: ;; |
---|
1271 | ,);; |
---|
1272 | *) |
---|
1273 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1274 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1275 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1276 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1277 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1278 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1279 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1280 | ac_cache_corrupted=: |
---|
1281 | fi;; |
---|
1282 | esac |
---|
1283 | # Pass precious variables to config.status. |
---|
1284 | if test "$ac_new_set" = set; then |
---|
1285 | case $ac_new_val in |
---|
1286 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1287 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1288 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1289 | esac |
---|
1290 | case " $ac_configure_args " in |
---|
1291 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1292 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1293 | esac |
---|
1294 | fi |
---|
1295 | done |
---|
1296 | if $ac_cache_corrupted; then |
---|
1297 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1298 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1299 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1300 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1301 | { (exit 1); exit 1; }; } |
---|
1302 | fi |
---|
1303 | |
---|
1304 | ac_ext=c |
---|
1305 | ac_cpp='$CPP $CPPFLAGS' |
---|
1306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1309 | |
---|
1310 | |
---|
1311 | |
---|
1312 | |
---|
1313 | |
---|
1314 | |
---|
1315 | |
---|
1316 | |
---|
1317 | |
---|
1318 | |
---|
1319 | |
---|
1320 | |
---|
1321 | |
---|
1322 | |
---|
1323 | |
---|
1324 | |
---|
1325 | |
---|
1326 | |
---|
1327 | |
---|
1328 | |
---|
1329 | |
---|
1330 | |
---|
1331 | |
---|
1332 | |
---|
1333 | |
---|
1334 | |
---|
1335 | |
---|
1336 | |
---|
1337 | # Detect the canonical host and target build environment. |
---|
1338 | ac_aux_dir= |
---|
1339 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1340 | if test -f $ac_dir/install-sh; then |
---|
1341 | ac_aux_dir=$ac_dir |
---|
1342 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1343 | break |
---|
1344 | elif test -f $ac_dir/install.sh; then |
---|
1345 | ac_aux_dir=$ac_dir |
---|
1346 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1347 | break |
---|
1348 | elif test -f $ac_dir/shtool; then |
---|
1349 | ac_aux_dir=$ac_dir |
---|
1350 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1351 | break |
---|
1352 | fi |
---|
1353 | done |
---|
1354 | if test -z "$ac_aux_dir"; then |
---|
1355 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1356 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1357 | { (exit 1); exit 1; }; } |
---|
1358 | fi |
---|
1359 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1360 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1361 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1362 | |
---|
1363 | # Make sure we can run config.sub. |
---|
1364 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1365 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1366 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1367 | { (exit 1); exit 1; }; } |
---|
1368 | |
---|
1369 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1370 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1371 | if test "${ac_cv_build+set}" = set; then |
---|
1372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1373 | else |
---|
1374 | ac_cv_build_alias=$build_alias |
---|
1375 | test -z "$ac_cv_build_alias" && |
---|
1376 | ac_cv_build_alias=`$ac_config_guess` |
---|
1377 | test -z "$ac_cv_build_alias" && |
---|
1378 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1379 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1380 | { (exit 1); exit 1; }; } |
---|
1381 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1382 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1383 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1384 | { (exit 1); exit 1; }; } |
---|
1385 | |
---|
1386 | fi |
---|
1387 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1388 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1389 | build=$ac_cv_build |
---|
1390 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1391 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1392 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1393 | |
---|
1394 | |
---|
1395 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1396 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1397 | if test "${ac_cv_host+set}" = set; then |
---|
1398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1399 | else |
---|
1400 | ac_cv_host_alias=$host_alias |
---|
1401 | test -z "$ac_cv_host_alias" && |
---|
1402 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1403 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1404 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1405 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1406 | { (exit 1); exit 1; }; } |
---|
1407 | |
---|
1408 | fi |
---|
1409 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1410 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1411 | host=$ac_cv_host |
---|
1412 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1413 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1414 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1415 | |
---|
1416 | |
---|
1417 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1418 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1419 | if test "${ac_cv_target+set}" = set; then |
---|
1420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1421 | else |
---|
1422 | ac_cv_target_alias=$target_alias |
---|
1423 | test "x$ac_cv_target_alias" = "x" && |
---|
1424 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1425 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1426 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1427 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1428 | { (exit 1); exit 1; }; } |
---|
1429 | |
---|
1430 | fi |
---|
1431 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1432 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1433 | target=$ac_cv_target |
---|
1434 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1435 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1436 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1437 | |
---|
1438 | |
---|
1439 | # The aliases save the names the user supplied, while $host etc. |
---|
1440 | # will get canonicalized. |
---|
1441 | test -n "$target_alias" && |
---|
1442 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1443 | NONENONEs,x,x, && |
---|
1444 | program_prefix=${target_alias}- |
---|
1445 | |
---|
1446 | |
---|
1447 | am__api_version="1.8" |
---|
1448 | # Find a good install program. We prefer a C program (faster), |
---|
1449 | # so one script is as good as another. But avoid the broken or |
---|
1450 | # incompatible versions: |
---|
1451 | # SysV /etc/install, /usr/sbin/install |
---|
1452 | # SunOS /usr/etc/install |
---|
1453 | # IRIX /sbin/install |
---|
1454 | # AIX /bin/install |
---|
1455 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1456 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1457 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1458 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1459 | # OS/2's system install, which has a completely different semantic |
---|
1460 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1461 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1462 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1463 | if test -z "$INSTALL"; then |
---|
1464 | if test "${ac_cv_path_install+set}" = set; then |
---|
1465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1466 | else |
---|
1467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1468 | for as_dir in $PATH |
---|
1469 | do |
---|
1470 | IFS=$as_save_IFS |
---|
1471 | test -z "$as_dir" && as_dir=. |
---|
1472 | # Account for people who put trailing slashes in PATH elements. |
---|
1473 | case $as_dir/ in |
---|
1474 | ./ | .// | /cC/* | \ |
---|
1475 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1476 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1477 | /usr/ucb/* ) ;; |
---|
1478 | *) |
---|
1479 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1480 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1481 | # by default. |
---|
1482 | for ac_prog in ginstall scoinst install; do |
---|
1483 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1484 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1485 | if test $ac_prog = install && |
---|
1486 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1487 | # AIX install. It has an incompatible calling convention. |
---|
1488 | : |
---|
1489 | elif test $ac_prog = install && |
---|
1490 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1491 | # program-specific install script used by HP pwplus--don't use. |
---|
1492 | : |
---|
1493 | else |
---|
1494 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1495 | break 3 |
---|
1496 | fi |
---|
1497 | fi |
---|
1498 | done |
---|
1499 | done |
---|
1500 | ;; |
---|
1501 | esac |
---|
1502 | done |
---|
1503 | |
---|
1504 | |
---|
1505 | fi |
---|
1506 | if test "${ac_cv_path_install+set}" = set; then |
---|
1507 | INSTALL=$ac_cv_path_install |
---|
1508 | else |
---|
1509 | # As a last resort, use the slow shell script. We don't cache a |
---|
1510 | # path for INSTALL within a source directory, because that will |
---|
1511 | # break other packages using the cache if that directory is |
---|
1512 | # removed, or if the path is relative. |
---|
1513 | INSTALL=$ac_install_sh |
---|
1514 | fi |
---|
1515 | fi |
---|
1516 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1517 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1518 | |
---|
1519 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1520 | # It thinks the first close brace ends the variable substitution. |
---|
1521 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1522 | |
---|
1523 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1524 | |
---|
1525 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1526 | |
---|
1527 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1528 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1529 | # Just in case |
---|
1530 | sleep 1 |
---|
1531 | echo timestamp > conftest.file |
---|
1532 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1533 | # arguments. Must try -L first in case configure is actually a |
---|
1534 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1535 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1536 | # directory). |
---|
1537 | if ( |
---|
1538 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1539 | if test "$*" = "X"; then |
---|
1540 | # -L didn't work. |
---|
1541 | set X `ls -t $srcdir/configure conftest.file` |
---|
1542 | fi |
---|
1543 | rm -f conftest.file |
---|
1544 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1545 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1546 | |
---|
1547 | # If neither matched, then we have a broken ls. This can happen |
---|
1548 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1549 | # broken ls alias from the environment. This has actually |
---|
1550 | # happened. Such a system could not be considered "sane". |
---|
1551 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1552 | alias in your environment" >&5 |
---|
1553 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1554 | alias in your environment" >&2;} |
---|
1555 | { (exit 1); exit 1; }; } |
---|
1556 | fi |
---|
1557 | |
---|
1558 | test "$2" = conftest.file |
---|
1559 | ) |
---|
1560 | then |
---|
1561 | # Ok. |
---|
1562 | : |
---|
1563 | else |
---|
1564 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1565 | Check your system clock" >&5 |
---|
1566 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1567 | Check your system clock" >&2;} |
---|
1568 | { (exit 1); exit 1; }; } |
---|
1569 | fi |
---|
1570 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1571 | echo "${ECHO_T}yes" >&6 |
---|
1572 | test "$program_prefix" != NONE && |
---|
1573 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1574 | # Use a double $ so make ignores it. |
---|
1575 | test "$program_suffix" != NONE && |
---|
1576 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1577 | # Double any \ or $. echo might interpret backslashes. |
---|
1578 | # By default was `s,x,x', remove it if useless. |
---|
1579 | cat <<\_ACEOF >conftest.sed |
---|
1580 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1581 | _ACEOF |
---|
1582 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1583 | rm conftest.sed |
---|
1584 | |
---|
1585 | # expand $ac_aux_dir to an absolute path |
---|
1586 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1587 | |
---|
1588 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1589 | # Use eval to expand $SHELL |
---|
1590 | if eval "$MISSING --run true"; then |
---|
1591 | am_missing_run="$MISSING --run " |
---|
1592 | else |
---|
1593 | am_missing_run= |
---|
1594 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1595 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1596 | fi |
---|
1597 | |
---|
1598 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1599 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
1600 | # argument. Indeed, we sometimes output rules like |
---|
1601 | # $(mkdir_p) $(somedir) |
---|
1602 | # where $(somedir) is conditionally defined. |
---|
1603 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
1604 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
1605 | mkdir_p='mkdir -p -- .' |
---|
1606 | else |
---|
1607 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1608 | # recognize any option. It will interpret all options as |
---|
1609 | # directories to create, and then abort because `.' already |
---|
1610 | # exists. |
---|
1611 | for d in ./-p ./--version; |
---|
1612 | do |
---|
1613 | test -d $d && rmdir $d |
---|
1614 | done |
---|
1615 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1616 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1617 | mkdir_p='$(mkinstalldirs)' |
---|
1618 | else |
---|
1619 | mkdir_p='$(install_sh) -d' |
---|
1620 | fi |
---|
1621 | fi |
---|
1622 | |
---|
1623 | for ac_prog in gawk mawk nawk awk |
---|
1624 | do |
---|
1625 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1626 | set dummy $ac_prog; ac_word=$2 |
---|
1627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1629 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1631 | else |
---|
1632 | if test -n "$AWK"; then |
---|
1633 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1634 | else |
---|
1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1636 | for as_dir in $PATH |
---|
1637 | do |
---|
1638 | IFS=$as_save_IFS |
---|
1639 | test -z "$as_dir" && as_dir=. |
---|
1640 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1642 | ac_cv_prog_AWK="$ac_prog" |
---|
1643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1644 | break 2 |
---|
1645 | fi |
---|
1646 | done |
---|
1647 | done |
---|
1648 | |
---|
1649 | fi |
---|
1650 | fi |
---|
1651 | AWK=$ac_cv_prog_AWK |
---|
1652 | if test -n "$AWK"; then |
---|
1653 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1654 | echo "${ECHO_T}$AWK" >&6 |
---|
1655 | else |
---|
1656 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1657 | echo "${ECHO_T}no" >&6 |
---|
1658 | fi |
---|
1659 | |
---|
1660 | test -n "$AWK" && break |
---|
1661 | done |
---|
1662 | |
---|
1663 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1664 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1665 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1666 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1668 | else |
---|
1669 | cat >conftest.make <<\_ACEOF |
---|
1670 | all: |
---|
1671 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1672 | _ACEOF |
---|
1673 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1674 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1675 | if test -n "$ac_maketemp"; then |
---|
1676 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1677 | else |
---|
1678 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1679 | fi |
---|
1680 | rm -f conftest.make |
---|
1681 | fi |
---|
1682 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1683 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1684 | echo "${ECHO_T}yes" >&6 |
---|
1685 | SET_MAKE= |
---|
1686 | else |
---|
1687 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1688 | echo "${ECHO_T}no" >&6 |
---|
1689 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1690 | fi |
---|
1691 | |
---|
1692 | rm -rf .tst 2>/dev/null |
---|
1693 | mkdir .tst 2>/dev/null |
---|
1694 | if test -d .tst; then |
---|
1695 | am__leading_dot=. |
---|
1696 | else |
---|
1697 | am__leading_dot=_ |
---|
1698 | fi |
---|
1699 | rmdir .tst 2>/dev/null |
---|
1700 | |
---|
1701 | # test to see if srcdir already configured |
---|
1702 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1703 | test -f $srcdir/config.status; then |
---|
1704 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1705 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1706 | { (exit 1); exit 1; }; } |
---|
1707 | fi |
---|
1708 | |
---|
1709 | # test whether we have cygpath |
---|
1710 | if test -z "$CYGPATH_W"; then |
---|
1711 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1712 | CYGPATH_W='cygpath -w' |
---|
1713 | else |
---|
1714 | CYGPATH_W=echo |
---|
1715 | fi |
---|
1716 | fi |
---|
1717 | |
---|
1718 | |
---|
1719 | # Define the identity of the package. |
---|
1720 | PACKAGE='orxonox' |
---|
1721 | VERSION='0.1-pre-alpha' |
---|
1722 | |
---|
1723 | |
---|
1724 | cat >>confdefs.h <<_ACEOF |
---|
1725 | #define PACKAGE "$PACKAGE" |
---|
1726 | _ACEOF |
---|
1727 | |
---|
1728 | |
---|
1729 | cat >>confdefs.h <<_ACEOF |
---|
1730 | #define VERSION "$VERSION" |
---|
1731 | _ACEOF |
---|
1732 | |
---|
1733 | # Some tools Automake needs. |
---|
1734 | |
---|
1735 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1736 | |
---|
1737 | |
---|
1738 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1739 | |
---|
1740 | |
---|
1741 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1742 | |
---|
1743 | |
---|
1744 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1745 | |
---|
1746 | |
---|
1747 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1748 | |
---|
1749 | |
---|
1750 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1751 | |
---|
1752 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1753 | |
---|
1754 | # Installed binaries are usually stripped using `strip' when the user |
---|
1755 | # run `make install-strip'. However `strip' might not be the right |
---|
1756 | # tool to use in cross-compilation environments, therefore Automake |
---|
1757 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1758 | if test "$cross_compiling" != no; then |
---|
1759 | if test -n "$ac_tool_prefix"; then |
---|
1760 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1761 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1762 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1764 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1766 | else |
---|
1767 | if test -n "$STRIP"; then |
---|
1768 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1769 | else |
---|
1770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1771 | for as_dir in $PATH |
---|
1772 | do |
---|
1773 | IFS=$as_save_IFS |
---|
1774 | test -z "$as_dir" && as_dir=. |
---|
1775 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1776 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1777 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1779 | break 2 |
---|
1780 | fi |
---|
1781 | done |
---|
1782 | done |
---|
1783 | |
---|
1784 | fi |
---|
1785 | fi |
---|
1786 | STRIP=$ac_cv_prog_STRIP |
---|
1787 | if test -n "$STRIP"; then |
---|
1788 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1789 | echo "${ECHO_T}$STRIP" >&6 |
---|
1790 | else |
---|
1791 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1792 | echo "${ECHO_T}no" >&6 |
---|
1793 | fi |
---|
1794 | |
---|
1795 | fi |
---|
1796 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1797 | ac_ct_STRIP=$STRIP |
---|
1798 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1799 | set dummy strip; ac_word=$2 |
---|
1800 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1801 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1802 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1804 | else |
---|
1805 | if test -n "$ac_ct_STRIP"; then |
---|
1806 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1807 | else |
---|
1808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1809 | for as_dir in $PATH |
---|
1810 | do |
---|
1811 | IFS=$as_save_IFS |
---|
1812 | test -z "$as_dir" && as_dir=. |
---|
1813 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1814 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1815 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1816 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1817 | break 2 |
---|
1818 | fi |
---|
1819 | done |
---|
1820 | done |
---|
1821 | |
---|
1822 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1823 | fi |
---|
1824 | fi |
---|
1825 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1826 | if test -n "$ac_ct_STRIP"; then |
---|
1827 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1828 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1829 | else |
---|
1830 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1831 | echo "${ECHO_T}no" >&6 |
---|
1832 | fi |
---|
1833 | |
---|
1834 | STRIP=$ac_ct_STRIP |
---|
1835 | else |
---|
1836 | STRIP="$ac_cv_prog_STRIP" |
---|
1837 | fi |
---|
1838 | |
---|
1839 | fi |
---|
1840 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1841 | |
---|
1842 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1843 | # some platforms. |
---|
1844 | |
---|
1845 | |
---|
1846 | |
---|
1847 | |
---|
1848 | |
---|
1849 | ac_config_headers="$ac_config_headers config.h" |
---|
1850 | |
---|
1851 | |
---|
1852 | |
---|
1853 | # Checks for programs. |
---|
1854 | ac_ext=cc |
---|
1855 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1856 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1857 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1858 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1859 | if test -n "$ac_tool_prefix"; then |
---|
1860 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1861 | do |
---|
1862 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1863 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1866 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1868 | else |
---|
1869 | if test -n "$CXX"; then |
---|
1870 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1871 | else |
---|
1872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1873 | for as_dir in $PATH |
---|
1874 | do |
---|
1875 | IFS=$as_save_IFS |
---|
1876 | test -z "$as_dir" && as_dir=. |
---|
1877 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1878 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1879 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1881 | break 2 |
---|
1882 | fi |
---|
1883 | done |
---|
1884 | done |
---|
1885 | |
---|
1886 | fi |
---|
1887 | fi |
---|
1888 | CXX=$ac_cv_prog_CXX |
---|
1889 | if test -n "$CXX"; then |
---|
1890 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1891 | echo "${ECHO_T}$CXX" >&6 |
---|
1892 | else |
---|
1893 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1894 | echo "${ECHO_T}no" >&6 |
---|
1895 | fi |
---|
1896 | |
---|
1897 | test -n "$CXX" && break |
---|
1898 | done |
---|
1899 | fi |
---|
1900 | if test -z "$CXX"; then |
---|
1901 | ac_ct_CXX=$CXX |
---|
1902 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1903 | do |
---|
1904 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1905 | set dummy $ac_prog; ac_word=$2 |
---|
1906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1908 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1910 | else |
---|
1911 | if test -n "$ac_ct_CXX"; then |
---|
1912 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1913 | else |
---|
1914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1915 | for as_dir in $PATH |
---|
1916 | do |
---|
1917 | IFS=$as_save_IFS |
---|
1918 | test -z "$as_dir" && as_dir=. |
---|
1919 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1920 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1921 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1923 | break 2 |
---|
1924 | fi |
---|
1925 | done |
---|
1926 | done |
---|
1927 | |
---|
1928 | fi |
---|
1929 | fi |
---|
1930 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1931 | if test -n "$ac_ct_CXX"; then |
---|
1932 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1933 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1934 | else |
---|
1935 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1936 | echo "${ECHO_T}no" >&6 |
---|
1937 | fi |
---|
1938 | |
---|
1939 | test -n "$ac_ct_CXX" && break |
---|
1940 | done |
---|
1941 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1942 | |
---|
1943 | CXX=$ac_ct_CXX |
---|
1944 | fi |
---|
1945 | |
---|
1946 | |
---|
1947 | # Provide some information about the compiler. |
---|
1948 | echo "$as_me:$LINENO:" \ |
---|
1949 | "checking for C++ compiler version" >&5 |
---|
1950 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1951 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1952 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1953 | ac_status=$? |
---|
1954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1955 | (exit $ac_status); } |
---|
1956 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1957 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1958 | ac_status=$? |
---|
1959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1960 | (exit $ac_status); } |
---|
1961 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1962 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1963 | ac_status=$? |
---|
1964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1965 | (exit $ac_status); } |
---|
1966 | |
---|
1967 | cat >conftest.$ac_ext <<_ACEOF |
---|
1968 | /* confdefs.h. */ |
---|
1969 | _ACEOF |
---|
1970 | cat confdefs.h >>conftest.$ac_ext |
---|
1971 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1972 | /* end confdefs.h. */ |
---|
1973 | |
---|
1974 | int |
---|
1975 | main () |
---|
1976 | { |
---|
1977 | |
---|
1978 | ; |
---|
1979 | return 0; |
---|
1980 | } |
---|
1981 | _ACEOF |
---|
1982 | ac_clean_files_save=$ac_clean_files |
---|
1983 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1984 | # Try to create an executable without -o first, disregard a.out. |
---|
1985 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1986 | # of exeext. |
---|
1987 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1988 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1989 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1990 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1991 | (eval $ac_link_default) 2>&5 |
---|
1992 | ac_status=$? |
---|
1993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1994 | (exit $ac_status); }; then |
---|
1995 | # Find the output, starting from the most likely. This scheme is |
---|
1996 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1997 | # resort. |
---|
1998 | |
---|
1999 | # Be careful to initialize this variable, since it used to be cached. |
---|
2000 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2001 | ac_cv_exeext= |
---|
2002 | # b.out is created by i960 compilers. |
---|
2003 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2004 | do |
---|
2005 | test -f "$ac_file" || continue |
---|
2006 | case $ac_file in |
---|
2007 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2008 | ;; |
---|
2009 | conftest.$ac_ext ) |
---|
2010 | # This is the source file. |
---|
2011 | ;; |
---|
2012 | [ab].out ) |
---|
2013 | # We found the default executable, but exeext='' is most |
---|
2014 | # certainly right. |
---|
2015 | break;; |
---|
2016 | *.* ) |
---|
2017 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2018 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2019 | # but it would be cool to find out if it's true. Does anybody |
---|
2020 | # maintain Libtool? --akim. |
---|
2021 | export ac_cv_exeext |
---|
2022 | break;; |
---|
2023 | * ) |
---|
2024 | break;; |
---|
2025 | esac |
---|
2026 | done |
---|
2027 | else |
---|
2028 | echo "$as_me: failed program was:" >&5 |
---|
2029 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2030 | |
---|
2031 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
2032 | See \`config.log' for more details." >&5 |
---|
2033 | echo "$as_me: error: C++ compiler cannot create executables |
---|
2034 | See \`config.log' for more details." >&2;} |
---|
2035 | { (exit 77); exit 77; }; } |
---|
2036 | fi |
---|
2037 | |
---|
2038 | ac_exeext=$ac_cv_exeext |
---|
2039 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2040 | echo "${ECHO_T}$ac_file" >&6 |
---|
2041 | |
---|
2042 | # Check the compiler produces executables we can run. If not, either |
---|
2043 | # the compiler is broken, or we cross compile. |
---|
2044 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
2045 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
2046 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2047 | # If not cross compiling, check that we can run a simple program. |
---|
2048 | if test "$cross_compiling" != yes; then |
---|
2049 | if { ac_try='./$ac_file' |
---|
2050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2051 | (eval $ac_try) 2>&5 |
---|
2052 | ac_status=$? |
---|
2053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2054 | (exit $ac_status); }; }; then |
---|
2055 | cross_compiling=no |
---|
2056 | else |
---|
2057 | if test "$cross_compiling" = maybe; then |
---|
2058 | cross_compiling=yes |
---|
2059 | else |
---|
2060 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2061 | If you meant to cross compile, use \`--host'. |
---|
2062 | See \`config.log' for more details." >&5 |
---|
2063 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2064 | If you meant to cross compile, use \`--host'. |
---|
2065 | See \`config.log' for more details." >&2;} |
---|
2066 | { (exit 1); exit 1; }; } |
---|
2067 | fi |
---|
2068 | fi |
---|
2069 | fi |
---|
2070 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2071 | echo "${ECHO_T}yes" >&6 |
---|
2072 | |
---|
2073 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2074 | ac_clean_files=$ac_clean_files_save |
---|
2075 | # Check the compiler produces executables we can run. If not, either |
---|
2076 | # the compiler is broken, or we cross compile. |
---|
2077 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2078 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2079 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2080 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2081 | |
---|
2082 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2083 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2085 | (eval $ac_link) 2>&5 |
---|
2086 | ac_status=$? |
---|
2087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2088 | (exit $ac_status); }; then |
---|
2089 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2090 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2091 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2092 | # `rm'. |
---|
2093 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2094 | test -f "$ac_file" || continue |
---|
2095 | case $ac_file in |
---|
2096 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2097 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2098 | export ac_cv_exeext |
---|
2099 | break;; |
---|
2100 | * ) break;; |
---|
2101 | esac |
---|
2102 | done |
---|
2103 | else |
---|
2104 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2105 | See \`config.log' for more details." >&5 |
---|
2106 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2107 | See \`config.log' for more details." >&2;} |
---|
2108 | { (exit 1); exit 1; }; } |
---|
2109 | fi |
---|
2110 | |
---|
2111 | rm -f conftest$ac_cv_exeext |
---|
2112 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2113 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2114 | |
---|
2115 | rm -f conftest.$ac_ext |
---|
2116 | EXEEXT=$ac_cv_exeext |
---|
2117 | ac_exeext=$EXEEXT |
---|
2118 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2119 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2120 | if test "${ac_cv_objext+set}" = set; then |
---|
2121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2122 | else |
---|
2123 | cat >conftest.$ac_ext <<_ACEOF |
---|
2124 | /* confdefs.h. */ |
---|
2125 | _ACEOF |
---|
2126 | cat confdefs.h >>conftest.$ac_ext |
---|
2127 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2128 | /* end confdefs.h. */ |
---|
2129 | |
---|
2130 | int |
---|
2131 | main () |
---|
2132 | { |
---|
2133 | |
---|
2134 | ; |
---|
2135 | return 0; |
---|
2136 | } |
---|
2137 | _ACEOF |
---|
2138 | rm -f conftest.o conftest.obj |
---|
2139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2140 | (eval $ac_compile) 2>&5 |
---|
2141 | ac_status=$? |
---|
2142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2143 | (exit $ac_status); }; then |
---|
2144 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2145 | case $ac_file in |
---|
2146 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2147 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2148 | break;; |
---|
2149 | esac |
---|
2150 | done |
---|
2151 | else |
---|
2152 | echo "$as_me: failed program was:" >&5 |
---|
2153 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2154 | |
---|
2155 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2156 | See \`config.log' for more details." >&5 |
---|
2157 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2158 | See \`config.log' for more details." >&2;} |
---|
2159 | { (exit 1); exit 1; }; } |
---|
2160 | fi |
---|
2161 | |
---|
2162 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2163 | fi |
---|
2164 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2165 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2166 | OBJEXT=$ac_cv_objext |
---|
2167 | ac_objext=$OBJEXT |
---|
2168 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2169 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2170 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2172 | else |
---|
2173 | cat >conftest.$ac_ext <<_ACEOF |
---|
2174 | /* confdefs.h. */ |
---|
2175 | _ACEOF |
---|
2176 | cat confdefs.h >>conftest.$ac_ext |
---|
2177 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2178 | /* end confdefs.h. */ |
---|
2179 | |
---|
2180 | int |
---|
2181 | main () |
---|
2182 | { |
---|
2183 | #ifndef __GNUC__ |
---|
2184 | choke me |
---|
2185 | #endif |
---|
2186 | |
---|
2187 | ; |
---|
2188 | return 0; |
---|
2189 | } |
---|
2190 | _ACEOF |
---|
2191 | rm -f conftest.$ac_objext |
---|
2192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2193 | (eval $ac_compile) 2>conftest.er1 |
---|
2194 | ac_status=$? |
---|
2195 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2196 | rm -f conftest.er1 |
---|
2197 | cat conftest.err >&5 |
---|
2198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2199 | (exit $ac_status); } && |
---|
2200 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2201 | || test ! -s conftest.err' |
---|
2202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2203 | (eval $ac_try) 2>&5 |
---|
2204 | ac_status=$? |
---|
2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2206 | (exit $ac_status); }; } && |
---|
2207 | { ac_try='test -s conftest.$ac_objext' |
---|
2208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2209 | (eval $ac_try) 2>&5 |
---|
2210 | ac_status=$? |
---|
2211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2212 | (exit $ac_status); }; }; then |
---|
2213 | ac_compiler_gnu=yes |
---|
2214 | else |
---|
2215 | echo "$as_me: failed program was:" >&5 |
---|
2216 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2217 | |
---|
2218 | ac_compiler_gnu=no |
---|
2219 | fi |
---|
2220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2221 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2222 | |
---|
2223 | fi |
---|
2224 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2225 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2226 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2227 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2228 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2229 | CXXFLAGS="-g" |
---|
2230 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2231 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2232 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2234 | else |
---|
2235 | cat >conftest.$ac_ext <<_ACEOF |
---|
2236 | /* confdefs.h. */ |
---|
2237 | _ACEOF |
---|
2238 | cat confdefs.h >>conftest.$ac_ext |
---|
2239 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2240 | /* end confdefs.h. */ |
---|
2241 | |
---|
2242 | int |
---|
2243 | main () |
---|
2244 | { |
---|
2245 | |
---|
2246 | ; |
---|
2247 | return 0; |
---|
2248 | } |
---|
2249 | _ACEOF |
---|
2250 | rm -f conftest.$ac_objext |
---|
2251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2252 | (eval $ac_compile) 2>conftest.er1 |
---|
2253 | ac_status=$? |
---|
2254 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2255 | rm -f conftest.er1 |
---|
2256 | cat conftest.err >&5 |
---|
2257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2258 | (exit $ac_status); } && |
---|
2259 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2260 | || test ! -s conftest.err' |
---|
2261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2262 | (eval $ac_try) 2>&5 |
---|
2263 | ac_status=$? |
---|
2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2265 | (exit $ac_status); }; } && |
---|
2266 | { ac_try='test -s conftest.$ac_objext' |
---|
2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2268 | (eval $ac_try) 2>&5 |
---|
2269 | ac_status=$? |
---|
2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2271 | (exit $ac_status); }; }; then |
---|
2272 | ac_cv_prog_cxx_g=yes |
---|
2273 | else |
---|
2274 | echo "$as_me: failed program was:" >&5 |
---|
2275 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2276 | |
---|
2277 | ac_cv_prog_cxx_g=no |
---|
2278 | fi |
---|
2279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2280 | fi |
---|
2281 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2282 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2283 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2284 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2285 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2286 | if test "$GXX" = yes; then |
---|
2287 | CXXFLAGS="-g -O2" |
---|
2288 | else |
---|
2289 | CXXFLAGS="-g" |
---|
2290 | fi |
---|
2291 | else |
---|
2292 | if test "$GXX" = yes; then |
---|
2293 | CXXFLAGS="-O2" |
---|
2294 | else |
---|
2295 | CXXFLAGS= |
---|
2296 | fi |
---|
2297 | fi |
---|
2298 | for ac_declaration in \ |
---|
2299 | '' \ |
---|
2300 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2301 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2302 | 'extern "C" void exit (int) throw ();' \ |
---|
2303 | 'extern "C" void exit (int);' \ |
---|
2304 | 'void exit (int);' |
---|
2305 | do |
---|
2306 | cat >conftest.$ac_ext <<_ACEOF |
---|
2307 | /* confdefs.h. */ |
---|
2308 | _ACEOF |
---|
2309 | cat confdefs.h >>conftest.$ac_ext |
---|
2310 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2311 | /* end confdefs.h. */ |
---|
2312 | $ac_declaration |
---|
2313 | #include <stdlib.h> |
---|
2314 | int |
---|
2315 | main () |
---|
2316 | { |
---|
2317 | exit (42); |
---|
2318 | ; |
---|
2319 | return 0; |
---|
2320 | } |
---|
2321 | _ACEOF |
---|
2322 | rm -f conftest.$ac_objext |
---|
2323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2324 | (eval $ac_compile) 2>conftest.er1 |
---|
2325 | ac_status=$? |
---|
2326 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2327 | rm -f conftest.er1 |
---|
2328 | cat conftest.err >&5 |
---|
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2330 | (exit $ac_status); } && |
---|
2331 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2332 | || test ! -s conftest.err' |
---|
2333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2334 | (eval $ac_try) 2>&5 |
---|
2335 | ac_status=$? |
---|
2336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2337 | (exit $ac_status); }; } && |
---|
2338 | { ac_try='test -s conftest.$ac_objext' |
---|
2339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2340 | (eval $ac_try) 2>&5 |
---|
2341 | ac_status=$? |
---|
2342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2343 | (exit $ac_status); }; }; then |
---|
2344 | : |
---|
2345 | else |
---|
2346 | echo "$as_me: failed program was:" >&5 |
---|
2347 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2348 | |
---|
2349 | continue |
---|
2350 | fi |
---|
2351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2352 | cat >conftest.$ac_ext <<_ACEOF |
---|
2353 | /* confdefs.h. */ |
---|
2354 | _ACEOF |
---|
2355 | cat confdefs.h >>conftest.$ac_ext |
---|
2356 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2357 | /* end confdefs.h. */ |
---|
2358 | $ac_declaration |
---|
2359 | int |
---|
2360 | main () |
---|
2361 | { |
---|
2362 | exit (42); |
---|
2363 | ; |
---|
2364 | return 0; |
---|
2365 | } |
---|
2366 | _ACEOF |
---|
2367 | rm -f conftest.$ac_objext |
---|
2368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2369 | (eval $ac_compile) 2>conftest.er1 |
---|
2370 | ac_status=$? |
---|
2371 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2372 | rm -f conftest.er1 |
---|
2373 | cat conftest.err >&5 |
---|
2374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2375 | (exit $ac_status); } && |
---|
2376 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2377 | || test ! -s conftest.err' |
---|
2378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2379 | (eval $ac_try) 2>&5 |
---|
2380 | ac_status=$? |
---|
2381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2382 | (exit $ac_status); }; } && |
---|
2383 | { ac_try='test -s conftest.$ac_objext' |
---|
2384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2385 | (eval $ac_try) 2>&5 |
---|
2386 | ac_status=$? |
---|
2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2388 | (exit $ac_status); }; }; then |
---|
2389 | break |
---|
2390 | else |
---|
2391 | echo "$as_me: failed program was:" >&5 |
---|
2392 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2393 | |
---|
2394 | fi |
---|
2395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2396 | done |
---|
2397 | rm -f conftest* |
---|
2398 | if test -n "$ac_declaration"; then |
---|
2399 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2400 | echo $ac_declaration >>confdefs.h |
---|
2401 | echo '#endif' >>confdefs.h |
---|
2402 | fi |
---|
2403 | |
---|
2404 | ac_ext=c |
---|
2405 | ac_cpp='$CPP $CPPFLAGS' |
---|
2406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2409 | DEPDIR="${am__leading_dot}deps" |
---|
2410 | |
---|
2411 | ac_config_commands="$ac_config_commands depfiles" |
---|
2412 | |
---|
2413 | |
---|
2414 | am_make=${MAKE-make} |
---|
2415 | cat > confinc << 'END' |
---|
2416 | am__doit: |
---|
2417 | @echo done |
---|
2418 | .PHONY: am__doit |
---|
2419 | END |
---|
2420 | # If we don't find an include directive, just comment out the code. |
---|
2421 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2422 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2423 | am__include="#" |
---|
2424 | am__quote= |
---|
2425 | _am_result=none |
---|
2426 | # First try GNU make style include. |
---|
2427 | echo "include confinc" > confmf |
---|
2428 | # We grep out `Entering directory' and `Leaving directory' |
---|
2429 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2430 | # In particular we don't look at `^make:' because GNU make might |
---|
2431 | # be invoked under some other name (usually "gmake"), in which |
---|
2432 | # case it prints its new name instead of `make'. |
---|
2433 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2434 | am__include=include |
---|
2435 | am__quote= |
---|
2436 | _am_result=GNU |
---|
2437 | fi |
---|
2438 | # Now try BSD make style include. |
---|
2439 | if test "$am__include" = "#"; then |
---|
2440 | echo '.include "confinc"' > confmf |
---|
2441 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2442 | am__include=.include |
---|
2443 | am__quote="\"" |
---|
2444 | _am_result=BSD |
---|
2445 | fi |
---|
2446 | fi |
---|
2447 | |
---|
2448 | |
---|
2449 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2450 | echo "${ECHO_T}$_am_result" >&6 |
---|
2451 | rm -f confinc confmf |
---|
2452 | |
---|
2453 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2454 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2455 | enableval="$enable_dependency_tracking" |
---|
2456 | |
---|
2457 | fi; |
---|
2458 | if test "x$enable_dependency_tracking" != xno; then |
---|
2459 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2460 | AMDEPBACKSLASH='\' |
---|
2461 | fi |
---|
2462 | |
---|
2463 | |
---|
2464 | if test "x$enable_dependency_tracking" != xno; then |
---|
2465 | AMDEP_TRUE= |
---|
2466 | AMDEP_FALSE='#' |
---|
2467 | else |
---|
2468 | AMDEP_TRUE='#' |
---|
2469 | AMDEP_FALSE= |
---|
2470 | fi |
---|
2471 | |
---|
2472 | |
---|
2473 | |
---|
2474 | |
---|
2475 | depcc="$CXX" am_compiler_list= |
---|
2476 | |
---|
2477 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2478 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2479 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2481 | else |
---|
2482 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2483 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2484 | # making bogus files that we don't know about and never remove. For |
---|
2485 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2486 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2487 | # in D'. |
---|
2488 | mkdir conftest.dir |
---|
2489 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2490 | # using a relative directory. |
---|
2491 | cp "$am_depcomp" conftest.dir |
---|
2492 | cd conftest.dir |
---|
2493 | # We will build objects and dependencies in a subdirectory because |
---|
2494 | # it helps to detect inapplicable dependency modes. For instance |
---|
2495 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2496 | # side effect of compilation, but ICC will put the dependencies in |
---|
2497 | # the current directory while Tru64 will put them in the object |
---|
2498 | # directory. |
---|
2499 | mkdir sub |
---|
2500 | |
---|
2501 | am_cv_CXX_dependencies_compiler_type=none |
---|
2502 | if test "$am_compiler_list" = ""; then |
---|
2503 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2504 | fi |
---|
2505 | for depmode in $am_compiler_list; do |
---|
2506 | # Setup a source with many dependencies, because some compilers |
---|
2507 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2508 | # we should not choose a depcomp mode which is confused by this. |
---|
2509 | # |
---|
2510 | # We need to recreate these files for each test, as the compiler may |
---|
2511 | # overwrite some of them when testing with obscure command lines. |
---|
2512 | # This happens at least with the AIX C compiler. |
---|
2513 | : > sub/conftest.c |
---|
2514 | for i in 1 2 3 4 5 6; do |
---|
2515 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2516 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
2517 | # Solaris 8's {/usr,}/bin/sh. |
---|
2518 | touch sub/conftst$i.h |
---|
2519 | done |
---|
2520 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2521 | |
---|
2522 | case $depmode in |
---|
2523 | nosideeffect) |
---|
2524 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2525 | # only be used when explicitly requested |
---|
2526 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2527 | continue |
---|
2528 | else |
---|
2529 | break |
---|
2530 | fi |
---|
2531 | ;; |
---|
2532 | none) break ;; |
---|
2533 | esac |
---|
2534 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2535 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2536 | # handle `-M -o', and we need to detect this. |
---|
2537 | if depmode=$depmode \ |
---|
2538 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2539 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2540 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2541 | >/dev/null 2>conftest.err && |
---|
2542 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2543 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2544 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2545 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2546 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
2547 | # that says an option was ignored or not supported. |
---|
2548 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
2549 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
2550 | # The diagnosis changed in icc 8.0: |
---|
2551 | # icc: Command line remark: option '-MP' not supported |
---|
2552 | if (grep 'ignoring option' conftest.err || |
---|
2553 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
2554 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2555 | break |
---|
2556 | fi |
---|
2557 | fi |
---|
2558 | done |
---|
2559 | |
---|
2560 | cd .. |
---|
2561 | rm -rf conftest.dir |
---|
2562 | else |
---|
2563 | am_cv_CXX_dependencies_compiler_type=none |
---|
2564 | fi |
---|
2565 | |
---|
2566 | fi |
---|
2567 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2568 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2569 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2570 | |
---|
2571 | |
---|
2572 | |
---|
2573 | if |
---|
2574 | test "x$enable_dependency_tracking" != xno \ |
---|
2575 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2576 | am__fastdepCXX_TRUE= |
---|
2577 | am__fastdepCXX_FALSE='#' |
---|
2578 | else |
---|
2579 | am__fastdepCXX_TRUE='#' |
---|
2580 | am__fastdepCXX_FALSE= |
---|
2581 | fi |
---|
2582 | |
---|
2583 | |
---|
2584 | ac_ext=c |
---|
2585 | ac_cpp='$CPP $CPPFLAGS' |
---|
2586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2589 | if test -n "$ac_tool_prefix"; then |
---|
2590 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2591 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2594 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2596 | else |
---|
2597 | if test -n "$CC"; then |
---|
2598 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2599 | else |
---|
2600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2601 | for as_dir in $PATH |
---|
2602 | do |
---|
2603 | IFS=$as_save_IFS |
---|
2604 | test -z "$as_dir" && as_dir=. |
---|
2605 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2606 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2607 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2608 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2609 | break 2 |
---|
2610 | fi |
---|
2611 | done |
---|
2612 | done |
---|
2613 | |
---|
2614 | fi |
---|
2615 | fi |
---|
2616 | CC=$ac_cv_prog_CC |
---|
2617 | if test -n "$CC"; then |
---|
2618 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2619 | echo "${ECHO_T}$CC" >&6 |
---|
2620 | else |
---|
2621 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2622 | echo "${ECHO_T}no" >&6 |
---|
2623 | fi |
---|
2624 | |
---|
2625 | fi |
---|
2626 | if test -z "$ac_cv_prog_CC"; then |
---|
2627 | ac_ct_CC=$CC |
---|
2628 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2629 | set dummy gcc; ac_word=$2 |
---|
2630 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2632 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2634 | else |
---|
2635 | if test -n "$ac_ct_CC"; then |
---|
2636 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2637 | else |
---|
2638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2639 | for as_dir in $PATH |
---|
2640 | do |
---|
2641 | IFS=$as_save_IFS |
---|
2642 | test -z "$as_dir" && as_dir=. |
---|
2643 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2644 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2645 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2647 | break 2 |
---|
2648 | fi |
---|
2649 | done |
---|
2650 | done |
---|
2651 | |
---|
2652 | fi |
---|
2653 | fi |
---|
2654 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2655 | if test -n "$ac_ct_CC"; then |
---|
2656 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2657 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2658 | else |
---|
2659 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2660 | echo "${ECHO_T}no" >&6 |
---|
2661 | fi |
---|
2662 | |
---|
2663 | CC=$ac_ct_CC |
---|
2664 | else |
---|
2665 | CC="$ac_cv_prog_CC" |
---|
2666 | fi |
---|
2667 | |
---|
2668 | if test -z "$CC"; then |
---|
2669 | if test -n "$ac_tool_prefix"; then |
---|
2670 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2671 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2672 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2674 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2676 | else |
---|
2677 | if test -n "$CC"; then |
---|
2678 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2679 | else |
---|
2680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2681 | for as_dir in $PATH |
---|
2682 | do |
---|
2683 | IFS=$as_save_IFS |
---|
2684 | test -z "$as_dir" && as_dir=. |
---|
2685 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2686 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2687 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2689 | break 2 |
---|
2690 | fi |
---|
2691 | done |
---|
2692 | done |
---|
2693 | |
---|
2694 | fi |
---|
2695 | fi |
---|
2696 | CC=$ac_cv_prog_CC |
---|
2697 | if test -n "$CC"; then |
---|
2698 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2699 | echo "${ECHO_T}$CC" >&6 |
---|
2700 | else |
---|
2701 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2702 | echo "${ECHO_T}no" >&6 |
---|
2703 | fi |
---|
2704 | |
---|
2705 | fi |
---|
2706 | if test -z "$ac_cv_prog_CC"; then |
---|
2707 | ac_ct_CC=$CC |
---|
2708 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2709 | set dummy cc; ac_word=$2 |
---|
2710 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2712 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2714 | else |
---|
2715 | if test -n "$ac_ct_CC"; then |
---|
2716 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2717 | else |
---|
2718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2719 | for as_dir in $PATH |
---|
2720 | do |
---|
2721 | IFS=$as_save_IFS |
---|
2722 | test -z "$as_dir" && as_dir=. |
---|
2723 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2725 | ac_cv_prog_ac_ct_CC="cc" |
---|
2726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2727 | break 2 |
---|
2728 | fi |
---|
2729 | done |
---|
2730 | done |
---|
2731 | |
---|
2732 | fi |
---|
2733 | fi |
---|
2734 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2735 | if test -n "$ac_ct_CC"; then |
---|
2736 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2737 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2738 | else |
---|
2739 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2740 | echo "${ECHO_T}no" >&6 |
---|
2741 | fi |
---|
2742 | |
---|
2743 | CC=$ac_ct_CC |
---|
2744 | else |
---|
2745 | CC="$ac_cv_prog_CC" |
---|
2746 | fi |
---|
2747 | |
---|
2748 | fi |
---|
2749 | if test -z "$CC"; then |
---|
2750 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2751 | set dummy cc; ac_word=$2 |
---|
2752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2754 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2756 | else |
---|
2757 | if test -n "$CC"; then |
---|
2758 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2759 | else |
---|
2760 | ac_prog_rejected=no |
---|
2761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2762 | for as_dir in $PATH |
---|
2763 | do |
---|
2764 | IFS=$as_save_IFS |
---|
2765 | test -z "$as_dir" && as_dir=. |
---|
2766 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2767 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2768 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2769 | ac_prog_rejected=yes |
---|
2770 | continue |
---|
2771 | fi |
---|
2772 | ac_cv_prog_CC="cc" |
---|
2773 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2774 | break 2 |
---|
2775 | fi |
---|
2776 | done |
---|
2777 | done |
---|
2778 | |
---|
2779 | if test $ac_prog_rejected = yes; then |
---|
2780 | # We found a bogon in the path, so make sure we never use it. |
---|
2781 | set dummy $ac_cv_prog_CC |
---|
2782 | shift |
---|
2783 | if test $# != 0; then |
---|
2784 | # We chose a different compiler from the bogus one. |
---|
2785 | # However, it has the same basename, so the bogon will be chosen |
---|
2786 | # first if we set CC to just the basename; use the full file name. |
---|
2787 | shift |
---|
2788 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2789 | fi |
---|
2790 | fi |
---|
2791 | fi |
---|
2792 | fi |
---|
2793 | CC=$ac_cv_prog_CC |
---|
2794 | if test -n "$CC"; then |
---|
2795 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2796 | echo "${ECHO_T}$CC" >&6 |
---|
2797 | else |
---|
2798 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2799 | echo "${ECHO_T}no" >&6 |
---|
2800 | fi |
---|
2801 | |
---|
2802 | fi |
---|
2803 | if test -z "$CC"; then |
---|
2804 | if test -n "$ac_tool_prefix"; then |
---|
2805 | for ac_prog in cl |
---|
2806 | do |
---|
2807 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2808 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2809 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2811 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2813 | else |
---|
2814 | if test -n "$CC"; then |
---|
2815 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2816 | else |
---|
2817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2818 | for as_dir in $PATH |
---|
2819 | do |
---|
2820 | IFS=$as_save_IFS |
---|
2821 | test -z "$as_dir" && as_dir=. |
---|
2822 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2823 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2824 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2826 | break 2 |
---|
2827 | fi |
---|
2828 | done |
---|
2829 | done |
---|
2830 | |
---|
2831 | fi |
---|
2832 | fi |
---|
2833 | CC=$ac_cv_prog_CC |
---|
2834 | if test -n "$CC"; then |
---|
2835 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2836 | echo "${ECHO_T}$CC" >&6 |
---|
2837 | else |
---|
2838 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2839 | echo "${ECHO_T}no" >&6 |
---|
2840 | fi |
---|
2841 | |
---|
2842 | test -n "$CC" && break |
---|
2843 | done |
---|
2844 | fi |
---|
2845 | if test -z "$CC"; then |
---|
2846 | ac_ct_CC=$CC |
---|
2847 | for ac_prog in cl |
---|
2848 | do |
---|
2849 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2850 | set dummy $ac_prog; ac_word=$2 |
---|
2851 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2853 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2855 | else |
---|
2856 | if test -n "$ac_ct_CC"; then |
---|
2857 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2858 | else |
---|
2859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2860 | for as_dir in $PATH |
---|
2861 | do |
---|
2862 | IFS=$as_save_IFS |
---|
2863 | test -z "$as_dir" && as_dir=. |
---|
2864 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2865 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2866 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2868 | break 2 |
---|
2869 | fi |
---|
2870 | done |
---|
2871 | done |
---|
2872 | |
---|
2873 | fi |
---|
2874 | fi |
---|
2875 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2876 | if test -n "$ac_ct_CC"; then |
---|
2877 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2878 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2879 | else |
---|
2880 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2881 | echo "${ECHO_T}no" >&6 |
---|
2882 | fi |
---|
2883 | |
---|
2884 | test -n "$ac_ct_CC" && break |
---|
2885 | done |
---|
2886 | |
---|
2887 | CC=$ac_ct_CC |
---|
2888 | fi |
---|
2889 | |
---|
2890 | fi |
---|
2891 | |
---|
2892 | |
---|
2893 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2894 | See \`config.log' for more details." >&5 |
---|
2895 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2896 | See \`config.log' for more details." >&2;} |
---|
2897 | { (exit 1); exit 1; }; } |
---|
2898 | |
---|
2899 | # Provide some information about the compiler. |
---|
2900 | echo "$as_me:$LINENO:" \ |
---|
2901 | "checking for C compiler version" >&5 |
---|
2902 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2903 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2904 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2905 | ac_status=$? |
---|
2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2907 | (exit $ac_status); } |
---|
2908 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2909 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2910 | ac_status=$? |
---|
2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2912 | (exit $ac_status); } |
---|
2913 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2914 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2915 | ac_status=$? |
---|
2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2917 | (exit $ac_status); } |
---|
2918 | |
---|
2919 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2920 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2921 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2923 | else |
---|
2924 | cat >conftest.$ac_ext <<_ACEOF |
---|
2925 | /* confdefs.h. */ |
---|
2926 | _ACEOF |
---|
2927 | cat confdefs.h >>conftest.$ac_ext |
---|
2928 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2929 | /* end confdefs.h. */ |
---|
2930 | |
---|
2931 | int |
---|
2932 | main () |
---|
2933 | { |
---|
2934 | #ifndef __GNUC__ |
---|
2935 | choke me |
---|
2936 | #endif |
---|
2937 | |
---|
2938 | ; |
---|
2939 | return 0; |
---|
2940 | } |
---|
2941 | _ACEOF |
---|
2942 | rm -f conftest.$ac_objext |
---|
2943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2944 | (eval $ac_compile) 2>conftest.er1 |
---|
2945 | ac_status=$? |
---|
2946 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2947 | rm -f conftest.er1 |
---|
2948 | cat conftest.err >&5 |
---|
2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2950 | (exit $ac_status); } && |
---|
2951 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2952 | || test ! -s conftest.err' |
---|
2953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2954 | (eval $ac_try) 2>&5 |
---|
2955 | ac_status=$? |
---|
2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2957 | (exit $ac_status); }; } && |
---|
2958 | { ac_try='test -s conftest.$ac_objext' |
---|
2959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2960 | (eval $ac_try) 2>&5 |
---|
2961 | ac_status=$? |
---|
2962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2963 | (exit $ac_status); }; }; then |
---|
2964 | ac_compiler_gnu=yes |
---|
2965 | else |
---|
2966 | echo "$as_me: failed program was:" >&5 |
---|
2967 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2968 | |
---|
2969 | ac_compiler_gnu=no |
---|
2970 | fi |
---|
2971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2972 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2973 | |
---|
2974 | fi |
---|
2975 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2976 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2977 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2978 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2979 | ac_save_CFLAGS=$CFLAGS |
---|
2980 | CFLAGS="-g" |
---|
2981 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2982 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2983 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2985 | else |
---|
2986 | cat >conftest.$ac_ext <<_ACEOF |
---|
2987 | /* confdefs.h. */ |
---|
2988 | _ACEOF |
---|
2989 | cat confdefs.h >>conftest.$ac_ext |
---|
2990 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2991 | /* end confdefs.h. */ |
---|
2992 | |
---|
2993 | int |
---|
2994 | main () |
---|
2995 | { |
---|
2996 | |
---|
2997 | ; |
---|
2998 | return 0; |
---|
2999 | } |
---|
3000 | _ACEOF |
---|
3001 | rm -f conftest.$ac_objext |
---|
3002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3003 | (eval $ac_compile) 2>conftest.er1 |
---|
3004 | ac_status=$? |
---|
3005 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3006 | rm -f conftest.er1 |
---|
3007 | cat conftest.err >&5 |
---|
3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3009 | (exit $ac_status); } && |
---|
3010 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3011 | || test ! -s conftest.err' |
---|
3012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3013 | (eval $ac_try) 2>&5 |
---|
3014 | ac_status=$? |
---|
3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3016 | (exit $ac_status); }; } && |
---|
3017 | { ac_try='test -s conftest.$ac_objext' |
---|
3018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3019 | (eval $ac_try) 2>&5 |
---|
3020 | ac_status=$? |
---|
3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3022 | (exit $ac_status); }; }; then |
---|
3023 | ac_cv_prog_cc_g=yes |
---|
3024 | else |
---|
3025 | echo "$as_me: failed program was:" >&5 |
---|
3026 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3027 | |
---|
3028 | ac_cv_prog_cc_g=no |
---|
3029 | fi |
---|
3030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3031 | fi |
---|
3032 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3033 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
3034 | if test "$ac_test_CFLAGS" = set; then |
---|
3035 | CFLAGS=$ac_save_CFLAGS |
---|
3036 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3037 | if test "$GCC" = yes; then |
---|
3038 | CFLAGS="-g -O2" |
---|
3039 | else |
---|
3040 | CFLAGS="-g" |
---|
3041 | fi |
---|
3042 | else |
---|
3043 | if test "$GCC" = yes; then |
---|
3044 | CFLAGS="-O2" |
---|
3045 | else |
---|
3046 | CFLAGS= |
---|
3047 | fi |
---|
3048 | fi |
---|
3049 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3050 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3051 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3053 | else |
---|
3054 | ac_cv_prog_cc_stdc=no |
---|
3055 | ac_save_CC=$CC |
---|
3056 | cat >conftest.$ac_ext <<_ACEOF |
---|
3057 | /* confdefs.h. */ |
---|
3058 | _ACEOF |
---|
3059 | cat confdefs.h >>conftest.$ac_ext |
---|
3060 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3061 | /* end confdefs.h. */ |
---|
3062 | #include <stdarg.h> |
---|
3063 | #include <stdio.h> |
---|
3064 | #include <sys/types.h> |
---|
3065 | #include <sys/stat.h> |
---|
3066 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3067 | struct buf { int x; }; |
---|
3068 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3069 | static char *e (p, i) |
---|
3070 | char **p; |
---|
3071 | int i; |
---|
3072 | { |
---|
3073 | return p[i]; |
---|
3074 | } |
---|
3075 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3076 | { |
---|
3077 | char *s; |
---|
3078 | va_list v; |
---|
3079 | va_start (v,p); |
---|
3080 | s = g (p, va_arg (v,int)); |
---|
3081 | va_end (v); |
---|
3082 | return s; |
---|
3083 | } |
---|
3084 | |
---|
3085 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3086 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3087 | These don't provoke an error unfortunately, instead are silently treated |
---|
3088 | as 'x'. The following induces an error, until -std1 is added to get |
---|
3089 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3090 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3091 | that's true only with -std1. */ |
---|
3092 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3093 | |
---|
3094 | int test (int i, double x); |
---|
3095 | struct s1 {int (*f) (int a);}; |
---|
3096 | struct s2 {int (*f) (double a);}; |
---|
3097 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3098 | int argc; |
---|
3099 | char **argv; |
---|
3100 | int |
---|
3101 | main () |
---|
3102 | { |
---|
3103 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3104 | ; |
---|
3105 | return 0; |
---|
3106 | } |
---|
3107 | _ACEOF |
---|
3108 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3109 | # breaks some systems' header files. |
---|
3110 | # AIX -qlanglvl=ansi |
---|
3111 | # Ultrix and OSF/1 -std1 |
---|
3112 | # HP-UX 10.20 and later -Ae |
---|
3113 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3114 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3115 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3116 | do |
---|
3117 | CC="$ac_save_CC $ac_arg" |
---|
3118 | rm -f conftest.$ac_objext |
---|
3119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3120 | (eval $ac_compile) 2>conftest.er1 |
---|
3121 | ac_status=$? |
---|
3122 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3123 | rm -f conftest.er1 |
---|
3124 | cat conftest.err >&5 |
---|
3125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3126 | (exit $ac_status); } && |
---|
3127 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3128 | || test ! -s conftest.err' |
---|
3129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3130 | (eval $ac_try) 2>&5 |
---|
3131 | ac_status=$? |
---|
3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3133 | (exit $ac_status); }; } && |
---|
3134 | { ac_try='test -s conftest.$ac_objext' |
---|
3135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3136 | (eval $ac_try) 2>&5 |
---|
3137 | ac_status=$? |
---|
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3139 | (exit $ac_status); }; }; then |
---|
3140 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3141 | break |
---|
3142 | else |
---|
3143 | echo "$as_me: failed program was:" >&5 |
---|
3144 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3145 | |
---|
3146 | fi |
---|
3147 | rm -f conftest.err conftest.$ac_objext |
---|
3148 | done |
---|
3149 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3150 | CC=$ac_save_CC |
---|
3151 | |
---|
3152 | fi |
---|
3153 | |
---|
3154 | case "x$ac_cv_prog_cc_stdc" in |
---|
3155 | x|xno) |
---|
3156 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3157 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3158 | *) |
---|
3159 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3160 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3161 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3162 | esac |
---|
3163 | |
---|
3164 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3165 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3166 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3167 | # the declaration of exit, since it's the most demanding environment. |
---|
3168 | cat >conftest.$ac_ext <<_ACEOF |
---|
3169 | #ifndef __cplusplus |
---|
3170 | choke me |
---|
3171 | #endif |
---|
3172 | _ACEOF |
---|
3173 | rm -f conftest.$ac_objext |
---|
3174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3175 | (eval $ac_compile) 2>conftest.er1 |
---|
3176 | ac_status=$? |
---|
3177 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3178 | rm -f conftest.er1 |
---|
3179 | cat conftest.err >&5 |
---|
3180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3181 | (exit $ac_status); } && |
---|
3182 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3183 | || test ! -s conftest.err' |
---|
3184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3185 | (eval $ac_try) 2>&5 |
---|
3186 | ac_status=$? |
---|
3187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3188 | (exit $ac_status); }; } && |
---|
3189 | { ac_try='test -s conftest.$ac_objext' |
---|
3190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3191 | (eval $ac_try) 2>&5 |
---|
3192 | ac_status=$? |
---|
3193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3194 | (exit $ac_status); }; }; then |
---|
3195 | for ac_declaration in \ |
---|
3196 | '' \ |
---|
3197 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3198 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3199 | 'extern "C" void exit (int) throw ();' \ |
---|
3200 | 'extern "C" void exit (int);' \ |
---|
3201 | 'void exit (int);' |
---|
3202 | do |
---|
3203 | cat >conftest.$ac_ext <<_ACEOF |
---|
3204 | /* confdefs.h. */ |
---|
3205 | _ACEOF |
---|
3206 | cat confdefs.h >>conftest.$ac_ext |
---|
3207 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3208 | /* end confdefs.h. */ |
---|
3209 | $ac_declaration |
---|
3210 | #include <stdlib.h> |
---|
3211 | int |
---|
3212 | main () |
---|
3213 | { |
---|
3214 | exit (42); |
---|
3215 | ; |
---|
3216 | return 0; |
---|
3217 | } |
---|
3218 | _ACEOF |
---|
3219 | rm -f conftest.$ac_objext |
---|
3220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3221 | (eval $ac_compile) 2>conftest.er1 |
---|
3222 | ac_status=$? |
---|
3223 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3224 | rm -f conftest.er1 |
---|
3225 | cat conftest.err >&5 |
---|
3226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3227 | (exit $ac_status); } && |
---|
3228 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3229 | || test ! -s conftest.err' |
---|
3230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3231 | (eval $ac_try) 2>&5 |
---|
3232 | ac_status=$? |
---|
3233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3234 | (exit $ac_status); }; } && |
---|
3235 | { ac_try='test -s conftest.$ac_objext' |
---|
3236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3237 | (eval $ac_try) 2>&5 |
---|
3238 | ac_status=$? |
---|
3239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3240 | (exit $ac_status); }; }; then |
---|
3241 | : |
---|
3242 | else |
---|
3243 | echo "$as_me: failed program was:" >&5 |
---|
3244 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3245 | |
---|
3246 | continue |
---|
3247 | fi |
---|
3248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3249 | cat >conftest.$ac_ext <<_ACEOF |
---|
3250 | /* confdefs.h. */ |
---|
3251 | _ACEOF |
---|
3252 | cat confdefs.h >>conftest.$ac_ext |
---|
3253 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3254 | /* end confdefs.h. */ |
---|
3255 | $ac_declaration |
---|
3256 | int |
---|
3257 | main () |
---|
3258 | { |
---|
3259 | exit (42); |
---|
3260 | ; |
---|
3261 | return 0; |
---|
3262 | } |
---|
3263 | _ACEOF |
---|
3264 | rm -f conftest.$ac_objext |
---|
3265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3266 | (eval $ac_compile) 2>conftest.er1 |
---|
3267 | ac_status=$? |
---|
3268 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3269 | rm -f conftest.er1 |
---|
3270 | cat conftest.err >&5 |
---|
3271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3272 | (exit $ac_status); } && |
---|
3273 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3274 | || test ! -s conftest.err' |
---|
3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3276 | (eval $ac_try) 2>&5 |
---|
3277 | ac_status=$? |
---|
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3279 | (exit $ac_status); }; } && |
---|
3280 | { ac_try='test -s conftest.$ac_objext' |
---|
3281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3282 | (eval $ac_try) 2>&5 |
---|
3283 | ac_status=$? |
---|
3284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3285 | (exit $ac_status); }; }; then |
---|
3286 | break |
---|
3287 | else |
---|
3288 | echo "$as_me: failed program was:" >&5 |
---|
3289 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3290 | |
---|
3291 | fi |
---|
3292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3293 | done |
---|
3294 | rm -f conftest* |
---|
3295 | if test -n "$ac_declaration"; then |
---|
3296 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3297 | echo $ac_declaration >>confdefs.h |
---|
3298 | echo '#endif' >>confdefs.h |
---|
3299 | fi |
---|
3300 | |
---|
3301 | else |
---|
3302 | echo "$as_me: failed program was:" >&5 |
---|
3303 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3304 | |
---|
3305 | fi |
---|
3306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3307 | ac_ext=c |
---|
3308 | ac_cpp='$CPP $CPPFLAGS' |
---|
3309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3312 | |
---|
3313 | depcc="$CC" am_compiler_list= |
---|
3314 | |
---|
3315 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3316 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3317 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3319 | else |
---|
3320 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3321 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3322 | # making bogus files that we don't know about and never remove. For |
---|
3323 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3324 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3325 | # in D'. |
---|
3326 | mkdir conftest.dir |
---|
3327 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3328 | # using a relative directory. |
---|
3329 | cp "$am_depcomp" conftest.dir |
---|
3330 | cd conftest.dir |
---|
3331 | # We will build objects and dependencies in a subdirectory because |
---|
3332 | # it helps to detect inapplicable dependency modes. For instance |
---|
3333 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3334 | # side effect of compilation, but ICC will put the dependencies in |
---|
3335 | # the current directory while Tru64 will put them in the object |
---|
3336 | # directory. |
---|
3337 | mkdir sub |
---|
3338 | |
---|
3339 | am_cv_CC_dependencies_compiler_type=none |
---|
3340 | if test "$am_compiler_list" = ""; then |
---|
3341 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3342 | fi |
---|
3343 | for depmode in $am_compiler_list; do |
---|
3344 | # Setup a source with many dependencies, because some compilers |
---|
3345 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3346 | # we should not choose a depcomp mode which is confused by this. |
---|
3347 | # |
---|
3348 | # We need to recreate these files for each test, as the compiler may |
---|
3349 | # overwrite some of them when testing with obscure command lines. |
---|
3350 | # This happens at least with the AIX C compiler. |
---|
3351 | : > sub/conftest.c |
---|
3352 | for i in 1 2 3 4 5 6; do |
---|
3353 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3354 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3355 | # Solaris 8's {/usr,}/bin/sh. |
---|
3356 | touch sub/conftst$i.h |
---|
3357 | done |
---|
3358 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3359 | |
---|
3360 | case $depmode in |
---|
3361 | nosideeffect) |
---|
3362 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3363 | # only be used when explicitly requested |
---|
3364 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3365 | continue |
---|
3366 | else |
---|
3367 | break |
---|
3368 | fi |
---|
3369 | ;; |
---|
3370 | none) break ;; |
---|
3371 | esac |
---|
3372 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3373 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3374 | # handle `-M -o', and we need to detect this. |
---|
3375 | if depmode=$depmode \ |
---|
3376 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3377 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3378 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3379 | >/dev/null 2>conftest.err && |
---|
3380 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3381 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3382 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3383 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3384 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3385 | # that says an option was ignored or not supported. |
---|
3386 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3387 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3388 | # The diagnosis changed in icc 8.0: |
---|
3389 | # icc: Command line remark: option '-MP' not supported |
---|
3390 | if (grep 'ignoring option' conftest.err || |
---|
3391 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3392 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3393 | break |
---|
3394 | fi |
---|
3395 | fi |
---|
3396 | done |
---|
3397 | |
---|
3398 | cd .. |
---|
3399 | rm -rf conftest.dir |
---|
3400 | else |
---|
3401 | am_cv_CC_dependencies_compiler_type=none |
---|
3402 | fi |
---|
3403 | |
---|
3404 | fi |
---|
3405 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3406 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3407 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3408 | |
---|
3409 | |
---|
3410 | |
---|
3411 | if |
---|
3412 | test "x$enable_dependency_tracking" != xno \ |
---|
3413 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3414 | am__fastdepCC_TRUE= |
---|
3415 | am__fastdepCC_FALSE='#' |
---|
3416 | else |
---|
3417 | am__fastdepCC_TRUE='#' |
---|
3418 | am__fastdepCC_FALSE= |
---|
3419 | fi |
---|
3420 | |
---|
3421 | |
---|
3422 | |
---|
3423 | ac_ext=c |
---|
3424 | ac_cpp='$CPP $CPPFLAGS' |
---|
3425 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3426 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3427 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3428 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3429 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3430 | # On Suns, sometimes $CPP names a directory. |
---|
3431 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3432 | CPP= |
---|
3433 | fi |
---|
3434 | if test -z "$CPP"; then |
---|
3435 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3437 | else |
---|
3438 | # Double quotes because CPP needs to be expanded |
---|
3439 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3440 | do |
---|
3441 | ac_preproc_ok=false |
---|
3442 | for ac_c_preproc_warn_flag in '' yes |
---|
3443 | do |
---|
3444 | # Use a header file that comes with gcc, so configuring glibc |
---|
3445 | # with a fresh cross-compiler works. |
---|
3446 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3447 | # <limits.h> exists even on freestanding compilers. |
---|
3448 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3449 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3450 | cat >conftest.$ac_ext <<_ACEOF |
---|
3451 | /* confdefs.h. */ |
---|
3452 | _ACEOF |
---|
3453 | cat confdefs.h >>conftest.$ac_ext |
---|
3454 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3455 | /* end confdefs.h. */ |
---|
3456 | #ifdef __STDC__ |
---|
3457 | # include <limits.h> |
---|
3458 | #else |
---|
3459 | # include <assert.h> |
---|
3460 | #endif |
---|
3461 | Syntax error |
---|
3462 | _ACEOF |
---|
3463 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3464 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3465 | ac_status=$? |
---|
3466 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3467 | rm -f conftest.er1 |
---|
3468 | cat conftest.err >&5 |
---|
3469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3470 | (exit $ac_status); } >/dev/null; then |
---|
3471 | if test -s conftest.err; then |
---|
3472 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3473 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3474 | else |
---|
3475 | ac_cpp_err= |
---|
3476 | fi |
---|
3477 | else |
---|
3478 | ac_cpp_err=yes |
---|
3479 | fi |
---|
3480 | if test -z "$ac_cpp_err"; then |
---|
3481 | : |
---|
3482 | else |
---|
3483 | echo "$as_me: failed program was:" >&5 |
---|
3484 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3485 | |
---|
3486 | # Broken: fails on valid input. |
---|
3487 | continue |
---|
3488 | fi |
---|
3489 | rm -f conftest.err conftest.$ac_ext |
---|
3490 | |
---|
3491 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3492 | # can be detected and how. |
---|
3493 | cat >conftest.$ac_ext <<_ACEOF |
---|
3494 | /* confdefs.h. */ |
---|
3495 | _ACEOF |
---|
3496 | cat confdefs.h >>conftest.$ac_ext |
---|
3497 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3498 | /* end confdefs.h. */ |
---|
3499 | #include <ac_nonexistent.h> |
---|
3500 | _ACEOF |
---|
3501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3503 | ac_status=$? |
---|
3504 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3505 | rm -f conftest.er1 |
---|
3506 | cat conftest.err >&5 |
---|
3507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3508 | (exit $ac_status); } >/dev/null; then |
---|
3509 | if test -s conftest.err; then |
---|
3510 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3511 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3512 | else |
---|
3513 | ac_cpp_err= |
---|
3514 | fi |
---|
3515 | else |
---|
3516 | ac_cpp_err=yes |
---|
3517 | fi |
---|
3518 | if test -z "$ac_cpp_err"; then |
---|
3519 | # Broken: success on invalid input. |
---|
3520 | continue |
---|
3521 | else |
---|
3522 | echo "$as_me: failed program was:" >&5 |
---|
3523 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3524 | |
---|
3525 | # Passes both tests. |
---|
3526 | ac_preproc_ok=: |
---|
3527 | break |
---|
3528 | fi |
---|
3529 | rm -f conftest.err conftest.$ac_ext |
---|
3530 | |
---|
3531 | done |
---|
3532 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3533 | rm -f conftest.err conftest.$ac_ext |
---|
3534 | if $ac_preproc_ok; then |
---|
3535 | break |
---|
3536 | fi |
---|
3537 | |
---|
3538 | done |
---|
3539 | ac_cv_prog_CPP=$CPP |
---|
3540 | |
---|
3541 | fi |
---|
3542 | CPP=$ac_cv_prog_CPP |
---|
3543 | else |
---|
3544 | ac_cv_prog_CPP=$CPP |
---|
3545 | fi |
---|
3546 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3547 | echo "${ECHO_T}$CPP" >&6 |
---|
3548 | ac_preproc_ok=false |
---|
3549 | for ac_c_preproc_warn_flag in '' yes |
---|
3550 | do |
---|
3551 | # Use a header file that comes with gcc, so configuring glibc |
---|
3552 | # with a fresh cross-compiler works. |
---|
3553 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3554 | # <limits.h> exists even on freestanding compilers. |
---|
3555 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3556 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3557 | cat >conftest.$ac_ext <<_ACEOF |
---|
3558 | /* confdefs.h. */ |
---|
3559 | _ACEOF |
---|
3560 | cat confdefs.h >>conftest.$ac_ext |
---|
3561 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3562 | /* end confdefs.h. */ |
---|
3563 | #ifdef __STDC__ |
---|
3564 | # include <limits.h> |
---|
3565 | #else |
---|
3566 | # include <assert.h> |
---|
3567 | #endif |
---|
3568 | Syntax error |
---|
3569 | _ACEOF |
---|
3570 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3571 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3572 | ac_status=$? |
---|
3573 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3574 | rm -f conftest.er1 |
---|
3575 | cat conftest.err >&5 |
---|
3576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3577 | (exit $ac_status); } >/dev/null; then |
---|
3578 | if test -s conftest.err; then |
---|
3579 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3580 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3581 | else |
---|
3582 | ac_cpp_err= |
---|
3583 | fi |
---|
3584 | else |
---|
3585 | ac_cpp_err=yes |
---|
3586 | fi |
---|
3587 | if test -z "$ac_cpp_err"; then |
---|
3588 | : |
---|
3589 | else |
---|
3590 | echo "$as_me: failed program was:" >&5 |
---|
3591 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3592 | |
---|
3593 | # Broken: fails on valid input. |
---|
3594 | continue |
---|
3595 | fi |
---|
3596 | rm -f conftest.err conftest.$ac_ext |
---|
3597 | |
---|
3598 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3599 | # can be detected and how. |
---|
3600 | cat >conftest.$ac_ext <<_ACEOF |
---|
3601 | /* confdefs.h. */ |
---|
3602 | _ACEOF |
---|
3603 | cat confdefs.h >>conftest.$ac_ext |
---|
3604 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3605 | /* end confdefs.h. */ |
---|
3606 | #include <ac_nonexistent.h> |
---|
3607 | _ACEOF |
---|
3608 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3609 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3610 | ac_status=$? |
---|
3611 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3612 | rm -f conftest.er1 |
---|
3613 | cat conftest.err >&5 |
---|
3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3615 | (exit $ac_status); } >/dev/null; then |
---|
3616 | if test -s conftest.err; then |
---|
3617 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3618 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3619 | else |
---|
3620 | ac_cpp_err= |
---|
3621 | fi |
---|
3622 | else |
---|
3623 | ac_cpp_err=yes |
---|
3624 | fi |
---|
3625 | if test -z "$ac_cpp_err"; then |
---|
3626 | # Broken: success on invalid input. |
---|
3627 | continue |
---|
3628 | else |
---|
3629 | echo "$as_me: failed program was:" >&5 |
---|
3630 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3631 | |
---|
3632 | # Passes both tests. |
---|
3633 | ac_preproc_ok=: |
---|
3634 | break |
---|
3635 | fi |
---|
3636 | rm -f conftest.err conftest.$ac_ext |
---|
3637 | |
---|
3638 | done |
---|
3639 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3640 | rm -f conftest.err conftest.$ac_ext |
---|
3641 | if $ac_preproc_ok; then |
---|
3642 | : |
---|
3643 | else |
---|
3644 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3645 | See \`config.log' for more details." >&5 |
---|
3646 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3647 | See \`config.log' for more details." >&2;} |
---|
3648 | { (exit 1); exit 1; }; } |
---|
3649 | fi |
---|
3650 | |
---|
3651 | ac_ext=c |
---|
3652 | ac_cpp='$CPP $CPPFLAGS' |
---|
3653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3656 | |
---|
3657 | |
---|
3658 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3659 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3660 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3662 | else |
---|
3663 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3664 | then ac_cv_prog_egrep='grep -E' |
---|
3665 | else ac_cv_prog_egrep='egrep' |
---|
3666 | fi |
---|
3667 | fi |
---|
3668 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3669 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3670 | EGREP=$ac_cv_prog_egrep |
---|
3671 | |
---|
3672 | |
---|
3673 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3674 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3675 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3677 | else |
---|
3678 | cat >conftest.$ac_ext <<_ACEOF |
---|
3679 | /* confdefs.h. */ |
---|
3680 | _ACEOF |
---|
3681 | cat confdefs.h >>conftest.$ac_ext |
---|
3682 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3683 | /* end confdefs.h. */ |
---|
3684 | #include <stdlib.h> |
---|
3685 | #include <stdarg.h> |
---|
3686 | #include <string.h> |
---|
3687 | #include <float.h> |
---|
3688 | |
---|
3689 | int |
---|
3690 | main () |
---|
3691 | { |
---|
3692 | |
---|
3693 | ; |
---|
3694 | return 0; |
---|
3695 | } |
---|
3696 | _ACEOF |
---|
3697 | rm -f conftest.$ac_objext |
---|
3698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3699 | (eval $ac_compile) 2>conftest.er1 |
---|
3700 | ac_status=$? |
---|
3701 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3702 | rm -f conftest.er1 |
---|
3703 | cat conftest.err >&5 |
---|
3704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3705 | (exit $ac_status); } && |
---|
3706 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3707 | || test ! -s conftest.err' |
---|
3708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3709 | (eval $ac_try) 2>&5 |
---|
3710 | ac_status=$? |
---|
3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3712 | (exit $ac_status); }; } && |
---|
3713 | { ac_try='test -s conftest.$ac_objext' |
---|
3714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3715 | (eval $ac_try) 2>&5 |
---|
3716 | ac_status=$? |
---|
3717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3718 | (exit $ac_status); }; }; then |
---|
3719 | ac_cv_header_stdc=yes |
---|
3720 | else |
---|
3721 | echo "$as_me: failed program was:" >&5 |
---|
3722 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3723 | |
---|
3724 | ac_cv_header_stdc=no |
---|
3725 | fi |
---|
3726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3727 | |
---|
3728 | if test $ac_cv_header_stdc = yes; then |
---|
3729 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3730 | cat >conftest.$ac_ext <<_ACEOF |
---|
3731 | /* confdefs.h. */ |
---|
3732 | _ACEOF |
---|
3733 | cat confdefs.h >>conftest.$ac_ext |
---|
3734 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3735 | /* end confdefs.h. */ |
---|
3736 | #include <string.h> |
---|
3737 | |
---|
3738 | _ACEOF |
---|
3739 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3740 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3741 | : |
---|
3742 | else |
---|
3743 | ac_cv_header_stdc=no |
---|
3744 | fi |
---|
3745 | rm -f conftest* |
---|
3746 | |
---|
3747 | fi |
---|
3748 | |
---|
3749 | if test $ac_cv_header_stdc = yes; then |
---|
3750 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3751 | cat >conftest.$ac_ext <<_ACEOF |
---|
3752 | /* confdefs.h. */ |
---|
3753 | _ACEOF |
---|
3754 | cat confdefs.h >>conftest.$ac_ext |
---|
3755 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3756 | /* end confdefs.h. */ |
---|
3757 | #include <stdlib.h> |
---|
3758 | |
---|
3759 | _ACEOF |
---|
3760 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3761 | $EGREP "free" >/dev/null 2>&1; then |
---|
3762 | : |
---|
3763 | else |
---|
3764 | ac_cv_header_stdc=no |
---|
3765 | fi |
---|
3766 | rm -f conftest* |
---|
3767 | |
---|
3768 | fi |
---|
3769 | |
---|
3770 | if test $ac_cv_header_stdc = yes; then |
---|
3771 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3772 | if test "$cross_compiling" = yes; then |
---|
3773 | : |
---|
3774 | else |
---|
3775 | cat >conftest.$ac_ext <<_ACEOF |
---|
3776 | /* confdefs.h. */ |
---|
3777 | _ACEOF |
---|
3778 | cat confdefs.h >>conftest.$ac_ext |
---|
3779 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3780 | /* end confdefs.h. */ |
---|
3781 | #include <ctype.h> |
---|
3782 | #if ((' ' & 0x0FF) == 0x020) |
---|
3783 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3784 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3785 | #else |
---|
3786 | # define ISLOWER(c) \ |
---|
3787 | (('a' <= (c) && (c) <= 'i') \ |
---|
3788 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3789 | || ('s' <= (c) && (c) <= 'z')) |
---|
3790 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3791 | #endif |
---|
3792 | |
---|
3793 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3794 | int |
---|
3795 | main () |
---|
3796 | { |
---|
3797 | int i; |
---|
3798 | for (i = 0; i < 256; i++) |
---|
3799 | if (XOR (islower (i), ISLOWER (i)) |
---|
3800 | || toupper (i) != TOUPPER (i)) |
---|
3801 | exit(2); |
---|
3802 | exit (0); |
---|
3803 | } |
---|
3804 | _ACEOF |
---|
3805 | rm -f conftest$ac_exeext |
---|
3806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3807 | (eval $ac_link) 2>&5 |
---|
3808 | ac_status=$? |
---|
3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3810 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3812 | (eval $ac_try) 2>&5 |
---|
3813 | ac_status=$? |
---|
3814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3815 | (exit $ac_status); }; }; then |
---|
3816 | : |
---|
3817 | else |
---|
3818 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3819 | echo "$as_me: failed program was:" >&5 |
---|
3820 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3821 | |
---|
3822 | ( exit $ac_status ) |
---|
3823 | ac_cv_header_stdc=no |
---|
3824 | fi |
---|
3825 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3826 | fi |
---|
3827 | fi |
---|
3828 | fi |
---|
3829 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3830 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3831 | if test $ac_cv_header_stdc = yes; then |
---|
3832 | |
---|
3833 | cat >>confdefs.h <<\_ACEOF |
---|
3834 | #define STDC_HEADERS 1 |
---|
3835 | _ACEOF |
---|
3836 | |
---|
3837 | fi |
---|
3838 | |
---|
3839 | |
---|
3840 | ### CHECKING OPTIONAT ARGUMENTS |
---|
3841 | ## DEBUG-statement |
---|
3842 | DEBUG=no |
---|
3843 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
3844 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
3845 | # Check whether --enable-debug or --disable-debug was given. |
---|
3846 | if test "${enable_debug+set}" = set; then |
---|
3847 | enableval="$enable_debug" |
---|
3848 | DEBUG=yes |
---|
3849 | fi; |
---|
3850 | echo "$DEBUG" |
---|
3851 | if test "$DEBUG" = yes; then |
---|
3852 | |
---|
3853 | cat >>confdefs.h <<_ACEOF |
---|
3854 | #define DEBUG 1 |
---|
3855 | _ACEOF |
---|
3856 | |
---|
3857 | fi |
---|
3858 | |
---|
3859 | |
---|
3860 | |
---|
3861 | ## GTK-disabled |
---|
3862 | def_gtk=yes |
---|
3863 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
3864 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
3865 | |
---|
3866 | # Check whether --with-gtk or --without-gtk was given. |
---|
3867 | if test "${with_gtk+set}" = set; then |
---|
3868 | withval="$with_gtk" |
---|
3869 | def_gtk=no |
---|
3870 | fi; |
---|
3871 | if test "$def_gtk" = yes; then |
---|
3872 | echo "yes" |
---|
3873 | fi |
---|
3874 | if test "$def_gtk" = no; then |
---|
3875 | echo "no" |
---|
3876 | fi |
---|
3877 | ### SDL_image-disable |
---|
3878 | def_sdl_image=yes |
---|
3879 | echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 |
---|
3880 | echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 |
---|
3881 | |
---|
3882 | # Check whether --with-sdl_image or --without-sdl_image was given. |
---|
3883 | if test "${with_sdl_image+set}" = set; then |
---|
3884 | withval="$with_sdl_image" |
---|
3885 | def_sdl_image=no |
---|
3886 | fi; |
---|
3887 | if test "$def_sdl_image" = yes; then |
---|
3888 | echo "yes" |
---|
3889 | fi |
---|
3890 | if test "$def_sdl_image" = no; then |
---|
3891 | echo "no" |
---|
3892 | fi |
---|
3893 | |
---|
3894 | ### CHECKING FOR SYSTEM ### |
---|
3895 | |
---|
3896 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
3897 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
3898 | ## checking for openGL-environment and other sys-specific parameters |
---|
3899 | case "$target" in |
---|
3900 | ### WINDOWS ### |
---|
3901 | *-*-mingw32*) |
---|
3902 | echo "mingw-WINDOWS detected" |
---|
3903 | |
---|
3904 | mingw="yes" |
---|
3905 | MSBITFIELDS="-mms-bitfields" |
---|
3906 | MWINDOWS="-mwindows" |
---|
3907 | |
---|
3908 | # checking gl header |
---|
3909 | #done before loop |
---|
3910 | |
---|
3911 | # checking gl header |
---|
3912 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3913 | |
---|
3914 | |
---|
3915 | |
---|
3916 | |
---|
3917 | |
---|
3918 | |
---|
3919 | |
---|
3920 | |
---|
3921 | |
---|
3922 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3923 | inttypes.h stdint.h unistd.h |
---|
3924 | do |
---|
3925 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3926 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3930 | else |
---|
3931 | cat >conftest.$ac_ext <<_ACEOF |
---|
3932 | /* confdefs.h. */ |
---|
3933 | _ACEOF |
---|
3934 | cat confdefs.h >>conftest.$ac_ext |
---|
3935 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3936 | /* end confdefs.h. */ |
---|
3937 | $ac_includes_default |
---|
3938 | |
---|
3939 | #include <$ac_header> |
---|
3940 | _ACEOF |
---|
3941 | rm -f conftest.$ac_objext |
---|
3942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3943 | (eval $ac_compile) 2>conftest.er1 |
---|
3944 | ac_status=$? |
---|
3945 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3946 | rm -f conftest.er1 |
---|
3947 | cat conftest.err >&5 |
---|
3948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3949 | (exit $ac_status); } && |
---|
3950 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3951 | || test ! -s conftest.err' |
---|
3952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3953 | (eval $ac_try) 2>&5 |
---|
3954 | ac_status=$? |
---|
3955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3956 | (exit $ac_status); }; } && |
---|
3957 | { ac_try='test -s conftest.$ac_objext' |
---|
3958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3959 | (eval $ac_try) 2>&5 |
---|
3960 | ac_status=$? |
---|
3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3962 | (exit $ac_status); }; }; then |
---|
3963 | eval "$as_ac_Header=yes" |
---|
3964 | else |
---|
3965 | echo "$as_me: failed program was:" >&5 |
---|
3966 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3967 | |
---|
3968 | eval "$as_ac_Header=no" |
---|
3969 | fi |
---|
3970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3971 | fi |
---|
3972 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3973 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3974 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3975 | cat >>confdefs.h <<_ACEOF |
---|
3976 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3977 | _ACEOF |
---|
3978 | |
---|
3979 | fi |
---|
3980 | |
---|
3981 | done |
---|
3982 | |
---|
3983 | |
---|
3984 | |
---|
3985 | for ac_header in GL/gl.h |
---|
3986 | do |
---|
3987 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3988 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3989 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3990 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3991 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3993 | fi |
---|
3994 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3995 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3996 | else |
---|
3997 | # Is the header compilable? |
---|
3998 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3999 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4000 | cat >conftest.$ac_ext <<_ACEOF |
---|
4001 | /* confdefs.h. */ |
---|
4002 | _ACEOF |
---|
4003 | cat confdefs.h >>conftest.$ac_ext |
---|
4004 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4005 | /* end confdefs.h. */ |
---|
4006 | $ac_includes_default |
---|
4007 | #include <$ac_header> |
---|
4008 | _ACEOF |
---|
4009 | rm -f conftest.$ac_objext |
---|
4010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4011 | (eval $ac_compile) 2>conftest.er1 |
---|
4012 | ac_status=$? |
---|
4013 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4014 | rm -f conftest.er1 |
---|
4015 | cat conftest.err >&5 |
---|
4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4017 | (exit $ac_status); } && |
---|
4018 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4019 | || test ! -s conftest.err' |
---|
4020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4021 | (eval $ac_try) 2>&5 |
---|
4022 | ac_status=$? |
---|
4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4024 | (exit $ac_status); }; } && |
---|
4025 | { ac_try='test -s conftest.$ac_objext' |
---|
4026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4027 | (eval $ac_try) 2>&5 |
---|
4028 | ac_status=$? |
---|
4029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4030 | (exit $ac_status); }; }; then |
---|
4031 | ac_header_compiler=yes |
---|
4032 | else |
---|
4033 | echo "$as_me: failed program was:" >&5 |
---|
4034 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4035 | |
---|
4036 | ac_header_compiler=no |
---|
4037 | fi |
---|
4038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4039 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4040 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4041 | |
---|
4042 | # Is the header present? |
---|
4043 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4044 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4045 | cat >conftest.$ac_ext <<_ACEOF |
---|
4046 | /* confdefs.h. */ |
---|
4047 | _ACEOF |
---|
4048 | cat confdefs.h >>conftest.$ac_ext |
---|
4049 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4050 | /* end confdefs.h. */ |
---|
4051 | #include <$ac_header> |
---|
4052 | _ACEOF |
---|
4053 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4054 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4055 | ac_status=$? |
---|
4056 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4057 | rm -f conftest.er1 |
---|
4058 | cat conftest.err >&5 |
---|
4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4060 | (exit $ac_status); } >/dev/null; then |
---|
4061 | if test -s conftest.err; then |
---|
4062 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4063 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4064 | else |
---|
4065 | ac_cpp_err= |
---|
4066 | fi |
---|
4067 | else |
---|
4068 | ac_cpp_err=yes |
---|
4069 | fi |
---|
4070 | if test -z "$ac_cpp_err"; then |
---|
4071 | ac_header_preproc=yes |
---|
4072 | else |
---|
4073 | echo "$as_me: failed program was:" >&5 |
---|
4074 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4075 | |
---|
4076 | ac_header_preproc=no |
---|
4077 | fi |
---|
4078 | rm -f conftest.err conftest.$ac_ext |
---|
4079 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4080 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4081 | |
---|
4082 | # So? What about this header? |
---|
4083 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4084 | yes:no: ) |
---|
4085 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4086 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4087 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4088 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4089 | ac_header_preproc=yes |
---|
4090 | ;; |
---|
4091 | no:yes:* ) |
---|
4092 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4093 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4094 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4095 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4096 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4097 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4098 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4099 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4100 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4101 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4102 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4103 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4104 | ( |
---|
4105 | cat <<\_ASBOX |
---|
4106 | ## ------------------------------------------- ## |
---|
4107 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4108 | ## ------------------------------------------- ## |
---|
4109 | _ASBOX |
---|
4110 | ) | |
---|
4111 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4112 | ;; |
---|
4113 | esac |
---|
4114 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4115 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4116 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4118 | else |
---|
4119 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4120 | fi |
---|
4121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4122 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4123 | |
---|
4124 | fi |
---|
4125 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4126 | cat >>confdefs.h <<_ACEOF |
---|
4127 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4128 | _ACEOF |
---|
4129 | |
---|
4130 | else |
---|
4131 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4132 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4133 | { (exit 1); exit 1; }; } |
---|
4134 | fi |
---|
4135 | |
---|
4136 | done |
---|
4137 | |
---|
4138 | # checking for Windows openGl library |
---|
4139 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4140 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4141 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4143 | else |
---|
4144 | ac_check_lib_save_LIBS=$LIBS |
---|
4145 | LIBS="-lopengl32 $LIBS" |
---|
4146 | cat >conftest.$ac_ext <<_ACEOF |
---|
4147 | /* confdefs.h. */ |
---|
4148 | _ACEOF |
---|
4149 | cat confdefs.h >>conftest.$ac_ext |
---|
4150 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4151 | /* end confdefs.h. */ |
---|
4152 | |
---|
4153 | |
---|
4154 | int |
---|
4155 | main () |
---|
4156 | { |
---|
4157 | main (); |
---|
4158 | ; |
---|
4159 | return 0; |
---|
4160 | } |
---|
4161 | _ACEOF |
---|
4162 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4164 | (eval $ac_link) 2>conftest.er1 |
---|
4165 | ac_status=$? |
---|
4166 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4167 | rm -f conftest.er1 |
---|
4168 | cat conftest.err >&5 |
---|
4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4170 | (exit $ac_status); } && |
---|
4171 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4172 | || test ! -s conftest.err' |
---|
4173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4174 | (eval $ac_try) 2>&5 |
---|
4175 | ac_status=$? |
---|
4176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4177 | (exit $ac_status); }; } && |
---|
4178 | { ac_try='test -s conftest$ac_exeext' |
---|
4179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4180 | (eval $ac_try) 2>&5 |
---|
4181 | ac_status=$? |
---|
4182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4183 | (exit $ac_status); }; }; then |
---|
4184 | ac_cv_lib_opengl32_main=yes |
---|
4185 | else |
---|
4186 | echo "$as_me: failed program was:" >&5 |
---|
4187 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4188 | |
---|
4189 | ac_cv_lib_opengl32_main=no |
---|
4190 | fi |
---|
4191 | rm -f conftest.err conftest.$ac_objext \ |
---|
4192 | conftest$ac_exeext conftest.$ac_ext |
---|
4193 | LIBS=$ac_check_lib_save_LIBS |
---|
4194 | fi |
---|
4195 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4196 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4197 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4198 | FOUND_opengl32=yes |
---|
4199 | else |
---|
4200 | "gl/gl.h" |
---|
4201 | fi |
---|
4202 | |
---|
4203 | if test "$FOUND_opengl32" = "yes" ; then |
---|
4204 | LIBS="$LIBS -lopengl32" |
---|
4205 | else |
---|
4206 | echo "------------------" |
---|
4207 | echo "opengl not found." |
---|
4208 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4209 | echo "------------------" |
---|
4210 | exit -1 |
---|
4211 | fi |
---|
4212 | |
---|
4213 | # cheking for GLU-header |
---|
4214 | |
---|
4215 | for ac_header in GL/glu.h |
---|
4216 | do |
---|
4217 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4223 | fi |
---|
4224 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4225 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4226 | else |
---|
4227 | # Is the header compilable? |
---|
4228 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4229 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4230 | cat >conftest.$ac_ext <<_ACEOF |
---|
4231 | /* confdefs.h. */ |
---|
4232 | _ACEOF |
---|
4233 | cat confdefs.h >>conftest.$ac_ext |
---|
4234 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4235 | /* end confdefs.h. */ |
---|
4236 | $ac_includes_default |
---|
4237 | #include <$ac_header> |
---|
4238 | _ACEOF |
---|
4239 | rm -f conftest.$ac_objext |
---|
4240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4241 | (eval $ac_compile) 2>conftest.er1 |
---|
4242 | ac_status=$? |
---|
4243 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4244 | rm -f conftest.er1 |
---|
4245 | cat conftest.err >&5 |
---|
4246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4247 | (exit $ac_status); } && |
---|
4248 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4249 | || test ! -s conftest.err' |
---|
4250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4251 | (eval $ac_try) 2>&5 |
---|
4252 | ac_status=$? |
---|
4253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4254 | (exit $ac_status); }; } && |
---|
4255 | { ac_try='test -s conftest.$ac_objext' |
---|
4256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4257 | (eval $ac_try) 2>&5 |
---|
4258 | ac_status=$? |
---|
4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4260 | (exit $ac_status); }; }; then |
---|
4261 | ac_header_compiler=yes |
---|
4262 | else |
---|
4263 | echo "$as_me: failed program was:" >&5 |
---|
4264 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4265 | |
---|
4266 | ac_header_compiler=no |
---|
4267 | fi |
---|
4268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4269 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4270 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4271 | |
---|
4272 | # Is the header present? |
---|
4273 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4274 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4275 | cat >conftest.$ac_ext <<_ACEOF |
---|
4276 | /* confdefs.h. */ |
---|
4277 | _ACEOF |
---|
4278 | cat confdefs.h >>conftest.$ac_ext |
---|
4279 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4280 | /* end confdefs.h. */ |
---|
4281 | #include <$ac_header> |
---|
4282 | _ACEOF |
---|
4283 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4284 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4285 | ac_status=$? |
---|
4286 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4287 | rm -f conftest.er1 |
---|
4288 | cat conftest.err >&5 |
---|
4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4290 | (exit $ac_status); } >/dev/null; then |
---|
4291 | if test -s conftest.err; then |
---|
4292 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4293 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4294 | else |
---|
4295 | ac_cpp_err= |
---|
4296 | fi |
---|
4297 | else |
---|
4298 | ac_cpp_err=yes |
---|
4299 | fi |
---|
4300 | if test -z "$ac_cpp_err"; then |
---|
4301 | ac_header_preproc=yes |
---|
4302 | else |
---|
4303 | echo "$as_me: failed program was:" >&5 |
---|
4304 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4305 | |
---|
4306 | ac_header_preproc=no |
---|
4307 | fi |
---|
4308 | rm -f conftest.err conftest.$ac_ext |
---|
4309 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4310 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4311 | |
---|
4312 | # So? What about this header? |
---|
4313 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4314 | yes:no: ) |
---|
4315 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4316 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4317 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4318 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4319 | ac_header_preproc=yes |
---|
4320 | ;; |
---|
4321 | no:yes:* ) |
---|
4322 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4323 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4324 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4325 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4326 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4327 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4328 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4329 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4330 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4331 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4332 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4333 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4334 | ( |
---|
4335 | cat <<\_ASBOX |
---|
4336 | ## ------------------------------------------- ## |
---|
4337 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4338 | ## ------------------------------------------- ## |
---|
4339 | _ASBOX |
---|
4340 | ) | |
---|
4341 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4342 | ;; |
---|
4343 | esac |
---|
4344 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4345 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4346 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4348 | else |
---|
4349 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4350 | fi |
---|
4351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4352 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4353 | |
---|
4354 | fi |
---|
4355 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4356 | cat >>confdefs.h <<_ACEOF |
---|
4357 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4358 | _ACEOF |
---|
4359 | |
---|
4360 | else |
---|
4361 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4362 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4363 | { (exit 1); exit 1; }; } |
---|
4364 | fi |
---|
4365 | |
---|
4366 | done |
---|
4367 | |
---|
4368 | |
---|
4369 | # checking for libGLU |
---|
4370 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4371 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4372 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4374 | else |
---|
4375 | ac_check_lib_save_LIBS=$LIBS |
---|
4376 | LIBS="-lglu32 $LIBS" |
---|
4377 | cat >conftest.$ac_ext <<_ACEOF |
---|
4378 | /* confdefs.h. */ |
---|
4379 | _ACEOF |
---|
4380 | cat confdefs.h >>conftest.$ac_ext |
---|
4381 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4382 | /* end confdefs.h. */ |
---|
4383 | |
---|
4384 | |
---|
4385 | int |
---|
4386 | main () |
---|
4387 | { |
---|
4388 | main (); |
---|
4389 | ; |
---|
4390 | return 0; |
---|
4391 | } |
---|
4392 | _ACEOF |
---|
4393 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4395 | (eval $ac_link) 2>conftest.er1 |
---|
4396 | ac_status=$? |
---|
4397 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4398 | rm -f conftest.er1 |
---|
4399 | cat conftest.err >&5 |
---|
4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4401 | (exit $ac_status); } && |
---|
4402 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4403 | || test ! -s conftest.err' |
---|
4404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4405 | (eval $ac_try) 2>&5 |
---|
4406 | ac_status=$? |
---|
4407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4408 | (exit $ac_status); }; } && |
---|
4409 | { ac_try='test -s conftest$ac_exeext' |
---|
4410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4411 | (eval $ac_try) 2>&5 |
---|
4412 | ac_status=$? |
---|
4413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4414 | (exit $ac_status); }; }; then |
---|
4415 | ac_cv_lib_glu32_main=yes |
---|
4416 | else |
---|
4417 | echo "$as_me: failed program was:" >&5 |
---|
4418 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4419 | |
---|
4420 | ac_cv_lib_glu32_main=no |
---|
4421 | fi |
---|
4422 | rm -f conftest.err conftest.$ac_objext \ |
---|
4423 | conftest$ac_exeext conftest.$ac_ext |
---|
4424 | LIBS=$ac_check_lib_save_LIBS |
---|
4425 | fi |
---|
4426 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4427 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4428 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4429 | FOUND_glu32=yes |
---|
4430 | fi |
---|
4431 | |
---|
4432 | if test "$FOUND_glu32" = "yes" ; then |
---|
4433 | LIBS="$LIBS -lGLU32" |
---|
4434 | else |
---|
4435 | echo "------------------" |
---|
4436 | echo "GLU library not found." |
---|
4437 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4438 | echo "------------------" |
---|
4439 | exit -1 |
---|
4440 | fi |
---|
4441 | |
---|
4442 | # checking for mingw32 |
---|
4443 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4444 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4445 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4447 | else |
---|
4448 | ac_check_lib_save_LIBS=$LIBS |
---|
4449 | LIBS="-lmingw32 $LIBS" |
---|
4450 | cat >conftest.$ac_ext <<_ACEOF |
---|
4451 | /* confdefs.h. */ |
---|
4452 | _ACEOF |
---|
4453 | cat confdefs.h >>conftest.$ac_ext |
---|
4454 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4455 | /* end confdefs.h. */ |
---|
4456 | |
---|
4457 | |
---|
4458 | int |
---|
4459 | main () |
---|
4460 | { |
---|
4461 | main (); |
---|
4462 | ; |
---|
4463 | return 0; |
---|
4464 | } |
---|
4465 | _ACEOF |
---|
4466 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4468 | (eval $ac_link) 2>conftest.er1 |
---|
4469 | ac_status=$? |
---|
4470 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4471 | rm -f conftest.er1 |
---|
4472 | cat conftest.err >&5 |
---|
4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4474 | (exit $ac_status); } && |
---|
4475 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4476 | || test ! -s conftest.err' |
---|
4477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4478 | (eval $ac_try) 2>&5 |
---|
4479 | ac_status=$? |
---|
4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4481 | (exit $ac_status); }; } && |
---|
4482 | { ac_try='test -s conftest$ac_exeext' |
---|
4483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4484 | (eval $ac_try) 2>&5 |
---|
4485 | ac_status=$? |
---|
4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4487 | (exit $ac_status); }; }; then |
---|
4488 | ac_cv_lib_mingw32_main=yes |
---|
4489 | else |
---|
4490 | echo "$as_me: failed program was:" >&5 |
---|
4491 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4492 | |
---|
4493 | ac_cv_lib_mingw32_main=no |
---|
4494 | fi |
---|
4495 | rm -f conftest.err conftest.$ac_objext \ |
---|
4496 | conftest$ac_exeext conftest.$ac_ext |
---|
4497 | LIBS=$ac_check_lib_save_LIBS |
---|
4498 | fi |
---|
4499 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4500 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4501 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4502 | FOUND_mingw32=yes |
---|
4503 | fi |
---|
4504 | |
---|
4505 | if test $FOUND_mingw32 = "yes"; then |
---|
4506 | LIBS="$LIBS -lmingw32" |
---|
4507 | fi |
---|
4508 | # checking for SDL-headers |
---|
4509 | |
---|
4510 | for ac_header in SDL/SDL.h |
---|
4511 | do |
---|
4512 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4514 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4515 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4516 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4518 | fi |
---|
4519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4520 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4521 | else |
---|
4522 | # Is the header compilable? |
---|
4523 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4524 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4525 | cat >conftest.$ac_ext <<_ACEOF |
---|
4526 | /* confdefs.h. */ |
---|
4527 | _ACEOF |
---|
4528 | cat confdefs.h >>conftest.$ac_ext |
---|
4529 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4530 | /* end confdefs.h. */ |
---|
4531 | $ac_includes_default |
---|
4532 | #include <$ac_header> |
---|
4533 | _ACEOF |
---|
4534 | rm -f conftest.$ac_objext |
---|
4535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4536 | (eval $ac_compile) 2>conftest.er1 |
---|
4537 | ac_status=$? |
---|
4538 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4539 | rm -f conftest.er1 |
---|
4540 | cat conftest.err >&5 |
---|
4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4542 | (exit $ac_status); } && |
---|
4543 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4544 | || test ! -s conftest.err' |
---|
4545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4546 | (eval $ac_try) 2>&5 |
---|
4547 | ac_status=$? |
---|
4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4549 | (exit $ac_status); }; } && |
---|
4550 | { ac_try='test -s conftest.$ac_objext' |
---|
4551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4552 | (eval $ac_try) 2>&5 |
---|
4553 | ac_status=$? |
---|
4554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4555 | (exit $ac_status); }; }; then |
---|
4556 | ac_header_compiler=yes |
---|
4557 | else |
---|
4558 | echo "$as_me: failed program was:" >&5 |
---|
4559 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4560 | |
---|
4561 | ac_header_compiler=no |
---|
4562 | fi |
---|
4563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4564 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4565 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4566 | |
---|
4567 | # Is the header present? |
---|
4568 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4569 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4570 | cat >conftest.$ac_ext <<_ACEOF |
---|
4571 | /* confdefs.h. */ |
---|
4572 | _ACEOF |
---|
4573 | cat confdefs.h >>conftest.$ac_ext |
---|
4574 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4575 | /* end confdefs.h. */ |
---|
4576 | #include <$ac_header> |
---|
4577 | _ACEOF |
---|
4578 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4579 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4580 | ac_status=$? |
---|
4581 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4582 | rm -f conftest.er1 |
---|
4583 | cat conftest.err >&5 |
---|
4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4585 | (exit $ac_status); } >/dev/null; then |
---|
4586 | if test -s conftest.err; then |
---|
4587 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4588 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4589 | else |
---|
4590 | ac_cpp_err= |
---|
4591 | fi |
---|
4592 | else |
---|
4593 | ac_cpp_err=yes |
---|
4594 | fi |
---|
4595 | if test -z "$ac_cpp_err"; then |
---|
4596 | ac_header_preproc=yes |
---|
4597 | else |
---|
4598 | echo "$as_me: failed program was:" >&5 |
---|
4599 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4600 | |
---|
4601 | ac_header_preproc=no |
---|
4602 | fi |
---|
4603 | rm -f conftest.err conftest.$ac_ext |
---|
4604 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4605 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4606 | |
---|
4607 | # So? What about this header? |
---|
4608 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4609 | yes:no: ) |
---|
4610 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4611 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4612 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4613 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4614 | ac_header_preproc=yes |
---|
4615 | ;; |
---|
4616 | no:yes:* ) |
---|
4617 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4618 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4619 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4620 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4621 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4622 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4623 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4624 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4625 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4626 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4627 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4628 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4629 | ( |
---|
4630 | cat <<\_ASBOX |
---|
4631 | ## ------------------------------------------- ## |
---|
4632 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4633 | ## ------------------------------------------- ## |
---|
4634 | _ASBOX |
---|
4635 | ) | |
---|
4636 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4637 | ;; |
---|
4638 | esac |
---|
4639 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4643 | else |
---|
4644 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4645 | fi |
---|
4646 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4647 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4648 | |
---|
4649 | fi |
---|
4650 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4651 | cat >>confdefs.h <<_ACEOF |
---|
4652 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4653 | _ACEOF |
---|
4654 | |
---|
4655 | else |
---|
4656 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4657 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4658 | { (exit 1); exit 1; }; } |
---|
4659 | fi |
---|
4660 | |
---|
4661 | done |
---|
4662 | |
---|
4663 | |
---|
4664 | #checking for libSDL |
---|
4665 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
4666 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
4667 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
4668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4669 | else |
---|
4670 | ac_check_lib_save_LIBS=$LIBS |
---|
4671 | LIBS="-lsdlmain $LIBS" |
---|
4672 | cat >conftest.$ac_ext <<_ACEOF |
---|
4673 | /* confdefs.h. */ |
---|
4674 | _ACEOF |
---|
4675 | cat confdefs.h >>conftest.$ac_ext |
---|
4676 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4677 | /* end confdefs.h. */ |
---|
4678 | |
---|
4679 | |
---|
4680 | int |
---|
4681 | main () |
---|
4682 | { |
---|
4683 | main (); |
---|
4684 | ; |
---|
4685 | return 0; |
---|
4686 | } |
---|
4687 | _ACEOF |
---|
4688 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4690 | (eval $ac_link) 2>conftest.er1 |
---|
4691 | ac_status=$? |
---|
4692 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4693 | rm -f conftest.er1 |
---|
4694 | cat conftest.err >&5 |
---|
4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4696 | (exit $ac_status); } && |
---|
4697 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4698 | || test ! -s conftest.err' |
---|
4699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4700 | (eval $ac_try) 2>&5 |
---|
4701 | ac_status=$? |
---|
4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4703 | (exit $ac_status); }; } && |
---|
4704 | { ac_try='test -s conftest$ac_exeext' |
---|
4705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4706 | (eval $ac_try) 2>&5 |
---|
4707 | ac_status=$? |
---|
4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4709 | (exit $ac_status); }; }; then |
---|
4710 | ac_cv_lib_sdlmain_main=yes |
---|
4711 | else |
---|
4712 | echo "$as_me: failed program was:" >&5 |
---|
4713 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4714 | |
---|
4715 | ac_cv_lib_sdlmain_main=no |
---|
4716 | fi |
---|
4717 | rm -f conftest.err conftest.$ac_objext \ |
---|
4718 | conftest$ac_exeext conftest.$ac_ext |
---|
4719 | LIBS=$ac_check_lib_save_LIBS |
---|
4720 | fi |
---|
4721 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
4722 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
4723 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
4724 | FOUND_sdlmain=yes |
---|
4725 | fi |
---|
4726 | |
---|
4727 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
4728 | LIBS="$LIBS -lsdlmain" |
---|
4729 | else |
---|
4730 | echo "------------------" |
---|
4731 | echo "SDL library not found." |
---|
4732 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4733 | echo "------------------" |
---|
4734 | exit 1 |
---|
4735 | fi |
---|
4736 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
4737 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
4738 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
4739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4740 | else |
---|
4741 | ac_check_lib_save_LIBS=$LIBS |
---|
4742 | LIBS="-lsdl $LIBS" |
---|
4743 | cat >conftest.$ac_ext <<_ACEOF |
---|
4744 | /* confdefs.h. */ |
---|
4745 | _ACEOF |
---|
4746 | cat confdefs.h >>conftest.$ac_ext |
---|
4747 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4748 | /* end confdefs.h. */ |
---|
4749 | |
---|
4750 | |
---|
4751 | int |
---|
4752 | main () |
---|
4753 | { |
---|
4754 | main (); |
---|
4755 | ; |
---|
4756 | return 0; |
---|
4757 | } |
---|
4758 | _ACEOF |
---|
4759 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4761 | (eval $ac_link) 2>conftest.er1 |
---|
4762 | ac_status=$? |
---|
4763 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4764 | rm -f conftest.er1 |
---|
4765 | cat conftest.err >&5 |
---|
4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4767 | (exit $ac_status); } && |
---|
4768 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4769 | || test ! -s conftest.err' |
---|
4770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4771 | (eval $ac_try) 2>&5 |
---|
4772 | ac_status=$? |
---|
4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4774 | (exit $ac_status); }; } && |
---|
4775 | { ac_try='test -s conftest$ac_exeext' |
---|
4776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4777 | (eval $ac_try) 2>&5 |
---|
4778 | ac_status=$? |
---|
4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4780 | (exit $ac_status); }; }; then |
---|
4781 | ac_cv_lib_sdl_main=yes |
---|
4782 | else |
---|
4783 | echo "$as_me: failed program was:" >&5 |
---|
4784 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4785 | |
---|
4786 | ac_cv_lib_sdl_main=no |
---|
4787 | fi |
---|
4788 | rm -f conftest.err conftest.$ac_objext \ |
---|
4789 | conftest$ac_exeext conftest.$ac_ext |
---|
4790 | LIBS=$ac_check_lib_save_LIBS |
---|
4791 | fi |
---|
4792 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
4793 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
4794 | if test $ac_cv_lib_sdl_main = yes; then |
---|
4795 | FOUND_sdl=yes |
---|
4796 | fi |
---|
4797 | |
---|
4798 | if test "$FOUND_sdl" = "yes" ; then |
---|
4799 | LIBS="$LIBS -lsdl" |
---|
4800 | else |
---|
4801 | echo "------------------" |
---|
4802 | echo "SDL library not found." |
---|
4803 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4804 | echo "------------------" |
---|
4805 | exit -1 |
---|
4806 | fi |
---|
4807 | |
---|
4808 | ;; |
---|
4809 | |
---|
4810 | ### LINUX ### |
---|
4811 | *-*-linux*) |
---|
4812 | echo "Linux detected" |
---|
4813 | |
---|
4814 | Linux="yes" |
---|
4815 | |
---|
4816 | CPPFLAGS="-I/usr/X11R6/include" |
---|
4817 | LDFLAGS="-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
4818 | # checking gl header |
---|
4819 | |
---|
4820 | for ac_header in GL/gl.h |
---|
4821 | do |
---|
4822 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4824 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4828 | fi |
---|
4829 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4830 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4831 | else |
---|
4832 | # Is the header compilable? |
---|
4833 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4834 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4835 | cat >conftest.$ac_ext <<_ACEOF |
---|
4836 | /* confdefs.h. */ |
---|
4837 | _ACEOF |
---|
4838 | cat confdefs.h >>conftest.$ac_ext |
---|
4839 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4840 | /* end confdefs.h. */ |
---|
4841 | $ac_includes_default |
---|
4842 | #include <$ac_header> |
---|
4843 | _ACEOF |
---|
4844 | rm -f conftest.$ac_objext |
---|
4845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4846 | (eval $ac_compile) 2>conftest.er1 |
---|
4847 | ac_status=$? |
---|
4848 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4849 | rm -f conftest.er1 |
---|
4850 | cat conftest.err >&5 |
---|
4851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4852 | (exit $ac_status); } && |
---|
4853 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4854 | || test ! -s conftest.err' |
---|
4855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4856 | (eval $ac_try) 2>&5 |
---|
4857 | ac_status=$? |
---|
4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4859 | (exit $ac_status); }; } && |
---|
4860 | { ac_try='test -s conftest.$ac_objext' |
---|
4861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4862 | (eval $ac_try) 2>&5 |
---|
4863 | ac_status=$? |
---|
4864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4865 | (exit $ac_status); }; }; then |
---|
4866 | ac_header_compiler=yes |
---|
4867 | else |
---|
4868 | echo "$as_me: failed program was:" >&5 |
---|
4869 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4870 | |
---|
4871 | ac_header_compiler=no |
---|
4872 | fi |
---|
4873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4874 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4875 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4876 | |
---|
4877 | # Is the header present? |
---|
4878 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4879 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4880 | cat >conftest.$ac_ext <<_ACEOF |
---|
4881 | /* confdefs.h. */ |
---|
4882 | _ACEOF |
---|
4883 | cat confdefs.h >>conftest.$ac_ext |
---|
4884 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4885 | /* end confdefs.h. */ |
---|
4886 | #include <$ac_header> |
---|
4887 | _ACEOF |
---|
4888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4890 | ac_status=$? |
---|
4891 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4892 | rm -f conftest.er1 |
---|
4893 | cat conftest.err >&5 |
---|
4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4895 | (exit $ac_status); } >/dev/null; then |
---|
4896 | if test -s conftest.err; then |
---|
4897 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4898 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4899 | else |
---|
4900 | ac_cpp_err= |
---|
4901 | fi |
---|
4902 | else |
---|
4903 | ac_cpp_err=yes |
---|
4904 | fi |
---|
4905 | if test -z "$ac_cpp_err"; then |
---|
4906 | ac_header_preproc=yes |
---|
4907 | else |
---|
4908 | echo "$as_me: failed program was:" >&5 |
---|
4909 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4910 | |
---|
4911 | ac_header_preproc=no |
---|
4912 | fi |
---|
4913 | rm -f conftest.err conftest.$ac_ext |
---|
4914 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4915 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4916 | |
---|
4917 | # So? What about this header? |
---|
4918 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4919 | yes:no: ) |
---|
4920 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4921 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4922 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4923 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4924 | ac_header_preproc=yes |
---|
4925 | ;; |
---|
4926 | no:yes:* ) |
---|
4927 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4928 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4929 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4930 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4931 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4932 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4933 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4934 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4935 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4936 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4937 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4938 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4939 | ( |
---|
4940 | cat <<\_ASBOX |
---|
4941 | ## ------------------------------------------- ## |
---|
4942 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4943 | ## ------------------------------------------- ## |
---|
4944 | _ASBOX |
---|
4945 | ) | |
---|
4946 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4947 | ;; |
---|
4948 | esac |
---|
4949 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4953 | else |
---|
4954 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4955 | fi |
---|
4956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4957 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4958 | |
---|
4959 | fi |
---|
4960 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4961 | cat >>confdefs.h <<_ACEOF |
---|
4962 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4963 | _ACEOF |
---|
4964 | |
---|
4965 | else |
---|
4966 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4967 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4968 | { (exit 1); exit 1; }; } |
---|
4969 | fi |
---|
4970 | |
---|
4971 | done |
---|
4972 | |
---|
4973 | |
---|
4974 | # checking for Unix GL |
---|
4975 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
4976 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
4977 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
4978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4979 | else |
---|
4980 | ac_check_lib_save_LIBS=$LIBS |
---|
4981 | LIBS="-lGL $LIBS" |
---|
4982 | cat >conftest.$ac_ext <<_ACEOF |
---|
4983 | /* confdefs.h. */ |
---|
4984 | _ACEOF |
---|
4985 | cat confdefs.h >>conftest.$ac_ext |
---|
4986 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4987 | /* end confdefs.h. */ |
---|
4988 | |
---|
4989 | |
---|
4990 | int |
---|
4991 | main () |
---|
4992 | { |
---|
4993 | main (); |
---|
4994 | ; |
---|
4995 | return 0; |
---|
4996 | } |
---|
4997 | _ACEOF |
---|
4998 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5000 | (eval $ac_link) 2>conftest.er1 |
---|
5001 | ac_status=$? |
---|
5002 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5003 | rm -f conftest.er1 |
---|
5004 | cat conftest.err >&5 |
---|
5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5006 | (exit $ac_status); } && |
---|
5007 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5008 | || test ! -s conftest.err' |
---|
5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5010 | (eval $ac_try) 2>&5 |
---|
5011 | ac_status=$? |
---|
5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5013 | (exit $ac_status); }; } && |
---|
5014 | { ac_try='test -s conftest$ac_exeext' |
---|
5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5016 | (eval $ac_try) 2>&5 |
---|
5017 | ac_status=$? |
---|
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5019 | (exit $ac_status); }; }; then |
---|
5020 | ac_cv_lib_GL_main=yes |
---|
5021 | else |
---|
5022 | echo "$as_me: failed program was:" >&5 |
---|
5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5024 | |
---|
5025 | ac_cv_lib_GL_main=no |
---|
5026 | fi |
---|
5027 | rm -f conftest.err conftest.$ac_objext \ |
---|
5028 | conftest$ac_exeext conftest.$ac_ext |
---|
5029 | LIBS=$ac_check_lib_save_LIBS |
---|
5030 | fi |
---|
5031 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
5032 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
5033 | if test $ac_cv_lib_GL_main = yes; then |
---|
5034 | FOUND_GL=yes |
---|
5035 | fi |
---|
5036 | |
---|
5037 | if test "$FOUND_GL" = "yes" ; then |
---|
5038 | LIBS="$LIBS -lGL" |
---|
5039 | else |
---|
5040 | echo "------------------" |
---|
5041 | echo "opengl not found." |
---|
5042 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
5043 | echo "------------------" |
---|
5044 | exit -1 |
---|
5045 | fi |
---|
5046 | |
---|
5047 | # cheking for GLU-header |
---|
5048 | |
---|
5049 | for ac_header in GL/glu.h |
---|
5050 | do |
---|
5051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5057 | fi |
---|
5058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5060 | else |
---|
5061 | # Is the header compilable? |
---|
5062 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5064 | cat >conftest.$ac_ext <<_ACEOF |
---|
5065 | /* confdefs.h. */ |
---|
5066 | _ACEOF |
---|
5067 | cat confdefs.h >>conftest.$ac_ext |
---|
5068 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5069 | /* end confdefs.h. */ |
---|
5070 | $ac_includes_default |
---|
5071 | #include <$ac_header> |
---|
5072 | _ACEOF |
---|
5073 | rm -f conftest.$ac_objext |
---|
5074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5075 | (eval $ac_compile) 2>conftest.er1 |
---|
5076 | ac_status=$? |
---|
5077 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5078 | rm -f conftest.er1 |
---|
5079 | cat conftest.err >&5 |
---|
5080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5081 | (exit $ac_status); } && |
---|
5082 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5083 | || test ! -s conftest.err' |
---|
5084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5085 | (eval $ac_try) 2>&5 |
---|
5086 | ac_status=$? |
---|
5087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5088 | (exit $ac_status); }; } && |
---|
5089 | { ac_try='test -s conftest.$ac_objext' |
---|
5090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5091 | (eval $ac_try) 2>&5 |
---|
5092 | ac_status=$? |
---|
5093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5094 | (exit $ac_status); }; }; then |
---|
5095 | ac_header_compiler=yes |
---|
5096 | else |
---|
5097 | echo "$as_me: failed program was:" >&5 |
---|
5098 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5099 | |
---|
5100 | ac_header_compiler=no |
---|
5101 | fi |
---|
5102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5103 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5104 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5105 | |
---|
5106 | # Is the header present? |
---|
5107 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5108 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5109 | cat >conftest.$ac_ext <<_ACEOF |
---|
5110 | /* confdefs.h. */ |
---|
5111 | _ACEOF |
---|
5112 | cat confdefs.h >>conftest.$ac_ext |
---|
5113 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5114 | /* end confdefs.h. */ |
---|
5115 | #include <$ac_header> |
---|
5116 | _ACEOF |
---|
5117 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5118 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5119 | ac_status=$? |
---|
5120 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5121 | rm -f conftest.er1 |
---|
5122 | cat conftest.err >&5 |
---|
5123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5124 | (exit $ac_status); } >/dev/null; then |
---|
5125 | if test -s conftest.err; then |
---|
5126 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5127 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5128 | else |
---|
5129 | ac_cpp_err= |
---|
5130 | fi |
---|
5131 | else |
---|
5132 | ac_cpp_err=yes |
---|
5133 | fi |
---|
5134 | if test -z "$ac_cpp_err"; then |
---|
5135 | ac_header_preproc=yes |
---|
5136 | else |
---|
5137 | echo "$as_me: failed program was:" >&5 |
---|
5138 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5139 | |
---|
5140 | ac_header_preproc=no |
---|
5141 | fi |
---|
5142 | rm -f conftest.err conftest.$ac_ext |
---|
5143 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5144 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5145 | |
---|
5146 | # So? What about this header? |
---|
5147 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5148 | yes:no: ) |
---|
5149 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5150 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5151 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5152 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5153 | ac_header_preproc=yes |
---|
5154 | ;; |
---|
5155 | no:yes:* ) |
---|
5156 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5157 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5158 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5159 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5160 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5161 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5162 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5163 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5164 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5165 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5166 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5167 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5168 | ( |
---|
5169 | cat <<\_ASBOX |
---|
5170 | ## ------------------------------------------- ## |
---|
5171 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5172 | ## ------------------------------------------- ## |
---|
5173 | _ASBOX |
---|
5174 | ) | |
---|
5175 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5176 | ;; |
---|
5177 | esac |
---|
5178 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5182 | else |
---|
5183 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5184 | fi |
---|
5185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5187 | |
---|
5188 | fi |
---|
5189 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5190 | cat >>confdefs.h <<_ACEOF |
---|
5191 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5192 | _ACEOF |
---|
5193 | |
---|
5194 | else |
---|
5195 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5196 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5197 | { (exit 1); exit 1; }; } |
---|
5198 | fi |
---|
5199 | |
---|
5200 | done |
---|
5201 | |
---|
5202 | |
---|
5203 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
5204 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
5205 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
5206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5207 | else |
---|
5208 | ac_check_lib_save_LIBS=$LIBS |
---|
5209 | LIBS="-lGLU $LIBS" |
---|
5210 | cat >conftest.$ac_ext <<_ACEOF |
---|
5211 | /* confdefs.h. */ |
---|
5212 | _ACEOF |
---|
5213 | cat confdefs.h >>conftest.$ac_ext |
---|
5214 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5215 | /* end confdefs.h. */ |
---|
5216 | |
---|
5217 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5218 | #ifdef __cplusplus |
---|
5219 | extern "C" |
---|
5220 | #endif |
---|
5221 | /* We use char because int might match the return type of a gcc2 |
---|
5222 | builtin and then its argument prototype would still apply. */ |
---|
5223 | char gluProject (); |
---|
5224 | int |
---|
5225 | main () |
---|
5226 | { |
---|
5227 | gluProject (); |
---|
5228 | ; |
---|
5229 | return 0; |
---|
5230 | } |
---|
5231 | _ACEOF |
---|
5232 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5234 | (eval $ac_link) 2>conftest.er1 |
---|
5235 | ac_status=$? |
---|
5236 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5237 | rm -f conftest.er1 |
---|
5238 | cat conftest.err >&5 |
---|
5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5240 | (exit $ac_status); } && |
---|
5241 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5242 | || test ! -s conftest.err' |
---|
5243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5244 | (eval $ac_try) 2>&5 |
---|
5245 | ac_status=$? |
---|
5246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5247 | (exit $ac_status); }; } && |
---|
5248 | { ac_try='test -s conftest$ac_exeext' |
---|
5249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5250 | (eval $ac_try) 2>&5 |
---|
5251 | ac_status=$? |
---|
5252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5253 | (exit $ac_status); }; }; then |
---|
5254 | ac_cv_lib_GLU_gluProject=yes |
---|
5255 | else |
---|
5256 | echo "$as_me: failed program was:" >&5 |
---|
5257 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5258 | |
---|
5259 | ac_cv_lib_GLU_gluProject=no |
---|
5260 | fi |
---|
5261 | rm -f conftest.err conftest.$ac_objext \ |
---|
5262 | conftest$ac_exeext conftest.$ac_ext |
---|
5263 | LIBS=$ac_check_lib_save_LIBS |
---|
5264 | fi |
---|
5265 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
5266 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
5267 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
5268 | FOUND_GLU=yes |
---|
5269 | fi |
---|
5270 | |
---|
5271 | if test "$FOUND_GLU" = "yes" ; then |
---|
5272 | LIBS="$LIBS -lGLU" |
---|
5273 | else |
---|
5274 | echo "------------------" |
---|
5275 | echo "GLU library not found." |
---|
5276 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5277 | echo "------------------" |
---|
5278 | exit -1 |
---|
5279 | fi |
---|
5280 | |
---|
5281 | # checking for SDL-headers |
---|
5282 | |
---|
5283 | for ac_header in SDL/SDL.h |
---|
5284 | do |
---|
5285 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5287 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5291 | fi |
---|
5292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5293 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5294 | else |
---|
5295 | # Is the header compilable? |
---|
5296 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5297 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5298 | cat >conftest.$ac_ext <<_ACEOF |
---|
5299 | /* confdefs.h. */ |
---|
5300 | _ACEOF |
---|
5301 | cat confdefs.h >>conftest.$ac_ext |
---|
5302 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5303 | /* end confdefs.h. */ |
---|
5304 | $ac_includes_default |
---|
5305 | #include <$ac_header> |
---|
5306 | _ACEOF |
---|
5307 | rm -f conftest.$ac_objext |
---|
5308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5309 | (eval $ac_compile) 2>conftest.er1 |
---|
5310 | ac_status=$? |
---|
5311 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5312 | rm -f conftest.er1 |
---|
5313 | cat conftest.err >&5 |
---|
5314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5315 | (exit $ac_status); } && |
---|
5316 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5317 | || test ! -s conftest.err' |
---|
5318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5319 | (eval $ac_try) 2>&5 |
---|
5320 | ac_status=$? |
---|
5321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5322 | (exit $ac_status); }; } && |
---|
5323 | { ac_try='test -s conftest.$ac_objext' |
---|
5324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5325 | (eval $ac_try) 2>&5 |
---|
5326 | ac_status=$? |
---|
5327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5328 | (exit $ac_status); }; }; then |
---|
5329 | ac_header_compiler=yes |
---|
5330 | else |
---|
5331 | echo "$as_me: failed program was:" >&5 |
---|
5332 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5333 | |
---|
5334 | ac_header_compiler=no |
---|
5335 | fi |
---|
5336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5337 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5338 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5339 | |
---|
5340 | # Is the header present? |
---|
5341 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5342 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5343 | cat >conftest.$ac_ext <<_ACEOF |
---|
5344 | /* confdefs.h. */ |
---|
5345 | _ACEOF |
---|
5346 | cat confdefs.h >>conftest.$ac_ext |
---|
5347 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5348 | /* end confdefs.h. */ |
---|
5349 | #include <$ac_header> |
---|
5350 | _ACEOF |
---|
5351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5353 | ac_status=$? |
---|
5354 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5355 | rm -f conftest.er1 |
---|
5356 | cat conftest.err >&5 |
---|
5357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5358 | (exit $ac_status); } >/dev/null; then |
---|
5359 | if test -s conftest.err; then |
---|
5360 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5362 | else |
---|
5363 | ac_cpp_err= |
---|
5364 | fi |
---|
5365 | else |
---|
5366 | ac_cpp_err=yes |
---|
5367 | fi |
---|
5368 | if test -z "$ac_cpp_err"; then |
---|
5369 | ac_header_preproc=yes |
---|
5370 | else |
---|
5371 | echo "$as_me: failed program was:" >&5 |
---|
5372 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5373 | |
---|
5374 | ac_header_preproc=no |
---|
5375 | fi |
---|
5376 | rm -f conftest.err conftest.$ac_ext |
---|
5377 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5378 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5379 | |
---|
5380 | # So? What about this header? |
---|
5381 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5382 | yes:no: ) |
---|
5383 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5384 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5385 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5386 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5387 | ac_header_preproc=yes |
---|
5388 | ;; |
---|
5389 | no:yes:* ) |
---|
5390 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5391 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5392 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5393 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5394 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5395 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5396 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5397 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5398 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5399 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5400 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5401 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5402 | ( |
---|
5403 | cat <<\_ASBOX |
---|
5404 | ## ------------------------------------------- ## |
---|
5405 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5406 | ## ------------------------------------------- ## |
---|
5407 | _ASBOX |
---|
5408 | ) | |
---|
5409 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5410 | ;; |
---|
5411 | esac |
---|
5412 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5413 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5416 | else |
---|
5417 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5418 | fi |
---|
5419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5421 | |
---|
5422 | fi |
---|
5423 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5424 | cat >>confdefs.h <<_ACEOF |
---|
5425 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5426 | _ACEOF |
---|
5427 | |
---|
5428 | else |
---|
5429 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
5430 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
5431 | { (exit 1); exit 1; }; } |
---|
5432 | fi |
---|
5433 | |
---|
5434 | done |
---|
5435 | |
---|
5436 | |
---|
5437 | # checking for SDL-lib |
---|
5438 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
5439 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
5440 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
5441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5442 | else |
---|
5443 | ac_check_lib_save_LIBS=$LIBS |
---|
5444 | LIBS="-lSDL $LIBS" |
---|
5445 | cat >conftest.$ac_ext <<_ACEOF |
---|
5446 | /* confdefs.h. */ |
---|
5447 | _ACEOF |
---|
5448 | cat confdefs.h >>conftest.$ac_ext |
---|
5449 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5450 | /* end confdefs.h. */ |
---|
5451 | |
---|
5452 | |
---|
5453 | int |
---|
5454 | main () |
---|
5455 | { |
---|
5456 | main (); |
---|
5457 | ; |
---|
5458 | return 0; |
---|
5459 | } |
---|
5460 | _ACEOF |
---|
5461 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5463 | (eval $ac_link) 2>conftest.er1 |
---|
5464 | ac_status=$? |
---|
5465 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5466 | rm -f conftest.er1 |
---|
5467 | cat conftest.err >&5 |
---|
5468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5469 | (exit $ac_status); } && |
---|
5470 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5471 | || test ! -s conftest.err' |
---|
5472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5473 | (eval $ac_try) 2>&5 |
---|
5474 | ac_status=$? |
---|
5475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5476 | (exit $ac_status); }; } && |
---|
5477 | { ac_try='test -s conftest$ac_exeext' |
---|
5478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5479 | (eval $ac_try) 2>&5 |
---|
5480 | ac_status=$? |
---|
5481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5482 | (exit $ac_status); }; }; then |
---|
5483 | ac_cv_lib_SDL_main=yes |
---|
5484 | else |
---|
5485 | echo "$as_me: failed program was:" >&5 |
---|
5486 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5487 | |
---|
5488 | ac_cv_lib_SDL_main=no |
---|
5489 | fi |
---|
5490 | rm -f conftest.err conftest.$ac_objext \ |
---|
5491 | conftest$ac_exeext conftest.$ac_ext |
---|
5492 | LIBS=$ac_check_lib_save_LIBS |
---|
5493 | fi |
---|
5494 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
5495 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
5496 | if test $ac_cv_lib_SDL_main = yes; then |
---|
5497 | FOUND_SDL=yes |
---|
5498 | fi |
---|
5499 | |
---|
5500 | if test "$FOUND_SDL" = "yes" ; then |
---|
5501 | LIBS="$LIBS -lSDL" |
---|
5502 | else |
---|
5503 | echo "------------------" |
---|
5504 | echo "SDL library not found." |
---|
5505 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5506 | echo "------------------" |
---|
5507 | exit -1 |
---|
5508 | fi |
---|
5509 | |
---|
5510 | |
---|
5511 | ## checking for SDL |
---|
5512 | # SDL_VERSION=1.2.7 |
---|
5513 | # AM_PATH_SDL($SDL_VERSION, |
---|
5514 | # :, |
---|
5515 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
5516 | # ) |
---|
5517 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
5518 | # LIBS="$LIBS $SDL_LIBS" |
---|
5519 | ;; |
---|
5520 | |
---|
5521 | ### OS X ### |
---|
5522 | *darwin*) |
---|
5523 | echo "OS X detected" |
---|
5524 | |
---|
5525 | osX="yes" |
---|
5526 | |
---|
5527 | CPPFLAGS="-I/sw/include $CPPFLAGS" |
---|
5528 | # checking gl header |
---|
5529 | |
---|
5530 | for ac_header in OpenGL/gl.h |
---|
5531 | do |
---|
5532 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5534 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5535 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5538 | fi |
---|
5539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5540 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5541 | else |
---|
5542 | # Is the header compilable? |
---|
5543 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5544 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5545 | cat >conftest.$ac_ext <<_ACEOF |
---|
5546 | /* confdefs.h. */ |
---|
5547 | _ACEOF |
---|
5548 | cat confdefs.h >>conftest.$ac_ext |
---|
5549 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5550 | /* end confdefs.h. */ |
---|
5551 | $ac_includes_default |
---|
5552 | #include <$ac_header> |
---|
5553 | _ACEOF |
---|
5554 | rm -f conftest.$ac_objext |
---|
5555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5556 | (eval $ac_compile) 2>conftest.er1 |
---|
5557 | ac_status=$? |
---|
5558 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5559 | rm -f conftest.er1 |
---|
5560 | cat conftest.err >&5 |
---|
5561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5562 | (exit $ac_status); } && |
---|
5563 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5564 | || test ! -s conftest.err' |
---|
5565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5566 | (eval $ac_try) 2>&5 |
---|
5567 | ac_status=$? |
---|
5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5569 | (exit $ac_status); }; } && |
---|
5570 | { ac_try='test -s conftest.$ac_objext' |
---|
5571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5572 | (eval $ac_try) 2>&5 |
---|
5573 | ac_status=$? |
---|
5574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5575 | (exit $ac_status); }; }; then |
---|
5576 | ac_header_compiler=yes |
---|
5577 | else |
---|
5578 | echo "$as_me: failed program was:" >&5 |
---|
5579 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5580 | |
---|
5581 | ac_header_compiler=no |
---|
5582 | fi |
---|
5583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5584 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5585 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5586 | |
---|
5587 | # Is the header present? |
---|
5588 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5589 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5590 | cat >conftest.$ac_ext <<_ACEOF |
---|
5591 | /* confdefs.h. */ |
---|
5592 | _ACEOF |
---|
5593 | cat confdefs.h >>conftest.$ac_ext |
---|
5594 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5595 | /* end confdefs.h. */ |
---|
5596 | #include <$ac_header> |
---|
5597 | _ACEOF |
---|
5598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5600 | ac_status=$? |
---|
5601 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5602 | rm -f conftest.er1 |
---|
5603 | cat conftest.err >&5 |
---|
5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5605 | (exit $ac_status); } >/dev/null; then |
---|
5606 | if test -s conftest.err; then |
---|
5607 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5608 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5609 | else |
---|
5610 | ac_cpp_err= |
---|
5611 | fi |
---|
5612 | else |
---|
5613 | ac_cpp_err=yes |
---|
5614 | fi |
---|
5615 | if test -z "$ac_cpp_err"; then |
---|
5616 | ac_header_preproc=yes |
---|
5617 | else |
---|
5618 | echo "$as_me: failed program was:" >&5 |
---|
5619 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5620 | |
---|
5621 | ac_header_preproc=no |
---|
5622 | fi |
---|
5623 | rm -f conftest.err conftest.$ac_ext |
---|
5624 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5625 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5626 | |
---|
5627 | # So? What about this header? |
---|
5628 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5629 | yes:no: ) |
---|
5630 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5631 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5633 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5634 | ac_header_preproc=yes |
---|
5635 | ;; |
---|
5636 | no:yes:* ) |
---|
5637 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5638 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5639 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5640 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5641 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5642 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5643 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5644 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5645 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5646 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5647 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5648 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5649 | ( |
---|
5650 | cat <<\_ASBOX |
---|
5651 | ## ------------------------------------------- ## |
---|
5652 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5653 | ## ------------------------------------------- ## |
---|
5654 | _ASBOX |
---|
5655 | ) | |
---|
5656 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5657 | ;; |
---|
5658 | esac |
---|
5659 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5660 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5661 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5663 | else |
---|
5664 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5665 | fi |
---|
5666 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5667 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5668 | |
---|
5669 | fi |
---|
5670 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5671 | cat >>confdefs.h <<_ACEOF |
---|
5672 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5673 | _ACEOF |
---|
5674 | |
---|
5675 | else |
---|
5676 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5677 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5678 | { (exit 1); exit 1; }; } |
---|
5679 | fi |
---|
5680 | |
---|
5681 | done |
---|
5682 | |
---|
5683 | # cheking for GLU-header |
---|
5684 | |
---|
5685 | for ac_header in OpenGL/glu.h |
---|
5686 | do |
---|
5687 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5688 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5689 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5691 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5693 | fi |
---|
5694 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5695 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5696 | else |
---|
5697 | # Is the header compilable? |
---|
5698 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5699 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5700 | cat >conftest.$ac_ext <<_ACEOF |
---|
5701 | /* confdefs.h. */ |
---|
5702 | _ACEOF |
---|
5703 | cat confdefs.h >>conftest.$ac_ext |
---|
5704 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5705 | /* end confdefs.h. */ |
---|
5706 | $ac_includes_default |
---|
5707 | #include <$ac_header> |
---|
5708 | _ACEOF |
---|
5709 | rm -f conftest.$ac_objext |
---|
5710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5711 | (eval $ac_compile) 2>conftest.er1 |
---|
5712 | ac_status=$? |
---|
5713 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5714 | rm -f conftest.er1 |
---|
5715 | cat conftest.err >&5 |
---|
5716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5717 | (exit $ac_status); } && |
---|
5718 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5719 | || test ! -s conftest.err' |
---|
5720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5721 | (eval $ac_try) 2>&5 |
---|
5722 | ac_status=$? |
---|
5723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5724 | (exit $ac_status); }; } && |
---|
5725 | { ac_try='test -s conftest.$ac_objext' |
---|
5726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5727 | (eval $ac_try) 2>&5 |
---|
5728 | ac_status=$? |
---|
5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5730 | (exit $ac_status); }; }; then |
---|
5731 | ac_header_compiler=yes |
---|
5732 | else |
---|
5733 | echo "$as_me: failed program was:" >&5 |
---|
5734 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5735 | |
---|
5736 | ac_header_compiler=no |
---|
5737 | fi |
---|
5738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5739 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5740 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5741 | |
---|
5742 | # Is the header present? |
---|
5743 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5744 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5745 | cat >conftest.$ac_ext <<_ACEOF |
---|
5746 | /* confdefs.h. */ |
---|
5747 | _ACEOF |
---|
5748 | cat confdefs.h >>conftest.$ac_ext |
---|
5749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5750 | /* end confdefs.h. */ |
---|
5751 | #include <$ac_header> |
---|
5752 | _ACEOF |
---|
5753 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5754 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5755 | ac_status=$? |
---|
5756 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5757 | rm -f conftest.er1 |
---|
5758 | cat conftest.err >&5 |
---|
5759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5760 | (exit $ac_status); } >/dev/null; then |
---|
5761 | if test -s conftest.err; then |
---|
5762 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5763 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5764 | else |
---|
5765 | ac_cpp_err= |
---|
5766 | fi |
---|
5767 | else |
---|
5768 | ac_cpp_err=yes |
---|
5769 | fi |
---|
5770 | if test -z "$ac_cpp_err"; then |
---|
5771 | ac_header_preproc=yes |
---|
5772 | else |
---|
5773 | echo "$as_me: failed program was:" >&5 |
---|
5774 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5775 | |
---|
5776 | ac_header_preproc=no |
---|
5777 | fi |
---|
5778 | rm -f conftest.err conftest.$ac_ext |
---|
5779 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5780 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5781 | |
---|
5782 | # So? What about this header? |
---|
5783 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5784 | yes:no: ) |
---|
5785 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5786 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5787 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5788 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5789 | ac_header_preproc=yes |
---|
5790 | ;; |
---|
5791 | no:yes:* ) |
---|
5792 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5793 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5794 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5795 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5796 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5797 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5798 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5799 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5800 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5801 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5802 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5803 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5804 | ( |
---|
5805 | cat <<\_ASBOX |
---|
5806 | ## ------------------------------------------- ## |
---|
5807 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5808 | ## ------------------------------------------- ## |
---|
5809 | _ASBOX |
---|
5810 | ) | |
---|
5811 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5812 | ;; |
---|
5813 | esac |
---|
5814 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5816 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5818 | else |
---|
5819 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5820 | fi |
---|
5821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5822 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5823 | |
---|
5824 | fi |
---|
5825 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5826 | cat >>confdefs.h <<_ACEOF |
---|
5827 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5828 | _ACEOF |
---|
5829 | |
---|
5830 | else |
---|
5831 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5832 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5833 | { (exit 1); exit 1; }; } |
---|
5834 | fi |
---|
5835 | |
---|
5836 | done |
---|
5837 | |
---|
5838 | |
---|
5839 | LIBS="$LIBS -framework OpenGL" |
---|
5840 | |
---|
5841 | # checking for SDL-headers |
---|
5842 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
5843 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
5844 | |
---|
5845 | ## checking for SDL |
---|
5846 | # SDL_VERSION=1.2.7 |
---|
5847 | # AM_PATH_SDL($SDL_VERSION, |
---|
5848 | # :, |
---|
5849 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
5850 | # ) |
---|
5851 | |
---|
5852 | SDL_CFLAGS=`sdl-config --cflags` |
---|
5853 | SDL_LIBS=`sdl-config --libs` |
---|
5854 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
5855 | LIBS="$LIBS $SDL_LIBS" |
---|
5856 | |
---|
5857 | ;; |
---|
5858 | |
---|
5859 | *) |
---|
5860 | ;; |
---|
5861 | esac |
---|
5862 | |
---|
5863 | |
---|
5864 | |
---|
5865 | ## check for SDL_Image |
---|
5866 | if test "$def_sdl_image" = "yes"; then |
---|
5867 | # checking for SDL_image-headers |
---|
5868 | |
---|
5869 | for ac_header in SDL/SDL_image.h |
---|
5870 | do |
---|
5871 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5872 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5873 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5877 | fi |
---|
5878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5879 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5880 | else |
---|
5881 | # Is the header compilable? |
---|
5882 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5883 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5884 | cat >conftest.$ac_ext <<_ACEOF |
---|
5885 | /* confdefs.h. */ |
---|
5886 | _ACEOF |
---|
5887 | cat confdefs.h >>conftest.$ac_ext |
---|
5888 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5889 | /* end confdefs.h. */ |
---|
5890 | $ac_includes_default |
---|
5891 | #include <$ac_header> |
---|
5892 | _ACEOF |
---|
5893 | rm -f conftest.$ac_objext |
---|
5894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5895 | (eval $ac_compile) 2>conftest.er1 |
---|
5896 | ac_status=$? |
---|
5897 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5898 | rm -f conftest.er1 |
---|
5899 | cat conftest.err >&5 |
---|
5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5901 | (exit $ac_status); } && |
---|
5902 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5903 | || test ! -s conftest.err' |
---|
5904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5905 | (eval $ac_try) 2>&5 |
---|
5906 | ac_status=$? |
---|
5907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5908 | (exit $ac_status); }; } && |
---|
5909 | { ac_try='test -s conftest.$ac_objext' |
---|
5910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5911 | (eval $ac_try) 2>&5 |
---|
5912 | ac_status=$? |
---|
5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5914 | (exit $ac_status); }; }; then |
---|
5915 | ac_header_compiler=yes |
---|
5916 | else |
---|
5917 | echo "$as_me: failed program was:" >&5 |
---|
5918 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5919 | |
---|
5920 | ac_header_compiler=no |
---|
5921 | fi |
---|
5922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5923 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5924 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5925 | |
---|
5926 | # Is the header present? |
---|
5927 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5928 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5929 | cat >conftest.$ac_ext <<_ACEOF |
---|
5930 | /* confdefs.h. */ |
---|
5931 | _ACEOF |
---|
5932 | cat confdefs.h >>conftest.$ac_ext |
---|
5933 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5934 | /* end confdefs.h. */ |
---|
5935 | #include <$ac_header> |
---|
5936 | _ACEOF |
---|
5937 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5938 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5939 | ac_status=$? |
---|
5940 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5941 | rm -f conftest.er1 |
---|
5942 | cat conftest.err >&5 |
---|
5943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5944 | (exit $ac_status); } >/dev/null; then |
---|
5945 | if test -s conftest.err; then |
---|
5946 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5947 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5948 | else |
---|
5949 | ac_cpp_err= |
---|
5950 | fi |
---|
5951 | else |
---|
5952 | ac_cpp_err=yes |
---|
5953 | fi |
---|
5954 | if test -z "$ac_cpp_err"; then |
---|
5955 | ac_header_preproc=yes |
---|
5956 | else |
---|
5957 | echo "$as_me: failed program was:" >&5 |
---|
5958 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5959 | |
---|
5960 | ac_header_preproc=no |
---|
5961 | fi |
---|
5962 | rm -f conftest.err conftest.$ac_ext |
---|
5963 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5964 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5965 | |
---|
5966 | # So? What about this header? |
---|
5967 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5968 | yes:no: ) |
---|
5969 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5970 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5971 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5972 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5973 | ac_header_preproc=yes |
---|
5974 | ;; |
---|
5975 | no:yes:* ) |
---|
5976 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5977 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5978 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5979 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5980 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5981 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5982 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5983 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5984 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5985 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5986 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5987 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5988 | ( |
---|
5989 | cat <<\_ASBOX |
---|
5990 | ## ------------------------------------------- ## |
---|
5991 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5992 | ## ------------------------------------------- ## |
---|
5993 | _ASBOX |
---|
5994 | ) | |
---|
5995 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5996 | ;; |
---|
5997 | esac |
---|
5998 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5999 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6000 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6002 | else |
---|
6003 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6004 | fi |
---|
6005 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6006 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6007 | |
---|
6008 | fi |
---|
6009 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6010 | cat >>confdefs.h <<_ACEOF |
---|
6011 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6012 | _ACEOF |
---|
6013 | |
---|
6014 | else |
---|
6015 | echo "sdl_image not found. falling back to other options"; def_sdl_image=no |
---|
6016 | fi |
---|
6017 | |
---|
6018 | done |
---|
6019 | |
---|
6020 | fi |
---|
6021 | if test "$def_sdl_image" = "yes"; then |
---|
6022 | # checking for SDL_image-lib |
---|
6023 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
6024 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
6025 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
6026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6027 | else |
---|
6028 | ac_check_lib_save_LIBS=$LIBS |
---|
6029 | LIBS="-lSDL_image $LIBS" |
---|
6030 | cat >conftest.$ac_ext <<_ACEOF |
---|
6031 | /* confdefs.h. */ |
---|
6032 | _ACEOF |
---|
6033 | cat confdefs.h >>conftest.$ac_ext |
---|
6034 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6035 | /* end confdefs.h. */ |
---|
6036 | |
---|
6037 | |
---|
6038 | int |
---|
6039 | main () |
---|
6040 | { |
---|
6041 | main (); |
---|
6042 | ; |
---|
6043 | return 0; |
---|
6044 | } |
---|
6045 | _ACEOF |
---|
6046 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6048 | (eval $ac_link) 2>conftest.er1 |
---|
6049 | ac_status=$? |
---|
6050 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6051 | rm -f conftest.er1 |
---|
6052 | cat conftest.err >&5 |
---|
6053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6054 | (exit $ac_status); } && |
---|
6055 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6056 | || test ! -s conftest.err' |
---|
6057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6058 | (eval $ac_try) 2>&5 |
---|
6059 | ac_status=$? |
---|
6060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6061 | (exit $ac_status); }; } && |
---|
6062 | { ac_try='test -s conftest$ac_exeext' |
---|
6063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6064 | (eval $ac_try) 2>&5 |
---|
6065 | ac_status=$? |
---|
6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6067 | (exit $ac_status); }; }; then |
---|
6068 | ac_cv_lib_SDL_image_main=yes |
---|
6069 | else |
---|
6070 | echo "$as_me: failed program was:" >&5 |
---|
6071 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6072 | |
---|
6073 | ac_cv_lib_SDL_image_main=no |
---|
6074 | fi |
---|
6075 | rm -f conftest.err conftest.$ac_objext \ |
---|
6076 | conftest$ac_exeext conftest.$ac_ext |
---|
6077 | LIBS=$ac_check_lib_save_LIBS |
---|
6078 | fi |
---|
6079 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
6080 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
6081 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
6082 | FOUND_SDL_image=yes |
---|
6083 | fi |
---|
6084 | |
---|
6085 | if test "$FOUND_SDL_image" = "yes" ; then |
---|
6086 | LIBS="$LIBS -lSDL_image" |
---|
6087 | else |
---|
6088 | echo "------------------" |
---|
6089 | echo "SDL_image library not found." |
---|
6090 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
6091 | echo "------------------" |
---|
6092 | exit -1 |
---|
6093 | fi |
---|
6094 | fi |
---|
6095 | |
---|
6096 | |
---|
6097 | if test "$def_sdl_image" = "no"; then |
---|
6098 | ## checking for libjpeg |
---|
6099 | |
---|
6100 | for ac_header in jpeglib.h |
---|
6101 | do |
---|
6102 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6104 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6105 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6106 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6108 | fi |
---|
6109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6110 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6111 | else |
---|
6112 | # Is the header compilable? |
---|
6113 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6114 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6115 | cat >conftest.$ac_ext <<_ACEOF |
---|
6116 | /* confdefs.h. */ |
---|
6117 | _ACEOF |
---|
6118 | cat confdefs.h >>conftest.$ac_ext |
---|
6119 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6120 | /* end confdefs.h. */ |
---|
6121 | $ac_includes_default |
---|
6122 | #include <$ac_header> |
---|
6123 | _ACEOF |
---|
6124 | rm -f conftest.$ac_objext |
---|
6125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6126 | (eval $ac_compile) 2>conftest.er1 |
---|
6127 | ac_status=$? |
---|
6128 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6129 | rm -f conftest.er1 |
---|
6130 | cat conftest.err >&5 |
---|
6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6132 | (exit $ac_status); } && |
---|
6133 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6134 | || test ! -s conftest.err' |
---|
6135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6136 | (eval $ac_try) 2>&5 |
---|
6137 | ac_status=$? |
---|
6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6139 | (exit $ac_status); }; } && |
---|
6140 | { ac_try='test -s conftest.$ac_objext' |
---|
6141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6142 | (eval $ac_try) 2>&5 |
---|
6143 | ac_status=$? |
---|
6144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6145 | (exit $ac_status); }; }; then |
---|
6146 | ac_header_compiler=yes |
---|
6147 | else |
---|
6148 | echo "$as_me: failed program was:" >&5 |
---|
6149 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6150 | |
---|
6151 | ac_header_compiler=no |
---|
6152 | fi |
---|
6153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6154 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6155 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6156 | |
---|
6157 | # Is the header present? |
---|
6158 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6159 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6160 | cat >conftest.$ac_ext <<_ACEOF |
---|
6161 | /* confdefs.h. */ |
---|
6162 | _ACEOF |
---|
6163 | cat confdefs.h >>conftest.$ac_ext |
---|
6164 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6165 | /* end confdefs.h. */ |
---|
6166 | #include <$ac_header> |
---|
6167 | _ACEOF |
---|
6168 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6169 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6170 | ac_status=$? |
---|
6171 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6172 | rm -f conftest.er1 |
---|
6173 | cat conftest.err >&5 |
---|
6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6175 | (exit $ac_status); } >/dev/null; then |
---|
6176 | if test -s conftest.err; then |
---|
6177 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6178 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6179 | else |
---|
6180 | ac_cpp_err= |
---|
6181 | fi |
---|
6182 | else |
---|
6183 | ac_cpp_err=yes |
---|
6184 | fi |
---|
6185 | if test -z "$ac_cpp_err"; then |
---|
6186 | ac_header_preproc=yes |
---|
6187 | else |
---|
6188 | echo "$as_me: failed program was:" >&5 |
---|
6189 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6190 | |
---|
6191 | ac_header_preproc=no |
---|
6192 | fi |
---|
6193 | rm -f conftest.err conftest.$ac_ext |
---|
6194 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6195 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6196 | |
---|
6197 | # So? What about this header? |
---|
6198 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6199 | yes:no: ) |
---|
6200 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6201 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6202 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6203 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6204 | ac_header_preproc=yes |
---|
6205 | ;; |
---|
6206 | no:yes:* ) |
---|
6207 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6208 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6209 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6210 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6211 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6212 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6213 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6214 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6215 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6216 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6217 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6218 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6219 | ( |
---|
6220 | cat <<\_ASBOX |
---|
6221 | ## ------------------------------------------- ## |
---|
6222 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
6223 | ## ------------------------------------------- ## |
---|
6224 | _ASBOX |
---|
6225 | ) | |
---|
6226 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6227 | ;; |
---|
6228 | esac |
---|
6229 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6230 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6231 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6233 | else |
---|
6234 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6235 | fi |
---|
6236 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6237 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6238 | |
---|
6239 | fi |
---|
6240 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6241 | cat >>confdefs.h <<_ACEOF |
---|
6242 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6243 | _ACEOF |
---|
6244 | jpegHeader="yes" |
---|
6245 | else |
---|
6246 | jpegHeader="no" |
---|
6247 | fi |
---|
6248 | |
---|
6249 | done |
---|
6250 | |
---|
6251 | if test $jpegHeader = "no"; then |
---|
6252 | echo " not including jpeg." |
---|
6253 | else |
---|
6254 | echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 |
---|
6255 | echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 |
---|
6256 | if test "${ac_cv_lib_jpeg_main+set}" = set; then |
---|
6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6258 | else |
---|
6259 | ac_check_lib_save_LIBS=$LIBS |
---|
6260 | LIBS="-ljpeg $LIBS" |
---|
6261 | cat >conftest.$ac_ext <<_ACEOF |
---|
6262 | /* confdefs.h. */ |
---|
6263 | _ACEOF |
---|
6264 | cat confdefs.h >>conftest.$ac_ext |
---|
6265 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6266 | /* end confdefs.h. */ |
---|
6267 | |
---|
6268 | |
---|
6269 | int |
---|
6270 | main () |
---|
6271 | { |
---|
6272 | main (); |
---|
6273 | ; |
---|
6274 | return 0; |
---|
6275 | } |
---|
6276 | _ACEOF |
---|
6277 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6279 | (eval $ac_link) 2>conftest.er1 |
---|
6280 | ac_status=$? |
---|
6281 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6282 | rm -f conftest.er1 |
---|
6283 | cat conftest.err >&5 |
---|
6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6285 | (exit $ac_status); } && |
---|
6286 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6287 | || test ! -s conftest.err' |
---|
6288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6289 | (eval $ac_try) 2>&5 |
---|
6290 | ac_status=$? |
---|
6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6292 | (exit $ac_status); }; } && |
---|
6293 | { ac_try='test -s conftest$ac_exeext' |
---|
6294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6295 | (eval $ac_try) 2>&5 |
---|
6296 | ac_status=$? |
---|
6297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6298 | (exit $ac_status); }; }; then |
---|
6299 | ac_cv_lib_jpeg_main=yes |
---|
6300 | else |
---|
6301 | echo "$as_me: failed program was:" >&5 |
---|
6302 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6303 | |
---|
6304 | ac_cv_lib_jpeg_main=no |
---|
6305 | fi |
---|
6306 | rm -f conftest.err conftest.$ac_objext \ |
---|
6307 | conftest$ac_exeext conftest.$ac_ext |
---|
6308 | LIBS=$ac_check_lib_save_LIBS |
---|
6309 | fi |
---|
6310 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 |
---|
6311 | echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 |
---|
6312 | if test $ac_cv_lib_jpeg_main = yes; then |
---|
6313 | FOUND_jpeg=yes |
---|
6314 | fi |
---|
6315 | |
---|
6316 | if test "$FOUND_jpeg" = "yes" ; then |
---|
6317 | LIBS="$LIBS -ljpeg" |
---|
6318 | else |
---|
6319 | echo "------------------" |
---|
6320 | echo "jpeg library not found." |
---|
6321 | echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" |
---|
6322 | echo "------------------" |
---|
6323 | exit -1 |
---|
6324 | fi |
---|
6325 | fi |
---|
6326 | |
---|
6327 | ## checking for libpng |
---|
6328 | |
---|
6329 | for ac_header in png.h |
---|
6330 | do |
---|
6331 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6333 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6335 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6337 | fi |
---|
6338 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6339 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6340 | else |
---|
6341 | # Is the header compilable? |
---|
6342 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6343 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6344 | cat >conftest.$ac_ext <<_ACEOF |
---|
6345 | /* confdefs.h. */ |
---|
6346 | _ACEOF |
---|
6347 | cat confdefs.h >>conftest.$ac_ext |
---|
6348 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6349 | /* end confdefs.h. */ |
---|
6350 | $ac_includes_default |
---|
6351 | #include <$ac_header> |
---|
6352 | _ACEOF |
---|
6353 | rm -f conftest.$ac_objext |
---|
6354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6355 | (eval $ac_compile) 2>conftest.er1 |
---|
6356 | ac_status=$? |
---|
6357 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6358 | rm -f conftest.er1 |
---|
6359 | cat conftest.err >&5 |
---|
6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6361 | (exit $ac_status); } && |
---|
6362 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6363 | || test ! -s conftest.err' |
---|
6364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6365 | (eval $ac_try) 2>&5 |
---|
6366 | ac_status=$? |
---|
6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6368 | (exit $ac_status); }; } && |
---|
6369 | { ac_try='test -s conftest.$ac_objext' |
---|
6370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6371 | (eval $ac_try) 2>&5 |
---|
6372 | ac_status=$? |
---|
6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6374 | (exit $ac_status); }; }; then |
---|
6375 | ac_header_compiler=yes |
---|
6376 | else |
---|
6377 | echo "$as_me: failed program was:" >&5 |
---|
6378 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6379 | |
---|
6380 | ac_header_compiler=no |
---|
6381 | fi |
---|
6382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6383 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6384 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6385 | |
---|
6386 | # Is the header present? |
---|
6387 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6388 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6389 | cat >conftest.$ac_ext <<_ACEOF |
---|
6390 | /* confdefs.h. */ |
---|
6391 | _ACEOF |
---|
6392 | cat confdefs.h >>conftest.$ac_ext |
---|
6393 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6394 | /* end confdefs.h. */ |
---|
6395 | #include <$ac_header> |
---|
6396 | _ACEOF |
---|
6397 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6398 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6399 | ac_status=$? |
---|
6400 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6401 | rm -f conftest.er1 |
---|
6402 | cat conftest.err >&5 |
---|
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6404 | (exit $ac_status); } >/dev/null; then |
---|
6405 | if test -s conftest.err; then |
---|
6406 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6407 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6408 | else |
---|
6409 | ac_cpp_err= |
---|
6410 | fi |
---|
6411 | else |
---|
6412 | ac_cpp_err=yes |
---|
6413 | fi |
---|
6414 | if test -z "$ac_cpp_err"; then |
---|
6415 | ac_header_preproc=yes |
---|
6416 | else |
---|
6417 | echo "$as_me: failed program was:" >&5 |
---|
6418 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6419 | |
---|
6420 | ac_header_preproc=no |
---|
6421 | fi |
---|
6422 | rm -f conftest.err conftest.$ac_ext |
---|
6423 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6424 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6425 | |
---|
6426 | # So? What about this header? |
---|
6427 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6428 | yes:no: ) |
---|
6429 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6430 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6431 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6432 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6433 | ac_header_preproc=yes |
---|
6434 | ;; |
---|
6435 | no:yes:* ) |
---|
6436 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6437 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6438 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6439 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6440 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6441 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6442 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6443 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6444 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6445 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6446 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6447 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6448 | ( |
---|
6449 | cat <<\_ASBOX |
---|
6450 | ## ------------------------------------------- ## |
---|
6451 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
6452 | ## ------------------------------------------- ## |
---|
6453 | _ASBOX |
---|
6454 | ) | |
---|
6455 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6456 | ;; |
---|
6457 | esac |
---|
6458 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6462 | else |
---|
6463 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6464 | fi |
---|
6465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6466 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6467 | |
---|
6468 | fi |
---|
6469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6470 | cat >>confdefs.h <<_ACEOF |
---|
6471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6472 | _ACEOF |
---|
6473 | pngHeader="yes" |
---|
6474 | else |
---|
6475 | pngHeader="no" |
---|
6476 | fi |
---|
6477 | |
---|
6478 | done |
---|
6479 | |
---|
6480 | if test $pngHeader = "no"; then |
---|
6481 | echo " not including png." |
---|
6482 | else |
---|
6483 | echo "$as_me:$LINENO: checking for main in -lpng" >&5 |
---|
6484 | echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 |
---|
6485 | if test "${ac_cv_lib_png_main+set}" = set; then |
---|
6486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6487 | else |
---|
6488 | ac_check_lib_save_LIBS=$LIBS |
---|
6489 | LIBS="-lpng $LIBS" |
---|
6490 | cat >conftest.$ac_ext <<_ACEOF |
---|
6491 | /* confdefs.h. */ |
---|
6492 | _ACEOF |
---|
6493 | cat confdefs.h >>conftest.$ac_ext |
---|
6494 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6495 | /* end confdefs.h. */ |
---|
6496 | |
---|
6497 | |
---|
6498 | int |
---|
6499 | main () |
---|
6500 | { |
---|
6501 | main (); |
---|
6502 | ; |
---|
6503 | return 0; |
---|
6504 | } |
---|
6505 | _ACEOF |
---|
6506 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6508 | (eval $ac_link) 2>conftest.er1 |
---|
6509 | ac_status=$? |
---|
6510 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6511 | rm -f conftest.er1 |
---|
6512 | cat conftest.err >&5 |
---|
6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6514 | (exit $ac_status); } && |
---|
6515 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6516 | || test ! -s conftest.err' |
---|
6517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6518 | (eval $ac_try) 2>&5 |
---|
6519 | ac_status=$? |
---|
6520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6521 | (exit $ac_status); }; } && |
---|
6522 | { ac_try='test -s conftest$ac_exeext' |
---|
6523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6524 | (eval $ac_try) 2>&5 |
---|
6525 | ac_status=$? |
---|
6526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6527 | (exit $ac_status); }; }; then |
---|
6528 | ac_cv_lib_png_main=yes |
---|
6529 | else |
---|
6530 | echo "$as_me: failed program was:" >&5 |
---|
6531 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6532 | |
---|
6533 | ac_cv_lib_png_main=no |
---|
6534 | fi |
---|
6535 | rm -f conftest.err conftest.$ac_objext \ |
---|
6536 | conftest$ac_exeext conftest.$ac_ext |
---|
6537 | LIBS=$ac_check_lib_save_LIBS |
---|
6538 | fi |
---|
6539 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 |
---|
6540 | echo "${ECHO_T}$ac_cv_lib_png_main" >&6 |
---|
6541 | if test $ac_cv_lib_png_main = yes; then |
---|
6542 | FOUND_png=yes |
---|
6543 | fi |
---|
6544 | |
---|
6545 | if test "$FOUND_png" = "yes" ; then |
---|
6546 | LIBS="$LIBS -lpng" |
---|
6547 | else |
---|
6548 | echo "------------------" |
---|
6549 | echo "png library not found." |
---|
6550 | echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" |
---|
6551 | echo "------------------" |
---|
6552 | exit -1 |
---|
6553 | fi |
---|
6554 | fi |
---|
6555 | fi |
---|
6556 | |
---|
6557 | ## checking for GTK |
---|
6558 | if test "$def_gtk" = yes; then |
---|
6559 | |
---|
6560 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
6561 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
6562 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
6563 | if `pkg-config --exists gtk+-2.0`; then |
---|
6564 | echo "yes" |
---|
6565 | have_gtk2=yes |
---|
6566 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
6567 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
6568 | |
---|
6569 | cat >>confdefs.h <<_ACEOF |
---|
6570 | #define HAVE_GTK2 1 |
---|
6571 | _ACEOF |
---|
6572 | |
---|
6573 | else |
---|
6574 | echo "no" |
---|
6575 | fi |
---|
6576 | |
---|
6577 | fi |
---|
6578 | |
---|
6579 | |
---|
6580 | |
---|
6581 | |
---|
6582 | if test x$have_gtk2 = xyes; then |
---|
6583 | HAVE_GTK2_TRUE= |
---|
6584 | HAVE_GTK2_FALSE='#' |
---|
6585 | else |
---|
6586 | HAVE_GTK2_TRUE='#' |
---|
6587 | HAVE_GTK2_FALSE= |
---|
6588 | fi |
---|
6589 | |
---|
6590 | |
---|
6591 | |
---|
6592 | |
---|
6593 | #checking for pthread libs |
---|
6594 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
6595 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
6596 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
6597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6598 | else |
---|
6599 | ac_check_lib_save_LIBS=$LIBS |
---|
6600 | LIBS="-lpthread $LIBS" |
---|
6601 | cat >conftest.$ac_ext <<_ACEOF |
---|
6602 | /* confdefs.h. */ |
---|
6603 | _ACEOF |
---|
6604 | cat confdefs.h >>conftest.$ac_ext |
---|
6605 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6606 | /* end confdefs.h. */ |
---|
6607 | |
---|
6608 | |
---|
6609 | int |
---|
6610 | main () |
---|
6611 | { |
---|
6612 | main (); |
---|
6613 | ; |
---|
6614 | return 0; |
---|
6615 | } |
---|
6616 | _ACEOF |
---|
6617 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6619 | (eval $ac_link) 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); } && |
---|
6626 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6627 | || test ! -s conftest.err' |
---|
6628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6629 | (eval $ac_try) 2>&5 |
---|
6630 | ac_status=$? |
---|
6631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6632 | (exit $ac_status); }; } && |
---|
6633 | { ac_try='test -s conftest$ac_exeext' |
---|
6634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6635 | (eval $ac_try) 2>&5 |
---|
6636 | ac_status=$? |
---|
6637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6638 | (exit $ac_status); }; }; then |
---|
6639 | ac_cv_lib_pthread_main=yes |
---|
6640 | else |
---|
6641 | echo "$as_me: failed program was:" >&5 |
---|
6642 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6643 | |
---|
6644 | ac_cv_lib_pthread_main=no |
---|
6645 | fi |
---|
6646 | rm -f conftest.err conftest.$ac_objext \ |
---|
6647 | conftest$ac_exeext conftest.$ac_ext |
---|
6648 | LIBS=$ac_check_lib_save_LIBS |
---|
6649 | fi |
---|
6650 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
6651 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
6652 | if test $ac_cv_lib_pthread_main = yes; then |
---|
6653 | FOUND_pthread=yes |
---|
6654 | fi |
---|
6655 | |
---|
6656 | if test "$FOUND_pthread" = "yes" ; then |
---|
6657 | LIBS="$LIBS -lpthread" |
---|
6658 | fi |
---|
6659 | |
---|
6660 | |
---|
6661 | # FIXME: Replace `main' with a function in `-lm': |
---|
6662 | |
---|
6663 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
6664 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
6665 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
6666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6667 | else |
---|
6668 | ac_check_lib_save_LIBS=$LIBS |
---|
6669 | LIBS="-lm $LIBS" |
---|
6670 | cat >conftest.$ac_ext <<_ACEOF |
---|
6671 | /* confdefs.h. */ |
---|
6672 | _ACEOF |
---|
6673 | cat confdefs.h >>conftest.$ac_ext |
---|
6674 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6675 | /* end confdefs.h. */ |
---|
6676 | |
---|
6677 | |
---|
6678 | int |
---|
6679 | main () |
---|
6680 | { |
---|
6681 | main (); |
---|
6682 | ; |
---|
6683 | return 0; |
---|
6684 | } |
---|
6685 | _ACEOF |
---|
6686 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6688 | (eval $ac_link) 2>conftest.er1 |
---|
6689 | ac_status=$? |
---|
6690 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6691 | rm -f conftest.er1 |
---|
6692 | cat conftest.err >&5 |
---|
6693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6694 | (exit $ac_status); } && |
---|
6695 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6696 | || test ! -s conftest.err' |
---|
6697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6698 | (eval $ac_try) 2>&5 |
---|
6699 | ac_status=$? |
---|
6700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6701 | (exit $ac_status); }; } && |
---|
6702 | { ac_try='test -s conftest$ac_exeext' |
---|
6703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6704 | (eval $ac_try) 2>&5 |
---|
6705 | ac_status=$? |
---|
6706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6707 | (exit $ac_status); }; }; then |
---|
6708 | ac_cv_lib_m_main=yes |
---|
6709 | else |
---|
6710 | echo "$as_me: failed program was:" >&5 |
---|
6711 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6712 | |
---|
6713 | ac_cv_lib_m_main=no |
---|
6714 | fi |
---|
6715 | rm -f conftest.err conftest.$ac_objext \ |
---|
6716 | conftest$ac_exeext conftest.$ac_ext |
---|
6717 | LIBS=$ac_check_lib_save_LIBS |
---|
6718 | fi |
---|
6719 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
6720 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
6721 | if test $ac_cv_lib_m_main = yes; then |
---|
6722 | cat >>confdefs.h <<_ACEOF |
---|
6723 | #define HAVE_LIBM 1 |
---|
6724 | _ACEOF |
---|
6725 | |
---|
6726 | LIBS="-lm $LIBS" |
---|
6727 | |
---|
6728 | fi |
---|
6729 | |
---|
6730 | |
---|
6731 | |
---|
6732 | # Checks for header files. |
---|
6733 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
6734 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
6735 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
6736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6737 | else |
---|
6738 | cat >conftest.$ac_ext <<_ACEOF |
---|
6739 | /* confdefs.h. */ |
---|
6740 | _ACEOF |
---|
6741 | cat confdefs.h >>conftest.$ac_ext |
---|
6742 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6743 | /* end confdefs.h. */ |
---|
6744 | #include <stdlib.h> |
---|
6745 | #include <stdarg.h> |
---|
6746 | #include <string.h> |
---|
6747 | #include <float.h> |
---|
6748 | |
---|
6749 | int |
---|
6750 | main () |
---|
6751 | { |
---|
6752 | |
---|
6753 | ; |
---|
6754 | return 0; |
---|
6755 | } |
---|
6756 | _ACEOF |
---|
6757 | rm -f conftest.$ac_objext |
---|
6758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6759 | (eval $ac_compile) 2>conftest.er1 |
---|
6760 | ac_status=$? |
---|
6761 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6762 | rm -f conftest.er1 |
---|
6763 | cat conftest.err >&5 |
---|
6764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6765 | (exit $ac_status); } && |
---|
6766 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6767 | || test ! -s conftest.err' |
---|
6768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6769 | (eval $ac_try) 2>&5 |
---|
6770 | ac_status=$? |
---|
6771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6772 | (exit $ac_status); }; } && |
---|
6773 | { ac_try='test -s conftest.$ac_objext' |
---|
6774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6775 | (eval $ac_try) 2>&5 |
---|
6776 | ac_status=$? |
---|
6777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6778 | (exit $ac_status); }; }; then |
---|
6779 | ac_cv_header_stdc=yes |
---|
6780 | else |
---|
6781 | echo "$as_me: failed program was:" >&5 |
---|
6782 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6783 | |
---|
6784 | ac_cv_header_stdc=no |
---|
6785 | fi |
---|
6786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6787 | |
---|
6788 | if test $ac_cv_header_stdc = yes; then |
---|
6789 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
6790 | cat >conftest.$ac_ext <<_ACEOF |
---|
6791 | /* confdefs.h. */ |
---|
6792 | _ACEOF |
---|
6793 | cat confdefs.h >>conftest.$ac_ext |
---|
6794 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6795 | /* end confdefs.h. */ |
---|
6796 | #include <string.h> |
---|
6797 | |
---|
6798 | _ACEOF |
---|
6799 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6800 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
6801 | : |
---|
6802 | else |
---|
6803 | ac_cv_header_stdc=no |
---|
6804 | fi |
---|
6805 | rm -f conftest* |
---|
6806 | |
---|
6807 | fi |
---|
6808 | |
---|
6809 | if test $ac_cv_header_stdc = yes; then |
---|
6810 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
6811 | cat >conftest.$ac_ext <<_ACEOF |
---|
6812 | /* confdefs.h. */ |
---|
6813 | _ACEOF |
---|
6814 | cat confdefs.h >>conftest.$ac_ext |
---|
6815 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6816 | /* end confdefs.h. */ |
---|
6817 | #include <stdlib.h> |
---|
6818 | |
---|
6819 | _ACEOF |
---|
6820 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6821 | $EGREP "free" >/dev/null 2>&1; then |
---|
6822 | : |
---|
6823 | else |
---|
6824 | ac_cv_header_stdc=no |
---|
6825 | fi |
---|
6826 | rm -f conftest* |
---|
6827 | |
---|
6828 | fi |
---|
6829 | |
---|
6830 | if test $ac_cv_header_stdc = yes; then |
---|
6831 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
6832 | if test "$cross_compiling" = yes; then |
---|
6833 | : |
---|
6834 | else |
---|
6835 | cat >conftest.$ac_ext <<_ACEOF |
---|
6836 | /* confdefs.h. */ |
---|
6837 | _ACEOF |
---|
6838 | cat confdefs.h >>conftest.$ac_ext |
---|
6839 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6840 | /* end confdefs.h. */ |
---|
6841 | #include <ctype.h> |
---|
6842 | #if ((' ' & 0x0FF) == 0x020) |
---|
6843 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
6844 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
6845 | #else |
---|
6846 | # define ISLOWER(c) \ |
---|
6847 | (('a' <= (c) && (c) <= 'i') \ |
---|
6848 | || ('j' <= (c) && (c) <= 'r') \ |
---|
6849 | || ('s' <= (c) && (c) <= 'z')) |
---|
6850 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
6851 | #endif |
---|
6852 | |
---|
6853 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
6854 | int |
---|
6855 | main () |
---|
6856 | { |
---|
6857 | int i; |
---|
6858 | for (i = 0; i < 256; i++) |
---|
6859 | if (XOR (islower (i), ISLOWER (i)) |
---|
6860 | || toupper (i) != TOUPPER (i)) |
---|
6861 | exit(2); |
---|
6862 | exit (0); |
---|
6863 | } |
---|
6864 | _ACEOF |
---|
6865 | rm -f conftest$ac_exeext |
---|
6866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6867 | (eval $ac_link) 2>&5 |
---|
6868 | ac_status=$? |
---|
6869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6870 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6872 | (eval $ac_try) 2>&5 |
---|
6873 | ac_status=$? |
---|
6874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6875 | (exit $ac_status); }; }; then |
---|
6876 | : |
---|
6877 | else |
---|
6878 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6879 | echo "$as_me: failed program was:" >&5 |
---|
6880 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6881 | |
---|
6882 | ( exit $ac_status ) |
---|
6883 | ac_cv_header_stdc=no |
---|
6884 | fi |
---|
6885 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6886 | fi |
---|
6887 | fi |
---|
6888 | fi |
---|
6889 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
6890 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
6891 | if test $ac_cv_header_stdc = yes; then |
---|
6892 | |
---|
6893 | cat >>confdefs.h <<\_ACEOF |
---|
6894 | #define STDC_HEADERS 1 |
---|
6895 | _ACEOF |
---|
6896 | |
---|
6897 | fi |
---|
6898 | |
---|
6899 | |
---|
6900 | |
---|
6901 | for ac_header in stdlib.h string.h |
---|
6902 | do |
---|
6903 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6905 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6906 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6907 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6909 | fi |
---|
6910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6911 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6912 | else |
---|
6913 | # Is the header compilable? |
---|
6914 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6915 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6916 | cat >conftest.$ac_ext <<_ACEOF |
---|
6917 | /* confdefs.h. */ |
---|
6918 | _ACEOF |
---|
6919 | cat confdefs.h >>conftest.$ac_ext |
---|
6920 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6921 | /* end confdefs.h. */ |
---|
6922 | $ac_includes_default |
---|
6923 | #include <$ac_header> |
---|
6924 | _ACEOF |
---|
6925 | rm -f conftest.$ac_objext |
---|
6926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6927 | (eval $ac_compile) 2>conftest.er1 |
---|
6928 | ac_status=$? |
---|
6929 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6930 | rm -f conftest.er1 |
---|
6931 | cat conftest.err >&5 |
---|
6932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6933 | (exit $ac_status); } && |
---|
6934 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6935 | || test ! -s conftest.err' |
---|
6936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6937 | (eval $ac_try) 2>&5 |
---|
6938 | ac_status=$? |
---|
6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6940 | (exit $ac_status); }; } && |
---|
6941 | { ac_try='test -s conftest.$ac_objext' |
---|
6942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6943 | (eval $ac_try) 2>&5 |
---|
6944 | ac_status=$? |
---|
6945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6946 | (exit $ac_status); }; }; then |
---|
6947 | ac_header_compiler=yes |
---|
6948 | else |
---|
6949 | echo "$as_me: failed program was:" >&5 |
---|
6950 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6951 | |
---|
6952 | ac_header_compiler=no |
---|
6953 | fi |
---|
6954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6955 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6956 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6957 | |
---|
6958 | # Is the header present? |
---|
6959 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6960 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6961 | cat >conftest.$ac_ext <<_ACEOF |
---|
6962 | /* confdefs.h. */ |
---|
6963 | _ACEOF |
---|
6964 | cat confdefs.h >>conftest.$ac_ext |
---|
6965 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6966 | /* end confdefs.h. */ |
---|
6967 | #include <$ac_header> |
---|
6968 | _ACEOF |
---|
6969 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6970 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6971 | ac_status=$? |
---|
6972 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6973 | rm -f conftest.er1 |
---|
6974 | cat conftest.err >&5 |
---|
6975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6976 | (exit $ac_status); } >/dev/null; then |
---|
6977 | if test -s conftest.err; then |
---|
6978 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6979 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6980 | else |
---|
6981 | ac_cpp_err= |
---|
6982 | fi |
---|
6983 | else |
---|
6984 | ac_cpp_err=yes |
---|
6985 | fi |
---|
6986 | if test -z "$ac_cpp_err"; then |
---|
6987 | ac_header_preproc=yes |
---|
6988 | else |
---|
6989 | echo "$as_me: failed program was:" >&5 |
---|
6990 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6991 | |
---|
6992 | ac_header_preproc=no |
---|
6993 | fi |
---|
6994 | rm -f conftest.err conftest.$ac_ext |
---|
6995 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6996 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6997 | |
---|
6998 | # So? What about this header? |
---|
6999 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7000 | yes:no: ) |
---|
7001 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7002 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7003 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7004 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7005 | ac_header_preproc=yes |
---|
7006 | ;; |
---|
7007 | no:yes:* ) |
---|
7008 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7009 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7010 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7011 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7012 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7013 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7014 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7015 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7017 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7018 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7019 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7020 | ( |
---|
7021 | cat <<\_ASBOX |
---|
7022 | ## ------------------------------------------- ## |
---|
7023 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
7024 | ## ------------------------------------------- ## |
---|
7025 | _ASBOX |
---|
7026 | ) | |
---|
7027 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7028 | ;; |
---|
7029 | esac |
---|
7030 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7032 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7034 | else |
---|
7035 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7036 | fi |
---|
7037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7038 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7039 | |
---|
7040 | fi |
---|
7041 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7042 | cat >>confdefs.h <<_ACEOF |
---|
7043 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7044 | _ACEOF |
---|
7045 | |
---|
7046 | fi |
---|
7047 | |
---|
7048 | done |
---|
7049 | |
---|
7050 | |
---|
7051 | # Checks for typedefs, structures, and compiler characteristics. |
---|
7052 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
7053 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
7054 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
7055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7056 | else |
---|
7057 | cat >conftest.$ac_ext <<_ACEOF |
---|
7058 | /* confdefs.h. */ |
---|
7059 | _ACEOF |
---|
7060 | cat confdefs.h >>conftest.$ac_ext |
---|
7061 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7062 | /* end confdefs.h. */ |
---|
7063 | |
---|
7064 | #include <stdbool.h> |
---|
7065 | #ifndef bool |
---|
7066 | # error bool is not defined |
---|
7067 | #endif |
---|
7068 | #ifndef false |
---|
7069 | # error false is not defined |
---|
7070 | #endif |
---|
7071 | #if false |
---|
7072 | # error false is not 0 |
---|
7073 | #endif |
---|
7074 | #ifndef true |
---|
7075 | # error true is not defined |
---|
7076 | #endif |
---|
7077 | #if true != 1 |
---|
7078 | # error true is not 1 |
---|
7079 | #endif |
---|
7080 | #ifndef __bool_true_false_are_defined |
---|
7081 | # error __bool_true_false_are_defined is not defined |
---|
7082 | #endif |
---|
7083 | |
---|
7084 | struct s { _Bool s: 1; _Bool t; } s; |
---|
7085 | |
---|
7086 | char a[true == 1 ? 1 : -1]; |
---|
7087 | char b[false == 0 ? 1 : -1]; |
---|
7088 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
7089 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
7090 | bool e = &s; |
---|
7091 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
7092 | char g[true]; |
---|
7093 | char h[sizeof (_Bool)]; |
---|
7094 | char i[sizeof s.t]; |
---|
7095 | |
---|
7096 | int |
---|
7097 | main () |
---|
7098 | { |
---|
7099 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
7100 | ; |
---|
7101 | return 0; |
---|
7102 | } |
---|
7103 | _ACEOF |
---|
7104 | rm -f conftest.$ac_objext |
---|
7105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7106 | (eval $ac_compile) 2>conftest.er1 |
---|
7107 | ac_status=$? |
---|
7108 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7109 | rm -f conftest.er1 |
---|
7110 | cat conftest.err >&5 |
---|
7111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7112 | (exit $ac_status); } && |
---|
7113 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7114 | || test ! -s conftest.err' |
---|
7115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7116 | (eval $ac_try) 2>&5 |
---|
7117 | ac_status=$? |
---|
7118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7119 | (exit $ac_status); }; } && |
---|
7120 | { ac_try='test -s conftest.$ac_objext' |
---|
7121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7122 | (eval $ac_try) 2>&5 |
---|
7123 | ac_status=$? |
---|
7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7125 | (exit $ac_status); }; }; then |
---|
7126 | ac_cv_header_stdbool_h=yes |
---|
7127 | else |
---|
7128 | echo "$as_me: failed program was:" >&5 |
---|
7129 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7130 | |
---|
7131 | ac_cv_header_stdbool_h=no |
---|
7132 | fi |
---|
7133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7134 | fi |
---|
7135 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
7136 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
7137 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
7138 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
7139 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
7140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7141 | else |
---|
7142 | cat >conftest.$ac_ext <<_ACEOF |
---|
7143 | /* confdefs.h. */ |
---|
7144 | _ACEOF |
---|
7145 | cat confdefs.h >>conftest.$ac_ext |
---|
7146 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7147 | /* end confdefs.h. */ |
---|
7148 | $ac_includes_default |
---|
7149 | int |
---|
7150 | main () |
---|
7151 | { |
---|
7152 | if ((_Bool *) 0) |
---|
7153 | return 0; |
---|
7154 | if (sizeof (_Bool)) |
---|
7155 | return 0; |
---|
7156 | ; |
---|
7157 | return 0; |
---|
7158 | } |
---|
7159 | _ACEOF |
---|
7160 | rm -f conftest.$ac_objext |
---|
7161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7162 | (eval $ac_compile) 2>conftest.er1 |
---|
7163 | ac_status=$? |
---|
7164 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7165 | rm -f conftest.er1 |
---|
7166 | cat conftest.err >&5 |
---|
7167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7168 | (exit $ac_status); } && |
---|
7169 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7170 | || test ! -s conftest.err' |
---|
7171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7172 | (eval $ac_try) 2>&5 |
---|
7173 | ac_status=$? |
---|
7174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7175 | (exit $ac_status); }; } && |
---|
7176 | { ac_try='test -s conftest.$ac_objext' |
---|
7177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7178 | (eval $ac_try) 2>&5 |
---|
7179 | ac_status=$? |
---|
7180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7181 | (exit $ac_status); }; }; then |
---|
7182 | ac_cv_type__Bool=yes |
---|
7183 | else |
---|
7184 | echo "$as_me: failed program was:" >&5 |
---|
7185 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7186 | |
---|
7187 | ac_cv_type__Bool=no |
---|
7188 | fi |
---|
7189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7190 | fi |
---|
7191 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
7192 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
7193 | if test $ac_cv_type__Bool = yes; then |
---|
7194 | |
---|
7195 | cat >>confdefs.h <<_ACEOF |
---|
7196 | #define HAVE__BOOL 1 |
---|
7197 | _ACEOF |
---|
7198 | |
---|
7199 | |
---|
7200 | fi |
---|
7201 | |
---|
7202 | if test $ac_cv_header_stdbool_h = yes; then |
---|
7203 | |
---|
7204 | cat >>confdefs.h <<\_ACEOF |
---|
7205 | #define HAVE_STDBOOL_H 1 |
---|
7206 | _ACEOF |
---|
7207 | |
---|
7208 | fi |
---|
7209 | |
---|
7210 | |
---|
7211 | # Checks for library functions. |
---|
7212 | |
---|
7213 | for ac_header in stdlib.h |
---|
7214 | do |
---|
7215 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7216 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7217 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7218 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7219 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7221 | fi |
---|
7222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7223 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7224 | else |
---|
7225 | # Is the header compilable? |
---|
7226 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7227 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7228 | cat >conftest.$ac_ext <<_ACEOF |
---|
7229 | /* confdefs.h. */ |
---|
7230 | _ACEOF |
---|
7231 | cat confdefs.h >>conftest.$ac_ext |
---|
7232 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7233 | /* end confdefs.h. */ |
---|
7234 | $ac_includes_default |
---|
7235 | #include <$ac_header> |
---|
7236 | _ACEOF |
---|
7237 | rm -f conftest.$ac_objext |
---|
7238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7239 | (eval $ac_compile) 2>conftest.er1 |
---|
7240 | ac_status=$? |
---|
7241 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7242 | rm -f conftest.er1 |
---|
7243 | cat conftest.err >&5 |
---|
7244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7245 | (exit $ac_status); } && |
---|
7246 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7247 | || test ! -s conftest.err' |
---|
7248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7249 | (eval $ac_try) 2>&5 |
---|
7250 | ac_status=$? |
---|
7251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7252 | (exit $ac_status); }; } && |
---|
7253 | { ac_try='test -s conftest.$ac_objext' |
---|
7254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7255 | (eval $ac_try) 2>&5 |
---|
7256 | ac_status=$? |
---|
7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7258 | (exit $ac_status); }; }; then |
---|
7259 | ac_header_compiler=yes |
---|
7260 | else |
---|
7261 | echo "$as_me: failed program was:" >&5 |
---|
7262 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7263 | |
---|
7264 | ac_header_compiler=no |
---|
7265 | fi |
---|
7266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7267 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7268 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7269 | |
---|
7270 | # Is the header present? |
---|
7271 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7272 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7273 | cat >conftest.$ac_ext <<_ACEOF |
---|
7274 | /* confdefs.h. */ |
---|
7275 | _ACEOF |
---|
7276 | cat confdefs.h >>conftest.$ac_ext |
---|
7277 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7278 | /* end confdefs.h. */ |
---|
7279 | #include <$ac_header> |
---|
7280 | _ACEOF |
---|
7281 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7282 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7283 | ac_status=$? |
---|
7284 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7285 | rm -f conftest.er1 |
---|
7286 | cat conftest.err >&5 |
---|
7287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7288 | (exit $ac_status); } >/dev/null; then |
---|
7289 | if test -s conftest.err; then |
---|
7290 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7291 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7292 | else |
---|
7293 | ac_cpp_err= |
---|
7294 | fi |
---|
7295 | else |
---|
7296 | ac_cpp_err=yes |
---|
7297 | fi |
---|
7298 | if test -z "$ac_cpp_err"; then |
---|
7299 | ac_header_preproc=yes |
---|
7300 | else |
---|
7301 | echo "$as_me: failed program was:" >&5 |
---|
7302 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7303 | |
---|
7304 | ac_header_preproc=no |
---|
7305 | fi |
---|
7306 | rm -f conftest.err conftest.$ac_ext |
---|
7307 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7308 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7309 | |
---|
7310 | # So? What about this header? |
---|
7311 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7312 | yes:no: ) |
---|
7313 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7314 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7315 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7316 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7317 | ac_header_preproc=yes |
---|
7318 | ;; |
---|
7319 | no:yes:* ) |
---|
7320 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7321 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7322 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7323 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7324 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7325 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7326 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7327 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7328 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7329 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7330 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7331 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7332 | ( |
---|
7333 | cat <<\_ASBOX |
---|
7334 | ## ------------------------------------------- ## |
---|
7335 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
7336 | ## ------------------------------------------- ## |
---|
7337 | _ASBOX |
---|
7338 | ) | |
---|
7339 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7340 | ;; |
---|
7341 | esac |
---|
7342 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7343 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7346 | else |
---|
7347 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7348 | fi |
---|
7349 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7350 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7351 | |
---|
7352 | fi |
---|
7353 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7354 | cat >>confdefs.h <<_ACEOF |
---|
7355 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7356 | _ACEOF |
---|
7357 | |
---|
7358 | fi |
---|
7359 | |
---|
7360 | done |
---|
7361 | |
---|
7362 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
7363 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
7364 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
7365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7366 | else |
---|
7367 | if test "$cross_compiling" = yes; then |
---|
7368 | ac_cv_func_malloc_0_nonnull=no |
---|
7369 | else |
---|
7370 | cat >conftest.$ac_ext <<_ACEOF |
---|
7371 | /* confdefs.h. */ |
---|
7372 | _ACEOF |
---|
7373 | cat confdefs.h >>conftest.$ac_ext |
---|
7374 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7375 | /* end confdefs.h. */ |
---|
7376 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
7377 | # include <stdlib.h> |
---|
7378 | #else |
---|
7379 | char *malloc (); |
---|
7380 | #endif |
---|
7381 | |
---|
7382 | int |
---|
7383 | main () |
---|
7384 | { |
---|
7385 | exit (malloc (0) ? 0 : 1); |
---|
7386 | ; |
---|
7387 | return 0; |
---|
7388 | } |
---|
7389 | _ACEOF |
---|
7390 | rm -f conftest$ac_exeext |
---|
7391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7392 | (eval $ac_link) 2>&5 |
---|
7393 | ac_status=$? |
---|
7394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7395 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7397 | (eval $ac_try) 2>&5 |
---|
7398 | ac_status=$? |
---|
7399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7400 | (exit $ac_status); }; }; then |
---|
7401 | ac_cv_func_malloc_0_nonnull=yes |
---|
7402 | else |
---|
7403 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7404 | echo "$as_me: failed program was:" >&5 |
---|
7405 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7406 | |
---|
7407 | ( exit $ac_status ) |
---|
7408 | ac_cv_func_malloc_0_nonnull=no |
---|
7409 | fi |
---|
7410 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7411 | fi |
---|
7412 | fi |
---|
7413 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
7414 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
7415 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
7416 | |
---|
7417 | cat >>confdefs.h <<\_ACEOF |
---|
7418 | #define HAVE_MALLOC 1 |
---|
7419 | _ACEOF |
---|
7420 | |
---|
7421 | else |
---|
7422 | cat >>confdefs.h <<\_ACEOF |
---|
7423 | #define HAVE_MALLOC 0 |
---|
7424 | _ACEOF |
---|
7425 | |
---|
7426 | case $LIBOBJS in |
---|
7427 | "malloc.$ac_objext" | \ |
---|
7428 | *" malloc.$ac_objext" | \ |
---|
7429 | "malloc.$ac_objext "* | \ |
---|
7430 | *" malloc.$ac_objext "* ) ;; |
---|
7431 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
7432 | esac |
---|
7433 | |
---|
7434 | |
---|
7435 | cat >>confdefs.h <<\_ACEOF |
---|
7436 | #define malloc rpl_malloc |
---|
7437 | _ACEOF |
---|
7438 | |
---|
7439 | fi |
---|
7440 | |
---|
7441 | |
---|
7442 | |
---|
7443 | |
---|
7444 | |
---|
7445 | for ac_func in bzero sqrt |
---|
7446 | do |
---|
7447 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
7448 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
7449 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
7450 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
7451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7452 | else |
---|
7453 | cat >conftest.$ac_ext <<_ACEOF |
---|
7454 | /* confdefs.h. */ |
---|
7455 | _ACEOF |
---|
7456 | cat confdefs.h >>conftest.$ac_ext |
---|
7457 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7458 | /* end confdefs.h. */ |
---|
7459 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
7460 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
7461 | #define $ac_func innocuous_$ac_func |
---|
7462 | |
---|
7463 | /* System header to define __stub macros and hopefully few prototypes, |
---|
7464 | which can conflict with char $ac_func (); below. |
---|
7465 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7466 | <limits.h> exists even on freestanding compilers. */ |
---|
7467 | |
---|
7468 | #ifdef __STDC__ |
---|
7469 | # include <limits.h> |
---|
7470 | #else |
---|
7471 | # include <assert.h> |
---|
7472 | #endif |
---|
7473 | |
---|
7474 | #undef $ac_func |
---|
7475 | |
---|
7476 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7477 | #ifdef __cplusplus |
---|
7478 | extern "C" |
---|
7479 | { |
---|
7480 | #endif |
---|
7481 | /* We use char because int might match the return type of a gcc2 |
---|
7482 | builtin and then its argument prototype would still apply. */ |
---|
7483 | char $ac_func (); |
---|
7484 | /* The GNU C library defines this for functions which it implements |
---|
7485 | to always fail with ENOSYS. Some functions are actually named |
---|
7486 | something starting with __ and the normal name is an alias. */ |
---|
7487 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
7488 | choke me |
---|
7489 | #else |
---|
7490 | char (*f) () = $ac_func; |
---|
7491 | #endif |
---|
7492 | #ifdef __cplusplus |
---|
7493 | } |
---|
7494 | #endif |
---|
7495 | |
---|
7496 | int |
---|
7497 | main () |
---|
7498 | { |
---|
7499 | return f != $ac_func; |
---|
7500 | ; |
---|
7501 | return 0; |
---|
7502 | } |
---|
7503 | _ACEOF |
---|
7504 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7506 | (eval $ac_link) 2>conftest.er1 |
---|
7507 | ac_status=$? |
---|
7508 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7509 | rm -f conftest.er1 |
---|
7510 | cat conftest.err >&5 |
---|
7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7512 | (exit $ac_status); } && |
---|
7513 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7514 | || test ! -s conftest.err' |
---|
7515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7516 | (eval $ac_try) 2>&5 |
---|
7517 | ac_status=$? |
---|
7518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7519 | (exit $ac_status); }; } && |
---|
7520 | { ac_try='test -s conftest$ac_exeext' |
---|
7521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7522 | (eval $ac_try) 2>&5 |
---|
7523 | ac_status=$? |
---|
7524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7525 | (exit $ac_status); }; }; then |
---|
7526 | eval "$as_ac_var=yes" |
---|
7527 | else |
---|
7528 | echo "$as_me: failed program was:" >&5 |
---|
7529 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7530 | |
---|
7531 | eval "$as_ac_var=no" |
---|
7532 | fi |
---|
7533 | rm -f conftest.err conftest.$ac_objext \ |
---|
7534 | conftest$ac_exeext conftest.$ac_ext |
---|
7535 | fi |
---|
7536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
7537 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
7538 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
7539 | cat >>confdefs.h <<_ACEOF |
---|
7540 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
7541 | _ACEOF |
---|
7542 | |
---|
7543 | fi |
---|
7544 | done |
---|
7545 | |
---|
7546 | |
---|
7547 | ac_config_files="$ac_config_files Makefile src/console/Makefile src/gui/Makefile src/Makefile importer/Makefile" |
---|
7548 | |
---|
7549 | cat >confcache <<\_ACEOF |
---|
7550 | # This file is a shell script that caches the results of configure |
---|
7551 | # tests run on this system so they can be shared between configure |
---|
7552 | # scripts and configure runs, see configure's option --config-cache. |
---|
7553 | # It is not useful on other systems. If it contains results you don't |
---|
7554 | # want to keep, you may remove or edit it. |
---|
7555 | # |
---|
7556 | # config.status only pays attention to the cache file if you give it |
---|
7557 | # the --recheck option to rerun configure. |
---|
7558 | # |
---|
7559 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7560 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7561 | # following values. |
---|
7562 | |
---|
7563 | _ACEOF |
---|
7564 | |
---|
7565 | # The following way of writing the cache mishandles newlines in values, |
---|
7566 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7567 | # So, don't put newlines in cache variables' values. |
---|
7568 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7569 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7570 | { |
---|
7571 | (set) 2>&1 | |
---|
7572 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
7573 | *ac_space=\ *) |
---|
7574 | # `set' does not quote correctly, so add quotes (double-quote |
---|
7575 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
7576 | sed -n \ |
---|
7577 | "s/'/'\\\\''/g; |
---|
7578 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7579 | ;; |
---|
7580 | *) |
---|
7581 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7582 | sed -n \ |
---|
7583 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
7584 | ;; |
---|
7585 | esac; |
---|
7586 | } | |
---|
7587 | sed ' |
---|
7588 | t clear |
---|
7589 | : clear |
---|
7590 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7591 | t end |
---|
7592 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7593 | : end' >>confcache |
---|
7594 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
7595 | if test -w $cache_file; then |
---|
7596 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
7597 | cat confcache >$cache_file |
---|
7598 | else |
---|
7599 | echo "not updating unwritable cache $cache_file" |
---|
7600 | fi |
---|
7601 | fi |
---|
7602 | rm -f confcache |
---|
7603 | |
---|
7604 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7605 | # Let make expand exec_prefix. |
---|
7606 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7607 | |
---|
7608 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
7609 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
7610 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7611 | # (actually we leave an empty line to preserve line numbers). |
---|
7612 | if test "x$srcdir" = x.; then |
---|
7613 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
7614 | s/:*\$(srcdir):*/:/; |
---|
7615 | s/:*\${srcdir}:*/:/; |
---|
7616 | s/:*@srcdir@:*/:/; |
---|
7617 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
7618 | s/:*$//; |
---|
7619 | s/^[^=]*=[ ]*$//; |
---|
7620 | }' |
---|
7621 | fi |
---|
7622 | |
---|
7623 | DEFS=-DHAVE_CONFIG_H |
---|
7624 | |
---|
7625 | ac_libobjs= |
---|
7626 | ac_ltlibobjs= |
---|
7627 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
7628 | # 1. Remove the extension, and $U if already installed. |
---|
7629 | ac_i=`echo "$ac_i" | |
---|
7630 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
7631 | # 2. Add them. |
---|
7632 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
7633 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
7634 | done |
---|
7635 | LIBOBJS=$ac_libobjs |
---|
7636 | |
---|
7637 | LTLIBOBJS=$ac_ltlibobjs |
---|
7638 | |
---|
7639 | |
---|
7640 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
7641 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
7642 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7643 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
7644 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7645 | { (exit 1); exit 1; }; } |
---|
7646 | fi |
---|
7647 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
7648 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
7649 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7650 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
7651 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7652 | { (exit 1); exit 1; }; } |
---|
7653 | fi |
---|
7654 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
7655 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
7656 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7657 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
7658 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7659 | { (exit 1); exit 1; }; } |
---|
7660 | fi |
---|
7661 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
7662 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
7663 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7664 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
7665 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7666 | { (exit 1); exit 1; }; } |
---|
7667 | fi |
---|
7668 | |
---|
7669 | : ${CONFIG_STATUS=./config.status} |
---|
7670 | ac_clean_files_save=$ac_clean_files |
---|
7671 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
7672 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
7673 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
7674 | cat >$CONFIG_STATUS <<_ACEOF |
---|
7675 | #! $SHELL |
---|
7676 | # Generated by $as_me. |
---|
7677 | # Run this file to recreate the current configuration. |
---|
7678 | # Compiler output produced by configure, useful for debugging |
---|
7679 | # configure, is in config.log if it exists. |
---|
7680 | |
---|
7681 | debug=false |
---|
7682 | ac_cs_recheck=false |
---|
7683 | ac_cs_silent=false |
---|
7684 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
7685 | _ACEOF |
---|
7686 | |
---|
7687 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7688 | ## --------------------- ## |
---|
7689 | ## M4sh Initialization. ## |
---|
7690 | ## --------------------- ## |
---|
7691 | |
---|
7692 | # Be Bourne compatible |
---|
7693 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
7694 | emulate sh |
---|
7695 | NULLCMD=: |
---|
7696 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
7697 | # is contrary to our usage. Disable this feature. |
---|
7698 | alias -g '${1+"$@"}'='"$@"' |
---|
7699 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
7700 | set -o posix |
---|
7701 | fi |
---|
7702 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
7703 | |
---|
7704 | # Support unset when possible. |
---|
7705 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
7706 | as_unset=unset |
---|
7707 | else |
---|
7708 | as_unset=false |
---|
7709 | fi |
---|
7710 | |
---|
7711 | |
---|
7712 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
7713 | $as_unset ENV MAIL MAILPATH |
---|
7714 | PS1='$ ' |
---|
7715 | PS2='> ' |
---|
7716 | PS4='+ ' |
---|
7717 | |
---|
7718 | # NLS nuisances. |
---|
7719 | for as_var in \ |
---|
7720 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
7721 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
7722 | LC_TELEPHONE LC_TIME |
---|
7723 | do |
---|
7724 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
7725 | eval $as_var=C; export $as_var |
---|
7726 | else |
---|
7727 | $as_unset $as_var |
---|
7728 | fi |
---|
7729 | done |
---|
7730 | |
---|
7731 | # Required to use basename. |
---|
7732 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
7733 | as_expr=expr |
---|
7734 | else |
---|
7735 | as_expr=false |
---|
7736 | fi |
---|
7737 | |
---|
7738 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
7739 | as_basename=basename |
---|
7740 | else |
---|
7741 | as_basename=false |
---|
7742 | fi |
---|
7743 | |
---|
7744 | |
---|
7745 | # Name of the executable. |
---|
7746 | as_me=`$as_basename "$0" || |
---|
7747 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
7748 | X"$0" : 'X\(//\)$' \| \ |
---|
7749 | X"$0" : 'X\(/\)$' \| \ |
---|
7750 | . : '\(.\)' 2>/dev/null || |
---|
7751 | echo X/"$0" | |
---|
7752 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
7753 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
7754 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
7755 | s/.*/./; q'` |
---|
7756 | |
---|
7757 | |
---|
7758 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
7759 | # Avoid depending upon Character Ranges. |
---|
7760 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
7761 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
7762 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
7763 | as_cr_digits='0123456789' |
---|
7764 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
7765 | |
---|
7766 | # The user is always right. |
---|
7767 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
7768 | echo "#! /bin/sh" >conf$$.sh |
---|
7769 | echo "exit 0" >>conf$$.sh |
---|
7770 | chmod +x conf$$.sh |
---|
7771 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
7772 | PATH_SEPARATOR=';' |
---|
7773 | else |
---|
7774 | PATH_SEPARATOR=: |
---|
7775 | fi |
---|
7776 | rm -f conf$$.sh |
---|
7777 | fi |
---|
7778 | |
---|
7779 | |
---|
7780 | as_lineno_1=$LINENO |
---|
7781 | as_lineno_2=$LINENO |
---|
7782 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
7783 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
7784 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
7785 | # Find who we are. Look in the path if we contain no path at all |
---|
7786 | # relative or not. |
---|
7787 | case $0 in |
---|
7788 | *[\\/]* ) as_myself=$0 ;; |
---|
7789 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7790 | for as_dir in $PATH |
---|
7791 | do |
---|
7792 | IFS=$as_save_IFS |
---|
7793 | test -z "$as_dir" && as_dir=. |
---|
7794 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
7795 | done |
---|
7796 | |
---|
7797 | ;; |
---|
7798 | esac |
---|
7799 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
7800 | # in which case we are not to be found in the path. |
---|
7801 | if test "x$as_myself" = x; then |
---|
7802 | as_myself=$0 |
---|
7803 | fi |
---|
7804 | if test ! -f "$as_myself"; then |
---|
7805 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
7806 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
7807 | { (exit 1); exit 1; }; } |
---|
7808 | fi |
---|
7809 | case $CONFIG_SHELL in |
---|
7810 | '') |
---|
7811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7812 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
7813 | do |
---|
7814 | IFS=$as_save_IFS |
---|
7815 | test -z "$as_dir" && as_dir=. |
---|
7816 | for as_base in sh bash ksh sh5; do |
---|
7817 | case $as_dir in |
---|
7818 | /*) |
---|
7819 | if ("$as_dir/$as_base" -c ' |
---|
7820 | as_lineno_1=$LINENO |
---|
7821 | as_lineno_2=$LINENO |
---|
7822 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
7823 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
7824 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
7825 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
7826 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
7827 | CONFIG_SHELL=$as_dir/$as_base |
---|
7828 | export CONFIG_SHELL |
---|
7829 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
7830 | fi;; |
---|
7831 | esac |
---|
7832 | done |
---|
7833 | done |
---|
7834 | ;; |
---|
7835 | esac |
---|
7836 | |
---|
7837 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
7838 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
7839 | # line-number line before each line; the second 'sed' does the real |
---|
7840 | # work. The second script uses 'N' to pair each line-number line |
---|
7841 | # with the numbered line, and appends trailing '-' during |
---|
7842 | # substitution so that $LINENO is not a special case at line end. |
---|
7843 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
7844 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
7845 | sed '=' <$as_myself | |
---|
7846 | sed ' |
---|
7847 | N |
---|
7848 | s,$,-, |
---|
7849 | : loop |
---|
7850 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
7851 | t loop |
---|
7852 | s,-$,, |
---|
7853 | s,^['$as_cr_digits']*\n,, |
---|
7854 | ' >$as_me.lineno && |
---|
7855 | chmod +x $as_me.lineno || |
---|
7856 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
7857 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
7858 | { (exit 1); exit 1; }; } |
---|
7859 | |
---|
7860 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
7861 | # (the dirname of $[0] is not the place where we might find the |
---|
7862 | # original and so on. Autoconf is especially sensible to this). |
---|
7863 | . ./$as_me.lineno |
---|
7864 | # Exit status is that of the last command. |
---|
7865 | exit |
---|
7866 | } |
---|
7867 | |
---|
7868 | |
---|
7869 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
7870 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
7871 | ' ECHO_T=' ' ;; |
---|
7872 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
7873 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
7874 | esac |
---|
7875 | |
---|
7876 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
7877 | as_expr=expr |
---|
7878 | else |
---|
7879 | as_expr=false |
---|
7880 | fi |
---|
7881 | |
---|
7882 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7883 | echo >conf$$.file |
---|
7884 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
7885 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
7886 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
7887 | if test -f conf$$.exe; then |
---|
7888 | # Don't use ln at all; we don't have any links |
---|
7889 | as_ln_s='cp -p' |
---|
7890 | else |
---|
7891 | as_ln_s='ln -s' |
---|
7892 | fi |
---|
7893 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
7894 | as_ln_s=ln |
---|
7895 | else |
---|
7896 | as_ln_s='cp -p' |
---|
7897 | fi |
---|
7898 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7899 | |
---|
7900 | if mkdir -p . 2>/dev/null; then |
---|
7901 | as_mkdir_p=: |
---|
7902 | else |
---|
7903 | test -d ./-p && rmdir ./-p |
---|
7904 | as_mkdir_p=false |
---|
7905 | fi |
---|
7906 | |
---|
7907 | as_executable_p="test -f" |
---|
7908 | |
---|
7909 | # Sed expression to map a string onto a valid CPP name. |
---|
7910 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
7911 | |
---|
7912 | # Sed expression to map a string onto a valid variable name. |
---|
7913 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
7914 | |
---|
7915 | |
---|
7916 | # IFS |
---|
7917 | # We need space, tab and new line, in precisely that order. |
---|
7918 | as_nl=' |
---|
7919 | ' |
---|
7920 | IFS=" $as_nl" |
---|
7921 | |
---|
7922 | # CDPATH. |
---|
7923 | $as_unset CDPATH |
---|
7924 | |
---|
7925 | exec 6>&1 |
---|
7926 | |
---|
7927 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
7928 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
7929 | # values after options handling. Logging --version etc. is OK. |
---|
7930 | exec 5>>config.log |
---|
7931 | { |
---|
7932 | echo |
---|
7933 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
7934 | ## Running $as_me. ## |
---|
7935 | _ASBOX |
---|
7936 | } >&5 |
---|
7937 | cat >&5 <<_CSEOF |
---|
7938 | |
---|
7939 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
7940 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
7941 | |
---|
7942 | CONFIG_FILES = $CONFIG_FILES |
---|
7943 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
7944 | CONFIG_LINKS = $CONFIG_LINKS |
---|
7945 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
7946 | $ $0 $@ |
---|
7947 | |
---|
7948 | _CSEOF |
---|
7949 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
7950 | echo >&5 |
---|
7951 | _ACEOF |
---|
7952 | |
---|
7953 | # Files that config.status was made for. |
---|
7954 | if test -n "$ac_config_files"; then |
---|
7955 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
7956 | fi |
---|
7957 | |
---|
7958 | if test -n "$ac_config_headers"; then |
---|
7959 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
7960 | fi |
---|
7961 | |
---|
7962 | if test -n "$ac_config_links"; then |
---|
7963 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
7964 | fi |
---|
7965 | |
---|
7966 | if test -n "$ac_config_commands"; then |
---|
7967 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
7968 | fi |
---|
7969 | |
---|
7970 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7971 | |
---|
7972 | ac_cs_usage="\ |
---|
7973 | \`$as_me' instantiates files from templates according to the |
---|
7974 | current configuration. |
---|
7975 | |
---|
7976 | Usage: $0 [OPTIONS] [FILE]... |
---|
7977 | |
---|
7978 | -h, --help print this help, then exit |
---|
7979 | -V, --version print version number, then exit |
---|
7980 | -q, --quiet do not print progress messages |
---|
7981 | -d, --debug don't remove temporary files |
---|
7982 | --recheck update $as_me by reconfiguring in the same conditions |
---|
7983 | --file=FILE[:TEMPLATE] |
---|
7984 | instantiate the configuration file FILE |
---|
7985 | --header=FILE[:TEMPLATE] |
---|
7986 | instantiate the configuration header FILE |
---|
7987 | |
---|
7988 | Configuration files: |
---|
7989 | $config_files |
---|
7990 | |
---|
7991 | Configuration headers: |
---|
7992 | $config_headers |
---|
7993 | |
---|
7994 | Configuration commands: |
---|
7995 | $config_commands |
---|
7996 | |
---|
7997 | Report bugs to <bug-autoconf@gnu.org>." |
---|
7998 | _ACEOF |
---|
7999 | |
---|
8000 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8001 | ac_cs_version="\\ |
---|
8002 | orxonox config.status 0.1-pre-alpha |
---|
8003 | configured by $0, generated by GNU Autoconf 2.59, |
---|
8004 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
8005 | |
---|
8006 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8007 | This config.status script is free software; the Free Software Foundation |
---|
8008 | gives unlimited permission to copy, distribute and modify it." |
---|
8009 | srcdir=$srcdir |
---|
8010 | INSTALL="$INSTALL" |
---|
8011 | _ACEOF |
---|
8012 | |
---|
8013 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8014 | # If no file are specified by the user, then we need to provide default |
---|
8015 | # value. By we need to know if files were specified by the user. |
---|
8016 | ac_need_defaults=: |
---|
8017 | while test $# != 0 |
---|
8018 | do |
---|
8019 | case $1 in |
---|
8020 | --*=*) |
---|
8021 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
8022 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
8023 | ac_shift=: |
---|
8024 | ;; |
---|
8025 | -*) |
---|
8026 | ac_option=$1 |
---|
8027 | ac_optarg=$2 |
---|
8028 | ac_shift=shift |
---|
8029 | ;; |
---|
8030 | *) # This is not an option, so the user has probably given explicit |
---|
8031 | # arguments. |
---|
8032 | ac_option=$1 |
---|
8033 | ac_need_defaults=false;; |
---|
8034 | esac |
---|
8035 | |
---|
8036 | case $ac_option in |
---|
8037 | # Handling of the options. |
---|
8038 | _ACEOF |
---|
8039 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8040 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8041 | ac_cs_recheck=: ;; |
---|
8042 | --version | --vers* | -V ) |
---|
8043 | echo "$ac_cs_version"; exit 0 ;; |
---|
8044 | --he | --h) |
---|
8045 | # Conflict between --help and --header |
---|
8046 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
8047 | Try \`$0 --help' for more information." >&5 |
---|
8048 | echo "$as_me: error: ambiguous option: $1 |
---|
8049 | Try \`$0 --help' for more information." >&2;} |
---|
8050 | { (exit 1); exit 1; }; };; |
---|
8051 | --help | --hel | -h ) |
---|
8052 | echo "$ac_cs_usage"; exit 0 ;; |
---|
8053 | --debug | --d* | -d ) |
---|
8054 | debug=: ;; |
---|
8055 | --file | --fil | --fi | --f ) |
---|
8056 | $ac_shift |
---|
8057 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
8058 | ac_need_defaults=false;; |
---|
8059 | --header | --heade | --head | --hea ) |
---|
8060 | $ac_shift |
---|
8061 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
8062 | ac_need_defaults=false;; |
---|
8063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
8064 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
8065 | ac_cs_silent=: ;; |
---|
8066 | |
---|
8067 | # This is an error. |
---|
8068 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
8069 | Try \`$0 --help' for more information." >&5 |
---|
8070 | echo "$as_me: error: unrecognized option: $1 |
---|
8071 | Try \`$0 --help' for more information." >&2;} |
---|
8072 | { (exit 1); exit 1; }; } ;; |
---|
8073 | |
---|
8074 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
8075 | |
---|
8076 | esac |
---|
8077 | shift |
---|
8078 | done |
---|
8079 | |
---|
8080 | ac_configure_extra_args= |
---|
8081 | |
---|
8082 | if $ac_cs_silent; then |
---|
8083 | exec 6>/dev/null |
---|
8084 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
8085 | fi |
---|
8086 | |
---|
8087 | _ACEOF |
---|
8088 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8089 | if \$ac_cs_recheck; then |
---|
8090 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
8091 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
8092 | fi |
---|
8093 | |
---|
8094 | _ACEOF |
---|
8095 | |
---|
8096 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8097 | # |
---|
8098 | # INIT-COMMANDS section. |
---|
8099 | # |
---|
8100 | |
---|
8101 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
8102 | |
---|
8103 | _ACEOF |
---|
8104 | |
---|
8105 | |
---|
8106 | |
---|
8107 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8108 | for ac_config_target in $ac_config_targets |
---|
8109 | do |
---|
8110 | case "$ac_config_target" in |
---|
8111 | # Handling of arguments. |
---|
8112 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
8113 | "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;; |
---|
8114 | "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;; |
---|
8115 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
8116 | "importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES importer/Makefile" ;; |
---|
8117 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
8118 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
8119 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
8120 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
8121 | { (exit 1); exit 1; }; };; |
---|
8122 | esac |
---|
8123 | done |
---|
8124 | |
---|
8125 | # If the user did not use the arguments to specify the items to instantiate, |
---|
8126 | # then the envvar interface is used. Set only those that are not. |
---|
8127 | # We use the long form for the default assignment because of an extremely |
---|
8128 | # bizarre bug on SunOS 4.1.3. |
---|
8129 | if $ac_need_defaults; then |
---|
8130 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
8131 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
8132 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
8133 | fi |
---|
8134 | |
---|
8135 | # Have a temporary directory for convenience. Make it in the build tree |
---|
8136 | # simply because there is no reason to put it here, and in addition, |
---|
8137 | # creating and moving files from /tmp can sometimes cause problems. |
---|
8138 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
8139 | $debug || |
---|
8140 | { |
---|
8141 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
8142 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
8143 | } |
---|
8144 | |
---|
8145 | # Create a (secure) tmp directory for tmp files. |
---|
8146 | |
---|
8147 | { |
---|
8148 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
8149 | test -n "$tmp" && test -d "$tmp" |
---|
8150 | } || |
---|
8151 | { |
---|
8152 | tmp=./confstat$$-$RANDOM |
---|
8153 | (umask 077 && mkdir $tmp) |
---|
8154 | } || |
---|
8155 | { |
---|
8156 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
8157 | { (exit 1); exit 1; } |
---|
8158 | } |
---|
8159 | |
---|
8160 | _ACEOF |
---|
8161 | |
---|
8162 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8163 | |
---|
8164 | # |
---|
8165 | # CONFIG_FILES section. |
---|
8166 | # |
---|
8167 | |
---|
8168 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
8169 | # This happens for instance when ./config.status config.h |
---|
8170 | if test -n "\$CONFIG_FILES"; then |
---|
8171 | # Protect against being on the right side of a sed subst in config.status. |
---|
8172 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
8173 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
8174 | s,@SHELL@,$SHELL,;t t |
---|
8175 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
8176 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
8177 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
8178 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
8179 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
8180 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
8181 | s,@exec_prefix@,$exec_prefix,;t t |
---|
8182 | s,@prefix@,$prefix,;t t |
---|
8183 | s,@program_transform_name@,$program_transform_name,;t t |
---|
8184 | s,@bindir@,$bindir,;t t |
---|
8185 | s,@sbindir@,$sbindir,;t t |
---|
8186 | s,@libexecdir@,$libexecdir,;t t |
---|
8187 | s,@datadir@,$datadir,;t t |
---|
8188 | s,@sysconfdir@,$sysconfdir,;t t |
---|
8189 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
8190 | s,@localstatedir@,$localstatedir,;t t |
---|
8191 | s,@libdir@,$libdir,;t t |
---|
8192 | s,@includedir@,$includedir,;t t |
---|
8193 | s,@oldincludedir@,$oldincludedir,;t t |
---|
8194 | s,@infodir@,$infodir,;t t |
---|
8195 | s,@mandir@,$mandir,;t t |
---|
8196 | s,@build_alias@,$build_alias,;t t |
---|
8197 | s,@host_alias@,$host_alias,;t t |
---|
8198 | s,@target_alias@,$target_alias,;t t |
---|
8199 | s,@DEFS@,$DEFS,;t t |
---|
8200 | s,@ECHO_C@,$ECHO_C,;t t |
---|
8201 | s,@ECHO_N@,$ECHO_N,;t t |
---|
8202 | s,@ECHO_T@,$ECHO_T,;t t |
---|
8203 | s,@LIBS@,$LIBS,;t t |
---|
8204 | s,@build@,$build,;t t |
---|
8205 | s,@build_cpu@,$build_cpu,;t t |
---|
8206 | s,@build_vendor@,$build_vendor,;t t |
---|
8207 | s,@build_os@,$build_os,;t t |
---|
8208 | s,@host@,$host,;t t |
---|
8209 | s,@host_cpu@,$host_cpu,;t t |
---|
8210 | s,@host_vendor@,$host_vendor,;t t |
---|
8211 | s,@host_os@,$host_os,;t t |
---|
8212 | s,@target@,$target,;t t |
---|
8213 | s,@target_cpu@,$target_cpu,;t t |
---|
8214 | s,@target_vendor@,$target_vendor,;t t |
---|
8215 | s,@target_os@,$target_os,;t t |
---|
8216 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
8217 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
8218 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
8219 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
8220 | s,@PACKAGE@,$PACKAGE,;t t |
---|
8221 | s,@VERSION@,$VERSION,;t t |
---|
8222 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
8223 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
8224 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
8225 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
8226 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
8227 | s,@AMTAR@,$AMTAR,;t t |
---|
8228 | s,@install_sh@,$install_sh,;t t |
---|
8229 | s,@STRIP@,$STRIP,;t t |
---|
8230 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
8231 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
8232 | s,@mkdir_p@,$mkdir_p,;t t |
---|
8233 | s,@AWK@,$AWK,;t t |
---|
8234 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
8235 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
8236 | s,@CXX@,$CXX,;t t |
---|
8237 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
8238 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
8239 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
8240 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
8241 | s,@EXEEXT@,$EXEEXT,;t t |
---|
8242 | s,@OBJEXT@,$OBJEXT,;t t |
---|
8243 | s,@DEPDIR@,$DEPDIR,;t t |
---|
8244 | s,@am__include@,$am__include,;t t |
---|
8245 | s,@am__quote@,$am__quote,;t t |
---|
8246 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
8247 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
8248 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
8249 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
8250 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
8251 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
8252 | s,@CC@,$CC,;t t |
---|
8253 | s,@CFLAGS@,$CFLAGS,;t t |
---|
8254 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
8255 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
8256 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
8257 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
8258 | s,@CPP@,$CPP,;t t |
---|
8259 | s,@EGREP@,$EGREP,;t t |
---|
8260 | s,@DEBUG@,$DEBUG,;t t |
---|
8261 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
8262 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
8263 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
8264 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
8265 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
8266 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
8267 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
8268 | CEOF |
---|
8269 | |
---|
8270 | _ACEOF |
---|
8271 | |
---|
8272 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8273 | # Split the substitutions into bite-sized pieces for seds with |
---|
8274 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
8275 | ac_max_sed_lines=48 |
---|
8276 | ac_sed_frag=1 # Number of current file. |
---|
8277 | ac_beg=1 # First line for current file. |
---|
8278 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
8279 | ac_more_lines=: |
---|
8280 | ac_sed_cmds= |
---|
8281 | while $ac_more_lines; do |
---|
8282 | if test $ac_beg -gt 1; then |
---|
8283 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8284 | else |
---|
8285 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8286 | fi |
---|
8287 | if test ! -s $tmp/subs.frag; then |
---|
8288 | ac_more_lines=false |
---|
8289 | else |
---|
8290 | # The purpose of the label and of the branching condition is to |
---|
8291 | # speed up the sed processing (if there are no `@' at all, there |
---|
8292 | # is no need to browse any of the substitutions). |
---|
8293 | # These are the two extra sed commands mentioned above. |
---|
8294 | (echo ':t |
---|
8295 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
8296 | if test -z "$ac_sed_cmds"; then |
---|
8297 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8298 | else |
---|
8299 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8300 | fi |
---|
8301 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
8302 | ac_beg=$ac_end |
---|
8303 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
8304 | fi |
---|
8305 | done |
---|
8306 | if test -z "$ac_sed_cmds"; then |
---|
8307 | ac_sed_cmds=cat |
---|
8308 | fi |
---|
8309 | fi # test -n "$CONFIG_FILES" |
---|
8310 | |
---|
8311 | _ACEOF |
---|
8312 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8313 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
8314 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8315 | case $ac_file in |
---|
8316 | - | *:- | *:-:* ) # input from stdin |
---|
8317 | cat >$tmp/stdin |
---|
8318 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8319 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8320 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8321 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8322 | * ) ac_file_in=$ac_file.in ;; |
---|
8323 | esac |
---|
8324 | |
---|
8325 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
8326 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8327 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8328 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8329 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8330 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8331 | . : '\(.\)' 2>/dev/null || |
---|
8332 | echo X"$ac_file" | |
---|
8333 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8334 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8335 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8336 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8337 | s/.*/./; q'` |
---|
8338 | { if $as_mkdir_p; then |
---|
8339 | mkdir -p "$ac_dir" |
---|
8340 | else |
---|
8341 | as_dir="$ac_dir" |
---|
8342 | as_dirs= |
---|
8343 | while test ! -d "$as_dir"; do |
---|
8344 | as_dirs="$as_dir $as_dirs" |
---|
8345 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8346 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8347 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8348 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8349 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8350 | . : '\(.\)' 2>/dev/null || |
---|
8351 | echo X"$as_dir" | |
---|
8352 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8353 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8354 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8355 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8356 | s/.*/./; q'` |
---|
8357 | done |
---|
8358 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8359 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8360 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8361 | { (exit 1); exit 1; }; }; } |
---|
8362 | |
---|
8363 | ac_builddir=. |
---|
8364 | |
---|
8365 | if test "$ac_dir" != .; then |
---|
8366 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
8367 | # A "../" for each directory in $ac_dir_suffix. |
---|
8368 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
8369 | else |
---|
8370 | ac_dir_suffix= ac_top_builddir= |
---|
8371 | fi |
---|
8372 | |
---|
8373 | case $srcdir in |
---|
8374 | .) # No --srcdir option. We are building in place. |
---|
8375 | ac_srcdir=. |
---|
8376 | if test -z "$ac_top_builddir"; then |
---|
8377 | ac_top_srcdir=. |
---|
8378 | else |
---|
8379 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
8380 | fi ;; |
---|
8381 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
8382 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8383 | ac_top_srcdir=$srcdir ;; |
---|
8384 | *) # Relative path. |
---|
8385 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
8386 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
8387 | esac |
---|
8388 | |
---|
8389 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
8390 | # the directories may not exist. |
---|
8391 | case `pwd` in |
---|
8392 | .) ac_abs_builddir="$ac_dir";; |
---|
8393 | *) |
---|
8394 | case "$ac_dir" in |
---|
8395 | .) ac_abs_builddir=`pwd`;; |
---|
8396 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
8397 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
8398 | esac;; |
---|
8399 | esac |
---|
8400 | case $ac_abs_builddir in |
---|
8401 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
8402 | *) |
---|
8403 | case ${ac_top_builddir}. in |
---|
8404 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
8405 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
8406 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
8407 | esac;; |
---|
8408 | esac |
---|
8409 | case $ac_abs_builddir in |
---|
8410 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
8411 | *) |
---|
8412 | case $ac_srcdir in |
---|
8413 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
8414 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
8415 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
8416 | esac;; |
---|
8417 | esac |
---|
8418 | case $ac_abs_builddir in |
---|
8419 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
8420 | *) |
---|
8421 | case $ac_top_srcdir in |
---|
8422 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
8423 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
8424 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
8425 | esac;; |
---|
8426 | esac |
---|
8427 | |
---|
8428 | |
---|
8429 | case $INSTALL in |
---|
8430 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
8431 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
8432 | esac |
---|
8433 | |
---|
8434 | if test x"$ac_file" != x-; then |
---|
8435 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8436 | echo "$as_me: creating $ac_file" >&6;} |
---|
8437 | rm -f "$ac_file" |
---|
8438 | fi |
---|
8439 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8440 | # use $as_me), people would be surprised to read: |
---|
8441 | # /* config.h. Generated by config.status. */ |
---|
8442 | if test x"$ac_file" = x-; then |
---|
8443 | configure_input= |
---|
8444 | else |
---|
8445 | configure_input="$ac_file. " |
---|
8446 | fi |
---|
8447 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
8448 | sed 's,.*/,,'` by configure." |
---|
8449 | |
---|
8450 | # First look for the input files in the build tree, otherwise in the |
---|
8451 | # src tree. |
---|
8452 | ac_file_inputs=`IFS=: |
---|
8453 | for f in $ac_file_in; do |
---|
8454 | case $f in |
---|
8455 | -) echo $tmp/stdin ;; |
---|
8456 | [\\/$]*) |
---|
8457 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8458 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8459 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8460 | { (exit 1); exit 1; }; } |
---|
8461 | echo "$f";; |
---|
8462 | *) # Relative |
---|
8463 | if test -f "$f"; then |
---|
8464 | # Build tree |
---|
8465 | echo "$f" |
---|
8466 | elif test -f "$srcdir/$f"; then |
---|
8467 | # Source tree |
---|
8468 | echo "$srcdir/$f" |
---|
8469 | else |
---|
8470 | # /dev/null tree |
---|
8471 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8472 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8473 | { (exit 1); exit 1; }; } |
---|
8474 | fi;; |
---|
8475 | esac |
---|
8476 | done` || { (exit 1); exit 1; } |
---|
8477 | _ACEOF |
---|
8478 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8479 | sed "$ac_vpsub |
---|
8480 | $extrasub |
---|
8481 | _ACEOF |
---|
8482 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8483 | :t |
---|
8484 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
8485 | s,@configure_input@,$configure_input,;t t |
---|
8486 | s,@srcdir@,$ac_srcdir,;t t |
---|
8487 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
8488 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
8489 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
8490 | s,@builddir@,$ac_builddir,;t t |
---|
8491 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
8492 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
8493 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
8494 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
8495 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
8496 | rm -f $tmp/stdin |
---|
8497 | if test x"$ac_file" != x-; then |
---|
8498 | mv $tmp/out $ac_file |
---|
8499 | else |
---|
8500 | cat $tmp/out |
---|
8501 | rm -f $tmp/out |
---|
8502 | fi |
---|
8503 | |
---|
8504 | done |
---|
8505 | _ACEOF |
---|
8506 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8507 | |
---|
8508 | # |
---|
8509 | # CONFIG_HEADER section. |
---|
8510 | # |
---|
8511 | |
---|
8512 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
8513 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
8514 | # |
---|
8515 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
8516 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
8517 | ac_dB='[ ].*$,\1#\2' |
---|
8518 | ac_dC=' ' |
---|
8519 | ac_dD=',;t' |
---|
8520 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
8521 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
8522 | ac_uB='$,\1#\2define\3' |
---|
8523 | ac_uC=' ' |
---|
8524 | ac_uD=',;t' |
---|
8525 | |
---|
8526 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
8527 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8528 | case $ac_file in |
---|
8529 | - | *:- | *:-:* ) # input from stdin |
---|
8530 | cat >$tmp/stdin |
---|
8531 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8532 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8533 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8534 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8535 | * ) ac_file_in=$ac_file.in ;; |
---|
8536 | esac |
---|
8537 | |
---|
8538 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8539 | echo "$as_me: creating $ac_file" >&6;} |
---|
8540 | |
---|
8541 | # First look for the input files in the build tree, otherwise in the |
---|
8542 | # src tree. |
---|
8543 | ac_file_inputs=`IFS=: |
---|
8544 | for f in $ac_file_in; do |
---|
8545 | case $f in |
---|
8546 | -) echo $tmp/stdin ;; |
---|
8547 | [\\/$]*) |
---|
8548 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8549 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8550 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8551 | { (exit 1); exit 1; }; } |
---|
8552 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
8553 | echo "$f";; |
---|
8554 | *) # Relative |
---|
8555 | if test -f "$f"; then |
---|
8556 | # Build tree |
---|
8557 | echo "$f" |
---|
8558 | elif test -f "$srcdir/$f"; then |
---|
8559 | # Source tree |
---|
8560 | echo "$srcdir/$f" |
---|
8561 | else |
---|
8562 | # /dev/null tree |
---|
8563 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8564 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8565 | { (exit 1); exit 1; }; } |
---|
8566 | fi;; |
---|
8567 | esac |
---|
8568 | done` || { (exit 1); exit 1; } |
---|
8569 | # Remove the trailing spaces. |
---|
8570 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
8571 | |
---|
8572 | _ACEOF |
---|
8573 | |
---|
8574 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
8575 | # `conftest.undefs', that substitutes the proper values into |
---|
8576 | # config.h.in to produce config.h. The first handles `#define' |
---|
8577 | # templates, and the second `#undef' templates. |
---|
8578 | # And first: Protect against being on the right side of a sed subst in |
---|
8579 | # config.status. Protect against being in an unquoted here document |
---|
8580 | # in config.status. |
---|
8581 | rm -f conftest.defines conftest.undefs |
---|
8582 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
8583 | # Putting comments in sed scripts is not portable. |
---|
8584 | # |
---|
8585 | # `end' is used to avoid that the second main sed command (meant for |
---|
8586 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
8587 | # See the Autoconf documentation for `clear'. |
---|
8588 | cat >confdef2sed.sed <<\_ACEOF |
---|
8589 | s/[\\&,]/\\&/g |
---|
8590 | s,[\\$`],\\&,g |
---|
8591 | t clear |
---|
8592 | : clear |
---|
8593 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
8594 | t end |
---|
8595 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
8596 | : end |
---|
8597 | _ACEOF |
---|
8598 | # If some macros were called several times there might be several times |
---|
8599 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
8600 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
8601 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
8602 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
8603 | rm -f confdef2sed.sed |
---|
8604 | |
---|
8605 | # This sed command replaces #undef with comments. This is necessary, for |
---|
8606 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
8607 | # on some systems where configure will not decide to define it. |
---|
8608 | cat >>conftest.undefs <<\_ACEOF |
---|
8609 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
8610 | _ACEOF |
---|
8611 | |
---|
8612 | # Break up conftest.defines because some shells have a limit on the size |
---|
8613 | # of here documents, and old seds have small limits too (100 cmds). |
---|
8614 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
8615 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
8616 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
8617 | echo ' :' >>$CONFIG_STATUS |
---|
8618 | rm -f conftest.tail |
---|
8619 | while grep . conftest.defines >/dev/null |
---|
8620 | do |
---|
8621 | # Write a limited-size here document to $tmp/defines.sed. |
---|
8622 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
8623 | # Speed up: don't consider the non `#define' lines. |
---|
8624 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
8625 | # Work around the forget-to-reset-the-flag bug. |
---|
8626 | echo 't clr' >>$CONFIG_STATUS |
---|
8627 | echo ': clr' >>$CONFIG_STATUS |
---|
8628 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
8629 | echo 'CEOF |
---|
8630 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
8631 | rm -f $tmp/in |
---|
8632 | mv $tmp/out $tmp/in |
---|
8633 | ' >>$CONFIG_STATUS |
---|
8634 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
8635 | rm -f conftest.defines |
---|
8636 | mv conftest.tail conftest.defines |
---|
8637 | done |
---|
8638 | rm -f conftest.defines |
---|
8639 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
8640 | echo >>$CONFIG_STATUS |
---|
8641 | |
---|
8642 | # Break up conftest.undefs because some shells have a limit on the size |
---|
8643 | # of here documents, and old seds have small limits too (100 cmds). |
---|
8644 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
8645 | rm -f conftest.tail |
---|
8646 | while grep . conftest.undefs >/dev/null |
---|
8647 | do |
---|
8648 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
8649 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
8650 | # Speed up: don't consider the non `#undef' |
---|
8651 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
8652 | # Work around the forget-to-reset-the-flag bug. |
---|
8653 | echo 't clr' >>$CONFIG_STATUS |
---|
8654 | echo ': clr' >>$CONFIG_STATUS |
---|
8655 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
8656 | echo 'CEOF |
---|
8657 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
8658 | rm -f $tmp/in |
---|
8659 | mv $tmp/out $tmp/in |
---|
8660 | ' >>$CONFIG_STATUS |
---|
8661 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
8662 | rm -f conftest.undefs |
---|
8663 | mv conftest.tail conftest.undefs |
---|
8664 | done |
---|
8665 | rm -f conftest.undefs |
---|
8666 | |
---|
8667 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8668 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8669 | # use $as_me), people would be surprised to read: |
---|
8670 | # /* config.h. Generated by config.status. */ |
---|
8671 | if test x"$ac_file" = x-; then |
---|
8672 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
8673 | else |
---|
8674 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
8675 | fi |
---|
8676 | cat $tmp/in >>$tmp/config.h |
---|
8677 | rm -f $tmp/in |
---|
8678 | if test x"$ac_file" != x-; then |
---|
8679 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
8680 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
8681 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
8682 | else |
---|
8683 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8684 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8685 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8686 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8687 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8688 | . : '\(.\)' 2>/dev/null || |
---|
8689 | echo X"$ac_file" | |
---|
8690 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8691 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8692 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8693 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8694 | s/.*/./; q'` |
---|
8695 | { if $as_mkdir_p; then |
---|
8696 | mkdir -p "$ac_dir" |
---|
8697 | else |
---|
8698 | as_dir="$ac_dir" |
---|
8699 | as_dirs= |
---|
8700 | while test ! -d "$as_dir"; do |
---|
8701 | as_dirs="$as_dir $as_dirs" |
---|
8702 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8703 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8704 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8705 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8706 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8707 | . : '\(.\)' 2>/dev/null || |
---|
8708 | echo X"$as_dir" | |
---|
8709 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8710 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8711 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8712 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8713 | s/.*/./; q'` |
---|
8714 | done |
---|
8715 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8716 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8717 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8718 | { (exit 1); exit 1; }; }; } |
---|
8719 | |
---|
8720 | rm -f $ac_file |
---|
8721 | mv $tmp/config.h $ac_file |
---|
8722 | fi |
---|
8723 | else |
---|
8724 | cat $tmp/config.h |
---|
8725 | rm -f $tmp/config.h |
---|
8726 | fi |
---|
8727 | # Compute $ac_file's index in $config_headers. |
---|
8728 | _am_stamp_count=1 |
---|
8729 | for _am_header in $config_headers :; do |
---|
8730 | case $_am_header in |
---|
8731 | $ac_file | $ac_file:* ) |
---|
8732 | break ;; |
---|
8733 | * ) |
---|
8734 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
8735 | esac |
---|
8736 | done |
---|
8737 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
8738 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8739 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
8740 | X$ac_file : 'X\(//\)$' \| \ |
---|
8741 | X$ac_file : 'X\(/\)' \| \ |
---|
8742 | . : '\(.\)' 2>/dev/null || |
---|
8743 | echo X$ac_file | |
---|
8744 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8745 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8746 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8747 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8748 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
8749 | done |
---|
8750 | _ACEOF |
---|
8751 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8752 | |
---|
8753 | # |
---|
8754 | # CONFIG_COMMANDS section. |
---|
8755 | # |
---|
8756 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
8757 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
8758 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8759 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
8760 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8761 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
8762 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
8763 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
8764 | . : '\(.\)' 2>/dev/null || |
---|
8765 | echo X"$ac_dest" | |
---|
8766 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8767 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8768 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8769 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8770 | s/.*/./; q'` |
---|
8771 | { if $as_mkdir_p; then |
---|
8772 | mkdir -p "$ac_dir" |
---|
8773 | else |
---|
8774 | as_dir="$ac_dir" |
---|
8775 | as_dirs= |
---|
8776 | while test ! -d "$as_dir"; do |
---|
8777 | as_dirs="$as_dir $as_dirs" |
---|
8778 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8779 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8780 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8781 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8782 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8783 | . : '\(.\)' 2>/dev/null || |
---|
8784 | echo X"$as_dir" | |
---|
8785 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8786 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8787 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8788 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8789 | s/.*/./; q'` |
---|
8790 | done |
---|
8791 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8792 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8793 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8794 | { (exit 1); exit 1; }; }; } |
---|
8795 | |
---|
8796 | ac_builddir=. |
---|
8797 | |
---|
8798 | if test "$ac_dir" != .; then |
---|
8799 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
8800 | # A "../" for each directory in $ac_dir_suffix. |
---|
8801 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
8802 | else |
---|
8803 | ac_dir_suffix= ac_top_builddir= |
---|
8804 | fi |
---|
8805 | |
---|
8806 | case $srcdir in |
---|
8807 | .) # No --srcdir option. We are building in place. |
---|
8808 | ac_srcdir=. |
---|
8809 | if test -z "$ac_top_builddir"; then |
---|
8810 | ac_top_srcdir=. |
---|
8811 | else |
---|
8812 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
8813 | fi ;; |
---|
8814 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
8815 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8816 | ac_top_srcdir=$srcdir ;; |
---|
8817 | *) # Relative path. |
---|
8818 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
8819 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
8820 | esac |
---|
8821 | |
---|
8822 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
8823 | # the directories may not exist. |
---|
8824 | case `pwd` in |
---|
8825 | .) ac_abs_builddir="$ac_dir";; |
---|
8826 | *) |
---|
8827 | case "$ac_dir" in |
---|
8828 | .) ac_abs_builddir=`pwd`;; |
---|
8829 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
8830 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
8831 | esac;; |
---|
8832 | esac |
---|
8833 | case $ac_abs_builddir in |
---|
8834 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
8835 | *) |
---|
8836 | case ${ac_top_builddir}. in |
---|
8837 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
8838 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
8839 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
8840 | esac;; |
---|
8841 | esac |
---|
8842 | case $ac_abs_builddir in |
---|
8843 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
8844 | *) |
---|
8845 | case $ac_srcdir in |
---|
8846 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
8847 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
8848 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
8849 | esac;; |
---|
8850 | esac |
---|
8851 | case $ac_abs_builddir in |
---|
8852 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
8853 | *) |
---|
8854 | case $ac_top_srcdir in |
---|
8855 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
8856 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
8857 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
8858 | esac;; |
---|
8859 | esac |
---|
8860 | |
---|
8861 | |
---|
8862 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
8863 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
8864 | case $ac_dest in |
---|
8865 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
8866 | # Strip MF so we end up with the name of the file. |
---|
8867 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
8868 | # Check whether this is an Automake generated Makefile or not. |
---|
8869 | # We used to match only the files named `Makefile.in', but |
---|
8870 | # some people rename them; so instead we look at the file content. |
---|
8871 | # Grep'ing the first line is not enough: some people post-process |
---|
8872 | # each Makefile.in and add a new line on top of each file to say so. |
---|
8873 | # So let's grep whole file. |
---|
8874 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
8875 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
8876 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8877 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
8878 | X"$mf" : 'X\(//\)$' \| \ |
---|
8879 | X"$mf" : 'X\(/\)' \| \ |
---|
8880 | . : '\(.\)' 2>/dev/null || |
---|
8881 | echo X"$mf" | |
---|
8882 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8883 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8884 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8885 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8886 | s/.*/./; q'` |
---|
8887 | else |
---|
8888 | continue |
---|
8889 | fi |
---|
8890 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
8891 | # Extract the definition of DEP_FILES from the Makefile without |
---|
8892 | # running `make'. |
---|
8893 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
8894 | test -z "$DEPDIR" && continue |
---|
8895 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
8896 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
8897 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
8898 | # We invoke sed twice because it is the simplest approach to |
---|
8899 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
8900 | for file in `sed -n ' |
---|
8901 | /^DEP_FILES = .*\\\\$/ { |
---|
8902 | s/^DEP_FILES = // |
---|
8903 | :loop |
---|
8904 | s/\\\\$// |
---|
8905 | p |
---|
8906 | n |
---|
8907 | /\\\\$/ b loop |
---|
8908 | p |
---|
8909 | } |
---|
8910 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
8911 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
8912 | # Make sure the directory exists. |
---|
8913 | test -f "$dirpart/$file" && continue |
---|
8914 | fdir=`(dirname "$file") 2>/dev/null || |
---|
8915 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8916 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
8917 | X"$file" : 'X\(//\)$' \| \ |
---|
8918 | X"$file" : 'X\(/\)' \| \ |
---|
8919 | . : '\(.\)' 2>/dev/null || |
---|
8920 | echo X"$file" | |
---|
8921 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8922 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8923 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8924 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8925 | s/.*/./; q'` |
---|
8926 | { if $as_mkdir_p; then |
---|
8927 | mkdir -p $dirpart/$fdir |
---|
8928 | else |
---|
8929 | as_dir=$dirpart/$fdir |
---|
8930 | as_dirs= |
---|
8931 | while test ! -d "$as_dir"; do |
---|
8932 | as_dirs="$as_dir $as_dirs" |
---|
8933 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8934 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8935 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8936 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8937 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8938 | . : '\(.\)' 2>/dev/null || |
---|
8939 | echo X"$as_dir" | |
---|
8940 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8941 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8942 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8943 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8944 | s/.*/./; q'` |
---|
8945 | done |
---|
8946 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8947 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
8948 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
8949 | { (exit 1); exit 1; }; }; } |
---|
8950 | |
---|
8951 | # echo "creating $dirpart/$file" |
---|
8952 | echo '# dummy' > "$dirpart/$file" |
---|
8953 | done |
---|
8954 | done |
---|
8955 | ;; |
---|
8956 | esac |
---|
8957 | done |
---|
8958 | _ACEOF |
---|
8959 | |
---|
8960 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8961 | |
---|
8962 | { (exit 0); exit 0; } |
---|
8963 | _ACEOF |
---|
8964 | chmod +x $CONFIG_STATUS |
---|
8965 | ac_clean_files=$ac_clean_files_save |
---|
8966 | |
---|
8967 | |
---|
8968 | # configure is writing to config.log, and then calls config.status. |
---|
8969 | # config.status does its own redirection, appending to config.log. |
---|
8970 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
8971 | # by configure, so config.status won't be able to write to it; its |
---|
8972 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
8973 | # effectively closing config.log, so it can be properly (re)opened and |
---|
8974 | # appended to by config.status. When coming back to configure, we |
---|
8975 | # need to make the FD available again. |
---|
8976 | if test "$no_create" != yes; then |
---|
8977 | ac_cs_success=: |
---|
8978 | ac_config_status_args= |
---|
8979 | test "$silent" = yes && |
---|
8980 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
8981 | exec 5>/dev/null |
---|
8982 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
8983 | exec 5>>config.log |
---|
8984 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
8985 | # would make configure fail if this is the last instruction. |
---|
8986 | $ac_cs_success || { (exit 1); exit 1; } |
---|
8987 | fi |
---|
8988 | |
---|