Fix for initialization of scalos preferences library. Library is now loaded only...
[AROS-Contrib.git] / Games / spout / configure
blobb28b77b37d3640fda2b69732d1daedf2a3d9ddc3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for spout unix_1.3.
5 # Report bugs to <rohan@mizzenblog.com>.
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 ## --------------------- ##
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
24 DUALCASE=1; export DUALCASE # for MKS sh
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
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
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
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
51 done
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
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
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'`
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
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=:
98 rm -f conf$$.sh
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
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
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
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; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
156 esac
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 '
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; }; }
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
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
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
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'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
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
227 as_executable_p="test -f"
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'"
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'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
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`
251 exec 6>&1
254 # Initializations.
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}
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}
269 # Identity of this package.
270 PACKAGE_NAME='spout'
271 PACKAGE_TARNAME='spout'
272 PACKAGE_VERSION='unix_1.3'
273 PACKAGE_STRING='spout unix_1.3'
274 PACKAGE_BUGREPORT='rohan@mizzenblog.com'
276 ac_unique_file="config.h.in"
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"
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 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SDL_CONFIG SDL_CFLAGS SDL_LIBS CPP EGREP LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
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
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'
355 ac_prev=
356 for ac_option
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
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
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 ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
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 ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
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 ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
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 ;;
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 ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
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 ;;
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 ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
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 ;;
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 ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
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 ;;
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 ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
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'" ;;
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" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
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 ;;
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 ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
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 ;;
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}
651 esac
652 done
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; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
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
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
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
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
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
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
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=..
727 else
728 ac_srcdir_defaulted=no
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; }; }
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_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
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_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures spout unix_1.3 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 --target=TARGET configure for building compilers for TARGET [HOST]
845 _ACEOF
848 if test -n "$ac_init_help"; then
849 case $ac_init_help in
850 short | recursive ) echo "Configuration of spout unix_1.3:";;
851 esac
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --disable-sdltest Do not try to compile and run a test SDL program
861 Optional Packages:
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
865 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CPP C preprocessor
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
879 Report bugs to <rohan@mizzenblog.com>.
880 _ACEOF
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895 ac_dir_suffix= ac_top_builddir=
898 case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951 esac
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 cd $ac_popdir
969 done
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974 cat <<\_ACEOF
975 spout configure unix_1.3
976 generated by GNU Autoconf 2.59
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by spout $as_me unix_1.3, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
992 $ $0 $@
994 _ACEOF
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018 _ASUNAME
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1028 } >&5
1030 cat >&5 <<_ACEOF
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1037 _ACEOF
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1052 for ac_arg
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1099 echo
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 esac;
1122 echo
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1180 # Predefined preprocessor variables.
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1223 done
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1236 else
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1284 done
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325 am__api_version="1.8"
1326 ac_aux_dir=
1327 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1328 if test -f $ac_dir/install-sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install-sh -c"
1331 break
1332 elif test -f $ac_dir/install.sh; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/install.sh -c"
1335 break
1336 elif test -f $ac_dir/shtool; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 break
1341 done
1342 if test -z "$ac_aux_dir"; then
1343 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345 { (exit 1); exit 1; }; }
1347 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351 # Find a good install program. We prefer a C program (faster),
1352 # so one script is as good as another. But avoid the broken or
1353 # incompatible versions:
1354 # SysV /etc/install, /usr/sbin/install
1355 # SunOS /usr/etc/install
1356 # IRIX /sbin/install
1357 # AIX /bin/install
1358 # AmigaOS /C/install, which installs bootblocks on floppy discs
1359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1362 # OS/2's system install, which has a completely different semantic
1363 # ./install, which can be erroneously created by make from ./install.sh.
1364 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1365 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1366 if test -z "$INSTALL"; then
1367 if test "${ac_cv_path_install+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1373 IFS=$as_save_IFS
1374 test -z "$as_dir" && as_dir=.
1375 # Account for people who put trailing slashes in PATH elements.
1376 case $as_dir/ in
1377 ./ | .// | /cC/* | \
1378 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1379 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1380 /usr/ucb/* ) ;;
1382 # OSF1 and SCO ODT 3.0 have their own names for install.
1383 # Don't use installbsd from OSF since it installs stuff as root
1384 # by default.
1385 for ac_prog in ginstall scoinst install; do
1386 for ac_exec_ext in '' $ac_executable_extensions; do
1387 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1388 if test $ac_prog = install &&
1389 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1390 # AIX install. It has an incompatible calling convention.
1392 elif test $ac_prog = install &&
1393 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1394 # program-specific install script used by HP pwplus--don't use.
1396 else
1397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1398 break 3
1401 done
1402 done
1404 esac
1405 done
1409 if test "${ac_cv_path_install+set}" = set; then
1410 INSTALL=$ac_cv_path_install
1411 else
1412 # As a last resort, use the slow shell script. We don't cache a
1413 # path for INSTALL within a source directory, because that will
1414 # break other packages using the cache if that directory is
1415 # removed, or if the path is relative.
1416 INSTALL=$ac_install_sh
1419 echo "$as_me:$LINENO: result: $INSTALL" >&5
1420 echo "${ECHO_T}$INSTALL" >&6
1422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1423 # It thinks the first close brace ends the variable substitution.
1424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1430 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1431 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1432 # Just in case
1433 sleep 1
1434 echo timestamp > conftest.file
1435 # Do `set' in a subshell so we don't clobber the current shell's
1436 # arguments. Must try -L first in case configure is actually a
1437 # symlink; some systems play weird games with the mod time of symlinks
1438 # (eg FreeBSD returns the mod time of the symlink's containing
1439 # directory).
1440 if (
1441 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1442 if test "$*" = "X"; then
1443 # -L didn't work.
1444 set X `ls -t $srcdir/configure conftest.file`
1446 rm -f conftest.file
1447 if test "$*" != "X $srcdir/configure conftest.file" \
1448 && test "$*" != "X conftest.file $srcdir/configure"; then
1450 # If neither matched, then we have a broken ls. This can happen
1451 # if, for instance, CONFIG_SHELL is bash and it inherits a
1452 # broken ls alias from the environment. This has actually
1453 # happened. Such a system could not be considered "sane".
1454 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1455 alias in your environment" >&5
1456 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1457 alias in your environment" >&2;}
1458 { (exit 1); exit 1; }; }
1461 test "$2" = conftest.file
1463 then
1464 # Ok.
1466 else
1467 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1468 Check your system clock" >&5
1469 echo "$as_me: error: newly created file is older than distributed files!
1470 Check your system clock" >&2;}
1471 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: yes" >&5
1474 echo "${ECHO_T}yes" >&6
1475 test "$program_prefix" != NONE &&
1476 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1477 # Use a double $ so make ignores it.
1478 test "$program_suffix" != NONE &&
1479 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1480 # Double any \ or $. echo might interpret backslashes.
1481 # By default was `s,x,x', remove it if useless.
1482 cat <<\_ACEOF >conftest.sed
1483 s/[\\$]/&&/g;s/;s,x,x,$//
1484 _ACEOF
1485 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1486 rm conftest.sed
1488 # expand $ac_aux_dir to an absolute path
1489 am_aux_dir=`cd $ac_aux_dir && pwd`
1491 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1492 # Use eval to expand $SHELL
1493 if eval "$MISSING --run true"; then
1494 am_missing_run="$MISSING --run "
1495 else
1496 am_missing_run=
1497 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1498 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1501 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1502 # Keeping the `.' argument allows $(mkdir_p) to be used without
1503 # argument. Indeed, we sometimes output rules like
1504 # $(mkdir_p) $(somedir)
1505 # where $(somedir) is conditionally defined.
1506 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1507 # expensive solution, as it forces Make to start a sub-shell.)
1508 mkdir_p='mkdir -p -- .'
1509 else
1510 # On NextStep and OpenStep, the `mkdir' command does not
1511 # recognize any option. It will interpret all options as
1512 # directories to create, and then abort because `.' already
1513 # exists.
1514 for d in ./-p ./--version;
1516 test -d $d && rmdir $d
1517 done
1518 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1519 if test -f "$ac_aux_dir/mkinstalldirs"; then
1520 mkdir_p='$(mkinstalldirs)'
1521 else
1522 mkdir_p='$(install_sh) -d'
1526 for ac_prog in gawk mawk nawk awk
1528 # Extract the first word of "$ac_prog", so it can be a program name with args.
1529 set dummy $ac_prog; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_AWK+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535 if test -n "$AWK"; then
1536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1541 IFS=$as_save_IFS
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_AWK="$ac_prog"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 break 2
1549 done
1550 done
1554 AWK=$ac_cv_prog_AWK
1555 if test -n "$AWK"; then
1556 echo "$as_me:$LINENO: result: $AWK" >&5
1557 echo "${ECHO_T}$AWK" >&6
1558 else
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1563 test -n "$AWK" && break
1564 done
1566 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1567 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1568 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1569 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572 cat >conftest.make <<\_ACEOF
1573 all:
1574 @echo 'ac_maketemp="$(MAKE)"'
1575 _ACEOF
1576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1577 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1578 if test -n "$ac_maketemp"; then
1579 eval ac_cv_prog_make_${ac_make}_set=yes
1580 else
1581 eval ac_cv_prog_make_${ac_make}_set=no
1583 rm -f conftest.make
1585 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1586 echo "$as_me:$LINENO: result: yes" >&5
1587 echo "${ECHO_T}yes" >&6
1588 SET_MAKE=
1589 else
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 SET_MAKE="MAKE=${MAKE-make}"
1595 rm -rf .tst 2>/dev/null
1596 mkdir .tst 2>/dev/null
1597 if test -d .tst; then
1598 am__leading_dot=.
1599 else
1600 am__leading_dot=_
1602 rmdir .tst 2>/dev/null
1604 # test to see if srcdir already configured
1605 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1606 test -f $srcdir/config.status; then
1607 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1608 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1609 { (exit 1); exit 1; }; }
1612 # test whether we have cygpath
1613 if test -z "$CYGPATH_W"; then
1614 if (cygpath --version) >/dev/null 2>/dev/null; then
1615 CYGPATH_W='cygpath -w'
1616 else
1617 CYGPATH_W=echo
1622 # Define the identity of the package.
1623 PACKAGE=spout
1624 VERSION=unix_1.3
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1629 _ACEOF
1632 cat >>confdefs.h <<_ACEOF
1633 #define VERSION "$VERSION"
1634 _ACEOF
1636 # Some tools Automake needs.
1638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1653 AMTAR=${AMTAR-"${am_missing_run}tar"}
1655 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1657 # Installed binaries are usually stripped using `strip' when the user
1658 # run `make install-strip'. However `strip' might not be the right
1659 # tool to use in cross-compilation environments, therefore Automake
1660 # will honor the `STRIP' environment variable to overrule this program.
1661 if test "$cross_compiling" != no; then
1662 if test -n "$ac_tool_prefix"; then
1663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}strip; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_STRIP+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670 if test -n "$STRIP"; then
1671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 break 2
1684 done
1685 done
1689 STRIP=$ac_cv_prog_STRIP
1690 if test -n "$STRIP"; then
1691 echo "$as_me:$LINENO: result: $STRIP" >&5
1692 echo "${ECHO_T}$STRIP" >&6
1693 else
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1699 if test -z "$ac_cv_prog_STRIP"; then
1700 ac_ct_STRIP=$STRIP
1701 # Extract the first word of "strip", so it can be a program name with args.
1702 set dummy strip; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 if test -n "$ac_ct_STRIP"; then
1709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_STRIP="strip"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1722 done
1723 done
1725 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1729 if test -n "$ac_ct_STRIP"; then
1730 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1731 echo "${ECHO_T}$ac_ct_STRIP" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 STRIP=$ac_ct_STRIP
1738 else
1739 STRIP="$ac_cv_prog_STRIP"
1743 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1745 # We need awk for the "check" target. The system "awk" is bad on
1746 # some platforms.
1751 ac_config_headers="$ac_config_headers config.h"
1754 # Checks for programs.
1755 # AC_PROG_CXX
1756 ac_ext=c
1757 ac_cpp='$CPP $CPPFLAGS'
1758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1761 if test -n "$ac_tool_prefix"; then
1762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1763 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1764 echo "$as_me:$LINENO: checking for $ac_word" >&5
1765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766 if test "${ac_cv_prog_CC+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769 if test -n "$CC"; then
1770 ac_cv_prog_CC="$CC" # Let the user override the test.
1771 else
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1783 done
1784 done
1788 CC=$ac_cv_prog_CC
1789 if test -n "$CC"; then
1790 echo "$as_me:$LINENO: result: $CC" >&5
1791 echo "${ECHO_T}$CC" >&6
1792 else
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1798 if test -z "$ac_cv_prog_CC"; then
1799 ac_ct_CC=$CC
1800 # Extract the first word of "gcc", so it can be a program name with args.
1801 set dummy gcc; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807 if test -n "$ac_ct_CC"; then
1808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1809 else
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
1813 IFS=$as_save_IFS
1814 test -z "$as_dir" && as_dir=.
1815 for ac_exec_ext in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_ac_ct_CC="gcc"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1821 done
1822 done
1826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1827 if test -n "$ac_ct_CC"; then
1828 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1829 echo "${ECHO_T}$ac_ct_CC" >&6
1830 else
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1835 CC=$ac_ct_CC
1836 else
1837 CC="$ac_cv_prog_CC"
1840 if test -z "$CC"; then
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}cc; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC="${ac_tool_prefix}cc"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1863 done
1864 done
1868 CC=$ac_cv_prog_CC
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1872 else
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_CC"; then
1879 ac_ct_CC=$CC
1880 # Extract the first word of "cc", so it can be a program name with args.
1881 set dummy cc; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_CC="cc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1901 done
1902 done
1906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1907 if test -n "$ac_ct_CC"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909 echo "${ECHO_T}$ac_ct_CC" >&6
1910 else
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 CC=$ac_ct_CC
1916 else
1917 CC="$ac_cv_prog_CC"
1921 if test -z "$CC"; then
1922 # Extract the first word of "cc", so it can be a program name with args.
1923 set dummy cc; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test.
1931 else
1932 ac_prog_rejected=no
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1941 ac_prog_rejected=yes
1942 continue
1944 ac_cv_prog_CC="cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 break 2
1948 done
1949 done
1951 if test $ac_prog_rejected = yes; then
1952 # We found a bogon in the path, so make sure we never use it.
1953 set dummy $ac_cv_prog_CC
1954 shift
1955 if test $# != 0; then
1956 # We chose a different compiler from the bogus one.
1957 # However, it has the same basename, so the bogon will be chosen
1958 # first if we set CC to just the basename; use the full file name.
1959 shift
1960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1965 CC=$ac_cv_prog_CC
1966 if test -n "$CC"; then
1967 echo "$as_me:$LINENO: result: $CC" >&5
1968 echo "${ECHO_T}$CC" >&6
1969 else
1970 echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6
1975 if test -z "$CC"; then
1976 if test -n "$ac_tool_prefix"; then
1977 for ac_prog in cl
1979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1981 echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983 if test "${ac_cv_prog_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 if test -n "$CC"; then
1987 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
2000 done
2001 done
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007 echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6
2009 else
2010 echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6
2014 test -n "$CC" && break
2015 done
2017 if test -z "$CC"; then
2018 ac_ct_CC=$CC
2019 for ac_prog in cl
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$ac_ct_CC"; then
2029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_ac_ct_CC="$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2042 done
2043 done
2047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2048 if test -n "$ac_ct_CC"; then
2049 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2050 echo "${ECHO_T}$ac_ct_CC" >&6
2051 else
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2056 test -n "$ac_ct_CC" && break
2057 done
2059 CC=$ac_ct_CC
2065 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: no acceptable C compiler found in \$PATH
2068 See \`config.log' for more details." >&2;}
2069 { (exit 1); exit 1; }; }
2071 # Provide some information about the compiler.
2072 echo "$as_me:$LINENO:" \
2073 "checking for C compiler version" >&5
2074 ac_compiler=`set X $ac_compile; echo $2`
2075 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2076 (eval $ac_compiler --version </dev/null >&5) 2>&5
2077 ac_status=$?
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2081 (eval $ac_compiler -v </dev/null >&5) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2086 (eval $ac_compiler -V </dev/null >&5) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2091 cat >conftest.$ac_ext <<_ACEOF
2092 /* confdefs.h. */
2093 _ACEOF
2094 cat confdefs.h >>conftest.$ac_ext
2095 cat >>conftest.$ac_ext <<_ACEOF
2096 /* end confdefs.h. */
2099 main ()
2103 return 0;
2105 _ACEOF
2106 ac_clean_files_save=$ac_clean_files
2107 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2108 # Try to create an executable without -o first, disregard a.out.
2109 # It will help us diagnose broken compilers, and finding out an intuition
2110 # of exeext.
2111 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2112 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2113 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2115 (eval $ac_link_default) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # Find the output, starting from the most likely. This scheme is
2120 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2121 # resort.
2123 # Be careful to initialize this variable, since it used to be cached.
2124 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2125 ac_cv_exeext=
2126 # b.out is created by i960 compilers.
2127 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2129 test -f "$ac_file" || continue
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2133 conftest.$ac_ext )
2134 # This is the source file.
2136 [ab].out )
2137 # We found the default executable, but exeext='' is most
2138 # certainly right.
2139 break;;
2140 *.* )
2141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2142 # FIXME: I believe we export ac_cv_exeext for Libtool,
2143 # but it would be cool to find out if it's true. Does anybody
2144 # maintain Libtool? --akim.
2145 export ac_cv_exeext
2146 break;;
2148 break;;
2149 esac
2150 done
2151 else
2152 echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2155 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&2;}
2159 { (exit 77); exit 77; }; }
2162 ac_exeext=$ac_cv_exeext
2163 echo "$as_me:$LINENO: result: $ac_file" >&5
2164 echo "${ECHO_T}$ac_file" >&6
2166 # Check the compiler produces executables we can run. If not, either
2167 # the compiler is broken, or we cross compile.
2168 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2169 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2170 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2171 # If not cross compiling, check that we can run a simple program.
2172 if test "$cross_compiling" != yes; then
2173 if { ac_try='./$ac_file'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 cross_compiling=no
2180 else
2181 if test "$cross_compiling" = maybe; then
2182 cross_compiling=yes
2183 else
2184 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: cannot run C compiled programs.
2188 If you meant to cross compile, use \`--host'.
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2194 echo "$as_me:$LINENO: result: yes" >&5
2195 echo "${ECHO_T}yes" >&6
2197 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2198 ac_clean_files=$ac_clean_files_save
2199 # Check the compiler produces executables we can run. If not, either
2200 # the compiler is broken, or we cross compile.
2201 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2202 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2203 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2204 echo "${ECHO_T}$cross_compiling" >&6
2206 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2207 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2209 (eval $ac_link) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2215 # work properly (i.e., refer to `conftest.exe'), while it won't with
2216 # `rm'.
2217 for ac_file in conftest.exe conftest conftest.*; do
2218 test -f "$ac_file" || continue
2219 case $ac_file in
2220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222 export ac_cv_exeext
2223 break;;
2224 * ) break;;
2225 esac
2226 done
2227 else
2228 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2235 rm -f conftest$ac_cv_exeext
2236 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2237 echo "${ECHO_T}$ac_cv_exeext" >&6
2239 rm -f conftest.$ac_ext
2240 EXEEXT=$ac_cv_exeext
2241 ac_exeext=$EXEEXT
2242 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2243 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2244 if test "${ac_cv_objext+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h. */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2255 main ()
2259 return 0;
2261 _ACEOF
2262 rm -f conftest.o conftest.obj
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2269 case $ac_file in
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2272 break;;
2273 esac
2274 done
2275 else
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2288 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2289 echo "${ECHO_T}$ac_cv_objext" >&6
2290 OBJEXT=$ac_cv_objext
2291 ac_objext=$OBJEXT
2292 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h. */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2305 main ()
2307 #ifndef __GNUC__
2308 choke me
2309 #endif
2312 return 0;
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 ac_compiler_gnu=yes
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 ac_compiler_gnu=no
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2348 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2349 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2350 GCC=`test $ac_compiler_gnu = yes && echo yes`
2351 ac_test_CFLAGS=${CFLAGS+set}
2352 ac_save_CFLAGS=$CFLAGS
2353 CFLAGS="-g"
2354 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2355 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2356 if test "${ac_cv_prog_cc_g+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 cat >conftest.$ac_ext <<_ACEOF
2360 /* confdefs.h. */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2367 main ()
2371 return 0;
2373 _ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2377 ac_status=$?
2378 grep -v '^ *+' conftest.er1 >conftest.err
2379 rm -f conftest.er1
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 ac_cv_prog_cc_g=yes
2397 else
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2401 ac_cv_prog_cc_g=no
2403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2406 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2407 if test "$ac_test_CFLAGS" = set; then
2408 CFLAGS=$ac_save_CFLAGS
2409 elif test $ac_cv_prog_cc_g = yes; then
2410 if test "$GCC" = yes; then
2411 CFLAGS="-g -O2"
2412 else
2413 CFLAGS="-g"
2415 else
2416 if test "$GCC" = yes; then
2417 CFLAGS="-O2"
2418 else
2419 CFLAGS=
2422 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2423 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2424 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 ac_cv_prog_cc_stdc=no
2428 ac_save_CC=$CC
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2435 #include <stdarg.h>
2436 #include <stdio.h>
2437 #include <sys/types.h>
2438 #include <sys/stat.h>
2439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2440 struct buf { int x; };
2441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2442 static char *e (p, i)
2443 char **p;
2444 int i;
2446 return p[i];
2448 static char *f (char * (*g) (char **, int), char **p, ...)
2450 char *s;
2451 va_list v;
2452 va_start (v,p);
2453 s = g (p, va_arg (v,int));
2454 va_end (v);
2455 return s;
2458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2459 function prototypes and stuff, but not '\xHH' hex character constants.
2460 These don't provoke an error unfortunately, instead are silently treated
2461 as 'x'. The following induces an error, until -std1 is added to get
2462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2463 array size at least. It's necessary to write '\x00'==0 to get something
2464 that's true only with -std1. */
2465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2467 int test (int i, double x);
2468 struct s1 {int (*f) (int a);};
2469 struct s2 {int (*f) (double a);};
2470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2471 int argc;
2472 char **argv;
2474 main ()
2476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2478 return 0;
2480 _ACEOF
2481 # Don't try gcc -ansi; that turns off useful extensions and
2482 # breaks some systems' header files.
2483 # AIX -qlanglvl=ansi
2484 # Ultrix and OSF/1 -std1
2485 # HP-UX 10.20 and later -Ae
2486 # HP-UX older versions -Aa -D_HPUX_SOURCE
2487 # SVR4 -Xc -D__EXTENSIONS__
2488 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2490 CC="$ac_save_CC $ac_arg"
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 ac_cv_prog_cc_stdc=$ac_arg
2514 break
2515 else
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2520 rm -f conftest.err conftest.$ac_objext
2521 done
2522 rm -f conftest.$ac_ext conftest.$ac_objext
2523 CC=$ac_save_CC
2527 case "x$ac_cv_prog_cc_stdc" in
2528 x|xno)
2529 echo "$as_me:$LINENO: result: none needed" >&5
2530 echo "${ECHO_T}none needed" >&6 ;;
2532 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2533 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2534 CC="$CC $ac_cv_prog_cc_stdc" ;;
2535 esac
2537 # Some people use a C++ compiler to compile C. Since we use `exit',
2538 # in C++ we need to declare it. In case someone uses the same compiler
2539 # for both compiling C and C++ we need to have the C++ compiler decide
2540 # the declaration of exit, since it's the most demanding environment.
2541 cat >conftest.$ac_ext <<_ACEOF
2542 #ifndef __cplusplus
2543 choke me
2544 #endif
2545 _ACEOF
2546 rm -f conftest.$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 for ac_declaration in \
2569 '' \
2570 'extern "C" void std::exit (int) throw (); using std::exit;' \
2571 'extern "C" void std::exit (int); using std::exit;' \
2572 'extern "C" void exit (int) throw ();' \
2573 'extern "C" void exit (int);' \
2574 'void exit (int);'
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2582 $ac_declaration
2583 #include <stdlib.h>
2585 main ()
2587 exit (42);
2589 return 0;
2591 _ACEOF
2592 rm -f conftest.$ac_objext
2593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594 (eval $ac_compile) 2>conftest.er1
2595 ac_status=$?
2596 grep -v '^ *+' conftest.er1 >conftest.err
2597 rm -f conftest.er1
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -z "$ac_c_werror_flag"
2602 || test ! -s conftest.err'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2615 else
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2619 continue
2621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h. */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2628 $ac_declaration
2630 main ()
2632 exit (42);
2634 return 0;
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>conftest.er1
2640 ac_status=$?
2641 grep -v '^ *+' conftest.er1 >conftest.err
2642 rm -f conftest.er1
2643 cat conftest.err >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } &&
2646 { ac_try='test -z "$ac_c_werror_flag"
2647 || test ! -s conftest.err'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 break
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 done
2667 rm -f conftest*
2668 if test -n "$ac_declaration"; then
2669 echo '#ifdef __cplusplus' >>confdefs.h
2670 echo $ac_declaration >>confdefs.h
2671 echo '#endif' >>confdefs.h
2674 else
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685 DEPDIR="${am__leading_dot}deps"
2687 ac_config_commands="$ac_config_commands depfiles"
2690 am_make=${MAKE-make}
2691 cat > confinc << 'END'
2692 am__doit:
2693 @echo done
2694 .PHONY: am__doit
2696 # If we don't find an include directive, just comment out the code.
2697 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2698 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2699 am__include="#"
2700 am__quote=
2701 _am_result=none
2702 # First try GNU make style include.
2703 echo "include confinc" > confmf
2704 # We grep out `Entering directory' and `Leaving directory'
2705 # messages which can occur if `w' ends up in MAKEFLAGS.
2706 # In particular we don't look at `^make:' because GNU make might
2707 # be invoked under some other name (usually "gmake"), in which
2708 # case it prints its new name instead of `make'.
2709 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2710 am__include=include
2711 am__quote=
2712 _am_result=GNU
2714 # Now try BSD make style include.
2715 if test "$am__include" = "#"; then
2716 echo '.include "confinc"' > confmf
2717 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2718 am__include=.include
2719 am__quote="\""
2720 _am_result=BSD
2725 echo "$as_me:$LINENO: result: $_am_result" >&5
2726 echo "${ECHO_T}$_am_result" >&6
2727 rm -f confinc confmf
2729 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2730 if test "${enable_dependency_tracking+set}" = set; then
2731 enableval="$enable_dependency_tracking"
2734 if test "x$enable_dependency_tracking" != xno; then
2735 am_depcomp="$ac_aux_dir/depcomp"
2736 AMDEPBACKSLASH='\'
2740 if test "x$enable_dependency_tracking" != xno; then
2741 AMDEP_TRUE=
2742 AMDEP_FALSE='#'
2743 else
2744 AMDEP_TRUE='#'
2745 AMDEP_FALSE=
2751 depcc="$CC" am_compiler_list=
2753 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2754 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2755 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2759 # We make a subdir and do the tests there. Otherwise we can end up
2760 # making bogus files that we don't know about and never remove. For
2761 # instance it was reported that on HP-UX the gcc test will end up
2762 # making a dummy file named `D' -- because `-MD' means `put the output
2763 # in D'.
2764 mkdir conftest.dir
2765 # Copy depcomp to subdir because otherwise we won't find it if we're
2766 # using a relative directory.
2767 cp "$am_depcomp" conftest.dir
2768 cd conftest.dir
2769 # We will build objects and dependencies in a subdirectory because
2770 # it helps to detect inapplicable dependency modes. For instance
2771 # both Tru64's cc and ICC support -MD to output dependencies as a
2772 # side effect of compilation, but ICC will put the dependencies in
2773 # the current directory while Tru64 will put them in the object
2774 # directory.
2775 mkdir sub
2777 am_cv_CC_dependencies_compiler_type=none
2778 if test "$am_compiler_list" = ""; then
2779 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2781 for depmode in $am_compiler_list; do
2782 # Setup a source with many dependencies, because some compilers
2783 # like to wrap large dependency lists on column 80 (with \), and
2784 # we should not choose a depcomp mode which is confused by this.
2786 # We need to recreate these files for each test, as the compiler may
2787 # overwrite some of them when testing with obscure command lines.
2788 # This happens at least with the AIX C compiler.
2789 : > sub/conftest.c
2790 for i in 1 2 3 4 5 6; do
2791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2792 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2793 # Solaris 8's {/usr,}/bin/sh.
2794 touch sub/conftst$i.h
2795 done
2796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2798 case $depmode in
2799 nosideeffect)
2800 # after this tag, mechanisms are not by side-effect, so they'll
2801 # only be used when explicitly requested
2802 if test "x$enable_dependency_tracking" = xyes; then
2803 continue
2804 else
2805 break
2808 none) break ;;
2809 esac
2810 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2811 # mode. It turns out that the SunPro C++ compiler does not properly
2812 # handle `-M -o', and we need to detect this.
2813 if depmode=$depmode \
2814 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2815 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2816 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2817 >/dev/null 2>conftest.err &&
2818 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2819 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2820 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2821 # icc doesn't choke on unknown options, it will just issue warnings
2822 # (even with -Werror). So we grep stderr for any message
2823 # that says an option was ignored.
2824 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2825 am_cv_CC_dependencies_compiler_type=$depmode
2826 break
2829 done
2831 cd ..
2832 rm -rf conftest.dir
2833 else
2834 am_cv_CC_dependencies_compiler_type=none
2838 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2839 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2840 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2845 test "x$enable_dependency_tracking" != xno \
2846 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2847 am__fastdepCC_TRUE=
2848 am__fastdepCC_FALSE='#'
2849 else
2850 am__fastdepCC_TRUE='#'
2851 am__fastdepCC_FALSE=
2855 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2856 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2857 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2858 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861 cat >conftest.make <<\_ACEOF
2862 all:
2863 @echo 'ac_maketemp="$(MAKE)"'
2864 _ACEOF
2865 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2866 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2867 if test -n "$ac_maketemp"; then
2868 eval ac_cv_prog_make_${ac_make}_set=yes
2869 else
2870 eval ac_cv_prog_make_${ac_make}_set=no
2872 rm -f conftest.make
2874 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2875 echo "$as_me:$LINENO: result: yes" >&5
2876 echo "${ECHO_T}yes" >&6
2877 SET_MAKE=
2878 else
2879 echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2881 SET_MAKE="MAKE=${MAKE-make}"
2885 CFLAGS="$CFLAGS -std=gnu99"
2887 # Checks for libraries.
2889 # SDL
2890 SDL_VERSION=1.2.6
2891 # Make sure we can run config.sub.
2892 $ac_config_sub sun4 >/dev/null 2>&1 ||
2893 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2894 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2895 { (exit 1); exit 1; }; }
2897 echo "$as_me:$LINENO: checking build system type" >&5
2898 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2899 if test "${ac_cv_build+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 ac_cv_build_alias=$build_alias
2903 test -z "$ac_cv_build_alias" &&
2904 ac_cv_build_alias=`$ac_config_guess`
2905 test -z "$ac_cv_build_alias" &&
2906 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2908 { (exit 1); exit 1; }; }
2909 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2911 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2912 { (exit 1); exit 1; }; }
2915 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2916 echo "${ECHO_T}$ac_cv_build" >&6
2917 build=$ac_cv_build
2918 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2923 echo "$as_me:$LINENO: checking host system type" >&5
2924 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2925 if test "${ac_cv_host+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928 ac_cv_host_alias=$host_alias
2929 test -z "$ac_cv_host_alias" &&
2930 ac_cv_host_alias=$ac_cv_build_alias
2931 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2932 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2933 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2934 { (exit 1); exit 1; }; }
2937 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2938 echo "${ECHO_T}$ac_cv_host" >&6
2939 host=$ac_cv_host
2940 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2941 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2942 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2945 echo "$as_me:$LINENO: checking target system type" >&5
2946 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2947 if test "${ac_cv_target+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950 ac_cv_target_alias=$target_alias
2951 test "x$ac_cv_target_alias" = "x" &&
2952 ac_cv_target_alias=$ac_cv_host_alias
2953 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2954 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2955 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2956 { (exit 1); exit 1; }; }
2959 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2960 echo "${ECHO_T}$ac_cv_target" >&6
2961 target=$ac_cv_target
2962 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2963 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2964 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2967 # The aliases save the names the user supplied, while $host etc.
2968 # will get canonicalized.
2969 test -n "$target_alias" &&
2970 test "$program_prefix$program_suffix$program_transform_name" = \
2971 NONENONEs,x,x, &&
2972 program_prefix=${target_alias}-
2975 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
2976 if test "${with_sdl_prefix+set}" = set; then
2977 withval="$with_sdl_prefix"
2978 sdl_prefix="$withval"
2979 else
2980 sdl_prefix=""
2983 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
2984 if test "${with_sdl_exec_prefix+set}" = set; then
2985 withval="$with_sdl_exec_prefix"
2986 sdl_exec_prefix="$withval"
2987 else
2988 sdl_exec_prefix=""
2990 # Check whether --enable-sdltest or --disable-sdltest was given.
2991 if test "${enable_sdltest+set}" = set; then
2992 enableval="$enable_sdltest"
2994 else
2995 enable_sdltest=yes
2998 if test x$sdl_exec_prefix != x ; then
2999 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
3000 if test x${SDL_CONFIG+set} != xset ; then
3001 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
3004 if test x$sdl_prefix != x ; then
3005 sdl_args="$sdl_args --prefix=$sdl_prefix"
3006 if test x${SDL_CONFIG+set} != xset ; then
3007 SDL_CONFIG=$sdl_prefix/bin/sdl-config
3012 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
3013 # Extract the first word of "sdl-config", so it can be a program name with args.
3014 set dummy sdl-config; ac_word=$2
3015 echo "$as_me:$LINENO: checking for $ac_word" >&5
3016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3017 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 case $SDL_CONFIG in
3021 [\\/]* | ?:[\\/]*)
3022 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3036 done
3037 done
3039 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
3041 esac
3043 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
3045 if test -n "$SDL_CONFIG"; then
3046 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
3047 echo "${ECHO_T}$SDL_CONFIG" >&6
3048 else
3049 echo "$as_me:$LINENO: result: no" >&5
3050 echo "${ECHO_T}no" >&6
3053 min_sdl_version=$SDL_VERSION
3054 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
3055 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
3056 no_sdl=""
3057 if test "$SDL_CONFIG" = "no" ; then
3058 no_sdl=yes
3059 else
3060 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
3061 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
3063 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
3064 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3065 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
3066 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3067 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
3068 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3069 if test "x$enable_sdltest" = "xyes" ; then
3070 ac_save_CFLAGS="$CFLAGS"
3071 ac_save_LIBS="$LIBS"
3072 CFLAGS="$CFLAGS $SDL_CFLAGS"
3073 LIBS="$LIBS $SDL_LIBS"
3074 rm -f conf.sdltest
3075 if test "$cross_compiling" = yes; then
3076 echo $ac_n "cross compiling; assumed OK... $ac_c"
3077 else
3078 cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h. */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3085 #include <stdio.h>
3086 #include <stdlib.h>
3087 #include <string.h>
3088 #include "SDL.h"
3090 char*
3091 my_strdup (char *str)
3093 char *new_str;
3095 if (str)
3097 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3098 strcpy (new_str, str);
3100 else
3101 new_str = NULL;
3103 return new_str;
3106 int main (int argc, char *argv[])
3108 int major, minor, micro;
3109 char *tmp_version;
3111 /* This hangs on some systems (?)
3112 system ("touch conf.sdltest");
3114 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
3116 /* HP/UX 9 (%@#!) writes to sscanf strings */
3117 tmp_version = my_strdup("$min_sdl_version");
3118 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3119 printf("%s, bad version string\n", "$min_sdl_version");
3120 exit(1);
3123 if (($sdl_major_version > major) ||
3124 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
3125 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
3127 return 0;
3129 else
3131 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
3132 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
3133 printf("*** best to upgrade to the required version.\n");
3134 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
3135 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
3136 printf("*** config.cache before re-running configure\n");
3137 return 1;
3142 _ACEOF
3143 rm -f conftest$ac_exeext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3145 (eval $ac_link) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3155 else
3156 echo "$as_me: program exited with status $ac_status" >&5
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 ( exit $ac_status )
3161 no_sdl=yes
3163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3165 CFLAGS="$ac_save_CFLAGS"
3166 LIBS="$ac_save_LIBS"
3169 if test "x$no_sdl" = x ; then
3170 echo "$as_me:$LINENO: result: yes" >&5
3171 echo "${ECHO_T}yes" >&6
3173 else
3174 echo "$as_me:$LINENO: result: no" >&5
3175 echo "${ECHO_T}no" >&6
3176 if test "$SDL_CONFIG" = "no" ; then
3177 echo "*** The sdl-config script installed by SDL could not be found"
3178 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
3179 echo "*** your path, or set the SDL_CONFIG environment variable to the"
3180 echo "*** full path to sdl-config."
3181 else
3182 if test -f conf.sdltest ; then
3184 else
3185 echo "*** Could not run SDL test program, checking why..."
3186 CFLAGS="$CFLAGS $SDL_CFLAGS"
3187 LIBS="$LIBS $SDL_LIBS"
3188 cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h. */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3195 #include <stdio.h>
3196 #include "SDL.h"
3198 int main(int argc, char *argv[])
3199 { return 0; }
3200 #undef main
3201 #define main K_and_R_C_main
3204 main ()
3206 return 0;
3208 return 0;
3210 _ACEOF
3211 rm -f conftest.$ac_objext conftest$ac_exeext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3213 (eval $ac_link) 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_c_werror_flag"
3221 || test ! -s conftest.err'
3222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 (eval $ac_try) 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; } &&
3227 { ac_try='test -s conftest$ac_exeext'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 (eval $ac_try) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
3233 echo "*** The test program compiled, but did not run. This usually means"
3234 echo "*** that the run-time linker is not finding SDL or finding the wrong"
3235 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
3236 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3237 echo "*** to the installed location Also, make sure you have run ldconfig if that"
3238 echo "*** is required on your system"
3239 echo "***"
3240 echo "*** If you have an old version installed, it is best to remove it, although"
3241 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 echo "*** The test program failed to compile or link. See the file config.log for the"
3247 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
3248 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
3249 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
3251 rm -f conftest.err conftest.$ac_objext \
3252 conftest$ac_exeext conftest.$ac_ext
3253 CFLAGS="$ac_save_CFLAGS"
3254 LIBS="$ac_save_LIBS"
3257 SDL_CFLAGS=""
3258 SDL_LIBS=""
3259 { { echo "$as_me:$LINENO: error: *** couldn't find SDL $SDL_VERSION" >&5
3260 echo "$as_me: error: *** couldn't find SDL $SDL_VERSION" >&2;}
3261 { (exit 1); exit 1; }; }
3265 rm -f conf.sdltest
3267 #CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3268 CFLAGS="$CFLAGS $SDL_CFLAGS"
3269 LIBS="$LIBS $SDL_LIBS"
3271 # Checks for header files.
3272 ac_ext=c
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3278 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3279 # On Suns, sometimes $CPP names a directory.
3280 if test -n "$CPP" && test -d "$CPP"; then
3281 CPP=
3283 if test -z "$CPP"; then
3284 if test "${ac_cv_prog_CPP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 # Double quotes because CPP needs to be expanded
3288 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3290 ac_preproc_ok=false
3291 for ac_c_preproc_warn_flag in '' yes
3293 # Use a header file that comes with gcc, so configuring glibc
3294 # with a fresh cross-compiler works.
3295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3296 # <limits.h> exists even on freestanding compilers.
3297 # On the NeXT, cc -E runs the code through the compiler's parser,
3298 # not just through cpp. "Syntax error" is here to catch this case.
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305 #ifdef __STDC__
3306 # include <limits.h>
3307 #else
3308 # include <assert.h>
3309 #endif
3310 Syntax error
3311 _ACEOF
3312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } >/dev/null; then
3320 if test -s conftest.err; then
3321 ac_cpp_err=$ac_c_preproc_warn_flag
3322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3323 else
3324 ac_cpp_err=
3326 else
3327 ac_cpp_err=yes
3329 if test -z "$ac_cpp_err"; then
3331 else
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 # Broken: fails on valid input.
3336 continue
3338 rm -f conftest.err conftest.$ac_ext
3340 # OK, works on sane cases. Now check whether non-existent headers
3341 # can be detected and how.
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 #include <ac_nonexistent.h>
3349 _ACEOF
3350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3352 ac_status=$?
3353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } >/dev/null; then
3358 if test -s conftest.err; then
3359 ac_cpp_err=$ac_c_preproc_warn_flag
3360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3361 else
3362 ac_cpp_err=
3364 else
3365 ac_cpp_err=yes
3367 if test -z "$ac_cpp_err"; then
3368 # Broken: success on invalid input.
3369 continue
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 # Passes both tests.
3375 ac_preproc_ok=:
3376 break
3378 rm -f conftest.err conftest.$ac_ext
3380 done
3381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3382 rm -f conftest.err conftest.$ac_ext
3383 if $ac_preproc_ok; then
3384 break
3387 done
3388 ac_cv_prog_CPP=$CPP
3391 CPP=$ac_cv_prog_CPP
3392 else
3393 ac_cv_prog_CPP=$CPP
3395 echo "$as_me:$LINENO: result: $CPP" >&5
3396 echo "${ECHO_T}$CPP" >&6
3397 ac_preproc_ok=false
3398 for ac_c_preproc_warn_flag in '' yes
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #ifdef __STDC__
3413 # include <limits.h>
3414 #else
3415 # include <assert.h>
3416 #endif
3417 Syntax error
3418 _ACEOF
3419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } >/dev/null; then
3427 if test -s conftest.err; then
3428 ac_cpp_err=$ac_c_preproc_warn_flag
3429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3430 else
3431 ac_cpp_err=
3433 else
3434 ac_cpp_err=yes
3436 if test -z "$ac_cpp_err"; then
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 # Broken: fails on valid input.
3443 continue
3445 rm -f conftest.err conftest.$ac_ext
3447 # OK, works on sane cases. Now check whether non-existent headers
3448 # can be detected and how.
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #include <ac_nonexistent.h>
3456 _ACEOF
3457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3459 ac_status=$?
3460 grep -v '^ *+' conftest.er1 >conftest.err
3461 rm -f conftest.er1
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } >/dev/null; then
3465 if test -s conftest.err; then
3466 ac_cpp_err=$ac_c_preproc_warn_flag
3467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468 else
3469 ac_cpp_err=
3471 else
3472 ac_cpp_err=yes
3474 if test -z "$ac_cpp_err"; then
3475 # Broken: success on invalid input.
3476 continue
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 # Passes both tests.
3482 ac_preproc_ok=:
3483 break
3485 rm -f conftest.err conftest.$ac_ext
3487 done
3488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3489 rm -f conftest.err conftest.$ac_ext
3490 if $ac_preproc_ok; then
3492 else
3493 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3494 See \`config.log' for more details." >&5
3495 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3496 See \`config.log' for more details." >&2;}
3497 { (exit 1); exit 1; }; }
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 echo "$as_me:$LINENO: checking for egrep" >&5
3508 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3509 if test "${ac_cv_prog_egrep+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3513 then ac_cv_prog_egrep='grep -E'
3514 else ac_cv_prog_egrep='egrep'
3517 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3518 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3519 EGREP=$ac_cv_prog_egrep
3522 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3523 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3524 if test "${ac_cv_header_stdc+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 #include <stdlib.h>
3534 #include <stdarg.h>
3535 #include <string.h>
3536 #include <float.h>
3539 main ()
3543 return 0;
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3549 ac_status=$?
3550 grep -v '^ *+' conftest.er1 >conftest.err
3551 rm -f conftest.er1
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -z "$ac_c_werror_flag"
3556 || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 (eval $ac_try) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 (eval $ac_try) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 ac_cv_header_stdc=yes
3569 else
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 ac_cv_header_stdc=no
3575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3577 if test $ac_cv_header_stdc = yes; then
3578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #include <string.h>
3587 _ACEOF
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 $EGREP "memchr" >/dev/null 2>&1; then
3591 else
3592 ac_cv_header_stdc=no
3594 rm -f conftest*
3598 if test $ac_cv_header_stdc = yes; then
3599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <stdlib.h>
3608 _ACEOF
3609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3610 $EGREP "free" >/dev/null 2>&1; then
3612 else
3613 ac_cv_header_stdc=no
3615 rm -f conftest*
3619 if test $ac_cv_header_stdc = yes; then
3620 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3621 if test "$cross_compiling" = yes; then
3623 else
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #include <ctype.h>
3631 #if ((' ' & 0x0FF) == 0x020)
3632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3634 #else
3635 # define ISLOWER(c) \
3636 (('a' <= (c) && (c) <= 'i') \
3637 || ('j' <= (c) && (c) <= 'r') \
3638 || ('s' <= (c) && (c) <= 'z'))
3639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3640 #endif
3642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3644 main ()
3646 int i;
3647 for (i = 0; i < 256; i++)
3648 if (XOR (islower (i), ISLOWER (i))
3649 || toupper (i) != TOUPPER (i))
3650 exit(2);
3651 exit (0);
3653 _ACEOF
3654 rm -f conftest$ac_exeext
3655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656 (eval $ac_link) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3666 else
3667 echo "$as_me: program exited with status $ac_status" >&5
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 ( exit $ac_status )
3672 ac_cv_header_stdc=no
3674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3678 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3679 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3680 if test $ac_cv_header_stdc = yes; then
3682 cat >>confdefs.h <<\_ACEOF
3683 #define STDC_HEADERS 1
3684 _ACEOF
3688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3698 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3699 inttypes.h stdint.h unistd.h
3701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3702 echo "$as_me:$LINENO: checking for $ac_header" >&5
3703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707 cat >conftest.$ac_ext <<_ACEOF
3708 /* confdefs.h. */
3709 _ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3713 $ac_includes_default
3715 #include <$ac_header>
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -z "$ac_c_werror_flag"
3727 || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 eval "$as_ac_Header=yes"
3740 else
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 eval "$as_ac_Header=no"
3746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3751 cat >>confdefs.h <<_ACEOF
3752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3753 _ACEOF
3757 done
3765 for ac_header in stdint.h unistd.h string.h stdlib.h wordexp.h
3767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3769 echo "$as_me:$LINENO: checking for $ac_header" >&5
3770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3776 else
3777 # Is the header compilable?
3778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3786 $ac_includes_default
3787 #include <$ac_header>
3788 _ACEOF
3789 rm -f conftest.$ac_objext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791 (eval $ac_compile) 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
3798 { ac_try='test -z "$ac_c_werror_flag"
3799 || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest.$ac_objext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 ac_header_compiler=yes
3812 else
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3816 ac_header_compiler=no
3818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3820 echo "${ECHO_T}$ac_header_compiler" >&6
3822 # Is the header present?
3823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h. */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3831 #include <$ac_header>
3832 _ACEOF
3833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null; then
3841 if test -s conftest.err; then
3842 ac_cpp_err=$ac_c_preproc_warn_flag
3843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3844 else
3845 ac_cpp_err=
3847 else
3848 ac_cpp_err=yes
3850 if test -z "$ac_cpp_err"; then
3851 ac_header_preproc=yes
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 ac_header_preproc=no
3858 rm -f conftest.err conftest.$ac_ext
3859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3860 echo "${ECHO_T}$ac_header_preproc" >&6
3862 # So? What about this header?
3863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3864 yes:no: )
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3869 ac_header_preproc=yes
3871 no:yes:* )
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3885 cat <<\_ASBOX
3886 ## ----------------------------------- ##
3887 ## Report this to rohan@mizzenblog.com ##
3888 ## ----------------------------------- ##
3889 _ASBOX
3891 sed "s/^/$as_me: WARNING: /" >&2
3893 esac
3894 echo "$as_me:$LINENO: checking for $ac_header" >&5
3895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 eval "$as_ac_Header=\$ac_header_preproc"
3901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3906 cat >>confdefs.h <<_ACEOF
3907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3908 _ACEOF
3912 done
3915 # Checks for typedefs, structures, and compiler characteristics.
3916 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
3917 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
3918 if test "${ac_cv_header_stdbool_h+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h. */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3928 #include <stdbool.h>
3929 #ifndef bool
3930 # error bool is not defined
3931 #endif
3932 #ifndef false
3933 # error false is not defined
3934 #endif
3935 #if false
3936 # error false is not 0
3937 #endif
3938 #ifndef true
3939 # error true is not defined
3940 #endif
3941 #if true != 1
3942 # error true is not 1
3943 #endif
3944 #ifndef __bool_true_false_are_defined
3945 # error __bool_true_false_are_defined is not defined
3946 #endif
3948 struct s { _Bool s: 1; _Bool t; } s;
3950 char a[true == 1 ? 1 : -1];
3951 char b[false == 0 ? 1 : -1];
3952 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3953 char d[(bool) -0.5 == true ? 1 : -1];
3954 bool e = &s;
3955 char f[(_Bool) -0.0 == false ? 1 : -1];
3956 char g[true];
3957 char h[sizeof (_Bool)];
3958 char i[sizeof s.t];
3961 main ()
3963 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
3965 return 0;
3967 _ACEOF
3968 rm -f conftest.$ac_objext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3970 (eval $ac_compile) 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try='test -z "$ac_c_werror_flag"
3978 || test ! -s conftest.err'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; } &&
3984 { ac_try='test -s conftest.$ac_objext'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 ac_cv_header_stdbool_h=yes
3991 else
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 ac_cv_header_stdbool_h=no
3997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3999 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4000 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4001 echo "$as_me:$LINENO: checking for _Bool" >&5
4002 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4003 if test "${ac_cv_type__Bool+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4014 main ()
4016 if ((_Bool *) 0)
4017 return 0;
4018 if (sizeof (_Bool))
4019 return 0;
4021 return 0;
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 ac_cv_type__Bool=yes
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 ac_cv_type__Bool=no
4053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4055 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4056 echo "${ECHO_T}$ac_cv_type__Bool" >&6
4057 if test $ac_cv_type__Bool = yes; then
4059 cat >>confdefs.h <<_ACEOF
4060 #define HAVE__BOOL 1
4061 _ACEOF
4066 if test $ac_cv_header_stdbool_h = yes; then
4068 cat >>confdefs.h <<\_ACEOF
4069 #define HAVE_STDBOOL_H 1
4070 _ACEOF
4074 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4075 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4076 if test "${ac_cv_c_const+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4087 main ()
4089 /* FIXME: Include the comments suggested by Paul. */
4090 #ifndef __cplusplus
4091 /* Ultrix mips cc rejects this. */
4092 typedef int charset[2];
4093 const charset x;
4094 /* SunOS 4.1.1 cc rejects this. */
4095 char const *const *ccp;
4096 char **p;
4097 /* NEC SVR4.0.2 mips cc rejects this. */
4098 struct point {int x, y;};
4099 static struct point const zero = {0,0};
4100 /* AIX XL C 1.02.0.0 rejects this.
4101 It does not let you subtract one const X* pointer from another in
4102 an arm of an if-expression whose if-part is not a constant
4103 expression */
4104 const char *g = "string";
4105 ccp = &g + (g ? g-g : 0);
4106 /* HPUX 7.0 cc rejects these. */
4107 ++ccp;
4108 p = (char**) ccp;
4109 ccp = (char const *const *) p;
4110 { /* SCO 3.2v4 cc rejects this. */
4111 char *t;
4112 char const *s = 0 ? (char *) 0 : (char const *) 0;
4114 *t++ = 0;
4116 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4117 int x[] = {25, 17};
4118 const int *foo = &x[0];
4119 ++foo;
4121 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4122 typedef const int *iptr;
4123 iptr p = 0;
4124 ++p;
4126 { /* AIX XL C 1.02.0.0 rejects this saying
4127 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4128 struct s { int j; const int *ap[3]; };
4129 struct s *b; b->j = 5;
4131 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4132 const int foo = 10;
4134 #endif
4137 return 0;
4139 _ACEOF
4140 rm -f conftest.$ac_objext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142 (eval $ac_compile) 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag"
4150 || test ! -s conftest.err'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_cv_c_const=yes
4163 else
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 ac_cv_c_const=no
4169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4171 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4172 echo "${ECHO_T}$ac_cv_c_const" >&6
4173 if test $ac_cv_c_const = no; then
4175 cat >>confdefs.h <<\_ACEOF
4176 #define const
4177 _ACEOF
4182 # Checks for library functions.
4184 for ac_header in stdlib.h
4186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4188 echo "$as_me:$LINENO: checking for $ac_header" >&5
4189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4195 else
4196 # Is the header compilable?
4197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4205 $ac_includes_default
4206 #include <$ac_header>
4207 _ACEOF
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_header_compiler=yes
4231 else
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 ac_header_compiler=no
4237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4239 echo "${ECHO_T}$ac_header_compiler" >&6
4241 # Is the header present?
4242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #include <$ac_header>
4251 _ACEOF
4252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4254 ac_status=$?
4255 grep -v '^ *+' conftest.er1 >conftest.err
4256 rm -f conftest.er1
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } >/dev/null; then
4260 if test -s conftest.err; then
4261 ac_cpp_err=$ac_c_preproc_warn_flag
4262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4263 else
4264 ac_cpp_err=
4266 else
4267 ac_cpp_err=yes
4269 if test -z "$ac_cpp_err"; then
4270 ac_header_preproc=yes
4271 else
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 ac_header_preproc=no
4277 rm -f conftest.err conftest.$ac_ext
4278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4279 echo "${ECHO_T}$ac_header_preproc" >&6
4281 # So? What about this header?
4282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4283 yes:no: )
4284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4288 ac_header_preproc=yes
4290 no:yes:* )
4291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4304 cat <<\_ASBOX
4305 ## ----------------------------------- ##
4306 ## Report this to rohan@mizzenblog.com ##
4307 ## ----------------------------------- ##
4308 _ASBOX
4310 sed "s/^/$as_me: WARNING: /" >&2
4312 esac
4313 echo "$as_me:$LINENO: checking for $ac_header" >&5
4314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 eval "$as_ac_Header=\$ac_header_preproc"
4320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4325 cat >>confdefs.h <<_ACEOF
4326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4327 _ACEOF
4331 done
4333 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4334 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
4335 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338 if test "$cross_compiling" = yes; then
4339 ac_cv_func_malloc_0_nonnull=no
4340 else
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 #if STDC_HEADERS || HAVE_STDLIB_H
4348 # include <stdlib.h>
4349 #else
4350 char *malloc ();
4351 #endif
4354 main ()
4356 exit (malloc (0) ? 0 : 1);
4358 return 0;
4360 _ACEOF
4361 rm -f conftest$ac_exeext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4363 (eval $ac_link) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 ac_cv_func_malloc_0_nonnull=yes
4373 else
4374 echo "$as_me: program exited with status $ac_status" >&5
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 ( exit $ac_status )
4379 ac_cv_func_malloc_0_nonnull=no
4381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4384 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4385 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4386 if test $ac_cv_func_malloc_0_nonnull = yes; then
4388 cat >>confdefs.h <<\_ACEOF
4389 #define HAVE_MALLOC 1
4390 _ACEOF
4392 else
4393 cat >>confdefs.h <<\_ACEOF
4394 #define HAVE_MALLOC 0
4395 _ACEOF
4397 case $LIBOBJS in
4398 "malloc.$ac_objext" | \
4399 *" malloc.$ac_objext" | \
4400 "malloc.$ac_objext "* | \
4401 *" malloc.$ac_objext "* ) ;;
4402 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4403 esac
4406 cat >>confdefs.h <<\_ACEOF
4407 #define malloc rpl_malloc
4408 _ACEOF
4415 for ac_header in stdlib.h
4417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4419 echo "$as_me:$LINENO: checking for $ac_header" >&5
4420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4426 else
4427 # Is the header compilable?
4428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h. */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 $ac_includes_default
4437 #include <$ac_header>
4438 _ACEOF
4439 rm -f conftest.$ac_objext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441 (eval $ac_compile) 2>conftest.er1
4442 ac_status=$?
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -z "$ac_c_werror_flag"
4449 || test ! -s conftest.err'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_header_compiler=yes
4462 else
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 ac_header_compiler=no
4468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4470 echo "${ECHO_T}$ac_header_compiler" >&6
4472 # Is the header present?
4473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 #include <$ac_header>
4482 _ACEOF
4483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } >/dev/null; then
4491 if test -s conftest.err; then
4492 ac_cpp_err=$ac_c_preproc_warn_flag
4493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4494 else
4495 ac_cpp_err=
4497 else
4498 ac_cpp_err=yes
4500 if test -z "$ac_cpp_err"; then
4501 ac_header_preproc=yes
4502 else
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 ac_header_preproc=no
4508 rm -f conftest.err conftest.$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4510 echo "${ECHO_T}$ac_header_preproc" >&6
4512 # So? What about this header?
4513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4514 yes:no: )
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4519 ac_header_preproc=yes
4521 no:yes:* )
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4535 cat <<\_ASBOX
4536 ## ----------------------------------- ##
4537 ## Report this to rohan@mizzenblog.com ##
4538 ## ----------------------------------- ##
4539 _ASBOX
4541 sed "s/^/$as_me: WARNING: /" >&2
4543 esac
4544 echo "$as_me:$LINENO: checking for $ac_header" >&5
4545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 eval "$as_ac_Header=\$ac_header_preproc"
4551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4556 cat >>confdefs.h <<_ACEOF
4557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4558 _ACEOF
4562 done
4564 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
4565 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
4566 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 if test "$cross_compiling" = yes; then
4570 ac_cv_func_realloc_0_nonnull=no
4571 else
4572 cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 #if STDC_HEADERS || HAVE_STDLIB_H
4579 # include <stdlib.h>
4580 #else
4581 char *realloc ();
4582 #endif
4585 main ()
4587 exit (realloc (0, 0) ? 0 : 1);
4589 return 0;
4591 _ACEOF
4592 rm -f conftest$ac_exeext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4594 (eval $ac_link) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_func_realloc_0_nonnull=yes
4604 else
4605 echo "$as_me: program exited with status $ac_status" >&5
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 ( exit $ac_status )
4610 ac_cv_func_realloc_0_nonnull=no
4612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4615 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
4616 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
4617 if test $ac_cv_func_realloc_0_nonnull = yes; then
4619 cat >>confdefs.h <<\_ACEOF
4620 #define HAVE_REALLOC 1
4621 _ACEOF
4623 else
4624 cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_REALLOC 0
4626 _ACEOF
4628 case $LIBOBJS in
4629 "realloc.$ac_objext" | \
4630 *" realloc.$ac_objext" | \
4631 "realloc.$ac_objext "* | \
4632 *" realloc.$ac_objext "* ) ;;
4633 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
4634 esac
4637 cat >>confdefs.h <<\_ACEOF
4638 #define realloc rpl_realloc
4639 _ACEOF
4646 ac_config_files="$ac_config_files Makefile"
4648 cat >confcache <<\_ACEOF
4649 # This file is a shell script that caches the results of configure
4650 # tests run on this system so they can be shared between configure
4651 # scripts and configure runs, see configure's option --config-cache.
4652 # It is not useful on other systems. If it contains results you don't
4653 # want to keep, you may remove or edit it.
4655 # config.status only pays attention to the cache file if you give it
4656 # the --recheck option to rerun configure.
4658 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4659 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4660 # following values.
4662 _ACEOF
4664 # The following way of writing the cache mishandles newlines in values,
4665 # but we know of no workaround that is simple, portable, and efficient.
4666 # So, don't put newlines in cache variables' values.
4667 # Ultrix sh set writes to stderr and can't be redirected directly,
4668 # and sets the high bit in the cache file unless we assign to the vars.
4670 (set) 2>&1 |
4671 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4672 *ac_space=\ *)
4673 # `set' does not quote correctly, so add quotes (double-quote
4674 # substitution turns \\\\ into \\, and sed turns \\ into \).
4675 sed -n \
4676 "s/'/'\\\\''/g;
4677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4680 # `set' quotes correctly as required by POSIX, so do not add quotes.
4681 sed -n \
4682 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4684 esac;
4686 sed '
4687 t clear
4688 : clear
4689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4690 t end
4691 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4692 : end' >>confcache
4693 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4694 if test -w $cache_file; then
4695 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4696 cat confcache >$cache_file
4697 else
4698 echo "not updating unwritable cache $cache_file"
4701 rm -f confcache
4703 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4704 # Let make expand exec_prefix.
4705 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4707 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4708 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4709 # trailing colons and then remove the whole line if VPATH becomes empty
4710 # (actually we leave an empty line to preserve line numbers).
4711 if test "x$srcdir" = x.; then
4712 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4713 s/:*\$(srcdir):*/:/;
4714 s/:*\${srcdir}:*/:/;
4715 s/:*@srcdir@:*/:/;
4716 s/^\([^=]*=[ ]*\):*/\1/;
4717 s/:*$//;
4718 s/^[^=]*=[ ]*$//;
4722 DEFS=-DHAVE_CONFIG_H
4724 ac_libobjs=
4725 ac_ltlibobjs=
4726 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4727 # 1. Remove the extension, and $U if already installed.
4728 ac_i=`echo "$ac_i" |
4729 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4730 # 2. Add them.
4731 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4732 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4733 done
4734 LIBOBJS=$ac_libobjs
4736 LTLIBOBJS=$ac_ltlibobjs
4739 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4740 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4741 Usually this means the macro was only invoked conditionally." >&5
4742 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4743 Usually this means the macro was only invoked conditionally." >&2;}
4744 { (exit 1); exit 1; }; }
4746 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4747 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4748 Usually this means the macro was only invoked conditionally." >&5
4749 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4750 Usually this means the macro was only invoked conditionally." >&2;}
4751 { (exit 1); exit 1; }; }
4754 : ${CONFIG_STATUS=./config.status}
4755 ac_clean_files_save=$ac_clean_files
4756 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4757 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4758 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4759 cat >$CONFIG_STATUS <<_ACEOF
4760 #! $SHELL
4761 # Generated by $as_me.
4762 # Run this file to recreate the current configuration.
4763 # Compiler output produced by configure, useful for debugging
4764 # configure, is in config.log if it exists.
4766 debug=false
4767 ac_cs_recheck=false
4768 ac_cs_silent=false
4769 SHELL=\${CONFIG_SHELL-$SHELL}
4770 _ACEOF
4772 cat >>$CONFIG_STATUS <<\_ACEOF
4773 ## --------------------- ##
4774 ## M4sh Initialization. ##
4775 ## --------------------- ##
4777 # Be Bourne compatible
4778 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4779 emulate sh
4780 NULLCMD=:
4781 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4782 # is contrary to our usage. Disable this feature.
4783 alias -g '${1+"$@"}'='"$@"'
4784 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4785 set -o posix
4787 DUALCASE=1; export DUALCASE # for MKS sh
4789 # Support unset when possible.
4790 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4791 as_unset=unset
4792 else
4793 as_unset=false
4797 # Work around bugs in pre-3.0 UWIN ksh.
4798 $as_unset ENV MAIL MAILPATH
4799 PS1='$ '
4800 PS2='> '
4801 PS4='+ '
4803 # NLS nuisances.
4804 for as_var in \
4805 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4806 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4807 LC_TELEPHONE LC_TIME
4809 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4810 eval $as_var=C; export $as_var
4811 else
4812 $as_unset $as_var
4814 done
4816 # Required to use basename.
4817 if expr a : '\(a\)' >/dev/null 2>&1; then
4818 as_expr=expr
4819 else
4820 as_expr=false
4823 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4824 as_basename=basename
4825 else
4826 as_basename=false
4830 # Name of the executable.
4831 as_me=`$as_basename "$0" ||
4832 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4833 X"$0" : 'X\(//\)$' \| \
4834 X"$0" : 'X\(/\)$' \| \
4835 . : '\(.\)' 2>/dev/null ||
4836 echo X/"$0" |
4837 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4838 /^X\/\(\/\/\)$/{ s//\1/; q; }
4839 /^X\/\(\/\).*/{ s//\1/; q; }
4840 s/.*/./; q'`
4843 # PATH needs CR, and LINENO needs CR and PATH.
4844 # Avoid depending upon Character Ranges.
4845 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4846 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4847 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4848 as_cr_digits='0123456789'
4849 as_cr_alnum=$as_cr_Letters$as_cr_digits
4851 # The user is always right.
4852 if test "${PATH_SEPARATOR+set}" != set; then
4853 echo "#! /bin/sh" >conf$$.sh
4854 echo "exit 0" >>conf$$.sh
4855 chmod +x conf$$.sh
4856 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4857 PATH_SEPARATOR=';'
4858 else
4859 PATH_SEPARATOR=:
4861 rm -f conf$$.sh
4865 as_lineno_1=$LINENO
4866 as_lineno_2=$LINENO
4867 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4868 test "x$as_lineno_1" != "x$as_lineno_2" &&
4869 test "x$as_lineno_3" = "x$as_lineno_2" || {
4870 # Find who we are. Look in the path if we contain no path at all
4871 # relative or not.
4872 case $0 in
4873 *[\\/]* ) as_myself=$0 ;;
4874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4880 done
4883 esac
4884 # We did not find ourselves, most probably we were run as `sh COMMAND'
4885 # in which case we are not to be found in the path.
4886 if test "x$as_myself" = x; then
4887 as_myself=$0
4889 if test ! -f "$as_myself"; then
4890 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4891 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4892 { (exit 1); exit 1; }; }
4894 case $CONFIG_SHELL in
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for as_base in sh bash ksh sh5; do
4902 case $as_dir in
4904 if ("$as_dir/$as_base" -c '
4905 as_lineno_1=$LINENO
4906 as_lineno_2=$LINENO
4907 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4908 test "x$as_lineno_1" != "x$as_lineno_2" &&
4909 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4910 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4911 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4912 CONFIG_SHELL=$as_dir/$as_base
4913 export CONFIG_SHELL
4914 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4915 fi;;
4916 esac
4917 done
4918 done
4920 esac
4922 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4923 # uniformly replaced by the line number. The first 'sed' inserts a
4924 # line-number line before each line; the second 'sed' does the real
4925 # work. The second script uses 'N' to pair each line-number line
4926 # with the numbered line, and appends trailing '-' during
4927 # substitution so that $LINENO is not a special case at line end.
4928 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4929 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4930 sed '=' <$as_myself |
4931 sed '
4933 s,$,-,
4934 : loop
4935 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4936 t loop
4937 s,-$,,
4938 s,^['$as_cr_digits']*\n,,
4939 ' >$as_me.lineno &&
4940 chmod +x $as_me.lineno ||
4941 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4942 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4943 { (exit 1); exit 1; }; }
4945 # Don't try to exec as it changes $[0], causing all sort of problems
4946 # (the dirname of $[0] is not the place where we might find the
4947 # original and so on. Autoconf is especially sensible to this).
4948 . ./$as_me.lineno
4949 # Exit status is that of the last command.
4950 exit
4954 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4955 *c*,-n*) ECHO_N= ECHO_C='
4956 ' ECHO_T=' ' ;;
4957 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4958 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4959 esac
4961 if expr a : '\(a\)' >/dev/null 2>&1; then
4962 as_expr=expr
4963 else
4964 as_expr=false
4967 rm -f conf$$ conf$$.exe conf$$.file
4968 echo >conf$$.file
4969 if ln -s conf$$.file conf$$ 2>/dev/null; then
4970 # We could just check for DJGPP; but this test a) works b) is more generic
4971 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4972 if test -f conf$$.exe; then
4973 # Don't use ln at all; we don't have any links
4974 as_ln_s='cp -p'
4975 else
4976 as_ln_s='ln -s'
4978 elif ln conf$$.file conf$$ 2>/dev/null; then
4979 as_ln_s=ln
4980 else
4981 as_ln_s='cp -p'
4983 rm -f conf$$ conf$$.exe conf$$.file
4985 if mkdir -p . 2>/dev/null; then
4986 as_mkdir_p=:
4987 else
4988 test -d ./-p && rmdir ./-p
4989 as_mkdir_p=false
4992 as_executable_p="test -f"
4994 # Sed expression to map a string onto a valid CPP name.
4995 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4997 # Sed expression to map a string onto a valid variable name.
4998 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5001 # IFS
5002 # We need space, tab and new line, in precisely that order.
5003 as_nl='
5005 IFS=" $as_nl"
5007 # CDPATH.
5008 $as_unset CDPATH
5010 exec 6>&1
5012 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5013 # report actual input values of CONFIG_FILES etc. instead of their
5014 # values after options handling. Logging --version etc. is OK.
5015 exec 5>>config.log
5017 echo
5018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5019 ## Running $as_me. ##
5020 _ASBOX
5021 } >&5
5022 cat >&5 <<_CSEOF
5024 This file was extended by spout $as_me unix_1.3, which was
5025 generated by GNU Autoconf 2.59. Invocation command line was
5027 CONFIG_FILES = $CONFIG_FILES
5028 CONFIG_HEADERS = $CONFIG_HEADERS
5029 CONFIG_LINKS = $CONFIG_LINKS
5030 CONFIG_COMMANDS = $CONFIG_COMMANDS
5031 $ $0 $@
5033 _CSEOF
5034 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5035 echo >&5
5036 _ACEOF
5038 # Files that config.status was made for.
5039 if test -n "$ac_config_files"; then
5040 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5043 if test -n "$ac_config_headers"; then
5044 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5047 if test -n "$ac_config_links"; then
5048 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5051 if test -n "$ac_config_commands"; then
5052 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5055 cat >>$CONFIG_STATUS <<\_ACEOF
5057 ac_cs_usage="\
5058 \`$as_me' instantiates files from templates according to the
5059 current configuration.
5061 Usage: $0 [OPTIONS] [FILE]...
5063 -h, --help print this help, then exit
5064 -V, --version print version number, then exit
5065 -q, --quiet do not print progress messages
5066 -d, --debug don't remove temporary files
5067 --recheck update $as_me by reconfiguring in the same conditions
5068 --file=FILE[:TEMPLATE]
5069 instantiate the configuration file FILE
5070 --header=FILE[:TEMPLATE]
5071 instantiate the configuration header FILE
5073 Configuration files:
5074 $config_files
5076 Configuration headers:
5077 $config_headers
5079 Configuration commands:
5080 $config_commands
5082 Report bugs to <bug-autoconf@gnu.org>."
5083 _ACEOF
5085 cat >>$CONFIG_STATUS <<_ACEOF
5086 ac_cs_version="\\
5087 spout config.status unix_1.3
5088 configured by $0, generated by GNU Autoconf 2.59,
5089 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5091 Copyright (C) 2003 Free Software Foundation, Inc.
5092 This config.status script is free software; the Free Software Foundation
5093 gives unlimited permission to copy, distribute and modify it."
5094 srcdir=$srcdir
5095 INSTALL="$INSTALL"
5096 _ACEOF
5098 cat >>$CONFIG_STATUS <<\_ACEOF
5099 # If no file are specified by the user, then we need to provide default
5100 # value. By we need to know if files were specified by the user.
5101 ac_need_defaults=:
5102 while test $# != 0
5104 case $1 in
5105 --*=*)
5106 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5107 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5108 ac_shift=:
5111 ac_option=$1
5112 ac_optarg=$2
5113 ac_shift=shift
5115 *) # This is not an option, so the user has probably given explicit
5116 # arguments.
5117 ac_option=$1
5118 ac_need_defaults=false;;
5119 esac
5121 case $ac_option in
5122 # Handling of the options.
5123 _ACEOF
5124 cat >>$CONFIG_STATUS <<\_ACEOF
5125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5126 ac_cs_recheck=: ;;
5127 --version | --vers* | -V )
5128 echo "$ac_cs_version"; exit 0 ;;
5129 --he | --h)
5130 # Conflict between --help and --header
5131 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5132 Try \`$0 --help' for more information." >&5
5133 echo "$as_me: error: ambiguous option: $1
5134 Try \`$0 --help' for more information." >&2;}
5135 { (exit 1); exit 1; }; };;
5136 --help | --hel | -h )
5137 echo "$ac_cs_usage"; exit 0 ;;
5138 --debug | --d* | -d )
5139 debug=: ;;
5140 --file | --fil | --fi | --f )
5141 $ac_shift
5142 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5143 ac_need_defaults=false;;
5144 --header | --heade | --head | --hea )
5145 $ac_shift
5146 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5147 ac_need_defaults=false;;
5148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5150 ac_cs_silent=: ;;
5152 # This is an error.
5153 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5154 Try \`$0 --help' for more information." >&5
5155 echo "$as_me: error: unrecognized option: $1
5156 Try \`$0 --help' for more information." >&2;}
5157 { (exit 1); exit 1; }; } ;;
5159 *) ac_config_targets="$ac_config_targets $1" ;;
5161 esac
5162 shift
5163 done
5165 ac_configure_extra_args=
5167 if $ac_cs_silent; then
5168 exec 6>/dev/null
5169 ac_configure_extra_args="$ac_configure_extra_args --silent"
5172 _ACEOF
5173 cat >>$CONFIG_STATUS <<_ACEOF
5174 if \$ac_cs_recheck; then
5175 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5176 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5179 _ACEOF
5181 cat >>$CONFIG_STATUS <<_ACEOF
5183 # INIT-COMMANDS section.
5186 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5188 _ACEOF
5192 cat >>$CONFIG_STATUS <<\_ACEOF
5193 for ac_config_target in $ac_config_targets
5195 case "$ac_config_target" in
5196 # Handling of arguments.
5197 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5198 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5199 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5200 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5201 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5202 { (exit 1); exit 1; }; };;
5203 esac
5204 done
5206 # If the user did not use the arguments to specify the items to instantiate,
5207 # then the envvar interface is used. Set only those that are not.
5208 # We use the long form for the default assignment because of an extremely
5209 # bizarre bug on SunOS 4.1.3.
5210 if $ac_need_defaults; then
5211 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5212 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5213 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5216 # Have a temporary directory for convenience. Make it in the build tree
5217 # simply because there is no reason to put it here, and in addition,
5218 # creating and moving files from /tmp can sometimes cause problems.
5219 # Create a temporary directory, and hook for its removal unless debugging.
5220 $debug ||
5222 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5223 trap '{ (exit 1); exit 1; }' 1 2 13 15
5226 # Create a (secure) tmp directory for tmp files.
5229 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5230 test -n "$tmp" && test -d "$tmp"
5231 } ||
5233 tmp=./confstat$$-$RANDOM
5234 (umask 077 && mkdir $tmp)
5235 } ||
5237 echo "$me: cannot create a temporary directory in ." >&2
5238 { (exit 1); exit 1; }
5241 _ACEOF
5243 cat >>$CONFIG_STATUS <<_ACEOF
5246 # CONFIG_FILES section.
5249 # No need to generate the scripts if there are no CONFIG_FILES.
5250 # This happens for instance when ./config.status config.h
5251 if test -n "\$CONFIG_FILES"; then
5252 # Protect against being on the right side of a sed subst in config.status.
5253 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5254 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5255 s,@SHELL@,$SHELL,;t t
5256 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5257 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5258 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5259 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5260 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5261 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5262 s,@exec_prefix@,$exec_prefix,;t t
5263 s,@prefix@,$prefix,;t t
5264 s,@program_transform_name@,$program_transform_name,;t t
5265 s,@bindir@,$bindir,;t t
5266 s,@sbindir@,$sbindir,;t t
5267 s,@libexecdir@,$libexecdir,;t t
5268 s,@datadir@,$datadir,;t t
5269 s,@sysconfdir@,$sysconfdir,;t t
5270 s,@sharedstatedir@,$sharedstatedir,;t t
5271 s,@localstatedir@,$localstatedir,;t t
5272 s,@libdir@,$libdir,;t t
5273 s,@includedir@,$includedir,;t t
5274 s,@oldincludedir@,$oldincludedir,;t t
5275 s,@infodir@,$infodir,;t t
5276 s,@mandir@,$mandir,;t t
5277 s,@build_alias@,$build_alias,;t t
5278 s,@host_alias@,$host_alias,;t t
5279 s,@target_alias@,$target_alias,;t t
5280 s,@DEFS@,$DEFS,;t t
5281 s,@ECHO_C@,$ECHO_C,;t t
5282 s,@ECHO_N@,$ECHO_N,;t t
5283 s,@ECHO_T@,$ECHO_T,;t t
5284 s,@LIBS@,$LIBS,;t t
5285 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5286 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5287 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5288 s,@CYGPATH_W@,$CYGPATH_W,;t t
5289 s,@PACKAGE@,$PACKAGE,;t t
5290 s,@VERSION@,$VERSION,;t t
5291 s,@ACLOCAL@,$ACLOCAL,;t t
5292 s,@AUTOCONF@,$AUTOCONF,;t t
5293 s,@AUTOMAKE@,$AUTOMAKE,;t t
5294 s,@AUTOHEADER@,$AUTOHEADER,;t t
5295 s,@MAKEINFO@,$MAKEINFO,;t t
5296 s,@AMTAR@,$AMTAR,;t t
5297 s,@install_sh@,$install_sh,;t t
5298 s,@STRIP@,$STRIP,;t t
5299 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5300 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5301 s,@mkdir_p@,$mkdir_p,;t t
5302 s,@AWK@,$AWK,;t t
5303 s,@SET_MAKE@,$SET_MAKE,;t t
5304 s,@am__leading_dot@,$am__leading_dot,;t t
5305 s,@CC@,$CC,;t t
5306 s,@CFLAGS@,$CFLAGS,;t t
5307 s,@LDFLAGS@,$LDFLAGS,;t t
5308 s,@CPPFLAGS@,$CPPFLAGS,;t t
5309 s,@ac_ct_CC@,$ac_ct_CC,;t t
5310 s,@EXEEXT@,$EXEEXT,;t t
5311 s,@OBJEXT@,$OBJEXT,;t t
5312 s,@DEPDIR@,$DEPDIR,;t t
5313 s,@am__include@,$am__include,;t t
5314 s,@am__quote@,$am__quote,;t t
5315 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5316 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5317 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5318 s,@CCDEPMODE@,$CCDEPMODE,;t t
5319 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5320 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5321 s,@build@,$build,;t t
5322 s,@build_cpu@,$build_cpu,;t t
5323 s,@build_vendor@,$build_vendor,;t t
5324 s,@build_os@,$build_os,;t t
5325 s,@host@,$host,;t t
5326 s,@host_cpu@,$host_cpu,;t t
5327 s,@host_vendor@,$host_vendor,;t t
5328 s,@host_os@,$host_os,;t t
5329 s,@target@,$target,;t t
5330 s,@target_cpu@,$target_cpu,;t t
5331 s,@target_vendor@,$target_vendor,;t t
5332 s,@target_os@,$target_os,;t t
5333 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
5334 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
5335 s,@SDL_LIBS@,$SDL_LIBS,;t t
5336 s,@CPP@,$CPP,;t t
5337 s,@EGREP@,$EGREP,;t t
5338 s,@LIBOBJS@,$LIBOBJS,;t t
5339 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5340 CEOF
5342 _ACEOF
5344 cat >>$CONFIG_STATUS <<\_ACEOF
5345 # Split the substitutions into bite-sized pieces for seds with
5346 # small command number limits, like on Digital OSF/1 and HP-UX.
5347 ac_max_sed_lines=48
5348 ac_sed_frag=1 # Number of current file.
5349 ac_beg=1 # First line for current file.
5350 ac_end=$ac_max_sed_lines # Line after last line for current file.
5351 ac_more_lines=:
5352 ac_sed_cmds=
5353 while $ac_more_lines; do
5354 if test $ac_beg -gt 1; then
5355 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5356 else
5357 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5359 if test ! -s $tmp/subs.frag; then
5360 ac_more_lines=false
5361 else
5362 # The purpose of the label and of the branching condition is to
5363 # speed up the sed processing (if there are no `@' at all, there
5364 # is no need to browse any of the substitutions).
5365 # These are the two extra sed commands mentioned above.
5366 (echo ':t
5367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5368 if test -z "$ac_sed_cmds"; then
5369 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5370 else
5371 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5373 ac_sed_frag=`expr $ac_sed_frag + 1`
5374 ac_beg=$ac_end
5375 ac_end=`expr $ac_end + $ac_max_sed_lines`
5377 done
5378 if test -z "$ac_sed_cmds"; then
5379 ac_sed_cmds=cat
5381 fi # test -n "$CONFIG_FILES"
5383 _ACEOF
5384 cat >>$CONFIG_STATUS <<\_ACEOF
5385 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5386 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5387 case $ac_file in
5388 - | *:- | *:-:* ) # input from stdin
5389 cat >$tmp/stdin
5390 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5392 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5394 * ) ac_file_in=$ac_file.in ;;
5395 esac
5397 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5398 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5400 X"$ac_file" : 'X\(//\)[^/]' \| \
5401 X"$ac_file" : 'X\(//\)$' \| \
5402 X"$ac_file" : 'X\(/\)' \| \
5403 . : '\(.\)' 2>/dev/null ||
5404 echo X"$ac_file" |
5405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5407 /^X\(\/\/\)$/{ s//\1/; q; }
5408 /^X\(\/\).*/{ s//\1/; q; }
5409 s/.*/./; q'`
5410 { if $as_mkdir_p; then
5411 mkdir -p "$ac_dir"
5412 else
5413 as_dir="$ac_dir"
5414 as_dirs=
5415 while test ! -d "$as_dir"; do
5416 as_dirs="$as_dir $as_dirs"
5417 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5419 X"$as_dir" : 'X\(//\)[^/]' \| \
5420 X"$as_dir" : 'X\(//\)$' \| \
5421 X"$as_dir" : 'X\(/\)' \| \
5422 . : '\(.\)' 2>/dev/null ||
5423 echo X"$as_dir" |
5424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5426 /^X\(\/\/\)$/{ s//\1/; q; }
5427 /^X\(\/\).*/{ s//\1/; q; }
5428 s/.*/./; q'`
5429 done
5430 test ! -n "$as_dirs" || mkdir $as_dirs
5431 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5432 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5433 { (exit 1); exit 1; }; }; }
5435 ac_builddir=.
5437 if test "$ac_dir" != .; then
5438 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5439 # A "../" for each directory in $ac_dir_suffix.
5440 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5441 else
5442 ac_dir_suffix= ac_top_builddir=
5445 case $srcdir in
5446 .) # No --srcdir option. We are building in place.
5447 ac_srcdir=.
5448 if test -z "$ac_top_builddir"; then
5449 ac_top_srcdir=.
5450 else
5451 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5452 fi ;;
5453 [\\/]* | ?:[\\/]* ) # Absolute path.
5454 ac_srcdir=$srcdir$ac_dir_suffix;
5455 ac_top_srcdir=$srcdir ;;
5456 *) # Relative path.
5457 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5458 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5459 esac
5461 # Do not use `cd foo && pwd` to compute absolute paths, because
5462 # the directories may not exist.
5463 case `pwd` in
5464 .) ac_abs_builddir="$ac_dir";;
5466 case "$ac_dir" in
5467 .) ac_abs_builddir=`pwd`;;
5468 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5469 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5470 esac;;
5471 esac
5472 case $ac_abs_builddir in
5473 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5475 case ${ac_top_builddir}. in
5476 .) ac_abs_top_builddir=$ac_abs_builddir;;
5477 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5478 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5479 esac;;
5480 esac
5481 case $ac_abs_builddir in
5482 .) ac_abs_srcdir=$ac_srcdir;;
5484 case $ac_srcdir in
5485 .) ac_abs_srcdir=$ac_abs_builddir;;
5486 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5487 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5488 esac;;
5489 esac
5490 case $ac_abs_builddir in
5491 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5493 case $ac_top_srcdir in
5494 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5495 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5496 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5497 esac;;
5498 esac
5501 case $INSTALL in
5502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5503 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5504 esac
5506 if test x"$ac_file" != x-; then
5507 { echo "$as_me:$LINENO: creating $ac_file" >&5
5508 echo "$as_me: creating $ac_file" >&6;}
5509 rm -f "$ac_file"
5511 # Let's still pretend it is `configure' which instantiates (i.e., don't
5512 # use $as_me), people would be surprised to read:
5513 # /* config.h. Generated by config.status. */
5514 if test x"$ac_file" = x-; then
5515 configure_input=
5516 else
5517 configure_input="$ac_file. "
5519 configure_input=$configure_input"Generated from `echo $ac_file_in |
5520 sed 's,.*/,,'` by configure."
5522 # First look for the input files in the build tree, otherwise in the
5523 # src tree.
5524 ac_file_inputs=`IFS=:
5525 for f in $ac_file_in; do
5526 case $f in
5527 -) echo $tmp/stdin ;;
5528 [\\/$]*)
5529 # Absolute (can't be DOS-style, as IFS=:)
5530 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5531 echo "$as_me: error: cannot find input file: $f" >&2;}
5532 { (exit 1); exit 1; }; }
5533 echo "$f";;
5534 *) # Relative
5535 if test -f "$f"; then
5536 # Build tree
5537 echo "$f"
5538 elif test -f "$srcdir/$f"; then
5539 # Source tree
5540 echo "$srcdir/$f"
5541 else
5542 # /dev/null tree
5543 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5544 echo "$as_me: error: cannot find input file: $f" >&2;}
5545 { (exit 1); exit 1; }; }
5546 fi;;
5547 esac
5548 done` || { (exit 1); exit 1; }
5549 _ACEOF
5550 cat >>$CONFIG_STATUS <<_ACEOF
5551 sed "$ac_vpsub
5552 $extrasub
5553 _ACEOF
5554 cat >>$CONFIG_STATUS <<\_ACEOF
5556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5557 s,@configure_input@,$configure_input,;t t
5558 s,@srcdir@,$ac_srcdir,;t t
5559 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5560 s,@top_srcdir@,$ac_top_srcdir,;t t
5561 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5562 s,@builddir@,$ac_builddir,;t t
5563 s,@abs_builddir@,$ac_abs_builddir,;t t
5564 s,@top_builddir@,$ac_top_builddir,;t t
5565 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5566 s,@INSTALL@,$ac_INSTALL,;t t
5567 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5568 rm -f $tmp/stdin
5569 if test x"$ac_file" != x-; then
5570 mv $tmp/out $ac_file
5571 else
5572 cat $tmp/out
5573 rm -f $tmp/out
5576 done
5577 _ACEOF
5578 cat >>$CONFIG_STATUS <<\_ACEOF
5581 # CONFIG_HEADER section.
5584 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5585 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5587 # ac_d sets the value in "#define NAME VALUE" lines.
5588 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5589 ac_dB='[ ].*$,\1#\2'
5590 ac_dC=' '
5591 ac_dD=',;t'
5592 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5593 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5594 ac_uB='$,\1#\2define\3'
5595 ac_uC=' '
5596 ac_uD=',;t'
5598 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5599 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5600 case $ac_file in
5601 - | *:- | *:-:* ) # input from stdin
5602 cat >$tmp/stdin
5603 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5605 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5606 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5607 * ) ac_file_in=$ac_file.in ;;
5608 esac
5610 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5611 echo "$as_me: creating $ac_file" >&6;}
5613 # First look for the input files in the build tree, otherwise in the
5614 # src tree.
5615 ac_file_inputs=`IFS=:
5616 for f in $ac_file_in; do
5617 case $f in
5618 -) echo $tmp/stdin ;;
5619 [\\/$]*)
5620 # Absolute (can't be DOS-style, as IFS=:)
5621 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5622 echo "$as_me: error: cannot find input file: $f" >&2;}
5623 { (exit 1); exit 1; }; }
5624 # Do quote $f, to prevent DOS paths from being IFS'd.
5625 echo "$f";;
5626 *) # Relative
5627 if test -f "$f"; then
5628 # Build tree
5629 echo "$f"
5630 elif test -f "$srcdir/$f"; then
5631 # Source tree
5632 echo "$srcdir/$f"
5633 else
5634 # /dev/null tree
5635 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5636 echo "$as_me: error: cannot find input file: $f" >&2;}
5637 { (exit 1); exit 1; }; }
5638 fi;;
5639 esac
5640 done` || { (exit 1); exit 1; }
5641 # Remove the trailing spaces.
5642 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5644 _ACEOF
5646 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5647 # `conftest.undefs', that substitutes the proper values into
5648 # config.h.in to produce config.h. The first handles `#define'
5649 # templates, and the second `#undef' templates.
5650 # And first: Protect against being on the right side of a sed subst in
5651 # config.status. Protect against being in an unquoted here document
5652 # in config.status.
5653 rm -f conftest.defines conftest.undefs
5654 # Using a here document instead of a string reduces the quoting nightmare.
5655 # Putting comments in sed scripts is not portable.
5657 # `end' is used to avoid that the second main sed command (meant for
5658 # 0-ary CPP macros) applies to n-ary macro definitions.
5659 # See the Autoconf documentation for `clear'.
5660 cat >confdef2sed.sed <<\_ACEOF
5661 s/[\\&,]/\\&/g
5662 s,[\\$`],\\&,g
5663 t clear
5664 : clear
5665 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5666 t end
5667 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5668 : end
5669 _ACEOF
5670 # If some macros were called several times there might be several times
5671 # the same #defines, which is useless. Nevertheless, we may not want to
5672 # sort them, since we want the *last* AC-DEFINE to be honored.
5673 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5674 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5675 rm -f confdef2sed.sed
5677 # This sed command replaces #undef with comments. This is necessary, for
5678 # example, in the case of _POSIX_SOURCE, which is predefined and required
5679 # on some systems where configure will not decide to define it.
5680 cat >>conftest.undefs <<\_ACEOF
5681 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5682 _ACEOF
5684 # Break up conftest.defines because some shells have a limit on the size
5685 # of here documents, and old seds have small limits too (100 cmds).
5686 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5687 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5688 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5689 echo ' :' >>$CONFIG_STATUS
5690 rm -f conftest.tail
5691 while grep . conftest.defines >/dev/null
5693 # Write a limited-size here document to $tmp/defines.sed.
5694 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5695 # Speed up: don't consider the non `#define' lines.
5696 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5697 # Work around the forget-to-reset-the-flag bug.
5698 echo 't clr' >>$CONFIG_STATUS
5699 echo ': clr' >>$CONFIG_STATUS
5700 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5701 echo 'CEOF
5702 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5703 rm -f $tmp/in
5704 mv $tmp/out $tmp/in
5705 ' >>$CONFIG_STATUS
5706 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5707 rm -f conftest.defines
5708 mv conftest.tail conftest.defines
5709 done
5710 rm -f conftest.defines
5711 echo ' fi # grep' >>$CONFIG_STATUS
5712 echo >>$CONFIG_STATUS
5714 # Break up conftest.undefs because some shells have a limit on the size
5715 # of here documents, and old seds have small limits too (100 cmds).
5716 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5717 rm -f conftest.tail
5718 while grep . conftest.undefs >/dev/null
5720 # Write a limited-size here document to $tmp/undefs.sed.
5721 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5722 # Speed up: don't consider the non `#undef'
5723 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5724 # Work around the forget-to-reset-the-flag bug.
5725 echo 't clr' >>$CONFIG_STATUS
5726 echo ': clr' >>$CONFIG_STATUS
5727 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5728 echo 'CEOF
5729 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5730 rm -f $tmp/in
5731 mv $tmp/out $tmp/in
5732 ' >>$CONFIG_STATUS
5733 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5734 rm -f conftest.undefs
5735 mv conftest.tail conftest.undefs
5736 done
5737 rm -f conftest.undefs
5739 cat >>$CONFIG_STATUS <<\_ACEOF
5740 # Let's still pretend it is `configure' which instantiates (i.e., don't
5741 # use $as_me), people would be surprised to read:
5742 # /* config.h. Generated by config.status. */
5743 if test x"$ac_file" = x-; then
5744 echo "/* Generated by configure. */" >$tmp/config.h
5745 else
5746 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5748 cat $tmp/in >>$tmp/config.h
5749 rm -f $tmp/in
5750 if test x"$ac_file" != x-; then
5751 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5752 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5753 echo "$as_me: $ac_file is unchanged" >&6;}
5754 else
5755 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5756 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5757 X"$ac_file" : 'X\(//\)[^/]' \| \
5758 X"$ac_file" : 'X\(//\)$' \| \
5759 X"$ac_file" : 'X\(/\)' \| \
5760 . : '\(.\)' 2>/dev/null ||
5761 echo X"$ac_file" |
5762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5764 /^X\(\/\/\)$/{ s//\1/; q; }
5765 /^X\(\/\).*/{ s//\1/; q; }
5766 s/.*/./; q'`
5767 { if $as_mkdir_p; then
5768 mkdir -p "$ac_dir"
5769 else
5770 as_dir="$ac_dir"
5771 as_dirs=
5772 while test ! -d "$as_dir"; do
5773 as_dirs="$as_dir $as_dirs"
5774 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5776 X"$as_dir" : 'X\(//\)[^/]' \| \
5777 X"$as_dir" : 'X\(//\)$' \| \
5778 X"$as_dir" : 'X\(/\)' \| \
5779 . : '\(.\)' 2>/dev/null ||
5780 echo X"$as_dir" |
5781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5783 /^X\(\/\/\)$/{ s//\1/; q; }
5784 /^X\(\/\).*/{ s//\1/; q; }
5785 s/.*/./; q'`
5786 done
5787 test ! -n "$as_dirs" || mkdir $as_dirs
5788 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5789 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5790 { (exit 1); exit 1; }; }; }
5792 rm -f $ac_file
5793 mv $tmp/config.h $ac_file
5795 else
5796 cat $tmp/config.h
5797 rm -f $tmp/config.h
5799 # Compute $ac_file's index in $config_headers.
5800 _am_stamp_count=1
5801 for _am_header in $config_headers :; do
5802 case $_am_header in
5803 $ac_file | $ac_file:* )
5804 break ;;
5806 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5807 esac
5808 done
5809 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5810 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5811 X$ac_file : 'X\(//\)[^/]' \| \
5812 X$ac_file : 'X\(//\)$' \| \
5813 X$ac_file : 'X\(/\)' \| \
5814 . : '\(.\)' 2>/dev/null ||
5815 echo X$ac_file |
5816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5818 /^X\(\/\/\)$/{ s//\1/; q; }
5819 /^X\(\/\).*/{ s//\1/; q; }
5820 s/.*/./; q'`/stamp-h$_am_stamp_count
5821 done
5822 _ACEOF
5823 cat >>$CONFIG_STATUS <<\_ACEOF
5826 # CONFIG_COMMANDS section.
5828 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5829 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5830 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5831 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5832 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5833 X"$ac_dest" : 'X\(//\)[^/]' \| \
5834 X"$ac_dest" : 'X\(//\)$' \| \
5835 X"$ac_dest" : 'X\(/\)' \| \
5836 . : '\(.\)' 2>/dev/null ||
5837 echo X"$ac_dest" |
5838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5840 /^X\(\/\/\)$/{ s//\1/; q; }
5841 /^X\(\/\).*/{ s//\1/; q; }
5842 s/.*/./; q'`
5843 { if $as_mkdir_p; then
5844 mkdir -p "$ac_dir"
5845 else
5846 as_dir="$ac_dir"
5847 as_dirs=
5848 while test ! -d "$as_dir"; do
5849 as_dirs="$as_dir $as_dirs"
5850 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5852 X"$as_dir" : 'X\(//\)[^/]' \| \
5853 X"$as_dir" : 'X\(//\)$' \| \
5854 X"$as_dir" : 'X\(/\)' \| \
5855 . : '\(.\)' 2>/dev/null ||
5856 echo X"$as_dir" |
5857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5859 /^X\(\/\/\)$/{ s//\1/; q; }
5860 /^X\(\/\).*/{ s//\1/; q; }
5861 s/.*/./; q'`
5862 done
5863 test ! -n "$as_dirs" || mkdir $as_dirs
5864 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5865 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5866 { (exit 1); exit 1; }; }; }
5868 ac_builddir=.
5870 if test "$ac_dir" != .; then
5871 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5872 # A "../" for each directory in $ac_dir_suffix.
5873 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5874 else
5875 ac_dir_suffix= ac_top_builddir=
5878 case $srcdir in
5879 .) # No --srcdir option. We are building in place.
5880 ac_srcdir=.
5881 if test -z "$ac_top_builddir"; then
5882 ac_top_srcdir=.
5883 else
5884 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5885 fi ;;
5886 [\\/]* | ?:[\\/]* ) # Absolute path.
5887 ac_srcdir=$srcdir$ac_dir_suffix;
5888 ac_top_srcdir=$srcdir ;;
5889 *) # Relative path.
5890 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5891 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5892 esac
5894 # Do not use `cd foo && pwd` to compute absolute paths, because
5895 # the directories may not exist.
5896 case `pwd` in
5897 .) ac_abs_builddir="$ac_dir";;
5899 case "$ac_dir" in
5900 .) ac_abs_builddir=`pwd`;;
5901 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5902 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5903 esac;;
5904 esac
5905 case $ac_abs_builddir in
5906 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5908 case ${ac_top_builddir}. in
5909 .) ac_abs_top_builddir=$ac_abs_builddir;;
5910 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5911 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5912 esac;;
5913 esac
5914 case $ac_abs_builddir in
5915 .) ac_abs_srcdir=$ac_srcdir;;
5917 case $ac_srcdir in
5918 .) ac_abs_srcdir=$ac_abs_builddir;;
5919 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5920 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5921 esac;;
5922 esac
5923 case $ac_abs_builddir in
5924 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5926 case $ac_top_srcdir in
5927 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5928 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5929 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5930 esac;;
5931 esac
5934 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5935 echo "$as_me: executing $ac_dest commands" >&6;}
5936 case $ac_dest in
5937 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5938 # Strip MF so we end up with the name of the file.
5939 mf=`echo "$mf" | sed -e 's/:.*$//'`
5940 # Check whether this is an Automake generated Makefile or not.
5941 # We used to match only the files named `Makefile.in', but
5942 # some people rename them; so instead we look at the file content.
5943 # Grep'ing the first line is not enough: some people post-process
5944 # each Makefile.in and add a new line on top of each file to say so.
5945 # So let's grep whole file.
5946 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5947 dirpart=`(dirname "$mf") 2>/dev/null ||
5948 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5949 X"$mf" : 'X\(//\)[^/]' \| \
5950 X"$mf" : 'X\(//\)$' \| \
5951 X"$mf" : 'X\(/\)' \| \
5952 . : '\(.\)' 2>/dev/null ||
5953 echo X"$mf" |
5954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5956 /^X\(\/\/\)$/{ s//\1/; q; }
5957 /^X\(\/\).*/{ s//\1/; q; }
5958 s/.*/./; q'`
5959 else
5960 continue
5962 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5963 # Extract the definition of DEP_FILES from the Makefile without
5964 # running `make'.
5965 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5966 test -z "$DEPDIR" && continue
5967 # When using ansi2knr, U may be empty or an underscore; expand it
5968 U=`sed -n 's/^U = //p' < "$mf"`
5969 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5970 # We invoke sed twice because it is the simplest approach to
5971 # changing $(DEPDIR) to its actual value in the expansion.
5972 for file in `sed -n '
5973 /^DEP_FILES = .*\\\\$/ {
5974 s/^DEP_FILES = //
5975 :loop
5976 s/\\\\$//
5979 /\\\\$/ b loop
5982 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5983 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5984 # Make sure the directory exists.
5985 test -f "$dirpart/$file" && continue
5986 fdir=`(dirname "$file") 2>/dev/null ||
5987 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5988 X"$file" : 'X\(//\)[^/]' \| \
5989 X"$file" : 'X\(//\)$' \| \
5990 X"$file" : 'X\(/\)' \| \
5991 . : '\(.\)' 2>/dev/null ||
5992 echo X"$file" |
5993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5995 /^X\(\/\/\)$/{ s//\1/; q; }
5996 /^X\(\/\).*/{ s//\1/; q; }
5997 s/.*/./; q'`
5998 { if $as_mkdir_p; then
5999 mkdir -p $dirpart/$fdir
6000 else
6001 as_dir=$dirpart/$fdir
6002 as_dirs=
6003 while test ! -d "$as_dir"; do
6004 as_dirs="$as_dir $as_dirs"
6005 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6007 X"$as_dir" : 'X\(//\)[^/]' \| \
6008 X"$as_dir" : 'X\(//\)$' \| \
6009 X"$as_dir" : 'X\(/\)' \| \
6010 . : '\(.\)' 2>/dev/null ||
6011 echo X"$as_dir" |
6012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6014 /^X\(\/\/\)$/{ s//\1/; q; }
6015 /^X\(\/\).*/{ s//\1/; q; }
6016 s/.*/./; q'`
6017 done
6018 test ! -n "$as_dirs" || mkdir $as_dirs
6019 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6020 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6021 { (exit 1); exit 1; }; }; }
6023 # echo "creating $dirpart/$file"
6024 echo '# dummy' > "$dirpart/$file"
6025 done
6026 done
6028 esac
6029 done
6030 _ACEOF
6032 cat >>$CONFIG_STATUS <<\_ACEOF
6034 { (exit 0); exit 0; }
6035 _ACEOF
6036 chmod +x $CONFIG_STATUS
6037 ac_clean_files=$ac_clean_files_save
6040 # configure is writing to config.log, and then calls config.status.
6041 # config.status does its own redirection, appending to config.log.
6042 # Unfortunately, on DOS this fails, as config.log is still kept open
6043 # by configure, so config.status won't be able to write to it; its
6044 # output is simply discarded. So we exec the FD to /dev/null,
6045 # effectively closing config.log, so it can be properly (re)opened and
6046 # appended to by config.status. When coming back to configure, we
6047 # need to make the FD available again.
6048 if test "$no_create" != yes; then
6049 ac_cs_success=:
6050 ac_config_status_args=
6051 test "$silent" = yes &&
6052 ac_config_status_args="$ac_config_status_args --quiet"
6053 exec 5>/dev/null
6054 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6055 exec 5>>config.log
6056 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6057 # would make configure fail if this is the last instruction.
6058 $ac_cs_success || { (exit 1); exit 1; }