1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.1-pre-alpha. |
---|
4 | # |
---|
5 | # Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | ## --------------------- ## |
---|
11 | ## M4sh Initialization. ## |
---|
12 | ## --------------------- ## |
---|
13 | |
---|
14 | # Be Bourne compatible |
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
16 | emulate sh |
---|
17 | NULLCMD=: |
---|
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
19 | # is contrary to our usage. Disable this feature. |
---|
20 | alias -g '${1+"$@"}'='"$@"' |
---|
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
22 | set -o posix |
---|
23 | fi |
---|
24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
25 | |
---|
26 | # Support unset when possible. |
---|
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
28 | as_unset=unset |
---|
29 | else |
---|
30 | as_unset=false |
---|
31 | fi |
---|
32 | |
---|
33 | |
---|
34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
35 | $as_unset ENV MAIL MAILPATH |
---|
36 | PS1='$ ' |
---|
37 | PS2='> ' |
---|
38 | PS4='+ ' |
---|
39 | |
---|
40 | # NLS nuisances. |
---|
41 | for as_var in \ |
---|
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
44 | LC_TELEPHONE LC_TIME |
---|
45 | do |
---|
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
47 | eval $as_var=C; export $as_var |
---|
48 | else |
---|
49 | $as_unset $as_var |
---|
50 | fi |
---|
51 | done |
---|
52 | |
---|
53 | # Required to use basename. |
---|
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
55 | as_expr=expr |
---|
56 | else |
---|
57 | as_expr=false |
---|
58 | fi |
---|
59 | |
---|
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
61 | as_basename=basename |
---|
62 | else |
---|
63 | as_basename=false |
---|
64 | fi |
---|
65 | |
---|
66 | |
---|
67 | # Name of the executable. |
---|
68 | as_me=`$as_basename "$0" || |
---|
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
70 | X"$0" : 'X\(//\)$' \| \ |
---|
71 | X"$0" : 'X\(/\)$' \| \ |
---|
72 | . : '\(.\)' 2>/dev/null || |
---|
73 | echo X/"$0" | |
---|
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
77 | s/.*/./; q'` |
---|
78 | |
---|
79 | |
---|
80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
81 | # Avoid depending upon Character Ranges. |
---|
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
85 | as_cr_digits='0123456789' |
---|
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
87 | |
---|
88 | # The user is always right. |
---|
89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
90 | echo "#! /bin/sh" >conf$$.sh |
---|
91 | echo "exit 0" >>conf$$.sh |
---|
92 | chmod +x conf$$.sh |
---|
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
94 | PATH_SEPARATOR=';' |
---|
95 | else |
---|
96 | PATH_SEPARATOR=: |
---|
97 | fi |
---|
98 | rm -f conf$$.sh |
---|
99 | fi |
---|
100 | |
---|
101 | |
---|
102 | as_lineno_1=$LINENO |
---|
103 | as_lineno_2=$LINENO |
---|
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
107 | # Find who we are. Look in the path if we contain no path at all |
---|
108 | # relative or not. |
---|
109 | case $0 in |
---|
110 | *[\\/]* ) as_myself=$0 ;; |
---|
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
112 | for as_dir in $PATH |
---|
113 | do |
---|
114 | IFS=$as_save_IFS |
---|
115 | test -z "$as_dir" && as_dir=. |
---|
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
117 | done |
---|
118 | |
---|
119 | ;; |
---|
120 | esac |
---|
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
122 | # in which case we are not to be found in the path. |
---|
123 | if test "x$as_myself" = x; then |
---|
124 | as_myself=$0 |
---|
125 | fi |
---|
126 | if test ! -f "$as_myself"; then |
---|
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
128 | { (exit 1); exit 1; }; } |
---|
129 | fi |
---|
130 | case $CONFIG_SHELL in |
---|
131 | '') |
---|
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
134 | do |
---|
135 | IFS=$as_save_IFS |
---|
136 | test -z "$as_dir" && as_dir=. |
---|
137 | for as_base in sh bash ksh sh5; do |
---|
138 | case $as_dir in |
---|
139 | /*) |
---|
140 | if ("$as_dir/$as_base" -c ' |
---|
141 | as_lineno_1=$LINENO |
---|
142 | as_lineno_2=$LINENO |
---|
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
148 | CONFIG_SHELL=$as_dir/$as_base |
---|
149 | export CONFIG_SHELL |
---|
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
151 | fi;; |
---|
152 | esac |
---|
153 | done |
---|
154 | done |
---|
155 | ;; |
---|
156 | esac |
---|
157 | |
---|
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
160 | # line-number line before each line; the second 'sed' does the real |
---|
161 | # work. The second script uses 'N' to pair each line-number line |
---|
162 | # with the numbered line, and appends trailing '-' during |
---|
163 | # substitution so that $LINENO is not a special case at line end. |
---|
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
166 | sed '=' <$as_myself | |
---|
167 | sed ' |
---|
168 | N |
---|
169 | s,$,-, |
---|
170 | : loop |
---|
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
172 | t loop |
---|
173 | s,-$,, |
---|
174 | s,^['$as_cr_digits']*\n,, |
---|
175 | ' >$as_me.lineno && |
---|
176 | chmod +x $as_me.lineno || |
---|
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
178 | { (exit 1); exit 1; }; } |
---|
179 | |
---|
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
181 | # (the dirname of $[0] is not the place where we might find the |
---|
182 | # original and so on. Autoconf is especially sensible to this). |
---|
183 | . ./$as_me.lineno |
---|
184 | # Exit status is that of the last command. |
---|
185 | exit |
---|
186 | } |
---|
187 | |
---|
188 | |
---|
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
191 | ' ECHO_T=' ' ;; |
---|
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
194 | esac |
---|
195 | |
---|
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
197 | as_expr=expr |
---|
198 | else |
---|
199 | as_expr=false |
---|
200 | fi |
---|
201 | |
---|
202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
203 | echo >conf$$.file |
---|
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
207 | if test -f conf$$.exe; then |
---|
208 | # Don't use ln at all; we don't have any links |
---|
209 | as_ln_s='cp -p' |
---|
210 | else |
---|
211 | as_ln_s='ln -s' |
---|
212 | fi |
---|
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
214 | as_ln_s=ln |
---|
215 | else |
---|
216 | as_ln_s='cp -p' |
---|
217 | fi |
---|
218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
219 | |
---|
220 | if mkdir -p . 2>/dev/null; then |
---|
221 | as_mkdir_p=: |
---|
222 | else |
---|
223 | test -d ./-p && rmdir ./-p |
---|
224 | as_mkdir_p=false |
---|
225 | fi |
---|
226 | |
---|
227 | as_executable_p="test -f" |
---|
228 | |
---|
229 | # Sed expression to map a string onto a valid CPP name. |
---|
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
231 | |
---|
232 | # Sed expression to map a string onto a valid variable name. |
---|
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
234 | |
---|
235 | |
---|
236 | # IFS |
---|
237 | # We need space, tab and new line, in precisely that order. |
---|
238 | as_nl=' |
---|
239 | ' |
---|
240 | IFS=" $as_nl" |
---|
241 | |
---|
242 | # CDPATH. |
---|
243 | $as_unset CDPATH |
---|
244 | |
---|
245 | |
---|
246 | # Name of the host. |
---|
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
248 | # so uname gets run too. |
---|
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
250 | |
---|
251 | exec 6>&1 |
---|
252 | |
---|
253 | # |
---|
254 | # Initializations. |
---|
255 | # |
---|
256 | ac_default_prefix=/usr/local |
---|
257 | ac_config_libobj_dir=. |
---|
258 | cross_compiling=no |
---|
259 | subdirs= |
---|
260 | MFLAGS= |
---|
261 | MAKEFLAGS= |
---|
262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
263 | |
---|
264 | # Maximum number of lines to put in a shell here document. |
---|
265 | # This variable seems obsolete. It should probably be removed, and |
---|
266 | # only ac_max_sed_lines should be used. |
---|
267 | : ${ac_max_here_lines=38} |
---|
268 | |
---|
269 | # Identity of this package. |
---|
270 | PACKAGE_NAME='orxonox' |
---|
271 | PACKAGE_TARNAME='orxonox' |
---|
272 | PACKAGE_VERSION='0.2.1-pre-alpha' |
---|
273 | PACKAGE_STRING='orxonox 0.2.1-pre-alpha' |
---|
274 | PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch' |
---|
275 | |
---|
276 | ac_unique_file="." |
---|
277 | # Factoring default headers for most tests. |
---|
278 | ac_includes_default="\ |
---|
279 | #include <stdio.h> |
---|
280 | #if HAVE_SYS_TYPES_H |
---|
281 | # include <sys/types.h> |
---|
282 | #endif |
---|
283 | #if HAVE_SYS_STAT_H |
---|
284 | # include <sys/stat.h> |
---|
285 | #endif |
---|
286 | #if STDC_HEADERS |
---|
287 | # include <stdlib.h> |
---|
288 | # include <stddef.h> |
---|
289 | #else |
---|
290 | # if HAVE_STDLIB_H |
---|
291 | # include <stdlib.h> |
---|
292 | # endif |
---|
293 | #endif |
---|
294 | #if HAVE_STRING_H |
---|
295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
296 | # include <memory.h> |
---|
297 | # endif |
---|
298 | # include <string.h> |
---|
299 | #endif |
---|
300 | #if HAVE_STRINGS_H |
---|
301 | # include <strings.h> |
---|
302 | #endif |
---|
303 | #if HAVE_INTTYPES_H |
---|
304 | # include <inttypes.h> |
---|
305 | #else |
---|
306 | # if HAVE_STDINT_H |
---|
307 | # include <stdint.h> |
---|
308 | # endif |
---|
309 | #endif |
---|
310 | #if HAVE_UNISTD_H |
---|
311 | # include <unistd.h> |
---|
312 | #endif" |
---|
313 | |
---|
314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS' |
---|
315 | ac_subst_files='' |
---|
316 | |
---|
317 | # Initialize some variables set by options. |
---|
318 | ac_init_help= |
---|
319 | ac_init_version=false |
---|
320 | # The variables have the same names as the options, with |
---|
321 | # dashes changed to underlines. |
---|
322 | cache_file=/dev/null |
---|
323 | exec_prefix=NONE |
---|
324 | no_create= |
---|
325 | no_recursion= |
---|
326 | prefix=NONE |
---|
327 | program_prefix=NONE |
---|
328 | program_suffix=NONE |
---|
329 | program_transform_name=s,x,x, |
---|
330 | silent= |
---|
331 | site= |
---|
332 | srcdir= |
---|
333 | verbose= |
---|
334 | x_includes=NONE |
---|
335 | x_libraries=NONE |
---|
336 | |
---|
337 | # Installation directory options. |
---|
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
339 | # and all the variables that are supposed to be based on exec_prefix |
---|
340 | # by default will actually change. |
---|
341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
342 | bindir='${exec_prefix}/bin' |
---|
343 | sbindir='${exec_prefix}/sbin' |
---|
344 | libexecdir='${exec_prefix}/libexec' |
---|
345 | datadir='${prefix}/share' |
---|
346 | sysconfdir='${prefix}/etc' |
---|
347 | sharedstatedir='${prefix}/com' |
---|
348 | localstatedir='${prefix}/var' |
---|
349 | libdir='${exec_prefix}/lib' |
---|
350 | includedir='${prefix}/include' |
---|
351 | oldincludedir='/usr/include' |
---|
352 | infodir='${prefix}/info' |
---|
353 | mandir='${prefix}/man' |
---|
354 | |
---|
355 | ac_prev= |
---|
356 | for ac_option |
---|
357 | do |
---|
358 | # If the previous option needs an argument, assign it. |
---|
359 | if test -n "$ac_prev"; then |
---|
360 | eval "$ac_prev=\$ac_option" |
---|
361 | ac_prev= |
---|
362 | continue |
---|
363 | fi |
---|
364 | |
---|
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
366 | |
---|
367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
368 | |
---|
369 | case $ac_option in |
---|
370 | |
---|
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
372 | ac_prev=bindir ;; |
---|
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
374 | bindir=$ac_optarg ;; |
---|
375 | |
---|
376 | -build | --build | --buil | --bui | --bu) |
---|
377 | ac_prev=build_alias ;; |
---|
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
379 | build_alias=$ac_optarg ;; |
---|
380 | |
---|
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
383 | ac_prev=cache_file ;; |
---|
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
386 | cache_file=$ac_optarg ;; |
---|
387 | |
---|
388 | --config-cache | -C) |
---|
389 | cache_file=config.cache ;; |
---|
390 | |
---|
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
392 | ac_prev=datadir ;; |
---|
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
394 | | --da=*) |
---|
395 | datadir=$ac_optarg ;; |
---|
396 | |
---|
397 | -disable-* | --disable-*) |
---|
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
399 | # Reject names that are not valid shell variable names. |
---|
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
402 | { (exit 1); exit 1; }; } |
---|
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
404 | eval "enable_$ac_feature=no" ;; |
---|
405 | |
---|
406 | -enable-* | --enable-*) |
---|
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
408 | # Reject names that are not valid shell variable names. |
---|
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
411 | { (exit 1); exit 1; }; } |
---|
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
413 | case $ac_option in |
---|
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
415 | *) ac_optarg=yes ;; |
---|
416 | esac |
---|
417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
418 | |
---|
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
421 | | --exec | --exe | --ex) |
---|
422 | ac_prev=exec_prefix ;; |
---|
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
425 | | --exec=* | --exe=* | --ex=*) |
---|
426 | exec_prefix=$ac_optarg ;; |
---|
427 | |
---|
428 | -gas | --gas | --ga | --g) |
---|
429 | # Obsolete; use --with-gas. |
---|
430 | with_gas=yes ;; |
---|
431 | |
---|
432 | -help | --help | --hel | --he | -h) |
---|
433 | ac_init_help=long ;; |
---|
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
435 | ac_init_help=recursive ;; |
---|
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
437 | ac_init_help=short ;; |
---|
438 | |
---|
439 | -host | --host | --hos | --ho) |
---|
440 | ac_prev=host_alias ;; |
---|
441 | -host=* | --host=* | --hos=* | --ho=*) |
---|
442 | host_alias=$ac_optarg ;; |
---|
443 | |
---|
444 | -includedir | --includedir | --includedi | --included | --include \ |
---|
445 | | --includ | --inclu | --incl | --inc) |
---|
446 | ac_prev=includedir ;; |
---|
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
449 | includedir=$ac_optarg ;; |
---|
450 | |
---|
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
452 | ac_prev=infodir ;; |
---|
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
454 | infodir=$ac_optarg ;; |
---|
455 | |
---|
456 | -libdir | --libdir | --libdi | --libd) |
---|
457 | ac_prev=libdir ;; |
---|
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
459 | libdir=$ac_optarg ;; |
---|
460 | |
---|
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
462 | | --libexe | --libex | --libe) |
---|
463 | ac_prev=libexecdir ;; |
---|
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
465 | | --libexe=* | --libex=* | --libe=*) |
---|
466 | libexecdir=$ac_optarg ;; |
---|
467 | |
---|
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
469 | | --localstate | --localstat | --localsta | --localst \ |
---|
470 | | --locals | --local | --loca | --loc | --lo) |
---|
471 | ac_prev=localstatedir ;; |
---|
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
475 | localstatedir=$ac_optarg ;; |
---|
476 | |
---|
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
478 | ac_prev=mandir ;; |
---|
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
480 | mandir=$ac_optarg ;; |
---|
481 | |
---|
482 | -nfp | --nfp | --nf) |
---|
483 | # Obsolete; use --without-fp. |
---|
484 | with_fp=no ;; |
---|
485 | |
---|
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
487 | | --no-cr | --no-c | -n) |
---|
488 | no_create=yes ;; |
---|
489 | |
---|
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
492 | no_recursion=yes ;; |
---|
493 | |
---|
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
496 | | --oldin | --oldi | --old | --ol | --o) |
---|
497 | ac_prev=oldincludedir ;; |
---|
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
501 | oldincludedir=$ac_optarg ;; |
---|
502 | |
---|
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
504 | ac_prev=prefix ;; |
---|
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
506 | prefix=$ac_optarg ;; |
---|
507 | |
---|
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
509 | | --program-pre | --program-pr | --program-p) |
---|
510 | ac_prev=program_prefix ;; |
---|
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
513 | program_prefix=$ac_optarg ;; |
---|
514 | |
---|
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
516 | | --program-suf | --program-su | --program-s) |
---|
517 | ac_prev=program_suffix ;; |
---|
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
520 | program_suffix=$ac_optarg ;; |
---|
521 | |
---|
522 | -program-transform-name | --program-transform-name \ |
---|
523 | | --program-transform-nam | --program-transform-na \ |
---|
524 | | --program-transform-n | --program-transform- \ |
---|
525 | | --program-transform | --program-transfor \ |
---|
526 | | --program-transfo | --program-transf \ |
---|
527 | | --program-trans | --program-tran \ |
---|
528 | | --progr-tra | --program-tr | --program-t) |
---|
529 | ac_prev=program_transform_name ;; |
---|
530 | -program-transform-name=* | --program-transform-name=* \ |
---|
531 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
532 | | --program-transform-n=* | --program-transform-=* \ |
---|
533 | | --program-transform=* | --program-transfor=* \ |
---|
534 | | --program-transfo=* | --program-transf=* \ |
---|
535 | | --program-trans=* | --program-tran=* \ |
---|
536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
537 | program_transform_name=$ac_optarg ;; |
---|
538 | |
---|
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
540 | | -silent | --silent | --silen | --sile | --sil) |
---|
541 | silent=yes ;; |
---|
542 | |
---|
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
544 | ac_prev=sbindir ;; |
---|
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
546 | | --sbi=* | --sb=*) |
---|
547 | sbindir=$ac_optarg ;; |
---|
548 | |
---|
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
551 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
552 | | --sha | --sh) |
---|
553 | ac_prev=sharedstatedir ;; |
---|
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
557 | | --sha=* | --sh=*) |
---|
558 | sharedstatedir=$ac_optarg ;; |
---|
559 | |
---|
560 | -site | --site | --sit) |
---|
561 | ac_prev=site ;; |
---|
562 | -site=* | --site=* | --sit=*) |
---|
563 | site=$ac_optarg ;; |
---|
564 | |
---|
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
566 | ac_prev=srcdir ;; |
---|
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
568 | srcdir=$ac_optarg ;; |
---|
569 | |
---|
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
571 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
572 | ac_prev=sysconfdir ;; |
---|
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
575 | sysconfdir=$ac_optarg ;; |
---|
576 | |
---|
577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
578 | ac_prev=target_alias ;; |
---|
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
580 | target_alias=$ac_optarg ;; |
---|
581 | |
---|
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
583 | verbose=yes ;; |
---|
584 | |
---|
585 | -version | --version | --versio | --versi | --vers | -V) |
---|
586 | ac_init_version=: ;; |
---|
587 | |
---|
588 | -with-* | --with-*) |
---|
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
590 | # Reject names that are not valid shell variable names. |
---|
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
593 | { (exit 1); exit 1; }; } |
---|
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
595 | case $ac_option in |
---|
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
597 | *) ac_optarg=yes ;; |
---|
598 | esac |
---|
599 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
600 | |
---|
601 | -without-* | --without-*) |
---|
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
603 | # Reject names that are not valid shell variable names. |
---|
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
606 | { (exit 1); exit 1; }; } |
---|
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
608 | eval "with_$ac_package=no" ;; |
---|
609 | |
---|
610 | --x) |
---|
611 | # Obsolete; use --with-x. |
---|
612 | with_x=yes ;; |
---|
613 | |
---|
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
615 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
616 | ac_prev=x_includes ;; |
---|
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
619 | x_includes=$ac_optarg ;; |
---|
620 | |
---|
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
623 | ac_prev=x_libraries ;; |
---|
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
626 | x_libraries=$ac_optarg ;; |
---|
627 | |
---|
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
629 | Try \`$0 --help' for more information." >&2 |
---|
630 | { (exit 1); exit 1; }; } |
---|
631 | ;; |
---|
632 | |
---|
633 | *=*) |
---|
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
635 | # Reject names that are not valid shell variable names. |
---|
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
638 | { (exit 1); exit 1; }; } |
---|
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
640 | eval "$ac_envvar='$ac_optarg'" |
---|
641 | export $ac_envvar ;; |
---|
642 | |
---|
643 | *) |
---|
644 | # FIXME: should be removed in autoconf 3.0. |
---|
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
649 | ;; |
---|
650 | |
---|
651 | esac |
---|
652 | done |
---|
653 | |
---|
654 | if test -n "$ac_prev"; then |
---|
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
657 | { (exit 1); exit 1; }; } |
---|
658 | fi |
---|
659 | |
---|
660 | # Be sure to have absolute paths. |
---|
661 | for ac_var in exec_prefix prefix |
---|
662 | do |
---|
663 | eval ac_val=$`echo $ac_var` |
---|
664 | case $ac_val in |
---|
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
667 | { (exit 1); exit 1; }; };; |
---|
668 | esac |
---|
669 | done |
---|
670 | |
---|
671 | # Be sure to have absolute paths. |
---|
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
673 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
674 | do |
---|
675 | eval ac_val=$`echo $ac_var` |
---|
676 | case $ac_val in |
---|
677 | [\\/$]* | ?:[\\/]* ) ;; |
---|
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
679 | { (exit 1); exit 1; }; };; |
---|
680 | esac |
---|
681 | done |
---|
682 | |
---|
683 | # There might be people who depend on the old broken behavior: `$host' |
---|
684 | # used to hold the argument of --host etc. |
---|
685 | # FIXME: To remove some day. |
---|
686 | build=$build_alias |
---|
687 | host=$host_alias |
---|
688 | target=$target_alias |
---|
689 | |
---|
690 | # FIXME: To remove some day. |
---|
691 | if test "x$host_alias" != x; then |
---|
692 | if test "x$build_alias" = x; then |
---|
693 | cross_compiling=maybe |
---|
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
696 | elif test "x$build_alias" != "x$host_alias"; then |
---|
697 | cross_compiling=yes |
---|
698 | fi |
---|
699 | fi |
---|
700 | |
---|
701 | ac_tool_prefix= |
---|
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
703 | |
---|
704 | test "$silent" = yes && exec 6>/dev/null |
---|
705 | |
---|
706 | |
---|
707 | # Find the source files, if location was not specified. |
---|
708 | if test -z "$srcdir"; then |
---|
709 | ac_srcdir_defaulted=yes |
---|
710 | # Try the directory containing this script, then its parent. |
---|
711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
713 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
714 | X"$0" : 'X\(//\)$' \| \ |
---|
715 | X"$0" : 'X\(/\)' \| \ |
---|
716 | . : '\(.\)' 2>/dev/null || |
---|
717 | echo X"$0" | |
---|
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
722 | s/.*/./; q'` |
---|
723 | srcdir=$ac_confdir |
---|
724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
725 | srcdir=.. |
---|
726 | fi |
---|
727 | else |
---|
728 | ac_srcdir_defaulted=no |
---|
729 | fi |
---|
730 | if test ! -r $srcdir/$ac_unique_file; then |
---|
731 | if test "$ac_srcdir_defaulted" = yes; then |
---|
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
733 | { (exit 1); exit 1; }; } |
---|
734 | else |
---|
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
736 | { (exit 1); exit 1; }; } |
---|
737 | fi |
---|
738 | fi |
---|
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
741 | { (exit 1); exit 1; }; } |
---|
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
743 | ac_env_build_alias_set=${build_alias+set} |
---|
744 | ac_env_build_alias_value=$build_alias |
---|
745 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
746 | ac_cv_env_build_alias_value=$build_alias |
---|
747 | ac_env_host_alias_set=${host_alias+set} |
---|
748 | ac_env_host_alias_value=$host_alias |
---|
749 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
750 | ac_cv_env_host_alias_value=$host_alias |
---|
751 | ac_env_target_alias_set=${target_alias+set} |
---|
752 | ac_env_target_alias_value=$target_alias |
---|
753 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
754 | ac_cv_env_target_alias_value=$target_alias |
---|
755 | ac_env_CXX_set=${CXX+set} |
---|
756 | ac_env_CXX_value=$CXX |
---|
757 | ac_cv_env_CXX_set=${CXX+set} |
---|
758 | ac_cv_env_CXX_value=$CXX |
---|
759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
760 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
764 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
771 | ac_env_CC_set=${CC+set} |
---|
772 | ac_env_CC_value=$CC |
---|
773 | ac_cv_env_CC_set=${CC+set} |
---|
774 | ac_cv_env_CC_value=$CC |
---|
775 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
776 | ac_env_CFLAGS_value=$CFLAGS |
---|
777 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
778 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
779 | ac_env_CPP_set=${CPP+set} |
---|
780 | ac_env_CPP_value=$CPP |
---|
781 | ac_cv_env_CPP_set=${CPP+set} |
---|
782 | ac_cv_env_CPP_value=$CPP |
---|
783 | |
---|
784 | # |
---|
785 | # Report the --help message. |
---|
786 | # |
---|
787 | if test "$ac_init_help" = "long"; then |
---|
788 | # Omit some internal or obsolete options to make the list less imposing. |
---|
789 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
790 | cat <<_ACEOF |
---|
791 | \`configure' configures orxonox 0.2.1-pre-alpha to adapt to many kinds of systems. |
---|
792 | |
---|
793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
794 | |
---|
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
797 | |
---|
798 | Defaults for the options are specified in brackets. |
---|
799 | |
---|
800 | Configuration: |
---|
801 | -h, --help display this help and exit |
---|
802 | --help=short display options specific to this package |
---|
803 | --help=recursive display the short help of all the included packages |
---|
804 | -V, --version display version information and exit |
---|
805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
808 | -n, --no-create do not create output files |
---|
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
810 | |
---|
811 | _ACEOF |
---|
812 | |
---|
813 | cat <<_ACEOF |
---|
814 | Installation directories: |
---|
815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
816 | [$ac_default_prefix] |
---|
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
818 | [PREFIX] |
---|
819 | |
---|
820 | By default, \`make install' will install all the files in |
---|
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
823 | for instance \`--prefix=\$HOME'. |
---|
824 | |
---|
825 | For better control, use the options below. |
---|
826 | |
---|
827 | Fine tuning of the installation directories: |
---|
828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
836 | --includedir=DIR C header files [PREFIX/include] |
---|
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
838 | --infodir=DIR info documentation [PREFIX/info] |
---|
839 | --mandir=DIR man documentation [PREFIX/man] |
---|
840 | _ACEOF |
---|
841 | |
---|
842 | cat <<\_ACEOF |
---|
843 | |
---|
844 | Program names: |
---|
845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
848 | |
---|
849 | System types: |
---|
850 | --build=BUILD configure for building on BUILD [guessed] |
---|
851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
852 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
853 | _ACEOF |
---|
854 | fi |
---|
855 | |
---|
856 | if test -n "$ac_init_help"; then |
---|
857 | case $ac_init_help in |
---|
858 | short | recursive ) echo "Configuration of orxonox 0.2.1-pre-alpha:";; |
---|
859 | esac |
---|
860 | cat <<\_ACEOF |
---|
861 | |
---|
862 | Optional Features: |
---|
863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
865 | --disable-dependency-tracking speeds up one-time build |
---|
866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
868 | game. |
---|
869 | |
---|
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-curl Prevents libcURL from being loaded |
---|
875 | --without-sdl-image Prevents SDL_image from being loaded |
---|
876 | |
---|
877 | Some influential environment variables: |
---|
878 | CXX C++ compiler command |
---|
879 | CXXFLAGS C++ compiler flags |
---|
880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
881 | nonstandard directory <lib dir> |
---|
882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
883 | headers in a nonstandard directory <include dir> |
---|
884 | CC C compiler command |
---|
885 | CFLAGS C compiler flags |
---|
886 | CPP C preprocessor |
---|
887 | |
---|
888 | Use these variables to override the choices made by `configure' or to help |
---|
889 | it to find libraries and programs with nonstandard names/locations. |
---|
890 | |
---|
891 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
892 | _ACEOF |
---|
893 | fi |
---|
894 | |
---|
895 | if test "$ac_init_help" = "recursive"; then |
---|
896 | # If there are subdirs, report their specific --help. |
---|
897 | ac_popdir=`pwd` |
---|
898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
899 | test -d $ac_dir || continue |
---|
900 | ac_builddir=. |
---|
901 | |
---|
902 | if test "$ac_dir" != .; then |
---|
903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
904 | # A "../" for each directory in $ac_dir_suffix. |
---|
905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
906 | else |
---|
907 | ac_dir_suffix= ac_top_builddir= |
---|
908 | fi |
---|
909 | |
---|
910 | case $srcdir in |
---|
911 | .) # No --srcdir option. We are building in place. |
---|
912 | ac_srcdir=. |
---|
913 | if test -z "$ac_top_builddir"; then |
---|
914 | ac_top_srcdir=. |
---|
915 | else |
---|
916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
917 | fi ;; |
---|
918 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
919 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
920 | ac_top_srcdir=$srcdir ;; |
---|
921 | *) # Relative path. |
---|
922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
923 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
924 | esac |
---|
925 | |
---|
926 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
927 | # the directories may not exist. |
---|
928 | case `pwd` in |
---|
929 | .) ac_abs_builddir="$ac_dir";; |
---|
930 | *) |
---|
931 | case "$ac_dir" in |
---|
932 | .) ac_abs_builddir=`pwd`;; |
---|
933 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
934 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
935 | esac;; |
---|
936 | esac |
---|
937 | case $ac_abs_builddir in |
---|
938 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
939 | *) |
---|
940 | case ${ac_top_builddir}. in |
---|
941 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
942 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
943 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
944 | esac;; |
---|
945 | esac |
---|
946 | case $ac_abs_builddir in |
---|
947 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
948 | *) |
---|
949 | case $ac_srcdir in |
---|
950 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
951 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
952 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
953 | esac;; |
---|
954 | esac |
---|
955 | case $ac_abs_builddir in |
---|
956 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
957 | *) |
---|
958 | case $ac_top_srcdir in |
---|
959 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
960 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
961 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
962 | esac;; |
---|
963 | esac |
---|
964 | |
---|
965 | cd $ac_dir |
---|
966 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
967 | if test -f $ac_srcdir/configure.gnu; then |
---|
968 | echo |
---|
969 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
970 | elif test -f $ac_srcdir/configure; then |
---|
971 | echo |
---|
972 | $SHELL $ac_srcdir/configure --help=recursive |
---|
973 | elif test -f $ac_srcdir/configure.ac || |
---|
974 | test -f $ac_srcdir/configure.in; then |
---|
975 | echo |
---|
976 | $ac_configure --help |
---|
977 | else |
---|
978 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
979 | fi |
---|
980 | cd $ac_popdir |
---|
981 | done |
---|
982 | fi |
---|
983 | |
---|
984 | test -n "$ac_init_help" && exit 0 |
---|
985 | if $ac_init_version; then |
---|
986 | cat <<\_ACEOF |
---|
987 | orxonox configure 0.2.1-pre-alpha |
---|
988 | generated by GNU Autoconf 2.59 |
---|
989 | |
---|
990 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
991 | This configure script is free software; the Free Software Foundation |
---|
992 | gives unlimited permission to copy, distribute and modify it. |
---|
993 | _ACEOF |
---|
994 | exit 0 |
---|
995 | fi |
---|
996 | exec 5>config.log |
---|
997 | cat >&5 <<_ACEOF |
---|
998 | This file contains any messages produced by compilers while |
---|
999 | running configure, to aid debugging if configure makes a mistake. |
---|
1000 | |
---|
1001 | It was created by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
1002 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1003 | |
---|
1004 | $ $0 $@ |
---|
1005 | |
---|
1006 | _ACEOF |
---|
1007 | { |
---|
1008 | cat <<_ASUNAME |
---|
1009 | ## --------- ## |
---|
1010 | ## Platform. ## |
---|
1011 | ## --------- ## |
---|
1012 | |
---|
1013 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1014 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1015 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1016 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1017 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1018 | |
---|
1019 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1020 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1021 | |
---|
1022 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1023 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1024 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1025 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1026 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1027 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1028 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1029 | |
---|
1030 | _ASUNAME |
---|
1031 | |
---|
1032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1033 | for as_dir in $PATH |
---|
1034 | do |
---|
1035 | IFS=$as_save_IFS |
---|
1036 | test -z "$as_dir" && as_dir=. |
---|
1037 | echo "PATH: $as_dir" |
---|
1038 | done |
---|
1039 | |
---|
1040 | } >&5 |
---|
1041 | |
---|
1042 | cat >&5 <<_ACEOF |
---|
1043 | |
---|
1044 | |
---|
1045 | ## ----------- ## |
---|
1046 | ## Core tests. ## |
---|
1047 | ## ----------- ## |
---|
1048 | |
---|
1049 | _ACEOF |
---|
1050 | |
---|
1051 | |
---|
1052 | # Keep a trace of the command line. |
---|
1053 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1054 | # Strip out --silent because we don't want to record it for future runs. |
---|
1055 | # Also quote any args containing shell meta-characters. |
---|
1056 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1057 | ac_configure_args= |
---|
1058 | ac_configure_args0= |
---|
1059 | ac_configure_args1= |
---|
1060 | ac_sep= |
---|
1061 | ac_must_keep_next=false |
---|
1062 | for ac_pass in 1 2 |
---|
1063 | do |
---|
1064 | for ac_arg |
---|
1065 | do |
---|
1066 | case $ac_arg in |
---|
1067 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1069 | | -silent | --silent | --silen | --sile | --sil) |
---|
1070 | continue ;; |
---|
1071 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1072 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1073 | esac |
---|
1074 | case $ac_pass in |
---|
1075 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1076 | 2) |
---|
1077 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1078 | if test $ac_must_keep_next = true; then |
---|
1079 | ac_must_keep_next=false # Got value, back to normal. |
---|
1080 | else |
---|
1081 | case $ac_arg in |
---|
1082 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1083 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1084 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1085 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1086 | case "$ac_configure_args0 " in |
---|
1087 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1088 | esac |
---|
1089 | ;; |
---|
1090 | -* ) ac_must_keep_next=true ;; |
---|
1091 | esac |
---|
1092 | fi |
---|
1093 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1094 | # Get rid of the leading space. |
---|
1095 | ac_sep=" " |
---|
1096 | ;; |
---|
1097 | esac |
---|
1098 | done |
---|
1099 | done |
---|
1100 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1101 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1102 | |
---|
1103 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1104 | # config.log. We remove comments because anyway the quotes in there |
---|
1105 | # would cause problems or look ugly. |
---|
1106 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1107 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1108 | trap 'exit_status=$? |
---|
1109 | # Save into config.log some information that might help in debugging. |
---|
1110 | { |
---|
1111 | echo |
---|
1112 | |
---|
1113 | cat <<\_ASBOX |
---|
1114 | ## ---------------- ## |
---|
1115 | ## Cache variables. ## |
---|
1116 | ## ---------------- ## |
---|
1117 | _ASBOX |
---|
1118 | echo |
---|
1119 | # The following way of writing the cache mishandles newlines in values, |
---|
1120 | { |
---|
1121 | (set) 2>&1 | |
---|
1122 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1123 | *ac_space=\ *) |
---|
1124 | sed -n \ |
---|
1125 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1126 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1127 | ;; |
---|
1128 | *) |
---|
1129 | sed -n \ |
---|
1130 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1131 | ;; |
---|
1132 | esac; |
---|
1133 | } |
---|
1134 | echo |
---|
1135 | |
---|
1136 | cat <<\_ASBOX |
---|
1137 | ## ----------------- ## |
---|
1138 | ## Output variables. ## |
---|
1139 | ## ----------------- ## |
---|
1140 | _ASBOX |
---|
1141 | echo |
---|
1142 | for ac_var in $ac_subst_vars |
---|
1143 | do |
---|
1144 | eval ac_val=$`echo $ac_var` |
---|
1145 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1146 | done | sort |
---|
1147 | echo |
---|
1148 | |
---|
1149 | if test -n "$ac_subst_files"; then |
---|
1150 | cat <<\_ASBOX |
---|
1151 | ## ------------- ## |
---|
1152 | ## Output files. ## |
---|
1153 | ## ------------- ## |
---|
1154 | _ASBOX |
---|
1155 | echo |
---|
1156 | for ac_var in $ac_subst_files |
---|
1157 | do |
---|
1158 | eval ac_val=$`echo $ac_var` |
---|
1159 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1160 | done | sort |
---|
1161 | echo |
---|
1162 | fi |
---|
1163 | |
---|
1164 | if test -s confdefs.h; then |
---|
1165 | cat <<\_ASBOX |
---|
1166 | ## ----------- ## |
---|
1167 | ## confdefs.h. ## |
---|
1168 | ## ----------- ## |
---|
1169 | _ASBOX |
---|
1170 | echo |
---|
1171 | sed "/^$/d" confdefs.h | sort |
---|
1172 | echo |
---|
1173 | fi |
---|
1174 | test "$ac_signal" != 0 && |
---|
1175 | echo "$as_me: caught signal $ac_signal" |
---|
1176 | echo "$as_me: exit $exit_status" |
---|
1177 | } >&5 |
---|
1178 | rm -f core *.core && |
---|
1179 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1180 | exit $exit_status |
---|
1181 | ' 0 |
---|
1182 | for ac_signal in 1 2 13 15; do |
---|
1183 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1184 | done |
---|
1185 | ac_signal=0 |
---|
1186 | |
---|
1187 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1188 | rm -rf conftest* confdefs.h |
---|
1189 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1190 | echo >confdefs.h |
---|
1191 | |
---|
1192 | # Predefined preprocessor variables. |
---|
1193 | |
---|
1194 | cat >>confdefs.h <<_ACEOF |
---|
1195 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1196 | _ACEOF |
---|
1197 | |
---|
1198 | |
---|
1199 | cat >>confdefs.h <<_ACEOF |
---|
1200 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1201 | _ACEOF |
---|
1202 | |
---|
1203 | |
---|
1204 | cat >>confdefs.h <<_ACEOF |
---|
1205 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1206 | _ACEOF |
---|
1207 | |
---|
1208 | |
---|
1209 | cat >>confdefs.h <<_ACEOF |
---|
1210 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1211 | _ACEOF |
---|
1212 | |
---|
1213 | |
---|
1214 | cat >>confdefs.h <<_ACEOF |
---|
1215 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1216 | _ACEOF |
---|
1217 | |
---|
1218 | |
---|
1219 | # Let the site file select an alternate cache file if it wants to. |
---|
1220 | # Prefer explicitly selected file to automatically selected ones. |
---|
1221 | if test -z "$CONFIG_SITE"; then |
---|
1222 | if test "x$prefix" != xNONE; then |
---|
1223 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1224 | else |
---|
1225 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1226 | fi |
---|
1227 | fi |
---|
1228 | for ac_site_file in $CONFIG_SITE; do |
---|
1229 | if test -r "$ac_site_file"; then |
---|
1230 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1231 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1232 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1233 | . "$ac_site_file" |
---|
1234 | fi |
---|
1235 | done |
---|
1236 | |
---|
1237 | if test -r "$cache_file"; then |
---|
1238 | # Some versions of bash will fail to source /dev/null (special |
---|
1239 | # files actually), so we avoid doing that. |
---|
1240 | if test -f "$cache_file"; then |
---|
1241 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1242 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1243 | case $cache_file in |
---|
1244 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1245 | *) . ./$cache_file;; |
---|
1246 | esac |
---|
1247 | fi |
---|
1248 | else |
---|
1249 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1250 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1251 | >$cache_file |
---|
1252 | fi |
---|
1253 | |
---|
1254 | # Check that the precious variables saved in the cache have kept the same |
---|
1255 | # value. |
---|
1256 | ac_cache_corrupted=false |
---|
1257 | for ac_var in `(set) 2>&1 | |
---|
1258 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1259 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1260 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1261 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1262 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1263 | case $ac_old_set,$ac_new_set in |
---|
1264 | set,) |
---|
1265 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1266 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1267 | ac_cache_corrupted=: ;; |
---|
1268 | ,set) |
---|
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1270 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1271 | ac_cache_corrupted=: ;; |
---|
1272 | ,);; |
---|
1273 | *) |
---|
1274 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1275 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1276 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1277 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1278 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1279 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1280 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1281 | ac_cache_corrupted=: |
---|
1282 | fi;; |
---|
1283 | esac |
---|
1284 | # Pass precious variables to config.status. |
---|
1285 | if test "$ac_new_set" = set; then |
---|
1286 | case $ac_new_val in |
---|
1287 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1288 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1289 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1290 | esac |
---|
1291 | case " $ac_configure_args " in |
---|
1292 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1293 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1294 | esac |
---|
1295 | fi |
---|
1296 | done |
---|
1297 | if $ac_cache_corrupted; then |
---|
1298 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1299 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1300 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1301 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1302 | { (exit 1); exit 1; }; } |
---|
1303 | fi |
---|
1304 | |
---|
1305 | ac_ext=c |
---|
1306 | ac_cpp='$CPP $CPPFLAGS' |
---|
1307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
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 | |
---|
1338 | # Detect the canonical host and target build environment. |
---|
1339 | ac_aux_dir= |
---|
1340 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1341 | if test -f $ac_dir/install-sh; then |
---|
1342 | ac_aux_dir=$ac_dir |
---|
1343 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1344 | break |
---|
1345 | elif test -f $ac_dir/install.sh; then |
---|
1346 | ac_aux_dir=$ac_dir |
---|
1347 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1348 | break |
---|
1349 | elif test -f $ac_dir/shtool; then |
---|
1350 | ac_aux_dir=$ac_dir |
---|
1351 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1352 | break |
---|
1353 | fi |
---|
1354 | done |
---|
1355 | if test -z "$ac_aux_dir"; then |
---|
1356 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1357 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1358 | { (exit 1); exit 1; }; } |
---|
1359 | fi |
---|
1360 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1361 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1362 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1363 | |
---|
1364 | # Make sure we can run config.sub. |
---|
1365 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1366 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1367 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1368 | { (exit 1); exit 1; }; } |
---|
1369 | |
---|
1370 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1371 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1372 | if test "${ac_cv_build+set}" = set; then |
---|
1373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1374 | else |
---|
1375 | ac_cv_build_alias=$build_alias |
---|
1376 | test -z "$ac_cv_build_alias" && |
---|
1377 | ac_cv_build_alias=`$ac_config_guess` |
---|
1378 | test -z "$ac_cv_build_alias" && |
---|
1379 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1380 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1381 | { (exit 1); exit 1; }; } |
---|
1382 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1383 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1384 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1385 | { (exit 1); exit 1; }; } |
---|
1386 | |
---|
1387 | fi |
---|
1388 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1389 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1390 | build=$ac_cv_build |
---|
1391 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1392 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1393 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1394 | |
---|
1395 | |
---|
1396 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1397 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1398 | if test "${ac_cv_host+set}" = set; then |
---|
1399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1400 | else |
---|
1401 | ac_cv_host_alias=$host_alias |
---|
1402 | test -z "$ac_cv_host_alias" && |
---|
1403 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1404 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1405 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1406 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1407 | { (exit 1); exit 1; }; } |
---|
1408 | |
---|
1409 | fi |
---|
1410 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1411 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1412 | host=$ac_cv_host |
---|
1413 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1414 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1415 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1416 | |
---|
1417 | |
---|
1418 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1419 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1420 | if test "${ac_cv_target+set}" = set; then |
---|
1421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1422 | else |
---|
1423 | ac_cv_target_alias=$target_alias |
---|
1424 | test "x$ac_cv_target_alias" = "x" && |
---|
1425 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1426 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1427 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1428 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1429 | { (exit 1); exit 1; }; } |
---|
1430 | |
---|
1431 | fi |
---|
1432 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1433 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1434 | target=$ac_cv_target |
---|
1435 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1436 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1437 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1438 | |
---|
1439 | |
---|
1440 | # The aliases save the names the user supplied, while $host etc. |
---|
1441 | # will get canonicalized. |
---|
1442 | test -n "$target_alias" && |
---|
1443 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1444 | NONENONEs,x,x, && |
---|
1445 | program_prefix=${target_alias}- |
---|
1446 | |
---|
1447 | |
---|
1448 | am__api_version="1.8" |
---|
1449 | # Find a good install program. We prefer a C program (faster), |
---|
1450 | # so one script is as good as another. But avoid the broken or |
---|
1451 | # incompatible versions: |
---|
1452 | # SysV /etc/install, /usr/sbin/install |
---|
1453 | # SunOS /usr/etc/install |
---|
1454 | # IRIX /sbin/install |
---|
1455 | # AIX /bin/install |
---|
1456 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1457 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1458 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1459 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1460 | # OS/2's system install, which has a completely different semantic |
---|
1461 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1462 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1463 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1464 | if test -z "$INSTALL"; then |
---|
1465 | if test "${ac_cv_path_install+set}" = set; then |
---|
1466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1467 | else |
---|
1468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1469 | for as_dir in $PATH |
---|
1470 | do |
---|
1471 | IFS=$as_save_IFS |
---|
1472 | test -z "$as_dir" && as_dir=. |
---|
1473 | # Account for people who put trailing slashes in PATH elements. |
---|
1474 | case $as_dir/ in |
---|
1475 | ./ | .// | /cC/* | \ |
---|
1476 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1477 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1478 | /usr/ucb/* ) ;; |
---|
1479 | *) |
---|
1480 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1481 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1482 | # by default. |
---|
1483 | for ac_prog in ginstall scoinst install; do |
---|
1484 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1485 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1486 | if test $ac_prog = install && |
---|
1487 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1488 | # AIX install. It has an incompatible calling convention. |
---|
1489 | : |
---|
1490 | elif test $ac_prog = install && |
---|
1491 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1492 | # program-specific install script used by HP pwplus--don't use. |
---|
1493 | : |
---|
1494 | else |
---|
1495 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1496 | break 3 |
---|
1497 | fi |
---|
1498 | fi |
---|
1499 | done |
---|
1500 | done |
---|
1501 | ;; |
---|
1502 | esac |
---|
1503 | done |
---|
1504 | |
---|
1505 | |
---|
1506 | fi |
---|
1507 | if test "${ac_cv_path_install+set}" = set; then |
---|
1508 | INSTALL=$ac_cv_path_install |
---|
1509 | else |
---|
1510 | # As a last resort, use the slow shell script. We don't cache a |
---|
1511 | # path for INSTALL within a source directory, because that will |
---|
1512 | # break other packages using the cache if that directory is |
---|
1513 | # removed, or if the path is relative. |
---|
1514 | INSTALL=$ac_install_sh |
---|
1515 | fi |
---|
1516 | fi |
---|
1517 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1518 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1519 | |
---|
1520 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1521 | # It thinks the first close brace ends the variable substitution. |
---|
1522 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1523 | |
---|
1524 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1525 | |
---|
1526 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1527 | |
---|
1528 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1529 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1530 | # Just in case |
---|
1531 | sleep 1 |
---|
1532 | echo timestamp > conftest.file |
---|
1533 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1534 | # arguments. Must try -L first in case configure is actually a |
---|
1535 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1536 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1537 | # directory). |
---|
1538 | if ( |
---|
1539 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1540 | if test "$*" = "X"; then |
---|
1541 | # -L didn't work. |
---|
1542 | set X `ls -t $srcdir/configure conftest.file` |
---|
1543 | fi |
---|
1544 | rm -f conftest.file |
---|
1545 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1546 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1547 | |
---|
1548 | # If neither matched, then we have a broken ls. This can happen |
---|
1549 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1550 | # broken ls alias from the environment. This has actually |
---|
1551 | # happened. Such a system could not be considered "sane". |
---|
1552 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1553 | alias in your environment" >&5 |
---|
1554 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1555 | alias in your environment" >&2;} |
---|
1556 | { (exit 1); exit 1; }; } |
---|
1557 | fi |
---|
1558 | |
---|
1559 | test "$2" = conftest.file |
---|
1560 | ) |
---|
1561 | then |
---|
1562 | # Ok. |
---|
1563 | : |
---|
1564 | else |
---|
1565 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1566 | Check your system clock" >&5 |
---|
1567 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1568 | Check your system clock" >&2;} |
---|
1569 | { (exit 1); exit 1; }; } |
---|
1570 | fi |
---|
1571 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1572 | echo "${ECHO_T}yes" >&6 |
---|
1573 | test "$program_prefix" != NONE && |
---|
1574 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1575 | # Use a double $ so make ignores it. |
---|
1576 | test "$program_suffix" != NONE && |
---|
1577 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1578 | # Double any \ or $. echo might interpret backslashes. |
---|
1579 | # By default was `s,x,x', remove it if useless. |
---|
1580 | cat <<\_ACEOF >conftest.sed |
---|
1581 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1582 | _ACEOF |
---|
1583 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1584 | rm conftest.sed |
---|
1585 | |
---|
1586 | # expand $ac_aux_dir to an absolute path |
---|
1587 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1588 | |
---|
1589 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1590 | # Use eval to expand $SHELL |
---|
1591 | if eval "$MISSING --run true"; then |
---|
1592 | am_missing_run="$MISSING --run " |
---|
1593 | else |
---|
1594 | am_missing_run= |
---|
1595 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1596 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1597 | fi |
---|
1598 | |
---|
1599 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1600 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
1601 | # argument. Indeed, we sometimes output rules like |
---|
1602 | # $(mkdir_p) $(somedir) |
---|
1603 | # where $(somedir) is conditionally defined. |
---|
1604 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
1605 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
1606 | mkdir_p='mkdir -p -- .' |
---|
1607 | else |
---|
1608 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1609 | # recognize any option. It will interpret all options as |
---|
1610 | # directories to create, and then abort because `.' already |
---|
1611 | # exists. |
---|
1612 | for d in ./-p ./--version; |
---|
1613 | do |
---|
1614 | test -d $d && rmdir $d |
---|
1615 | done |
---|
1616 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1617 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1618 | mkdir_p='$(mkinstalldirs)' |
---|
1619 | else |
---|
1620 | mkdir_p='$(install_sh) -d' |
---|
1621 | fi |
---|
1622 | fi |
---|
1623 | |
---|
1624 | for ac_prog in gawk mawk nawk awk |
---|
1625 | do |
---|
1626 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1627 | set dummy $ac_prog; ac_word=$2 |
---|
1628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1630 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1632 | else |
---|
1633 | if test -n "$AWK"; then |
---|
1634 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1635 | else |
---|
1636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1637 | for as_dir in $PATH |
---|
1638 | do |
---|
1639 | IFS=$as_save_IFS |
---|
1640 | test -z "$as_dir" && as_dir=. |
---|
1641 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1643 | ac_cv_prog_AWK="$ac_prog" |
---|
1644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1645 | break 2 |
---|
1646 | fi |
---|
1647 | done |
---|
1648 | done |
---|
1649 | |
---|
1650 | fi |
---|
1651 | fi |
---|
1652 | AWK=$ac_cv_prog_AWK |
---|
1653 | if test -n "$AWK"; then |
---|
1654 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1655 | echo "${ECHO_T}$AWK" >&6 |
---|
1656 | else |
---|
1657 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1658 | echo "${ECHO_T}no" >&6 |
---|
1659 | fi |
---|
1660 | |
---|
1661 | test -n "$AWK" && break |
---|
1662 | done |
---|
1663 | |
---|
1664 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1665 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1666 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1667 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1669 | else |
---|
1670 | cat >conftest.make <<\_ACEOF |
---|
1671 | all: |
---|
1672 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1673 | _ACEOF |
---|
1674 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1675 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1676 | if test -n "$ac_maketemp"; then |
---|
1677 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1678 | else |
---|
1679 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1680 | fi |
---|
1681 | rm -f conftest.make |
---|
1682 | fi |
---|
1683 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1684 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1685 | echo "${ECHO_T}yes" >&6 |
---|
1686 | SET_MAKE= |
---|
1687 | else |
---|
1688 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1689 | echo "${ECHO_T}no" >&6 |
---|
1690 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1691 | fi |
---|
1692 | |
---|
1693 | rm -rf .tst 2>/dev/null |
---|
1694 | mkdir .tst 2>/dev/null |
---|
1695 | if test -d .tst; then |
---|
1696 | am__leading_dot=. |
---|
1697 | else |
---|
1698 | am__leading_dot=_ |
---|
1699 | fi |
---|
1700 | rmdir .tst 2>/dev/null |
---|
1701 | |
---|
1702 | # test to see if srcdir already configured |
---|
1703 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1704 | test -f $srcdir/config.status; then |
---|
1705 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1706 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1707 | { (exit 1); exit 1; }; } |
---|
1708 | fi |
---|
1709 | |
---|
1710 | # test whether we have cygpath |
---|
1711 | if test -z "$CYGPATH_W"; then |
---|
1712 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1713 | CYGPATH_W='cygpath -w' |
---|
1714 | else |
---|
1715 | CYGPATH_W=echo |
---|
1716 | fi |
---|
1717 | fi |
---|
1718 | |
---|
1719 | |
---|
1720 | # Define the identity of the package. |
---|
1721 | PACKAGE='orxonox' |
---|
1722 | VERSION='0.2.1-pre-alpha' |
---|
1723 | |
---|
1724 | |
---|
1725 | cat >>confdefs.h <<_ACEOF |
---|
1726 | #define PACKAGE "$PACKAGE" |
---|
1727 | _ACEOF |
---|
1728 | |
---|
1729 | |
---|
1730 | cat >>confdefs.h <<_ACEOF |
---|
1731 | #define VERSION "$VERSION" |
---|
1732 | _ACEOF |
---|
1733 | |
---|
1734 | # Some tools Automake needs. |
---|
1735 | |
---|
1736 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1737 | |
---|
1738 | |
---|
1739 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1740 | |
---|
1741 | |
---|
1742 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1743 | |
---|
1744 | |
---|
1745 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1746 | |
---|
1747 | |
---|
1748 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1749 | |
---|
1750 | |
---|
1751 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1752 | |
---|
1753 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1754 | |
---|
1755 | # Installed binaries are usually stripped using `strip' when the user |
---|
1756 | # run `make install-strip'. However `strip' might not be the right |
---|
1757 | # tool to use in cross-compilation environments, therefore Automake |
---|
1758 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1759 | if test "$cross_compiling" != no; then |
---|
1760 | if test -n "$ac_tool_prefix"; then |
---|
1761 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1762 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1763 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1765 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1767 | else |
---|
1768 | if test -n "$STRIP"; then |
---|
1769 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1770 | else |
---|
1771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1772 | for as_dir in $PATH |
---|
1773 | do |
---|
1774 | IFS=$as_save_IFS |
---|
1775 | test -z "$as_dir" && as_dir=. |
---|
1776 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1777 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1778 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1780 | break 2 |
---|
1781 | fi |
---|
1782 | done |
---|
1783 | done |
---|
1784 | |
---|
1785 | fi |
---|
1786 | fi |
---|
1787 | STRIP=$ac_cv_prog_STRIP |
---|
1788 | if test -n "$STRIP"; then |
---|
1789 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1790 | echo "${ECHO_T}$STRIP" >&6 |
---|
1791 | else |
---|
1792 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1793 | echo "${ECHO_T}no" >&6 |
---|
1794 | fi |
---|
1795 | |
---|
1796 | fi |
---|
1797 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1798 | ac_ct_STRIP=$STRIP |
---|
1799 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1800 | set dummy strip; ac_word=$2 |
---|
1801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1803 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1805 | else |
---|
1806 | if test -n "$ac_ct_STRIP"; then |
---|
1807 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1808 | else |
---|
1809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1810 | for as_dir in $PATH |
---|
1811 | do |
---|
1812 | IFS=$as_save_IFS |
---|
1813 | test -z "$as_dir" && as_dir=. |
---|
1814 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1815 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1816 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1818 | break 2 |
---|
1819 | fi |
---|
1820 | done |
---|
1821 | done |
---|
1822 | |
---|
1823 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1824 | fi |
---|
1825 | fi |
---|
1826 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1827 | if test -n "$ac_ct_STRIP"; then |
---|
1828 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1829 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1830 | else |
---|
1831 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1832 | echo "${ECHO_T}no" >&6 |
---|
1833 | fi |
---|
1834 | |
---|
1835 | STRIP=$ac_ct_STRIP |
---|
1836 | else |
---|
1837 | STRIP="$ac_cv_prog_STRIP" |
---|
1838 | fi |
---|
1839 | |
---|
1840 | fi |
---|
1841 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1842 | |
---|
1843 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1844 | # some platforms. |
---|
1845 | |
---|
1846 | |
---|
1847 | |
---|
1848 | |
---|
1849 | |
---|
1850 | ac_config_headers="$ac_config_headers config.h" |
---|
1851 | |
---|
1852 | |
---|
1853 | |
---|
1854 | # Checks for programs. |
---|
1855 | ac_ext=cc |
---|
1856 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1857 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1858 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1859 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1860 | if test -n "$ac_tool_prefix"; then |
---|
1861 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1862 | do |
---|
1863 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1864 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1867 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1869 | else |
---|
1870 | if test -n "$CXX"; then |
---|
1871 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1872 | else |
---|
1873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1874 | for as_dir in $PATH |
---|
1875 | do |
---|
1876 | IFS=$as_save_IFS |
---|
1877 | test -z "$as_dir" && as_dir=. |
---|
1878 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1880 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1882 | break 2 |
---|
1883 | fi |
---|
1884 | done |
---|
1885 | done |
---|
1886 | |
---|
1887 | fi |
---|
1888 | fi |
---|
1889 | CXX=$ac_cv_prog_CXX |
---|
1890 | if test -n "$CXX"; then |
---|
1891 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1892 | echo "${ECHO_T}$CXX" >&6 |
---|
1893 | else |
---|
1894 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1895 | echo "${ECHO_T}no" >&6 |
---|
1896 | fi |
---|
1897 | |
---|
1898 | test -n "$CXX" && break |
---|
1899 | done |
---|
1900 | fi |
---|
1901 | if test -z "$CXX"; then |
---|
1902 | ac_ct_CXX=$CXX |
---|
1903 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1904 | do |
---|
1905 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1906 | set dummy $ac_prog; ac_word=$2 |
---|
1907 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1909 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1911 | else |
---|
1912 | if test -n "$ac_ct_CXX"; then |
---|
1913 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1914 | else |
---|
1915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1916 | for as_dir in $PATH |
---|
1917 | do |
---|
1918 | IFS=$as_save_IFS |
---|
1919 | test -z "$as_dir" && as_dir=. |
---|
1920 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1922 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1924 | break 2 |
---|
1925 | fi |
---|
1926 | done |
---|
1927 | done |
---|
1928 | |
---|
1929 | fi |
---|
1930 | fi |
---|
1931 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1932 | if test -n "$ac_ct_CXX"; then |
---|
1933 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1934 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1935 | else |
---|
1936 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1937 | echo "${ECHO_T}no" >&6 |
---|
1938 | fi |
---|
1939 | |
---|
1940 | test -n "$ac_ct_CXX" && break |
---|
1941 | done |
---|
1942 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1943 | |
---|
1944 | CXX=$ac_ct_CXX |
---|
1945 | fi |
---|
1946 | |
---|
1947 | |
---|
1948 | # Provide some information about the compiler. |
---|
1949 | echo "$as_me:$LINENO:" \ |
---|
1950 | "checking for C++ compiler version" >&5 |
---|
1951 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1952 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1953 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1954 | ac_status=$? |
---|
1955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1956 | (exit $ac_status); } |
---|
1957 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1958 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1959 | ac_status=$? |
---|
1960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1961 | (exit $ac_status); } |
---|
1962 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1963 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1964 | ac_status=$? |
---|
1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1966 | (exit $ac_status); } |
---|
1967 | |
---|
1968 | cat >conftest.$ac_ext <<_ACEOF |
---|
1969 | /* confdefs.h. */ |
---|
1970 | _ACEOF |
---|
1971 | cat confdefs.h >>conftest.$ac_ext |
---|
1972 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1973 | /* end confdefs.h. */ |
---|
1974 | |
---|
1975 | int |
---|
1976 | main () |
---|
1977 | { |
---|
1978 | |
---|
1979 | ; |
---|
1980 | return 0; |
---|
1981 | } |
---|
1982 | _ACEOF |
---|
1983 | ac_clean_files_save=$ac_clean_files |
---|
1984 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1985 | # Try to create an executable without -o first, disregard a.out. |
---|
1986 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1987 | # of exeext. |
---|
1988 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1989 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1990 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1991 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1992 | (eval $ac_link_default) 2>&5 |
---|
1993 | ac_status=$? |
---|
1994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1995 | (exit $ac_status); }; then |
---|
1996 | # Find the output, starting from the most likely. This scheme is |
---|
1997 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1998 | # resort. |
---|
1999 | |
---|
2000 | # Be careful to initialize this variable, since it used to be cached. |
---|
2001 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2002 | ac_cv_exeext= |
---|
2003 | # b.out is created by i960 compilers. |
---|
2004 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2005 | do |
---|
2006 | test -f "$ac_file" || continue |
---|
2007 | case $ac_file in |
---|
2008 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2009 | ;; |
---|
2010 | conftest.$ac_ext ) |
---|
2011 | # This is the source file. |
---|
2012 | ;; |
---|
2013 | [ab].out ) |
---|
2014 | # We found the default executable, but exeext='' is most |
---|
2015 | # certainly right. |
---|
2016 | break;; |
---|
2017 | *.* ) |
---|
2018 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2019 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2020 | # but it would be cool to find out if it's true. Does anybody |
---|
2021 | # maintain Libtool? --akim. |
---|
2022 | export ac_cv_exeext |
---|
2023 | break;; |
---|
2024 | * ) |
---|
2025 | break;; |
---|
2026 | esac |
---|
2027 | done |
---|
2028 | else |
---|
2029 | echo "$as_me: failed program was:" >&5 |
---|
2030 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2031 | |
---|
2032 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
2033 | See \`config.log' for more details." >&5 |
---|
2034 | echo "$as_me: error: C++ compiler cannot create executables |
---|
2035 | See \`config.log' for more details." >&2;} |
---|
2036 | { (exit 77); exit 77; }; } |
---|
2037 | fi |
---|
2038 | |
---|
2039 | ac_exeext=$ac_cv_exeext |
---|
2040 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2041 | echo "${ECHO_T}$ac_file" >&6 |
---|
2042 | |
---|
2043 | # Check the compiler produces executables we can run. If not, either |
---|
2044 | # the compiler is broken, or we cross compile. |
---|
2045 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
2046 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
2047 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2048 | # If not cross compiling, check that we can run a simple program. |
---|
2049 | if test "$cross_compiling" != yes; then |
---|
2050 | if { ac_try='./$ac_file' |
---|
2051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2052 | (eval $ac_try) 2>&5 |
---|
2053 | ac_status=$? |
---|
2054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2055 | (exit $ac_status); }; }; then |
---|
2056 | cross_compiling=no |
---|
2057 | else |
---|
2058 | if test "$cross_compiling" = maybe; then |
---|
2059 | cross_compiling=yes |
---|
2060 | else |
---|
2061 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2062 | If you meant to cross compile, use \`--host'. |
---|
2063 | See \`config.log' for more details." >&5 |
---|
2064 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2065 | If you meant to cross compile, use \`--host'. |
---|
2066 | See \`config.log' for more details." >&2;} |
---|
2067 | { (exit 1); exit 1; }; } |
---|
2068 | fi |
---|
2069 | fi |
---|
2070 | fi |
---|
2071 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2072 | echo "${ECHO_T}yes" >&6 |
---|
2073 | |
---|
2074 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2075 | ac_clean_files=$ac_clean_files_save |
---|
2076 | # Check the compiler produces executables we can run. If not, either |
---|
2077 | # the compiler is broken, or we cross compile. |
---|
2078 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2079 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2080 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2081 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2082 | |
---|
2083 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2084 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2086 | (eval $ac_link) 2>&5 |
---|
2087 | ac_status=$? |
---|
2088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2089 | (exit $ac_status); }; then |
---|
2090 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2091 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2092 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2093 | # `rm'. |
---|
2094 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2095 | test -f "$ac_file" || continue |
---|
2096 | case $ac_file in |
---|
2097 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2098 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2099 | export ac_cv_exeext |
---|
2100 | break;; |
---|
2101 | * ) break;; |
---|
2102 | esac |
---|
2103 | done |
---|
2104 | else |
---|
2105 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2106 | See \`config.log' for more details." >&5 |
---|
2107 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2108 | See \`config.log' for more details." >&2;} |
---|
2109 | { (exit 1); exit 1; }; } |
---|
2110 | fi |
---|
2111 | |
---|
2112 | rm -f conftest$ac_cv_exeext |
---|
2113 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2114 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2115 | |
---|
2116 | rm -f conftest.$ac_ext |
---|
2117 | EXEEXT=$ac_cv_exeext |
---|
2118 | ac_exeext=$EXEEXT |
---|
2119 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2120 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2121 | if test "${ac_cv_objext+set}" = set; then |
---|
2122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2123 | else |
---|
2124 | cat >conftest.$ac_ext <<_ACEOF |
---|
2125 | /* confdefs.h. */ |
---|
2126 | _ACEOF |
---|
2127 | cat confdefs.h >>conftest.$ac_ext |
---|
2128 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2129 | /* end confdefs.h. */ |
---|
2130 | |
---|
2131 | int |
---|
2132 | main () |
---|
2133 | { |
---|
2134 | |
---|
2135 | ; |
---|
2136 | return 0; |
---|
2137 | } |
---|
2138 | _ACEOF |
---|
2139 | rm -f conftest.o conftest.obj |
---|
2140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2141 | (eval $ac_compile) 2>&5 |
---|
2142 | ac_status=$? |
---|
2143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2144 | (exit $ac_status); }; then |
---|
2145 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2146 | case $ac_file in |
---|
2147 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2148 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2149 | break;; |
---|
2150 | esac |
---|
2151 | done |
---|
2152 | else |
---|
2153 | echo "$as_me: failed program was:" >&5 |
---|
2154 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2155 | |
---|
2156 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2157 | See \`config.log' for more details." >&5 |
---|
2158 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2159 | See \`config.log' for more details." >&2;} |
---|
2160 | { (exit 1); exit 1; }; } |
---|
2161 | fi |
---|
2162 | |
---|
2163 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2164 | fi |
---|
2165 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2166 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2167 | OBJEXT=$ac_cv_objext |
---|
2168 | ac_objext=$OBJEXT |
---|
2169 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2170 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2171 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2173 | else |
---|
2174 | cat >conftest.$ac_ext <<_ACEOF |
---|
2175 | /* confdefs.h. */ |
---|
2176 | _ACEOF |
---|
2177 | cat confdefs.h >>conftest.$ac_ext |
---|
2178 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2179 | /* end confdefs.h. */ |
---|
2180 | |
---|
2181 | int |
---|
2182 | main () |
---|
2183 | { |
---|
2184 | #ifndef __GNUC__ |
---|
2185 | choke me |
---|
2186 | #endif |
---|
2187 | |
---|
2188 | ; |
---|
2189 | return 0; |
---|
2190 | } |
---|
2191 | _ACEOF |
---|
2192 | rm -f conftest.$ac_objext |
---|
2193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2194 | (eval $ac_compile) 2>conftest.er1 |
---|
2195 | ac_status=$? |
---|
2196 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2197 | rm -f conftest.er1 |
---|
2198 | cat conftest.err >&5 |
---|
2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2200 | (exit $ac_status); } && |
---|
2201 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2202 | || test ! -s conftest.err' |
---|
2203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2204 | (eval $ac_try) 2>&5 |
---|
2205 | ac_status=$? |
---|
2206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2207 | (exit $ac_status); }; } && |
---|
2208 | { ac_try='test -s conftest.$ac_objext' |
---|
2209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2210 | (eval $ac_try) 2>&5 |
---|
2211 | ac_status=$? |
---|
2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2213 | (exit $ac_status); }; }; then |
---|
2214 | ac_compiler_gnu=yes |
---|
2215 | else |
---|
2216 | echo "$as_me: failed program was:" >&5 |
---|
2217 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2218 | |
---|
2219 | ac_compiler_gnu=no |
---|
2220 | fi |
---|
2221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2222 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2223 | |
---|
2224 | fi |
---|
2225 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2226 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2227 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2228 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2229 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2230 | CXXFLAGS="-g" |
---|
2231 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2232 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2233 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2235 | else |
---|
2236 | cat >conftest.$ac_ext <<_ACEOF |
---|
2237 | /* confdefs.h. */ |
---|
2238 | _ACEOF |
---|
2239 | cat confdefs.h >>conftest.$ac_ext |
---|
2240 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2241 | /* end confdefs.h. */ |
---|
2242 | |
---|
2243 | int |
---|
2244 | main () |
---|
2245 | { |
---|
2246 | |
---|
2247 | ; |
---|
2248 | return 0; |
---|
2249 | } |
---|
2250 | _ACEOF |
---|
2251 | rm -f conftest.$ac_objext |
---|
2252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2253 | (eval $ac_compile) 2>conftest.er1 |
---|
2254 | ac_status=$? |
---|
2255 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2256 | rm -f conftest.er1 |
---|
2257 | cat conftest.err >&5 |
---|
2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2259 | (exit $ac_status); } && |
---|
2260 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2261 | || test ! -s conftest.err' |
---|
2262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2263 | (eval $ac_try) 2>&5 |
---|
2264 | ac_status=$? |
---|
2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2266 | (exit $ac_status); }; } && |
---|
2267 | { ac_try='test -s conftest.$ac_objext' |
---|
2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2269 | (eval $ac_try) 2>&5 |
---|
2270 | ac_status=$? |
---|
2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2272 | (exit $ac_status); }; }; then |
---|
2273 | ac_cv_prog_cxx_g=yes |
---|
2274 | else |
---|
2275 | echo "$as_me: failed program was:" >&5 |
---|
2276 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2277 | |
---|
2278 | ac_cv_prog_cxx_g=no |
---|
2279 | fi |
---|
2280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2281 | fi |
---|
2282 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2283 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2284 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2285 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2286 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2287 | if test "$GXX" = yes; then |
---|
2288 | CXXFLAGS="-g -O2" |
---|
2289 | else |
---|
2290 | CXXFLAGS="-g" |
---|
2291 | fi |
---|
2292 | else |
---|
2293 | if test "$GXX" = yes; then |
---|
2294 | CXXFLAGS="-O2" |
---|
2295 | else |
---|
2296 | CXXFLAGS= |
---|
2297 | fi |
---|
2298 | fi |
---|
2299 | for ac_declaration in \ |
---|
2300 | '' \ |
---|
2301 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2302 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2303 | 'extern "C" void exit (int) throw ();' \ |
---|
2304 | 'extern "C" void exit (int);' \ |
---|
2305 | 'void exit (int);' |
---|
2306 | do |
---|
2307 | cat >conftest.$ac_ext <<_ACEOF |
---|
2308 | /* confdefs.h. */ |
---|
2309 | _ACEOF |
---|
2310 | cat confdefs.h >>conftest.$ac_ext |
---|
2311 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2312 | /* end confdefs.h. */ |
---|
2313 | $ac_declaration |
---|
2314 | #include <stdlib.h> |
---|
2315 | int |
---|
2316 | main () |
---|
2317 | { |
---|
2318 | exit (42); |
---|
2319 | ; |
---|
2320 | return 0; |
---|
2321 | } |
---|
2322 | _ACEOF |
---|
2323 | rm -f conftest.$ac_objext |
---|
2324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2325 | (eval $ac_compile) 2>conftest.er1 |
---|
2326 | ac_status=$? |
---|
2327 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2328 | rm -f conftest.er1 |
---|
2329 | cat conftest.err >&5 |
---|
2330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2331 | (exit $ac_status); } && |
---|
2332 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2333 | || test ! -s conftest.err' |
---|
2334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2335 | (eval $ac_try) 2>&5 |
---|
2336 | ac_status=$? |
---|
2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2338 | (exit $ac_status); }; } && |
---|
2339 | { ac_try='test -s conftest.$ac_objext' |
---|
2340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2341 | (eval $ac_try) 2>&5 |
---|
2342 | ac_status=$? |
---|
2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2344 | (exit $ac_status); }; }; then |
---|
2345 | : |
---|
2346 | else |
---|
2347 | echo "$as_me: failed program was:" >&5 |
---|
2348 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2349 | |
---|
2350 | continue |
---|
2351 | fi |
---|
2352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2353 | cat >conftest.$ac_ext <<_ACEOF |
---|
2354 | /* confdefs.h. */ |
---|
2355 | _ACEOF |
---|
2356 | cat confdefs.h >>conftest.$ac_ext |
---|
2357 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2358 | /* end confdefs.h. */ |
---|
2359 | $ac_declaration |
---|
2360 | int |
---|
2361 | main () |
---|
2362 | { |
---|
2363 | exit (42); |
---|
2364 | ; |
---|
2365 | return 0; |
---|
2366 | } |
---|
2367 | _ACEOF |
---|
2368 | rm -f conftest.$ac_objext |
---|
2369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2370 | (eval $ac_compile) 2>conftest.er1 |
---|
2371 | ac_status=$? |
---|
2372 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2373 | rm -f conftest.er1 |
---|
2374 | cat conftest.err >&5 |
---|
2375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2376 | (exit $ac_status); } && |
---|
2377 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2378 | || test ! -s conftest.err' |
---|
2379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2380 | (eval $ac_try) 2>&5 |
---|
2381 | ac_status=$? |
---|
2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2383 | (exit $ac_status); }; } && |
---|
2384 | { ac_try='test -s conftest.$ac_objext' |
---|
2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2386 | (eval $ac_try) 2>&5 |
---|
2387 | ac_status=$? |
---|
2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2389 | (exit $ac_status); }; }; then |
---|
2390 | break |
---|
2391 | else |
---|
2392 | echo "$as_me: failed program was:" >&5 |
---|
2393 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2394 | |
---|
2395 | fi |
---|
2396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2397 | done |
---|
2398 | rm -f conftest* |
---|
2399 | if test -n "$ac_declaration"; then |
---|
2400 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2401 | echo $ac_declaration >>confdefs.h |
---|
2402 | echo '#endif' >>confdefs.h |
---|
2403 | fi |
---|
2404 | |
---|
2405 | ac_ext=c |
---|
2406 | ac_cpp='$CPP $CPPFLAGS' |
---|
2407 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2408 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2409 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2410 | DEPDIR="${am__leading_dot}deps" |
---|
2411 | |
---|
2412 | ac_config_commands="$ac_config_commands depfiles" |
---|
2413 | |
---|
2414 | |
---|
2415 | am_make=${MAKE-make} |
---|
2416 | cat > confinc << 'END' |
---|
2417 | am__doit: |
---|
2418 | @echo done |
---|
2419 | .PHONY: am__doit |
---|
2420 | END |
---|
2421 | # If we don't find an include directive, just comment out the code. |
---|
2422 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2423 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2424 | am__include="#" |
---|
2425 | am__quote= |
---|
2426 | _am_result=none |
---|
2427 | # First try GNU make style include. |
---|
2428 | echo "include confinc" > confmf |
---|
2429 | # We grep out `Entering directory' and `Leaving directory' |
---|
2430 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2431 | # In particular we don't look at `^make:' because GNU make might |
---|
2432 | # be invoked under some other name (usually "gmake"), in which |
---|
2433 | # case it prints its new name instead of `make'. |
---|
2434 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2435 | am__include=include |
---|
2436 | am__quote= |
---|
2437 | _am_result=GNU |
---|
2438 | fi |
---|
2439 | # Now try BSD make style include. |
---|
2440 | if test "$am__include" = "#"; then |
---|
2441 | echo '.include "confinc"' > confmf |
---|
2442 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2443 | am__include=.include |
---|
2444 | am__quote="\"" |
---|
2445 | _am_result=BSD |
---|
2446 | fi |
---|
2447 | fi |
---|
2448 | |
---|
2449 | |
---|
2450 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2451 | echo "${ECHO_T}$_am_result" >&6 |
---|
2452 | rm -f confinc confmf |
---|
2453 | |
---|
2454 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2455 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2456 | enableval="$enable_dependency_tracking" |
---|
2457 | |
---|
2458 | fi; |
---|
2459 | if test "x$enable_dependency_tracking" != xno; then |
---|
2460 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2461 | AMDEPBACKSLASH='\' |
---|
2462 | fi |
---|
2463 | |
---|
2464 | |
---|
2465 | if test "x$enable_dependency_tracking" != xno; then |
---|
2466 | AMDEP_TRUE= |
---|
2467 | AMDEP_FALSE='#' |
---|
2468 | else |
---|
2469 | AMDEP_TRUE='#' |
---|
2470 | AMDEP_FALSE= |
---|
2471 | fi |
---|
2472 | |
---|
2473 | |
---|
2474 | |
---|
2475 | |
---|
2476 | depcc="$CXX" am_compiler_list= |
---|
2477 | |
---|
2478 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2479 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2480 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2482 | else |
---|
2483 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2484 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2485 | # making bogus files that we don't know about and never remove. For |
---|
2486 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2487 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2488 | # in D'. |
---|
2489 | mkdir conftest.dir |
---|
2490 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2491 | # using a relative directory. |
---|
2492 | cp "$am_depcomp" conftest.dir |
---|
2493 | cd conftest.dir |
---|
2494 | # We will build objects and dependencies in a subdirectory because |
---|
2495 | # it helps to detect inapplicable dependency modes. For instance |
---|
2496 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2497 | # side effect of compilation, but ICC will put the dependencies in |
---|
2498 | # the current directory while Tru64 will put them in the object |
---|
2499 | # directory. |
---|
2500 | mkdir sub |
---|
2501 | |
---|
2502 | am_cv_CXX_dependencies_compiler_type=none |
---|
2503 | if test "$am_compiler_list" = ""; then |
---|
2504 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2505 | fi |
---|
2506 | for depmode in $am_compiler_list; do |
---|
2507 | # Setup a source with many dependencies, because some compilers |
---|
2508 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2509 | # we should not choose a depcomp mode which is confused by this. |
---|
2510 | # |
---|
2511 | # We need to recreate these files for each test, as the compiler may |
---|
2512 | # overwrite some of them when testing with obscure command lines. |
---|
2513 | # This happens at least with the AIX C compiler. |
---|
2514 | : > sub/conftest.c |
---|
2515 | for i in 1 2 3 4 5 6; do |
---|
2516 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2517 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
2518 | # Solaris 8's {/usr,}/bin/sh. |
---|
2519 | touch sub/conftst$i.h |
---|
2520 | done |
---|
2521 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2522 | |
---|
2523 | case $depmode in |
---|
2524 | nosideeffect) |
---|
2525 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2526 | # only be used when explicitly requested |
---|
2527 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2528 | continue |
---|
2529 | else |
---|
2530 | break |
---|
2531 | fi |
---|
2532 | ;; |
---|
2533 | none) break ;; |
---|
2534 | esac |
---|
2535 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2536 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2537 | # handle `-M -o', and we need to detect this. |
---|
2538 | if depmode=$depmode \ |
---|
2539 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2540 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2541 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2542 | >/dev/null 2>conftest.err && |
---|
2543 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2544 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2545 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2546 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2547 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
2548 | # that says an option was ignored or not supported. |
---|
2549 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
2550 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
2551 | # The diagnosis changed in icc 8.0: |
---|
2552 | # icc: Command line remark: option '-MP' not supported |
---|
2553 | if (grep 'ignoring option' conftest.err || |
---|
2554 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
2555 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2556 | break |
---|
2557 | fi |
---|
2558 | fi |
---|
2559 | done |
---|
2560 | |
---|
2561 | cd .. |
---|
2562 | rm -rf conftest.dir |
---|
2563 | else |
---|
2564 | am_cv_CXX_dependencies_compiler_type=none |
---|
2565 | fi |
---|
2566 | |
---|
2567 | fi |
---|
2568 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2569 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2570 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2571 | |
---|
2572 | |
---|
2573 | |
---|
2574 | if |
---|
2575 | test "x$enable_dependency_tracking" != xno \ |
---|
2576 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2577 | am__fastdepCXX_TRUE= |
---|
2578 | am__fastdepCXX_FALSE='#' |
---|
2579 | else |
---|
2580 | am__fastdepCXX_TRUE='#' |
---|
2581 | am__fastdepCXX_FALSE= |
---|
2582 | fi |
---|
2583 | |
---|
2584 | |
---|
2585 | ac_ext=c |
---|
2586 | ac_cpp='$CPP $CPPFLAGS' |
---|
2587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2590 | if test -n "$ac_tool_prefix"; then |
---|
2591 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2592 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2595 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2597 | else |
---|
2598 | if test -n "$CC"; then |
---|
2599 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2600 | else |
---|
2601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2602 | for as_dir in $PATH |
---|
2603 | do |
---|
2604 | IFS=$as_save_IFS |
---|
2605 | test -z "$as_dir" && as_dir=. |
---|
2606 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2608 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2610 | break 2 |
---|
2611 | fi |
---|
2612 | done |
---|
2613 | done |
---|
2614 | |
---|
2615 | fi |
---|
2616 | fi |
---|
2617 | CC=$ac_cv_prog_CC |
---|
2618 | if test -n "$CC"; then |
---|
2619 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2620 | echo "${ECHO_T}$CC" >&6 |
---|
2621 | else |
---|
2622 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2623 | echo "${ECHO_T}no" >&6 |
---|
2624 | fi |
---|
2625 | |
---|
2626 | fi |
---|
2627 | if test -z "$ac_cv_prog_CC"; then |
---|
2628 | ac_ct_CC=$CC |
---|
2629 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2630 | set dummy gcc; ac_word=$2 |
---|
2631 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2633 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2635 | else |
---|
2636 | if test -n "$ac_ct_CC"; then |
---|
2637 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2638 | else |
---|
2639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2640 | for as_dir in $PATH |
---|
2641 | do |
---|
2642 | IFS=$as_save_IFS |
---|
2643 | test -z "$as_dir" && as_dir=. |
---|
2644 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2645 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2646 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2648 | break 2 |
---|
2649 | fi |
---|
2650 | done |
---|
2651 | done |
---|
2652 | |
---|
2653 | fi |
---|
2654 | fi |
---|
2655 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2656 | if test -n "$ac_ct_CC"; then |
---|
2657 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2658 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2659 | else |
---|
2660 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2661 | echo "${ECHO_T}no" >&6 |
---|
2662 | fi |
---|
2663 | |
---|
2664 | CC=$ac_ct_CC |
---|
2665 | else |
---|
2666 | CC="$ac_cv_prog_CC" |
---|
2667 | fi |
---|
2668 | |
---|
2669 | if test -z "$CC"; then |
---|
2670 | if test -n "$ac_tool_prefix"; then |
---|
2671 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2672 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2673 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2675 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2677 | else |
---|
2678 | if test -n "$CC"; then |
---|
2679 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2680 | else |
---|
2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2682 | for as_dir in $PATH |
---|
2683 | do |
---|
2684 | IFS=$as_save_IFS |
---|
2685 | test -z "$as_dir" && as_dir=. |
---|
2686 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2687 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2688 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2690 | break 2 |
---|
2691 | fi |
---|
2692 | done |
---|
2693 | done |
---|
2694 | |
---|
2695 | fi |
---|
2696 | fi |
---|
2697 | CC=$ac_cv_prog_CC |
---|
2698 | if test -n "$CC"; then |
---|
2699 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2700 | echo "${ECHO_T}$CC" >&6 |
---|
2701 | else |
---|
2702 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2703 | echo "${ECHO_T}no" >&6 |
---|
2704 | fi |
---|
2705 | |
---|
2706 | fi |
---|
2707 | if test -z "$ac_cv_prog_CC"; then |
---|
2708 | ac_ct_CC=$CC |
---|
2709 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2710 | set dummy cc; ac_word=$2 |
---|
2711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2713 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2715 | else |
---|
2716 | if test -n "$ac_ct_CC"; then |
---|
2717 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2718 | else |
---|
2719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2720 | for as_dir in $PATH |
---|
2721 | do |
---|
2722 | IFS=$as_save_IFS |
---|
2723 | test -z "$as_dir" && as_dir=. |
---|
2724 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2726 | ac_cv_prog_ac_ct_CC="cc" |
---|
2727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2728 | break 2 |
---|
2729 | fi |
---|
2730 | done |
---|
2731 | done |
---|
2732 | |
---|
2733 | fi |
---|
2734 | fi |
---|
2735 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2736 | if test -n "$ac_ct_CC"; then |
---|
2737 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2738 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2739 | else |
---|
2740 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2741 | echo "${ECHO_T}no" >&6 |
---|
2742 | fi |
---|
2743 | |
---|
2744 | CC=$ac_ct_CC |
---|
2745 | else |
---|
2746 | CC="$ac_cv_prog_CC" |
---|
2747 | fi |
---|
2748 | |
---|
2749 | fi |
---|
2750 | if test -z "$CC"; then |
---|
2751 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2752 | set dummy cc; ac_word=$2 |
---|
2753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2755 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2757 | else |
---|
2758 | if test -n "$CC"; then |
---|
2759 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2760 | else |
---|
2761 | ac_prog_rejected=no |
---|
2762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2763 | for as_dir in $PATH |
---|
2764 | do |
---|
2765 | IFS=$as_save_IFS |
---|
2766 | test -z "$as_dir" && as_dir=. |
---|
2767 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2768 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2769 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2770 | ac_prog_rejected=yes |
---|
2771 | continue |
---|
2772 | fi |
---|
2773 | ac_cv_prog_CC="cc" |
---|
2774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2775 | break 2 |
---|
2776 | fi |
---|
2777 | done |
---|
2778 | done |
---|
2779 | |
---|
2780 | if test $ac_prog_rejected = yes; then |
---|
2781 | # We found a bogon in the path, so make sure we never use it. |
---|
2782 | set dummy $ac_cv_prog_CC |
---|
2783 | shift |
---|
2784 | if test $# != 0; then |
---|
2785 | # We chose a different compiler from the bogus one. |
---|
2786 | # However, it has the same basename, so the bogon will be chosen |
---|
2787 | # first if we set CC to just the basename; use the full file name. |
---|
2788 | shift |
---|
2789 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2790 | fi |
---|
2791 | fi |
---|
2792 | fi |
---|
2793 | fi |
---|
2794 | CC=$ac_cv_prog_CC |
---|
2795 | if test -n "$CC"; then |
---|
2796 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2797 | echo "${ECHO_T}$CC" >&6 |
---|
2798 | else |
---|
2799 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2800 | echo "${ECHO_T}no" >&6 |
---|
2801 | fi |
---|
2802 | |
---|
2803 | fi |
---|
2804 | if test -z "$CC"; then |
---|
2805 | if test -n "$ac_tool_prefix"; then |
---|
2806 | for ac_prog in cl |
---|
2807 | do |
---|
2808 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2809 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2812 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2814 | else |
---|
2815 | if test -n "$CC"; then |
---|
2816 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2817 | else |
---|
2818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2819 | for as_dir in $PATH |
---|
2820 | do |
---|
2821 | IFS=$as_save_IFS |
---|
2822 | test -z "$as_dir" && as_dir=. |
---|
2823 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2824 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2825 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2827 | break 2 |
---|
2828 | fi |
---|
2829 | done |
---|
2830 | done |
---|
2831 | |
---|
2832 | fi |
---|
2833 | fi |
---|
2834 | CC=$ac_cv_prog_CC |
---|
2835 | if test -n "$CC"; then |
---|
2836 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2837 | echo "${ECHO_T}$CC" >&6 |
---|
2838 | else |
---|
2839 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2840 | echo "${ECHO_T}no" >&6 |
---|
2841 | fi |
---|
2842 | |
---|
2843 | test -n "$CC" && break |
---|
2844 | done |
---|
2845 | fi |
---|
2846 | if test -z "$CC"; then |
---|
2847 | ac_ct_CC=$CC |
---|
2848 | for ac_prog in cl |
---|
2849 | do |
---|
2850 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2851 | set dummy $ac_prog; ac_word=$2 |
---|
2852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2854 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2856 | else |
---|
2857 | if test -n "$ac_ct_CC"; then |
---|
2858 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2859 | else |
---|
2860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2861 | for as_dir in $PATH |
---|
2862 | do |
---|
2863 | IFS=$as_save_IFS |
---|
2864 | test -z "$as_dir" && as_dir=. |
---|
2865 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2867 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2869 | break 2 |
---|
2870 | fi |
---|
2871 | done |
---|
2872 | done |
---|
2873 | |
---|
2874 | fi |
---|
2875 | fi |
---|
2876 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2877 | if test -n "$ac_ct_CC"; then |
---|
2878 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2879 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2880 | else |
---|
2881 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2882 | echo "${ECHO_T}no" >&6 |
---|
2883 | fi |
---|
2884 | |
---|
2885 | test -n "$ac_ct_CC" && break |
---|
2886 | done |
---|
2887 | |
---|
2888 | CC=$ac_ct_CC |
---|
2889 | fi |
---|
2890 | |
---|
2891 | fi |
---|
2892 | |
---|
2893 | |
---|
2894 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2895 | See \`config.log' for more details." >&5 |
---|
2896 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2897 | See \`config.log' for more details." >&2;} |
---|
2898 | { (exit 1); exit 1; }; } |
---|
2899 | |
---|
2900 | # Provide some information about the compiler. |
---|
2901 | echo "$as_me:$LINENO:" \ |
---|
2902 | "checking for C compiler version" >&5 |
---|
2903 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2904 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2905 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2906 | ac_status=$? |
---|
2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2908 | (exit $ac_status); } |
---|
2909 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2910 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2911 | ac_status=$? |
---|
2912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2913 | (exit $ac_status); } |
---|
2914 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2915 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2916 | ac_status=$? |
---|
2917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2918 | (exit $ac_status); } |
---|
2919 | |
---|
2920 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2921 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2922 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2924 | else |
---|
2925 | cat >conftest.$ac_ext <<_ACEOF |
---|
2926 | /* confdefs.h. */ |
---|
2927 | _ACEOF |
---|
2928 | cat confdefs.h >>conftest.$ac_ext |
---|
2929 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2930 | /* end confdefs.h. */ |
---|
2931 | |
---|
2932 | int |
---|
2933 | main () |
---|
2934 | { |
---|
2935 | #ifndef __GNUC__ |
---|
2936 | choke me |
---|
2937 | #endif |
---|
2938 | |
---|
2939 | ; |
---|
2940 | return 0; |
---|
2941 | } |
---|
2942 | _ACEOF |
---|
2943 | rm -f conftest.$ac_objext |
---|
2944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2945 | (eval $ac_compile) 2>conftest.er1 |
---|
2946 | ac_status=$? |
---|
2947 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2948 | rm -f conftest.er1 |
---|
2949 | cat conftest.err >&5 |
---|
2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2951 | (exit $ac_status); } && |
---|
2952 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2953 | || test ! -s conftest.err' |
---|
2954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2955 | (eval $ac_try) 2>&5 |
---|
2956 | ac_status=$? |
---|
2957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2958 | (exit $ac_status); }; } && |
---|
2959 | { ac_try='test -s conftest.$ac_objext' |
---|
2960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2961 | (eval $ac_try) 2>&5 |
---|
2962 | ac_status=$? |
---|
2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2964 | (exit $ac_status); }; }; then |
---|
2965 | ac_compiler_gnu=yes |
---|
2966 | else |
---|
2967 | echo "$as_me: failed program was:" >&5 |
---|
2968 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2969 | |
---|
2970 | ac_compiler_gnu=no |
---|
2971 | fi |
---|
2972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2973 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2974 | |
---|
2975 | fi |
---|
2976 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2977 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2978 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2979 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2980 | ac_save_CFLAGS=$CFLAGS |
---|
2981 | CFLAGS="-g" |
---|
2982 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2983 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2984 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2986 | else |
---|
2987 | cat >conftest.$ac_ext <<_ACEOF |
---|
2988 | /* confdefs.h. */ |
---|
2989 | _ACEOF |
---|
2990 | cat confdefs.h >>conftest.$ac_ext |
---|
2991 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2992 | /* end confdefs.h. */ |
---|
2993 | |
---|
2994 | int |
---|
2995 | main () |
---|
2996 | { |
---|
2997 | |
---|
2998 | ; |
---|
2999 | return 0; |
---|
3000 | } |
---|
3001 | _ACEOF |
---|
3002 | rm -f conftest.$ac_objext |
---|
3003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3004 | (eval $ac_compile) 2>conftest.er1 |
---|
3005 | ac_status=$? |
---|
3006 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3007 | rm -f conftest.er1 |
---|
3008 | cat conftest.err >&5 |
---|
3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3010 | (exit $ac_status); } && |
---|
3011 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3012 | || test ! -s conftest.err' |
---|
3013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3014 | (eval $ac_try) 2>&5 |
---|
3015 | ac_status=$? |
---|
3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3017 | (exit $ac_status); }; } && |
---|
3018 | { ac_try='test -s conftest.$ac_objext' |
---|
3019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3020 | (eval $ac_try) 2>&5 |
---|
3021 | ac_status=$? |
---|
3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3023 | (exit $ac_status); }; }; then |
---|
3024 | ac_cv_prog_cc_g=yes |
---|
3025 | else |
---|
3026 | echo "$as_me: failed program was:" >&5 |
---|
3027 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3028 | |
---|
3029 | ac_cv_prog_cc_g=no |
---|
3030 | fi |
---|
3031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3032 | fi |
---|
3033 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3034 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
3035 | if test "$ac_test_CFLAGS" = set; then |
---|
3036 | CFLAGS=$ac_save_CFLAGS |
---|
3037 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3038 | if test "$GCC" = yes; then |
---|
3039 | CFLAGS="-g -O2" |
---|
3040 | else |
---|
3041 | CFLAGS="-g" |
---|
3042 | fi |
---|
3043 | else |
---|
3044 | if test "$GCC" = yes; then |
---|
3045 | CFLAGS="-O2" |
---|
3046 | else |
---|
3047 | CFLAGS= |
---|
3048 | fi |
---|
3049 | fi |
---|
3050 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3051 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3052 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3054 | else |
---|
3055 | ac_cv_prog_cc_stdc=no |
---|
3056 | ac_save_CC=$CC |
---|
3057 | cat >conftest.$ac_ext <<_ACEOF |
---|
3058 | /* confdefs.h. */ |
---|
3059 | _ACEOF |
---|
3060 | cat confdefs.h >>conftest.$ac_ext |
---|
3061 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3062 | /* end confdefs.h. */ |
---|
3063 | #include <stdarg.h> |
---|
3064 | #include <stdio.h> |
---|
3065 | #include <sys/types.h> |
---|
3066 | #include <sys/stat.h> |
---|
3067 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3068 | struct buf { int x; }; |
---|
3069 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3070 | static char *e (p, i) |
---|
3071 | char **p; |
---|
3072 | int i; |
---|
3073 | { |
---|
3074 | return p[i]; |
---|
3075 | } |
---|
3076 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3077 | { |
---|
3078 | char *s; |
---|
3079 | va_list v; |
---|
3080 | va_start (v,p); |
---|
3081 | s = g (p, va_arg (v,int)); |
---|
3082 | va_end (v); |
---|
3083 | return s; |
---|
3084 | } |
---|
3085 | |
---|
3086 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3087 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3088 | These don't provoke an error unfortunately, instead are silently treated |
---|
3089 | as 'x'. The following induces an error, until -std1 is added to get |
---|
3090 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3091 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3092 | that's true only with -std1. */ |
---|
3093 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3094 | |
---|
3095 | int test (int i, double x); |
---|
3096 | struct s1 {int (*f) (int a);}; |
---|
3097 | struct s2 {int (*f) (double a);}; |
---|
3098 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3099 | int argc; |
---|
3100 | char **argv; |
---|
3101 | int |
---|
3102 | main () |
---|
3103 | { |
---|
3104 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3105 | ; |
---|
3106 | return 0; |
---|
3107 | } |
---|
3108 | _ACEOF |
---|
3109 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3110 | # breaks some systems' header files. |
---|
3111 | # AIX -qlanglvl=ansi |
---|
3112 | # Ultrix and OSF/1 -std1 |
---|
3113 | # HP-UX 10.20 and later -Ae |
---|
3114 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3115 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3116 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3117 | do |
---|
3118 | CC="$ac_save_CC $ac_arg" |
---|
3119 | rm -f conftest.$ac_objext |
---|
3120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3121 | (eval $ac_compile) 2>conftest.er1 |
---|
3122 | ac_status=$? |
---|
3123 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3124 | rm -f conftest.er1 |
---|
3125 | cat conftest.err >&5 |
---|
3126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3127 | (exit $ac_status); } && |
---|
3128 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3129 | || test ! -s conftest.err' |
---|
3130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3131 | (eval $ac_try) 2>&5 |
---|
3132 | ac_status=$? |
---|
3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3134 | (exit $ac_status); }; } && |
---|
3135 | { ac_try='test -s conftest.$ac_objext' |
---|
3136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3137 | (eval $ac_try) 2>&5 |
---|
3138 | ac_status=$? |
---|
3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3140 | (exit $ac_status); }; }; then |
---|
3141 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3142 | break |
---|
3143 | else |
---|
3144 | echo "$as_me: failed program was:" >&5 |
---|
3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3146 | |
---|
3147 | fi |
---|
3148 | rm -f conftest.err conftest.$ac_objext |
---|
3149 | done |
---|
3150 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3151 | CC=$ac_save_CC |
---|
3152 | |
---|
3153 | fi |
---|
3154 | |
---|
3155 | case "x$ac_cv_prog_cc_stdc" in |
---|
3156 | x|xno) |
---|
3157 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3158 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3159 | *) |
---|
3160 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3161 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3162 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3163 | esac |
---|
3164 | |
---|
3165 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3166 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3167 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3168 | # the declaration of exit, since it's the most demanding environment. |
---|
3169 | cat >conftest.$ac_ext <<_ACEOF |
---|
3170 | #ifndef __cplusplus |
---|
3171 | choke me |
---|
3172 | #endif |
---|
3173 | _ACEOF |
---|
3174 | rm -f conftest.$ac_objext |
---|
3175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3176 | (eval $ac_compile) 2>conftest.er1 |
---|
3177 | ac_status=$? |
---|
3178 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3179 | rm -f conftest.er1 |
---|
3180 | cat conftest.err >&5 |
---|
3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3182 | (exit $ac_status); } && |
---|
3183 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3184 | || test ! -s conftest.err' |
---|
3185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3186 | (eval $ac_try) 2>&5 |
---|
3187 | ac_status=$? |
---|
3188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3189 | (exit $ac_status); }; } && |
---|
3190 | { ac_try='test -s conftest.$ac_objext' |
---|
3191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3192 | (eval $ac_try) 2>&5 |
---|
3193 | ac_status=$? |
---|
3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3195 | (exit $ac_status); }; }; then |
---|
3196 | for ac_declaration in \ |
---|
3197 | '' \ |
---|
3198 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3199 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3200 | 'extern "C" void exit (int) throw ();' \ |
---|
3201 | 'extern "C" void exit (int);' \ |
---|
3202 | 'void exit (int);' |
---|
3203 | do |
---|
3204 | cat >conftest.$ac_ext <<_ACEOF |
---|
3205 | /* confdefs.h. */ |
---|
3206 | _ACEOF |
---|
3207 | cat confdefs.h >>conftest.$ac_ext |
---|
3208 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3209 | /* end confdefs.h. */ |
---|
3210 | $ac_declaration |
---|
3211 | #include <stdlib.h> |
---|
3212 | int |
---|
3213 | main () |
---|
3214 | { |
---|
3215 | exit (42); |
---|
3216 | ; |
---|
3217 | return 0; |
---|
3218 | } |
---|
3219 | _ACEOF |
---|
3220 | rm -f conftest.$ac_objext |
---|
3221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3222 | (eval $ac_compile) 2>conftest.er1 |
---|
3223 | ac_status=$? |
---|
3224 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3225 | rm -f conftest.er1 |
---|
3226 | cat conftest.err >&5 |
---|
3227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3228 | (exit $ac_status); } && |
---|
3229 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3230 | || test ! -s conftest.err' |
---|
3231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3232 | (eval $ac_try) 2>&5 |
---|
3233 | ac_status=$? |
---|
3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3235 | (exit $ac_status); }; } && |
---|
3236 | { ac_try='test -s conftest.$ac_objext' |
---|
3237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3238 | (eval $ac_try) 2>&5 |
---|
3239 | ac_status=$? |
---|
3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3241 | (exit $ac_status); }; }; then |
---|
3242 | : |
---|
3243 | else |
---|
3244 | echo "$as_me: failed program was:" >&5 |
---|
3245 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3246 | |
---|
3247 | continue |
---|
3248 | fi |
---|
3249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3250 | cat >conftest.$ac_ext <<_ACEOF |
---|
3251 | /* confdefs.h. */ |
---|
3252 | _ACEOF |
---|
3253 | cat confdefs.h >>conftest.$ac_ext |
---|
3254 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3255 | /* end confdefs.h. */ |
---|
3256 | $ac_declaration |
---|
3257 | int |
---|
3258 | main () |
---|
3259 | { |
---|
3260 | exit (42); |
---|
3261 | ; |
---|
3262 | return 0; |
---|
3263 | } |
---|
3264 | _ACEOF |
---|
3265 | rm -f conftest.$ac_objext |
---|
3266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3267 | (eval $ac_compile) 2>conftest.er1 |
---|
3268 | ac_status=$? |
---|
3269 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3270 | rm -f conftest.er1 |
---|
3271 | cat conftest.err >&5 |
---|
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3273 | (exit $ac_status); } && |
---|
3274 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3275 | || test ! -s conftest.err' |
---|
3276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3277 | (eval $ac_try) 2>&5 |
---|
3278 | ac_status=$? |
---|
3279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3280 | (exit $ac_status); }; } && |
---|
3281 | { ac_try='test -s conftest.$ac_objext' |
---|
3282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3283 | (eval $ac_try) 2>&5 |
---|
3284 | ac_status=$? |
---|
3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3286 | (exit $ac_status); }; }; then |
---|
3287 | break |
---|
3288 | else |
---|
3289 | echo "$as_me: failed program was:" >&5 |
---|
3290 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3291 | |
---|
3292 | fi |
---|
3293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3294 | done |
---|
3295 | rm -f conftest* |
---|
3296 | if test -n "$ac_declaration"; then |
---|
3297 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3298 | echo $ac_declaration >>confdefs.h |
---|
3299 | echo '#endif' >>confdefs.h |
---|
3300 | fi |
---|
3301 | |
---|
3302 | else |
---|
3303 | echo "$as_me: failed program was:" >&5 |
---|
3304 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3305 | |
---|
3306 | fi |
---|
3307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3308 | ac_ext=c |
---|
3309 | ac_cpp='$CPP $CPPFLAGS' |
---|
3310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3313 | |
---|
3314 | depcc="$CC" am_compiler_list= |
---|
3315 | |
---|
3316 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3317 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3318 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3320 | else |
---|
3321 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3322 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3323 | # making bogus files that we don't know about and never remove. For |
---|
3324 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3325 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3326 | # in D'. |
---|
3327 | mkdir conftest.dir |
---|
3328 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3329 | # using a relative directory. |
---|
3330 | cp "$am_depcomp" conftest.dir |
---|
3331 | cd conftest.dir |
---|
3332 | # We will build objects and dependencies in a subdirectory because |
---|
3333 | # it helps to detect inapplicable dependency modes. For instance |
---|
3334 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3335 | # side effect of compilation, but ICC will put the dependencies in |
---|
3336 | # the current directory while Tru64 will put them in the object |
---|
3337 | # directory. |
---|
3338 | mkdir sub |
---|
3339 | |
---|
3340 | am_cv_CC_dependencies_compiler_type=none |
---|
3341 | if test "$am_compiler_list" = ""; then |
---|
3342 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3343 | fi |
---|
3344 | for depmode in $am_compiler_list; do |
---|
3345 | # Setup a source with many dependencies, because some compilers |
---|
3346 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3347 | # we should not choose a depcomp mode which is confused by this. |
---|
3348 | # |
---|
3349 | # We need to recreate these files for each test, as the compiler may |
---|
3350 | # overwrite some of them when testing with obscure command lines. |
---|
3351 | # This happens at least with the AIX C compiler. |
---|
3352 | : > sub/conftest.c |
---|
3353 | for i in 1 2 3 4 5 6; do |
---|
3354 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3355 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3356 | # Solaris 8's {/usr,}/bin/sh. |
---|
3357 | touch sub/conftst$i.h |
---|
3358 | done |
---|
3359 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3360 | |
---|
3361 | case $depmode in |
---|
3362 | nosideeffect) |
---|
3363 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3364 | # only be used when explicitly requested |
---|
3365 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3366 | continue |
---|
3367 | else |
---|
3368 | break |
---|
3369 | fi |
---|
3370 | ;; |
---|
3371 | none) break ;; |
---|
3372 | esac |
---|
3373 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3374 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3375 | # handle `-M -o', and we need to detect this. |
---|
3376 | if depmode=$depmode \ |
---|
3377 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3378 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3379 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3380 | >/dev/null 2>conftest.err && |
---|
3381 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3382 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3383 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3384 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3385 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3386 | # that says an option was ignored or not supported. |
---|
3387 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3388 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3389 | # The diagnosis changed in icc 8.0: |
---|
3390 | # icc: Command line remark: option '-MP' not supported |
---|
3391 | if (grep 'ignoring option' conftest.err || |
---|
3392 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3393 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3394 | break |
---|
3395 | fi |
---|
3396 | fi |
---|
3397 | done |
---|
3398 | |
---|
3399 | cd .. |
---|
3400 | rm -rf conftest.dir |
---|
3401 | else |
---|
3402 | am_cv_CC_dependencies_compiler_type=none |
---|
3403 | fi |
---|
3404 | |
---|
3405 | fi |
---|
3406 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3407 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3408 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3409 | |
---|
3410 | |
---|
3411 | |
---|
3412 | if |
---|
3413 | test "x$enable_dependency_tracking" != xno \ |
---|
3414 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3415 | am__fastdepCC_TRUE= |
---|
3416 | am__fastdepCC_FALSE='#' |
---|
3417 | else |
---|
3418 | am__fastdepCC_TRUE='#' |
---|
3419 | am__fastdepCC_FALSE= |
---|
3420 | fi |
---|
3421 | |
---|
3422 | |
---|
3423 | |
---|
3424 | ac_ext=c |
---|
3425 | ac_cpp='$CPP $CPPFLAGS' |
---|
3426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3429 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3430 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3431 | # On Suns, sometimes $CPP names a directory. |
---|
3432 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3433 | CPP= |
---|
3434 | fi |
---|
3435 | if test -z "$CPP"; then |
---|
3436 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3438 | else |
---|
3439 | # Double quotes because CPP needs to be expanded |
---|
3440 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3441 | do |
---|
3442 | ac_preproc_ok=false |
---|
3443 | for ac_c_preproc_warn_flag in '' yes |
---|
3444 | do |
---|
3445 | # Use a header file that comes with gcc, so configuring glibc |
---|
3446 | # with a fresh cross-compiler works. |
---|
3447 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3448 | # <limits.h> exists even on freestanding compilers. |
---|
3449 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3450 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3451 | cat >conftest.$ac_ext <<_ACEOF |
---|
3452 | /* confdefs.h. */ |
---|
3453 | _ACEOF |
---|
3454 | cat confdefs.h >>conftest.$ac_ext |
---|
3455 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3456 | /* end confdefs.h. */ |
---|
3457 | #ifdef __STDC__ |
---|
3458 | # include <limits.h> |
---|
3459 | #else |
---|
3460 | # include <assert.h> |
---|
3461 | #endif |
---|
3462 | Syntax error |
---|
3463 | _ACEOF |
---|
3464 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3465 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3466 | ac_status=$? |
---|
3467 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3468 | rm -f conftest.er1 |
---|
3469 | cat conftest.err >&5 |
---|
3470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3471 | (exit $ac_status); } >/dev/null; then |
---|
3472 | if test -s conftest.err; then |
---|
3473 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3475 | else |
---|
3476 | ac_cpp_err= |
---|
3477 | fi |
---|
3478 | else |
---|
3479 | ac_cpp_err=yes |
---|
3480 | fi |
---|
3481 | if test -z "$ac_cpp_err"; then |
---|
3482 | : |
---|
3483 | else |
---|
3484 | echo "$as_me: failed program was:" >&5 |
---|
3485 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3486 | |
---|
3487 | # Broken: fails on valid input. |
---|
3488 | continue |
---|
3489 | fi |
---|
3490 | rm -f conftest.err conftest.$ac_ext |
---|
3491 | |
---|
3492 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3493 | # can be detected and how. |
---|
3494 | cat >conftest.$ac_ext <<_ACEOF |
---|
3495 | /* confdefs.h. */ |
---|
3496 | _ACEOF |
---|
3497 | cat confdefs.h >>conftest.$ac_ext |
---|
3498 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3499 | /* end confdefs.h. */ |
---|
3500 | #include <ac_nonexistent.h> |
---|
3501 | _ACEOF |
---|
3502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3504 | ac_status=$? |
---|
3505 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3506 | rm -f conftest.er1 |
---|
3507 | cat conftest.err >&5 |
---|
3508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3509 | (exit $ac_status); } >/dev/null; then |
---|
3510 | if test -s conftest.err; then |
---|
3511 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3512 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3513 | else |
---|
3514 | ac_cpp_err= |
---|
3515 | fi |
---|
3516 | else |
---|
3517 | ac_cpp_err=yes |
---|
3518 | fi |
---|
3519 | if test -z "$ac_cpp_err"; then |
---|
3520 | # Broken: success on invalid input. |
---|
3521 | continue |
---|
3522 | else |
---|
3523 | echo "$as_me: failed program was:" >&5 |
---|
3524 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3525 | |
---|
3526 | # Passes both tests. |
---|
3527 | ac_preproc_ok=: |
---|
3528 | break |
---|
3529 | fi |
---|
3530 | rm -f conftest.err conftest.$ac_ext |
---|
3531 | |
---|
3532 | done |
---|
3533 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3534 | rm -f conftest.err conftest.$ac_ext |
---|
3535 | if $ac_preproc_ok; then |
---|
3536 | break |
---|
3537 | fi |
---|
3538 | |
---|
3539 | done |
---|
3540 | ac_cv_prog_CPP=$CPP |
---|
3541 | |
---|
3542 | fi |
---|
3543 | CPP=$ac_cv_prog_CPP |
---|
3544 | else |
---|
3545 | ac_cv_prog_CPP=$CPP |
---|
3546 | fi |
---|
3547 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3548 | echo "${ECHO_T}$CPP" >&6 |
---|
3549 | ac_preproc_ok=false |
---|
3550 | for ac_c_preproc_warn_flag in '' yes |
---|
3551 | do |
---|
3552 | # Use a header file that comes with gcc, so configuring glibc |
---|
3553 | # with a fresh cross-compiler works. |
---|
3554 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3555 | # <limits.h> exists even on freestanding compilers. |
---|
3556 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3557 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3558 | cat >conftest.$ac_ext <<_ACEOF |
---|
3559 | /* confdefs.h. */ |
---|
3560 | _ACEOF |
---|
3561 | cat confdefs.h >>conftest.$ac_ext |
---|
3562 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3563 | /* end confdefs.h. */ |
---|
3564 | #ifdef __STDC__ |
---|
3565 | # include <limits.h> |
---|
3566 | #else |
---|
3567 | # include <assert.h> |
---|
3568 | #endif |
---|
3569 | Syntax error |
---|
3570 | _ACEOF |
---|
3571 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3572 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3573 | ac_status=$? |
---|
3574 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3575 | rm -f conftest.er1 |
---|
3576 | cat conftest.err >&5 |
---|
3577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3578 | (exit $ac_status); } >/dev/null; then |
---|
3579 | if test -s conftest.err; then |
---|
3580 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3581 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3582 | else |
---|
3583 | ac_cpp_err= |
---|
3584 | fi |
---|
3585 | else |
---|
3586 | ac_cpp_err=yes |
---|
3587 | fi |
---|
3588 | if test -z "$ac_cpp_err"; then |
---|
3589 | : |
---|
3590 | else |
---|
3591 | echo "$as_me: failed program was:" >&5 |
---|
3592 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3593 | |
---|
3594 | # Broken: fails on valid input. |
---|
3595 | continue |
---|
3596 | fi |
---|
3597 | rm -f conftest.err conftest.$ac_ext |
---|
3598 | |
---|
3599 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3600 | # can be detected and how. |
---|
3601 | cat >conftest.$ac_ext <<_ACEOF |
---|
3602 | /* confdefs.h. */ |
---|
3603 | _ACEOF |
---|
3604 | cat confdefs.h >>conftest.$ac_ext |
---|
3605 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3606 | /* end confdefs.h. */ |
---|
3607 | #include <ac_nonexistent.h> |
---|
3608 | _ACEOF |
---|
3609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3611 | ac_status=$? |
---|
3612 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3613 | rm -f conftest.er1 |
---|
3614 | cat conftest.err >&5 |
---|
3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3616 | (exit $ac_status); } >/dev/null; then |
---|
3617 | if test -s conftest.err; then |
---|
3618 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3619 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3620 | else |
---|
3621 | ac_cpp_err= |
---|
3622 | fi |
---|
3623 | else |
---|
3624 | ac_cpp_err=yes |
---|
3625 | fi |
---|
3626 | if test -z "$ac_cpp_err"; then |
---|
3627 | # Broken: success on invalid input. |
---|
3628 | continue |
---|
3629 | else |
---|
3630 | echo "$as_me: failed program was:" >&5 |
---|
3631 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3632 | |
---|
3633 | # Passes both tests. |
---|
3634 | ac_preproc_ok=: |
---|
3635 | break |
---|
3636 | fi |
---|
3637 | rm -f conftest.err conftest.$ac_ext |
---|
3638 | |
---|
3639 | done |
---|
3640 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3641 | rm -f conftest.err conftest.$ac_ext |
---|
3642 | if $ac_preproc_ok; then |
---|
3643 | : |
---|
3644 | else |
---|
3645 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3646 | See \`config.log' for more details." >&5 |
---|
3647 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3648 | See \`config.log' for more details." >&2;} |
---|
3649 | { (exit 1); exit 1; }; } |
---|
3650 | fi |
---|
3651 | |
---|
3652 | ac_ext=c |
---|
3653 | ac_cpp='$CPP $CPPFLAGS' |
---|
3654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3657 | |
---|
3658 | |
---|
3659 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3660 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3661 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3663 | else |
---|
3664 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3665 | then ac_cv_prog_egrep='grep -E' |
---|
3666 | else ac_cv_prog_egrep='egrep' |
---|
3667 | fi |
---|
3668 | fi |
---|
3669 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3670 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3671 | EGREP=$ac_cv_prog_egrep |
---|
3672 | |
---|
3673 | |
---|
3674 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3675 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3676 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3678 | else |
---|
3679 | cat >conftest.$ac_ext <<_ACEOF |
---|
3680 | /* confdefs.h. */ |
---|
3681 | _ACEOF |
---|
3682 | cat confdefs.h >>conftest.$ac_ext |
---|
3683 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3684 | /* end confdefs.h. */ |
---|
3685 | #include <stdlib.h> |
---|
3686 | #include <stdarg.h> |
---|
3687 | #include <string.h> |
---|
3688 | #include <float.h> |
---|
3689 | |
---|
3690 | int |
---|
3691 | main () |
---|
3692 | { |
---|
3693 | |
---|
3694 | ; |
---|
3695 | return 0; |
---|
3696 | } |
---|
3697 | _ACEOF |
---|
3698 | rm -f conftest.$ac_objext |
---|
3699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3700 | (eval $ac_compile) 2>conftest.er1 |
---|
3701 | ac_status=$? |
---|
3702 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3703 | rm -f conftest.er1 |
---|
3704 | cat conftest.err >&5 |
---|
3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3706 | (exit $ac_status); } && |
---|
3707 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3708 | || test ! -s conftest.err' |
---|
3709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3710 | (eval $ac_try) 2>&5 |
---|
3711 | ac_status=$? |
---|
3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3713 | (exit $ac_status); }; } && |
---|
3714 | { ac_try='test -s conftest.$ac_objext' |
---|
3715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3716 | (eval $ac_try) 2>&5 |
---|
3717 | ac_status=$? |
---|
3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3719 | (exit $ac_status); }; }; then |
---|
3720 | ac_cv_header_stdc=yes |
---|
3721 | else |
---|
3722 | echo "$as_me: failed program was:" >&5 |
---|
3723 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3724 | |
---|
3725 | ac_cv_header_stdc=no |
---|
3726 | fi |
---|
3727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3728 | |
---|
3729 | if test $ac_cv_header_stdc = yes; then |
---|
3730 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3731 | cat >conftest.$ac_ext <<_ACEOF |
---|
3732 | /* confdefs.h. */ |
---|
3733 | _ACEOF |
---|
3734 | cat confdefs.h >>conftest.$ac_ext |
---|
3735 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3736 | /* end confdefs.h. */ |
---|
3737 | #include <string.h> |
---|
3738 | |
---|
3739 | _ACEOF |
---|
3740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3741 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3742 | : |
---|
3743 | else |
---|
3744 | ac_cv_header_stdc=no |
---|
3745 | fi |
---|
3746 | rm -f conftest* |
---|
3747 | |
---|
3748 | fi |
---|
3749 | |
---|
3750 | if test $ac_cv_header_stdc = yes; then |
---|
3751 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3752 | cat >conftest.$ac_ext <<_ACEOF |
---|
3753 | /* confdefs.h. */ |
---|
3754 | _ACEOF |
---|
3755 | cat confdefs.h >>conftest.$ac_ext |
---|
3756 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3757 | /* end confdefs.h. */ |
---|
3758 | #include <stdlib.h> |
---|
3759 | |
---|
3760 | _ACEOF |
---|
3761 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3762 | $EGREP "free" >/dev/null 2>&1; then |
---|
3763 | : |
---|
3764 | else |
---|
3765 | ac_cv_header_stdc=no |
---|
3766 | fi |
---|
3767 | rm -f conftest* |
---|
3768 | |
---|
3769 | fi |
---|
3770 | |
---|
3771 | if test $ac_cv_header_stdc = yes; then |
---|
3772 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3773 | if test "$cross_compiling" = yes; then |
---|
3774 | : |
---|
3775 | else |
---|
3776 | cat >conftest.$ac_ext <<_ACEOF |
---|
3777 | /* confdefs.h. */ |
---|
3778 | _ACEOF |
---|
3779 | cat confdefs.h >>conftest.$ac_ext |
---|
3780 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3781 | /* end confdefs.h. */ |
---|
3782 | #include <ctype.h> |
---|
3783 | #if ((' ' & 0x0FF) == 0x020) |
---|
3784 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3785 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3786 | #else |
---|
3787 | # define ISLOWER(c) \ |
---|
3788 | (('a' <= (c) && (c) <= 'i') \ |
---|
3789 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3790 | || ('s' <= (c) && (c) <= 'z')) |
---|
3791 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3792 | #endif |
---|
3793 | |
---|
3794 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3795 | int |
---|
3796 | main () |
---|
3797 | { |
---|
3798 | int i; |
---|
3799 | for (i = 0; i < 256; i++) |
---|
3800 | if (XOR (islower (i), ISLOWER (i)) |
---|
3801 | || toupper (i) != TOUPPER (i)) |
---|
3802 | exit(2); |
---|
3803 | exit (0); |
---|
3804 | } |
---|
3805 | _ACEOF |
---|
3806 | rm -f conftest$ac_exeext |
---|
3807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3808 | (eval $ac_link) 2>&5 |
---|
3809 | ac_status=$? |
---|
3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3813 | (eval $ac_try) 2>&5 |
---|
3814 | ac_status=$? |
---|
3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3816 | (exit $ac_status); }; }; then |
---|
3817 | : |
---|
3818 | else |
---|
3819 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3820 | echo "$as_me: failed program was:" >&5 |
---|
3821 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3822 | |
---|
3823 | ( exit $ac_status ) |
---|
3824 | ac_cv_header_stdc=no |
---|
3825 | fi |
---|
3826 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3827 | fi |
---|
3828 | fi |
---|
3829 | fi |
---|
3830 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3831 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3832 | if test $ac_cv_header_stdc = yes; then |
---|
3833 | |
---|
3834 | cat >>confdefs.h <<\_ACEOF |
---|
3835 | #define STDC_HEADERS 1 |
---|
3836 | _ACEOF |
---|
3837 | |
---|
3838 | fi |
---|
3839 | |
---|
3840 | |
---|
3841 | ### CHECKING OPTIONAT ARGUMENTS |
---|
3842 | ## DEBUG-statement |
---|
3843 | DEBUG=no |
---|
3844 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
3845 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
3846 | # Check whether --enable-debug or --disable-debug was given. |
---|
3847 | if test "${enable_debug+set}" = set; then |
---|
3848 | enableval="$enable_debug" |
---|
3849 | DEBUG=$enableval |
---|
3850 | fi; |
---|
3851 | |
---|
3852 | if test "$DEBUG" = "no"; then |
---|
3853 | echo "no" |
---|
3854 | echo " -> Setting debuglevel to 1. Like this you can still see errors." |
---|
3855 | DEBUG=1 |
---|
3856 | elif test "$DEBUG" = yes; then |
---|
3857 | echo "yes" |
---|
3858 | echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!." |
---|
3859 | DEBUG=3 |
---|
3860 | else |
---|
3861 | echo "yes set to $DEBUG" |
---|
3862 | fi |
---|
3863 | |
---|
3864 | cat >>confdefs.h <<_ACEOF |
---|
3865 | #define DEBUG $DEBUG |
---|
3866 | _ACEOF |
---|
3867 | |
---|
3868 | |
---|
3869 | |
---|
3870 | |
---|
3871 | ## GTK-disabled |
---|
3872 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
3873 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
3874 | |
---|
3875 | # Check whether --with-gtk or --without-gtk was given. |
---|
3876 | if test "${with_gtk+set}" = set; then |
---|
3877 | withval="$with_gtk" |
---|
3878 | def_gtk=no |
---|
3879 | else |
---|
3880 | def_gtk=yes |
---|
3881 | fi; |
---|
3882 | if test "$def_gtk" = yes; then |
---|
3883 | echo "yes" |
---|
3884 | fi |
---|
3885 | if test "$def_gtk" = no; then |
---|
3886 | echo "no" |
---|
3887 | fi |
---|
3888 | |
---|
3889 | ## libCurl disabled? |
---|
3890 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
3891 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
3892 | |
---|
3893 | # Check whether --with-curl or --without-curl was given. |
---|
3894 | if test "${with_curl+set}" = set; then |
---|
3895 | withval="$with_curl" |
---|
3896 | def_curl=no |
---|
3897 | else |
---|
3898 | def_curl=yes |
---|
3899 | fi; |
---|
3900 | if test "$def_curl" = yes; then |
---|
3901 | echo "yes" |
---|
3902 | fi |
---|
3903 | if test "$def_curl" = no; then |
---|
3904 | echo "no" |
---|
3905 | fi |
---|
3906 | |
---|
3907 | ### SDL_image-disable |
---|
3908 | def_sdl_image=yes |
---|
3909 | echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 |
---|
3910 | echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 |
---|
3911 | |
---|
3912 | # Check whether --with-sdl_image or --without-sdl_image was given. |
---|
3913 | if test "${with_sdl_image+set}" = set; then |
---|
3914 | withval="$with_sdl_image" |
---|
3915 | def_sdl_image=no |
---|
3916 | fi; |
---|
3917 | if test "$def_sdl_image" = yes; then |
---|
3918 | echo "yes" |
---|
3919 | fi |
---|
3920 | if test "$def_sdl_image" = no; then |
---|
3921 | echo "no" |
---|
3922 | fi |
---|
3923 | |
---|
3924 | |
---|
3925 | ## PROGRAMM CHECKING |
---|
3926 | # checking for Doxygen |
---|
3927 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
3928 | set dummy doxygen; ac_word=$2 |
---|
3929 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3931 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
3932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3933 | else |
---|
3934 | case $DOXYGEN in |
---|
3935 | [\\/]* | ?:[\\/]*) |
---|
3936 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
3937 | ;; |
---|
3938 | *) |
---|
3939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3940 | for as_dir in $PATH |
---|
3941 | do |
---|
3942 | IFS=$as_save_IFS |
---|
3943 | test -z "$as_dir" && as_dir=. |
---|
3944 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3945 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3946 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
3947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3948 | break 2 |
---|
3949 | fi |
---|
3950 | done |
---|
3951 | done |
---|
3952 | |
---|
3953 | ;; |
---|
3954 | esac |
---|
3955 | fi |
---|
3956 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
3957 | |
---|
3958 | if test -n "$DOXYGEN"; then |
---|
3959 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
3960 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
3961 | else |
---|
3962 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3963 | echo "${ECHO_T}no" >&6 |
---|
3964 | fi |
---|
3965 | |
---|
3966 | |
---|
3967 | |
---|
3968 | if test $DOXYGEN; then |
---|
3969 | DOXYGEN_TRUE= |
---|
3970 | DOXYGEN_FALSE='#' |
---|
3971 | else |
---|
3972 | DOXYGEN_TRUE='#' |
---|
3973 | DOXYGEN_FALSE= |
---|
3974 | fi |
---|
3975 | |
---|
3976 | |
---|
3977 | ### CHECKING FOR SYSTEM ### |
---|
3978 | |
---|
3979 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
3980 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
3981 | ## checking for openGL-environment and other sys-specific parameters |
---|
3982 | case "$target" in |
---|
3983 | ### WINDOWS ### |
---|
3984 | *-*-mingw32*) |
---|
3985 | echo "mingw-WINDOWS detected" |
---|
3986 | |
---|
3987 | mingw="yes" |
---|
3988 | MSBITFIELDS="-mms-bitfields" |
---|
3989 | MWINDOWS="-mwindows" |
---|
3990 | |
---|
3991 | # checking gl header |
---|
3992 | #done before loop |
---|
3993 | |
---|
3994 | # checking gl header |
---|
3995 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3996 | |
---|
3997 | |
---|
3998 | |
---|
3999 | |
---|
4000 | |
---|
4001 | |
---|
4002 | |
---|
4003 | |
---|
4004 | |
---|
4005 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4006 | inttypes.h stdint.h unistd.h |
---|
4007 | do |
---|
4008 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4009 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4010 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4013 | else |
---|
4014 | cat >conftest.$ac_ext <<_ACEOF |
---|
4015 | /* confdefs.h. */ |
---|
4016 | _ACEOF |
---|
4017 | cat confdefs.h >>conftest.$ac_ext |
---|
4018 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4019 | /* end confdefs.h. */ |
---|
4020 | $ac_includes_default |
---|
4021 | |
---|
4022 | #include <$ac_header> |
---|
4023 | _ACEOF |
---|
4024 | rm -f conftest.$ac_objext |
---|
4025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4026 | (eval $ac_compile) 2>conftest.er1 |
---|
4027 | ac_status=$? |
---|
4028 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4029 | rm -f conftest.er1 |
---|
4030 | cat conftest.err >&5 |
---|
4031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4032 | (exit $ac_status); } && |
---|
4033 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4034 | || test ! -s conftest.err' |
---|
4035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4036 | (eval $ac_try) 2>&5 |
---|
4037 | ac_status=$? |
---|
4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4039 | (exit $ac_status); }; } && |
---|
4040 | { ac_try='test -s conftest.$ac_objext' |
---|
4041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4042 | (eval $ac_try) 2>&5 |
---|
4043 | ac_status=$? |
---|
4044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4045 | (exit $ac_status); }; }; then |
---|
4046 | eval "$as_ac_Header=yes" |
---|
4047 | else |
---|
4048 | echo "$as_me: failed program was:" >&5 |
---|
4049 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4050 | |
---|
4051 | eval "$as_ac_Header=no" |
---|
4052 | fi |
---|
4053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4054 | fi |
---|
4055 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4056 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4057 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4058 | cat >>confdefs.h <<_ACEOF |
---|
4059 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4060 | _ACEOF |
---|
4061 | |
---|
4062 | fi |
---|
4063 | |
---|
4064 | done |
---|
4065 | |
---|
4066 | |
---|
4067 | |
---|
4068 | for ac_header in GL/gl.h |
---|
4069 | do |
---|
4070 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4072 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4076 | fi |
---|
4077 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4078 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4079 | else |
---|
4080 | # Is the header compilable? |
---|
4081 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4082 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4083 | cat >conftest.$ac_ext <<_ACEOF |
---|
4084 | /* confdefs.h. */ |
---|
4085 | _ACEOF |
---|
4086 | cat confdefs.h >>conftest.$ac_ext |
---|
4087 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4088 | /* end confdefs.h. */ |
---|
4089 | $ac_includes_default |
---|
4090 | #include <$ac_header> |
---|
4091 | _ACEOF |
---|
4092 | rm -f conftest.$ac_objext |
---|
4093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4094 | (eval $ac_compile) 2>conftest.er1 |
---|
4095 | ac_status=$? |
---|
4096 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4097 | rm -f conftest.er1 |
---|
4098 | cat conftest.err >&5 |
---|
4099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4100 | (exit $ac_status); } && |
---|
4101 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4102 | || test ! -s conftest.err' |
---|
4103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4104 | (eval $ac_try) 2>&5 |
---|
4105 | ac_status=$? |
---|
4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4107 | (exit $ac_status); }; } && |
---|
4108 | { ac_try='test -s conftest.$ac_objext' |
---|
4109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4110 | (eval $ac_try) 2>&5 |
---|
4111 | ac_status=$? |
---|
4112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4113 | (exit $ac_status); }; }; then |
---|
4114 | ac_header_compiler=yes |
---|
4115 | else |
---|
4116 | echo "$as_me: failed program was:" >&5 |
---|
4117 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4118 | |
---|
4119 | ac_header_compiler=no |
---|
4120 | fi |
---|
4121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4122 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4123 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4124 | |
---|
4125 | # Is the header present? |
---|
4126 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4127 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4128 | cat >conftest.$ac_ext <<_ACEOF |
---|
4129 | /* confdefs.h. */ |
---|
4130 | _ACEOF |
---|
4131 | cat confdefs.h >>conftest.$ac_ext |
---|
4132 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4133 | /* end confdefs.h. */ |
---|
4134 | #include <$ac_header> |
---|
4135 | _ACEOF |
---|
4136 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4137 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4138 | ac_status=$? |
---|
4139 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4140 | rm -f conftest.er1 |
---|
4141 | cat conftest.err >&5 |
---|
4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4143 | (exit $ac_status); } >/dev/null; then |
---|
4144 | if test -s conftest.err; then |
---|
4145 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4146 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4147 | else |
---|
4148 | ac_cpp_err= |
---|
4149 | fi |
---|
4150 | else |
---|
4151 | ac_cpp_err=yes |
---|
4152 | fi |
---|
4153 | if test -z "$ac_cpp_err"; then |
---|
4154 | ac_header_preproc=yes |
---|
4155 | else |
---|
4156 | echo "$as_me: failed program was:" >&5 |
---|
4157 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4158 | |
---|
4159 | ac_header_preproc=no |
---|
4160 | fi |
---|
4161 | rm -f conftest.err conftest.$ac_ext |
---|
4162 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4163 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4164 | |
---|
4165 | # So? What about this header? |
---|
4166 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4167 | yes:no: ) |
---|
4168 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4169 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4170 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4171 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4172 | ac_header_preproc=yes |
---|
4173 | ;; |
---|
4174 | no:yes:* ) |
---|
4175 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4176 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4177 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4178 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4179 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4180 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4181 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4182 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4183 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4184 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4185 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4186 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4187 | ( |
---|
4188 | cat <<\_ASBOX |
---|
4189 | ## ---------------------------------------------- ## |
---|
4190 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4191 | ## ---------------------------------------------- ## |
---|
4192 | _ASBOX |
---|
4193 | ) | |
---|
4194 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4195 | ;; |
---|
4196 | esac |
---|
4197 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4199 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4201 | else |
---|
4202 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4203 | fi |
---|
4204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4205 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4206 | |
---|
4207 | fi |
---|
4208 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4209 | cat >>confdefs.h <<_ACEOF |
---|
4210 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4211 | _ACEOF |
---|
4212 | |
---|
4213 | else |
---|
4214 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4215 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4216 | { (exit 1); exit 1; }; } |
---|
4217 | fi |
---|
4218 | |
---|
4219 | done |
---|
4220 | |
---|
4221 | # checking for Windows openGl library |
---|
4222 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4223 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4224 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4226 | else |
---|
4227 | ac_check_lib_save_LIBS=$LIBS |
---|
4228 | LIBS="-lopengl32 $LIBS" |
---|
4229 | cat >conftest.$ac_ext <<_ACEOF |
---|
4230 | /* confdefs.h. */ |
---|
4231 | _ACEOF |
---|
4232 | cat confdefs.h >>conftest.$ac_ext |
---|
4233 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4234 | /* end confdefs.h. */ |
---|
4235 | |
---|
4236 | |
---|
4237 | int |
---|
4238 | main () |
---|
4239 | { |
---|
4240 | main (); |
---|
4241 | ; |
---|
4242 | return 0; |
---|
4243 | } |
---|
4244 | _ACEOF |
---|
4245 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4247 | (eval $ac_link) 2>conftest.er1 |
---|
4248 | ac_status=$? |
---|
4249 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4250 | rm -f conftest.er1 |
---|
4251 | cat conftest.err >&5 |
---|
4252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4253 | (exit $ac_status); } && |
---|
4254 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4255 | || test ! -s conftest.err' |
---|
4256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4257 | (eval $ac_try) 2>&5 |
---|
4258 | ac_status=$? |
---|
4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4260 | (exit $ac_status); }; } && |
---|
4261 | { ac_try='test -s conftest$ac_exeext' |
---|
4262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4263 | (eval $ac_try) 2>&5 |
---|
4264 | ac_status=$? |
---|
4265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4266 | (exit $ac_status); }; }; then |
---|
4267 | ac_cv_lib_opengl32_main=yes |
---|
4268 | else |
---|
4269 | echo "$as_me: failed program was:" >&5 |
---|
4270 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4271 | |
---|
4272 | ac_cv_lib_opengl32_main=no |
---|
4273 | fi |
---|
4274 | rm -f conftest.err conftest.$ac_objext \ |
---|
4275 | conftest$ac_exeext conftest.$ac_ext |
---|
4276 | LIBS=$ac_check_lib_save_LIBS |
---|
4277 | fi |
---|
4278 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4279 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4280 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4281 | FOUND_opengl32=yes |
---|
4282 | else |
---|
4283 | "gl/gl.h" |
---|
4284 | fi |
---|
4285 | |
---|
4286 | if test "$FOUND_opengl32" = "yes" ; then |
---|
4287 | LIBS="$LIBS -lopengl32" |
---|
4288 | else |
---|
4289 | echo "------------------" |
---|
4290 | echo "opengl not found." |
---|
4291 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4292 | echo "------------------" |
---|
4293 | exit -1 |
---|
4294 | fi |
---|
4295 | |
---|
4296 | # cheking for GLU-header |
---|
4297 | |
---|
4298 | for ac_header in GL/glu.h |
---|
4299 | do |
---|
4300 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4301 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4302 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4304 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4306 | fi |
---|
4307 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4308 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4309 | else |
---|
4310 | # Is the header compilable? |
---|
4311 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4312 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4313 | cat >conftest.$ac_ext <<_ACEOF |
---|
4314 | /* confdefs.h. */ |
---|
4315 | _ACEOF |
---|
4316 | cat confdefs.h >>conftest.$ac_ext |
---|
4317 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4318 | /* end confdefs.h. */ |
---|
4319 | $ac_includes_default |
---|
4320 | #include <$ac_header> |
---|
4321 | _ACEOF |
---|
4322 | rm -f conftest.$ac_objext |
---|
4323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4324 | (eval $ac_compile) 2>conftest.er1 |
---|
4325 | ac_status=$? |
---|
4326 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4327 | rm -f conftest.er1 |
---|
4328 | cat conftest.err >&5 |
---|
4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4330 | (exit $ac_status); } && |
---|
4331 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4332 | || test ! -s conftest.err' |
---|
4333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4334 | (eval $ac_try) 2>&5 |
---|
4335 | ac_status=$? |
---|
4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4337 | (exit $ac_status); }; } && |
---|
4338 | { ac_try='test -s conftest.$ac_objext' |
---|
4339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4340 | (eval $ac_try) 2>&5 |
---|
4341 | ac_status=$? |
---|
4342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4343 | (exit $ac_status); }; }; then |
---|
4344 | ac_header_compiler=yes |
---|
4345 | else |
---|
4346 | echo "$as_me: failed program was:" >&5 |
---|
4347 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4348 | |
---|
4349 | ac_header_compiler=no |
---|
4350 | fi |
---|
4351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4352 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4353 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4354 | |
---|
4355 | # Is the header present? |
---|
4356 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4357 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4358 | cat >conftest.$ac_ext <<_ACEOF |
---|
4359 | /* confdefs.h. */ |
---|
4360 | _ACEOF |
---|
4361 | cat confdefs.h >>conftest.$ac_ext |
---|
4362 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4363 | /* end confdefs.h. */ |
---|
4364 | #include <$ac_header> |
---|
4365 | _ACEOF |
---|
4366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4368 | ac_status=$? |
---|
4369 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4370 | rm -f conftest.er1 |
---|
4371 | cat conftest.err >&5 |
---|
4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4373 | (exit $ac_status); } >/dev/null; then |
---|
4374 | if test -s conftest.err; then |
---|
4375 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4376 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4377 | else |
---|
4378 | ac_cpp_err= |
---|
4379 | fi |
---|
4380 | else |
---|
4381 | ac_cpp_err=yes |
---|
4382 | fi |
---|
4383 | if test -z "$ac_cpp_err"; then |
---|
4384 | ac_header_preproc=yes |
---|
4385 | else |
---|
4386 | echo "$as_me: failed program was:" >&5 |
---|
4387 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4388 | |
---|
4389 | ac_header_preproc=no |
---|
4390 | fi |
---|
4391 | rm -f conftest.err conftest.$ac_ext |
---|
4392 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4393 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4394 | |
---|
4395 | # So? What about this header? |
---|
4396 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4397 | yes:no: ) |
---|
4398 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4399 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4401 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4402 | ac_header_preproc=yes |
---|
4403 | ;; |
---|
4404 | no:yes:* ) |
---|
4405 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4406 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4407 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4408 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4409 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4410 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4411 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4412 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4413 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4414 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4415 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4416 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4417 | ( |
---|
4418 | cat <<\_ASBOX |
---|
4419 | ## ---------------------------------------------- ## |
---|
4420 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4421 | ## ---------------------------------------------- ## |
---|
4422 | _ASBOX |
---|
4423 | ) | |
---|
4424 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4425 | ;; |
---|
4426 | esac |
---|
4427 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4428 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4429 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4431 | else |
---|
4432 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4433 | fi |
---|
4434 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4435 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4436 | |
---|
4437 | fi |
---|
4438 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4439 | cat >>confdefs.h <<_ACEOF |
---|
4440 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4441 | _ACEOF |
---|
4442 | |
---|
4443 | else |
---|
4444 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4445 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4446 | { (exit 1); exit 1; }; } |
---|
4447 | fi |
---|
4448 | |
---|
4449 | done |
---|
4450 | |
---|
4451 | |
---|
4452 | # checking for libGLU |
---|
4453 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4454 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4455 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4457 | else |
---|
4458 | ac_check_lib_save_LIBS=$LIBS |
---|
4459 | LIBS="-lglu32 $LIBS" |
---|
4460 | cat >conftest.$ac_ext <<_ACEOF |
---|
4461 | /* confdefs.h. */ |
---|
4462 | _ACEOF |
---|
4463 | cat confdefs.h >>conftest.$ac_ext |
---|
4464 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4465 | /* end confdefs.h. */ |
---|
4466 | |
---|
4467 | |
---|
4468 | int |
---|
4469 | main () |
---|
4470 | { |
---|
4471 | main (); |
---|
4472 | ; |
---|
4473 | return 0; |
---|
4474 | } |
---|
4475 | _ACEOF |
---|
4476 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4478 | (eval $ac_link) 2>conftest.er1 |
---|
4479 | ac_status=$? |
---|
4480 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4481 | rm -f conftest.er1 |
---|
4482 | cat conftest.err >&5 |
---|
4483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4484 | (exit $ac_status); } && |
---|
4485 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4486 | || test ! -s conftest.err' |
---|
4487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4488 | (eval $ac_try) 2>&5 |
---|
4489 | ac_status=$? |
---|
4490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4491 | (exit $ac_status); }; } && |
---|
4492 | { ac_try='test -s conftest$ac_exeext' |
---|
4493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4494 | (eval $ac_try) 2>&5 |
---|
4495 | ac_status=$? |
---|
4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4497 | (exit $ac_status); }; }; then |
---|
4498 | ac_cv_lib_glu32_main=yes |
---|
4499 | else |
---|
4500 | echo "$as_me: failed program was:" >&5 |
---|
4501 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4502 | |
---|
4503 | ac_cv_lib_glu32_main=no |
---|
4504 | fi |
---|
4505 | rm -f conftest.err conftest.$ac_objext \ |
---|
4506 | conftest$ac_exeext conftest.$ac_ext |
---|
4507 | LIBS=$ac_check_lib_save_LIBS |
---|
4508 | fi |
---|
4509 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4510 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4511 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4512 | FOUND_glu32=yes |
---|
4513 | fi |
---|
4514 | |
---|
4515 | if test "$FOUND_glu32" = "yes" ; then |
---|
4516 | LIBS="$LIBS -lGLU32" |
---|
4517 | else |
---|
4518 | echo "------------------" |
---|
4519 | echo "GLU library not found." |
---|
4520 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4521 | echo "------------------" |
---|
4522 | exit -1 |
---|
4523 | fi |
---|
4524 | |
---|
4525 | # checking for mingw32 |
---|
4526 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4527 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4528 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4530 | else |
---|
4531 | ac_check_lib_save_LIBS=$LIBS |
---|
4532 | LIBS="-lmingw32 $LIBS" |
---|
4533 | cat >conftest.$ac_ext <<_ACEOF |
---|
4534 | /* confdefs.h. */ |
---|
4535 | _ACEOF |
---|
4536 | cat confdefs.h >>conftest.$ac_ext |
---|
4537 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4538 | /* end confdefs.h. */ |
---|
4539 | |
---|
4540 | |
---|
4541 | int |
---|
4542 | main () |
---|
4543 | { |
---|
4544 | main (); |
---|
4545 | ; |
---|
4546 | return 0; |
---|
4547 | } |
---|
4548 | _ACEOF |
---|
4549 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4551 | (eval $ac_link) 2>conftest.er1 |
---|
4552 | ac_status=$? |
---|
4553 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4554 | rm -f conftest.er1 |
---|
4555 | cat conftest.err >&5 |
---|
4556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4557 | (exit $ac_status); } && |
---|
4558 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4559 | || test ! -s conftest.err' |
---|
4560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4561 | (eval $ac_try) 2>&5 |
---|
4562 | ac_status=$? |
---|
4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4564 | (exit $ac_status); }; } && |
---|
4565 | { ac_try='test -s conftest$ac_exeext' |
---|
4566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4567 | (eval $ac_try) 2>&5 |
---|
4568 | ac_status=$? |
---|
4569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4570 | (exit $ac_status); }; }; then |
---|
4571 | ac_cv_lib_mingw32_main=yes |
---|
4572 | else |
---|
4573 | echo "$as_me: failed program was:" >&5 |
---|
4574 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4575 | |
---|
4576 | ac_cv_lib_mingw32_main=no |
---|
4577 | fi |
---|
4578 | rm -f conftest.err conftest.$ac_objext \ |
---|
4579 | conftest$ac_exeext conftest.$ac_ext |
---|
4580 | LIBS=$ac_check_lib_save_LIBS |
---|
4581 | fi |
---|
4582 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4583 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4584 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4585 | FOUND_mingw32=yes |
---|
4586 | fi |
---|
4587 | |
---|
4588 | if test $FOUND_mingw32 = "yes"; then |
---|
4589 | LIBS="$LIBS -lmingw32" |
---|
4590 | fi |
---|
4591 | # checking for SDL-headers |
---|
4592 | |
---|
4593 | for ac_header in SDL/SDL.h |
---|
4594 | do |
---|
4595 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4597 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4601 | fi |
---|
4602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4603 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4604 | else |
---|
4605 | # Is the header compilable? |
---|
4606 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4607 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4608 | cat >conftest.$ac_ext <<_ACEOF |
---|
4609 | /* confdefs.h. */ |
---|
4610 | _ACEOF |
---|
4611 | cat confdefs.h >>conftest.$ac_ext |
---|
4612 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4613 | /* end confdefs.h. */ |
---|
4614 | $ac_includes_default |
---|
4615 | #include <$ac_header> |
---|
4616 | _ACEOF |
---|
4617 | rm -f conftest.$ac_objext |
---|
4618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4619 | (eval $ac_compile) 2>conftest.er1 |
---|
4620 | ac_status=$? |
---|
4621 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4622 | rm -f conftest.er1 |
---|
4623 | cat conftest.err >&5 |
---|
4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4625 | (exit $ac_status); } && |
---|
4626 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4627 | || test ! -s conftest.err' |
---|
4628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4629 | (eval $ac_try) 2>&5 |
---|
4630 | ac_status=$? |
---|
4631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4632 | (exit $ac_status); }; } && |
---|
4633 | { ac_try='test -s conftest.$ac_objext' |
---|
4634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4635 | (eval $ac_try) 2>&5 |
---|
4636 | ac_status=$? |
---|
4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4638 | (exit $ac_status); }; }; then |
---|
4639 | ac_header_compiler=yes |
---|
4640 | else |
---|
4641 | echo "$as_me: failed program was:" >&5 |
---|
4642 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4643 | |
---|
4644 | ac_header_compiler=no |
---|
4645 | fi |
---|
4646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4647 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4648 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4649 | |
---|
4650 | # Is the header present? |
---|
4651 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4652 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4653 | cat >conftest.$ac_ext <<_ACEOF |
---|
4654 | /* confdefs.h. */ |
---|
4655 | _ACEOF |
---|
4656 | cat confdefs.h >>conftest.$ac_ext |
---|
4657 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4658 | /* end confdefs.h. */ |
---|
4659 | #include <$ac_header> |
---|
4660 | _ACEOF |
---|
4661 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4662 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4663 | ac_status=$? |
---|
4664 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4665 | rm -f conftest.er1 |
---|
4666 | cat conftest.err >&5 |
---|
4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4668 | (exit $ac_status); } >/dev/null; then |
---|
4669 | if test -s conftest.err; then |
---|
4670 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4671 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4672 | else |
---|
4673 | ac_cpp_err= |
---|
4674 | fi |
---|
4675 | else |
---|
4676 | ac_cpp_err=yes |
---|
4677 | fi |
---|
4678 | if test -z "$ac_cpp_err"; then |
---|
4679 | ac_header_preproc=yes |
---|
4680 | else |
---|
4681 | echo "$as_me: failed program was:" >&5 |
---|
4682 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4683 | |
---|
4684 | ac_header_preproc=no |
---|
4685 | fi |
---|
4686 | rm -f conftest.err conftest.$ac_ext |
---|
4687 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4688 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4689 | |
---|
4690 | # So? What about this header? |
---|
4691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4692 | yes:no: ) |
---|
4693 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4694 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4695 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4696 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4697 | ac_header_preproc=yes |
---|
4698 | ;; |
---|
4699 | no:yes:* ) |
---|
4700 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4701 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4702 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4703 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4704 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4705 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4707 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4709 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4710 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4711 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4712 | ( |
---|
4713 | cat <<\_ASBOX |
---|
4714 | ## ---------------------------------------------- ## |
---|
4715 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4716 | ## ---------------------------------------------- ## |
---|
4717 | _ASBOX |
---|
4718 | ) | |
---|
4719 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4720 | ;; |
---|
4721 | esac |
---|
4722 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4723 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4726 | else |
---|
4727 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4728 | fi |
---|
4729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4730 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4731 | |
---|
4732 | fi |
---|
4733 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4734 | cat >>confdefs.h <<_ACEOF |
---|
4735 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4736 | _ACEOF |
---|
4737 | |
---|
4738 | else |
---|
4739 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4740 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4741 | { (exit 1); exit 1; }; } |
---|
4742 | fi |
---|
4743 | |
---|
4744 | done |
---|
4745 | |
---|
4746 | |
---|
4747 | #checking for libSDL |
---|
4748 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
4749 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
4750 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
4751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4752 | else |
---|
4753 | ac_check_lib_save_LIBS=$LIBS |
---|
4754 | LIBS="-lsdlmain $LIBS" |
---|
4755 | cat >conftest.$ac_ext <<_ACEOF |
---|
4756 | /* confdefs.h. */ |
---|
4757 | _ACEOF |
---|
4758 | cat confdefs.h >>conftest.$ac_ext |
---|
4759 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4760 | /* end confdefs.h. */ |
---|
4761 | |
---|
4762 | |
---|
4763 | int |
---|
4764 | main () |
---|
4765 | { |
---|
4766 | main (); |
---|
4767 | ; |
---|
4768 | return 0; |
---|
4769 | } |
---|
4770 | _ACEOF |
---|
4771 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4773 | (eval $ac_link) 2>conftest.er1 |
---|
4774 | ac_status=$? |
---|
4775 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4776 | rm -f conftest.er1 |
---|
4777 | cat conftest.err >&5 |
---|
4778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4779 | (exit $ac_status); } && |
---|
4780 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4781 | || test ! -s conftest.err' |
---|
4782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4783 | (eval $ac_try) 2>&5 |
---|
4784 | ac_status=$? |
---|
4785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4786 | (exit $ac_status); }; } && |
---|
4787 | { ac_try='test -s conftest$ac_exeext' |
---|
4788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4789 | (eval $ac_try) 2>&5 |
---|
4790 | ac_status=$? |
---|
4791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4792 | (exit $ac_status); }; }; then |
---|
4793 | ac_cv_lib_sdlmain_main=yes |
---|
4794 | else |
---|
4795 | echo "$as_me: failed program was:" >&5 |
---|
4796 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4797 | |
---|
4798 | ac_cv_lib_sdlmain_main=no |
---|
4799 | fi |
---|
4800 | rm -f conftest.err conftest.$ac_objext \ |
---|
4801 | conftest$ac_exeext conftest.$ac_ext |
---|
4802 | LIBS=$ac_check_lib_save_LIBS |
---|
4803 | fi |
---|
4804 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
4805 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
4806 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
4807 | FOUND_sdlmain=yes |
---|
4808 | fi |
---|
4809 | |
---|
4810 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
4811 | LIBS="$LIBS -lsdlmain" |
---|
4812 | else |
---|
4813 | echo "------------------" |
---|
4814 | echo "SDL library not found." |
---|
4815 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4816 | echo "------------------" |
---|
4817 | exit 1 |
---|
4818 | fi |
---|
4819 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
4820 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
4821 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
4822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4823 | else |
---|
4824 | ac_check_lib_save_LIBS=$LIBS |
---|
4825 | LIBS="-lsdl $LIBS" |
---|
4826 | cat >conftest.$ac_ext <<_ACEOF |
---|
4827 | /* confdefs.h. */ |
---|
4828 | _ACEOF |
---|
4829 | cat confdefs.h >>conftest.$ac_ext |
---|
4830 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4831 | /* end confdefs.h. */ |
---|
4832 | |
---|
4833 | |
---|
4834 | int |
---|
4835 | main () |
---|
4836 | { |
---|
4837 | main (); |
---|
4838 | ; |
---|
4839 | return 0; |
---|
4840 | } |
---|
4841 | _ACEOF |
---|
4842 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4844 | (eval $ac_link) 2>conftest.er1 |
---|
4845 | ac_status=$? |
---|
4846 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4847 | rm -f conftest.er1 |
---|
4848 | cat conftest.err >&5 |
---|
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4850 | (exit $ac_status); } && |
---|
4851 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4852 | || test ! -s conftest.err' |
---|
4853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4854 | (eval $ac_try) 2>&5 |
---|
4855 | ac_status=$? |
---|
4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4857 | (exit $ac_status); }; } && |
---|
4858 | { ac_try='test -s conftest$ac_exeext' |
---|
4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4860 | (eval $ac_try) 2>&5 |
---|
4861 | ac_status=$? |
---|
4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4863 | (exit $ac_status); }; }; then |
---|
4864 | ac_cv_lib_sdl_main=yes |
---|
4865 | else |
---|
4866 | echo "$as_me: failed program was:" >&5 |
---|
4867 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4868 | |
---|
4869 | ac_cv_lib_sdl_main=no |
---|
4870 | fi |
---|
4871 | rm -f conftest.err conftest.$ac_objext \ |
---|
4872 | conftest$ac_exeext conftest.$ac_ext |
---|
4873 | LIBS=$ac_check_lib_save_LIBS |
---|
4874 | fi |
---|
4875 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
4876 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
4877 | if test $ac_cv_lib_sdl_main = yes; then |
---|
4878 | FOUND_sdl=yes |
---|
4879 | fi |
---|
4880 | |
---|
4881 | if test "$FOUND_sdl" = "yes" ; then |
---|
4882 | LIBS="$LIBS -lsdl" |
---|
4883 | else |
---|
4884 | echo "------------------" |
---|
4885 | echo "SDL library not found." |
---|
4886 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4887 | echo "------------------" |
---|
4888 | exit -1 |
---|
4889 | fi |
---|
4890 | |
---|
4891 | ;; |
---|
4892 | |
---|
4893 | ### LINUX ### |
---|
4894 | *-*-linux*) |
---|
4895 | echo "Linux detected" |
---|
4896 | |
---|
4897 | Linux="yes" |
---|
4898 | |
---|
4899 | CPPFLAGS="-I/usr/X11R6/include" |
---|
4900 | LDFLAGS="-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
4901 | # checking gl header |
---|
4902 | |
---|
4903 | for ac_header in GL/gl.h |
---|
4904 | do |
---|
4905 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4907 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4909 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4911 | fi |
---|
4912 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4913 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4914 | else |
---|
4915 | # Is the header compilable? |
---|
4916 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4917 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4918 | cat >conftest.$ac_ext <<_ACEOF |
---|
4919 | /* confdefs.h. */ |
---|
4920 | _ACEOF |
---|
4921 | cat confdefs.h >>conftest.$ac_ext |
---|
4922 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4923 | /* end confdefs.h. */ |
---|
4924 | $ac_includes_default |
---|
4925 | #include <$ac_header> |
---|
4926 | _ACEOF |
---|
4927 | rm -f conftest.$ac_objext |
---|
4928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4929 | (eval $ac_compile) 2>conftest.er1 |
---|
4930 | ac_status=$? |
---|
4931 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4932 | rm -f conftest.er1 |
---|
4933 | cat conftest.err >&5 |
---|
4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4935 | (exit $ac_status); } && |
---|
4936 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4937 | || test ! -s conftest.err' |
---|
4938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4939 | (eval $ac_try) 2>&5 |
---|
4940 | ac_status=$? |
---|
4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4942 | (exit $ac_status); }; } && |
---|
4943 | { ac_try='test -s conftest.$ac_objext' |
---|
4944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4945 | (eval $ac_try) 2>&5 |
---|
4946 | ac_status=$? |
---|
4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4948 | (exit $ac_status); }; }; then |
---|
4949 | ac_header_compiler=yes |
---|
4950 | else |
---|
4951 | echo "$as_me: failed program was:" >&5 |
---|
4952 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4953 | |
---|
4954 | ac_header_compiler=no |
---|
4955 | fi |
---|
4956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4957 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4958 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4959 | |
---|
4960 | # Is the header present? |
---|
4961 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4962 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4963 | cat >conftest.$ac_ext <<_ACEOF |
---|
4964 | /* confdefs.h. */ |
---|
4965 | _ACEOF |
---|
4966 | cat confdefs.h >>conftest.$ac_ext |
---|
4967 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4968 | /* end confdefs.h. */ |
---|
4969 | #include <$ac_header> |
---|
4970 | _ACEOF |
---|
4971 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4972 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4973 | ac_status=$? |
---|
4974 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4975 | rm -f conftest.er1 |
---|
4976 | cat conftest.err >&5 |
---|
4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4978 | (exit $ac_status); } >/dev/null; then |
---|
4979 | if test -s conftest.err; then |
---|
4980 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4981 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4982 | else |
---|
4983 | ac_cpp_err= |
---|
4984 | fi |
---|
4985 | else |
---|
4986 | ac_cpp_err=yes |
---|
4987 | fi |
---|
4988 | if test -z "$ac_cpp_err"; then |
---|
4989 | ac_header_preproc=yes |
---|
4990 | else |
---|
4991 | echo "$as_me: failed program was:" >&5 |
---|
4992 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4993 | |
---|
4994 | ac_header_preproc=no |
---|
4995 | fi |
---|
4996 | rm -f conftest.err conftest.$ac_ext |
---|
4997 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4998 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4999 | |
---|
5000 | # So? What about this header? |
---|
5001 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5002 | yes:no: ) |
---|
5003 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5004 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5005 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5006 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5007 | ac_header_preproc=yes |
---|
5008 | ;; |
---|
5009 | no:yes:* ) |
---|
5010 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5011 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5012 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5013 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5014 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5015 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5016 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5017 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5018 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5019 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5020 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5021 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5022 | ( |
---|
5023 | cat <<\_ASBOX |
---|
5024 | ## ---------------------------------------------- ## |
---|
5025 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5026 | ## ---------------------------------------------- ## |
---|
5027 | _ASBOX |
---|
5028 | ) | |
---|
5029 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5030 | ;; |
---|
5031 | esac |
---|
5032 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5033 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5036 | else |
---|
5037 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5038 | fi |
---|
5039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5040 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5041 | |
---|
5042 | fi |
---|
5043 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5044 | cat >>confdefs.h <<_ACEOF |
---|
5045 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5046 | _ACEOF |
---|
5047 | |
---|
5048 | else |
---|
5049 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5050 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5051 | { (exit 1); exit 1; }; } |
---|
5052 | fi |
---|
5053 | |
---|
5054 | done |
---|
5055 | |
---|
5056 | |
---|
5057 | # checking for Unix GL |
---|
5058 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
5059 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
5060 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
5061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5062 | else |
---|
5063 | ac_check_lib_save_LIBS=$LIBS |
---|
5064 | LIBS="-lGL $LIBS" |
---|
5065 | cat >conftest.$ac_ext <<_ACEOF |
---|
5066 | /* confdefs.h. */ |
---|
5067 | _ACEOF |
---|
5068 | cat confdefs.h >>conftest.$ac_ext |
---|
5069 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5070 | /* end confdefs.h. */ |
---|
5071 | |
---|
5072 | |
---|
5073 | int |
---|
5074 | main () |
---|
5075 | { |
---|
5076 | main (); |
---|
5077 | ; |
---|
5078 | return 0; |
---|
5079 | } |
---|
5080 | _ACEOF |
---|
5081 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5083 | (eval $ac_link) 2>conftest.er1 |
---|
5084 | ac_status=$? |
---|
5085 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5086 | rm -f conftest.er1 |
---|
5087 | cat conftest.err >&5 |
---|
5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5089 | (exit $ac_status); } && |
---|
5090 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5091 | || test ! -s conftest.err' |
---|
5092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5093 | (eval $ac_try) 2>&5 |
---|
5094 | ac_status=$? |
---|
5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5096 | (exit $ac_status); }; } && |
---|
5097 | { ac_try='test -s conftest$ac_exeext' |
---|
5098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5099 | (eval $ac_try) 2>&5 |
---|
5100 | ac_status=$? |
---|
5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5102 | (exit $ac_status); }; }; then |
---|
5103 | ac_cv_lib_GL_main=yes |
---|
5104 | else |
---|
5105 | echo "$as_me: failed program was:" >&5 |
---|
5106 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5107 | |
---|
5108 | ac_cv_lib_GL_main=no |
---|
5109 | fi |
---|
5110 | rm -f conftest.err conftest.$ac_objext \ |
---|
5111 | conftest$ac_exeext conftest.$ac_ext |
---|
5112 | LIBS=$ac_check_lib_save_LIBS |
---|
5113 | fi |
---|
5114 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
5115 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
5116 | if test $ac_cv_lib_GL_main = yes; then |
---|
5117 | FOUND_GL=yes |
---|
5118 | fi |
---|
5119 | |
---|
5120 | if test "$FOUND_GL" = "yes" ; then |
---|
5121 | LIBS="$LIBS -lGL" |
---|
5122 | else |
---|
5123 | echo "------------------" |
---|
5124 | echo "opengl not found." |
---|
5125 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
5126 | echo "------------------" |
---|
5127 | exit -1 |
---|
5128 | fi |
---|
5129 | |
---|
5130 | # cheking for GLU-header |
---|
5131 | |
---|
5132 | for ac_header in GL/glu.h |
---|
5133 | do |
---|
5134 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5136 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5140 | fi |
---|
5141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5142 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5143 | else |
---|
5144 | # Is the header compilable? |
---|
5145 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5146 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5147 | cat >conftest.$ac_ext <<_ACEOF |
---|
5148 | /* confdefs.h. */ |
---|
5149 | _ACEOF |
---|
5150 | cat confdefs.h >>conftest.$ac_ext |
---|
5151 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5152 | /* end confdefs.h. */ |
---|
5153 | $ac_includes_default |
---|
5154 | #include <$ac_header> |
---|
5155 | _ACEOF |
---|
5156 | rm -f conftest.$ac_objext |
---|
5157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5158 | (eval $ac_compile) 2>conftest.er1 |
---|
5159 | ac_status=$? |
---|
5160 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5161 | rm -f conftest.er1 |
---|
5162 | cat conftest.err >&5 |
---|
5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5164 | (exit $ac_status); } && |
---|
5165 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5166 | || test ! -s conftest.err' |
---|
5167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5168 | (eval $ac_try) 2>&5 |
---|
5169 | ac_status=$? |
---|
5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5171 | (exit $ac_status); }; } && |
---|
5172 | { ac_try='test -s conftest.$ac_objext' |
---|
5173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5174 | (eval $ac_try) 2>&5 |
---|
5175 | ac_status=$? |
---|
5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5177 | (exit $ac_status); }; }; then |
---|
5178 | ac_header_compiler=yes |
---|
5179 | else |
---|
5180 | echo "$as_me: failed program was:" >&5 |
---|
5181 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5182 | |
---|
5183 | ac_header_compiler=no |
---|
5184 | fi |
---|
5185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5186 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5187 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5188 | |
---|
5189 | # Is the header present? |
---|
5190 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5191 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5192 | cat >conftest.$ac_ext <<_ACEOF |
---|
5193 | /* confdefs.h. */ |
---|
5194 | _ACEOF |
---|
5195 | cat confdefs.h >>conftest.$ac_ext |
---|
5196 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5197 | /* end confdefs.h. */ |
---|
5198 | #include <$ac_header> |
---|
5199 | _ACEOF |
---|
5200 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5201 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5202 | ac_status=$? |
---|
5203 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5204 | rm -f conftest.er1 |
---|
5205 | cat conftest.err >&5 |
---|
5206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5207 | (exit $ac_status); } >/dev/null; then |
---|
5208 | if test -s conftest.err; then |
---|
5209 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5210 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5211 | else |
---|
5212 | ac_cpp_err= |
---|
5213 | fi |
---|
5214 | else |
---|
5215 | ac_cpp_err=yes |
---|
5216 | fi |
---|
5217 | if test -z "$ac_cpp_err"; then |
---|
5218 | ac_header_preproc=yes |
---|
5219 | else |
---|
5220 | echo "$as_me: failed program was:" >&5 |
---|
5221 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5222 | |
---|
5223 | ac_header_preproc=no |
---|
5224 | fi |
---|
5225 | rm -f conftest.err conftest.$ac_ext |
---|
5226 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5227 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5228 | |
---|
5229 | # So? What about this header? |
---|
5230 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5231 | yes:no: ) |
---|
5232 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5233 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5234 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5235 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5236 | ac_header_preproc=yes |
---|
5237 | ;; |
---|
5238 | no:yes:* ) |
---|
5239 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5240 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5241 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5242 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5243 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5244 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5245 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5246 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5248 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5249 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5250 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5251 | ( |
---|
5252 | cat <<\_ASBOX |
---|
5253 | ## ---------------------------------------------- ## |
---|
5254 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5255 | ## ---------------------------------------------- ## |
---|
5256 | _ASBOX |
---|
5257 | ) | |
---|
5258 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5259 | ;; |
---|
5260 | esac |
---|
5261 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5262 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5263 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5265 | else |
---|
5266 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5267 | fi |
---|
5268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5270 | |
---|
5271 | fi |
---|
5272 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5273 | cat >>confdefs.h <<_ACEOF |
---|
5274 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5275 | _ACEOF |
---|
5276 | |
---|
5277 | else |
---|
5278 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5279 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5280 | { (exit 1); exit 1; }; } |
---|
5281 | fi |
---|
5282 | |
---|
5283 | done |
---|
5284 | |
---|
5285 | |
---|
5286 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
5287 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
5288 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
5289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5290 | else |
---|
5291 | ac_check_lib_save_LIBS=$LIBS |
---|
5292 | LIBS="-lGLU $LIBS" |
---|
5293 | cat >conftest.$ac_ext <<_ACEOF |
---|
5294 | /* confdefs.h. */ |
---|
5295 | _ACEOF |
---|
5296 | cat confdefs.h >>conftest.$ac_ext |
---|
5297 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5298 | /* end confdefs.h. */ |
---|
5299 | |
---|
5300 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5301 | #ifdef __cplusplus |
---|
5302 | extern "C" |
---|
5303 | #endif |
---|
5304 | /* We use char because int might match the return type of a gcc2 |
---|
5305 | builtin and then its argument prototype would still apply. */ |
---|
5306 | char gluProject (); |
---|
5307 | int |
---|
5308 | main () |
---|
5309 | { |
---|
5310 | gluProject (); |
---|
5311 | ; |
---|
5312 | return 0; |
---|
5313 | } |
---|
5314 | _ACEOF |
---|
5315 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5317 | (eval $ac_link) 2>conftest.er1 |
---|
5318 | ac_status=$? |
---|
5319 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5320 | rm -f conftest.er1 |
---|
5321 | cat conftest.err >&5 |
---|
5322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5323 | (exit $ac_status); } && |
---|
5324 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5325 | || test ! -s conftest.err' |
---|
5326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5327 | (eval $ac_try) 2>&5 |
---|
5328 | ac_status=$? |
---|
5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5330 | (exit $ac_status); }; } && |
---|
5331 | { ac_try='test -s conftest$ac_exeext' |
---|
5332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5333 | (eval $ac_try) 2>&5 |
---|
5334 | ac_status=$? |
---|
5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5336 | (exit $ac_status); }; }; then |
---|
5337 | ac_cv_lib_GLU_gluProject=yes |
---|
5338 | else |
---|
5339 | echo "$as_me: failed program was:" >&5 |
---|
5340 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5341 | |
---|
5342 | ac_cv_lib_GLU_gluProject=no |
---|
5343 | fi |
---|
5344 | rm -f conftest.err conftest.$ac_objext \ |
---|
5345 | conftest$ac_exeext conftest.$ac_ext |
---|
5346 | LIBS=$ac_check_lib_save_LIBS |
---|
5347 | fi |
---|
5348 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
5349 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
5350 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
5351 | FOUND_GLU=yes |
---|
5352 | fi |
---|
5353 | |
---|
5354 | if test "$FOUND_GLU" = "yes" ; then |
---|
5355 | LIBS="$LIBS -lGLU" |
---|
5356 | else |
---|
5357 | echo "------------------" |
---|
5358 | echo "GLU library not found." |
---|
5359 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5360 | echo "------------------" |
---|
5361 | exit -1 |
---|
5362 | fi |
---|
5363 | |
---|
5364 | # checking for SDL-headers |
---|
5365 | |
---|
5366 | for ac_header in SDL/SDL.h |
---|
5367 | do |
---|
5368 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5369 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5374 | fi |
---|
5375 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5376 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5377 | else |
---|
5378 | # Is the header compilable? |
---|
5379 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5380 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5381 | cat >conftest.$ac_ext <<_ACEOF |
---|
5382 | /* confdefs.h. */ |
---|
5383 | _ACEOF |
---|
5384 | cat confdefs.h >>conftest.$ac_ext |
---|
5385 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5386 | /* end confdefs.h. */ |
---|
5387 | $ac_includes_default |
---|
5388 | #include <$ac_header> |
---|
5389 | _ACEOF |
---|
5390 | rm -f conftest.$ac_objext |
---|
5391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5392 | (eval $ac_compile) 2>conftest.er1 |
---|
5393 | ac_status=$? |
---|
5394 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5395 | rm -f conftest.er1 |
---|
5396 | cat conftest.err >&5 |
---|
5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5398 | (exit $ac_status); } && |
---|
5399 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5400 | || test ! -s conftest.err' |
---|
5401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5402 | (eval $ac_try) 2>&5 |
---|
5403 | ac_status=$? |
---|
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5405 | (exit $ac_status); }; } && |
---|
5406 | { ac_try='test -s conftest.$ac_objext' |
---|
5407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5408 | (eval $ac_try) 2>&5 |
---|
5409 | ac_status=$? |
---|
5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5411 | (exit $ac_status); }; }; then |
---|
5412 | ac_header_compiler=yes |
---|
5413 | else |
---|
5414 | echo "$as_me: failed program was:" >&5 |
---|
5415 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5416 | |
---|
5417 | ac_header_compiler=no |
---|
5418 | fi |
---|
5419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5420 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5421 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5422 | |
---|
5423 | # Is the header present? |
---|
5424 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5425 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5426 | cat >conftest.$ac_ext <<_ACEOF |
---|
5427 | /* confdefs.h. */ |
---|
5428 | _ACEOF |
---|
5429 | cat confdefs.h >>conftest.$ac_ext |
---|
5430 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5431 | /* end confdefs.h. */ |
---|
5432 | #include <$ac_header> |
---|
5433 | _ACEOF |
---|
5434 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5435 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5436 | ac_status=$? |
---|
5437 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5438 | rm -f conftest.er1 |
---|
5439 | cat conftest.err >&5 |
---|
5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5441 | (exit $ac_status); } >/dev/null; then |
---|
5442 | if test -s conftest.err; then |
---|
5443 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5444 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5445 | else |
---|
5446 | ac_cpp_err= |
---|
5447 | fi |
---|
5448 | else |
---|
5449 | ac_cpp_err=yes |
---|
5450 | fi |
---|
5451 | if test -z "$ac_cpp_err"; then |
---|
5452 | ac_header_preproc=yes |
---|
5453 | else |
---|
5454 | echo "$as_me: failed program was:" >&5 |
---|
5455 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5456 | |
---|
5457 | ac_header_preproc=no |
---|
5458 | fi |
---|
5459 | rm -f conftest.err conftest.$ac_ext |
---|
5460 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5461 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5462 | |
---|
5463 | # So? What about this header? |
---|
5464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5465 | yes:no: ) |
---|
5466 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5467 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5469 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5470 | ac_header_preproc=yes |
---|
5471 | ;; |
---|
5472 | no:yes:* ) |
---|
5473 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5474 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5475 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5476 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5477 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5478 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5479 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5480 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5482 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5483 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5484 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5485 | ( |
---|
5486 | cat <<\_ASBOX |
---|
5487 | ## ---------------------------------------------- ## |
---|
5488 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5489 | ## ---------------------------------------------- ## |
---|
5490 | _ASBOX |
---|
5491 | ) | |
---|
5492 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5493 | ;; |
---|
5494 | esac |
---|
5495 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5496 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5497 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5499 | else |
---|
5500 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5501 | fi |
---|
5502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5503 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5504 | |
---|
5505 | fi |
---|
5506 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5507 | cat >>confdefs.h <<_ACEOF |
---|
5508 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5509 | _ACEOF |
---|
5510 | |
---|
5511 | else |
---|
5512 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
5513 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
5514 | { (exit 1); exit 1; }; } |
---|
5515 | fi |
---|
5516 | |
---|
5517 | done |
---|
5518 | |
---|
5519 | |
---|
5520 | # checking for SDL-lib |
---|
5521 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
5522 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
5523 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
5524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5525 | else |
---|
5526 | ac_check_lib_save_LIBS=$LIBS |
---|
5527 | LIBS="-lSDL $LIBS" |
---|
5528 | cat >conftest.$ac_ext <<_ACEOF |
---|
5529 | /* confdefs.h. */ |
---|
5530 | _ACEOF |
---|
5531 | cat confdefs.h >>conftest.$ac_ext |
---|
5532 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5533 | /* end confdefs.h. */ |
---|
5534 | |
---|
5535 | |
---|
5536 | int |
---|
5537 | main () |
---|
5538 | { |
---|
5539 | main (); |
---|
5540 | ; |
---|
5541 | return 0; |
---|
5542 | } |
---|
5543 | _ACEOF |
---|
5544 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5546 | (eval $ac_link) 2>conftest.er1 |
---|
5547 | ac_status=$? |
---|
5548 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5549 | rm -f conftest.er1 |
---|
5550 | cat conftest.err >&5 |
---|
5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5552 | (exit $ac_status); } && |
---|
5553 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5554 | || test ! -s conftest.err' |
---|
5555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5556 | (eval $ac_try) 2>&5 |
---|
5557 | ac_status=$? |
---|
5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5559 | (exit $ac_status); }; } && |
---|
5560 | { ac_try='test -s conftest$ac_exeext' |
---|
5561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5562 | (eval $ac_try) 2>&5 |
---|
5563 | ac_status=$? |
---|
5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5565 | (exit $ac_status); }; }; then |
---|
5566 | ac_cv_lib_SDL_main=yes |
---|
5567 | else |
---|
5568 | echo "$as_me: failed program was:" >&5 |
---|
5569 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5570 | |
---|
5571 | ac_cv_lib_SDL_main=no |
---|
5572 | fi |
---|
5573 | rm -f conftest.err conftest.$ac_objext \ |
---|
5574 | conftest$ac_exeext conftest.$ac_ext |
---|
5575 | LIBS=$ac_check_lib_save_LIBS |
---|
5576 | fi |
---|
5577 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
5578 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
5579 | if test $ac_cv_lib_SDL_main = yes; then |
---|
5580 | FOUND_SDL=yes |
---|
5581 | fi |
---|
5582 | |
---|
5583 | if test "$FOUND_SDL" = "yes" ; then |
---|
5584 | LIBS="$LIBS -lSDL" |
---|
5585 | else |
---|
5586 | echo "------------------" |
---|
5587 | echo "SDL library not found." |
---|
5588 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
5589 | echo "------------------" |
---|
5590 | exit -1 |
---|
5591 | fi |
---|
5592 | |
---|
5593 | |
---|
5594 | ## checking for SDL |
---|
5595 | # SDL_VERSION=1.2.7 |
---|
5596 | # AM_PATH_SDL($SDL_VERSION, |
---|
5597 | # :, |
---|
5598 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
5599 | # ) |
---|
5600 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
5601 | # LIBS="$LIBS $SDL_LIBS" |
---|
5602 | ;; |
---|
5603 | |
---|
5604 | ### OS X ### |
---|
5605 | *darwin*) |
---|
5606 | echo "OS X detected" |
---|
5607 | |
---|
5608 | osX="yes" |
---|
5609 | |
---|
5610 | CPPFLAGS="-I/sw/include $CPPFLAGS" |
---|
5611 | # checking gl header |
---|
5612 | |
---|
5613 | for ac_header in OpenGL/gl.h |
---|
5614 | do |
---|
5615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5621 | fi |
---|
5622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5623 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5624 | else |
---|
5625 | # Is the header compilable? |
---|
5626 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5627 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5628 | cat >conftest.$ac_ext <<_ACEOF |
---|
5629 | /* confdefs.h. */ |
---|
5630 | _ACEOF |
---|
5631 | cat confdefs.h >>conftest.$ac_ext |
---|
5632 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5633 | /* end confdefs.h. */ |
---|
5634 | $ac_includes_default |
---|
5635 | #include <$ac_header> |
---|
5636 | _ACEOF |
---|
5637 | rm -f conftest.$ac_objext |
---|
5638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5639 | (eval $ac_compile) 2>conftest.er1 |
---|
5640 | ac_status=$? |
---|
5641 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5642 | rm -f conftest.er1 |
---|
5643 | cat conftest.err >&5 |
---|
5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5645 | (exit $ac_status); } && |
---|
5646 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5647 | || test ! -s conftest.err' |
---|
5648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5649 | (eval $ac_try) 2>&5 |
---|
5650 | ac_status=$? |
---|
5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5652 | (exit $ac_status); }; } && |
---|
5653 | { ac_try='test -s conftest.$ac_objext' |
---|
5654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5655 | (eval $ac_try) 2>&5 |
---|
5656 | ac_status=$? |
---|
5657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5658 | (exit $ac_status); }; }; then |
---|
5659 | ac_header_compiler=yes |
---|
5660 | else |
---|
5661 | echo "$as_me: failed program was:" >&5 |
---|
5662 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5663 | |
---|
5664 | ac_header_compiler=no |
---|
5665 | fi |
---|
5666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5667 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5668 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5669 | |
---|
5670 | # Is the header present? |
---|
5671 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5673 | cat >conftest.$ac_ext <<_ACEOF |
---|
5674 | /* confdefs.h. */ |
---|
5675 | _ACEOF |
---|
5676 | cat confdefs.h >>conftest.$ac_ext |
---|
5677 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5678 | /* end confdefs.h. */ |
---|
5679 | #include <$ac_header> |
---|
5680 | _ACEOF |
---|
5681 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5682 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5683 | ac_status=$? |
---|
5684 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5685 | rm -f conftest.er1 |
---|
5686 | cat conftest.err >&5 |
---|
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5688 | (exit $ac_status); } >/dev/null; then |
---|
5689 | if test -s conftest.err; then |
---|
5690 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5691 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5692 | else |
---|
5693 | ac_cpp_err= |
---|
5694 | fi |
---|
5695 | else |
---|
5696 | ac_cpp_err=yes |
---|
5697 | fi |
---|
5698 | if test -z "$ac_cpp_err"; then |
---|
5699 | ac_header_preproc=yes |
---|
5700 | else |
---|
5701 | echo "$as_me: failed program was:" >&5 |
---|
5702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5703 | |
---|
5704 | ac_header_preproc=no |
---|
5705 | fi |
---|
5706 | rm -f conftest.err conftest.$ac_ext |
---|
5707 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5708 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5709 | |
---|
5710 | # So? What about this header? |
---|
5711 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5712 | yes:no: ) |
---|
5713 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5714 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5716 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5717 | ac_header_preproc=yes |
---|
5718 | ;; |
---|
5719 | no:yes:* ) |
---|
5720 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5721 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5722 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5723 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5724 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5725 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5726 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5727 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5728 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5729 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5730 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5731 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5732 | ( |
---|
5733 | cat <<\_ASBOX |
---|
5734 | ## ---------------------------------------------- ## |
---|
5735 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5736 | ## ---------------------------------------------- ## |
---|
5737 | _ASBOX |
---|
5738 | ) | |
---|
5739 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5740 | ;; |
---|
5741 | esac |
---|
5742 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5746 | else |
---|
5747 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5748 | fi |
---|
5749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5750 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5751 | |
---|
5752 | fi |
---|
5753 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5754 | cat >>confdefs.h <<_ACEOF |
---|
5755 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5756 | _ACEOF |
---|
5757 | |
---|
5758 | else |
---|
5759 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5760 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5761 | { (exit 1); exit 1; }; } |
---|
5762 | fi |
---|
5763 | |
---|
5764 | done |
---|
5765 | |
---|
5766 | # cheking for GLU-header |
---|
5767 | |
---|
5768 | for ac_header in OpenGL/glu.h |
---|
5769 | do |
---|
5770 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5771 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5772 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5773 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5774 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5776 | fi |
---|
5777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5778 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5779 | else |
---|
5780 | # Is the header compilable? |
---|
5781 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5782 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5783 | cat >conftest.$ac_ext <<_ACEOF |
---|
5784 | /* confdefs.h. */ |
---|
5785 | _ACEOF |
---|
5786 | cat confdefs.h >>conftest.$ac_ext |
---|
5787 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5788 | /* end confdefs.h. */ |
---|
5789 | $ac_includes_default |
---|
5790 | #include <$ac_header> |
---|
5791 | _ACEOF |
---|
5792 | rm -f conftest.$ac_objext |
---|
5793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5794 | (eval $ac_compile) 2>conftest.er1 |
---|
5795 | ac_status=$? |
---|
5796 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5797 | rm -f conftest.er1 |
---|
5798 | cat conftest.err >&5 |
---|
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5800 | (exit $ac_status); } && |
---|
5801 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5802 | || test ! -s conftest.err' |
---|
5803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5804 | (eval $ac_try) 2>&5 |
---|
5805 | ac_status=$? |
---|
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5807 | (exit $ac_status); }; } && |
---|
5808 | { ac_try='test -s conftest.$ac_objext' |
---|
5809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5810 | (eval $ac_try) 2>&5 |
---|
5811 | ac_status=$? |
---|
5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5813 | (exit $ac_status); }; }; then |
---|
5814 | ac_header_compiler=yes |
---|
5815 | else |
---|
5816 | echo "$as_me: failed program was:" >&5 |
---|
5817 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5818 | |
---|
5819 | ac_header_compiler=no |
---|
5820 | fi |
---|
5821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5822 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5823 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5824 | |
---|
5825 | # Is the header present? |
---|
5826 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5827 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5828 | cat >conftest.$ac_ext <<_ACEOF |
---|
5829 | /* confdefs.h. */ |
---|
5830 | _ACEOF |
---|
5831 | cat confdefs.h >>conftest.$ac_ext |
---|
5832 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5833 | /* end confdefs.h. */ |
---|
5834 | #include <$ac_header> |
---|
5835 | _ACEOF |
---|
5836 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5837 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5838 | ac_status=$? |
---|
5839 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5840 | rm -f conftest.er1 |
---|
5841 | cat conftest.err >&5 |
---|
5842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5843 | (exit $ac_status); } >/dev/null; then |
---|
5844 | if test -s conftest.err; then |
---|
5845 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5846 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5847 | else |
---|
5848 | ac_cpp_err= |
---|
5849 | fi |
---|
5850 | else |
---|
5851 | ac_cpp_err=yes |
---|
5852 | fi |
---|
5853 | if test -z "$ac_cpp_err"; then |
---|
5854 | ac_header_preproc=yes |
---|
5855 | else |
---|
5856 | echo "$as_me: failed program was:" >&5 |
---|
5857 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5858 | |
---|
5859 | ac_header_preproc=no |
---|
5860 | fi |
---|
5861 | rm -f conftest.err conftest.$ac_ext |
---|
5862 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5863 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5864 | |
---|
5865 | # So? What about this header? |
---|
5866 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5867 | yes:no: ) |
---|
5868 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5869 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5870 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5871 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5872 | ac_header_preproc=yes |
---|
5873 | ;; |
---|
5874 | no:yes:* ) |
---|
5875 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5876 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5877 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5878 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5879 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5880 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5881 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5882 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5883 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5884 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5885 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5886 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5887 | ( |
---|
5888 | cat <<\_ASBOX |
---|
5889 | ## ---------------------------------------------- ## |
---|
5890 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5891 | ## ---------------------------------------------- ## |
---|
5892 | _ASBOX |
---|
5893 | ) | |
---|
5894 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5895 | ;; |
---|
5896 | esac |
---|
5897 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5898 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5899 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5901 | else |
---|
5902 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5903 | fi |
---|
5904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5905 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5906 | |
---|
5907 | fi |
---|
5908 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5909 | cat >>confdefs.h <<_ACEOF |
---|
5910 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5911 | _ACEOF |
---|
5912 | |
---|
5913 | else |
---|
5914 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5915 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5916 | { (exit 1); exit 1; }; } |
---|
5917 | fi |
---|
5918 | |
---|
5919 | done |
---|
5920 | |
---|
5921 | |
---|
5922 | LIBS="$LIBS -framework OpenGL" |
---|
5923 | |
---|
5924 | # checking for SDL-headers |
---|
5925 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
5926 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
5927 | |
---|
5928 | ## checking for SDL |
---|
5929 | # SDL_VERSION=1.2.7 |
---|
5930 | # AM_PATH_SDL($SDL_VERSION, |
---|
5931 | # :, |
---|
5932 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
5933 | # ) |
---|
5934 | |
---|
5935 | SDL_CFLAGS=`sdl-config --cflags` |
---|
5936 | SDL_LIBS=`sdl-config --libs` |
---|
5937 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
5938 | LIBS="$LIBS $SDL_LIBS" |
---|
5939 | |
---|
5940 | ;; |
---|
5941 | |
---|
5942 | *) |
---|
5943 | ;; |
---|
5944 | esac |
---|
5945 | |
---|
5946 | |
---|
5947 | |
---|
5948 | ## check for SDL_Image |
---|
5949 | if test "$def_sdl_image" = "yes"; then |
---|
5950 | # checking for SDL_image-headers |
---|
5951 | |
---|
5952 | for ac_header in SDL/SDL_image.h |
---|
5953 | do |
---|
5954 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5955 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5956 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5957 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5958 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5960 | fi |
---|
5961 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5962 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5963 | else |
---|
5964 | # Is the header compilable? |
---|
5965 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5966 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5967 | cat >conftest.$ac_ext <<_ACEOF |
---|
5968 | /* confdefs.h. */ |
---|
5969 | _ACEOF |
---|
5970 | cat confdefs.h >>conftest.$ac_ext |
---|
5971 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5972 | /* end confdefs.h. */ |
---|
5973 | $ac_includes_default |
---|
5974 | #include <$ac_header> |
---|
5975 | _ACEOF |
---|
5976 | rm -f conftest.$ac_objext |
---|
5977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5978 | (eval $ac_compile) 2>conftest.er1 |
---|
5979 | ac_status=$? |
---|
5980 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5981 | rm -f conftest.er1 |
---|
5982 | cat conftest.err >&5 |
---|
5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5984 | (exit $ac_status); } && |
---|
5985 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5986 | || test ! -s conftest.err' |
---|
5987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5988 | (eval $ac_try) 2>&5 |
---|
5989 | ac_status=$? |
---|
5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5991 | (exit $ac_status); }; } && |
---|
5992 | { ac_try='test -s conftest.$ac_objext' |
---|
5993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5994 | (eval $ac_try) 2>&5 |
---|
5995 | ac_status=$? |
---|
5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5997 | (exit $ac_status); }; }; then |
---|
5998 | ac_header_compiler=yes |
---|
5999 | else |
---|
6000 | echo "$as_me: failed program was:" >&5 |
---|
6001 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6002 | |
---|
6003 | ac_header_compiler=no |
---|
6004 | fi |
---|
6005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6006 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6007 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6008 | |
---|
6009 | # Is the header present? |
---|
6010 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6011 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6012 | cat >conftest.$ac_ext <<_ACEOF |
---|
6013 | /* confdefs.h. */ |
---|
6014 | _ACEOF |
---|
6015 | cat confdefs.h >>conftest.$ac_ext |
---|
6016 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6017 | /* end confdefs.h. */ |
---|
6018 | #include <$ac_header> |
---|
6019 | _ACEOF |
---|
6020 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6021 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6022 | ac_status=$? |
---|
6023 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6024 | rm -f conftest.er1 |
---|
6025 | cat conftest.err >&5 |
---|
6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6027 | (exit $ac_status); } >/dev/null; then |
---|
6028 | if test -s conftest.err; then |
---|
6029 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6030 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6031 | else |
---|
6032 | ac_cpp_err= |
---|
6033 | fi |
---|
6034 | else |
---|
6035 | ac_cpp_err=yes |
---|
6036 | fi |
---|
6037 | if test -z "$ac_cpp_err"; then |
---|
6038 | ac_header_preproc=yes |
---|
6039 | else |
---|
6040 | echo "$as_me: failed program was:" >&5 |
---|
6041 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6042 | |
---|
6043 | ac_header_preproc=no |
---|
6044 | fi |
---|
6045 | rm -f conftest.err conftest.$ac_ext |
---|
6046 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6047 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6048 | |
---|
6049 | # So? What about this header? |
---|
6050 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6051 | yes:no: ) |
---|
6052 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6053 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6055 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6056 | ac_header_preproc=yes |
---|
6057 | ;; |
---|
6058 | no:yes:* ) |
---|
6059 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6060 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6061 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6062 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6063 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6064 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6065 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6066 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6068 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6069 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6070 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6071 | ( |
---|
6072 | cat <<\_ASBOX |
---|
6073 | ## ---------------------------------------------- ## |
---|
6074 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6075 | ## ---------------------------------------------- ## |
---|
6076 | _ASBOX |
---|
6077 | ) | |
---|
6078 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6079 | ;; |
---|
6080 | esac |
---|
6081 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6082 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6083 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6085 | else |
---|
6086 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6087 | fi |
---|
6088 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6089 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6090 | |
---|
6091 | fi |
---|
6092 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6093 | cat >>confdefs.h <<_ACEOF |
---|
6094 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6095 | _ACEOF |
---|
6096 | |
---|
6097 | else |
---|
6098 | echo "sdl_image not found. falling back to other options"; def_sdl_image=no |
---|
6099 | fi |
---|
6100 | |
---|
6101 | done |
---|
6102 | |
---|
6103 | fi |
---|
6104 | if test "$def_sdl_image" = "yes"; then |
---|
6105 | # checking for SDL_image-lib |
---|
6106 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
6107 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
6108 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
6109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6110 | else |
---|
6111 | ac_check_lib_save_LIBS=$LIBS |
---|
6112 | LIBS="-lSDL_image $LIBS" |
---|
6113 | cat >conftest.$ac_ext <<_ACEOF |
---|
6114 | /* confdefs.h. */ |
---|
6115 | _ACEOF |
---|
6116 | cat confdefs.h >>conftest.$ac_ext |
---|
6117 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6118 | /* end confdefs.h. */ |
---|
6119 | |
---|
6120 | |
---|
6121 | int |
---|
6122 | main () |
---|
6123 | { |
---|
6124 | main (); |
---|
6125 | ; |
---|
6126 | return 0; |
---|
6127 | } |
---|
6128 | _ACEOF |
---|
6129 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6131 | (eval $ac_link) 2>conftest.er1 |
---|
6132 | ac_status=$? |
---|
6133 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6134 | rm -f conftest.er1 |
---|
6135 | cat conftest.err >&5 |
---|
6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6137 | (exit $ac_status); } && |
---|
6138 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6139 | || test ! -s conftest.err' |
---|
6140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6141 | (eval $ac_try) 2>&5 |
---|
6142 | ac_status=$? |
---|
6143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6144 | (exit $ac_status); }; } && |
---|
6145 | { ac_try='test -s conftest$ac_exeext' |
---|
6146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6147 | (eval $ac_try) 2>&5 |
---|
6148 | ac_status=$? |
---|
6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6150 | (exit $ac_status); }; }; then |
---|
6151 | ac_cv_lib_SDL_image_main=yes |
---|
6152 | else |
---|
6153 | echo "$as_me: failed program was:" >&5 |
---|
6154 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6155 | |
---|
6156 | ac_cv_lib_SDL_image_main=no |
---|
6157 | fi |
---|
6158 | rm -f conftest.err conftest.$ac_objext \ |
---|
6159 | conftest$ac_exeext conftest.$ac_ext |
---|
6160 | LIBS=$ac_check_lib_save_LIBS |
---|
6161 | fi |
---|
6162 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
6163 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
6164 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
6165 | FOUND_SDL_image=yes |
---|
6166 | fi |
---|
6167 | |
---|
6168 | if test "$FOUND_SDL_image" = "yes" ; then |
---|
6169 | LIBS="$LIBS -lSDL_image" |
---|
6170 | else |
---|
6171 | echo "------------------" |
---|
6172 | echo "SDL_image library not found." |
---|
6173 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
6174 | echo "------------------" |
---|
6175 | exit -1 |
---|
6176 | fi |
---|
6177 | fi |
---|
6178 | |
---|
6179 | |
---|
6180 | if test "$def_sdl_image" = "no"; then |
---|
6181 | ## checking for libjpeg |
---|
6182 | |
---|
6183 | for ac_header in jpeglib.h |
---|
6184 | do |
---|
6185 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6186 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6187 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6189 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6191 | fi |
---|
6192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6193 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6194 | else |
---|
6195 | # Is the header compilable? |
---|
6196 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6197 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6198 | cat >conftest.$ac_ext <<_ACEOF |
---|
6199 | /* confdefs.h. */ |
---|
6200 | _ACEOF |
---|
6201 | cat confdefs.h >>conftest.$ac_ext |
---|
6202 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6203 | /* end confdefs.h. */ |
---|
6204 | $ac_includes_default |
---|
6205 | #include <$ac_header> |
---|
6206 | _ACEOF |
---|
6207 | rm -f conftest.$ac_objext |
---|
6208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6209 | (eval $ac_compile) 2>conftest.er1 |
---|
6210 | ac_status=$? |
---|
6211 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6212 | rm -f conftest.er1 |
---|
6213 | cat conftest.err >&5 |
---|
6214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6215 | (exit $ac_status); } && |
---|
6216 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6217 | || test ! -s conftest.err' |
---|
6218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6219 | (eval $ac_try) 2>&5 |
---|
6220 | ac_status=$? |
---|
6221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6222 | (exit $ac_status); }; } && |
---|
6223 | { ac_try='test -s conftest.$ac_objext' |
---|
6224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6225 | (eval $ac_try) 2>&5 |
---|
6226 | ac_status=$? |
---|
6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6228 | (exit $ac_status); }; }; then |
---|
6229 | ac_header_compiler=yes |
---|
6230 | else |
---|
6231 | echo "$as_me: failed program was:" >&5 |
---|
6232 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6233 | |
---|
6234 | ac_header_compiler=no |
---|
6235 | fi |
---|
6236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6237 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6238 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6239 | |
---|
6240 | # Is the header present? |
---|
6241 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6242 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6243 | cat >conftest.$ac_ext <<_ACEOF |
---|
6244 | /* confdefs.h. */ |
---|
6245 | _ACEOF |
---|
6246 | cat confdefs.h >>conftest.$ac_ext |
---|
6247 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6248 | /* end confdefs.h. */ |
---|
6249 | #include <$ac_header> |
---|
6250 | _ACEOF |
---|
6251 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6252 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6253 | ac_status=$? |
---|
6254 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6255 | rm -f conftest.er1 |
---|
6256 | cat conftest.err >&5 |
---|
6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6258 | (exit $ac_status); } >/dev/null; then |
---|
6259 | if test -s conftest.err; then |
---|
6260 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6261 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6262 | else |
---|
6263 | ac_cpp_err= |
---|
6264 | fi |
---|
6265 | else |
---|
6266 | ac_cpp_err=yes |
---|
6267 | fi |
---|
6268 | if test -z "$ac_cpp_err"; then |
---|
6269 | ac_header_preproc=yes |
---|
6270 | else |
---|
6271 | echo "$as_me: failed program was:" >&5 |
---|
6272 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6273 | |
---|
6274 | ac_header_preproc=no |
---|
6275 | fi |
---|
6276 | rm -f conftest.err conftest.$ac_ext |
---|
6277 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6278 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6279 | |
---|
6280 | # So? What about this header? |
---|
6281 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6282 | yes:no: ) |
---|
6283 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6284 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6285 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6286 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6287 | ac_header_preproc=yes |
---|
6288 | ;; |
---|
6289 | no:yes:* ) |
---|
6290 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6291 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6292 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6293 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6294 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6295 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6296 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6297 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6298 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6299 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6300 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6301 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6302 | ( |
---|
6303 | cat <<\_ASBOX |
---|
6304 | ## ---------------------------------------------- ## |
---|
6305 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6306 | ## ---------------------------------------------- ## |
---|
6307 | _ASBOX |
---|
6308 | ) | |
---|
6309 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6310 | ;; |
---|
6311 | esac |
---|
6312 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6314 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6316 | else |
---|
6317 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6318 | fi |
---|
6319 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6320 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6321 | |
---|
6322 | fi |
---|
6323 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6324 | cat >>confdefs.h <<_ACEOF |
---|
6325 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6326 | _ACEOF |
---|
6327 | jpegHeader="yes" |
---|
6328 | else |
---|
6329 | jpegHeader="no" |
---|
6330 | fi |
---|
6331 | |
---|
6332 | done |
---|
6333 | |
---|
6334 | if test $jpegHeader = "no"; then |
---|
6335 | echo " not including jpeg." |
---|
6336 | else |
---|
6337 | echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 |
---|
6338 | echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 |
---|
6339 | if test "${ac_cv_lib_jpeg_main+set}" = set; then |
---|
6340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6341 | else |
---|
6342 | ac_check_lib_save_LIBS=$LIBS |
---|
6343 | LIBS="-ljpeg $LIBS" |
---|
6344 | cat >conftest.$ac_ext <<_ACEOF |
---|
6345 | /* confdefs.h. */ |
---|
6346 | _ACEOF |
---|
6347 | cat confdefs.h >>conftest.$ac_ext |
---|
6348 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6349 | /* end confdefs.h. */ |
---|
6350 | |
---|
6351 | |
---|
6352 | int |
---|
6353 | main () |
---|
6354 | { |
---|
6355 | main (); |
---|
6356 | ; |
---|
6357 | return 0; |
---|
6358 | } |
---|
6359 | _ACEOF |
---|
6360 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6362 | (eval $ac_link) 2>conftest.er1 |
---|
6363 | ac_status=$? |
---|
6364 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6365 | rm -f conftest.er1 |
---|
6366 | cat conftest.err >&5 |
---|
6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6368 | (exit $ac_status); } && |
---|
6369 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6370 | || test ! -s conftest.err' |
---|
6371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6372 | (eval $ac_try) 2>&5 |
---|
6373 | ac_status=$? |
---|
6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6375 | (exit $ac_status); }; } && |
---|
6376 | { ac_try='test -s conftest$ac_exeext' |
---|
6377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6378 | (eval $ac_try) 2>&5 |
---|
6379 | ac_status=$? |
---|
6380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6381 | (exit $ac_status); }; }; then |
---|
6382 | ac_cv_lib_jpeg_main=yes |
---|
6383 | else |
---|
6384 | echo "$as_me: failed program was:" >&5 |
---|
6385 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6386 | |
---|
6387 | ac_cv_lib_jpeg_main=no |
---|
6388 | fi |
---|
6389 | rm -f conftest.err conftest.$ac_objext \ |
---|
6390 | conftest$ac_exeext conftest.$ac_ext |
---|
6391 | LIBS=$ac_check_lib_save_LIBS |
---|
6392 | fi |
---|
6393 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 |
---|
6394 | echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 |
---|
6395 | if test $ac_cv_lib_jpeg_main = yes; then |
---|
6396 | FOUND_jpeg=yes |
---|
6397 | fi |
---|
6398 | |
---|
6399 | if test "$FOUND_jpeg" = "yes" ; then |
---|
6400 | LIBS="$LIBS -ljpeg" |
---|
6401 | else |
---|
6402 | echo "------------------" |
---|
6403 | echo "jpeg library not found." |
---|
6404 | echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" |
---|
6405 | echo "------------------" |
---|
6406 | exit -1 |
---|
6407 | fi |
---|
6408 | fi |
---|
6409 | |
---|
6410 | ## checking for libpng |
---|
6411 | |
---|
6412 | for ac_header in png.h |
---|
6413 | do |
---|
6414 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6415 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6416 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6420 | fi |
---|
6421 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6422 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6423 | else |
---|
6424 | # Is the header compilable? |
---|
6425 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6426 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6427 | cat >conftest.$ac_ext <<_ACEOF |
---|
6428 | /* confdefs.h. */ |
---|
6429 | _ACEOF |
---|
6430 | cat confdefs.h >>conftest.$ac_ext |
---|
6431 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6432 | /* end confdefs.h. */ |
---|
6433 | $ac_includes_default |
---|
6434 | #include <$ac_header> |
---|
6435 | _ACEOF |
---|
6436 | rm -f conftest.$ac_objext |
---|
6437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6438 | (eval $ac_compile) 2>conftest.er1 |
---|
6439 | ac_status=$? |
---|
6440 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6441 | rm -f conftest.er1 |
---|
6442 | cat conftest.err >&5 |
---|
6443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6444 | (exit $ac_status); } && |
---|
6445 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6446 | || test ! -s conftest.err' |
---|
6447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6448 | (eval $ac_try) 2>&5 |
---|
6449 | ac_status=$? |
---|
6450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6451 | (exit $ac_status); }; } && |
---|
6452 | { ac_try='test -s conftest.$ac_objext' |
---|
6453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6454 | (eval $ac_try) 2>&5 |
---|
6455 | ac_status=$? |
---|
6456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6457 | (exit $ac_status); }; }; then |
---|
6458 | ac_header_compiler=yes |
---|
6459 | else |
---|
6460 | echo "$as_me: failed program was:" >&5 |
---|
6461 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6462 | |
---|
6463 | ac_header_compiler=no |
---|
6464 | fi |
---|
6465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6466 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6467 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6468 | |
---|
6469 | # Is the header present? |
---|
6470 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6471 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6472 | cat >conftest.$ac_ext <<_ACEOF |
---|
6473 | /* confdefs.h. */ |
---|
6474 | _ACEOF |
---|
6475 | cat confdefs.h >>conftest.$ac_ext |
---|
6476 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6477 | /* end confdefs.h. */ |
---|
6478 | #include <$ac_header> |
---|
6479 | _ACEOF |
---|
6480 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6481 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6482 | ac_status=$? |
---|
6483 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6484 | rm -f conftest.er1 |
---|
6485 | cat conftest.err >&5 |
---|
6486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6487 | (exit $ac_status); } >/dev/null; then |
---|
6488 | if test -s conftest.err; then |
---|
6489 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6490 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6491 | else |
---|
6492 | ac_cpp_err= |
---|
6493 | fi |
---|
6494 | else |
---|
6495 | ac_cpp_err=yes |
---|
6496 | fi |
---|
6497 | if test -z "$ac_cpp_err"; then |
---|
6498 | ac_header_preproc=yes |
---|
6499 | else |
---|
6500 | echo "$as_me: failed program was:" >&5 |
---|
6501 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6502 | |
---|
6503 | ac_header_preproc=no |
---|
6504 | fi |
---|
6505 | rm -f conftest.err conftest.$ac_ext |
---|
6506 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6507 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6508 | |
---|
6509 | # So? What about this header? |
---|
6510 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6511 | yes:no: ) |
---|
6512 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6513 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6514 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6515 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6516 | ac_header_preproc=yes |
---|
6517 | ;; |
---|
6518 | no:yes:* ) |
---|
6519 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6520 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6521 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6522 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6523 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6524 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6525 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6526 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6527 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6528 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6529 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6530 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6531 | ( |
---|
6532 | cat <<\_ASBOX |
---|
6533 | ## ---------------------------------------------- ## |
---|
6534 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6535 | ## ---------------------------------------------- ## |
---|
6536 | _ASBOX |
---|
6537 | ) | |
---|
6538 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6539 | ;; |
---|
6540 | esac |
---|
6541 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6542 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6543 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6545 | else |
---|
6546 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6547 | fi |
---|
6548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6549 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6550 | |
---|
6551 | fi |
---|
6552 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6553 | cat >>confdefs.h <<_ACEOF |
---|
6554 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6555 | _ACEOF |
---|
6556 | pngHeader="yes" |
---|
6557 | else |
---|
6558 | pngHeader="no" |
---|
6559 | fi |
---|
6560 | |
---|
6561 | done |
---|
6562 | |
---|
6563 | if test $pngHeader = "no"; then |
---|
6564 | echo " not including png." |
---|
6565 | else |
---|
6566 | echo "$as_me:$LINENO: checking for main in -lpng" >&5 |
---|
6567 | echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 |
---|
6568 | if test "${ac_cv_lib_png_main+set}" = set; then |
---|
6569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6570 | else |
---|
6571 | ac_check_lib_save_LIBS=$LIBS |
---|
6572 | LIBS="-lpng $LIBS" |
---|
6573 | cat >conftest.$ac_ext <<_ACEOF |
---|
6574 | /* confdefs.h. */ |
---|
6575 | _ACEOF |
---|
6576 | cat confdefs.h >>conftest.$ac_ext |
---|
6577 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6578 | /* end confdefs.h. */ |
---|
6579 | |
---|
6580 | |
---|
6581 | int |
---|
6582 | main () |
---|
6583 | { |
---|
6584 | main (); |
---|
6585 | ; |
---|
6586 | return 0; |
---|
6587 | } |
---|
6588 | _ACEOF |
---|
6589 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6591 | (eval $ac_link) 2>conftest.er1 |
---|
6592 | ac_status=$? |
---|
6593 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6594 | rm -f conftest.er1 |
---|
6595 | cat conftest.err >&5 |
---|
6596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6597 | (exit $ac_status); } && |
---|
6598 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6599 | || test ! -s conftest.err' |
---|
6600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6601 | (eval $ac_try) 2>&5 |
---|
6602 | ac_status=$? |
---|
6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6604 | (exit $ac_status); }; } && |
---|
6605 | { ac_try='test -s conftest$ac_exeext' |
---|
6606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6607 | (eval $ac_try) 2>&5 |
---|
6608 | ac_status=$? |
---|
6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6610 | (exit $ac_status); }; }; then |
---|
6611 | ac_cv_lib_png_main=yes |
---|
6612 | else |
---|
6613 | echo "$as_me: failed program was:" >&5 |
---|
6614 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6615 | |
---|
6616 | ac_cv_lib_png_main=no |
---|
6617 | fi |
---|
6618 | rm -f conftest.err conftest.$ac_objext \ |
---|
6619 | conftest$ac_exeext conftest.$ac_ext |
---|
6620 | LIBS=$ac_check_lib_save_LIBS |
---|
6621 | fi |
---|
6622 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 |
---|
6623 | echo "${ECHO_T}$ac_cv_lib_png_main" >&6 |
---|
6624 | if test $ac_cv_lib_png_main = yes; then |
---|
6625 | FOUND_png=yes |
---|
6626 | fi |
---|
6627 | |
---|
6628 | if test "$FOUND_png" = "yes" ; then |
---|
6629 | LIBS="$LIBS -lpng" |
---|
6630 | else |
---|
6631 | echo "------------------" |
---|
6632 | echo "png library not found." |
---|
6633 | echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" |
---|
6634 | echo "------------------" |
---|
6635 | exit -1 |
---|
6636 | fi |
---|
6637 | fi |
---|
6638 | fi |
---|
6639 | |
---|
6640 | ## checking for GTK |
---|
6641 | if test "$def_gtk" = yes; then |
---|
6642 | |
---|
6643 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
6644 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
6645 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
6646 | if `pkg-config --exists gtk+-2.0`; then |
---|
6647 | echo "yes" |
---|
6648 | have_gtk2=yes |
---|
6649 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
6650 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
6651 | |
---|
6652 | cat >>confdefs.h <<_ACEOF |
---|
6653 | #define HAVE_GTK2 1 |
---|
6654 | _ACEOF |
---|
6655 | |
---|
6656 | else |
---|
6657 | echo "no" |
---|
6658 | fi |
---|
6659 | |
---|
6660 | fi |
---|
6661 | |
---|
6662 | |
---|
6663 | |
---|
6664 | |
---|
6665 | if test x$have_gtk2 = xyes; then |
---|
6666 | HAVE_GTK2_TRUE= |
---|
6667 | HAVE_GTK2_FALSE='#' |
---|
6668 | else |
---|
6669 | HAVE_GTK2_TRUE='#' |
---|
6670 | HAVE_GTK2_FALSE= |
---|
6671 | fi |
---|
6672 | |
---|
6673 | |
---|
6674 | ## checking for libcURL |
---|
6675 | if test "$def_curl" = yes; then |
---|
6676 | |
---|
6677 | |
---|
6678 | for ac_header in curl/curl.h |
---|
6679 | do |
---|
6680 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6682 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6683 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6684 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6686 | fi |
---|
6687 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6688 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6689 | else |
---|
6690 | # Is the header compilable? |
---|
6691 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6692 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6693 | cat >conftest.$ac_ext <<_ACEOF |
---|
6694 | /* confdefs.h. */ |
---|
6695 | _ACEOF |
---|
6696 | cat confdefs.h >>conftest.$ac_ext |
---|
6697 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6698 | /* end confdefs.h. */ |
---|
6699 | $ac_includes_default |
---|
6700 | #include <$ac_header> |
---|
6701 | _ACEOF |
---|
6702 | rm -f conftest.$ac_objext |
---|
6703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6704 | (eval $ac_compile) 2>conftest.er1 |
---|
6705 | ac_status=$? |
---|
6706 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6707 | rm -f conftest.er1 |
---|
6708 | cat conftest.err >&5 |
---|
6709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6710 | (exit $ac_status); } && |
---|
6711 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6712 | || test ! -s conftest.err' |
---|
6713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6714 | (eval $ac_try) 2>&5 |
---|
6715 | ac_status=$? |
---|
6716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6717 | (exit $ac_status); }; } && |
---|
6718 | { ac_try='test -s conftest.$ac_objext' |
---|
6719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6720 | (eval $ac_try) 2>&5 |
---|
6721 | ac_status=$? |
---|
6722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6723 | (exit $ac_status); }; }; then |
---|
6724 | ac_header_compiler=yes |
---|
6725 | else |
---|
6726 | echo "$as_me: failed program was:" >&5 |
---|
6727 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6728 | |
---|
6729 | ac_header_compiler=no |
---|
6730 | fi |
---|
6731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6732 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6733 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6734 | |
---|
6735 | # Is the header present? |
---|
6736 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6737 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6738 | cat >conftest.$ac_ext <<_ACEOF |
---|
6739 | /* confdefs.h. */ |
---|
6740 | _ACEOF |
---|
6741 | cat confdefs.h >>conftest.$ac_ext |
---|
6742 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6743 | /* end confdefs.h. */ |
---|
6744 | #include <$ac_header> |
---|
6745 | _ACEOF |
---|
6746 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6747 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6748 | ac_status=$? |
---|
6749 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6750 | rm -f conftest.er1 |
---|
6751 | cat conftest.err >&5 |
---|
6752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6753 | (exit $ac_status); } >/dev/null; then |
---|
6754 | if test -s conftest.err; then |
---|
6755 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6756 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6757 | else |
---|
6758 | ac_cpp_err= |
---|
6759 | fi |
---|
6760 | else |
---|
6761 | ac_cpp_err=yes |
---|
6762 | fi |
---|
6763 | if test -z "$ac_cpp_err"; then |
---|
6764 | ac_header_preproc=yes |
---|
6765 | else |
---|
6766 | echo "$as_me: failed program was:" >&5 |
---|
6767 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6768 | |
---|
6769 | ac_header_preproc=no |
---|
6770 | fi |
---|
6771 | rm -f conftest.err conftest.$ac_ext |
---|
6772 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6773 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6774 | |
---|
6775 | # So? What about this header? |
---|
6776 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6777 | yes:no: ) |
---|
6778 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6779 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6780 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6781 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6782 | ac_header_preproc=yes |
---|
6783 | ;; |
---|
6784 | no:yes:* ) |
---|
6785 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6786 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6787 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6788 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6789 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6790 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6791 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6792 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6793 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6794 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6795 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6796 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6797 | ( |
---|
6798 | cat <<\_ASBOX |
---|
6799 | ## ---------------------------------------------- ## |
---|
6800 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6801 | ## ---------------------------------------------- ## |
---|
6802 | _ASBOX |
---|
6803 | ) | |
---|
6804 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6805 | ;; |
---|
6806 | esac |
---|
6807 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6808 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6811 | else |
---|
6812 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6813 | fi |
---|
6814 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6815 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6816 | |
---|
6817 | fi |
---|
6818 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6819 | cat >>confdefs.h <<_ACEOF |
---|
6820 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6821 | _ACEOF |
---|
6822 | curlHeader="yes" |
---|
6823 | else |
---|
6824 | curlHeader="no" |
---|
6825 | fi |
---|
6826 | |
---|
6827 | done |
---|
6828 | |
---|
6829 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
6830 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
6831 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
6832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6833 | else |
---|
6834 | ac_check_lib_save_LIBS=$LIBS |
---|
6835 | LIBS="-lcurl $LIBS" |
---|
6836 | cat >conftest.$ac_ext <<_ACEOF |
---|
6837 | /* confdefs.h. */ |
---|
6838 | _ACEOF |
---|
6839 | cat confdefs.h >>conftest.$ac_ext |
---|
6840 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6841 | /* end confdefs.h. */ |
---|
6842 | |
---|
6843 | |
---|
6844 | int |
---|
6845 | main () |
---|
6846 | { |
---|
6847 | main (); |
---|
6848 | ; |
---|
6849 | return 0; |
---|
6850 | } |
---|
6851 | _ACEOF |
---|
6852 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6854 | (eval $ac_link) 2>conftest.er1 |
---|
6855 | ac_status=$? |
---|
6856 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6857 | rm -f conftest.er1 |
---|
6858 | cat conftest.err >&5 |
---|
6859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6860 | (exit $ac_status); } && |
---|
6861 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6862 | || test ! -s conftest.err' |
---|
6863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6864 | (eval $ac_try) 2>&5 |
---|
6865 | ac_status=$? |
---|
6866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6867 | (exit $ac_status); }; } && |
---|
6868 | { ac_try='test -s conftest$ac_exeext' |
---|
6869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6870 | (eval $ac_try) 2>&5 |
---|
6871 | ac_status=$? |
---|
6872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6873 | (exit $ac_status); }; }; then |
---|
6874 | ac_cv_lib_curl_main=yes |
---|
6875 | else |
---|
6876 | echo "$as_me: failed program was:" >&5 |
---|
6877 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6878 | |
---|
6879 | ac_cv_lib_curl_main=no |
---|
6880 | fi |
---|
6881 | rm -f conftest.err conftest.$ac_objext \ |
---|
6882 | conftest$ac_exeext conftest.$ac_ext |
---|
6883 | LIBS=$ac_check_lib_save_LIBS |
---|
6884 | fi |
---|
6885 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
6886 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
6887 | if test $ac_cv_lib_curl_main = yes; then |
---|
6888 | FOUND_curl=yes |
---|
6889 | fi |
---|
6890 | |
---|
6891 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
6892 | have_curl=yes |
---|
6893 | CURL_LIBS=`curl-config --libs` |
---|
6894 | CURLCFLAGS=`curl-config --cflags` |
---|
6895 | |
---|
6896 | cat >>confdefs.h <<_ACEOF |
---|
6897 | #define HAVE_CURL 1 |
---|
6898 | _ACEOF |
---|
6899 | |
---|
6900 | else |
---|
6901 | have_curl=no |
---|
6902 | fi |
---|
6903 | |
---|
6904 | fi |
---|
6905 | |
---|
6906 | |
---|
6907 | |
---|
6908 | |
---|
6909 | if test x$have_curl = xyes; then |
---|
6910 | HAVE_CURL_TRUE= |
---|
6911 | HAVE_CURL_FALSE='#' |
---|
6912 | else |
---|
6913 | HAVE_CURL_TRUE='#' |
---|
6914 | HAVE_CURL_FALSE= |
---|
6915 | fi |
---|
6916 | |
---|
6917 | |
---|
6918 | |
---|
6919 | #checking for pthread libs |
---|
6920 | # AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes) |
---|
6921 | # if test "$FOUND_pthread" = "yes" ; then |
---|
6922 | # LIBS="$LIBS -lpthread" |
---|
6923 | # fi |
---|
6924 | |
---|
6925 | |
---|
6926 | # FIXME: Replace `main' with a function in `-lm': |
---|
6927 | |
---|
6928 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
6929 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
6930 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
6931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6932 | else |
---|
6933 | ac_check_lib_save_LIBS=$LIBS |
---|
6934 | LIBS="-lm $LIBS" |
---|
6935 | cat >conftest.$ac_ext <<_ACEOF |
---|
6936 | /* confdefs.h. */ |
---|
6937 | _ACEOF |
---|
6938 | cat confdefs.h >>conftest.$ac_ext |
---|
6939 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6940 | /* end confdefs.h. */ |
---|
6941 | |
---|
6942 | |
---|
6943 | int |
---|
6944 | main () |
---|
6945 | { |
---|
6946 | main (); |
---|
6947 | ; |
---|
6948 | return 0; |
---|
6949 | } |
---|
6950 | _ACEOF |
---|
6951 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6953 | (eval $ac_link) 2>conftest.er1 |
---|
6954 | ac_status=$? |
---|
6955 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6956 | rm -f conftest.er1 |
---|
6957 | cat conftest.err >&5 |
---|
6958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6959 | (exit $ac_status); } && |
---|
6960 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6961 | || test ! -s conftest.err' |
---|
6962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6963 | (eval $ac_try) 2>&5 |
---|
6964 | ac_status=$? |
---|
6965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6966 | (exit $ac_status); }; } && |
---|
6967 | { ac_try='test -s conftest$ac_exeext' |
---|
6968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6969 | (eval $ac_try) 2>&5 |
---|
6970 | ac_status=$? |
---|
6971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6972 | (exit $ac_status); }; }; then |
---|
6973 | ac_cv_lib_m_main=yes |
---|
6974 | else |
---|
6975 | echo "$as_me: failed program was:" >&5 |
---|
6976 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6977 | |
---|
6978 | ac_cv_lib_m_main=no |
---|
6979 | fi |
---|
6980 | rm -f conftest.err conftest.$ac_objext \ |
---|
6981 | conftest$ac_exeext conftest.$ac_ext |
---|
6982 | LIBS=$ac_check_lib_save_LIBS |
---|
6983 | fi |
---|
6984 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
6985 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
6986 | if test $ac_cv_lib_m_main = yes; then |
---|
6987 | cat >>confdefs.h <<_ACEOF |
---|
6988 | #define HAVE_LIBM 1 |
---|
6989 | _ACEOF |
---|
6990 | |
---|
6991 | LIBS="-lm $LIBS" |
---|
6992 | |
---|
6993 | fi |
---|
6994 | |
---|
6995 | |
---|
6996 | |
---|
6997 | # Checks for header files. |
---|
6998 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
6999 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
7000 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
7001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7002 | else |
---|
7003 | cat >conftest.$ac_ext <<_ACEOF |
---|
7004 | /* confdefs.h. */ |
---|
7005 | _ACEOF |
---|
7006 | cat confdefs.h >>conftest.$ac_ext |
---|
7007 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7008 | /* end confdefs.h. */ |
---|
7009 | #include <stdlib.h> |
---|
7010 | #include <stdarg.h> |
---|
7011 | #include <string.h> |
---|
7012 | #include <float.h> |
---|
7013 | |
---|
7014 | int |
---|
7015 | main () |
---|
7016 | { |
---|
7017 | |
---|
7018 | ; |
---|
7019 | return 0; |
---|
7020 | } |
---|
7021 | _ACEOF |
---|
7022 | rm -f conftest.$ac_objext |
---|
7023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7024 | (eval $ac_compile) 2>conftest.er1 |
---|
7025 | ac_status=$? |
---|
7026 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7027 | rm -f conftest.er1 |
---|
7028 | cat conftest.err >&5 |
---|
7029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7030 | (exit $ac_status); } && |
---|
7031 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7032 | || test ! -s conftest.err' |
---|
7033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7034 | (eval $ac_try) 2>&5 |
---|
7035 | ac_status=$? |
---|
7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7037 | (exit $ac_status); }; } && |
---|
7038 | { ac_try='test -s conftest.$ac_objext' |
---|
7039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7040 | (eval $ac_try) 2>&5 |
---|
7041 | ac_status=$? |
---|
7042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7043 | (exit $ac_status); }; }; then |
---|
7044 | ac_cv_header_stdc=yes |
---|
7045 | else |
---|
7046 | echo "$as_me: failed program was:" >&5 |
---|
7047 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7048 | |
---|
7049 | ac_cv_header_stdc=no |
---|
7050 | fi |
---|
7051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7052 | |
---|
7053 | if test $ac_cv_header_stdc = yes; then |
---|
7054 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
7055 | cat >conftest.$ac_ext <<_ACEOF |
---|
7056 | /* confdefs.h. */ |
---|
7057 | _ACEOF |
---|
7058 | cat confdefs.h >>conftest.$ac_ext |
---|
7059 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7060 | /* end confdefs.h. */ |
---|
7061 | #include <string.h> |
---|
7062 | |
---|
7063 | _ACEOF |
---|
7064 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7065 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
7066 | : |
---|
7067 | else |
---|
7068 | ac_cv_header_stdc=no |
---|
7069 | fi |
---|
7070 | rm -f conftest* |
---|
7071 | |
---|
7072 | fi |
---|
7073 | |
---|
7074 | if test $ac_cv_header_stdc = yes; then |
---|
7075 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
7076 | cat >conftest.$ac_ext <<_ACEOF |
---|
7077 | /* confdefs.h. */ |
---|
7078 | _ACEOF |
---|
7079 | cat confdefs.h >>conftest.$ac_ext |
---|
7080 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7081 | /* end confdefs.h. */ |
---|
7082 | #include <stdlib.h> |
---|
7083 | |
---|
7084 | _ACEOF |
---|
7085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7086 | $EGREP "free" >/dev/null 2>&1; then |
---|
7087 | : |
---|
7088 | else |
---|
7089 | ac_cv_header_stdc=no |
---|
7090 | fi |
---|
7091 | rm -f conftest* |
---|
7092 | |
---|
7093 | fi |
---|
7094 | |
---|
7095 | if test $ac_cv_header_stdc = yes; then |
---|
7096 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
7097 | if test "$cross_compiling" = yes; then |
---|
7098 | : |
---|
7099 | else |
---|
7100 | cat >conftest.$ac_ext <<_ACEOF |
---|
7101 | /* confdefs.h. */ |
---|
7102 | _ACEOF |
---|
7103 | cat confdefs.h >>conftest.$ac_ext |
---|
7104 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7105 | /* end confdefs.h. */ |
---|
7106 | #include <ctype.h> |
---|
7107 | #if ((' ' & 0x0FF) == 0x020) |
---|
7108 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
7109 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
7110 | #else |
---|
7111 | # define ISLOWER(c) \ |
---|
7112 | (('a' <= (c) && (c) <= 'i') \ |
---|
7113 | || ('j' <= (c) && (c) <= 'r') \ |
---|
7114 | || ('s' <= (c) && (c) <= 'z')) |
---|
7115 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
7116 | #endif |
---|
7117 | |
---|
7118 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
7119 | int |
---|
7120 | main () |
---|
7121 | { |
---|
7122 | int i; |
---|
7123 | for (i = 0; i < 256; i++) |
---|
7124 | if (XOR (islower (i), ISLOWER (i)) |
---|
7125 | || toupper (i) != TOUPPER (i)) |
---|
7126 | exit(2); |
---|
7127 | exit (0); |
---|
7128 | } |
---|
7129 | _ACEOF |
---|
7130 | rm -f conftest$ac_exeext |
---|
7131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7132 | (eval $ac_link) 2>&5 |
---|
7133 | ac_status=$? |
---|
7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7135 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7137 | (eval $ac_try) 2>&5 |
---|
7138 | ac_status=$? |
---|
7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7140 | (exit $ac_status); }; }; then |
---|
7141 | : |
---|
7142 | else |
---|
7143 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7144 | echo "$as_me: failed program was:" >&5 |
---|
7145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7146 | |
---|
7147 | ( exit $ac_status ) |
---|
7148 | ac_cv_header_stdc=no |
---|
7149 | fi |
---|
7150 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7151 | fi |
---|
7152 | fi |
---|
7153 | fi |
---|
7154 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
7155 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
7156 | if test $ac_cv_header_stdc = yes; then |
---|
7157 | |
---|
7158 | cat >>confdefs.h <<\_ACEOF |
---|
7159 | #define STDC_HEADERS 1 |
---|
7160 | _ACEOF |
---|
7161 | |
---|
7162 | fi |
---|
7163 | |
---|
7164 | |
---|
7165 | |
---|
7166 | for ac_header in stdlib.h string.h |
---|
7167 | do |
---|
7168 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7170 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7171 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7172 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7174 | fi |
---|
7175 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7176 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7177 | else |
---|
7178 | # Is the header compilable? |
---|
7179 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7180 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7181 | cat >conftest.$ac_ext <<_ACEOF |
---|
7182 | /* confdefs.h. */ |
---|
7183 | _ACEOF |
---|
7184 | cat confdefs.h >>conftest.$ac_ext |
---|
7185 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7186 | /* end confdefs.h. */ |
---|
7187 | $ac_includes_default |
---|
7188 | #include <$ac_header> |
---|
7189 | _ACEOF |
---|
7190 | rm -f conftest.$ac_objext |
---|
7191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7192 | (eval $ac_compile) 2>conftest.er1 |
---|
7193 | ac_status=$? |
---|
7194 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7195 | rm -f conftest.er1 |
---|
7196 | cat conftest.err >&5 |
---|
7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7198 | (exit $ac_status); } && |
---|
7199 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7200 | || test ! -s conftest.err' |
---|
7201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7202 | (eval $ac_try) 2>&5 |
---|
7203 | ac_status=$? |
---|
7204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7205 | (exit $ac_status); }; } && |
---|
7206 | { ac_try='test -s conftest.$ac_objext' |
---|
7207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7208 | (eval $ac_try) 2>&5 |
---|
7209 | ac_status=$? |
---|
7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7211 | (exit $ac_status); }; }; then |
---|
7212 | ac_header_compiler=yes |
---|
7213 | else |
---|
7214 | echo "$as_me: failed program was:" >&5 |
---|
7215 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7216 | |
---|
7217 | ac_header_compiler=no |
---|
7218 | fi |
---|
7219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7220 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7221 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7222 | |
---|
7223 | # Is the header present? |
---|
7224 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7225 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7226 | cat >conftest.$ac_ext <<_ACEOF |
---|
7227 | /* confdefs.h. */ |
---|
7228 | _ACEOF |
---|
7229 | cat confdefs.h >>conftest.$ac_ext |
---|
7230 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7231 | /* end confdefs.h. */ |
---|
7232 | #include <$ac_header> |
---|
7233 | _ACEOF |
---|
7234 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7235 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7236 | ac_status=$? |
---|
7237 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7238 | rm -f conftest.er1 |
---|
7239 | cat conftest.err >&5 |
---|
7240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7241 | (exit $ac_status); } >/dev/null; then |
---|
7242 | if test -s conftest.err; then |
---|
7243 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7244 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7245 | else |
---|
7246 | ac_cpp_err= |
---|
7247 | fi |
---|
7248 | else |
---|
7249 | ac_cpp_err=yes |
---|
7250 | fi |
---|
7251 | if test -z "$ac_cpp_err"; then |
---|
7252 | ac_header_preproc=yes |
---|
7253 | else |
---|
7254 | echo "$as_me: failed program was:" >&5 |
---|
7255 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7256 | |
---|
7257 | ac_header_preproc=no |
---|
7258 | fi |
---|
7259 | rm -f conftest.err conftest.$ac_ext |
---|
7260 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7261 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7262 | |
---|
7263 | # So? What about this header? |
---|
7264 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7265 | yes:no: ) |
---|
7266 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7267 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7269 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7270 | ac_header_preproc=yes |
---|
7271 | ;; |
---|
7272 | no:yes:* ) |
---|
7273 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7274 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7275 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7276 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7277 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7278 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7279 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7280 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7281 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7282 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7283 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7284 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7285 | ( |
---|
7286 | cat <<\_ASBOX |
---|
7287 | ## ---------------------------------------------- ## |
---|
7288 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7289 | ## ---------------------------------------------- ## |
---|
7290 | _ASBOX |
---|
7291 | ) | |
---|
7292 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7293 | ;; |
---|
7294 | esac |
---|
7295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7299 | else |
---|
7300 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7301 | fi |
---|
7302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7304 | |
---|
7305 | fi |
---|
7306 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7307 | cat >>confdefs.h <<_ACEOF |
---|
7308 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7309 | _ACEOF |
---|
7310 | |
---|
7311 | fi |
---|
7312 | |
---|
7313 | done |
---|
7314 | |
---|
7315 | |
---|
7316 | # Checks for typedefs, structures, and compiler characteristics. |
---|
7317 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
7318 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
7319 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
7320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7321 | else |
---|
7322 | cat >conftest.$ac_ext <<_ACEOF |
---|
7323 | /* confdefs.h. */ |
---|
7324 | _ACEOF |
---|
7325 | cat confdefs.h >>conftest.$ac_ext |
---|
7326 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7327 | /* end confdefs.h. */ |
---|
7328 | |
---|
7329 | #include <stdbool.h> |
---|
7330 | #ifndef bool |
---|
7331 | # error bool is not defined |
---|
7332 | #endif |
---|
7333 | #ifndef false |
---|
7334 | # error false is not defined |
---|
7335 | #endif |
---|
7336 | #if false |
---|
7337 | # error false is not 0 |
---|
7338 | #endif |
---|
7339 | #ifndef true |
---|
7340 | # error true is not defined |
---|
7341 | #endif |
---|
7342 | #if true != 1 |
---|
7343 | # error true is not 1 |
---|
7344 | #endif |
---|
7345 | #ifndef __bool_true_false_are_defined |
---|
7346 | # error __bool_true_false_are_defined is not defined |
---|
7347 | #endif |
---|
7348 | |
---|
7349 | struct s { _Bool s: 1; _Bool t; } s; |
---|
7350 | |
---|
7351 | char a[true == 1 ? 1 : -1]; |
---|
7352 | char b[false == 0 ? 1 : -1]; |
---|
7353 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
7354 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
7355 | bool e = &s; |
---|
7356 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
7357 | char g[true]; |
---|
7358 | char h[sizeof (_Bool)]; |
---|
7359 | char i[sizeof s.t]; |
---|
7360 | |
---|
7361 | int |
---|
7362 | main () |
---|
7363 | { |
---|
7364 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
7365 | ; |
---|
7366 | return 0; |
---|
7367 | } |
---|
7368 | _ACEOF |
---|
7369 | rm -f conftest.$ac_objext |
---|
7370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7371 | (eval $ac_compile) 2>conftest.er1 |
---|
7372 | ac_status=$? |
---|
7373 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7374 | rm -f conftest.er1 |
---|
7375 | cat conftest.err >&5 |
---|
7376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7377 | (exit $ac_status); } && |
---|
7378 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7379 | || test ! -s conftest.err' |
---|
7380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7381 | (eval $ac_try) 2>&5 |
---|
7382 | ac_status=$? |
---|
7383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7384 | (exit $ac_status); }; } && |
---|
7385 | { ac_try='test -s conftest.$ac_objext' |
---|
7386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7387 | (eval $ac_try) 2>&5 |
---|
7388 | ac_status=$? |
---|
7389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7390 | (exit $ac_status); }; }; then |
---|
7391 | ac_cv_header_stdbool_h=yes |
---|
7392 | else |
---|
7393 | echo "$as_me: failed program was:" >&5 |
---|
7394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7395 | |
---|
7396 | ac_cv_header_stdbool_h=no |
---|
7397 | fi |
---|
7398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7399 | fi |
---|
7400 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
7401 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
7402 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
7403 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
7404 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
7405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7406 | else |
---|
7407 | cat >conftest.$ac_ext <<_ACEOF |
---|
7408 | /* confdefs.h. */ |
---|
7409 | _ACEOF |
---|
7410 | cat confdefs.h >>conftest.$ac_ext |
---|
7411 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7412 | /* end confdefs.h. */ |
---|
7413 | $ac_includes_default |
---|
7414 | int |
---|
7415 | main () |
---|
7416 | { |
---|
7417 | if ((_Bool *) 0) |
---|
7418 | return 0; |
---|
7419 | if (sizeof (_Bool)) |
---|
7420 | return 0; |
---|
7421 | ; |
---|
7422 | return 0; |
---|
7423 | } |
---|
7424 | _ACEOF |
---|
7425 | rm -f conftest.$ac_objext |
---|
7426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7427 | (eval $ac_compile) 2>conftest.er1 |
---|
7428 | ac_status=$? |
---|
7429 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7430 | rm -f conftest.er1 |
---|
7431 | cat conftest.err >&5 |
---|
7432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7433 | (exit $ac_status); } && |
---|
7434 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7435 | || test ! -s conftest.err' |
---|
7436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7437 | (eval $ac_try) 2>&5 |
---|
7438 | ac_status=$? |
---|
7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7440 | (exit $ac_status); }; } && |
---|
7441 | { ac_try='test -s conftest.$ac_objext' |
---|
7442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7443 | (eval $ac_try) 2>&5 |
---|
7444 | ac_status=$? |
---|
7445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7446 | (exit $ac_status); }; }; then |
---|
7447 | ac_cv_type__Bool=yes |
---|
7448 | else |
---|
7449 | echo "$as_me: failed program was:" >&5 |
---|
7450 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7451 | |
---|
7452 | ac_cv_type__Bool=no |
---|
7453 | fi |
---|
7454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7455 | fi |
---|
7456 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
7457 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
7458 | if test $ac_cv_type__Bool = yes; then |
---|
7459 | |
---|
7460 | cat >>confdefs.h <<_ACEOF |
---|
7461 | #define HAVE__BOOL 1 |
---|
7462 | _ACEOF |
---|
7463 | |
---|
7464 | |
---|
7465 | fi |
---|
7466 | |
---|
7467 | if test $ac_cv_header_stdbool_h = yes; then |
---|
7468 | |
---|
7469 | cat >>confdefs.h <<\_ACEOF |
---|
7470 | #define HAVE_STDBOOL_H 1 |
---|
7471 | _ACEOF |
---|
7472 | |
---|
7473 | fi |
---|
7474 | |
---|
7475 | |
---|
7476 | # Checks for library functions. |
---|
7477 | |
---|
7478 | for ac_header in stdlib.h |
---|
7479 | do |
---|
7480 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7482 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7483 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7484 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7486 | fi |
---|
7487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7488 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7489 | else |
---|
7490 | # Is the header compilable? |
---|
7491 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7492 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7493 | cat >conftest.$ac_ext <<_ACEOF |
---|
7494 | /* confdefs.h. */ |
---|
7495 | _ACEOF |
---|
7496 | cat confdefs.h >>conftest.$ac_ext |
---|
7497 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7498 | /* end confdefs.h. */ |
---|
7499 | $ac_includes_default |
---|
7500 | #include <$ac_header> |
---|
7501 | _ACEOF |
---|
7502 | rm -f conftest.$ac_objext |
---|
7503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7504 | (eval $ac_compile) 2>conftest.er1 |
---|
7505 | ac_status=$? |
---|
7506 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7507 | rm -f conftest.er1 |
---|
7508 | cat conftest.err >&5 |
---|
7509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7510 | (exit $ac_status); } && |
---|
7511 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7512 | || test ! -s conftest.err' |
---|
7513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7514 | (eval $ac_try) 2>&5 |
---|
7515 | ac_status=$? |
---|
7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7517 | (exit $ac_status); }; } && |
---|
7518 | { ac_try='test -s conftest.$ac_objext' |
---|
7519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7520 | (eval $ac_try) 2>&5 |
---|
7521 | ac_status=$? |
---|
7522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7523 | (exit $ac_status); }; }; then |
---|
7524 | ac_header_compiler=yes |
---|
7525 | else |
---|
7526 | echo "$as_me: failed program was:" >&5 |
---|
7527 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7528 | |
---|
7529 | ac_header_compiler=no |
---|
7530 | fi |
---|
7531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7532 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7533 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7534 | |
---|
7535 | # Is the header present? |
---|
7536 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7537 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7538 | cat >conftest.$ac_ext <<_ACEOF |
---|
7539 | /* confdefs.h. */ |
---|
7540 | _ACEOF |
---|
7541 | cat confdefs.h >>conftest.$ac_ext |
---|
7542 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7543 | /* end confdefs.h. */ |
---|
7544 | #include <$ac_header> |
---|
7545 | _ACEOF |
---|
7546 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7547 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7548 | ac_status=$? |
---|
7549 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7550 | rm -f conftest.er1 |
---|
7551 | cat conftest.err >&5 |
---|
7552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7553 | (exit $ac_status); } >/dev/null; then |
---|
7554 | if test -s conftest.err; then |
---|
7555 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7556 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7557 | else |
---|
7558 | ac_cpp_err= |
---|
7559 | fi |
---|
7560 | else |
---|
7561 | ac_cpp_err=yes |
---|
7562 | fi |
---|
7563 | if test -z "$ac_cpp_err"; then |
---|
7564 | ac_header_preproc=yes |
---|
7565 | else |
---|
7566 | echo "$as_me: failed program was:" >&5 |
---|
7567 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7568 | |
---|
7569 | ac_header_preproc=no |
---|
7570 | fi |
---|
7571 | rm -f conftest.err conftest.$ac_ext |
---|
7572 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7573 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7574 | |
---|
7575 | # So? What about this header? |
---|
7576 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7577 | yes:no: ) |
---|
7578 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7579 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7581 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7582 | ac_header_preproc=yes |
---|
7583 | ;; |
---|
7584 | no:yes:* ) |
---|
7585 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7586 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7587 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7588 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7589 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7590 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7591 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7592 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7593 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7594 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7595 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7596 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7597 | ( |
---|
7598 | cat <<\_ASBOX |
---|
7599 | ## ---------------------------------------------- ## |
---|
7600 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7601 | ## ---------------------------------------------- ## |
---|
7602 | _ASBOX |
---|
7603 | ) | |
---|
7604 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7605 | ;; |
---|
7606 | esac |
---|
7607 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7608 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7609 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7611 | else |
---|
7612 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7613 | fi |
---|
7614 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7615 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7616 | |
---|
7617 | fi |
---|
7618 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7619 | cat >>confdefs.h <<_ACEOF |
---|
7620 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7621 | _ACEOF |
---|
7622 | |
---|
7623 | fi |
---|
7624 | |
---|
7625 | done |
---|
7626 | |
---|
7627 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
7628 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
7629 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
7630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7631 | else |
---|
7632 | if test "$cross_compiling" = yes; then |
---|
7633 | ac_cv_func_malloc_0_nonnull=no |
---|
7634 | else |
---|
7635 | cat >conftest.$ac_ext <<_ACEOF |
---|
7636 | /* confdefs.h. */ |
---|
7637 | _ACEOF |
---|
7638 | cat confdefs.h >>conftest.$ac_ext |
---|
7639 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7640 | /* end confdefs.h. */ |
---|
7641 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
7642 | # include <stdlib.h> |
---|
7643 | #else |
---|
7644 | char *malloc (); |
---|
7645 | #endif |
---|
7646 | |
---|
7647 | int |
---|
7648 | main () |
---|
7649 | { |
---|
7650 | exit (malloc (0) ? 0 : 1); |
---|
7651 | ; |
---|
7652 | return 0; |
---|
7653 | } |
---|
7654 | _ACEOF |
---|
7655 | rm -f conftest$ac_exeext |
---|
7656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7657 | (eval $ac_link) 2>&5 |
---|
7658 | ac_status=$? |
---|
7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7660 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7662 | (eval $ac_try) 2>&5 |
---|
7663 | ac_status=$? |
---|
7664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7665 | (exit $ac_status); }; }; then |
---|
7666 | ac_cv_func_malloc_0_nonnull=yes |
---|
7667 | else |
---|
7668 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7669 | echo "$as_me: failed program was:" >&5 |
---|
7670 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7671 | |
---|
7672 | ( exit $ac_status ) |
---|
7673 | ac_cv_func_malloc_0_nonnull=no |
---|
7674 | fi |
---|
7675 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7676 | fi |
---|
7677 | fi |
---|
7678 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
7679 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
7680 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
7681 | |
---|
7682 | cat >>confdefs.h <<\_ACEOF |
---|
7683 | #define HAVE_MALLOC 1 |
---|
7684 | _ACEOF |
---|
7685 | |
---|
7686 | else |
---|
7687 | cat >>confdefs.h <<\_ACEOF |
---|
7688 | #define HAVE_MALLOC 0 |
---|
7689 | _ACEOF |
---|
7690 | |
---|
7691 | case $LIBOBJS in |
---|
7692 | "malloc.$ac_objext" | \ |
---|
7693 | *" malloc.$ac_objext" | \ |
---|
7694 | "malloc.$ac_objext "* | \ |
---|
7695 | *" malloc.$ac_objext "* ) ;; |
---|
7696 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
7697 | esac |
---|
7698 | |
---|
7699 | |
---|
7700 | cat >>confdefs.h <<\_ACEOF |
---|
7701 | #define malloc rpl_malloc |
---|
7702 | _ACEOF |
---|
7703 | |
---|
7704 | fi |
---|
7705 | |
---|
7706 | |
---|
7707 | |
---|
7708 | |
---|
7709 | |
---|
7710 | for ac_func in bzero sqrt |
---|
7711 | do |
---|
7712 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
7713 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
7714 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
7715 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
7716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7717 | else |
---|
7718 | cat >conftest.$ac_ext <<_ACEOF |
---|
7719 | /* confdefs.h. */ |
---|
7720 | _ACEOF |
---|
7721 | cat confdefs.h >>conftest.$ac_ext |
---|
7722 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7723 | /* end confdefs.h. */ |
---|
7724 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
7725 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
7726 | #define $ac_func innocuous_$ac_func |
---|
7727 | |
---|
7728 | /* System header to define __stub macros and hopefully few prototypes, |
---|
7729 | which can conflict with char $ac_func (); below. |
---|
7730 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7731 | <limits.h> exists even on freestanding compilers. */ |
---|
7732 | |
---|
7733 | #ifdef __STDC__ |
---|
7734 | # include <limits.h> |
---|
7735 | #else |
---|
7736 | # include <assert.h> |
---|
7737 | #endif |
---|
7738 | |
---|
7739 | #undef $ac_func |
---|
7740 | |
---|
7741 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7742 | #ifdef __cplusplus |
---|
7743 | extern "C" |
---|
7744 | { |
---|
7745 | #endif |
---|
7746 | /* We use char because int might match the return type of a gcc2 |
---|
7747 | builtin and then its argument prototype would still apply. */ |
---|
7748 | char $ac_func (); |
---|
7749 | /* The GNU C library defines this for functions which it implements |
---|
7750 | to always fail with ENOSYS. Some functions are actually named |
---|
7751 | something starting with __ and the normal name is an alias. */ |
---|
7752 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
7753 | choke me |
---|
7754 | #else |
---|
7755 | char (*f) () = $ac_func; |
---|
7756 | #endif |
---|
7757 | #ifdef __cplusplus |
---|
7758 | } |
---|
7759 | #endif |
---|
7760 | |
---|
7761 | int |
---|
7762 | main () |
---|
7763 | { |
---|
7764 | return f != $ac_func; |
---|
7765 | ; |
---|
7766 | return 0; |
---|
7767 | } |
---|
7768 | _ACEOF |
---|
7769 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7771 | (eval $ac_link) 2>conftest.er1 |
---|
7772 | ac_status=$? |
---|
7773 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7774 | rm -f conftest.er1 |
---|
7775 | cat conftest.err >&5 |
---|
7776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7777 | (exit $ac_status); } && |
---|
7778 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7779 | || test ! -s conftest.err' |
---|
7780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7781 | (eval $ac_try) 2>&5 |
---|
7782 | ac_status=$? |
---|
7783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7784 | (exit $ac_status); }; } && |
---|
7785 | { ac_try='test -s conftest$ac_exeext' |
---|
7786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7787 | (eval $ac_try) 2>&5 |
---|
7788 | ac_status=$? |
---|
7789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7790 | (exit $ac_status); }; }; then |
---|
7791 | eval "$as_ac_var=yes" |
---|
7792 | else |
---|
7793 | echo "$as_me: failed program was:" >&5 |
---|
7794 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7795 | |
---|
7796 | eval "$as_ac_var=no" |
---|
7797 | fi |
---|
7798 | rm -f conftest.err conftest.$ac_objext \ |
---|
7799 | conftest$ac_exeext conftest.$ac_ext |
---|
7800 | fi |
---|
7801 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
7802 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
7803 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
7804 | cat >>confdefs.h <<_ACEOF |
---|
7805 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
7806 | _ACEOF |
---|
7807 | |
---|
7808 | fi |
---|
7809 | done |
---|
7810 | |
---|
7811 | |
---|
7812 | ac_config_files="$ac_config_files Makefile src/console/Makefile src/gui/Makefile src/Makefile src/importer/Makefile" |
---|
7813 | |
---|
7814 | cat >confcache <<\_ACEOF |
---|
7815 | # This file is a shell script that caches the results of configure |
---|
7816 | # tests run on this system so they can be shared between configure |
---|
7817 | # scripts and configure runs, see configure's option --config-cache. |
---|
7818 | # It is not useful on other systems. If it contains results you don't |
---|
7819 | # want to keep, you may remove or edit it. |
---|
7820 | # |
---|
7821 | # config.status only pays attention to the cache file if you give it |
---|
7822 | # the --recheck option to rerun configure. |
---|
7823 | # |
---|
7824 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7825 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7826 | # following values. |
---|
7827 | |
---|
7828 | _ACEOF |
---|
7829 | |
---|
7830 | # The following way of writing the cache mishandles newlines in values, |
---|
7831 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7832 | # So, don't put newlines in cache variables' values. |
---|
7833 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7834 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7835 | { |
---|
7836 | (set) 2>&1 | |
---|
7837 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
7838 | *ac_space=\ *) |
---|
7839 | # `set' does not quote correctly, so add quotes (double-quote |
---|
7840 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
7841 | sed -n \ |
---|
7842 | "s/'/'\\\\''/g; |
---|
7843 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7844 | ;; |
---|
7845 | *) |
---|
7846 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7847 | sed -n \ |
---|
7848 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
7849 | ;; |
---|
7850 | esac; |
---|
7851 | } | |
---|
7852 | sed ' |
---|
7853 | t clear |
---|
7854 | : clear |
---|
7855 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7856 | t end |
---|
7857 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7858 | : end' >>confcache |
---|
7859 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
7860 | if test -w $cache_file; then |
---|
7861 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
7862 | cat confcache >$cache_file |
---|
7863 | else |
---|
7864 | echo "not updating unwritable cache $cache_file" |
---|
7865 | fi |
---|
7866 | fi |
---|
7867 | rm -f confcache |
---|
7868 | |
---|
7869 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7870 | # Let make expand exec_prefix. |
---|
7871 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7872 | |
---|
7873 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
7874 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
7875 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7876 | # (actually we leave an empty line to preserve line numbers). |
---|
7877 | if test "x$srcdir" = x.; then |
---|
7878 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
7879 | s/:*\$(srcdir):*/:/; |
---|
7880 | s/:*\${srcdir}:*/:/; |
---|
7881 | s/:*@srcdir@:*/:/; |
---|
7882 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
7883 | s/:*$//; |
---|
7884 | s/^[^=]*=[ ]*$//; |
---|
7885 | }' |
---|
7886 | fi |
---|
7887 | |
---|
7888 | DEFS=-DHAVE_CONFIG_H |
---|
7889 | |
---|
7890 | ac_libobjs= |
---|
7891 | ac_ltlibobjs= |
---|
7892 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
7893 | # 1. Remove the extension, and $U if already installed. |
---|
7894 | ac_i=`echo "$ac_i" | |
---|
7895 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
7896 | # 2. Add them. |
---|
7897 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
7898 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
7899 | done |
---|
7900 | LIBOBJS=$ac_libobjs |
---|
7901 | |
---|
7902 | LTLIBOBJS=$ac_ltlibobjs |
---|
7903 | |
---|
7904 | |
---|
7905 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
7906 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
7907 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7908 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
7909 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7910 | { (exit 1); exit 1; }; } |
---|
7911 | fi |
---|
7912 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
7913 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
7914 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7915 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
7916 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7917 | { (exit 1); exit 1; }; } |
---|
7918 | fi |
---|
7919 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
7920 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
7921 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7922 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
7923 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7924 | { (exit 1); exit 1; }; } |
---|
7925 | fi |
---|
7926 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
7927 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
7928 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7929 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
7930 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7931 | { (exit 1); exit 1; }; } |
---|
7932 | fi |
---|
7933 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
7934 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
7935 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7936 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
7937 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7938 | { (exit 1); exit 1; }; } |
---|
7939 | fi |
---|
7940 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
7941 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
7942 | Usually this means the macro was only invoked conditionally." >&5 |
---|
7943 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
7944 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
7945 | { (exit 1); exit 1; }; } |
---|
7946 | fi |
---|
7947 | |
---|
7948 | : ${CONFIG_STATUS=./config.status} |
---|
7949 | ac_clean_files_save=$ac_clean_files |
---|
7950 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
7951 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
7952 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
7953 | cat >$CONFIG_STATUS <<_ACEOF |
---|
7954 | #! $SHELL |
---|
7955 | # Generated by $as_me. |
---|
7956 | # Run this file to recreate the current configuration. |
---|
7957 | # Compiler output produced by configure, useful for debugging |
---|
7958 | # configure, is in config.log if it exists. |
---|
7959 | |
---|
7960 | debug=false |
---|
7961 | ac_cs_recheck=false |
---|
7962 | ac_cs_silent=false |
---|
7963 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
7964 | _ACEOF |
---|
7965 | |
---|
7966 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7967 | ## --------------------- ## |
---|
7968 | ## M4sh Initialization. ## |
---|
7969 | ## --------------------- ## |
---|
7970 | |
---|
7971 | # Be Bourne compatible |
---|
7972 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
7973 | emulate sh |
---|
7974 | NULLCMD=: |
---|
7975 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
7976 | # is contrary to our usage. Disable this feature. |
---|
7977 | alias -g '${1+"$@"}'='"$@"' |
---|
7978 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
7979 | set -o posix |
---|
7980 | fi |
---|
7981 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
7982 | |
---|
7983 | # Support unset when possible. |
---|
7984 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
7985 | as_unset=unset |
---|
7986 | else |
---|
7987 | as_unset=false |
---|
7988 | fi |
---|
7989 | |
---|
7990 | |
---|
7991 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
7992 | $as_unset ENV MAIL MAILPATH |
---|
7993 | PS1='$ ' |
---|
7994 | PS2='> ' |
---|
7995 | PS4='+ ' |
---|
7996 | |
---|
7997 | # NLS nuisances. |
---|
7998 | for as_var in \ |
---|
7999 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
8000 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
8001 | LC_TELEPHONE LC_TIME |
---|
8002 | do |
---|
8003 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
8004 | eval $as_var=C; export $as_var |
---|
8005 | else |
---|
8006 | $as_unset $as_var |
---|
8007 | fi |
---|
8008 | done |
---|
8009 | |
---|
8010 | # Required to use basename. |
---|
8011 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
8012 | as_expr=expr |
---|
8013 | else |
---|
8014 | as_expr=false |
---|
8015 | fi |
---|
8016 | |
---|
8017 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
8018 | as_basename=basename |
---|
8019 | else |
---|
8020 | as_basename=false |
---|
8021 | fi |
---|
8022 | |
---|
8023 | |
---|
8024 | # Name of the executable. |
---|
8025 | as_me=`$as_basename "$0" || |
---|
8026 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
8027 | X"$0" : 'X\(//\)$' \| \ |
---|
8028 | X"$0" : 'X\(/\)$' \| \ |
---|
8029 | . : '\(.\)' 2>/dev/null || |
---|
8030 | echo X/"$0" | |
---|
8031 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
8032 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
8033 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
8034 | s/.*/./; q'` |
---|
8035 | |
---|
8036 | |
---|
8037 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
8038 | # Avoid depending upon Character Ranges. |
---|
8039 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
8040 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
8041 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
8042 | as_cr_digits='0123456789' |
---|
8043 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
8044 | |
---|
8045 | # The user is always right. |
---|
8046 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
8047 | echo "#! /bin/sh" >conf$$.sh |
---|
8048 | echo "exit 0" >>conf$$.sh |
---|
8049 | chmod +x conf$$.sh |
---|
8050 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
8051 | PATH_SEPARATOR=';' |
---|
8052 | else |
---|
8053 | PATH_SEPARATOR=: |
---|
8054 | fi |
---|
8055 | rm -f conf$$.sh |
---|
8056 | fi |
---|
8057 | |
---|
8058 | |
---|
8059 | as_lineno_1=$LINENO |
---|
8060 | as_lineno_2=$LINENO |
---|
8061 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
8062 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
8063 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
8064 | # Find who we are. Look in the path if we contain no path at all |
---|
8065 | # relative or not. |
---|
8066 | case $0 in |
---|
8067 | *[\\/]* ) as_myself=$0 ;; |
---|
8068 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8069 | for as_dir in $PATH |
---|
8070 | do |
---|
8071 | IFS=$as_save_IFS |
---|
8072 | test -z "$as_dir" && as_dir=. |
---|
8073 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
8074 | done |
---|
8075 | |
---|
8076 | ;; |
---|
8077 | esac |
---|
8078 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
8079 | # in which case we are not to be found in the path. |
---|
8080 | if test "x$as_myself" = x; then |
---|
8081 | as_myself=$0 |
---|
8082 | fi |
---|
8083 | if test ! -f "$as_myself"; then |
---|
8084 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
8085 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
8086 | { (exit 1); exit 1; }; } |
---|
8087 | fi |
---|
8088 | case $CONFIG_SHELL in |
---|
8089 | '') |
---|
8090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8091 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
8092 | do |
---|
8093 | IFS=$as_save_IFS |
---|
8094 | test -z "$as_dir" && as_dir=. |
---|
8095 | for as_base in sh bash ksh sh5; do |
---|
8096 | case $as_dir in |
---|
8097 | /*) |
---|
8098 | if ("$as_dir/$as_base" -c ' |
---|
8099 | as_lineno_1=$LINENO |
---|
8100 | as_lineno_2=$LINENO |
---|
8101 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
8102 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
8103 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
8104 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
8105 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
8106 | CONFIG_SHELL=$as_dir/$as_base |
---|
8107 | export CONFIG_SHELL |
---|
8108 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
8109 | fi;; |
---|
8110 | esac |
---|
8111 | done |
---|
8112 | done |
---|
8113 | ;; |
---|
8114 | esac |
---|
8115 | |
---|
8116 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
8117 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
8118 | # line-number line before each line; the second 'sed' does the real |
---|
8119 | # work. The second script uses 'N' to pair each line-number line |
---|
8120 | # with the numbered line, and appends trailing '-' during |
---|
8121 | # substitution so that $LINENO is not a special case at line end. |
---|
8122 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
8123 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
8124 | sed '=' <$as_myself | |
---|
8125 | sed ' |
---|
8126 | N |
---|
8127 | s,$,-, |
---|
8128 | : loop |
---|
8129 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
8130 | t loop |
---|
8131 | s,-$,, |
---|
8132 | s,^['$as_cr_digits']*\n,, |
---|
8133 | ' >$as_me.lineno && |
---|
8134 | chmod +x $as_me.lineno || |
---|
8135 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
8136 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
8137 | { (exit 1); exit 1; }; } |
---|
8138 | |
---|
8139 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
8140 | # (the dirname of $[0] is not the place where we might find the |
---|
8141 | # original and so on. Autoconf is especially sensible to this). |
---|
8142 | . ./$as_me.lineno |
---|
8143 | # Exit status is that of the last command. |
---|
8144 | exit |
---|
8145 | } |
---|
8146 | |
---|
8147 | |
---|
8148 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
8149 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
8150 | ' ECHO_T=' ' ;; |
---|
8151 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
8152 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
8153 | esac |
---|
8154 | |
---|
8155 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
8156 | as_expr=expr |
---|
8157 | else |
---|
8158 | as_expr=false |
---|
8159 | fi |
---|
8160 | |
---|
8161 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8162 | echo >conf$$.file |
---|
8163 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
8164 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
8165 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
8166 | if test -f conf$$.exe; then |
---|
8167 | # Don't use ln at all; we don't have any links |
---|
8168 | as_ln_s='cp -p' |
---|
8169 | else |
---|
8170 | as_ln_s='ln -s' |
---|
8171 | fi |
---|
8172 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
8173 | as_ln_s=ln |
---|
8174 | else |
---|
8175 | as_ln_s='cp -p' |
---|
8176 | fi |
---|
8177 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8178 | |
---|
8179 | if mkdir -p . 2>/dev/null; then |
---|
8180 | as_mkdir_p=: |
---|
8181 | else |
---|
8182 | test -d ./-p && rmdir ./-p |
---|
8183 | as_mkdir_p=false |
---|
8184 | fi |
---|
8185 | |
---|
8186 | as_executable_p="test -f" |
---|
8187 | |
---|
8188 | # Sed expression to map a string onto a valid CPP name. |
---|
8189 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
8190 | |
---|
8191 | # Sed expression to map a string onto a valid variable name. |
---|
8192 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
8193 | |
---|
8194 | |
---|
8195 | # IFS |
---|
8196 | # We need space, tab and new line, in precisely that order. |
---|
8197 | as_nl=' |
---|
8198 | ' |
---|
8199 | IFS=" $as_nl" |
---|
8200 | |
---|
8201 | # CDPATH. |
---|
8202 | $as_unset CDPATH |
---|
8203 | |
---|
8204 | exec 6>&1 |
---|
8205 | |
---|
8206 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
8207 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
8208 | # values after options handling. Logging --version etc. is OK. |
---|
8209 | exec 5>>config.log |
---|
8210 | { |
---|
8211 | echo |
---|
8212 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
8213 | ## Running $as_me. ## |
---|
8214 | _ASBOX |
---|
8215 | } >&5 |
---|
8216 | cat >&5 <<_CSEOF |
---|
8217 | |
---|
8218 | This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
8219 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
8220 | |
---|
8221 | CONFIG_FILES = $CONFIG_FILES |
---|
8222 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
8223 | CONFIG_LINKS = $CONFIG_LINKS |
---|
8224 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
8225 | $ $0 $@ |
---|
8226 | |
---|
8227 | _CSEOF |
---|
8228 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
8229 | echo >&5 |
---|
8230 | _ACEOF |
---|
8231 | |
---|
8232 | # Files that config.status was made for. |
---|
8233 | if test -n "$ac_config_files"; then |
---|
8234 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
8235 | fi |
---|
8236 | |
---|
8237 | if test -n "$ac_config_headers"; then |
---|
8238 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
8239 | fi |
---|
8240 | |
---|
8241 | if test -n "$ac_config_links"; then |
---|
8242 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
8243 | fi |
---|
8244 | |
---|
8245 | if test -n "$ac_config_commands"; then |
---|
8246 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
8247 | fi |
---|
8248 | |
---|
8249 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8250 | |
---|
8251 | ac_cs_usage="\ |
---|
8252 | \`$as_me' instantiates files from templates according to the |
---|
8253 | current configuration. |
---|
8254 | |
---|
8255 | Usage: $0 [OPTIONS] [FILE]... |
---|
8256 | |
---|
8257 | -h, --help print this help, then exit |
---|
8258 | -V, --version print version number, then exit |
---|
8259 | -q, --quiet do not print progress messages |
---|
8260 | -d, --debug don't remove temporary files |
---|
8261 | --recheck update $as_me by reconfiguring in the same conditions |
---|
8262 | --file=FILE[:TEMPLATE] |
---|
8263 | instantiate the configuration file FILE |
---|
8264 | --header=FILE[:TEMPLATE] |
---|
8265 | instantiate the configuration header FILE |
---|
8266 | |
---|
8267 | Configuration files: |
---|
8268 | $config_files |
---|
8269 | |
---|
8270 | Configuration headers: |
---|
8271 | $config_headers |
---|
8272 | |
---|
8273 | Configuration commands: |
---|
8274 | $config_commands |
---|
8275 | |
---|
8276 | Report bugs to <bug-autoconf@gnu.org>." |
---|
8277 | _ACEOF |
---|
8278 | |
---|
8279 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8280 | ac_cs_version="\\ |
---|
8281 | orxonox config.status 0.2.1-pre-alpha |
---|
8282 | configured by $0, generated by GNU Autoconf 2.59, |
---|
8283 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
8284 | |
---|
8285 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8286 | This config.status script is free software; the Free Software Foundation |
---|
8287 | gives unlimited permission to copy, distribute and modify it." |
---|
8288 | srcdir=$srcdir |
---|
8289 | INSTALL="$INSTALL" |
---|
8290 | _ACEOF |
---|
8291 | |
---|
8292 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8293 | # If no file are specified by the user, then we need to provide default |
---|
8294 | # value. By we need to know if files were specified by the user. |
---|
8295 | ac_need_defaults=: |
---|
8296 | while test $# != 0 |
---|
8297 | do |
---|
8298 | case $1 in |
---|
8299 | --*=*) |
---|
8300 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
8301 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
8302 | ac_shift=: |
---|
8303 | ;; |
---|
8304 | -*) |
---|
8305 | ac_option=$1 |
---|
8306 | ac_optarg=$2 |
---|
8307 | ac_shift=shift |
---|
8308 | ;; |
---|
8309 | *) # This is not an option, so the user has probably given explicit |
---|
8310 | # arguments. |
---|
8311 | ac_option=$1 |
---|
8312 | ac_need_defaults=false;; |
---|
8313 | esac |
---|
8314 | |
---|
8315 | case $ac_option in |
---|
8316 | # Handling of the options. |
---|
8317 | _ACEOF |
---|
8318 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8319 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8320 | ac_cs_recheck=: ;; |
---|
8321 | --version | --vers* | -V ) |
---|
8322 | echo "$ac_cs_version"; exit 0 ;; |
---|
8323 | --he | --h) |
---|
8324 | # Conflict between --help and --header |
---|
8325 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
8326 | Try \`$0 --help' for more information." >&5 |
---|
8327 | echo "$as_me: error: ambiguous option: $1 |
---|
8328 | Try \`$0 --help' for more information." >&2;} |
---|
8329 | { (exit 1); exit 1; }; };; |
---|
8330 | --help | --hel | -h ) |
---|
8331 | echo "$ac_cs_usage"; exit 0 ;; |
---|
8332 | --debug | --d* | -d ) |
---|
8333 | debug=: ;; |
---|
8334 | --file | --fil | --fi | --f ) |
---|
8335 | $ac_shift |
---|
8336 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
8337 | ac_need_defaults=false;; |
---|
8338 | --header | --heade | --head | --hea ) |
---|
8339 | $ac_shift |
---|
8340 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
8341 | ac_need_defaults=false;; |
---|
8342 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
8343 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
8344 | ac_cs_silent=: ;; |
---|
8345 | |
---|
8346 | # This is an error. |
---|
8347 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
8348 | Try \`$0 --help' for more information." >&5 |
---|
8349 | echo "$as_me: error: unrecognized option: $1 |
---|
8350 | Try \`$0 --help' for more information." >&2;} |
---|
8351 | { (exit 1); exit 1; }; } ;; |
---|
8352 | |
---|
8353 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
8354 | |
---|
8355 | esac |
---|
8356 | shift |
---|
8357 | done |
---|
8358 | |
---|
8359 | ac_configure_extra_args= |
---|
8360 | |
---|
8361 | if $ac_cs_silent; then |
---|
8362 | exec 6>/dev/null |
---|
8363 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
8364 | fi |
---|
8365 | |
---|
8366 | _ACEOF |
---|
8367 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8368 | if \$ac_cs_recheck; then |
---|
8369 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
8370 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
8371 | fi |
---|
8372 | |
---|
8373 | _ACEOF |
---|
8374 | |
---|
8375 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8376 | # |
---|
8377 | # INIT-COMMANDS section. |
---|
8378 | # |
---|
8379 | |
---|
8380 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
8381 | |
---|
8382 | _ACEOF |
---|
8383 | |
---|
8384 | |
---|
8385 | |
---|
8386 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8387 | for ac_config_target in $ac_config_targets |
---|
8388 | do |
---|
8389 | case "$ac_config_target" in |
---|
8390 | # Handling of arguments. |
---|
8391 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
8392 | "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;; |
---|
8393 | "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;; |
---|
8394 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
8395 | "src/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/importer/Makefile" ;; |
---|
8396 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
8397 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
8398 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
8399 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
8400 | { (exit 1); exit 1; }; };; |
---|
8401 | esac |
---|
8402 | done |
---|
8403 | |
---|
8404 | # If the user did not use the arguments to specify the items to instantiate, |
---|
8405 | # then the envvar interface is used. Set only those that are not. |
---|
8406 | # We use the long form for the default assignment because of an extremely |
---|
8407 | # bizarre bug on SunOS 4.1.3. |
---|
8408 | if $ac_need_defaults; then |
---|
8409 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
8410 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
8411 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
8412 | fi |
---|
8413 | |
---|
8414 | # Have a temporary directory for convenience. Make it in the build tree |
---|
8415 | # simply because there is no reason to put it here, and in addition, |
---|
8416 | # creating and moving files from /tmp can sometimes cause problems. |
---|
8417 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
8418 | $debug || |
---|
8419 | { |
---|
8420 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
8421 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
8422 | } |
---|
8423 | |
---|
8424 | # Create a (secure) tmp directory for tmp files. |
---|
8425 | |
---|
8426 | { |
---|
8427 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
8428 | test -n "$tmp" && test -d "$tmp" |
---|
8429 | } || |
---|
8430 | { |
---|
8431 | tmp=./confstat$$-$RANDOM |
---|
8432 | (umask 077 && mkdir $tmp) |
---|
8433 | } || |
---|
8434 | { |
---|
8435 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
8436 | { (exit 1); exit 1; } |
---|
8437 | } |
---|
8438 | |
---|
8439 | _ACEOF |
---|
8440 | |
---|
8441 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8442 | |
---|
8443 | # |
---|
8444 | # CONFIG_FILES section. |
---|
8445 | # |
---|
8446 | |
---|
8447 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
8448 | # This happens for instance when ./config.status config.h |
---|
8449 | if test -n "\$CONFIG_FILES"; then |
---|
8450 | # Protect against being on the right side of a sed subst in config.status. |
---|
8451 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
8452 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
8453 | s,@SHELL@,$SHELL,;t t |
---|
8454 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
8455 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
8456 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
8457 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
8458 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
8459 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
8460 | s,@exec_prefix@,$exec_prefix,;t t |
---|
8461 | s,@prefix@,$prefix,;t t |
---|
8462 | s,@program_transform_name@,$program_transform_name,;t t |
---|
8463 | s,@bindir@,$bindir,;t t |
---|
8464 | s,@sbindir@,$sbindir,;t t |
---|
8465 | s,@libexecdir@,$libexecdir,;t t |
---|
8466 | s,@datadir@,$datadir,;t t |
---|
8467 | s,@sysconfdir@,$sysconfdir,;t t |
---|
8468 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
8469 | s,@localstatedir@,$localstatedir,;t t |
---|
8470 | s,@libdir@,$libdir,;t t |
---|
8471 | s,@includedir@,$includedir,;t t |
---|
8472 | s,@oldincludedir@,$oldincludedir,;t t |
---|
8473 | s,@infodir@,$infodir,;t t |
---|
8474 | s,@mandir@,$mandir,;t t |
---|
8475 | s,@build_alias@,$build_alias,;t t |
---|
8476 | s,@host_alias@,$host_alias,;t t |
---|
8477 | s,@target_alias@,$target_alias,;t t |
---|
8478 | s,@DEFS@,$DEFS,;t t |
---|
8479 | s,@ECHO_C@,$ECHO_C,;t t |
---|
8480 | s,@ECHO_N@,$ECHO_N,;t t |
---|
8481 | s,@ECHO_T@,$ECHO_T,;t t |
---|
8482 | s,@LIBS@,$LIBS,;t t |
---|
8483 | s,@build@,$build,;t t |
---|
8484 | s,@build_cpu@,$build_cpu,;t t |
---|
8485 | s,@build_vendor@,$build_vendor,;t t |
---|
8486 | s,@build_os@,$build_os,;t t |
---|
8487 | s,@host@,$host,;t t |
---|
8488 | s,@host_cpu@,$host_cpu,;t t |
---|
8489 | s,@host_vendor@,$host_vendor,;t t |
---|
8490 | s,@host_os@,$host_os,;t t |
---|
8491 | s,@target@,$target,;t t |
---|
8492 | s,@target_cpu@,$target_cpu,;t t |
---|
8493 | s,@target_vendor@,$target_vendor,;t t |
---|
8494 | s,@target_os@,$target_os,;t t |
---|
8495 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
8496 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
8497 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
8498 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
8499 | s,@PACKAGE@,$PACKAGE,;t t |
---|
8500 | s,@VERSION@,$VERSION,;t t |
---|
8501 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
8502 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
8503 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
8504 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
8505 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
8506 | s,@AMTAR@,$AMTAR,;t t |
---|
8507 | s,@install_sh@,$install_sh,;t t |
---|
8508 | s,@STRIP@,$STRIP,;t t |
---|
8509 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
8510 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
8511 | s,@mkdir_p@,$mkdir_p,;t t |
---|
8512 | s,@AWK@,$AWK,;t t |
---|
8513 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
8514 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
8515 | s,@CXX@,$CXX,;t t |
---|
8516 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
8517 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
8518 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
8519 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
8520 | s,@EXEEXT@,$EXEEXT,;t t |
---|
8521 | s,@OBJEXT@,$OBJEXT,;t t |
---|
8522 | s,@DEPDIR@,$DEPDIR,;t t |
---|
8523 | s,@am__include@,$am__include,;t t |
---|
8524 | s,@am__quote@,$am__quote,;t t |
---|
8525 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
8526 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
8527 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
8528 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
8529 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
8530 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
8531 | s,@CC@,$CC,;t t |
---|
8532 | s,@CFLAGS@,$CFLAGS,;t t |
---|
8533 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
8534 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
8535 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
8536 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
8537 | s,@CPP@,$CPP,;t t |
---|
8538 | s,@EGREP@,$EGREP,;t t |
---|
8539 | s,@DEBUG@,$DEBUG,;t t |
---|
8540 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
8541 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
8542 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
8543 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
8544 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
8545 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
8546 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
8547 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
8548 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
8549 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
8550 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
8551 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
8552 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
8553 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
8554 | CEOF |
---|
8555 | |
---|
8556 | _ACEOF |
---|
8557 | |
---|
8558 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8559 | # Split the substitutions into bite-sized pieces for seds with |
---|
8560 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
8561 | ac_max_sed_lines=48 |
---|
8562 | ac_sed_frag=1 # Number of current file. |
---|
8563 | ac_beg=1 # First line for current file. |
---|
8564 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
8565 | ac_more_lines=: |
---|
8566 | ac_sed_cmds= |
---|
8567 | while $ac_more_lines; do |
---|
8568 | if test $ac_beg -gt 1; then |
---|
8569 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8570 | else |
---|
8571 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8572 | fi |
---|
8573 | if test ! -s $tmp/subs.frag; then |
---|
8574 | ac_more_lines=false |
---|
8575 | else |
---|
8576 | # The purpose of the label and of the branching condition is to |
---|
8577 | # speed up the sed processing (if there are no `@' at all, there |
---|
8578 | # is no need to browse any of the substitutions). |
---|
8579 | # These are the two extra sed commands mentioned above. |
---|
8580 | (echo ':t |
---|
8581 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
8582 | if test -z "$ac_sed_cmds"; then |
---|
8583 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8584 | else |
---|
8585 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8586 | fi |
---|
8587 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
8588 | ac_beg=$ac_end |
---|
8589 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
8590 | fi |
---|
8591 | done |
---|
8592 | if test -z "$ac_sed_cmds"; then |
---|
8593 | ac_sed_cmds=cat |
---|
8594 | fi |
---|
8595 | fi # test -n "$CONFIG_FILES" |
---|
8596 | |
---|
8597 | _ACEOF |
---|
8598 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8599 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
8600 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8601 | case $ac_file in |
---|
8602 | - | *:- | *:-:* ) # input from stdin |
---|
8603 | cat >$tmp/stdin |
---|
8604 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8605 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8606 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8607 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8608 | * ) ac_file_in=$ac_file.in ;; |
---|
8609 | esac |
---|
8610 | |
---|
8611 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
8612 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8613 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8614 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8615 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8616 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8617 | . : '\(.\)' 2>/dev/null || |
---|
8618 | echo X"$ac_file" | |
---|
8619 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8620 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8621 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8622 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8623 | s/.*/./; q'` |
---|
8624 | { if $as_mkdir_p; then |
---|
8625 | mkdir -p "$ac_dir" |
---|
8626 | else |
---|
8627 | as_dir="$ac_dir" |
---|
8628 | as_dirs= |
---|
8629 | while test ! -d "$as_dir"; do |
---|
8630 | as_dirs="$as_dir $as_dirs" |
---|
8631 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8632 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8633 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8634 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8635 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8636 | . : '\(.\)' 2>/dev/null || |
---|
8637 | echo X"$as_dir" | |
---|
8638 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8639 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8640 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8641 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8642 | s/.*/./; q'` |
---|
8643 | done |
---|
8644 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8645 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8646 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8647 | { (exit 1); exit 1; }; }; } |
---|
8648 | |
---|
8649 | ac_builddir=. |
---|
8650 | |
---|
8651 | if test "$ac_dir" != .; then |
---|
8652 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
8653 | # A "../" for each directory in $ac_dir_suffix. |
---|
8654 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
8655 | else |
---|
8656 | ac_dir_suffix= ac_top_builddir= |
---|
8657 | fi |
---|
8658 | |
---|
8659 | case $srcdir in |
---|
8660 | .) # No --srcdir option. We are building in place. |
---|
8661 | ac_srcdir=. |
---|
8662 | if test -z "$ac_top_builddir"; then |
---|
8663 | ac_top_srcdir=. |
---|
8664 | else |
---|
8665 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
8666 | fi ;; |
---|
8667 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
8668 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8669 | ac_top_srcdir=$srcdir ;; |
---|
8670 | *) # Relative path. |
---|
8671 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
8672 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
8673 | esac |
---|
8674 | |
---|
8675 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
8676 | # the directories may not exist. |
---|
8677 | case `pwd` in |
---|
8678 | .) ac_abs_builddir="$ac_dir";; |
---|
8679 | *) |
---|
8680 | case "$ac_dir" in |
---|
8681 | .) ac_abs_builddir=`pwd`;; |
---|
8682 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
8683 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
8684 | esac;; |
---|
8685 | esac |
---|
8686 | case $ac_abs_builddir in |
---|
8687 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
8688 | *) |
---|
8689 | case ${ac_top_builddir}. in |
---|
8690 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
8691 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
8692 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
8693 | esac;; |
---|
8694 | esac |
---|
8695 | case $ac_abs_builddir in |
---|
8696 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
8697 | *) |
---|
8698 | case $ac_srcdir in |
---|
8699 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
8700 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
8701 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
8702 | esac;; |
---|
8703 | esac |
---|
8704 | case $ac_abs_builddir in |
---|
8705 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
8706 | *) |
---|
8707 | case $ac_top_srcdir in |
---|
8708 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
8709 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
8710 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
8711 | esac;; |
---|
8712 | esac |
---|
8713 | |
---|
8714 | |
---|
8715 | case $INSTALL in |
---|
8716 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
8717 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
8718 | esac |
---|
8719 | |
---|
8720 | if test x"$ac_file" != x-; then |
---|
8721 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8722 | echo "$as_me: creating $ac_file" >&6;} |
---|
8723 | rm -f "$ac_file" |
---|
8724 | fi |
---|
8725 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8726 | # use $as_me), people would be surprised to read: |
---|
8727 | # /* config.h. Generated by config.status. */ |
---|
8728 | if test x"$ac_file" = x-; then |
---|
8729 | configure_input= |
---|
8730 | else |
---|
8731 | configure_input="$ac_file. " |
---|
8732 | fi |
---|
8733 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
8734 | sed 's,.*/,,'` by configure." |
---|
8735 | |
---|
8736 | # First look for the input files in the build tree, otherwise in the |
---|
8737 | # src tree. |
---|
8738 | ac_file_inputs=`IFS=: |
---|
8739 | for f in $ac_file_in; do |
---|
8740 | case $f in |
---|
8741 | -) echo $tmp/stdin ;; |
---|
8742 | [\\/$]*) |
---|
8743 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8744 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8745 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8746 | { (exit 1); exit 1; }; } |
---|
8747 | echo "$f";; |
---|
8748 | *) # Relative |
---|
8749 | if test -f "$f"; then |
---|
8750 | # Build tree |
---|
8751 | echo "$f" |
---|
8752 | elif test -f "$srcdir/$f"; then |
---|
8753 | # Source tree |
---|
8754 | echo "$srcdir/$f" |
---|
8755 | else |
---|
8756 | # /dev/null tree |
---|
8757 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8758 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8759 | { (exit 1); exit 1; }; } |
---|
8760 | fi;; |
---|
8761 | esac |
---|
8762 | done` || { (exit 1); exit 1; } |
---|
8763 | _ACEOF |
---|
8764 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8765 | sed "$ac_vpsub |
---|
8766 | $extrasub |
---|
8767 | _ACEOF |
---|
8768 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8769 | :t |
---|
8770 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
8771 | s,@configure_input@,$configure_input,;t t |
---|
8772 | s,@srcdir@,$ac_srcdir,;t t |
---|
8773 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
8774 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
8775 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
8776 | s,@builddir@,$ac_builddir,;t t |
---|
8777 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
8778 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
8779 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
8780 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
8781 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
8782 | rm -f $tmp/stdin |
---|
8783 | if test x"$ac_file" != x-; then |
---|
8784 | mv $tmp/out $ac_file |
---|
8785 | else |
---|
8786 | cat $tmp/out |
---|
8787 | rm -f $tmp/out |
---|
8788 | fi |
---|
8789 | |
---|
8790 | done |
---|
8791 | _ACEOF |
---|
8792 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8793 | |
---|
8794 | # |
---|
8795 | # CONFIG_HEADER section. |
---|
8796 | # |
---|
8797 | |
---|
8798 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
8799 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
8800 | # |
---|
8801 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
8802 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
8803 | ac_dB='[ ].*$,\1#\2' |
---|
8804 | ac_dC=' ' |
---|
8805 | ac_dD=',;t' |
---|
8806 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
8807 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
8808 | ac_uB='$,\1#\2define\3' |
---|
8809 | ac_uC=' ' |
---|
8810 | ac_uD=',;t' |
---|
8811 | |
---|
8812 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
8813 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8814 | case $ac_file in |
---|
8815 | - | *:- | *:-:* ) # input from stdin |
---|
8816 | cat >$tmp/stdin |
---|
8817 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8818 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8819 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8820 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8821 | * ) ac_file_in=$ac_file.in ;; |
---|
8822 | esac |
---|
8823 | |
---|
8824 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8825 | echo "$as_me: creating $ac_file" >&6;} |
---|
8826 | |
---|
8827 | # First look for the input files in the build tree, otherwise in the |
---|
8828 | # src tree. |
---|
8829 | ac_file_inputs=`IFS=: |
---|
8830 | for f in $ac_file_in; do |
---|
8831 | case $f in |
---|
8832 | -) echo $tmp/stdin ;; |
---|
8833 | [\\/$]*) |
---|
8834 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8835 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8836 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8837 | { (exit 1); exit 1; }; } |
---|
8838 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
8839 | echo "$f";; |
---|
8840 | *) # Relative |
---|
8841 | if test -f "$f"; then |
---|
8842 | # Build tree |
---|
8843 | echo "$f" |
---|
8844 | elif test -f "$srcdir/$f"; then |
---|
8845 | # Source tree |
---|
8846 | echo "$srcdir/$f" |
---|
8847 | else |
---|
8848 | # /dev/null tree |
---|
8849 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8850 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8851 | { (exit 1); exit 1; }; } |
---|
8852 | fi;; |
---|
8853 | esac |
---|
8854 | done` || { (exit 1); exit 1; } |
---|
8855 | # Remove the trailing spaces. |
---|
8856 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
8857 | |
---|
8858 | _ACEOF |
---|
8859 | |
---|
8860 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
8861 | # `conftest.undefs', that substitutes the proper values into |
---|
8862 | # config.h.in to produce config.h. The first handles `#define' |
---|
8863 | # templates, and the second `#undef' templates. |
---|
8864 | # And first: Protect against being on the right side of a sed subst in |
---|
8865 | # config.status. Protect against being in an unquoted here document |
---|
8866 | # in config.status. |
---|
8867 | rm -f conftest.defines conftest.undefs |
---|
8868 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
8869 | # Putting comments in sed scripts is not portable. |
---|
8870 | # |
---|
8871 | # `end' is used to avoid that the second main sed command (meant for |
---|
8872 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
8873 | # See the Autoconf documentation for `clear'. |
---|
8874 | cat >confdef2sed.sed <<\_ACEOF |
---|
8875 | s/[\\&,]/\\&/g |
---|
8876 | s,[\\$`],\\&,g |
---|
8877 | t clear |
---|
8878 | : clear |
---|
8879 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
8880 | t end |
---|
8881 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
8882 | : end |
---|
8883 | _ACEOF |
---|
8884 | # If some macros were called several times there might be several times |
---|
8885 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
8886 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
8887 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
8888 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
8889 | rm -f confdef2sed.sed |
---|
8890 | |
---|
8891 | # This sed command replaces #undef with comments. This is necessary, for |
---|
8892 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
8893 | # on some systems where configure will not decide to define it. |
---|
8894 | cat >>conftest.undefs <<\_ACEOF |
---|
8895 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
8896 | _ACEOF |
---|
8897 | |
---|
8898 | # Break up conftest.defines because some shells have a limit on the size |
---|
8899 | # of here documents, and old seds have small limits too (100 cmds). |
---|
8900 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
8901 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
8902 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
8903 | echo ' :' >>$CONFIG_STATUS |
---|
8904 | rm -f conftest.tail |
---|
8905 | while grep . conftest.defines >/dev/null |
---|
8906 | do |
---|
8907 | # Write a limited-size here document to $tmp/defines.sed. |
---|
8908 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
8909 | # Speed up: don't consider the non `#define' lines. |
---|
8910 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
8911 | # Work around the forget-to-reset-the-flag bug. |
---|
8912 | echo 't clr' >>$CONFIG_STATUS |
---|
8913 | echo ': clr' >>$CONFIG_STATUS |
---|
8914 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
8915 | echo 'CEOF |
---|
8916 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
8917 | rm -f $tmp/in |
---|
8918 | mv $tmp/out $tmp/in |
---|
8919 | ' >>$CONFIG_STATUS |
---|
8920 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
8921 | rm -f conftest.defines |
---|
8922 | mv conftest.tail conftest.defines |
---|
8923 | done |
---|
8924 | rm -f conftest.defines |
---|
8925 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
8926 | echo >>$CONFIG_STATUS |
---|
8927 | |
---|
8928 | # Break up conftest.undefs because some shells have a limit on the size |
---|
8929 | # of here documents, and old seds have small limits too (100 cmds). |
---|
8930 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
8931 | rm -f conftest.tail |
---|
8932 | while grep . conftest.undefs >/dev/null |
---|
8933 | do |
---|
8934 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
8935 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
8936 | # Speed up: don't consider the non `#undef' |
---|
8937 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
8938 | # Work around the forget-to-reset-the-flag bug. |
---|
8939 | echo 't clr' >>$CONFIG_STATUS |
---|
8940 | echo ': clr' >>$CONFIG_STATUS |
---|
8941 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
8942 | echo 'CEOF |
---|
8943 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
8944 | rm -f $tmp/in |
---|
8945 | mv $tmp/out $tmp/in |
---|
8946 | ' >>$CONFIG_STATUS |
---|
8947 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
8948 | rm -f conftest.undefs |
---|
8949 | mv conftest.tail conftest.undefs |
---|
8950 | done |
---|
8951 | rm -f conftest.undefs |
---|
8952 | |
---|
8953 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8954 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8955 | # use $as_me), people would be surprised to read: |
---|
8956 | # /* config.h. Generated by config.status. */ |
---|
8957 | if test x"$ac_file" = x-; then |
---|
8958 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
8959 | else |
---|
8960 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
8961 | fi |
---|
8962 | cat $tmp/in >>$tmp/config.h |
---|
8963 | rm -f $tmp/in |
---|
8964 | if test x"$ac_file" != x-; then |
---|
8965 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
8966 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
8967 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
8968 | else |
---|
8969 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8970 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8971 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8972 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8973 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8974 | . : '\(.\)' 2>/dev/null || |
---|
8975 | echo X"$ac_file" | |
---|
8976 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8977 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8978 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8979 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8980 | s/.*/./; q'` |
---|
8981 | { if $as_mkdir_p; then |
---|
8982 | mkdir -p "$ac_dir" |
---|
8983 | else |
---|
8984 | as_dir="$ac_dir" |
---|
8985 | as_dirs= |
---|
8986 | while test ! -d "$as_dir"; do |
---|
8987 | as_dirs="$as_dir $as_dirs" |
---|
8988 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8989 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8990 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8991 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8992 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8993 | . : '\(.\)' 2>/dev/null || |
---|
8994 | echo X"$as_dir" | |
---|
8995 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8996 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8997 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8998 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8999 | s/.*/./; q'` |
---|
9000 | done |
---|
9001 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9002 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
9003 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
9004 | { (exit 1); exit 1; }; }; } |
---|
9005 | |
---|
9006 | rm -f $ac_file |
---|
9007 | mv $tmp/config.h $ac_file |
---|
9008 | fi |
---|
9009 | else |
---|
9010 | cat $tmp/config.h |
---|
9011 | rm -f $tmp/config.h |
---|
9012 | fi |
---|
9013 | # Compute $ac_file's index in $config_headers. |
---|
9014 | _am_stamp_count=1 |
---|
9015 | for _am_header in $config_headers :; do |
---|
9016 | case $_am_header in |
---|
9017 | $ac_file | $ac_file:* ) |
---|
9018 | break ;; |
---|
9019 | * ) |
---|
9020 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
9021 | esac |
---|
9022 | done |
---|
9023 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
9024 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9025 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
9026 | X$ac_file : 'X\(//\)$' \| \ |
---|
9027 | X$ac_file : 'X\(/\)' \| \ |
---|
9028 | . : '\(.\)' 2>/dev/null || |
---|
9029 | echo X$ac_file | |
---|
9030 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9031 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9032 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9033 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9034 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
9035 | done |
---|
9036 | _ACEOF |
---|
9037 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9038 | |
---|
9039 | # |
---|
9040 | # CONFIG_COMMANDS section. |
---|
9041 | # |
---|
9042 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
9043 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
9044 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
9045 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
9046 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9047 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
9048 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
9049 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
9050 | . : '\(.\)' 2>/dev/null || |
---|
9051 | echo X"$ac_dest" | |
---|
9052 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9053 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9054 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9055 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9056 | s/.*/./; q'` |
---|
9057 | { if $as_mkdir_p; then |
---|
9058 | mkdir -p "$ac_dir" |
---|
9059 | else |
---|
9060 | as_dir="$ac_dir" |
---|
9061 | as_dirs= |
---|
9062 | while test ! -d "$as_dir"; do |
---|
9063 | as_dirs="$as_dir $as_dirs" |
---|
9064 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9065 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9066 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9067 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9068 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9069 | . : '\(.\)' 2>/dev/null || |
---|
9070 | echo X"$as_dir" | |
---|
9071 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9072 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9073 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9074 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9075 | s/.*/./; q'` |
---|
9076 | done |
---|
9077 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9078 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
9079 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
9080 | { (exit 1); exit 1; }; }; } |
---|
9081 | |
---|
9082 | ac_builddir=. |
---|
9083 | |
---|
9084 | if test "$ac_dir" != .; then |
---|
9085 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
9086 | # A "../" for each directory in $ac_dir_suffix. |
---|
9087 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
9088 | else |
---|
9089 | ac_dir_suffix= ac_top_builddir= |
---|
9090 | fi |
---|
9091 | |
---|
9092 | case $srcdir in |
---|
9093 | .) # No --srcdir option. We are building in place. |
---|
9094 | ac_srcdir=. |
---|
9095 | if test -z "$ac_top_builddir"; then |
---|
9096 | ac_top_srcdir=. |
---|
9097 | else |
---|
9098 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
9099 | fi ;; |
---|
9100 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
9101 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
9102 | ac_top_srcdir=$srcdir ;; |
---|
9103 | *) # Relative path. |
---|
9104 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
9105 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
9106 | esac |
---|
9107 | |
---|
9108 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
9109 | # the directories may not exist. |
---|
9110 | case `pwd` in |
---|
9111 | .) ac_abs_builddir="$ac_dir";; |
---|
9112 | *) |
---|
9113 | case "$ac_dir" in |
---|
9114 | .) ac_abs_builddir=`pwd`;; |
---|
9115 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
9116 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
9117 | esac;; |
---|
9118 | esac |
---|
9119 | case $ac_abs_builddir in |
---|
9120 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9121 | *) |
---|
9122 | case ${ac_top_builddir}. in |
---|
9123 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
9124 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
9125 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
9126 | esac;; |
---|
9127 | esac |
---|
9128 | case $ac_abs_builddir in |
---|
9129 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
9130 | *) |
---|
9131 | case $ac_srcdir in |
---|
9132 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
9133 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
9134 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
9135 | esac;; |
---|
9136 | esac |
---|
9137 | case $ac_abs_builddir in |
---|
9138 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9139 | *) |
---|
9140 | case $ac_top_srcdir in |
---|
9141 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
9142 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
9143 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
9144 | esac;; |
---|
9145 | esac |
---|
9146 | |
---|
9147 | |
---|
9148 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
9149 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
9150 | case $ac_dest in |
---|
9151 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
9152 | # Strip MF so we end up with the name of the file. |
---|
9153 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
9154 | # Check whether this is an Automake generated Makefile or not. |
---|
9155 | # We used to match only the files named `Makefile.in', but |
---|
9156 | # some people rename them; so instead we look at the file content. |
---|
9157 | # Grep'ing the first line is not enough: some people post-process |
---|
9158 | # each Makefile.in and add a new line on top of each file to say so. |
---|
9159 | # So let's grep whole file. |
---|
9160 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
9161 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
9162 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9163 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
9164 | X"$mf" : 'X\(//\)$' \| \ |
---|
9165 | X"$mf" : 'X\(/\)' \| \ |
---|
9166 | . : '\(.\)' 2>/dev/null || |
---|
9167 | echo X"$mf" | |
---|
9168 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9169 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9170 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9171 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9172 | s/.*/./; q'` |
---|
9173 | else |
---|
9174 | continue |
---|
9175 | fi |
---|
9176 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
9177 | # Extract the definition of DEP_FILES from the Makefile without |
---|
9178 | # running `make'. |
---|
9179 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
9180 | test -z "$DEPDIR" && continue |
---|
9181 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
9182 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
9183 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
9184 | # We invoke sed twice because it is the simplest approach to |
---|
9185 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
9186 | for file in `sed -n ' |
---|
9187 | /^DEP_FILES = .*\\\\$/ { |
---|
9188 | s/^DEP_FILES = // |
---|
9189 | :loop |
---|
9190 | s/\\\\$// |
---|
9191 | p |
---|
9192 | n |
---|
9193 | /\\\\$/ b loop |
---|
9194 | p |
---|
9195 | } |
---|
9196 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
9197 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
9198 | # Make sure the directory exists. |
---|
9199 | test -f "$dirpart/$file" && continue |
---|
9200 | fdir=`(dirname "$file") 2>/dev/null || |
---|
9201 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9202 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
9203 | X"$file" : 'X\(//\)$' \| \ |
---|
9204 | X"$file" : 'X\(/\)' \| \ |
---|
9205 | . : '\(.\)' 2>/dev/null || |
---|
9206 | echo X"$file" | |
---|
9207 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9208 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9209 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9210 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9211 | s/.*/./; q'` |
---|
9212 | { if $as_mkdir_p; then |
---|
9213 | mkdir -p $dirpart/$fdir |
---|
9214 | else |
---|
9215 | as_dir=$dirpart/$fdir |
---|
9216 | as_dirs= |
---|
9217 | while test ! -d "$as_dir"; do |
---|
9218 | as_dirs="$as_dir $as_dirs" |
---|
9219 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
9220 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9221 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
9222 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
9223 | X"$as_dir" : 'X\(/\)' \| \ |
---|
9224 | . : '\(.\)' 2>/dev/null || |
---|
9225 | echo X"$as_dir" | |
---|
9226 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
9227 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
9228 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
9229 | /^X\(\/\).*/{ s//\1/; q; } |
---|
9230 | s/.*/./; q'` |
---|
9231 | done |
---|
9232 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
9233 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
9234 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
9235 | { (exit 1); exit 1; }; }; } |
---|
9236 | |
---|
9237 | # echo "creating $dirpart/$file" |
---|
9238 | echo '# dummy' > "$dirpart/$file" |
---|
9239 | done |
---|
9240 | done |
---|
9241 | ;; |
---|
9242 | esac |
---|
9243 | done |
---|
9244 | _ACEOF |
---|
9245 | |
---|
9246 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9247 | |
---|
9248 | { (exit 0); exit 0; } |
---|
9249 | _ACEOF |
---|
9250 | chmod +x $CONFIG_STATUS |
---|
9251 | ac_clean_files=$ac_clean_files_save |
---|
9252 | |
---|
9253 | |
---|
9254 | # configure is writing to config.log, and then calls config.status. |
---|
9255 | # config.status does its own redirection, appending to config.log. |
---|
9256 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
9257 | # by configure, so config.status won't be able to write to it; its |
---|
9258 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
9259 | # effectively closing config.log, so it can be properly (re)opened and |
---|
9260 | # appended to by config.status. When coming back to configure, we |
---|
9261 | # need to make the FD available again. |
---|
9262 | if test "$no_create" != yes; then |
---|
9263 | ac_cs_success=: |
---|
9264 | ac_config_status_args= |
---|
9265 | test "$silent" = yes && |
---|
9266 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
9267 | exec 5>/dev/null |
---|
9268 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
9269 | exec 5>>config.log |
---|
9270 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
9271 | # would make configure fail if this is the last instruction. |
---|
9272 | $ac_cs_success || { (exit 1); exit 1; } |
---|
9273 | fi |
---|
9274 | |
---|