1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.0_alpha-r1. |
---|
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.2.0_alpha-r1' |
---|
273 | PACKAGE_STRING='orxonox 0.2.0_alpha-r1' |
---|
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 DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE 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.2.0_alpha-r1 to adapt to many kinds of systems. |
---|
792 | |
---|
793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
794 | |
---|
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
797 | |
---|
798 | Defaults for the options are specified in brackets. |
---|
799 | |
---|
800 | Configuration: |
---|
801 | -h, --help display this help and exit |
---|
802 | --help=short display options specific to this package |
---|
803 | --help=recursive display the short help of all the included packages |
---|
804 | -V, --version display version information and exit |
---|
805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
808 | -n, --no-create do not create output files |
---|
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
810 | |
---|
811 | _ACEOF |
---|
812 | |
---|
813 | cat <<_ACEOF |
---|
814 | Installation directories: |
---|
815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
816 | [$ac_default_prefix] |
---|
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
818 | [PREFIX] |
---|
819 | |
---|
820 | By default, \`make install' will install all the files in |
---|
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
823 | for instance \`--prefix=\$HOME'. |
---|
824 | |
---|
825 | For better control, use the options below. |
---|
826 | |
---|
827 | Fine tuning of the installation directories: |
---|
828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
836 | --includedir=DIR C header files [PREFIX/include] |
---|
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
838 | --infodir=DIR info documentation [PREFIX/info] |
---|
839 | --mandir=DIR man documentation [PREFIX/man] |
---|
840 | _ACEOF |
---|
841 | |
---|
842 | cat <<\_ACEOF |
---|
843 | |
---|
844 | Program names: |
---|
845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
848 | |
---|
849 | System types: |
---|
850 | --build=BUILD configure for building on BUILD [guessed] |
---|
851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
852 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
853 | _ACEOF |
---|
854 | fi |
---|
855 | |
---|
856 | if test -n "$ac_init_help"; then |
---|
857 | case $ac_init_help in |
---|
858 | short | recursive ) echo "Configuration of orxonox 0.2.0_alpha-r1:";; |
---|
859 | esac |
---|
860 | cat <<\_ACEOF |
---|
861 | |
---|
862 | Optional Features: |
---|
863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
865 | --disable-dependency-tracking speeds up one-time build |
---|
866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
868 | game. |
---|
869 | |
---|
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.2.0_alpha-r1 |
---|
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.2.0_alpha-r1, 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.2.0_alpha-r1' |
---|
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=$enableval |
---|
3849 | fi; |
---|
3850 | |
---|
3851 | if test "$DEBUG" = "no"; then |
---|
3852 | echo "no" |
---|
3853 | echo " -> Setting debuglevel to 1. Like this you can still see errors." |
---|
3854 | DEBUG=1 |
---|
3855 | elif test "$DEBUG" = yes; then |
---|
3856 | echo "yes" |
---|
3857 | echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!." |
---|
3858 | DEBUG=3 |
---|
3859 | else |
---|
3860 | echo "yes set to $DEBUG" |
---|
3861 | fi |
---|
3862 | |
---|
3863 | cat >>confdefs.h <<_ACEOF |
---|
3864 | #define DEBUG $DEBUG |
---|
3865 | _ACEOF |
---|
3866 | |
---|
3867 | |
---|
3868 | |
---|
3869 | |
---|
3870 | ## GTK-disabled |
---|
3871 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
3872 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
3873 | |
---|
3874 | # Check whether --with-gtk or --without-gtk was given. |
---|
3875 | if test "${with_gtk+set}" = set; then |
---|
3876 | withval="$with_gtk" |
---|
3877 | def_gtk=no |
---|
3878 | else |
---|
3879 | def_gtk=yes |
---|
3880 | fi; |
---|
3881 | if test "$def_gtk" = yes; then |
---|
3882 | echo "yes" |
---|
3883 | fi |
---|
3884 | if test "$def_gtk" = no; then |
---|
3885 | echo "no" |
---|
3886 | fi |
---|
3887 | ### SDL_image-disable |
---|
3888 | def_sdl_image=yes |
---|
3889 | echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 |
---|
3890 | echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 |
---|
3891 | |
---|
3892 | # Check whether --with-sdl_image or --without-sdl_image was given. |
---|
3893 | if test "${with_sdl_image+set}" = set; then |
---|
3894 | withval="$with_sdl_image" |
---|
3895 | def_sdl_image=no |
---|
3896 | fi; |
---|
3897 | if test "$def_sdl_image" = yes; then |
---|
3898 | echo "yes" |
---|
3899 | fi |
---|
3900 | if test "$def_sdl_image" = no; then |
---|
3901 | echo "no" |
---|
3902 | fi |
---|
3903 | |
---|
3904 | |
---|
3905 | ## PROGRAMM CHECKING |
---|
3906 | # checking for Doxygen |
---|
3907 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
3908 | set dummy doxygen; ac_word=$2 |
---|
3909 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3911 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3913 | else |
---|
3914 | case $DOXYGEN in |
---|
3915 | [\\/]* | ?:[\\/]*) |
---|
3916 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
3917 | ;; |
---|
3918 | *) |
---|
3919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3920 | for as_dir in $PATH |
---|
3921 | do |
---|
3922 | IFS=$as_save_IFS |
---|
3923 | test -z "$as_dir" && as_dir=. |
---|
3924 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3925 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3926 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
3927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3928 | break 2 |
---|
3929 | fi |
---|
3930 | done |
---|
3931 | done |
---|
3932 | |
---|
3933 | ;; |
---|
3934 | esac |
---|
3935 | fi |
---|
3936 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
3937 | |
---|
3938 | if test -n "$DOXYGEN"; then |
---|
3939 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
3940 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
3941 | else |
---|
3942 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3943 | echo "${ECHO_T}no" >&6 |
---|
3944 | fi |
---|
3945 | |
---|
3946 | |
---|
3947 | |
---|
3948 | if test $DOXYGEN; then |
---|
3949 | DOXYGEN_TRUE= |
---|
3950 | DOXYGEN_FALSE='#' |
---|
3951 | else |
---|
3952 | DOXYGEN_TRUE='#' |
---|
3953 | DOXYGEN_FALSE= |
---|
3954 | fi |
---|
3955 | |
---|
3956 | |
---|
3957 | ### CHECKING FOR SYSTEM ### |
---|
3958 | |
---|
3959 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
3960 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
3961 | ## checking for openGL-environment and other sys-specific parameters |
---|
3962 | case "$target" in |
---|
3963 | ### WINDOWS ### |
---|
3964 | *-*-mingw32*) |
---|
3965 | echo "mingw-WINDOWS detected" |
---|
3966 | |
---|
3967 | mingw="yes" |
---|
3968 | MSBITFIELDS="-mms-bitfields" |
---|
3969 | MWINDOWS="-mwindows" |
---|
3970 | |
---|
3971 | # checking gl header |
---|
3972 | #done before loop |
---|
3973 | |
---|
3974 | # checking gl header |
---|
3975 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3976 | |
---|
3977 | |
---|
3978 | |
---|
3979 | |
---|
3980 | |
---|
3981 | |
---|
3982 | |
---|
3983 | |
---|
3984 | |
---|
3985 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3986 | inttypes.h stdint.h unistd.h |
---|
3987 | do |
---|
3988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
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 | else |
---|
3994 | cat >conftest.$ac_ext <<_ACEOF |
---|
3995 | /* confdefs.h. */ |
---|
3996 | _ACEOF |
---|
3997 | cat confdefs.h >>conftest.$ac_ext |
---|
3998 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3999 | /* end confdefs.h. */ |
---|
4000 | $ac_includes_default |
---|
4001 | |
---|
4002 | #include <$ac_header> |
---|
4003 | _ACEOF |
---|
4004 | rm -f conftest.$ac_objext |
---|
4005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4006 | (eval $ac_compile) 2>conftest.er1 |
---|
4007 | ac_status=$? |
---|
4008 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4009 | rm -f conftest.er1 |
---|
4010 | cat conftest.err >&5 |
---|
4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4012 | (exit $ac_status); } && |
---|
4013 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4014 | || test ! -s conftest.err' |
---|
4015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4016 | (eval $ac_try) 2>&5 |
---|
4017 | ac_status=$? |
---|
4018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4019 | (exit $ac_status); }; } && |
---|
4020 | { ac_try='test -s conftest.$ac_objext' |
---|
4021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4022 | (eval $ac_try) 2>&5 |
---|
4023 | ac_status=$? |
---|
4024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4025 | (exit $ac_status); }; }; then |
---|
4026 | eval "$as_ac_Header=yes" |
---|
4027 | else |
---|
4028 | echo "$as_me: failed program was:" >&5 |
---|
4029 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4030 | |
---|
4031 | eval "$as_ac_Header=no" |
---|
4032 | fi |
---|
4033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4034 | fi |
---|
4035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4036 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4037 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4038 | cat >>confdefs.h <<_ACEOF |
---|
4039 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4040 | _ACEOF |
---|
4041 | |
---|
4042 | fi |
---|
4043 | |
---|
4044 | done |
---|
4045 | |
---|
4046 | |
---|
4047 | |
---|
4048 | for ac_header in GL/gl.h |
---|
4049 | do |
---|
4050 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4052 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4056 | fi |
---|
4057 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4058 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4059 | else |
---|
4060 | # Is the header compilable? |
---|
4061 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4062 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4063 | cat >conftest.$ac_ext <<_ACEOF |
---|
4064 | /* confdefs.h. */ |
---|
4065 | _ACEOF |
---|
4066 | cat confdefs.h >>conftest.$ac_ext |
---|
4067 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4068 | /* end confdefs.h. */ |
---|
4069 | $ac_includes_default |
---|
4070 | #include <$ac_header> |
---|
4071 | _ACEOF |
---|
4072 | rm -f conftest.$ac_objext |
---|
4073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4074 | (eval $ac_compile) 2>conftest.er1 |
---|
4075 | ac_status=$? |
---|
4076 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4077 | rm -f conftest.er1 |
---|
4078 | cat conftest.err >&5 |
---|
4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4080 | (exit $ac_status); } && |
---|
4081 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4082 | || test ! -s conftest.err' |
---|
4083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4084 | (eval $ac_try) 2>&5 |
---|
4085 | ac_status=$? |
---|
4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4087 | (exit $ac_status); }; } && |
---|
4088 | { ac_try='test -s conftest.$ac_objext' |
---|
4089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4090 | (eval $ac_try) 2>&5 |
---|
4091 | ac_status=$? |
---|
4092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4093 | (exit $ac_status); }; }; then |
---|
4094 | ac_header_compiler=yes |
---|
4095 | else |
---|
4096 | echo "$as_me: failed program was:" >&5 |
---|
4097 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4098 | |
---|
4099 | ac_header_compiler=no |
---|
4100 | fi |
---|
4101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4102 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4103 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4104 | |
---|
4105 | # Is the header present? |
---|
4106 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4107 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4108 | cat >conftest.$ac_ext <<_ACEOF |
---|
4109 | /* confdefs.h. */ |
---|
4110 | _ACEOF |
---|
4111 | cat confdefs.h >>conftest.$ac_ext |
---|
4112 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4113 | /* end confdefs.h. */ |
---|
4114 | #include <$ac_header> |
---|
4115 | _ACEOF |
---|
4116 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4117 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4118 | ac_status=$? |
---|
4119 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4120 | rm -f conftest.er1 |
---|
4121 | cat conftest.err >&5 |
---|
4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4123 | (exit $ac_status); } >/dev/null; then |
---|
4124 | if test -s conftest.err; then |
---|
4125 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4126 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4127 | else |
---|
4128 | ac_cpp_err= |
---|
4129 | fi |
---|
4130 | else |
---|
4131 | ac_cpp_err=yes |
---|
4132 | fi |
---|
4133 | if test -z "$ac_cpp_err"; then |
---|
4134 | ac_header_preproc=yes |
---|
4135 | else |
---|
4136 | echo "$as_me: failed program was:" >&5 |
---|
4137 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4138 | |
---|
4139 | ac_header_preproc=no |
---|
4140 | fi |
---|
4141 | rm -f conftest.err conftest.$ac_ext |
---|
4142 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4143 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4144 | |
---|
4145 | # So? What about this header? |
---|
4146 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4147 | yes:no: ) |
---|
4148 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4149 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4151 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4152 | ac_header_preproc=yes |
---|
4153 | ;; |
---|
4154 | no:yes:* ) |
---|
4155 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4156 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4157 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4158 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4159 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4160 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4161 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4162 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4164 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4165 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4166 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4167 | ( |
---|
4168 | cat <<\_ASBOX |
---|
4169 | ## ------------------------------------------- ## |
---|
4170 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4171 | ## ------------------------------------------- ## |
---|
4172 | _ASBOX |
---|
4173 | ) | |
---|
4174 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4175 | ;; |
---|
4176 | esac |
---|
4177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4181 | else |
---|
4182 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4183 | fi |
---|
4184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4185 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4186 | |
---|
4187 | fi |
---|
4188 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4189 | cat >>confdefs.h <<_ACEOF |
---|
4190 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4191 | _ACEOF |
---|
4192 | |
---|
4193 | else |
---|
4194 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4195 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4196 | { (exit 1); exit 1; }; } |
---|
4197 | fi |
---|
4198 | |
---|
4199 | done |
---|
4200 | |
---|
4201 | # checking for Windows openGl library |
---|
4202 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4203 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4204 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4206 | else |
---|
4207 | ac_check_lib_save_LIBS=$LIBS |
---|
4208 | LIBS="-lopengl32 $LIBS" |
---|
4209 | cat >conftest.$ac_ext <<_ACEOF |
---|
4210 | /* confdefs.h. */ |
---|
4211 | _ACEOF |
---|
4212 | cat confdefs.h >>conftest.$ac_ext |
---|
4213 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4214 | /* end confdefs.h. */ |
---|
4215 | |
---|
4216 | |
---|
4217 | int |
---|
4218 | main () |
---|
4219 | { |
---|
4220 | main (); |
---|
4221 | ; |
---|
4222 | return 0; |
---|
4223 | } |
---|
4224 | _ACEOF |
---|
4225 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4227 | (eval $ac_link) 2>conftest.er1 |
---|
4228 | ac_status=$? |
---|
4229 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4230 | rm -f conftest.er1 |
---|
4231 | cat conftest.err >&5 |
---|
4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4233 | (exit $ac_status); } && |
---|
4234 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4235 | || test ! -s conftest.err' |
---|
4236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4237 | (eval $ac_try) 2>&5 |
---|
4238 | ac_status=$? |
---|
4239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4240 | (exit $ac_status); }; } && |
---|
4241 | { ac_try='test -s conftest$ac_exeext' |
---|
4242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4243 | (eval $ac_try) 2>&5 |
---|
4244 | ac_status=$? |
---|
4245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4246 | (exit $ac_status); }; }; then |
---|
4247 | ac_cv_lib_opengl32_main=yes |
---|
4248 | else |
---|
4249 | echo "$as_me: failed program was:" >&5 |
---|
4250 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4251 | |
---|
4252 | ac_cv_lib_opengl32_main=no |
---|
4253 | fi |
---|
4254 | rm -f conftest.err conftest.$ac_objext \ |
---|
4255 | conftest$ac_exeext conftest.$ac_ext |
---|
4256 | LIBS=$ac_check_lib_save_LIBS |
---|
4257 | fi |
---|
4258 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4259 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4260 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4261 | FOUND_opengl32=yes |
---|
4262 | else |
---|
4263 | "gl/gl.h" |
---|
4264 | fi |
---|
4265 | |
---|
4266 | if test "$FOUND_opengl32" = "yes" ; then |
---|
4267 | LIBS="$LIBS -lopengl32" |
---|
4268 | else |
---|
4269 | echo "------------------" |
---|
4270 | echo "opengl not found." |
---|
4271 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4272 | echo "------------------" |
---|
4273 | exit -1 |
---|
4274 | fi |
---|
4275 | |
---|
4276 | # cheking for GLU-header |
---|
4277 | |
---|
4278 | for ac_header in GL/glu.h |
---|
4279 | do |
---|
4280 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4281 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4282 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4283 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4286 | fi |
---|
4287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4288 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4289 | else |
---|
4290 | # Is the header compilable? |
---|
4291 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4292 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4293 | cat >conftest.$ac_ext <<_ACEOF |
---|
4294 | /* confdefs.h. */ |
---|
4295 | _ACEOF |
---|
4296 | cat confdefs.h >>conftest.$ac_ext |
---|
4297 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4298 | /* end confdefs.h. */ |
---|
4299 | $ac_includes_default |
---|
4300 | #include <$ac_header> |
---|
4301 | _ACEOF |
---|
4302 | rm -f conftest.$ac_objext |
---|
4303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4304 | (eval $ac_compile) 2>conftest.er1 |
---|
4305 | ac_status=$? |
---|
4306 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4307 | rm -f conftest.er1 |
---|
4308 | cat conftest.err >&5 |
---|
4309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4310 | (exit $ac_status); } && |
---|
4311 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4312 | || test ! -s conftest.err' |
---|
4313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4314 | (eval $ac_try) 2>&5 |
---|
4315 | ac_status=$? |
---|
4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4317 | (exit $ac_status); }; } && |
---|
4318 | { ac_try='test -s conftest.$ac_objext' |
---|
4319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4320 | (eval $ac_try) 2>&5 |
---|
4321 | ac_status=$? |
---|
4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4323 | (exit $ac_status); }; }; then |
---|
4324 | ac_header_compiler=yes |
---|
4325 | else |
---|
4326 | echo "$as_me: failed program was:" >&5 |
---|
4327 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4328 | |
---|
4329 | ac_header_compiler=no |
---|
4330 | fi |
---|
4331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4332 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4333 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4334 | |
---|
4335 | # Is the header present? |
---|
4336 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4337 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4338 | cat >conftest.$ac_ext <<_ACEOF |
---|
4339 | /* confdefs.h. */ |
---|
4340 | _ACEOF |
---|
4341 | cat confdefs.h >>conftest.$ac_ext |
---|
4342 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4343 | /* end confdefs.h. */ |
---|
4344 | #include <$ac_header> |
---|
4345 | _ACEOF |
---|
4346 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4347 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4348 | ac_status=$? |
---|
4349 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4350 | rm -f conftest.er1 |
---|
4351 | cat conftest.err >&5 |
---|
4352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4353 | (exit $ac_status); } >/dev/null; then |
---|
4354 | if test -s conftest.err; then |
---|
4355 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4356 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4357 | else |
---|
4358 | ac_cpp_err= |
---|
4359 | fi |
---|
4360 | else |
---|
4361 | ac_cpp_err=yes |
---|
4362 | fi |
---|
4363 | if test -z "$ac_cpp_err"; then |
---|
4364 | ac_header_preproc=yes |
---|
4365 | else |
---|
4366 | echo "$as_me: failed program was:" >&5 |
---|
4367 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4368 | |
---|
4369 | ac_header_preproc=no |
---|
4370 | fi |
---|
4371 | rm -f conftest.err conftest.$ac_ext |
---|
4372 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4373 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4374 | |
---|
4375 | # So? What about this header? |
---|
4376 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4377 | yes:no: ) |
---|
4378 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4379 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4381 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4382 | ac_header_preproc=yes |
---|
4383 | ;; |
---|
4384 | no:yes:* ) |
---|
4385 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4386 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4387 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4388 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4389 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4390 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4391 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4392 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4394 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4395 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4396 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4397 | ( |
---|
4398 | cat <<\_ASBOX |
---|
4399 | ## ------------------------------------------- ## |
---|
4400 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4401 | ## ------------------------------------------- ## |
---|
4402 | _ASBOX |
---|
4403 | ) | |
---|
4404 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4405 | ;; |
---|
4406 | esac |
---|
4407 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4408 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4409 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4411 | else |
---|
4412 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4413 | fi |
---|
4414 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4415 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4416 | |
---|
4417 | fi |
---|
4418 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4419 | cat >>confdefs.h <<_ACEOF |
---|
4420 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4421 | _ACEOF |
---|
4422 | |
---|
4423 | else |
---|
4424 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4425 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4426 | { (exit 1); exit 1; }; } |
---|
4427 | fi |
---|
4428 | |
---|
4429 | done |
---|
4430 | |
---|
4431 | |
---|
4432 | # checking for libGLU |
---|
4433 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4434 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4435 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4437 | else |
---|
4438 | ac_check_lib_save_LIBS=$LIBS |
---|
4439 | LIBS="-lglu32 $LIBS" |
---|
4440 | cat >conftest.$ac_ext <<_ACEOF |
---|
4441 | /* confdefs.h. */ |
---|
4442 | _ACEOF |
---|
4443 | cat confdefs.h >>conftest.$ac_ext |
---|
4444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4445 | /* end confdefs.h. */ |
---|
4446 | |
---|
4447 | |
---|
4448 | int |
---|
4449 | main () |
---|
4450 | { |
---|
4451 | main (); |
---|
4452 | ; |
---|
4453 | return 0; |
---|
4454 | } |
---|
4455 | _ACEOF |
---|
4456 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4458 | (eval $ac_link) 2>conftest.er1 |
---|
4459 | ac_status=$? |
---|
4460 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4461 | rm -f conftest.er1 |
---|
4462 | cat conftest.err >&5 |
---|
4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4464 | (exit $ac_status); } && |
---|
4465 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4466 | || test ! -s conftest.err' |
---|
4467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4468 | (eval $ac_try) 2>&5 |
---|
4469 | ac_status=$? |
---|
4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4471 | (exit $ac_status); }; } && |
---|
4472 | { ac_try='test -s conftest$ac_exeext' |
---|
4473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4474 | (eval $ac_try) 2>&5 |
---|
4475 | ac_status=$? |
---|
4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4477 | (exit $ac_status); }; }; then |
---|
4478 | ac_cv_lib_glu32_main=yes |
---|
4479 | else |
---|
4480 | echo "$as_me: failed program was:" >&5 |
---|
4481 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4482 | |
---|
4483 | ac_cv_lib_glu32_main=no |
---|
4484 | fi |
---|
4485 | rm -f conftest.err conftest.$ac_objext \ |
---|
4486 | conftest$ac_exeext conftest.$ac_ext |
---|
4487 | LIBS=$ac_check_lib_save_LIBS |
---|
4488 | fi |
---|
4489 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4490 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4491 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4492 | FOUND_glu32=yes |
---|
4493 | fi |
---|
4494 | |
---|
4495 | if test "$FOUND_glu32" = "yes" ; then |
---|
4496 | LIBS="$LIBS -lGLU32" |
---|
4497 | else |
---|
4498 | echo "------------------" |
---|
4499 | echo "GLU library not found." |
---|
4500 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4501 | echo "------------------" |
---|
4502 | exit -1 |
---|
4503 | fi |
---|
4504 | |
---|
4505 | # checking for mingw32 |
---|
4506 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4507 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4508 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4510 | else |
---|
4511 | ac_check_lib_save_LIBS=$LIBS |
---|
4512 | LIBS="-lmingw32 $LIBS" |
---|
4513 | cat >conftest.$ac_ext <<_ACEOF |
---|
4514 | /* confdefs.h. */ |
---|
4515 | _ACEOF |
---|
4516 | cat confdefs.h >>conftest.$ac_ext |
---|
4517 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4518 | /* end confdefs.h. */ |
---|
4519 | |
---|
4520 | |
---|
4521 | int |
---|
4522 | main () |
---|
4523 | { |
---|
4524 | main (); |
---|
4525 | ; |
---|
4526 | return 0; |
---|
4527 | } |
---|
4528 | _ACEOF |
---|
4529 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4531 | (eval $ac_link) 2>conftest.er1 |
---|
4532 | ac_status=$? |
---|
4533 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4534 | rm -f conftest.er1 |
---|
4535 | cat conftest.err >&5 |
---|
4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4537 | (exit $ac_status); } && |
---|
4538 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4539 | || test ! -s conftest.err' |
---|
4540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4541 | (eval $ac_try) 2>&5 |
---|
4542 | ac_status=$? |
---|
4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4544 | (exit $ac_status); }; } && |
---|
4545 | { ac_try='test -s conftest$ac_exeext' |
---|
4546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4547 | (eval $ac_try) 2>&5 |
---|
4548 | ac_status=$? |
---|
4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4550 | (exit $ac_status); }; }; then |
---|
4551 | ac_cv_lib_mingw32_main=yes |
---|
4552 | else |
---|
4553 | echo "$as_me: failed program was:" >&5 |
---|
4554 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4555 | |
---|
4556 | ac_cv_lib_mingw32_main=no |
---|
4557 | fi |
---|
4558 | rm -f conftest.err conftest.$ac_objext \ |
---|
4559 | conftest$ac_exeext conftest.$ac_ext |
---|
4560 | LIBS=$ac_check_lib_save_LIBS |
---|
4561 | fi |
---|
4562 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4563 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4564 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4565 | FOUND_mingw32=yes |
---|
4566 | fi |
---|
4567 | |
---|
4568 | if test $FOUND_mingw32 = "yes"; then |
---|
4569 | LIBS="$LIBS -lmingw32" |
---|
4570 | fi |
---|
4571 | # checking for SDL-headers |
---|
4572 | |
---|
4573 | for ac_header in SDL/SDL.h |
---|
4574 | do |
---|
4575 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4577 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4578 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4581 | fi |
---|
4582 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4583 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4584 | else |
---|
4585 | # Is the header compilable? |
---|
4586 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4587 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4588 | cat >conftest.$ac_ext <<_ACEOF |
---|
4589 | /* confdefs.h. */ |
---|
4590 | _ACEOF |
---|
4591 | cat confdefs.h >>conftest.$ac_ext |
---|
4592 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4593 | /* end confdefs.h. */ |
---|
4594 | $ac_includes_default |
---|
4595 | #include <$ac_header> |
---|
4596 | _ACEOF |
---|
4597 | rm -f conftest.$ac_objext |
---|
4598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4599 | (eval $ac_compile) 2>conftest.er1 |
---|
4600 | ac_status=$? |
---|
4601 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4602 | rm -f conftest.er1 |
---|
4603 | cat conftest.err >&5 |
---|
4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4605 | (exit $ac_status); } && |
---|
4606 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4607 | || test ! -s conftest.err' |
---|
4608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4609 | (eval $ac_try) 2>&5 |
---|
4610 | ac_status=$? |
---|
4611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4612 | (exit $ac_status); }; } && |
---|
4613 | { ac_try='test -s conftest.$ac_objext' |
---|
4614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4615 | (eval $ac_try) 2>&5 |
---|
4616 | ac_status=$? |
---|
4617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4618 | (exit $ac_status); }; }; then |
---|
4619 | ac_header_compiler=yes |
---|
4620 | else |
---|
4621 | echo "$as_me: failed program was:" >&5 |
---|
4622 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4623 | |
---|
4624 | ac_header_compiler=no |
---|
4625 | fi |
---|
4626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4627 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4628 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4629 | |
---|
4630 | # Is the header present? |
---|
4631 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4632 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4633 | cat >conftest.$ac_ext <<_ACEOF |
---|
4634 | /* confdefs.h. */ |
---|
4635 | _ACEOF |
---|
4636 | cat confdefs.h >>conftest.$ac_ext |
---|
4637 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4638 | /* end confdefs.h. */ |
---|
4639 | #include <$ac_header> |
---|
4640 | _ACEOF |
---|
4641 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4642 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4643 | ac_status=$? |
---|
4644 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4645 | rm -f conftest.er1 |
---|
4646 | cat conftest.err >&5 |
---|
4647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4648 | (exit $ac_status); } >/dev/null; then |
---|
4649 | if test -s conftest.err; then |
---|
4650 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4651 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4652 | else |
---|
4653 | ac_cpp_err= |
---|
4654 | fi |
---|
4655 | else |
---|
4656 | ac_cpp_err=yes |
---|
4657 | fi |
---|
4658 | if test -z "$ac_cpp_err"; then |
---|
4659 | ac_header_preproc=yes |
---|
4660 | else |
---|
4661 | echo "$as_me: failed program was:" >&5 |
---|
4662 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4663 | |
---|
4664 | ac_header_preproc=no |
---|
4665 | fi |
---|
4666 | rm -f conftest.err conftest.$ac_ext |
---|
4667 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4668 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4669 | |
---|
4670 | # So? What about this header? |
---|
4671 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4672 | yes:no: ) |
---|
4673 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4674 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4675 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4676 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4677 | ac_header_preproc=yes |
---|
4678 | ;; |
---|
4679 | no:yes:* ) |
---|
4680 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4681 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4682 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4683 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4684 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4685 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4686 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4687 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4689 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4690 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4691 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4692 | ( |
---|
4693 | cat <<\_ASBOX |
---|
4694 | ## ------------------------------------------- ## |
---|
4695 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
4696 | ## ------------------------------------------- ## |
---|
4697 | _ASBOX |
---|
4698 | ) | |
---|
4699 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4700 | ;; |
---|
4701 | esac |
---|
4702 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4703 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4704 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4706 | else |
---|
4707 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4708 | fi |
---|
4709 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4710 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4711 | |
---|
4712 | fi |
---|
4713 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4714 | cat >>confdefs.h <<_ACEOF |
---|
4715 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4716 | _ACEOF |
---|
4717 | |
---|
4718 | else |
---|
4719 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4720 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4721 | { (exit 1); exit 1; }; } |
---|
4722 | fi |
---|
4723 | |
---|
4724 | done |
---|
4725 | |
---|
4726 | |
---|
4727 | #checking for libSDL |
---|
4728 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
4729 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
4730 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4732 | else |
---|
4733 | ac_check_lib_save_LIBS=$LIBS |
---|
4734 | LIBS="-lsdlmain $LIBS" |
---|
4735 | cat >conftest.$ac_ext <<_ACEOF |
---|
4736 | /* confdefs.h. */ |
---|
4737 | _ACEOF |
---|
4738 | cat confdefs.h >>conftest.$ac_ext |
---|
4739 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4740 | /* end confdefs.h. */ |
---|
4741 | |
---|
4742 | |
---|
4743 | int |
---|
4744 | main () |
---|
4745 | { |
---|
4746 | main (); |
---|
4747 | ; |
---|
4748 | return 0; |
---|
4749 | } |
---|
4750 | _ACEOF |
---|
4751 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4753 | (eval $ac_link) 2>conftest.er1 |
---|
4754 | ac_status=$? |
---|
4755 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4756 | rm -f conftest.er1 |
---|
4757 | cat conftest.err >&5 |
---|
4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4759 | (exit $ac_status); } && |
---|
4760 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4761 | || test ! -s conftest.err' |
---|
4762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4763 | (eval $ac_try) 2>&5 |
---|
4764 | ac_status=$? |
---|
4765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4766 | (exit $ac_status); }; } && |
---|
4767 | { ac_try='test -s conftest$ac_exeext' |
---|
4768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4769 | (eval $ac_try) 2>&5 |
---|
4770 | ac_status=$? |
---|
4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4772 | (exit $ac_status); }; }; then |
---|
4773 | ac_cv_lib_sdlmain_main=yes |
---|
4774 | else |
---|
4775 | echo "$as_me: failed program was:" >&5 |
---|
4776 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4777 | |
---|
4778 | ac_cv_lib_sdlmain_main=no |
---|
4779 | fi |
---|
4780 | rm -f conftest.err conftest.$ac_objext \ |
---|
4781 | conftest$ac_exeext conftest.$ac_ext |
---|
4782 | LIBS=$ac_check_lib_save_LIBS |
---|
4783 | fi |
---|
4784 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
4785 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
4786 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
4787 | FOUND_sdlmain=yes |
---|
4788 | fi |
---|
4789 | |
---|
4790 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
4791 | LIBS="$LIBS -lsdlmain" |
---|
4792 | else |
---|
4793 | echo "------------------" |
---|
4794 | echo "SDL library not found." |
---|
4795 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4796 | echo "------------------" |
---|
4797 | exit 1 |
---|
4798 | fi |
---|
4799 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
4800 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
4801 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
4802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4803 | else |
---|
4804 | ac_check_lib_save_LIBS=$LIBS |
---|
4805 | LIBS="-lsdl $LIBS" |
---|
4806 | cat >conftest.$ac_ext <<_ACEOF |
---|
4807 | /* confdefs.h. */ |
---|
4808 | _ACEOF |
---|
4809 | cat confdefs.h >>conftest.$ac_ext |
---|
4810 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4811 | /* end confdefs.h. */ |
---|
4812 | |
---|
4813 | |
---|
4814 | int |
---|
4815 | main () |
---|
4816 | { |
---|
4817 | main (); |
---|
4818 | ; |
---|
4819 | return 0; |
---|
4820 | } |
---|
4821 | _ACEOF |
---|
4822 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4824 | (eval $ac_link) 2>conftest.er1 |
---|
4825 | ac_status=$? |
---|
4826 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4827 | rm -f conftest.er1 |
---|
4828 | cat conftest.err >&5 |
---|
4829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4830 | (exit $ac_status); } && |
---|
4831 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4832 | || test ! -s conftest.err' |
---|
4833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4834 | (eval $ac_try) 2>&5 |
---|
4835 | ac_status=$? |
---|
4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4837 | (exit $ac_status); }; } && |
---|
4838 | { ac_try='test -s conftest$ac_exeext' |
---|
4839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4840 | (eval $ac_try) 2>&5 |
---|
4841 | ac_status=$? |
---|
4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4843 | (exit $ac_status); }; }; then |
---|
4844 | ac_cv_lib_sdl_main=yes |
---|
4845 | else |
---|
4846 | echo "$as_me: failed program was:" >&5 |
---|
4847 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4848 | |
---|
4849 | ac_cv_lib_sdl_main=no |
---|
4850 | fi |
---|
4851 | rm -f conftest.err conftest.$ac_objext \ |
---|
4852 | conftest$ac_exeext conftest.$ac_ext |
---|
4853 | LIBS=$ac_check_lib_save_LIBS |
---|
4854 | fi |
---|
4855 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
4856 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
4857 | if test $ac_cv_lib_sdl_main = yes; then |
---|
4858 | FOUND_sdl=yes |
---|
4859 | fi |
---|
4860 | |
---|
4861 | if test "$FOUND_sdl" = "yes" ; then |
---|
4862 | LIBS="$LIBS -lsdl" |
---|
4863 | else |
---|
4864 | echo "------------------" |
---|
4865 | echo "SDL library not found." |
---|
4866 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4867 | echo "------------------" |
---|
4868 | exit -1 |
---|
4869 | fi |
---|
4870 | |
---|
4871 | ;; |
---|
4872 | |
---|
4873 | ### LINUX ### |
---|
4874 | *-*-linux*) |
---|
4875 | echo "Linux detected" |
---|
4876 | |
---|
4877 | Linux="yes" |
---|
4878 | |
---|
4879 | CPPFLAGS="-I/usr/X11R6/include" |
---|
4880 | LDFLAGS="-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
4881 | # checking gl header |
---|
4882 | |
---|
4883 | for ac_header in GL/gl.h |
---|
4884 | do |
---|
4885 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4886 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4887 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4888 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4889 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4891 | fi |
---|
4892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4894 | else |
---|
4895 | # Is the header compilable? |
---|
4896 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4897 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4898 | cat >conftest.$ac_ext <<_ACEOF |
---|
4899 | /* confdefs.h. */ |
---|
4900 | _ACEOF |
---|
4901 | cat confdefs.h >>conftest.$ac_ext |
---|
4902 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4903 | /* end confdefs.h. */ |
---|
4904 | $ac_includes_default |
---|
4905 | #include <$ac_header> |
---|
4906 | _ACEOF |
---|
4907 | rm -f conftest.$ac_objext |
---|
4908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4909 | (eval $ac_compile) 2>conftest.er1 |
---|
4910 | ac_status=$? |
---|
4911 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4912 | rm -f conftest.er1 |
---|
4913 | cat conftest.err >&5 |
---|
4914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4915 | (exit $ac_status); } && |
---|
4916 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4917 | || test ! -s conftest.err' |
---|
4918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4919 | (eval $ac_try) 2>&5 |
---|
4920 | ac_status=$? |
---|
4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4922 | (exit $ac_status); }; } && |
---|
4923 | { ac_try='test -s conftest.$ac_objext' |
---|
4924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4925 | (eval $ac_try) 2>&5 |
---|
4926 | ac_status=$? |
---|
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4928 | (exit $ac_status); }; }; then |
---|
4929 | ac_header_compiler=yes |
---|
4930 | else |
---|
4931 | echo "$as_me: failed program was:" >&5 |
---|
4932 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4933 | |
---|
4934 | ac_header_compiler=no |
---|
4935 | fi |
---|
4936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4937 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4938 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4939 | |
---|
4940 | # Is the header present? |
---|
4941 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4942 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4943 | cat >conftest.$ac_ext <<_ACEOF |
---|
4944 | /* confdefs.h. */ |
---|
4945 | _ACEOF |
---|
4946 | cat confdefs.h >>conftest.$ac_ext |
---|
4947 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4948 | /* end confdefs.h. */ |
---|
4949 | #include <$ac_header> |
---|
4950 | _ACEOF |
---|
4951 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4952 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4953 | ac_status=$? |
---|
4954 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4955 | rm -f conftest.er1 |
---|
4956 | cat conftest.err >&5 |
---|
4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4958 | (exit $ac_status); } >/dev/null; then |
---|
4959 | if test -s conftest.err; then |
---|
4960 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4961 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4962 | else |
---|
4963 | ac_cpp_err= |
---|
4964 | fi |
---|
4965 | else |
---|
4966 | ac_cpp_err=yes |
---|
4967 | fi |
---|
4968 | if test -z "$ac_cpp_err"; then |
---|
4969 | ac_header_preproc=yes |
---|
4970 | else |
---|
4971 | echo "$as_me: failed program was:" >&5 |
---|
4972 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4973 | |
---|
4974 | ac_header_preproc=no |
---|
4975 | fi |
---|
4976 | rm -f conftest.err conftest.$ac_ext |
---|
4977 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4978 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4979 | |
---|
4980 | # So? What about this header? |
---|
4981 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4982 | yes:no: ) |
---|
4983 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4984 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4986 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4987 | ac_header_preproc=yes |
---|
4988 | ;; |
---|
4989 | no:yes:* ) |
---|
4990 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4991 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4992 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4993 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4994 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4995 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4996 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4997 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4999 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5000 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5001 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5002 | ( |
---|
5003 | cat <<\_ASBOX |
---|
5004 | ## ------------------------------------------- ## |
---|
5005 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5006 | ## ------------------------------------------- ## |
---|
5007 | _ASBOX |
---|
5008 | ) | |
---|
5009 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5010 | ;; |
---|
5011 | esac |
---|
5012 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5016 | else |
---|
5017 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5018 | fi |
---|
5019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5020 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5021 | |
---|
5022 | fi |
---|
5023 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5024 | cat >>confdefs.h <<_ACEOF |
---|
5025 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5026 | _ACEOF |
---|
5027 | |
---|
5028 | else |
---|
5029 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5030 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5031 | { (exit 1); exit 1; }; } |
---|
5032 | fi |
---|
5033 | |
---|
5034 | done |
---|
5035 | |
---|
5036 | |
---|
5037 | # checking for Unix GL |
---|
5038 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
5039 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
5040 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
5041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5042 | else |
---|
5043 | ac_check_lib_save_LIBS=$LIBS |
---|
5044 | LIBS="-lGL $LIBS" |
---|
5045 | cat >conftest.$ac_ext <<_ACEOF |
---|
5046 | /* confdefs.h. */ |
---|
5047 | _ACEOF |
---|
5048 | cat confdefs.h >>conftest.$ac_ext |
---|
5049 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5050 | /* end confdefs.h. */ |
---|
5051 | |
---|
5052 | |
---|
5053 | int |
---|
5054 | main () |
---|
5055 | { |
---|
5056 | main (); |
---|
5057 | ; |
---|
5058 | return 0; |
---|
5059 | } |
---|
5060 | _ACEOF |
---|
5061 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5063 | (eval $ac_link) 2>conftest.er1 |
---|
5064 | ac_status=$? |
---|
5065 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5066 | rm -f conftest.er1 |
---|
5067 | cat conftest.err >&5 |
---|
5068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5069 | (exit $ac_status); } && |
---|
5070 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5071 | || test ! -s conftest.err' |
---|
5072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5073 | (eval $ac_try) 2>&5 |
---|
5074 | ac_status=$? |
---|
5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5076 | (exit $ac_status); }; } && |
---|
5077 | { ac_try='test -s conftest$ac_exeext' |
---|
5078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5079 | (eval $ac_try) 2>&5 |
---|
5080 | ac_status=$? |
---|
5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5082 | (exit $ac_status); }; }; then |
---|
5083 | ac_cv_lib_GL_main=yes |
---|
5084 | else |
---|
5085 | echo "$as_me: failed program was:" >&5 |
---|
5086 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5087 | |
---|
5088 | ac_cv_lib_GL_main=no |
---|
5089 | fi |
---|
5090 | rm -f conftest.err conftest.$ac_objext \ |
---|
5091 | conftest$ac_exeext conftest.$ac_ext |
---|
5092 | LIBS=$ac_check_lib_save_LIBS |
---|
5093 | fi |
---|
5094 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
5095 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
5096 | if test $ac_cv_lib_GL_main = yes; then |
---|
5097 | FOUND_GL=yes |
---|
5098 | fi |
---|
5099 | |
---|
5100 | if test "$FOUND_GL" = "yes" ; then |
---|
5101 | LIBS="$LIBS -lGL" |
---|
5102 | else |
---|
5103 | echo "------------------" |
---|
5104 | echo "opengl not found." |
---|
5105 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
5106 | echo "------------------" |
---|
5107 | exit -1 |
---|
5108 | fi |
---|
5109 | |
---|
5110 | # cheking for GLU-header |
---|
5111 | |
---|
5112 | for ac_header in GL/glu.h |
---|
5113 | do |
---|
5114 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5115 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5116 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5117 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5118 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5120 | fi |
---|
5121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5122 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5123 | else |
---|
5124 | # Is the header compilable? |
---|
5125 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5126 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5127 | cat >conftest.$ac_ext <<_ACEOF |
---|
5128 | /* confdefs.h. */ |
---|
5129 | _ACEOF |
---|
5130 | cat confdefs.h >>conftest.$ac_ext |
---|
5131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5132 | /* end confdefs.h. */ |
---|
5133 | $ac_includes_default |
---|
5134 | #include <$ac_header> |
---|
5135 | _ACEOF |
---|
5136 | rm -f conftest.$ac_objext |
---|
5137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5138 | (eval $ac_compile) 2>conftest.er1 |
---|
5139 | ac_status=$? |
---|
5140 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5141 | rm -f conftest.er1 |
---|
5142 | cat conftest.err >&5 |
---|
5143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5144 | (exit $ac_status); } && |
---|
5145 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5146 | || test ! -s conftest.err' |
---|
5147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5148 | (eval $ac_try) 2>&5 |
---|
5149 | ac_status=$? |
---|
5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5151 | (exit $ac_status); }; } && |
---|
5152 | { ac_try='test -s conftest.$ac_objext' |
---|
5153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5154 | (eval $ac_try) 2>&5 |
---|
5155 | ac_status=$? |
---|
5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5157 | (exit $ac_status); }; }; then |
---|
5158 | ac_header_compiler=yes |
---|
5159 | else |
---|
5160 | echo "$as_me: failed program was:" >&5 |
---|
5161 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5162 | |
---|
5163 | ac_header_compiler=no |
---|
5164 | fi |
---|
5165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5166 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5167 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5168 | |
---|
5169 | # Is the header present? |
---|
5170 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5171 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5172 | cat >conftest.$ac_ext <<_ACEOF |
---|
5173 | /* confdefs.h. */ |
---|
5174 | _ACEOF |
---|
5175 | cat confdefs.h >>conftest.$ac_ext |
---|
5176 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5177 | /* end confdefs.h. */ |
---|
5178 | #include <$ac_header> |
---|
5179 | _ACEOF |
---|
5180 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5182 | ac_status=$? |
---|
5183 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5184 | rm -f conftest.er1 |
---|
5185 | cat conftest.err >&5 |
---|
5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5187 | (exit $ac_status); } >/dev/null; then |
---|
5188 | if test -s conftest.err; then |
---|
5189 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5190 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5191 | else |
---|
5192 | ac_cpp_err= |
---|
5193 | fi |
---|
5194 | else |
---|
5195 | ac_cpp_err=yes |
---|
5196 | fi |
---|
5197 | if test -z "$ac_cpp_err"; then |
---|
5198 | ac_header_preproc=yes |
---|
5199 | else |
---|
5200 | echo "$as_me: failed program was:" >&5 |
---|
5201 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5202 | |
---|
5203 | ac_header_preproc=no |
---|
5204 | fi |
---|
5205 | rm -f conftest.err conftest.$ac_ext |
---|
5206 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5207 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5208 | |
---|
5209 | # So? What about this header? |
---|
5210 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5211 | yes:no: ) |
---|
5212 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5213 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5214 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5215 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5216 | ac_header_preproc=yes |
---|
5217 | ;; |
---|
5218 | no:yes:* ) |
---|
5219 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5220 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5221 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5222 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5223 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5224 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5225 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5226 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5227 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5228 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5229 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5230 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5231 | ( |
---|
5232 | cat <<\_ASBOX |
---|
5233 | ## ------------------------------------------- ## |
---|
5234 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5235 | ## ------------------------------------------- ## |
---|
5236 | _ASBOX |
---|
5237 | ) | |
---|
5238 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5239 | ;; |
---|
5240 | esac |
---|
5241 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5242 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5245 | else |
---|
5246 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5247 | fi |
---|
5248 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5249 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5250 | |
---|
5251 | fi |
---|
5252 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5253 | cat >>confdefs.h <<_ACEOF |
---|
5254 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5255 | _ACEOF |
---|
5256 | |
---|
5257 | else |
---|
5258 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5259 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5260 | { (exit 1); exit 1; }; } |
---|
5261 | fi |
---|
5262 | |
---|
5263 | done |
---|
5264 | |
---|
5265 | |
---|
5266 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
5267 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
5268 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
5269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5270 | else |
---|
5271 | ac_check_lib_save_LIBS=$LIBS |
---|
5272 | LIBS="-lGLU $LIBS" |
---|
5273 | cat >conftest.$ac_ext <<_ACEOF |
---|
5274 | /* confdefs.h. */ |
---|
5275 | _ACEOF |
---|
5276 | cat confdefs.h >>conftest.$ac_ext |
---|
5277 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5278 | /* end confdefs.h. */ |
---|
5279 | |
---|
5280 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5281 | #ifdef __cplusplus |
---|
5282 | extern "C" |
---|
5283 | #endif |
---|
5284 | /* We use char because int might match the return type of a gcc2 |
---|
5285 | builtin and then its argument prototype would still apply. */ |
---|
5286 | char gluProject (); |
---|
5287 | int |
---|
5288 | main () |
---|
5289 | { |
---|
5290 | gluProject (); |
---|
5291 | ; |
---|
5292 | return 0; |
---|
5293 | } |
---|
5294 | _ACEOF |
---|
5295 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5297 | (eval $ac_link) 2>conftest.er1 |
---|
5298 | ac_status=$? |
---|
5299 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5300 | rm -f conftest.er1 |
---|
5301 | cat conftest.err >&5 |
---|
5302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5303 | (exit $ac_status); } && |
---|
5304 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5305 | || test ! -s conftest.err' |
---|
5306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5307 | (eval $ac_try) 2>&5 |
---|
5308 | ac_status=$? |
---|
5309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5310 | (exit $ac_status); }; } && |
---|
5311 | { ac_try='test -s conftest$ac_exeext' |
---|
5312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5313 | (eval $ac_try) 2>&5 |
---|
5314 | ac_status=$? |
---|
5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5316 | (exit $ac_status); }; }; then |
---|
5317 | ac_cv_lib_GLU_gluProject=yes |
---|
5318 | else |
---|
5319 | echo "$as_me: failed program was:" >&5 |
---|
5320 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5321 | |
---|
5322 | ac_cv_lib_GLU_gluProject=no |
---|
5323 | fi |
---|
5324 | rm -f conftest.err conftest.$ac_objext \ |
---|
5325 | conftest$ac_exeext conftest.$ac_ext |
---|
5326 | LIBS=$ac_check_lib_save_LIBS |
---|
5327 | fi |
---|
5328 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
5329 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
5330 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
5331 | FOUND_GLU=yes |
---|
5332 | fi |
---|
5333 | |
---|
5334 | if test "$FOUND_GLU" = "yes" ; then |
---|
5335 | LIBS="$LIBS -lGLU" |
---|
5336 | else |
---|
5337 | echo "------------------" |
---|
5338 | echo "GLU library not found." |
---|
5339 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5340 | echo "------------------" |
---|
5341 | exit -1 |
---|
5342 | fi |
---|
5343 | |
---|
5344 | # checking for SDL-headers |
---|
5345 | |
---|
5346 | for ac_header in SDL/SDL.h |
---|
5347 | do |
---|
5348 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5349 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5350 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5354 | fi |
---|
5355 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5356 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5357 | else |
---|
5358 | # Is the header compilable? |
---|
5359 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5360 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5361 | cat >conftest.$ac_ext <<_ACEOF |
---|
5362 | /* confdefs.h. */ |
---|
5363 | _ACEOF |
---|
5364 | cat confdefs.h >>conftest.$ac_ext |
---|
5365 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5366 | /* end confdefs.h. */ |
---|
5367 | $ac_includes_default |
---|
5368 | #include <$ac_header> |
---|
5369 | _ACEOF |
---|
5370 | rm -f conftest.$ac_objext |
---|
5371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5372 | (eval $ac_compile) 2>conftest.er1 |
---|
5373 | ac_status=$? |
---|
5374 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5375 | rm -f conftest.er1 |
---|
5376 | cat conftest.err >&5 |
---|
5377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5378 | (exit $ac_status); } && |
---|
5379 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5380 | || test ! -s conftest.err' |
---|
5381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5382 | (eval $ac_try) 2>&5 |
---|
5383 | ac_status=$? |
---|
5384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5385 | (exit $ac_status); }; } && |
---|
5386 | { ac_try='test -s conftest.$ac_objext' |
---|
5387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5388 | (eval $ac_try) 2>&5 |
---|
5389 | ac_status=$? |
---|
5390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5391 | (exit $ac_status); }; }; then |
---|
5392 | ac_header_compiler=yes |
---|
5393 | else |
---|
5394 | echo "$as_me: failed program was:" >&5 |
---|
5395 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5396 | |
---|
5397 | ac_header_compiler=no |
---|
5398 | fi |
---|
5399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5400 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5401 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5402 | |
---|
5403 | # Is the header present? |
---|
5404 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5405 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5406 | cat >conftest.$ac_ext <<_ACEOF |
---|
5407 | /* confdefs.h. */ |
---|
5408 | _ACEOF |
---|
5409 | cat confdefs.h >>conftest.$ac_ext |
---|
5410 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5411 | /* end confdefs.h. */ |
---|
5412 | #include <$ac_header> |
---|
5413 | _ACEOF |
---|
5414 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5415 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5416 | ac_status=$? |
---|
5417 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5418 | rm -f conftest.er1 |
---|
5419 | cat conftest.err >&5 |
---|
5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5421 | (exit $ac_status); } >/dev/null; then |
---|
5422 | if test -s conftest.err; then |
---|
5423 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5424 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5425 | else |
---|
5426 | ac_cpp_err= |
---|
5427 | fi |
---|
5428 | else |
---|
5429 | ac_cpp_err=yes |
---|
5430 | fi |
---|
5431 | if test -z "$ac_cpp_err"; then |
---|
5432 | ac_header_preproc=yes |
---|
5433 | else |
---|
5434 | echo "$as_me: failed program was:" >&5 |
---|
5435 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5436 | |
---|
5437 | ac_header_preproc=no |
---|
5438 | fi |
---|
5439 | rm -f conftest.err conftest.$ac_ext |
---|
5440 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5441 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5442 | |
---|
5443 | # So? What about this header? |
---|
5444 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5445 | yes:no: ) |
---|
5446 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5447 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5448 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5449 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5450 | ac_header_preproc=yes |
---|
5451 | ;; |
---|
5452 | no:yes:* ) |
---|
5453 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5454 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5455 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5456 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5457 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5458 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5459 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5460 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5462 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5463 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5464 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5465 | ( |
---|
5466 | cat <<\_ASBOX |
---|
5467 | ## ------------------------------------------- ## |
---|
5468 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5469 | ## ------------------------------------------- ## |
---|
5470 | _ASBOX |
---|
5471 | ) | |
---|
5472 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5473 | ;; |
---|
5474 | esac |
---|
5475 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5476 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5477 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5479 | else |
---|
5480 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5481 | fi |
---|
5482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5484 | |
---|
5485 | fi |
---|
5486 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5487 | cat >>confdefs.h <<_ACEOF |
---|
5488 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5489 | _ACEOF |
---|
5490 | |
---|
5491 | else |
---|
5492 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
5493 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
5494 | { (exit 1); exit 1; }; } |
---|
5495 | fi |
---|
5496 | |
---|
5497 | done |
---|
5498 | |
---|
5499 | |
---|
5500 | # checking for SDL-lib |
---|
5501 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
5502 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
5503 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
5504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5505 | else |
---|
5506 | ac_check_lib_save_LIBS=$LIBS |
---|
5507 | LIBS="-lSDL $LIBS" |
---|
5508 | cat >conftest.$ac_ext <<_ACEOF |
---|
5509 | /* confdefs.h. */ |
---|
5510 | _ACEOF |
---|
5511 | cat confdefs.h >>conftest.$ac_ext |
---|
5512 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5513 | /* end confdefs.h. */ |
---|
5514 | |
---|
5515 | |
---|
5516 | int |
---|
5517 | main () |
---|
5518 | { |
---|
5519 | main (); |
---|
5520 | ; |
---|
5521 | return 0; |
---|
5522 | } |
---|
5523 | _ACEOF |
---|
5524 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5526 | (eval $ac_link) 2>conftest.er1 |
---|
5527 | ac_status=$? |
---|
5528 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5529 | rm -f conftest.er1 |
---|
5530 | cat conftest.err >&5 |
---|
5531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5532 | (exit $ac_status); } && |
---|
5533 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5534 | || test ! -s conftest.err' |
---|
5535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5536 | (eval $ac_try) 2>&5 |
---|
5537 | ac_status=$? |
---|
5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5539 | (exit $ac_status); }; } && |
---|
5540 | { ac_try='test -s conftest$ac_exeext' |
---|
5541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5542 | (eval $ac_try) 2>&5 |
---|
5543 | ac_status=$? |
---|
5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5545 | (exit $ac_status); }; }; then |
---|
5546 | ac_cv_lib_SDL_main=yes |
---|
5547 | else |
---|
5548 | echo "$as_me: failed program was:" >&5 |
---|
5549 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5550 | |
---|
5551 | ac_cv_lib_SDL_main=no |
---|
5552 | fi |
---|
5553 | rm -f conftest.err conftest.$ac_objext \ |
---|
5554 | conftest$ac_exeext conftest.$ac_ext |
---|
5555 | LIBS=$ac_check_lib_save_LIBS |
---|
5556 | fi |
---|
5557 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
5558 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
5559 | if test $ac_cv_lib_SDL_main = yes; then |
---|
5560 | FOUND_SDL=yes |
---|
5561 | fi |
---|
5562 | |
---|
5563 | if test "$FOUND_SDL" = "yes" ; then |
---|
5564 | LIBS="$LIBS -lSDL" |
---|
5565 | else |
---|
5566 | echo "------------------" |
---|
5567 | echo "SDL library not found." |
---|
5568 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5569 | echo "------------------" |
---|
5570 | exit -1 |
---|
5571 | fi |
---|
5572 | |
---|
5573 | |
---|
5574 | ## checking for SDL |
---|
5575 | # SDL_VERSION=1.2.7 |
---|
5576 | # AM_PATH_SDL($SDL_VERSION, |
---|
5577 | # :, |
---|
5578 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
5579 | # ) |
---|
5580 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
5581 | # LIBS="$LIBS $SDL_LIBS" |
---|
5582 | ;; |
---|
5583 | |
---|
5584 | ### OS X ### |
---|
5585 | *darwin*) |
---|
5586 | echo "OS X detected" |
---|
5587 | |
---|
5588 | osX="yes" |
---|
5589 | |
---|
5590 | CPPFLAGS="-I/sw/include $CPPFLAGS" |
---|
5591 | # checking gl header |
---|
5592 | |
---|
5593 | for ac_header in OpenGL/gl.h |
---|
5594 | do |
---|
5595 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5597 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5601 | fi |
---|
5602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5603 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5604 | else |
---|
5605 | # Is the header compilable? |
---|
5606 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5607 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5608 | cat >conftest.$ac_ext <<_ACEOF |
---|
5609 | /* confdefs.h. */ |
---|
5610 | _ACEOF |
---|
5611 | cat confdefs.h >>conftest.$ac_ext |
---|
5612 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5613 | /* end confdefs.h. */ |
---|
5614 | $ac_includes_default |
---|
5615 | #include <$ac_header> |
---|
5616 | _ACEOF |
---|
5617 | rm -f conftest.$ac_objext |
---|
5618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5619 | (eval $ac_compile) 2>conftest.er1 |
---|
5620 | ac_status=$? |
---|
5621 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5622 | rm -f conftest.er1 |
---|
5623 | cat conftest.err >&5 |
---|
5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5625 | (exit $ac_status); } && |
---|
5626 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5627 | || test ! -s conftest.err' |
---|
5628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5629 | (eval $ac_try) 2>&5 |
---|
5630 | ac_status=$? |
---|
5631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5632 | (exit $ac_status); }; } && |
---|
5633 | { ac_try='test -s conftest.$ac_objext' |
---|
5634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5635 | (eval $ac_try) 2>&5 |
---|
5636 | ac_status=$? |
---|
5637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5638 | (exit $ac_status); }; }; then |
---|
5639 | ac_header_compiler=yes |
---|
5640 | else |
---|
5641 | echo "$as_me: failed program was:" >&5 |
---|
5642 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5643 | |
---|
5644 | ac_header_compiler=no |
---|
5645 | fi |
---|
5646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5647 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5648 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5649 | |
---|
5650 | # Is the header present? |
---|
5651 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5652 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5653 | cat >conftest.$ac_ext <<_ACEOF |
---|
5654 | /* confdefs.h. */ |
---|
5655 | _ACEOF |
---|
5656 | cat confdefs.h >>conftest.$ac_ext |
---|
5657 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5658 | /* end confdefs.h. */ |
---|
5659 | #include <$ac_header> |
---|
5660 | _ACEOF |
---|
5661 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5662 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5663 | ac_status=$? |
---|
5664 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5665 | rm -f conftest.er1 |
---|
5666 | cat conftest.err >&5 |
---|
5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5668 | (exit $ac_status); } >/dev/null; then |
---|
5669 | if test -s conftest.err; then |
---|
5670 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5671 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5672 | else |
---|
5673 | ac_cpp_err= |
---|
5674 | fi |
---|
5675 | else |
---|
5676 | ac_cpp_err=yes |
---|
5677 | fi |
---|
5678 | if test -z "$ac_cpp_err"; then |
---|
5679 | ac_header_preproc=yes |
---|
5680 | else |
---|
5681 | echo "$as_me: failed program was:" >&5 |
---|
5682 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5683 | |
---|
5684 | ac_header_preproc=no |
---|
5685 | fi |
---|
5686 | rm -f conftest.err conftest.$ac_ext |
---|
5687 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5688 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5689 | |
---|
5690 | # So? What about this header? |
---|
5691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5692 | yes:no: ) |
---|
5693 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5694 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5695 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5696 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5697 | ac_header_preproc=yes |
---|
5698 | ;; |
---|
5699 | no:yes:* ) |
---|
5700 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5701 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5702 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5703 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5704 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5705 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5706 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5707 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5709 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5710 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5711 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5712 | ( |
---|
5713 | cat <<\_ASBOX |
---|
5714 | ## ------------------------------------------- ## |
---|
5715 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5716 | ## ------------------------------------------- ## |
---|
5717 | _ASBOX |
---|
5718 | ) | |
---|
5719 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5720 | ;; |
---|
5721 | esac |
---|
5722 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5723 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5726 | else |
---|
5727 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5728 | fi |
---|
5729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5730 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5731 | |
---|
5732 | fi |
---|
5733 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5734 | cat >>confdefs.h <<_ACEOF |
---|
5735 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5736 | _ACEOF |
---|
5737 | |
---|
5738 | else |
---|
5739 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5740 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5741 | { (exit 1); exit 1; }; } |
---|
5742 | fi |
---|
5743 | |
---|
5744 | done |
---|
5745 | |
---|
5746 | # cheking for GLU-header |
---|
5747 | |
---|
5748 | for ac_header in OpenGL/glu.h |
---|
5749 | do |
---|
5750 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5752 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5753 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5754 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5756 | fi |
---|
5757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5758 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5759 | else |
---|
5760 | # Is the header compilable? |
---|
5761 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5762 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5763 | cat >conftest.$ac_ext <<_ACEOF |
---|
5764 | /* confdefs.h. */ |
---|
5765 | _ACEOF |
---|
5766 | cat confdefs.h >>conftest.$ac_ext |
---|
5767 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5768 | /* end confdefs.h. */ |
---|
5769 | $ac_includes_default |
---|
5770 | #include <$ac_header> |
---|
5771 | _ACEOF |
---|
5772 | rm -f conftest.$ac_objext |
---|
5773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5774 | (eval $ac_compile) 2>conftest.er1 |
---|
5775 | ac_status=$? |
---|
5776 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5777 | rm -f conftest.er1 |
---|
5778 | cat conftest.err >&5 |
---|
5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5780 | (exit $ac_status); } && |
---|
5781 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5782 | || test ! -s conftest.err' |
---|
5783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5784 | (eval $ac_try) 2>&5 |
---|
5785 | ac_status=$? |
---|
5786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5787 | (exit $ac_status); }; } && |
---|
5788 | { ac_try='test -s conftest.$ac_objext' |
---|
5789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5790 | (eval $ac_try) 2>&5 |
---|
5791 | ac_status=$? |
---|
5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5793 | (exit $ac_status); }; }; then |
---|
5794 | ac_header_compiler=yes |
---|
5795 | else |
---|
5796 | echo "$as_me: failed program was:" >&5 |
---|
5797 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5798 | |
---|
5799 | ac_header_compiler=no |
---|
5800 | fi |
---|
5801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5802 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5803 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5804 | |
---|
5805 | # Is the header present? |
---|
5806 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5807 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5808 | cat >conftest.$ac_ext <<_ACEOF |
---|
5809 | /* confdefs.h. */ |
---|
5810 | _ACEOF |
---|
5811 | cat confdefs.h >>conftest.$ac_ext |
---|
5812 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5813 | /* end confdefs.h. */ |
---|
5814 | #include <$ac_header> |
---|
5815 | _ACEOF |
---|
5816 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5817 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5818 | ac_status=$? |
---|
5819 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5820 | rm -f conftest.er1 |
---|
5821 | cat conftest.err >&5 |
---|
5822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5823 | (exit $ac_status); } >/dev/null; then |
---|
5824 | if test -s conftest.err; then |
---|
5825 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5826 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5827 | else |
---|
5828 | ac_cpp_err= |
---|
5829 | fi |
---|
5830 | else |
---|
5831 | ac_cpp_err=yes |
---|
5832 | fi |
---|
5833 | if test -z "$ac_cpp_err"; then |
---|
5834 | ac_header_preproc=yes |
---|
5835 | else |
---|
5836 | echo "$as_me: failed program was:" >&5 |
---|
5837 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5838 | |
---|
5839 | ac_header_preproc=no |
---|
5840 | fi |
---|
5841 | rm -f conftest.err conftest.$ac_ext |
---|
5842 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5843 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5844 | |
---|
5845 | # So? What about this header? |
---|
5846 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5847 | yes:no: ) |
---|
5848 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5849 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5850 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5851 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5852 | ac_header_preproc=yes |
---|
5853 | ;; |
---|
5854 | no:yes:* ) |
---|
5855 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5856 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5857 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5858 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5859 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5860 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5861 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5862 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5863 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5864 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5865 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5866 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5867 | ( |
---|
5868 | cat <<\_ASBOX |
---|
5869 | ## ------------------------------------------- ## |
---|
5870 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
5871 | ## ------------------------------------------- ## |
---|
5872 | _ASBOX |
---|
5873 | ) | |
---|
5874 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5875 | ;; |
---|
5876 | esac |
---|
5877 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5879 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5881 | else |
---|
5882 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5883 | fi |
---|
5884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5885 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5886 | |
---|
5887 | fi |
---|
5888 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5889 | cat >>confdefs.h <<_ACEOF |
---|
5890 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5891 | _ACEOF |
---|
5892 | |
---|
5893 | else |
---|
5894 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5895 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5896 | { (exit 1); exit 1; }; } |
---|
5897 | fi |
---|
5898 | |
---|
5899 | done |
---|
5900 | |
---|
5901 | |
---|
5902 | LIBS="$LIBS -framework OpenGL" |
---|
5903 | |
---|
5904 | # checking for SDL-headers |
---|
5905 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
5906 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
5907 | |
---|
5908 | ## checking for SDL |
---|
5909 | # SDL_VERSION=1.2.7 |
---|
5910 | # AM_PATH_SDL($SDL_VERSION, |
---|
5911 | # :, |
---|
5912 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
5913 | # ) |
---|
5914 | |
---|
5915 | SDL_CFLAGS=`sdl-config --cflags` |
---|
5916 | SDL_LIBS=`sdl-config --libs` |
---|
5917 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
5918 | LIBS="$LIBS $SDL_LIBS" |
---|
5919 | |
---|
5920 | ;; |
---|
5921 | |
---|
5922 | *) |
---|
5923 | ;; |
---|
5924 | esac |
---|
5925 | |
---|
5926 | |
---|
5927 | |
---|
5928 | |
---|
5929 | ## check for SDL_mixer |
---|
5930 | # checking for SDL-Mixer-headers |
---|
5931 | |
---|
5932 | for ac_header in SDL/SDL_mixer.h |
---|
5933 | do |
---|
5934 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5936 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5937 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5938 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5940 | fi |
---|
5941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5942 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5943 | else |
---|
5944 | # Is the header compilable? |
---|
5945 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5946 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5947 | cat >conftest.$ac_ext <<_ACEOF |
---|
5948 | /* confdefs.h. */ |
---|
5949 | _ACEOF |
---|
5950 | cat confdefs.h >>conftest.$ac_ext |
---|
5951 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5952 | /* end confdefs.h. */ |
---|
5953 | $ac_includes_default |
---|
5954 | #include <$ac_header> |
---|
5955 | _ACEOF |
---|
5956 | rm -f conftest.$ac_objext |
---|
5957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5958 | (eval $ac_compile) 2>conftest.er1 |
---|
5959 | ac_status=$? |
---|
5960 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5961 | rm -f conftest.er1 |
---|
5962 | cat conftest.err >&5 |
---|
5963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5964 | (exit $ac_status); } && |
---|
5965 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5966 | || test ! -s conftest.err' |
---|
5967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5968 | (eval $ac_try) 2>&5 |
---|
5969 | ac_status=$? |
---|
5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5971 | (exit $ac_status); }; } && |
---|
5972 | { ac_try='test -s conftest.$ac_objext' |
---|
5973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5974 | (eval $ac_try) 2>&5 |
---|
5975 | ac_status=$? |
---|
5976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5977 | (exit $ac_status); }; }; then |
---|
5978 | ac_header_compiler=yes |
---|
5979 | else |
---|
5980 | echo "$as_me: failed program was:" >&5 |
---|
5981 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5982 | |
---|
5983 | ac_header_compiler=no |
---|
5984 | fi |
---|
5985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5986 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5987 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5988 | |
---|
5989 | # Is the header present? |
---|
5990 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5991 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5992 | cat >conftest.$ac_ext <<_ACEOF |
---|
5993 | /* confdefs.h. */ |
---|
5994 | _ACEOF |
---|
5995 | cat confdefs.h >>conftest.$ac_ext |
---|
5996 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5997 | /* end confdefs.h. */ |
---|
5998 | #include <$ac_header> |
---|
5999 | _ACEOF |
---|
6000 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6002 | ac_status=$? |
---|
6003 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6004 | rm -f conftest.er1 |
---|
6005 | cat conftest.err >&5 |
---|
6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6007 | (exit $ac_status); } >/dev/null; then |
---|
6008 | if test -s conftest.err; then |
---|
6009 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6010 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6011 | else |
---|
6012 | ac_cpp_err= |
---|
6013 | fi |
---|
6014 | else |
---|
6015 | ac_cpp_err=yes |
---|
6016 | fi |
---|
6017 | if test -z "$ac_cpp_err"; then |
---|
6018 | ac_header_preproc=yes |
---|
6019 | else |
---|
6020 | echo "$as_me: failed program was:" >&5 |
---|
6021 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6022 | |
---|
6023 | ac_header_preproc=no |
---|
6024 | fi |
---|
6025 | rm -f conftest.err conftest.$ac_ext |
---|
6026 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6027 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6028 | |
---|
6029 | # So? What about this header? |
---|
6030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6031 | yes:no: ) |
---|
6032 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6033 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6035 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6036 | ac_header_preproc=yes |
---|
6037 | ;; |
---|
6038 | no:yes:* ) |
---|
6039 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6040 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6041 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6042 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6043 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6044 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6045 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6046 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6049 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6050 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6051 | ( |
---|
6052 | cat <<\_ASBOX |
---|
6053 | ## ------------------------------------------- ## |
---|
6054 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
6055 | ## ------------------------------------------- ## |
---|
6056 | _ASBOX |
---|
6057 | ) | |
---|
6058 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6059 | ;; |
---|
6060 | esac |
---|
6061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6065 | else |
---|
6066 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6067 | fi |
---|
6068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6070 | |
---|
6071 | fi |
---|
6072 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6073 | cat >>confdefs.h <<_ACEOF |
---|
6074 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6075 | _ACEOF |
---|
6076 | |
---|
6077 | else |
---|
6078 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
6079 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
6080 | { (exit 1); exit 1; }; } |
---|
6081 | fi |
---|
6082 | |
---|
6083 | done |
---|
6084 | |
---|
6085 | |
---|
6086 | |
---|
6087 | #checking for libSDL_mixer |
---|
6088 | echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5 |
---|
6089 | echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6 |
---|
6090 | if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then |
---|
6091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6092 | else |
---|
6093 | ac_check_lib_save_LIBS=$LIBS |
---|
6094 | LIBS="-lSDL_mixer $LIBS" |
---|
6095 | cat >conftest.$ac_ext <<_ACEOF |
---|
6096 | /* confdefs.h. */ |
---|
6097 | _ACEOF |
---|
6098 | cat confdefs.h >>conftest.$ac_ext |
---|
6099 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6100 | /* end confdefs.h. */ |
---|
6101 | |
---|
6102 | |
---|
6103 | int |
---|
6104 | main () |
---|
6105 | { |
---|
6106 | main (); |
---|
6107 | ; |
---|
6108 | return 0; |
---|
6109 | } |
---|
6110 | _ACEOF |
---|
6111 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6113 | (eval $ac_link) 2>conftest.er1 |
---|
6114 | ac_status=$? |
---|
6115 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6116 | rm -f conftest.er1 |
---|
6117 | cat conftest.err >&5 |
---|
6118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6119 | (exit $ac_status); } && |
---|
6120 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6121 | || test ! -s conftest.err' |
---|
6122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6123 | (eval $ac_try) 2>&5 |
---|
6124 | ac_status=$? |
---|
6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6126 | (exit $ac_status); }; } && |
---|
6127 | { ac_try='test -s conftest$ac_exeext' |
---|
6128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6129 | (eval $ac_try) 2>&5 |
---|
6130 | ac_status=$? |
---|
6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6132 | (exit $ac_status); }; }; then |
---|
6133 | ac_cv_lib_SDL_mixer_main=yes |
---|
6134 | else |
---|
6135 | echo "$as_me: failed program was:" >&5 |
---|
6136 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6137 | |
---|
6138 | ac_cv_lib_SDL_mixer_main=no |
---|
6139 | fi |
---|
6140 | rm -f conftest.err conftest.$ac_objext \ |
---|
6141 | conftest$ac_exeext conftest.$ac_ext |
---|
6142 | LIBS=$ac_check_lib_save_LIBS |
---|
6143 | fi |
---|
6144 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5 |
---|
6145 | echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6 |
---|
6146 | if test $ac_cv_lib_SDL_mixer_main = yes; then |
---|
6147 | FOUND_SDL_mixer=yes |
---|
6148 | fi |
---|
6149 | |
---|
6150 | if test "$FOUND_SDL_mixer" = "yes" ; then |
---|
6151 | LIBS="$LIBS -lSDL_mixer" |
---|
6152 | else |
---|
6153 | echo "------------------" |
---|
6154 | echo "SDL Mixer library not found." |
---|
6155 | echo "please install the SDL Mixer library, which can be found at http://www.libsdl.org" |
---|
6156 | echo "------------------" |
---|
6157 | exit 1 |
---|
6158 | fi |
---|
6159 | |
---|
6160 | |
---|
6161 | ## check for SDL_Image |
---|
6162 | if test "$def_sdl_image" = "yes"; then |
---|
6163 | # checking for SDL_image-headers |
---|
6164 | |
---|
6165 | for ac_header in SDL/SDL_image.h |
---|
6166 | do |
---|
6167 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6168 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6169 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6171 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6173 | fi |
---|
6174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6176 | else |
---|
6177 | # Is the header compilable? |
---|
6178 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6179 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6180 | cat >conftest.$ac_ext <<_ACEOF |
---|
6181 | /* confdefs.h. */ |
---|
6182 | _ACEOF |
---|
6183 | cat confdefs.h >>conftest.$ac_ext |
---|
6184 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6185 | /* end confdefs.h. */ |
---|
6186 | $ac_includes_default |
---|
6187 | #include <$ac_header> |
---|
6188 | _ACEOF |
---|
6189 | rm -f conftest.$ac_objext |
---|
6190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6191 | (eval $ac_compile) 2>conftest.er1 |
---|
6192 | ac_status=$? |
---|
6193 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6194 | rm -f conftest.er1 |
---|
6195 | cat conftest.err >&5 |
---|
6196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6197 | (exit $ac_status); } && |
---|
6198 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6199 | || test ! -s conftest.err' |
---|
6200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6201 | (eval $ac_try) 2>&5 |
---|
6202 | ac_status=$? |
---|
6203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6204 | (exit $ac_status); }; } && |
---|
6205 | { ac_try='test -s conftest.$ac_objext' |
---|
6206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6207 | (eval $ac_try) 2>&5 |
---|
6208 | ac_status=$? |
---|
6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6210 | (exit $ac_status); }; }; then |
---|
6211 | ac_header_compiler=yes |
---|
6212 | else |
---|
6213 | echo "$as_me: failed program was:" >&5 |
---|
6214 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6215 | |
---|
6216 | ac_header_compiler=no |
---|
6217 | fi |
---|
6218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6219 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6220 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6221 | |
---|
6222 | # Is the header present? |
---|
6223 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6224 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6225 | cat >conftest.$ac_ext <<_ACEOF |
---|
6226 | /* confdefs.h. */ |
---|
6227 | _ACEOF |
---|
6228 | cat confdefs.h >>conftest.$ac_ext |
---|
6229 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6230 | /* end confdefs.h. */ |
---|
6231 | #include <$ac_header> |
---|
6232 | _ACEOF |
---|
6233 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6234 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6235 | ac_status=$? |
---|
6236 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6237 | rm -f conftest.er1 |
---|
6238 | cat conftest.err >&5 |
---|
6239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6240 | (exit $ac_status); } >/dev/null; then |
---|
6241 | if test -s conftest.err; then |
---|
6242 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6243 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6244 | else |
---|
6245 | ac_cpp_err= |
---|
6246 | fi |
---|
6247 | else |
---|
6248 | ac_cpp_err=yes |
---|
6249 | fi |
---|
6250 | if test -z "$ac_cpp_err"; then |
---|
6251 | ac_header_preproc=yes |
---|
6252 | else |
---|
6253 | echo "$as_me: failed program was:" >&5 |
---|
6254 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6255 | |
---|
6256 | ac_header_preproc=no |
---|
6257 | fi |
---|
6258 | rm -f conftest.err conftest.$ac_ext |
---|
6259 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6260 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6261 | |
---|
6262 | # So? What about this header? |
---|
6263 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6264 | yes:no: ) |
---|
6265 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6266 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6267 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6268 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6269 | ac_header_preproc=yes |
---|
6270 | ;; |
---|
6271 | no:yes:* ) |
---|
6272 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6273 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6274 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6275 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6276 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6277 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6278 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6279 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6280 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6281 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6282 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6283 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6284 | ( |
---|
6285 | cat <<\_ASBOX |
---|
6286 | ## ------------------------------------------- ## |
---|
6287 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
6288 | ## ------------------------------------------- ## |
---|
6289 | _ASBOX |
---|
6290 | ) | |
---|
6291 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6292 | ;; |
---|
6293 | esac |
---|
6294 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6295 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6298 | else |
---|
6299 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6300 | fi |
---|
6301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6302 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6303 | |
---|
6304 | fi |
---|
6305 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6306 | cat >>confdefs.h <<_ACEOF |
---|
6307 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6308 | _ACEOF |
---|
6309 | |
---|
6310 | else |
---|
6311 | echo "sdl_image not found. falling back to other options"; def_sdl_image=no |
---|
6312 | fi |
---|
6313 | |
---|
6314 | done |
---|
6315 | |
---|
6316 | fi |
---|
6317 | if test "$def_sdl_image" = "yes"; then |
---|
6318 | # checking for SDL_image-lib |
---|
6319 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
6320 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
6321 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
6322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6323 | else |
---|
6324 | ac_check_lib_save_LIBS=$LIBS |
---|
6325 | LIBS="-lSDL_image $LIBS" |
---|
6326 | cat >conftest.$ac_ext <<_ACEOF |
---|
6327 | /* confdefs.h. */ |
---|
6328 | _ACEOF |
---|
6329 | cat confdefs.h >>conftest.$ac_ext |
---|
6330 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6331 | /* end confdefs.h. */ |
---|
6332 | |
---|
6333 | |
---|
6334 | int |
---|
6335 | main () |
---|
6336 | { |
---|
6337 | main (); |
---|
6338 | ; |
---|
6339 | return 0; |
---|
6340 | } |
---|
6341 | _ACEOF |
---|
6342 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6344 | (eval $ac_link) 2>conftest.er1 |
---|
6345 | ac_status=$? |
---|
6346 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6347 | rm -f conftest.er1 |
---|
6348 | cat conftest.err >&5 |
---|
6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6350 | (exit $ac_status); } && |
---|
6351 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6352 | || test ! -s conftest.err' |
---|
6353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6354 | (eval $ac_try) 2>&5 |
---|
6355 | ac_status=$? |
---|
6356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6357 | (exit $ac_status); }; } && |
---|
6358 | { ac_try='test -s conftest$ac_exeext' |
---|
6359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6360 | (eval $ac_try) 2>&5 |
---|
6361 | ac_status=$? |
---|
6362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6363 | (exit $ac_status); }; }; then |
---|
6364 | ac_cv_lib_SDL_image_main=yes |
---|
6365 | else |
---|
6366 | echo "$as_me: failed program was:" >&5 |
---|
6367 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6368 | |
---|
6369 | ac_cv_lib_SDL_image_main=no |
---|
6370 | fi |
---|
6371 | rm -f conftest.err conftest.$ac_objext \ |
---|
6372 | conftest$ac_exeext conftest.$ac_ext |
---|
6373 | LIBS=$ac_check_lib_save_LIBS |
---|
6374 | fi |
---|
6375 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
6376 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
6377 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
6378 | FOUND_SDL_image=yes |
---|
6379 | fi |
---|
6380 | |
---|
6381 | if test "$FOUND_SDL_image" = "yes" ; then |
---|
6382 | LIBS="$LIBS -lSDL_image" |
---|
6383 | else |
---|
6384 | echo "------------------" |
---|
6385 | echo "SDL_image library not found." |
---|
6386 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
6387 | echo "------------------" |
---|
6388 | exit -1 |
---|
6389 | fi |
---|
6390 | fi |
---|
6391 | |
---|
6392 | |
---|
6393 | if test "$def_sdl_image" = "no"; then |
---|
6394 | ## checking for libjpeg |
---|
6395 | |
---|
6396 | for ac_header in jpeglib.h |
---|
6397 | do |
---|
6398 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6399 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6400 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6404 | fi |
---|
6405 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6406 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6407 | else |
---|
6408 | # Is the header compilable? |
---|
6409 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6410 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6411 | cat >conftest.$ac_ext <<_ACEOF |
---|
6412 | /* confdefs.h. */ |
---|
6413 | _ACEOF |
---|
6414 | cat confdefs.h >>conftest.$ac_ext |
---|
6415 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6416 | /* end confdefs.h. */ |
---|
6417 | $ac_includes_default |
---|
6418 | #include <$ac_header> |
---|
6419 | _ACEOF |
---|
6420 | rm -f conftest.$ac_objext |
---|
6421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6422 | (eval $ac_compile) 2>conftest.er1 |
---|
6423 | ac_status=$? |
---|
6424 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6425 | rm -f conftest.er1 |
---|
6426 | cat conftest.err >&5 |
---|
6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6428 | (exit $ac_status); } && |
---|
6429 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6430 | || test ! -s conftest.err' |
---|
6431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6432 | (eval $ac_try) 2>&5 |
---|
6433 | ac_status=$? |
---|
6434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6435 | (exit $ac_status); }; } && |
---|
6436 | { ac_try='test -s conftest.$ac_objext' |
---|
6437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6438 | (eval $ac_try) 2>&5 |
---|
6439 | ac_status=$? |
---|
6440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6441 | (exit $ac_status); }; }; then |
---|
6442 | ac_header_compiler=yes |
---|
6443 | else |
---|
6444 | echo "$as_me: failed program was:" >&5 |
---|
6445 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6446 | |
---|
6447 | ac_header_compiler=no |
---|
6448 | fi |
---|
6449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6450 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6451 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6452 | |
---|
6453 | # Is the header present? |
---|
6454 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6455 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6456 | cat >conftest.$ac_ext <<_ACEOF |
---|
6457 | /* confdefs.h. */ |
---|
6458 | _ACEOF |
---|
6459 | cat confdefs.h >>conftest.$ac_ext |
---|
6460 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6461 | /* end confdefs.h. */ |
---|
6462 | #include <$ac_header> |
---|
6463 | _ACEOF |
---|
6464 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6465 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6466 | ac_status=$? |
---|
6467 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6468 | rm -f conftest.er1 |
---|
6469 | cat conftest.err >&5 |
---|
6470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6471 | (exit $ac_status); } >/dev/null; then |
---|
6472 | if test -s conftest.err; then |
---|
6473 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6475 | else |
---|
6476 | ac_cpp_err= |
---|
6477 | fi |
---|
6478 | else |
---|
6479 | ac_cpp_err=yes |
---|
6480 | fi |
---|
6481 | if test -z "$ac_cpp_err"; then |
---|
6482 | ac_header_preproc=yes |
---|
6483 | else |
---|
6484 | echo "$as_me: failed program was:" >&5 |
---|
6485 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6486 | |
---|
6487 | ac_header_preproc=no |
---|
6488 | fi |
---|
6489 | rm -f conftest.err conftest.$ac_ext |
---|
6490 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6491 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6492 | |
---|
6493 | # So? What about this header? |
---|
6494 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6495 | yes:no: ) |
---|
6496 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6497 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6498 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6499 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6500 | ac_header_preproc=yes |
---|
6501 | ;; |
---|
6502 | no:yes:* ) |
---|
6503 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6504 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6505 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6506 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6507 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6508 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6509 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6510 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6512 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6513 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6514 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6515 | ( |
---|
6516 | cat <<\_ASBOX |
---|
6517 | ## ------------------------------------------- ## |
---|
6518 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
6519 | ## ------------------------------------------- ## |
---|
6520 | _ASBOX |
---|
6521 | ) | |
---|
6522 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6523 | ;; |
---|
6524 | esac |
---|
6525 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6526 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6529 | else |
---|
6530 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6531 | fi |
---|
6532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6533 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6534 | |
---|
6535 | fi |
---|
6536 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6537 | cat >>confdefs.h <<_ACEOF |
---|
6538 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6539 | _ACEOF |
---|
6540 | jpegHeader="yes" |
---|
6541 | else |
---|
6542 | jpegHeader="no" |
---|
6543 | fi |
---|
6544 | |
---|
6545 | done |
---|
6546 | |
---|
6547 | if test $jpegHeader = "no"; then |
---|
6548 | echo " not including jpeg." |
---|
6549 | else |
---|
6550 | echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 |
---|
6551 | echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 |
---|
6552 | if test "${ac_cv_lib_jpeg_main+set}" = set; then |
---|
6553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6554 | else |
---|
6555 | ac_check_lib_save_LIBS=$LIBS |
---|
6556 | LIBS="-ljpeg $LIBS" |
---|
6557 | cat >conftest.$ac_ext <<_ACEOF |
---|
6558 | /* confdefs.h. */ |
---|
6559 | _ACEOF |
---|
6560 | cat confdefs.h >>conftest.$ac_ext |
---|
6561 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6562 | /* end confdefs.h. */ |
---|
6563 | |
---|
6564 | |
---|
6565 | int |
---|
6566 | main () |
---|
6567 | { |
---|
6568 | main (); |
---|
6569 | ; |
---|
6570 | return 0; |
---|
6571 | } |
---|
6572 | _ACEOF |
---|
6573 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6575 | (eval $ac_link) 2>conftest.er1 |
---|
6576 | ac_status=$? |
---|
6577 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6578 | rm -f conftest.er1 |
---|
6579 | cat conftest.err >&5 |
---|
6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6581 | (exit $ac_status); } && |
---|
6582 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6583 | || test ! -s conftest.err' |
---|
6584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6585 | (eval $ac_try) 2>&5 |
---|
6586 | ac_status=$? |
---|
6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6588 | (exit $ac_status); }; } && |
---|
6589 | { ac_try='test -s conftest$ac_exeext' |
---|
6590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6591 | (eval $ac_try) 2>&5 |
---|
6592 | ac_status=$? |
---|
6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6594 | (exit $ac_status); }; }; then |
---|
6595 | ac_cv_lib_jpeg_main=yes |
---|
6596 | else |
---|
6597 | echo "$as_me: failed program was:" >&5 |
---|
6598 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6599 | |
---|
6600 | ac_cv_lib_jpeg_main=no |
---|
6601 | fi |
---|
6602 | rm -f conftest.err conftest.$ac_objext \ |
---|
6603 | conftest$ac_exeext conftest.$ac_ext |
---|
6604 | LIBS=$ac_check_lib_save_LIBS |
---|
6605 | fi |
---|
6606 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 |
---|
6607 | echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 |
---|
6608 | if test $ac_cv_lib_jpeg_main = yes; then |
---|
6609 | FOUND_jpeg=yes |
---|
6610 | fi |
---|
6611 | |
---|
6612 | if test "$FOUND_jpeg" = "yes" ; then |
---|
6613 | LIBS="$LIBS -ljpeg" |
---|
6614 | else |
---|
6615 | echo "------------------" |
---|
6616 | echo "jpeg library not found." |
---|
6617 | echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" |
---|
6618 | echo "------------------" |
---|
6619 | exit -1 |
---|
6620 | fi |
---|
6621 | fi |
---|
6622 | |
---|
6623 | ## checking for libpng |
---|
6624 | |
---|
6625 | for ac_header in png.h |
---|
6626 | do |
---|
6627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6633 | fi |
---|
6634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6636 | else |
---|
6637 | # Is the header compilable? |
---|
6638 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6639 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6640 | cat >conftest.$ac_ext <<_ACEOF |
---|
6641 | /* confdefs.h. */ |
---|
6642 | _ACEOF |
---|
6643 | cat confdefs.h >>conftest.$ac_ext |
---|
6644 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6645 | /* end confdefs.h. */ |
---|
6646 | $ac_includes_default |
---|
6647 | #include <$ac_header> |
---|
6648 | _ACEOF |
---|
6649 | rm -f conftest.$ac_objext |
---|
6650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6651 | (eval $ac_compile) 2>conftest.er1 |
---|
6652 | ac_status=$? |
---|
6653 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6654 | rm -f conftest.er1 |
---|
6655 | cat conftest.err >&5 |
---|
6656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6657 | (exit $ac_status); } && |
---|
6658 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6659 | || test ! -s conftest.err' |
---|
6660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6661 | (eval $ac_try) 2>&5 |
---|
6662 | ac_status=$? |
---|
6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6664 | (exit $ac_status); }; } && |
---|
6665 | { ac_try='test -s conftest.$ac_objext' |
---|
6666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6667 | (eval $ac_try) 2>&5 |
---|
6668 | ac_status=$? |
---|
6669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6670 | (exit $ac_status); }; }; then |
---|
6671 | ac_header_compiler=yes |
---|
6672 | else |
---|
6673 | echo "$as_me: failed program was:" >&5 |
---|
6674 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6675 | |
---|
6676 | ac_header_compiler=no |
---|
6677 | fi |
---|
6678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6679 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6680 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6681 | |
---|
6682 | # Is the header present? |
---|
6683 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6684 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6685 | cat >conftest.$ac_ext <<_ACEOF |
---|
6686 | /* confdefs.h. */ |
---|
6687 | _ACEOF |
---|
6688 | cat confdefs.h >>conftest.$ac_ext |
---|
6689 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6690 | /* end confdefs.h. */ |
---|
6691 | #include <$ac_header> |
---|
6692 | _ACEOF |
---|
6693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6695 | ac_status=$? |
---|
6696 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6697 | rm -f conftest.er1 |
---|
6698 | cat conftest.err >&5 |
---|
6699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6700 | (exit $ac_status); } >/dev/null; then |
---|
6701 | if test -s conftest.err; then |
---|
6702 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6703 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6704 | else |
---|
6705 | ac_cpp_err= |
---|
6706 | fi |
---|
6707 | else |
---|
6708 | ac_cpp_err=yes |
---|
6709 | fi |
---|
6710 | if test -z "$ac_cpp_err"; then |
---|
6711 | ac_header_preproc=yes |
---|
6712 | else |
---|
6713 | echo "$as_me: failed program was:" >&5 |
---|
6714 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6715 | |
---|
6716 | ac_header_preproc=no |
---|
6717 | fi |
---|
6718 | rm -f conftest.err conftest.$ac_ext |
---|
6719 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6720 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6721 | |
---|
6722 | # So? What about this header? |
---|
6723 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6724 | yes:no: ) |
---|
6725 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6726 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6728 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6729 | ac_header_preproc=yes |
---|
6730 | ;; |
---|
6731 | no:yes:* ) |
---|
6732 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6733 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6734 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6735 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6736 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6737 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6738 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6739 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6741 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6742 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6743 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6744 | ( |
---|
6745 | cat <<\_ASBOX |
---|
6746 | ## ------------------------------------------- ## |
---|
6747 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
6748 | ## ------------------------------------------- ## |
---|
6749 | _ASBOX |
---|
6750 | ) | |
---|
6751 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6752 | ;; |
---|
6753 | esac |
---|
6754 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6758 | else |
---|
6759 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6760 | fi |
---|
6761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6763 | |
---|
6764 | fi |
---|
6765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6766 | cat >>confdefs.h <<_ACEOF |
---|
6767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6768 | _ACEOF |
---|
6769 | pngHeader="yes" |
---|
6770 | else |
---|
6771 | pngHeader="no" |
---|
6772 | fi |
---|
6773 | |
---|
6774 | done |
---|
6775 | |
---|
6776 | if test $pngHeader = "no"; then |
---|
6777 | echo " not including png." |
---|
6778 | else |
---|
6779 | echo "$as_me:$LINENO: checking for main in -lpng" >&5 |
---|
6780 | echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 |
---|
6781 | if test "${ac_cv_lib_png_main+set}" = set; then |
---|
6782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6783 | else |
---|
6784 | ac_check_lib_save_LIBS=$LIBS |
---|
6785 | LIBS="-lpng $LIBS" |
---|
6786 | cat >conftest.$ac_ext <<_ACEOF |
---|
6787 | /* confdefs.h. */ |
---|
6788 | _ACEOF |
---|
6789 | cat confdefs.h >>conftest.$ac_ext |
---|
6790 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6791 | /* end confdefs.h. */ |
---|
6792 | |
---|
6793 | |
---|
6794 | int |
---|
6795 | main () |
---|
6796 | { |
---|
6797 | main (); |
---|
6798 | ; |
---|
6799 | return 0; |
---|
6800 | } |
---|
6801 | _ACEOF |
---|
6802 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6804 | (eval $ac_link) 2>conftest.er1 |
---|
6805 | ac_status=$? |
---|
6806 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6807 | rm -f conftest.er1 |
---|
6808 | cat conftest.err >&5 |
---|
6809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6810 | (exit $ac_status); } && |
---|
6811 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6812 | || test ! -s conftest.err' |
---|
6813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6814 | (eval $ac_try) 2>&5 |
---|
6815 | ac_status=$? |
---|
6816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6817 | (exit $ac_status); }; } && |
---|
6818 | { ac_try='test -s conftest$ac_exeext' |
---|
6819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6820 | (eval $ac_try) 2>&5 |
---|
6821 | ac_status=$? |
---|
6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6823 | (exit $ac_status); }; }; then |
---|
6824 | ac_cv_lib_png_main=yes |
---|
6825 | else |
---|
6826 | echo "$as_me: failed program was:" >&5 |
---|
6827 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6828 | |
---|
6829 | ac_cv_lib_png_main=no |
---|
6830 | fi |
---|
6831 | rm -f conftest.err conftest.$ac_objext \ |
---|
6832 | conftest$ac_exeext conftest.$ac_ext |
---|
6833 | LIBS=$ac_check_lib_save_LIBS |
---|
6834 | fi |
---|
6835 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 |
---|
6836 | echo "${ECHO_T}$ac_cv_lib_png_main" >&6 |
---|
6837 | if test $ac_cv_lib_png_main = yes; then |
---|
6838 | FOUND_png=yes |
---|
6839 | fi |
---|
6840 | |
---|
6841 | if test "$FOUND_png" = "yes" ; then |
---|
6842 | LIBS="$LIBS -lpng" |
---|
6843 | else |
---|
6844 | echo "------------------" |
---|
6845 | echo "png library not found." |
---|
6846 | echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" |
---|
6847 | echo "------------------" |
---|
6848 | exit -1 |
---|
6849 | fi |
---|
6850 | fi |
---|
6851 | fi |
---|
6852 | |
---|
6853 | ## checking for GTK |
---|
6854 | if test "$def_gtk" = yes; then |
---|
6855 | |
---|
6856 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
6857 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
6858 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
6859 | if `pkg-config --exists gtk+-2.0`; then |
---|
6860 | echo "yes" |
---|
6861 | have_gtk2=yes |
---|
6862 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
6863 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
6864 | |
---|
6865 | cat >>confdefs.h <<_ACEOF |
---|
6866 | #define HAVE_GTK2 1 |
---|
6867 | _ACEOF |
---|
6868 | |
---|
6869 | else |
---|
6870 | echo "no" |
---|
6871 | fi |
---|
6872 | |
---|
6873 | fi |
---|
6874 | |
---|
6875 | |
---|
6876 | |
---|
6877 | |
---|
6878 | if test x$have_gtk2 = xyes; then |
---|
6879 | HAVE_GTK2_TRUE= |
---|
6880 | HAVE_GTK2_FALSE='#' |
---|
6881 | else |
---|
6882 | HAVE_GTK2_TRUE='#' |
---|
6883 | HAVE_GTK2_FALSE= |
---|
6884 | fi |
---|
6885 | |
---|
6886 | |
---|
6887 | |
---|
6888 | |
---|
6889 | #checking for pthread libs |
---|
6890 | # AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes) |
---|
6891 | # if test "$FOUND_pthread" = "yes" ; then |
---|
6892 | # LIBS="$LIBS -lpthread" |
---|
6893 | # fi |
---|
6894 | |
---|
6895 | |
---|
6896 | # FIXME: Replace `main' with a function in `-lm': |
---|
6897 | |
---|
6898 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
6899 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
6900 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
6901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6902 | else |
---|
6903 | ac_check_lib_save_LIBS=$LIBS |
---|
6904 | LIBS="-lm $LIBS" |
---|
6905 | cat >conftest.$ac_ext <<_ACEOF |
---|
6906 | /* confdefs.h. */ |
---|
6907 | _ACEOF |
---|
6908 | cat confdefs.h >>conftest.$ac_ext |
---|
6909 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6910 | /* end confdefs.h. */ |
---|
6911 | |
---|
6912 | |
---|
6913 | int |
---|
6914 | main () |
---|
6915 | { |
---|
6916 | main (); |
---|
6917 | ; |
---|
6918 | return 0; |
---|
6919 | } |
---|
6920 | _ACEOF |
---|
6921 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6923 | (eval $ac_link) 2>conftest.er1 |
---|
6924 | ac_status=$? |
---|
6925 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6926 | rm -f conftest.er1 |
---|
6927 | cat conftest.err >&5 |
---|
6928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6929 | (exit $ac_status); } && |
---|
6930 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6931 | || test ! -s conftest.err' |
---|
6932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6933 | (eval $ac_try) 2>&5 |
---|
6934 | ac_status=$? |
---|
6935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6936 | (exit $ac_status); }; } && |
---|
6937 | { ac_try='test -s conftest$ac_exeext' |
---|
6938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6939 | (eval $ac_try) 2>&5 |
---|
6940 | ac_status=$? |
---|
6941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6942 | (exit $ac_status); }; }; then |
---|
6943 | ac_cv_lib_m_main=yes |
---|
6944 | else |
---|
6945 | echo "$as_me: failed program was:" >&5 |
---|
6946 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6947 | |
---|
6948 | ac_cv_lib_m_main=no |
---|
6949 | fi |
---|
6950 | rm -f conftest.err conftest.$ac_objext \ |
---|
6951 | conftest$ac_exeext conftest.$ac_ext |
---|
6952 | LIBS=$ac_check_lib_save_LIBS |
---|
6953 | fi |
---|
6954 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
6955 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
6956 | if test $ac_cv_lib_m_main = yes; then |
---|
6957 | cat >>confdefs.h <<_ACEOF |
---|
6958 | #define HAVE_LIBM 1 |
---|
6959 | _ACEOF |
---|
6960 | |
---|
6961 | LIBS="-lm $LIBS" |
---|
6962 | |
---|
6963 | fi |
---|
6964 | |
---|
6965 | |
---|
6966 | |
---|
6967 | # Checks for header files. |
---|
6968 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
6969 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
6970 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
6971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6972 | else |
---|
6973 | cat >conftest.$ac_ext <<_ACEOF |
---|
6974 | /* confdefs.h. */ |
---|
6975 | _ACEOF |
---|
6976 | cat confdefs.h >>conftest.$ac_ext |
---|
6977 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6978 | /* end confdefs.h. */ |
---|
6979 | #include <stdlib.h> |
---|
6980 | #include <stdarg.h> |
---|
6981 | #include <string.h> |
---|
6982 | #include <float.h> |
---|
6983 | |
---|
6984 | int |
---|
6985 | main () |
---|
6986 | { |
---|
6987 | |
---|
6988 | ; |
---|
6989 | return 0; |
---|
6990 | } |
---|
6991 | _ACEOF |
---|
6992 | rm -f conftest.$ac_objext |
---|
6993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6994 | (eval $ac_compile) 2>conftest.er1 |
---|
6995 | ac_status=$? |
---|
6996 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6997 | rm -f conftest.er1 |
---|
6998 | cat conftest.err >&5 |
---|
6999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7000 | (exit $ac_status); } && |
---|
7001 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7002 | || test ! -s conftest.err' |
---|
7003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7004 | (eval $ac_try) 2>&5 |
---|
7005 | ac_status=$? |
---|
7006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7007 | (exit $ac_status); }; } && |
---|
7008 | { ac_try='test -s conftest.$ac_objext' |
---|
7009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7010 | (eval $ac_try) 2>&5 |
---|
7011 | ac_status=$? |
---|
7012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7013 | (exit $ac_status); }; }; then |
---|
7014 | ac_cv_header_stdc=yes |
---|
7015 | else |
---|
7016 | echo "$as_me: failed program was:" >&5 |
---|
7017 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7018 | |
---|
7019 | ac_cv_header_stdc=no |
---|
7020 | fi |
---|
7021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7022 | |
---|
7023 | if test $ac_cv_header_stdc = yes; then |
---|
7024 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
7025 | cat >conftest.$ac_ext <<_ACEOF |
---|
7026 | /* confdefs.h. */ |
---|
7027 | _ACEOF |
---|
7028 | cat confdefs.h >>conftest.$ac_ext |
---|
7029 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7030 | /* end confdefs.h. */ |
---|
7031 | #include <string.h> |
---|
7032 | |
---|
7033 | _ACEOF |
---|
7034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7035 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
7036 | : |
---|
7037 | else |
---|
7038 | ac_cv_header_stdc=no |
---|
7039 | fi |
---|
7040 | rm -f conftest* |
---|
7041 | |
---|
7042 | fi |
---|
7043 | |
---|
7044 | if test $ac_cv_header_stdc = yes; then |
---|
7045 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
7046 | cat >conftest.$ac_ext <<_ACEOF |
---|
7047 | /* confdefs.h. */ |
---|
7048 | _ACEOF |
---|
7049 | cat confdefs.h >>conftest.$ac_ext |
---|
7050 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7051 | /* end confdefs.h. */ |
---|
7052 | #include <stdlib.h> |
---|
7053 | |
---|
7054 | _ACEOF |
---|
7055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7056 | $EGREP "free" >/dev/null 2>&1; then |
---|
7057 | : |
---|
7058 | else |
---|
7059 | ac_cv_header_stdc=no |
---|
7060 | fi |
---|
7061 | rm -f conftest* |
---|
7062 | |
---|
7063 | fi |
---|
7064 | |
---|
7065 | if test $ac_cv_header_stdc = yes; then |
---|
7066 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
7067 | if test "$cross_compiling" = yes; then |
---|
7068 | : |
---|
7069 | else |
---|
7070 | cat >conftest.$ac_ext <<_ACEOF |
---|
7071 | /* confdefs.h. */ |
---|
7072 | _ACEOF |
---|
7073 | cat confdefs.h >>conftest.$ac_ext |
---|
7074 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7075 | /* end confdefs.h. */ |
---|
7076 | #include <ctype.h> |
---|
7077 | #if ((' ' & 0x0FF) == 0x020) |
---|
7078 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
7079 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
7080 | #else |
---|
7081 | # define ISLOWER(c) \ |
---|
7082 | (('a' <= (c) && (c) <= 'i') \ |
---|
7083 | || ('j' <= (c) && (c) <= 'r') \ |
---|
7084 | || ('s' <= (c) && (c) <= 'z')) |
---|
7085 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
7086 | #endif |
---|
7087 | |
---|
7088 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
7089 | int |
---|
7090 | main () |
---|
7091 | { |
---|
7092 | int i; |
---|
7093 | for (i = 0; i < 256; i++) |
---|
7094 | if (XOR (islower (i), ISLOWER (i)) |
---|
7095 | || toupper (i) != TOUPPER (i)) |
---|
7096 | exit(2); |
---|
7097 | exit (0); |
---|
7098 | } |
---|
7099 | _ACEOF |
---|
7100 | rm -f conftest$ac_exeext |
---|
7101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7102 | (eval $ac_link) 2>&5 |
---|
7103 | ac_status=$? |
---|
7104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7107 | (eval $ac_try) 2>&5 |
---|
7108 | ac_status=$? |
---|
7109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7110 | (exit $ac_status); }; }; then |
---|
7111 | : |
---|
7112 | else |
---|
7113 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7114 | echo "$as_me: failed program was:" >&5 |
---|
7115 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7116 | |
---|
7117 | ( exit $ac_status ) |
---|
7118 | ac_cv_header_stdc=no |
---|
7119 | fi |
---|
7120 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7121 | fi |
---|
7122 | fi |
---|
7123 | fi |
---|
7124 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
7125 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
7126 | if test $ac_cv_header_stdc = yes; then |
---|
7127 | |
---|
7128 | cat >>confdefs.h <<\_ACEOF |
---|
7129 | #define STDC_HEADERS 1 |
---|
7130 | _ACEOF |
---|
7131 | |
---|
7132 | fi |
---|
7133 | |
---|
7134 | |
---|
7135 | |
---|
7136 | for ac_header in stdlib.h string.h |
---|
7137 | do |
---|
7138 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7140 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7142 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7144 | fi |
---|
7145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7146 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7147 | else |
---|
7148 | # Is the header compilable? |
---|
7149 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7150 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7151 | cat >conftest.$ac_ext <<_ACEOF |
---|
7152 | /* confdefs.h. */ |
---|
7153 | _ACEOF |
---|
7154 | cat confdefs.h >>conftest.$ac_ext |
---|
7155 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7156 | /* end confdefs.h. */ |
---|
7157 | $ac_includes_default |
---|
7158 | #include <$ac_header> |
---|
7159 | _ACEOF |
---|
7160 | rm -f conftest.$ac_objext |
---|
7161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7162 | (eval $ac_compile) 2>conftest.er1 |
---|
7163 | ac_status=$? |
---|
7164 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7165 | rm -f conftest.er1 |
---|
7166 | cat conftest.err >&5 |
---|
7167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7168 | (exit $ac_status); } && |
---|
7169 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7170 | || test ! -s conftest.err' |
---|
7171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7172 | (eval $ac_try) 2>&5 |
---|
7173 | ac_status=$? |
---|
7174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7175 | (exit $ac_status); }; } && |
---|
7176 | { ac_try='test -s conftest.$ac_objext' |
---|
7177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7178 | (eval $ac_try) 2>&5 |
---|
7179 | ac_status=$? |
---|
7180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7181 | (exit $ac_status); }; }; then |
---|
7182 | ac_header_compiler=yes |
---|
7183 | else |
---|
7184 | echo "$as_me: failed program was:" >&5 |
---|
7185 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7186 | |
---|
7187 | ac_header_compiler=no |
---|
7188 | fi |
---|
7189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7190 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7191 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7192 | |
---|
7193 | # Is the header present? |
---|
7194 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7195 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7196 | cat >conftest.$ac_ext <<_ACEOF |
---|
7197 | /* confdefs.h. */ |
---|
7198 | _ACEOF |
---|
7199 | cat confdefs.h >>conftest.$ac_ext |
---|
7200 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7201 | /* end confdefs.h. */ |
---|
7202 | #include <$ac_header> |
---|
7203 | _ACEOF |
---|
7204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7206 | ac_status=$? |
---|
7207 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7208 | rm -f conftest.er1 |
---|
7209 | cat conftest.err >&5 |
---|
7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7211 | (exit $ac_status); } >/dev/null; then |
---|
7212 | if test -s conftest.err; then |
---|
7213 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7214 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7215 | else |
---|
7216 | ac_cpp_err= |
---|
7217 | fi |
---|
7218 | else |
---|
7219 | ac_cpp_err=yes |
---|
7220 | fi |
---|
7221 | if test -z "$ac_cpp_err"; then |
---|
7222 | ac_header_preproc=yes |
---|
7223 | else |
---|
7224 | echo "$as_me: failed program was:" >&5 |
---|
7225 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7226 | |
---|
7227 | ac_header_preproc=no |
---|
7228 | fi |
---|
7229 | rm -f conftest.err conftest.$ac_ext |
---|
7230 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7231 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7232 | |
---|
7233 | # So? What about this header? |
---|
7234 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7235 | yes:no: ) |
---|
7236 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7237 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7238 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7239 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7240 | ac_header_preproc=yes |
---|
7241 | ;; |
---|
7242 | no:yes:* ) |
---|
7243 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7244 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7245 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7246 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7247 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7248 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7249 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7250 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7251 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7252 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7253 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7254 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7255 | ( |
---|
7256 | cat <<\_ASBOX |
---|
7257 | ## ------------------------------------------- ## |
---|
7258 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
7259 | ## ------------------------------------------- ## |
---|
7260 | _ASBOX |
---|
7261 | ) | |
---|
7262 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7263 | ;; |
---|
7264 | esac |
---|
7265 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7266 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7269 | else |
---|
7270 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7271 | fi |
---|
7272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7273 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7274 | |
---|
7275 | fi |
---|
7276 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7277 | cat >>confdefs.h <<_ACEOF |
---|
7278 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7279 | _ACEOF |
---|
7280 | |
---|
7281 | fi |
---|
7282 | |
---|
7283 | done |
---|
7284 | |
---|
7285 | |
---|
7286 | # Checks for typedefs, structures, and compiler characteristics. |
---|
7287 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
7288 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
7289 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
7290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7291 | else |
---|
7292 | cat >conftest.$ac_ext <<_ACEOF |
---|
7293 | /* confdefs.h. */ |
---|
7294 | _ACEOF |
---|
7295 | cat confdefs.h >>conftest.$ac_ext |
---|
7296 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7297 | /* end confdefs.h. */ |
---|
7298 | |
---|
7299 | #include <stdbool.h> |
---|
7300 | #ifndef bool |
---|
7301 | # error bool is not defined |
---|
7302 | #endif |
---|
7303 | #ifndef false |
---|
7304 | # error false is not defined |
---|
7305 | #endif |
---|
7306 | #if false |
---|
7307 | # error false is not 0 |
---|
7308 | #endif |
---|
7309 | #ifndef true |
---|
7310 | # error true is not defined |
---|
7311 | #endif |
---|
7312 | #if true != 1 |
---|
7313 | # error true is not 1 |
---|
7314 | #endif |
---|
7315 | #ifndef __bool_true_false_are_defined |
---|
7316 | # error __bool_true_false_are_defined is not defined |
---|
7317 | #endif |
---|
7318 | |
---|
7319 | struct s { _Bool s: 1; _Bool t; } s; |
---|
7320 | |
---|
7321 | char a[true == 1 ? 1 : -1]; |
---|
7322 | char b[false == 0 ? 1 : -1]; |
---|
7323 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
7324 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
7325 | bool e = &s; |
---|
7326 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
7327 | char g[true]; |
---|
7328 | char h[sizeof (_Bool)]; |
---|
7329 | char i[sizeof s.t]; |
---|
7330 | |
---|
7331 | int |
---|
7332 | main () |
---|
7333 | { |
---|
7334 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
7335 | ; |
---|
7336 | return 0; |
---|
7337 | } |
---|
7338 | _ACEOF |
---|
7339 | rm -f conftest.$ac_objext |
---|
7340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7341 | (eval $ac_compile) 2>conftest.er1 |
---|
7342 | ac_status=$? |
---|
7343 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7344 | rm -f conftest.er1 |
---|
7345 | cat conftest.err >&5 |
---|
7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7347 | (exit $ac_status); } && |
---|
7348 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7349 | || test ! -s conftest.err' |
---|
7350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7351 | (eval $ac_try) 2>&5 |
---|
7352 | ac_status=$? |
---|
7353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7354 | (exit $ac_status); }; } && |
---|
7355 | { ac_try='test -s conftest.$ac_objext' |
---|
7356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7357 | (eval $ac_try) 2>&5 |
---|
7358 | ac_status=$? |
---|
7359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7360 | (exit $ac_status); }; }; then |
---|
7361 | ac_cv_header_stdbool_h=yes |
---|
7362 | else |
---|
7363 | echo "$as_me: failed program was:" >&5 |
---|
7364 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7365 | |
---|
7366 | ac_cv_header_stdbool_h=no |
---|
7367 | fi |
---|
7368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7369 | fi |
---|
7370 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
7371 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
7372 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
7373 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
7374 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
7375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7376 | else |
---|
7377 | cat >conftest.$ac_ext <<_ACEOF |
---|
7378 | /* confdefs.h. */ |
---|
7379 | _ACEOF |
---|
7380 | cat confdefs.h >>conftest.$ac_ext |
---|
7381 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7382 | /* end confdefs.h. */ |
---|
7383 | $ac_includes_default |
---|
7384 | int |
---|
7385 | main () |
---|
7386 | { |
---|
7387 | if ((_Bool *) 0) |
---|
7388 | return 0; |
---|
7389 | if (sizeof (_Bool)) |
---|
7390 | return 0; |
---|
7391 | ; |
---|
7392 | return 0; |
---|
7393 | } |
---|
7394 | _ACEOF |
---|
7395 | rm -f conftest.$ac_objext |
---|
7396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7397 | (eval $ac_compile) 2>conftest.er1 |
---|
7398 | ac_status=$? |
---|
7399 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7400 | rm -f conftest.er1 |
---|
7401 | cat conftest.err >&5 |
---|
7402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7403 | (exit $ac_status); } && |
---|
7404 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7405 | || test ! -s conftest.err' |
---|
7406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7407 | (eval $ac_try) 2>&5 |
---|
7408 | ac_status=$? |
---|
7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7410 | (exit $ac_status); }; } && |
---|
7411 | { ac_try='test -s conftest.$ac_objext' |
---|
7412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7413 | (eval $ac_try) 2>&5 |
---|
7414 | ac_status=$? |
---|
7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7416 | (exit $ac_status); }; }; then |
---|
7417 | ac_cv_type__Bool=yes |
---|
7418 | else |
---|
7419 | echo "$as_me: failed program was:" >&5 |
---|
7420 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7421 | |
---|
7422 | ac_cv_type__Bool=no |
---|
7423 | fi |
---|
7424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7425 | fi |
---|
7426 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
7427 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
7428 | if test $ac_cv_type__Bool = yes; then |
---|
7429 | |
---|
7430 | cat >>confdefs.h <<_ACEOF |
---|
7431 | #define HAVE__BOOL 1 |
---|
7432 | _ACEOF |
---|
7433 | |
---|
7434 | |
---|
7435 | fi |
---|
7436 | |
---|
7437 | if test $ac_cv_header_stdbool_h = yes; then |
---|
7438 | |
---|
7439 | cat >>confdefs.h <<\_ACEOF |
---|
7440 | #define HAVE_STDBOOL_H 1 |
---|
7441 | _ACEOF |
---|
7442 | |
---|
7443 | fi |
---|
7444 | |
---|
7445 | |
---|
7446 | # Checks for library functions. |
---|
7447 | |
---|
7448 | for ac_header in stdlib.h |
---|
7449 | do |
---|
7450 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7451 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7452 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7453 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7454 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7456 | fi |
---|
7457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7458 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7459 | else |
---|
7460 | # Is the header compilable? |
---|
7461 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7462 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7463 | cat >conftest.$ac_ext <<_ACEOF |
---|
7464 | /* confdefs.h. */ |
---|
7465 | _ACEOF |
---|
7466 | cat confdefs.h >>conftest.$ac_ext |
---|
7467 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7468 | /* end confdefs.h. */ |
---|
7469 | $ac_includes_default |
---|
7470 | #include <$ac_header> |
---|
7471 | _ACEOF |
---|
7472 | rm -f conftest.$ac_objext |
---|
7473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7474 | (eval $ac_compile) 2>conftest.er1 |
---|
7475 | ac_status=$? |
---|
7476 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7477 | rm -f conftest.er1 |
---|
7478 | cat conftest.err >&5 |
---|
7479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7480 | (exit $ac_status); } && |
---|
7481 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7482 | || test ! -s conftest.err' |
---|
7483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7484 | (eval $ac_try) 2>&5 |
---|
7485 | ac_status=$? |
---|
7486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7487 | (exit $ac_status); }; } && |
---|
7488 | { ac_try='test -s conftest.$ac_objext' |
---|
7489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7490 | (eval $ac_try) 2>&5 |
---|
7491 | ac_status=$? |
---|
7492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7493 | (exit $ac_status); }; }; then |
---|
7494 | ac_header_compiler=yes |
---|
7495 | else |
---|
7496 | echo "$as_me: failed program was:" >&5 |
---|
7497 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7498 | |
---|
7499 | ac_header_compiler=no |
---|
7500 | fi |
---|
7501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7502 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7503 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7504 | |
---|
7505 | # Is the header present? |
---|
7506 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7507 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7508 | cat >conftest.$ac_ext <<_ACEOF |
---|
7509 | /* confdefs.h. */ |
---|
7510 | _ACEOF |
---|
7511 | cat confdefs.h >>conftest.$ac_ext |
---|
7512 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7513 | /* end confdefs.h. */ |
---|
7514 | #include <$ac_header> |
---|
7515 | _ACEOF |
---|
7516 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7517 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7518 | ac_status=$? |
---|
7519 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7520 | rm -f conftest.er1 |
---|
7521 | cat conftest.err >&5 |
---|
7522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7523 | (exit $ac_status); } >/dev/null; then |
---|
7524 | if test -s conftest.err; then |
---|
7525 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7526 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7527 | else |
---|
7528 | ac_cpp_err= |
---|
7529 | fi |
---|
7530 | else |
---|
7531 | ac_cpp_err=yes |
---|
7532 | fi |
---|
7533 | if test -z "$ac_cpp_err"; then |
---|
7534 | ac_header_preproc=yes |
---|
7535 | else |
---|
7536 | echo "$as_me: failed program was:" >&5 |
---|
7537 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7538 | |
---|
7539 | ac_header_preproc=no |
---|
7540 | fi |
---|
7541 | rm -f conftest.err conftest.$ac_ext |
---|
7542 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7543 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7544 | |
---|
7545 | # So? What about this header? |
---|
7546 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7547 | yes:no: ) |
---|
7548 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7549 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7550 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7551 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7552 | ac_header_preproc=yes |
---|
7553 | ;; |
---|
7554 | no:yes:* ) |
---|
7555 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7556 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7557 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7558 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7559 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7560 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7561 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7562 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7563 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7564 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7565 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7566 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7567 | ( |
---|
7568 | cat <<\_ASBOX |
---|
7569 | ## ------------------------------------------- ## |
---|
7570 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
7571 | ## ------------------------------------------- ## |
---|
7572 | _ASBOX |
---|
7573 | ) | |
---|
7574 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7575 | ;; |
---|
7576 | esac |
---|
7577 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7578 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7581 | else |
---|
7582 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7583 | fi |
---|
7584 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7585 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7586 | |
---|
7587 | fi |
---|
7588 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7589 | cat >>confdefs.h <<_ACEOF |
---|
7590 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7591 | _ACEOF |
---|
7592 | |
---|
7593 | fi |
---|
7594 | |
---|
7595 | done |
---|
7596 | |
---|
7597 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
7598 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
7599 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
7600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7601 | else |
---|
7602 | if test "$cross_compiling" = yes; then |
---|
7603 | ac_cv_func_malloc_0_nonnull=no |
---|
7604 | else |
---|
7605 | cat >conftest.$ac_ext <<_ACEOF |
---|
7606 | /* confdefs.h. */ |
---|
7607 | _ACEOF |
---|
7608 | cat confdefs.h >>conftest.$ac_ext |
---|
7609 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7610 | /* end confdefs.h. */ |
---|
7611 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
7612 | # include <stdlib.h> |
---|
7613 | #else |
---|
7614 | char *malloc (); |
---|
7615 | #endif |
---|
7616 | |
---|
7617 | int |
---|
7618 | main () |
---|
7619 | { |
---|
7620 | exit (malloc (0) ? 0 : 1); |
---|
7621 | ; |
---|
7622 | return 0; |
---|
7623 | } |
---|
7624 | _ACEOF |
---|
7625 | rm -f conftest$ac_exeext |
---|
7626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7627 | (eval $ac_link) 2>&5 |
---|
7628 | ac_status=$? |
---|
7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7630 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7632 | (eval $ac_try) 2>&5 |
---|
7633 | ac_status=$? |
---|
7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7635 | (exit $ac_status); }; }; then |
---|
7636 | ac_cv_func_malloc_0_nonnull=yes |
---|
7637 | else |
---|
7638 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7639 | echo "$as_me: failed program was:" >&5 |
---|
7640 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7641 | |
---|
7642 | ( exit $ac_status ) |
---|
7643 | ac_cv_func_malloc_0_nonnull=no |
---|
7644 | fi |
---|
7645 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7646 | fi |
---|
7647 | fi |
---|
7648 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
7649 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
7650 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
7651 | |
---|
7652 | cat >>confdefs.h <<\_ACEOF |
---|
7653 | #define HAVE_MALLOC 1 |
---|
7654 | _ACEOF |
---|
7655 | |
---|
7656 | else |
---|
7657 | cat >>confdefs.h <<\_ACEOF |
---|
7658 | #define HAVE_MALLOC 0 |
---|
7659 | _ACEOF |
---|
7660 | |
---|
7661 | case $LIBOBJS in |
---|
7662 | "malloc.$ac_objext" | \ |
---|
7663 | *" malloc.$ac_objext" | \ |
---|
7664 | "malloc.$ac_objext "* | \ |
---|
7665 | *" malloc.$ac_objext "* ) ;; |
---|
7666 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
7667 | esac |
---|
7668 | |
---|
7669 | |
---|
7670 | cat >>confdefs.h <<\_ACEOF |
---|
7671 | #define malloc rpl_malloc |
---|
7672 | _ACEOF |
---|
7673 | |
---|
7674 | fi |
---|
7675 | |
---|
7676 | |
---|
7677 | |
---|
7678 | |
---|
7679 | |
---|
7680 | for ac_func in bzero sqrt |
---|
7681 | do |
---|
7682 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
7683 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
7684 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
7685 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
7686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7687 | else |
---|
7688 | cat >conftest.$ac_ext <<_ACEOF |
---|
7689 | /* confdefs.h. */ |
---|
7690 | _ACEOF |
---|
7691 | cat confdefs.h >>conftest.$ac_ext |
---|
7692 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7693 | /* end confdefs.h. */ |
---|
7694 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
7695 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
7696 | #define $ac_func innocuous_$ac_func |
---|
7697 | |
---|
7698 | /* System header to define __stub macros and hopefully few prototypes, |
---|
7699 | which can conflict with char $ac_func (); below. |
---|
7700 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7701 | <limits.h> exists even on freestanding compilers. */ |
---|
7702 | |
---|
7703 | #ifdef __STDC__ |
---|
7704 | # include <limits.h> |
---|
7705 | #else |
---|
7706 | # include <assert.h> |
---|
7707 | #endif |
---|
7708 | |
---|
7709 | #undef $ac_func |
---|
7710 | |
---|
7711 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7712 | #ifdef __cplusplus |
---|
7713 | extern "C" |
---|
7714 | { |
---|
7715 | #endif |
---|
7716 | /* We use char because int might match the return type of a gcc2 |
---|
7717 | builtin and then its argument prototype would still apply. */ |
---|
7718 | char $ac_func (); |
---|
7719 | /* The GNU C library defines this for functions which it implements |
---|
7720 | to always fail with ENOSYS. Some functions are actually named |
---|
7721 | something starting with __ and the normal name is an alias. */ |
---|
7722 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
7723 | choke me |
---|
7724 | #else |
---|
7725 | char (*f) () = $ac_func; |
---|
7726 | #endif |
---|
7727 | #ifdef __cplusplus |
---|
7728 | } |
---|
7729 | #endif |
---|
7730 | |
---|
7731 | int |
---|
7732 | main () |
---|
7733 | { |
---|
7734 | return f != $ac_func; |
---|
7735 | ; |
---|
7736 | return 0; |
---|
7737 | } |
---|
7738 | _ACEOF |
---|
7739 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7741 | (eval $ac_link) 2>conftest.er1 |
---|
7742 | ac_status=$? |
---|
7743 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7744 | rm -f conftest.er1 |
---|
7745 | cat conftest.err >&5 |
---|
7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7747 | (exit $ac_status); } && |
---|
7748 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7749 | || test ! -s conftest.err' |
---|
7750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7751 | (eval $ac_try) 2>&5 |
---|
7752 | ac_status=$? |
---|
7753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7754 | (exit $ac_status); }; } && |
---|
7755 | { ac_try='test -s conftest$ac_exeext' |
---|
7756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7757 | (eval $ac_try) 2>&5 |
---|
7758 | ac_status=$? |
---|
7759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7760 | (exit $ac_status); }; }; then |
---|
7761 | eval "$as_ac_var=yes" |
---|
7762 | else |
---|
7763 | echo "$as_me: failed program was:" >&5 |
---|
7764 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7765 | |
---|
7766 | eval "$as_ac_var=no" |
---|
7767 | fi |
---|
7768 | rm -f conftest.err conftest.$ac_objext \ |
---|
7769 | conftest$ac_exeext conftest.$ac_ext |
---|
7770 | fi |
---|
7771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
7772 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
7773 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
7774 | cat >>confdefs.h <<_ACEOF |
---|
7775 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
7776 | _ACEOF |
---|
7777 | |
---|
7778 | fi |
---|
7779 | done |
---|
7780 | |
---|
7781 | |
---|
7782 | ac_config_files="$ac_config_files Makefile src/console/Makefile src/gui/Makefile src/Makefile src/importer/Makefile" |
---|
7783 | |
---|
7784 | cat >confcache <<\_ACEOF |
---|
7785 | # This file is a shell script that caches the results of configure |
---|
7786 | # tests run on this system so they can be shared between configure |
---|
7787 | # scripts and configure runs, see configure's option --config-cache. |
---|
7788 | # It is not useful on other systems. If it contains results you don't |
---|
7789 | # want to keep, you may remove or edit it. |
---|
7790 | # |
---|
7791 | # config.status only pays attention to the cache file if you give it |
---|
7792 | # the --recheck option to rerun configure. |
---|
7793 | # |
---|
7794 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7795 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7796 | # following values. |
---|
7797 | |
---|
7798 | _ACEOF |
---|
7799 | |
---|
7800 | # The following way of writing the cache mishandles newlines in values, |
---|
7801 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7802 | # So, don't put newlines in cache variables' values. |
---|
7803 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7804 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7805 | { |
---|
7806 | (set) 2>&1 | |
---|
7807 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
7808 | *ac_space=\ *) |
---|
7809 | # `set' does not quote correctly, so add quotes (double-quote |
---|
7810 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
7811 | sed -n \ |
---|
7812 | "s/'/'\\\\''/g; |
---|
7813 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7814 | ;; |
---|
7815 | *) |
---|
7816 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7817 | sed -n \ |
---|
7818 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
7819 | ;; |
---|
7820 | esac; |
---|
7821 | } | |
---|
7822 | sed ' |
---|
7823 | t clear |
---|
7824 | : clear |
---|
7825 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7826 | t end |
---|
7827 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7828 | : end' >>confcache |
---|
7829 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
7830 | if test -w $cache_file; then |
---|
7831 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
7832 | cat confcache >$cache_file |
---|
7833 | else |
---|
7834 | echo "not updating unwritable cache $cache_file" |
---|
7835 | fi |
---|
7836 | fi |
---|
7837 | rm -f confcache |
---|
7838 | |
---|
7839 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7840 | # Let make expand exec_prefix. |
---|
7841 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7842 | |
---|
7843 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
7844 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
7845 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7846 | # (actually we leave an empty line to preserve line numbers). |
---|
7847 | if test "x$srcdir" = x.; then |
---|
7848 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
7849 | s/:*\$(srcdir):*/:/; |
---|
7850 | s/:*\${srcdir}:*/:/; |
---|
7851 | s/:*@srcdir@:*/:/; |
---|
7852 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
7853 | s/:*$//; |
---|
7854 | s/^[^=]*=[ ]*$//; |
---|
7855 | }' |
---|
7856 | fi |
---|
7857 | |
---|
7858 | DEFS=-DHAVE_CONFIG_H |
---|
7859 | |
---|
7860 | ac_libobjs= |
---|
7861 | ac_ltlibobjs= |
---|
7862 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
7863 | # 1. Remove the extension, and $U if already installed. |
---|
7864 | ac_i=`echo "$ac_i" | |
---|
7865 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
7866 | # 2. Add them. |
---|
7867 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
7868 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
7869 | done |
---|
7870 | LIBOBJS=$ac_libobjs |
---|
7871 | |
---|
7872 | LTLIBOBJS=$ac_ltlibobjs |
---|
7873 | |
---|
7874 | |
---|
7875 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
7876 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
7877 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7878 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
7879 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7880 | { (exit 1); exit 1; }; } |
---|
7881 | fi |
---|
7882 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
7883 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
7884 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7885 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
7886 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7887 | { (exit 1); exit 1; }; } |
---|
7888 | fi |
---|
7889 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
7890 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
7891 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7892 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
7893 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7894 | { (exit 1); exit 1; }; } |
---|
7895 | fi |
---|
7896 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
7897 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
7898 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7899 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
7900 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7901 | { (exit 1); exit 1; }; } |
---|
7902 | fi |
---|
7903 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
7904 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
7905 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7906 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
7907 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7908 | { (exit 1); exit 1; }; } |
---|
7909 | fi |
---|
7910 | |
---|
7911 | : ${CONFIG_STATUS=./config.status} |
---|
7912 | ac_clean_files_save=$ac_clean_files |
---|
7913 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
7914 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
7915 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
7916 | cat >$CONFIG_STATUS <<_ACEOF |
---|
7917 | #! $SHELL |
---|
7918 | # Generated by $as_me. |
---|
7919 | # Run this file to recreate the current configuration. |
---|
7920 | # Compiler output produced by configure, useful for debugging |
---|
7921 | # configure, is in config.log if it exists. |
---|
7922 | |
---|
7923 | debug=false |
---|
7924 | ac_cs_recheck=false |
---|
7925 | ac_cs_silent=false |
---|
7926 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
7927 | _ACEOF |
---|
7928 | |
---|
7929 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7930 | ## --------------------- ## |
---|
7931 | ## M4sh Initialization. ## |
---|
7932 | ## --------------------- ## |
---|
7933 | |
---|
7934 | # Be Bourne compatible |
---|
7935 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
7936 | emulate sh |
---|
7937 | NULLCMD=: |
---|
7938 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
7939 | # is contrary to our usage. Disable this feature. |
---|
7940 | alias -g '${1+"$@"}'='"$@"' |
---|
7941 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
7942 | set -o posix |
---|
7943 | fi |
---|
7944 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
7945 | |
---|
7946 | # Support unset when possible. |
---|
7947 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
7948 | as_unset=unset |
---|
7949 | else |
---|
7950 | as_unset=false |
---|
7951 | fi |
---|
7952 | |
---|
7953 | |
---|
7954 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
7955 | $as_unset ENV MAIL MAILPATH |
---|
7956 | PS1='$ ' |
---|
7957 | PS2='> ' |
---|
7958 | PS4='+ ' |
---|
7959 | |
---|
7960 | # NLS nuisances. |
---|
7961 | for as_var in \ |
---|
7962 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
7963 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
7964 | LC_TELEPHONE LC_TIME |
---|
7965 | do |
---|
7966 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
7967 | eval $as_var=C; export $as_var |
---|
7968 | else |
---|
7969 | $as_unset $as_var |
---|
7970 | fi |
---|
7971 | done |
---|
7972 | |
---|
7973 | # Required to use basename. |
---|
7974 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
7975 | as_expr=expr |
---|
7976 | else |
---|
7977 | as_expr=false |
---|
7978 | fi |
---|
7979 | |
---|
7980 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
7981 | as_basename=basename |
---|
7982 | else |
---|
7983 | as_basename=false |
---|
7984 | fi |
---|
7985 | |
---|
7986 | |
---|
7987 | # Name of the executable. |
---|
7988 | as_me=`$as_basename "$0" || |
---|
7989 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
7990 | X"$0" : 'X\(//\)$' \| \ |
---|
7991 | X"$0" : 'X\(/\)$' \| \ |
---|
7992 | . : '\(.\)' 2>/dev/null || |
---|
7993 | echo X/"$0" | |
---|
7994 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
7995 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
7996 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
7997 | s/.*/./; q'` |
---|
7998 | |
---|
7999 | |
---|
8000 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
8001 | # Avoid depending upon Character Ranges. |
---|
8002 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
8003 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
8004 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
8005 | as_cr_digits='0123456789' |
---|
8006 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
8007 | |
---|
8008 | # The user is always right. |
---|
8009 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
8010 | echo "#! /bin/sh" >conf$$.sh |
---|
8011 | echo "exit 0" >>conf$$.sh |
---|
8012 | chmod +x conf$$.sh |
---|
8013 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
8014 | PATH_SEPARATOR=';' |
---|
8015 | else |
---|
8016 | PATH_SEPARATOR=: |
---|
8017 | fi |
---|
8018 | rm -f conf$$.sh |
---|
8019 | fi |
---|
8020 | |
---|
8021 | |
---|
8022 | as_lineno_1=$LINENO |
---|
8023 | as_lineno_2=$LINENO |
---|
8024 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
8025 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
8026 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
8027 | # Find who we are. Look in the path if we contain no path at all |
---|
8028 | # relative or not. |
---|
8029 | case $0 in |
---|
8030 | *[\\/]* ) as_myself=$0 ;; |
---|
8031 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8032 | for as_dir in $PATH |
---|
8033 | do |
---|
8034 | IFS=$as_save_IFS |
---|
8035 | test -z "$as_dir" && as_dir=. |
---|
8036 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
8037 | done |
---|
8038 | |
---|
8039 | ;; |
---|
8040 | esac |
---|
8041 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
8042 | # in which case we are not to be found in the path. |
---|
8043 | if test "x$as_myself" = x; then |
---|
8044 | as_myself=$0 |
---|
8045 | fi |
---|
8046 | if test ! -f "$as_myself"; then |
---|
8047 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
8048 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
8049 | { (exit 1); exit 1; }; } |
---|
8050 | fi |
---|
8051 | case $CONFIG_SHELL in |
---|
8052 | '') |
---|
8053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8054 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
8055 | do |
---|
8056 | IFS=$as_save_IFS |
---|
8057 | test -z "$as_dir" && as_dir=. |
---|
8058 | for as_base in sh bash ksh sh5; do |
---|
8059 | case $as_dir in |
---|
8060 | /*) |
---|
8061 | if ("$as_dir/$as_base" -c ' |
---|
8062 | as_lineno_1=$LINENO |
---|
8063 | as_lineno_2=$LINENO |
---|
8064 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
8065 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
8066 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
8067 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
8068 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
8069 | CONFIG_SHELL=$as_dir/$as_base |
---|
8070 | export CONFIG_SHELL |
---|
8071 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
8072 | fi;; |
---|
8073 | esac |
---|
8074 | done |
---|
8075 | done |
---|
8076 | ;; |
---|
8077 | esac |
---|
8078 | |
---|
8079 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
8080 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
8081 | # line-number line before each line; the second 'sed' does the real |
---|
8082 | # work. The second script uses 'N' to pair each line-number line |
---|
8083 | # with the numbered line, and appends trailing '-' during |
---|
8084 | # substitution so that $LINENO is not a special case at line end. |
---|
8085 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
8086 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
8087 | sed '=' <$as_myself | |
---|
8088 | sed ' |
---|
8089 | N |
---|
8090 | s,$,-, |
---|
8091 | : loop |
---|
8092 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
8093 | t loop |
---|
8094 | s,-$,, |
---|
8095 | s,^['$as_cr_digits']*\n,, |
---|
8096 | ' >$as_me.lineno && |
---|
8097 | chmod +x $as_me.lineno || |
---|
8098 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
8099 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
8100 | { (exit 1); exit 1; }; } |
---|
8101 | |
---|
8102 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
8103 | # (the dirname of $[0] is not the place where we might find the |
---|
8104 | # original and so on. Autoconf is especially sensible to this). |
---|
8105 | . ./$as_me.lineno |
---|
8106 | # Exit status is that of the last command. |
---|
8107 | exit |
---|
8108 | } |
---|
8109 | |
---|
8110 | |
---|
8111 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
8112 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
8113 | ' ECHO_T=' ' ;; |
---|
8114 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
8115 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
8116 | esac |
---|
8117 | |
---|
8118 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
8119 | as_expr=expr |
---|
8120 | else |
---|
8121 | as_expr=false |
---|
8122 | fi |
---|
8123 | |
---|
8124 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8125 | echo >conf$$.file |
---|
8126 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
8127 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
8128 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
8129 | if test -f conf$$.exe; then |
---|
8130 | # Don't use ln at all; we don't have any links |
---|
8131 | as_ln_s='cp -p' |
---|
8132 | else |
---|
8133 | as_ln_s='ln -s' |
---|
8134 | fi |
---|
8135 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
8136 | as_ln_s=ln |
---|
8137 | else |
---|
8138 | as_ln_s='cp -p' |
---|
8139 | fi |
---|
8140 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8141 | |
---|
8142 | if mkdir -p . 2>/dev/null; then |
---|
8143 | as_mkdir_p=: |
---|
8144 | else |
---|
8145 | test -d ./-p && rmdir ./-p |
---|
8146 | as_mkdir_p=false |
---|
8147 | fi |
---|
8148 | |
---|
8149 | as_executable_p="test -f" |
---|
8150 | |
---|
8151 | # Sed expression to map a string onto a valid CPP name. |
---|
8152 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
8153 | |
---|
8154 | # Sed expression to map a string onto a valid variable name. |
---|
8155 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
8156 | |
---|
8157 | |
---|
8158 | # IFS |
---|
8159 | # We need space, tab and new line, in precisely that order. |
---|
8160 | as_nl=' |
---|
8161 | ' |
---|
8162 | IFS=" $as_nl" |
---|
8163 | |
---|
8164 | # CDPATH. |
---|
8165 | $as_unset CDPATH |
---|
8166 | |
---|
8167 | exec 6>&1 |
---|
8168 | |
---|
8169 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
8170 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
8171 | # values after options handling. Logging --version etc. is OK. |
---|
8172 | exec 5>>config.log |
---|
8173 | { |
---|
8174 | echo |
---|
8175 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
8176 | ## Running $as_me. ## |
---|
8177 | _ASBOX |
---|
8178 | } >&5 |
---|
8179 | cat >&5 <<_CSEOF |
---|
8180 | |
---|
8181 | This file was extended by orxonox $as_me 0.2.0_alpha-r1, which was |
---|
8182 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
8183 | |
---|
8184 | CONFIG_FILES = $CONFIG_FILES |
---|
8185 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
8186 | CONFIG_LINKS = $CONFIG_LINKS |
---|
8187 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
8188 | $ $0 $@ |
---|
8189 | |
---|
8190 | _CSEOF |
---|
8191 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
8192 | echo >&5 |
---|
8193 | _ACEOF |
---|
8194 | |
---|
8195 | # Files that config.status was made for. |
---|
8196 | if test -n "$ac_config_files"; then |
---|
8197 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
8198 | fi |
---|
8199 | |
---|
8200 | if test -n "$ac_config_headers"; then |
---|
8201 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
8202 | fi |
---|
8203 | |
---|
8204 | if test -n "$ac_config_links"; then |
---|
8205 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
8206 | fi |
---|
8207 | |
---|
8208 | if test -n "$ac_config_commands"; then |
---|
8209 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
8210 | fi |
---|
8211 | |
---|
8212 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8213 | |
---|
8214 | ac_cs_usage="\ |
---|
8215 | \`$as_me' instantiates files from templates according to the |
---|
8216 | current configuration. |
---|
8217 | |
---|
8218 | Usage: $0 [OPTIONS] [FILE]... |
---|
8219 | |
---|
8220 | -h, --help print this help, then exit |
---|
8221 | -V, --version print version number, then exit |
---|
8222 | -q, --quiet do not print progress messages |
---|
8223 | -d, --debug don't remove temporary files |
---|
8224 | --recheck update $as_me by reconfiguring in the same conditions |
---|
8225 | --file=FILE[:TEMPLATE] |
---|
8226 | instantiate the configuration file FILE |
---|
8227 | --header=FILE[:TEMPLATE] |
---|
8228 | instantiate the configuration header FILE |
---|
8229 | |
---|
8230 | Configuration files: |
---|
8231 | $config_files |
---|
8232 | |
---|
8233 | Configuration headers: |
---|
8234 | $config_headers |
---|
8235 | |
---|
8236 | Configuration commands: |
---|
8237 | $config_commands |
---|
8238 | |
---|
8239 | Report bugs to <bug-autoconf@gnu.org>." |
---|
8240 | _ACEOF |
---|
8241 | |
---|
8242 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8243 | ac_cs_version="\\ |
---|
8244 | orxonox config.status 0.2.0_alpha-r1 |
---|
8245 | configured by $0, generated by GNU Autoconf 2.59, |
---|
8246 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
8247 | |
---|
8248 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8249 | This config.status script is free software; the Free Software Foundation |
---|
8250 | gives unlimited permission to copy, distribute and modify it." |
---|
8251 | srcdir=$srcdir |
---|
8252 | INSTALL="$INSTALL" |
---|
8253 | _ACEOF |
---|
8254 | |
---|
8255 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8256 | # If no file are specified by the user, then we need to provide default |
---|
8257 | # value. By we need to know if files were specified by the user. |
---|
8258 | ac_need_defaults=: |
---|
8259 | while test $# != 0 |
---|
8260 | do |
---|
8261 | case $1 in |
---|
8262 | --*=*) |
---|
8263 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
8264 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
8265 | ac_shift=: |
---|
8266 | ;; |
---|
8267 | -*) |
---|
8268 | ac_option=$1 |
---|
8269 | ac_optarg=$2 |
---|
8270 | ac_shift=shift |
---|
8271 | ;; |
---|
8272 | *) # This is not an option, so the user has probably given explicit |
---|
8273 | # arguments. |
---|
8274 | ac_option=$1 |
---|
8275 | ac_need_defaults=false;; |
---|
8276 | esac |
---|
8277 | |
---|
8278 | case $ac_option in |
---|
8279 | # Handling of the options. |
---|
8280 | _ACEOF |
---|
8281 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8282 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8283 | ac_cs_recheck=: ;; |
---|
8284 | --version | --vers* | -V ) |
---|
8285 | echo "$ac_cs_version"; exit 0 ;; |
---|
8286 | --he | --h) |
---|
8287 | # Conflict between --help and --header |
---|
8288 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
8289 | Try \`$0 --help' for more information." >&5 |
---|
8290 | echo "$as_me: error: ambiguous option: $1 |
---|
8291 | Try \`$0 --help' for more information." >&2;} |
---|
8292 | { (exit 1); exit 1; }; };; |
---|
8293 | --help | --hel | -h ) |
---|
8294 | echo "$ac_cs_usage"; exit 0 ;; |
---|
8295 | --debug | --d* | -d ) |
---|
8296 | debug=: ;; |
---|
8297 | --file | --fil | --fi | --f ) |
---|
8298 | $ac_shift |
---|
8299 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
8300 | ac_need_defaults=false;; |
---|
8301 | --header | --heade | --head | --hea ) |
---|
8302 | $ac_shift |
---|
8303 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
8304 | ac_need_defaults=false;; |
---|
8305 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
8306 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
8307 | ac_cs_silent=: ;; |
---|
8308 | |
---|
8309 | # This is an error. |
---|
8310 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
8311 | Try \`$0 --help' for more information." >&5 |
---|
8312 | echo "$as_me: error: unrecognized option: $1 |
---|
8313 | Try \`$0 --help' for more information." >&2;} |
---|
8314 | { (exit 1); exit 1; }; } ;; |
---|
8315 | |
---|
8316 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
8317 | |
---|
8318 | esac |
---|
8319 | shift |
---|
8320 | done |
---|
8321 | |
---|
8322 | ac_configure_extra_args= |
---|
8323 | |
---|
8324 | if $ac_cs_silent; then |
---|
8325 | exec 6>/dev/null |
---|
8326 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
8327 | fi |
---|
8328 | |
---|
8329 | _ACEOF |
---|
8330 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8331 | if \$ac_cs_recheck; then |
---|
8332 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
8333 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
8334 | fi |
---|
8335 | |
---|
8336 | _ACEOF |
---|
8337 | |
---|
8338 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8339 | # |
---|
8340 | # INIT-COMMANDS section. |
---|
8341 | # |
---|
8342 | |
---|
8343 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
8344 | |
---|
8345 | _ACEOF |
---|
8346 | |
---|
8347 | |
---|
8348 | |
---|
8349 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8350 | for ac_config_target in $ac_config_targets |
---|
8351 | do |
---|
8352 | case "$ac_config_target" in |
---|
8353 | # Handling of arguments. |
---|
8354 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
8355 | "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;; |
---|
8356 | "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;; |
---|
8357 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
8358 | "src/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/importer/Makefile" ;; |
---|
8359 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
8360 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
8361 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
8362 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
8363 | { (exit 1); exit 1; }; };; |
---|
8364 | esac |
---|
8365 | done |
---|
8366 | |
---|
8367 | # If the user did not use the arguments to specify the items to instantiate, |
---|
8368 | # then the envvar interface is used. Set only those that are not. |
---|
8369 | # We use the long form for the default assignment because of an extremely |
---|
8370 | # bizarre bug on SunOS 4.1.3. |
---|
8371 | if $ac_need_defaults; then |
---|
8372 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
8373 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
8374 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
8375 | fi |
---|
8376 | |
---|
8377 | # Have a temporary directory for convenience. Make it in the build tree |
---|
8378 | # simply because there is no reason to put it here, and in addition, |
---|
8379 | # creating and moving files from /tmp can sometimes cause problems. |
---|
8380 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
8381 | $debug || |
---|
8382 | { |
---|
8383 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
8384 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
8385 | } |
---|
8386 | |
---|
8387 | # Create a (secure) tmp directory for tmp files. |
---|
8388 | |
---|
8389 | { |
---|
8390 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
8391 | test -n "$tmp" && test -d "$tmp" |
---|
8392 | } || |
---|
8393 | { |
---|
8394 | tmp=./confstat$$-$RANDOM |
---|
8395 | (umask 077 && mkdir $tmp) |
---|
8396 | } || |
---|
8397 | { |
---|
8398 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
8399 | { (exit 1); exit 1; } |
---|
8400 | } |
---|
8401 | |
---|
8402 | _ACEOF |
---|
8403 | |
---|
8404 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8405 | |
---|
8406 | # |
---|
8407 | # CONFIG_FILES section. |
---|
8408 | # |
---|
8409 | |
---|
8410 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
8411 | # This happens for instance when ./config.status config.h |
---|
8412 | if test -n "\$CONFIG_FILES"; then |
---|
8413 | # Protect against being on the right side of a sed subst in config.status. |
---|
8414 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
8415 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
8416 | s,@SHELL@,$SHELL,;t t |
---|
8417 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
8418 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
8419 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
8420 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
8421 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
8422 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
8423 | s,@exec_prefix@,$exec_prefix,;t t |
---|
8424 | s,@prefix@,$prefix,;t t |
---|
8425 | s,@program_transform_name@,$program_transform_name,;t t |
---|
8426 | s,@bindir@,$bindir,;t t |
---|
8427 | s,@sbindir@,$sbindir,;t t |
---|
8428 | s,@libexecdir@,$libexecdir,;t t |
---|
8429 | s,@datadir@,$datadir,;t t |
---|
8430 | s,@sysconfdir@,$sysconfdir,;t t |
---|
8431 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
8432 | s,@localstatedir@,$localstatedir,;t t |
---|
8433 | s,@libdir@,$libdir,;t t |
---|
8434 | s,@includedir@,$includedir,;t t |
---|
8435 | s,@oldincludedir@,$oldincludedir,;t t |
---|
8436 | s,@infodir@,$infodir,;t t |
---|
8437 | s,@mandir@,$mandir,;t t |
---|
8438 | s,@build_alias@,$build_alias,;t t |
---|
8439 | s,@host_alias@,$host_alias,;t t |
---|
8440 | s,@target_alias@,$target_alias,;t t |
---|
8441 | s,@DEFS@,$DEFS,;t t |
---|
8442 | s,@ECHO_C@,$ECHO_C,;t t |
---|
8443 | s,@ECHO_N@,$ECHO_N,;t t |
---|
8444 | s,@ECHO_T@,$ECHO_T,;t t |
---|
8445 | s,@LIBS@,$LIBS,;t t |
---|
8446 | s,@build@,$build,;t t |
---|
8447 | s,@build_cpu@,$build_cpu,;t t |
---|
8448 | s,@build_vendor@,$build_vendor,;t t |
---|
8449 | s,@build_os@,$build_os,;t t |
---|
8450 | s,@host@,$host,;t t |
---|
8451 | s,@host_cpu@,$host_cpu,;t t |
---|
8452 | s,@host_vendor@,$host_vendor,;t t |
---|
8453 | s,@host_os@,$host_os,;t t |
---|
8454 | s,@target@,$target,;t t |
---|
8455 | s,@target_cpu@,$target_cpu,;t t |
---|
8456 | s,@target_vendor@,$target_vendor,;t t |
---|
8457 | s,@target_os@,$target_os,;t t |
---|
8458 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
8459 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
8460 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
8461 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
8462 | s,@PACKAGE@,$PACKAGE,;t t |
---|
8463 | s,@VERSION@,$VERSION,;t t |
---|
8464 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
8465 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
8466 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
8467 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
8468 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
8469 | s,@AMTAR@,$AMTAR,;t t |
---|
8470 | s,@install_sh@,$install_sh,;t t |
---|
8471 | s,@STRIP@,$STRIP,;t t |
---|
8472 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
8473 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
8474 | s,@mkdir_p@,$mkdir_p,;t t |
---|
8475 | s,@AWK@,$AWK,;t t |
---|
8476 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
8477 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
8478 | s,@CXX@,$CXX,;t t |
---|
8479 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
8480 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
8481 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
8482 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
8483 | s,@EXEEXT@,$EXEEXT,;t t |
---|
8484 | s,@OBJEXT@,$OBJEXT,;t t |
---|
8485 | s,@DEPDIR@,$DEPDIR,;t t |
---|
8486 | s,@am__include@,$am__include,;t t |
---|
8487 | s,@am__quote@,$am__quote,;t t |
---|
8488 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
8489 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
8490 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
8491 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
8492 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
8493 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
8494 | s,@CC@,$CC,;t t |
---|
8495 | s,@CFLAGS@,$CFLAGS,;t t |
---|
8496 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
8497 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
8498 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
8499 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
8500 | s,@CPP@,$CPP,;t t |
---|
8501 | s,@EGREP@,$EGREP,;t t |
---|
8502 | s,@DEBUG@,$DEBUG,;t t |
---|
8503 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
8504 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
8505 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
8506 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
8507 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
8508 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
8509 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
8510 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
8511 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
8512 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
8513 | CEOF |
---|
8514 | |
---|
8515 | _ACEOF |
---|
8516 | |
---|
8517 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8518 | # Split the substitutions into bite-sized pieces for seds with |
---|
8519 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
8520 | ac_max_sed_lines=48 |
---|
8521 | ac_sed_frag=1 # Number of current file. |
---|
8522 | ac_beg=1 # First line for current file. |
---|
8523 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
8524 | ac_more_lines=: |
---|
8525 | ac_sed_cmds= |
---|
8526 | while $ac_more_lines; do |
---|
8527 | if test $ac_beg -gt 1; then |
---|
8528 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8529 | else |
---|
8530 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8531 | fi |
---|
8532 | if test ! -s $tmp/subs.frag; then |
---|
8533 | ac_more_lines=false |
---|
8534 | else |
---|
8535 | # The purpose of the label and of the branching condition is to |
---|
8536 | # speed up the sed processing (if there are no `@' at all, there |
---|
8537 | # is no need to browse any of the substitutions). |
---|
8538 | # These are the two extra sed commands mentioned above. |
---|
8539 | (echo ':t |
---|
8540 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
8541 | if test -z "$ac_sed_cmds"; then |
---|
8542 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8543 | else |
---|
8544 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8545 | fi |
---|
8546 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
8547 | ac_beg=$ac_end |
---|
8548 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
8549 | fi |
---|
8550 | done |
---|
8551 | if test -z "$ac_sed_cmds"; then |
---|
8552 | ac_sed_cmds=cat |
---|
8553 | fi |
---|
8554 | fi # test -n "$CONFIG_FILES" |
---|
8555 | |
---|
8556 | _ACEOF |
---|
8557 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8558 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
8559 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8560 | case $ac_file in |
---|
8561 | - | *:- | *:-:* ) # input from stdin |
---|
8562 | cat >$tmp/stdin |
---|
8563 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8564 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8565 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8566 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8567 | * ) ac_file_in=$ac_file.in ;; |
---|
8568 | esac |
---|
8569 | |
---|
8570 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
8571 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8572 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8573 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8574 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8575 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8576 | . : '\(.\)' 2>/dev/null || |
---|
8577 | echo X"$ac_file" | |
---|
8578 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8579 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8580 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8581 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8582 | s/.*/./; q'` |
---|
8583 | { if $as_mkdir_p; then |
---|
8584 | mkdir -p "$ac_dir" |
---|
8585 | else |
---|
8586 | as_dir="$ac_dir" |
---|
8587 | as_dirs= |
---|
8588 | while test ! -d "$as_dir"; do |
---|
8589 | as_dirs="$as_dir $as_dirs" |
---|
8590 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8591 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8592 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8593 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8594 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8595 | . : '\(.\)' 2>/dev/null || |
---|
8596 | echo X"$as_dir" | |
---|
8597 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8598 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8599 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8600 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8601 | s/.*/./; q'` |
---|
8602 | done |
---|
8603 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8604 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8605 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8606 | { (exit 1); exit 1; }; }; } |
---|
8607 | |
---|
8608 | ac_builddir=. |
---|
8609 | |
---|
8610 | if test "$ac_dir" != .; then |
---|
8611 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
8612 | # A "../" for each directory in $ac_dir_suffix. |
---|
8613 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
8614 | else |
---|
8615 | ac_dir_suffix= ac_top_builddir= |
---|
8616 | fi |
---|
8617 | |
---|
8618 | case $srcdir in |
---|
8619 | .) # No --srcdir option. We are building in place. |
---|
8620 | ac_srcdir=. |
---|
8621 | if test -z "$ac_top_builddir"; then |
---|
8622 | ac_top_srcdir=. |
---|
8623 | else |
---|
8624 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
8625 | fi ;; |
---|
8626 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
8627 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8628 | ac_top_srcdir=$srcdir ;; |
---|
8629 | *) # Relative path. |
---|
8630 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
8631 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
8632 | esac |
---|
8633 | |
---|
8634 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
8635 | # the directories may not exist. |
---|
8636 | case `pwd` in |
---|
8637 | .) ac_abs_builddir="$ac_dir";; |
---|
8638 | *) |
---|
8639 | case "$ac_dir" in |
---|
8640 | .) ac_abs_builddir=`pwd`;; |
---|
8641 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
8642 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
8643 | esac;; |
---|
8644 | esac |
---|
8645 | case $ac_abs_builddir in |
---|
8646 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
8647 | *) |
---|
8648 | case ${ac_top_builddir}. in |
---|
8649 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
8650 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
8651 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
8652 | esac;; |
---|
8653 | esac |
---|
8654 | case $ac_abs_builddir in |
---|
8655 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
8656 | *) |
---|
8657 | case $ac_srcdir in |
---|
8658 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
8659 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
8660 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
8661 | esac;; |
---|
8662 | esac |
---|
8663 | case $ac_abs_builddir in |
---|
8664 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
8665 | *) |
---|
8666 | case $ac_top_srcdir in |
---|
8667 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
8668 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
8669 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
8670 | esac;; |
---|
8671 | esac |
---|
8672 | |
---|
8673 | |
---|
8674 | case $INSTALL in |
---|
8675 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
8676 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
8677 | esac |
---|
8678 | |
---|
8679 | if test x"$ac_file" != x-; then |
---|
8680 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8681 | echo "$as_me: creating $ac_file" >&6;} |
---|
8682 | rm -f "$ac_file" |
---|
8683 | fi |
---|
8684 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8685 | # use $as_me), people would be surprised to read: |
---|
8686 | # /* config.h. Generated by config.status. */ |
---|
8687 | if test x"$ac_file" = x-; then |
---|
8688 | configure_input= |
---|
8689 | else |
---|
8690 | configure_input="$ac_file. " |
---|
8691 | fi |
---|
8692 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
8693 | sed 's,.*/,,'` by configure." |
---|
8694 | |
---|
8695 | # First look for the input files in the build tree, otherwise in the |
---|
8696 | # src tree. |
---|
8697 | ac_file_inputs=`IFS=: |
---|
8698 | for f in $ac_file_in; do |
---|
8699 | case $f in |
---|
8700 | -) echo $tmp/stdin ;; |
---|
8701 | [\\/$]*) |
---|
8702 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8703 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8704 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8705 | { (exit 1); exit 1; }; } |
---|
8706 | echo "$f";; |
---|
8707 | *) # Relative |
---|
8708 | if test -f "$f"; then |
---|
8709 | # Build tree |
---|
8710 | echo "$f" |
---|
8711 | elif test -f "$srcdir/$f"; then |
---|
8712 | # Source tree |
---|
8713 | echo "$srcdir/$f" |
---|
8714 | else |
---|
8715 | # /dev/null tree |
---|
8716 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8717 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8718 | { (exit 1); exit 1; }; } |
---|
8719 | fi;; |
---|
8720 | esac |
---|
8721 | done` || { (exit 1); exit 1; } |
---|
8722 | _ACEOF |
---|
8723 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8724 | sed "$ac_vpsub |
---|
8725 | $extrasub |
---|
8726 | _ACEOF |
---|
8727 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8728 | :t |
---|
8729 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
8730 | s,@configure_input@,$configure_input,;t t |
---|
8731 | s,@srcdir@,$ac_srcdir,;t t |
---|
8732 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
8733 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
8734 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
8735 | s,@builddir@,$ac_builddir,;t t |
---|
8736 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
8737 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
8738 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
8739 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
8740 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
8741 | rm -f $tmp/stdin |
---|
8742 | if test x"$ac_file" != x-; then |
---|
8743 | mv $tmp/out $ac_file |
---|
8744 | else |
---|
8745 | cat $tmp/out |
---|
8746 | rm -f $tmp/out |
---|
8747 | fi |
---|
8748 | |
---|
8749 | done |
---|
8750 | _ACEOF |
---|
8751 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8752 | |
---|
8753 | # |
---|
8754 | # CONFIG_HEADER section. |
---|
8755 | # |
---|
8756 | |
---|
8757 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
8758 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
8759 | # |
---|
8760 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
8761 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
8762 | ac_dB='[ ].*$,\1#\2' |
---|
8763 | ac_dC=' ' |
---|
8764 | ac_dD=',;t' |
---|
8765 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
8766 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
8767 | ac_uB='$,\1#\2define\3' |
---|
8768 | ac_uC=' ' |
---|
8769 | ac_uD=',;t' |
---|
8770 | |
---|
8771 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
8772 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8773 | case $ac_file in |
---|
8774 | - | *:- | *:-:* ) # input from stdin |
---|
8775 | cat >$tmp/stdin |
---|
8776 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8777 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8778 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8779 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8780 | * ) ac_file_in=$ac_file.in ;; |
---|
8781 | esac |
---|
8782 | |
---|
8783 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8784 | echo "$as_me: creating $ac_file" >&6;} |
---|
8785 | |
---|
8786 | # First look for the input files in the build tree, otherwise in the |
---|
8787 | # src tree. |
---|
8788 | ac_file_inputs=`IFS=: |
---|
8789 | for f in $ac_file_in; do |
---|
8790 | case $f in |
---|
8791 | -) echo $tmp/stdin ;; |
---|
8792 | [\\/$]*) |
---|
8793 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8794 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8795 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8796 | { (exit 1); exit 1; }; } |
---|
8797 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
8798 | echo "$f";; |
---|
8799 | *) # Relative |
---|
8800 | if test -f "$f"; then |
---|
8801 | # Build tree |
---|
8802 | echo "$f" |
---|
8803 | elif test -f "$srcdir/$f"; then |
---|
8804 | # Source tree |
---|
8805 | echo "$srcdir/$f" |
---|
8806 | else |
---|
8807 | # /dev/null tree |
---|
8808 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8809 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8810 | { (exit 1); exit 1; }; } |
---|
8811 | fi;; |
---|
8812 | esac |
---|
8813 | done` || { (exit 1); exit 1; } |
---|
8814 | # Remove the trailing spaces. |
---|
8815 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
8816 | |
---|
8817 | _ACEOF |
---|
8818 | |
---|
8819 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
8820 | # `conftest.undefs', that substitutes the proper values into |
---|
8821 | # config.h.in to produce config.h. The first handles `#define' |
---|
8822 | # templates, and the second `#undef' templates. |
---|
8823 | # And first: Protect against being on the right side of a sed subst in |
---|
8824 | # config.status. Protect against being in an unquoted here document |
---|
8825 | # in config.status. |
---|
8826 | rm -f conftest.defines conftest.undefs |
---|
8827 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
8828 | # Putting comments in sed scripts is not portable. |
---|
8829 | # |
---|
8830 | # `end' is used to avoid that the second main sed command (meant for |
---|
8831 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
8832 | # See the Autoconf documentation for `clear'. |
---|
8833 | cat >confdef2sed.sed <<\_ACEOF |
---|
8834 | s/[\\&,]/\\&/g |
---|
8835 | s,[\\$`],\\&,g |
---|
8836 | t clear |
---|
8837 | : clear |
---|
8838 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
8839 | t end |
---|
8840 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
8841 | : end |
---|
8842 | _ACEOF |
---|
8843 | # If some macros were called several times there might be several times |
---|
8844 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
8845 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
8846 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
8847 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
8848 | rm -f confdef2sed.sed |
---|
8849 | |
---|
8850 | # This sed command replaces #undef with comments. This is necessary, for |
---|
8851 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
8852 | # on some systems where configure will not decide to define it. |
---|
8853 | cat >>conftest.undefs <<\_ACEOF |
---|
8854 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
8855 | _ACEOF |
---|
8856 | |
---|
8857 | # Break up conftest.defines because some shells have a limit on the size |
---|
8858 | # of here documents, and old seds have small limits too (100 cmds). |
---|
8859 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
8860 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
8861 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
8862 | echo ' :' >>$CONFIG_STATUS |
---|
8863 | rm -f conftest.tail |
---|
8864 | while grep . conftest.defines >/dev/null |
---|
8865 | do |
---|
8866 | # Write a limited-size here document to $tmp/defines.sed. |
---|
8867 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
8868 | # Speed up: don't consider the non `#define' lines. |
---|
8869 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
8870 | # Work around the forget-to-reset-the-flag bug. |
---|
8871 | echo 't clr' >>$CONFIG_STATUS |
---|
8872 | echo ': clr' >>$CONFIG_STATUS |
---|
8873 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
8874 | echo 'CEOF |
---|
8875 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
8876 | rm -f $tmp/in |
---|
8877 | mv $tmp/out $tmp/in |
---|
8878 | ' >>$CONFIG_STATUS |
---|
8879 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
8880 | rm -f conftest.defines |
---|
8881 | mv conftest.tail conftest.defines |
---|
8882 | done |
---|
8883 | rm -f conftest.defines |
---|
8884 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
8885 | echo >>$CONFIG_STATUS |
---|
8886 | |
---|
8887 | # Break up conftest.undefs because some shells have a limit on the size |
---|
8888 | # of here documents, and old seds have small limits too (100 cmds). |
---|
8889 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
8890 | rm -f conftest.tail |
---|
8891 | while grep . conftest.undefs >/dev/null |
---|
8892 | do |
---|
8893 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
8894 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
8895 | # Speed up: don't consider the non `#undef' |
---|
8896 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
8897 | # Work around the forget-to-reset-the-flag bug. |
---|
8898 | echo 't clr' >>$CONFIG_STATUS |
---|
8899 | echo ': clr' >>$CONFIG_STATUS |
---|
8900 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
8901 | echo 'CEOF |
---|
8902 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
8903 | rm -f $tmp/in |
---|
8904 | mv $tmp/out $tmp/in |
---|
8905 | ' >>$CONFIG_STATUS |
---|
8906 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
8907 | rm -f conftest.undefs |
---|
8908 | mv conftest.tail conftest.undefs |
---|
8909 | done |
---|
8910 | rm -f conftest.undefs |
---|
8911 | |
---|
8912 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8913 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8914 | # use $as_me), people would be surprised to read: |
---|
8915 | # /* config.h. Generated by config.status. */ |
---|
8916 | if test x"$ac_file" = x-; then |
---|
8917 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
8918 | else |
---|
8919 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
8920 | fi |
---|
8921 | cat $tmp/in >>$tmp/config.h |
---|
8922 | rm -f $tmp/in |
---|
8923 | if test x"$ac_file" != x-; then |
---|
8924 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
8925 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
8926 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
8927 | else |
---|
8928 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8929 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8930 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8931 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8932 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8933 | . : '\(.\)' 2>/dev/null || |
---|
8934 | echo X"$ac_file" | |
---|
8935 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8936 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8937 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8938 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8939 | s/.*/./; q'` |
---|
8940 | { if $as_mkdir_p; then |
---|
8941 | mkdir -p "$ac_dir" |
---|
8942 | else |
---|
8943 | as_dir="$ac_dir" |
---|
8944 | as_dirs= |
---|
8945 | while test ! -d "$as_dir"; do |
---|
8946 | as_dirs="$as_dir $as_dirs" |
---|
8947 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8948 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8949 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8950 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8951 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8952 | . : '\(.\)' 2>/dev/null || |
---|
8953 | echo X"$as_dir" | |
---|
8954 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8955 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8956 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8957 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8958 | s/.*/./; q'` |
---|
8959 | done |
---|
8960 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8961 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8962 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8963 | { (exit 1); exit 1; }; }; } |
---|
8964 | |
---|
8965 | rm -f $ac_file |
---|
8966 | mv $tmp/config.h $ac_file |
---|
8967 | fi |
---|
8968 | else |
---|
8969 | cat $tmp/config.h |
---|
8970 | rm -f $tmp/config.h |
---|
8971 | fi |
---|
8972 | # Compute $ac_file's index in $config_headers. |
---|
8973 | _am_stamp_count=1 |
---|
8974 | for _am_header in $config_headers :; do |
---|
8975 | case $_am_header in |
---|
8976 | $ac_file | $ac_file:* ) |
---|
8977 | break ;; |
---|
8978 | * ) |
---|
8979 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
8980 | esac |
---|
8981 | done |
---|
8982 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
8983 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8984 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
8985 | X$ac_file : 'X\(//\)$' \| \ |
---|
8986 | X$ac_file : 'X\(/\)' \| \ |
---|
8987 | . : '\(.\)' 2>/dev/null || |
---|
8988 | echo X$ac_file | |
---|
8989 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8990 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8991 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8992 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8993 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
8994 | done |
---|
8995 | _ACEOF |
---|
8996 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8997 | |
---|
8998 | # |
---|
8999 | # CONFIG_COMMANDS section. |
---|
9000 | # |
---|
9001 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
9002 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
9003 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
9004 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
9005 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9006 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
9007 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
9008 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
9009 | . : '\(.\)' 2>/dev/null || |
---|
9010 | echo X"$ac_dest" | |
---|
9011 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9012 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9013 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9014 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9015 | s/.*/./; q'` |
---|
9016 | { if $as_mkdir_p; then |
---|
9017 | mkdir -p "$ac_dir" |
---|
9018 | else |
---|
9019 | as_dir="$ac_dir" |
---|
9020 | as_dirs= |
---|
9021 | while test ! -d "$as_dir"; do |
---|
9022 | as_dirs="$as_dir $as_dirs" |
---|
9023 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9024 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9025 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9026 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9027 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9028 | . : '\(.\)' 2>/dev/null || |
---|
9029 | echo X"$as_dir" | |
---|
9030 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9031 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9032 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9033 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9034 | s/.*/./; q'` |
---|
9035 | done |
---|
9036 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9037 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
9038 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
9039 | { (exit 1); exit 1; }; }; } |
---|
9040 | |
---|
9041 | ac_builddir=. |
---|
9042 | |
---|
9043 | if test "$ac_dir" != .; then |
---|
9044 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
9045 | # A "../" for each directory in $ac_dir_suffix. |
---|
9046 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
9047 | else |
---|
9048 | ac_dir_suffix= ac_top_builddir= |
---|
9049 | fi |
---|
9050 | |
---|
9051 | case $srcdir in |
---|
9052 | .) # No --srcdir option. We are building in place. |
---|
9053 | ac_srcdir=. |
---|
9054 | if test -z "$ac_top_builddir"; then |
---|
9055 | ac_top_srcdir=. |
---|
9056 | else |
---|
9057 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
9058 | fi ;; |
---|
9059 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
9060 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
9061 | ac_top_srcdir=$srcdir ;; |
---|
9062 | *) # Relative path. |
---|
9063 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
9064 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
9065 | esac |
---|
9066 | |
---|
9067 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
9068 | # the directories may not exist. |
---|
9069 | case `pwd` in |
---|
9070 | .) ac_abs_builddir="$ac_dir";; |
---|
9071 | *) |
---|
9072 | case "$ac_dir" in |
---|
9073 | .) ac_abs_builddir=`pwd`;; |
---|
9074 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
9075 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
9076 | esac;; |
---|
9077 | esac |
---|
9078 | case $ac_abs_builddir in |
---|
9079 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9080 | *) |
---|
9081 | case ${ac_top_builddir}. in |
---|
9082 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
9083 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9084 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
9085 | esac;; |
---|
9086 | esac |
---|
9087 | case $ac_abs_builddir in |
---|
9088 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
9089 | *) |
---|
9090 | case $ac_srcdir in |
---|
9091 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
9092 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
9093 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
9094 | esac;; |
---|
9095 | esac |
---|
9096 | case $ac_abs_builddir in |
---|
9097 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9098 | *) |
---|
9099 | case $ac_top_srcdir in |
---|
9100 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
9101 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9102 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
9103 | esac;; |
---|
9104 | esac |
---|
9105 | |
---|
9106 | |
---|
9107 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
9108 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
9109 | case $ac_dest in |
---|
9110 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
9111 | # Strip MF so we end up with the name of the file. |
---|
9112 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
9113 | # Check whether this is an Automake generated Makefile or not. |
---|
9114 | # We used to match only the files named `Makefile.in', but |
---|
9115 | # some people rename them; so instead we look at the file content. |
---|
9116 | # Grep'ing the first line is not enough: some people post-process |
---|
9117 | # each Makefile.in and add a new line on top of each file to say so. |
---|
9118 | # So let's grep whole file. |
---|
9119 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
9120 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
9121 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9122 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
9123 | X"$mf" : 'X\(//\)$' \| \ |
---|
9124 | X"$mf" : 'X\(/\)' \| \ |
---|
9125 | . : '\(.\)' 2>/dev/null || |
---|
9126 | echo X"$mf" | |
---|
9127 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9128 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9129 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9130 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9131 | s/.*/./; q'` |
---|
9132 | else |
---|
9133 | continue |
---|
9134 | fi |
---|
9135 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
9136 | # Extract the definition of DEP_FILES from the Makefile without |
---|
9137 | # running `make'. |
---|
9138 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
9139 | test -z "$DEPDIR" && continue |
---|
9140 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
9141 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
9142 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
9143 | # We invoke sed twice because it is the simplest approach to |
---|
9144 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
9145 | for file in `sed -n ' |
---|
9146 | /^DEP_FILES = .*\\\\$/ { |
---|
9147 | s/^DEP_FILES = // |
---|
9148 | :loop |
---|
9149 | s/\\\\$// |
---|
9150 | p |
---|
9151 | n |
---|
9152 | /\\\\$/ b loop |
---|
9153 | p |
---|
9154 | } |
---|
9155 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
9156 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
9157 | # Make sure the directory exists. |
---|
9158 | test -f "$dirpart/$file" && continue |
---|
9159 | fdir=`(dirname "$file") 2>/dev/null || |
---|
9160 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9161 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
9162 | X"$file" : 'X\(//\)$' \| \ |
---|
9163 | X"$file" : 'X\(/\)' \| \ |
---|
9164 | . : '\(.\)' 2>/dev/null || |
---|
9165 | echo X"$file" | |
---|
9166 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9167 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9168 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9169 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9170 | s/.*/./; q'` |
---|
9171 | { if $as_mkdir_p; then |
---|
9172 | mkdir -p $dirpart/$fdir |
---|
9173 | else |
---|
9174 | as_dir=$dirpart/$fdir |
---|
9175 | as_dirs= |
---|
9176 | while test ! -d "$as_dir"; do |
---|
9177 | as_dirs="$as_dir $as_dirs" |
---|
9178 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9179 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9180 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9181 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9182 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9183 | . : '\(.\)' 2>/dev/null || |
---|
9184 | echo X"$as_dir" | |
---|
9185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9186 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9187 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9188 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9189 | s/.*/./; q'` |
---|
9190 | done |
---|
9191 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9192 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
9193 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
9194 | { (exit 1); exit 1; }; }; } |
---|
9195 | |
---|
9196 | # echo "creating $dirpart/$file" |
---|
9197 | echo '# dummy' > "$dirpart/$file" |
---|
9198 | done |
---|
9199 | done |
---|
9200 | ;; |
---|
9201 | esac |
---|
9202 | done |
---|
9203 | _ACEOF |
---|
9204 | |
---|
9205 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9206 | |
---|
9207 | { (exit 0); exit 0; } |
---|
9208 | _ACEOF |
---|
9209 | chmod +x $CONFIG_STATUS |
---|
9210 | ac_clean_files=$ac_clean_files_save |
---|
9211 | |
---|
9212 | |
---|
9213 | # configure is writing to config.log, and then calls config.status. |
---|
9214 | # config.status does its own redirection, appending to config.log. |
---|
9215 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
9216 | # by configure, so config.status won't be able to write to it; its |
---|
9217 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
9218 | # effectively closing config.log, so it can be properly (re)opened and |
---|
9219 | # appended to by config.status. When coming back to configure, we |
---|
9220 | # need to make the FD available again. |
---|
9221 | if test "$no_create" != yes; then |
---|
9222 | ac_cs_success=: |
---|
9223 | ac_config_status_args= |
---|
9224 | test "$silent" = yes && |
---|
9225 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
9226 | exec 5>/dev/null |
---|
9227 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
9228 | exec 5>>config.log |
---|
9229 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
9230 | # would make configure fail if this is the last instruction. |
---|
9231 | $ac_cs_success || { (exit 1); exit 1; } |
---|
9232 | fi |
---|
9233 | |
---|