2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
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
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
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
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
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 \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; 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
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
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
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
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).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe 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
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
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'"
237 # We need space, tab and new line, in precisely that order.
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`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
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='cpplib'
271 PACKAGE_TARNAME='cpplib'
273 PACKAGE_STRING='cpplib '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
276 ac_unique_file="ucnid.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER CPP EGREP LIBOBJS ALLOCA USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS LIBICONV LTLIBICONV PACKAGE USED_CATALOGS MAINT LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
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'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
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 ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
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'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
432 -help | --help | --hel | --he | -h)
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)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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)
585 -version | --version | --versio | --versi | --vers | -V)
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'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
611 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
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`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
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.
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
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 ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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}
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.
783 \`configure' configures cpplib 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.
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 \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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]
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of cpplib :";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-rpath do not hardcode runtime library paths
853 --enable-maintainer-mode enable rules only needed by maintainers
854 --enable-checking enable expensive run-time checks
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-gnu-ld assume the C compiler uses GNU ld default=no
860 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
861 --without-libiconv-prefix don't search for libiconv in includedir and libdir
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
875 Report bugs to <gcc-bugs@gcc.gnu.org>.
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
886 if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 ac_dir_suffix= ac_top_builddir=
895 .) # No --srcdir option. We are building in place.
897 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 # Do not use `cd foo && pwd` to compute absolute paths, because
911 # the directories may not exist.
913 .) ac_abs_builddir="$ac_dir";;
916 .) ac_abs_builddir=`pwd`;;
917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
918 *) ac_abs_builddir=`pwd`/"$ac_dir";;
921 case $ac_abs_builddir in
922 .) ac_abs_top_builddir=${ac_top_builddir}.;;
924 case ${ac_top_builddir}. in
925 .) ac_abs_top_builddir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930 case $ac_abs_builddir in
931 .) ac_abs_srcdir=$ac_srcdir;;
934 .) ac_abs_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939 case $ac_abs_builddir in
940 .) ac_abs_top_srcdir=$ac_top_srcdir;;
942 case $ac_top_srcdir in
943 .) ac_abs_top_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
972 generated by GNU Autoconf 2.59
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by cpplib $as_me , which was
986 generated by GNU Autoconf 2.59. Invocation command line was
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_must_keep_next=false
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 -* ) ac_must_keep_next=true ;;
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1103 # The following way of writing the cache mishandles newlines in values,
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -n "$ac_subst_files"; then
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -s confdefs.h; then
1155 sed "/^$/d" confdefs.h | sort
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1162 rm -f core *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1238 # Check that the precious variables saved in the cache have kept the same
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 elif test -f $ac_dir/install.sh; then
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 elif test -f $ac_dir/shtool; then
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1428 program_prefix=${target_alias}-
1429 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1430 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1431 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1432 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 cat >conftest.make <<\_ACEOF
1437 @echo 'ac_maketemp="$(MAKE)"'
1439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1440 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1441 if test -n "$ac_maketemp"; then
1442 eval ac_cv_prog_make_${ac_make}_set=yes
1444 eval ac_cv_prog_make_${ac_make}_set=no
1448 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1449 echo "$as_me:$LINENO: result: yes" >&5
1450 echo "${ECHO_T}yes" >&6
1453 echo "$as_me:$LINENO: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1455 SET_MAKE="MAKE=${MAKE-make}"
1458 # Find a good install program. We prefer a C program (faster),
1459 # so one script is as good as another. But avoid the broken or
1460 # incompatible versions:
1461 # SysV /etc/install, /usr/sbin/install
1462 # SunOS /usr/etc/install
1463 # IRIX /sbin/install
1465 # AmigaOS /C/install, which installs bootblocks on floppy discs
1466 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1467 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1468 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1469 # OS/2's system install, which has a completely different semantic
1470 # ./install, which can be erroneously created by make from ./install.sh.
1471 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1472 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1473 if test -z "$INSTALL"; then
1474 if test "${ac_cv_path_install+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 test -z "$as_dir" && as_dir=.
1482 # Account for people who put trailing slashes in PATH elements.
1484 ./ | .// | /cC/* | \
1485 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1486 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1489 # OSF1 and SCO ODT 3.0 have their own names for install.
1490 # Don't use installbsd from OSF since it installs stuff as root
1492 for ac_prog in ginstall scoinst install; do
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1495 if test $ac_prog = install &&
1496 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497 # AIX install. It has an incompatible calling convention.
1499 elif test $ac_prog = install &&
1500 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1501 # program-specific install script used by HP pwplus--don't use.
1504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1516 if test "${ac_cv_path_install+set}" = set; then
1517 INSTALL=$ac_cv_path_install
1519 # As a last resort, use the slow shell script. We don't cache a
1520 # path for INSTALL within a source directory, because that will
1521 # break other packages using the cache if that directory is
1522 # removed, or if the path is relative.
1523 INSTALL=$ac_install_sh
1526 echo "$as_me:$LINENO: result: $INSTALL" >&5
1527 echo "${ECHO_T}$INSTALL" >&6
1529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1530 # It thinks the first close brace ends the variable substitution.
1531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1538 # Checks for programs.
1540 ac_cpp='$CPP $CPPFLAGS'
1541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1544 if test -n "$ac_tool_prefix"; then
1545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1547 echo "$as_me:$LINENO: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_CC+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 if test -n "$CC"; then
1553 ac_cv_prog_CC="$CC" # Let the user override the test.
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 test -z "$as_dir" && as_dir=.
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 if test -n "$CC"; then
1573 echo "$as_me:$LINENO: result: $CC" >&5
1574 echo "${ECHO_T}$CC" >&6
1576 echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1581 if test -z "$ac_cv_prog_CC"; then
1583 # Extract the first word of "gcc", so it can be a program name with args.
1584 set dummy gcc; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 if test -n "$ac_ct_CC"; then
1591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_ac_ct_CC="gcc"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1610 if test -n "$ac_ct_CC"; then
1611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1612 echo "${ECHO_T}$ac_ct_CC" >&6
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1623 if test -z "$CC"; then
1624 if test -n "$ac_tool_prefix"; then
1625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1626 set dummy ${ac_tool_prefix}cc; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_CC="${ac_tool_prefix}cc"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 if test -n "$CC"; then
1653 echo "$as_me:$LINENO: result: $CC" >&5
1654 echo "${ECHO_T}$CC" >&6
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1661 if test -z "$ac_cv_prog_CC"; then
1663 # Extract the first word of "cc", so it can be a program name with args.
1664 set dummy cc; 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_ac_ct_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 if test -n "$ac_ct_CC"; then
1671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_ac_ct_CC="cc"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1690 if test -n "$ac_ct_CC"; then
1691 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1692 echo "${ECHO_T}$ac_ct_CC" >&6
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1704 if test -z "$CC"; then
1705 # Extract the first word of "cc", so it can be a program name with args.
1706 set dummy cc; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1724 ac_prog_rejected=yes
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 if test $ac_prog_rejected = yes; then
1735 # We found a bogon in the path, so make sure we never use it.
1736 set dummy $ac_cv_prog_CC
1738 if test $# != 0; then
1739 # We chose a different compiler from the bogus one.
1740 # However, it has the same basename, so the bogon will be chosen
1741 # first if we set CC to just the basename; use the full file name.
1743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1749 if test -n "$CC"; then
1750 echo "$as_me:$LINENO: result: $CC" >&5
1751 echo "${ECHO_T}$CC" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1758 if test -z "$CC"; then
1759 if test -n "$ac_tool_prefix"; then
1762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1763 set dummy $ac_tool_prefix$ac_prog; 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
1769 if test -n "$CC"; then
1770 ac_cv_prog_CC="$CC" # Let the user override the test.
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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$ac_prog"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 if test -n "$CC"; then
1790 echo "$as_me:$LINENO: result: $CC" >&5
1791 echo "${ECHO_T}$CC" >&6
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1797 test -n "$CC" && break
1800 if test -z "$CC"; then
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 if test -n "$ac_ct_CC"; then
1812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_ac_ct_CC="$ac_prog"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831 if test -n "$ac_ct_CC"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833 echo "${ECHO_T}$ac_ct_CC" >&6
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1839 test -n "$ac_ct_CC" && break
1848 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1849 See \`config.log' for more details." >&5
1850 echo "$as_me: error: no acceptable C compiler found in \$PATH
1851 See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }
1854 # Provide some information about the compiler.
1855 echo "$as_me:$LINENO:" \
1856 "checking for C compiler version" >&5
1857 ac_compiler=`set X $ac_compile; echo $2`
1858 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1859 (eval $ac_compiler --version </dev/null >&5) 2>&5
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }
1863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1864 (eval $ac_compiler -v </dev/null >&5) 2>&5
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); }
1868 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1869 (eval $ac_compiler -V </dev/null >&5) 2>&5
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }
1874 cat >conftest.$ac_ext <<_ACEOF
1877 cat confdefs.h >>conftest.$ac_ext
1878 cat >>conftest.$ac_ext <<_ACEOF
1879 /* end confdefs.h. */
1889 ac_clean_files_save=$ac_clean_files
1890 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1891 # Try to create an executable without -o first, disregard a.out.
1892 # It will help us diagnose broken compilers, and finding out an intuition
1894 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1895 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1896 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1897 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1898 (eval $ac_link_default) 2>&5
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); }; then
1902 # Find the output, starting from the most likely. This scheme is
1903 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1906 # Be careful to initialize this variable, since it used to be cached.
1907 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1909 # b.out is created by i960 compilers.
1910 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1912 test -f "$ac_file" || continue
1914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1917 # This is the source file.
1920 # We found the default executable, but exeext='' is most
1924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1925 # FIXME: I believe we export ac_cv_exeext for Libtool,
1926 # but it would be cool to find out if it's true. Does anybody
1927 # maintain Libtool? --akim.
1935 echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1938 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: C compiler cannot create executables
1941 See \`config.log' for more details." >&2;}
1942 { (exit 77); exit 77; }; }
1945 ac_exeext=$ac_cv_exeext
1946 echo "$as_me:$LINENO: result: $ac_file" >&5
1947 echo "${ECHO_T}$ac_file" >&6
1949 # Check the compiler produces executables we can run. If not, either
1950 # the compiler is broken, or we cross compile.
1951 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1952 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1953 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1954 # If not cross compiling, check that we can run a simple program.
1955 if test "$cross_compiling" != yes; then
1956 if { ac_try='./$ac_file'
1957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; }; then
1964 if test "$cross_compiling" = maybe; then
1967 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1968 If you meant to cross compile, use \`--host'.
1969 See \`config.log' for more details." >&5
1970 echo "$as_me: error: cannot run C compiled programs.
1971 If you meant to cross compile, use \`--host'.
1972 See \`config.log' for more details." >&2;}
1973 { (exit 1); exit 1; }; }
1977 echo "$as_me:$LINENO: result: yes" >&5
1978 echo "${ECHO_T}yes" >&6
1980 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1981 ac_clean_files=$ac_clean_files_save
1982 # Check the compiler produces executables we can run. If not, either
1983 # the compiler is broken, or we cross compile.
1984 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1985 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1986 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1987 echo "${ECHO_T}$cross_compiling" >&6
1989 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1990 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1992 (eval $ac_link) 2>&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }; then
1996 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1997 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1998 # work properly (i.e., refer to `conftest.exe'), while it won't with
2000 for ac_file in conftest.exe conftest conftest.*; do
2001 test -f "$ac_file" || continue
2003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2004 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2011 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2014 See \`config.log' for more details." >&2;}
2015 { (exit 1); exit 1; }; }
2018 rm -f conftest$ac_cv_exeext
2019 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2020 echo "${ECHO_T}$ac_cv_exeext" >&6
2022 rm -f conftest.$ac_ext
2023 EXEEXT=$ac_cv_exeext
2025 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2026 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2027 if test "${ac_cv_objext+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 cat >conftest.$ac_ext <<_ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2045 rm -f conftest.o conftest.obj
2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; then
2051 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2054 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2059 echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2062 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2065 See \`config.log' for more details." >&2;}
2066 { (exit 1); exit 1; }; }
2069 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2071 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2072 echo "${ECHO_T}$ac_cv_objext" >&6
2073 OBJEXT=$ac_cv_objext
2075 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2076 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2077 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 cat >conftest.$ac_ext <<_ACEOF
2083 cat confdefs.h >>conftest.$ac_ext
2084 cat >>conftest.$ac_ext <<_ACEOF
2085 /* end confdefs.h. */
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>conftest.er1
2102 grep -v '^ *+' conftest.er1 >conftest.err
2104 cat conftest.err >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); } &&
2107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; } &&
2113 { ac_try='test -s conftest.$ac_objext'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; }; then
2121 echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.$ac_ext >&5
2126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2127 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2130 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2131 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2132 GCC=`test $ac_compiler_gnu = yes && echo yes`
2133 ac_test_CFLAGS=${CFLAGS+set}
2134 ac_save_CFLAGS=$CFLAGS
2136 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2137 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2138 if test "${ac_cv_prog_cc_g+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 cat >conftest.$ac_ext <<_ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2156 rm -f conftest.$ac_objext
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2160 grep -v '^ *+' conftest.er1 >conftest.err
2162 cat conftest.err >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; } &&
2171 { ac_try='test -s conftest.$ac_objext'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; }; then
2179 echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.$ac_ext >&5
2184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2186 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2187 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2188 if test "$ac_test_CFLAGS" = set; then
2189 CFLAGS=$ac_save_CFLAGS
2190 elif test $ac_cv_prog_cc_g = yes; then
2191 if test "$GCC" = yes; then
2197 if test "$GCC" = yes; then
2203 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2204 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2205 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 ac_cv_prog_cc_stdc=no
2210 cat >conftest.$ac_ext <<_ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2218 #include <sys/types.h>
2219 #include <sys/stat.h>
2220 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2221 struct buf { int x; };
2222 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2223 static char *e (p, i)
2229 static char *f (char * (*g) (char **, int), char **p, ...)
2234 s = g (p, va_arg (v,int));
2239 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2240 function prototypes and stuff, but not '\xHH' hex character constants.
2241 These don't provoke an error unfortunately, instead are silently treated
2242 as 'x'. The following induces an error, until -std1 is added to get
2243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2244 array size at least. It's necessary to write '\x00'==0 to get something
2245 that's true only with -std1. */
2246 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2248 int test (int i, double x);
2249 struct s1 {int (*f) (int a);};
2250 struct s2 {int (*f) (double a);};
2251 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2257 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2262 # Don't try gcc -ansi; that turns off useful extensions and
2263 # breaks some systems' header files.
2264 # AIX -qlanglvl=ansi
2265 # Ultrix and OSF/1 -std1
2266 # HP-UX 10.20 and later -Ae
2267 # HP-UX older versions -Aa -D_HPUX_SOURCE
2268 # SVR4 -Xc -D__EXTENSIONS__
2269 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2271 CC="$ac_save_CC $ac_arg"
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2276 grep -v '^ *+' conftest.er1 >conftest.err
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 ac_cv_prog_cc_stdc=$ac_arg
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2300 rm -f conftest.err conftest.$ac_objext
2302 rm -f conftest.$ac_ext conftest.$ac_objext
2307 case "x$ac_cv_prog_cc_stdc" in
2309 echo "$as_me:$LINENO: result: none needed" >&5
2310 echo "${ECHO_T}none needed" >&6 ;;
2312 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2313 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2314 CC="$CC $ac_cv_prog_cc_stdc" ;;
2317 # Some people use a C++ compiler to compile C. Since we use `exit',
2318 # in C++ we need to declare it. In case someone uses the same compiler
2319 # for both compiling C and C++ we need to have the C++ compiler decide
2320 # the declaration of exit, since it's the most demanding environment.
2321 cat >conftest.$ac_ext <<_ACEOF
2326 rm -f conftest.$ac_objext
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>conftest.er1
2330 grep -v '^ *+' conftest.er1 >conftest.err
2332 cat conftest.err >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); } &&
2335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 for ac_declaration in \
2349 'extern "C" void std::exit (int) throw (); using std::exit;' \
2350 'extern "C" void std::exit (int); using std::exit;' \
2351 'extern "C" void exit (int) throw ();' \
2352 'extern "C" void exit (int);' \
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 cat >conftest.$ac_ext <<_ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2419 grep -v '^ *+' conftest.er1 >conftest.err
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 if test -n "$ac_declaration"; then
2446 echo '#ifdef __cplusplus' >>confdefs.h
2447 echo $ac_declaration >>confdefs.h
2448 echo '#endif' >>confdefs.h
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2466 echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_RANLIB+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$RANLIB"; then
2472 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 RANLIB=$ac_cv_prog_RANLIB
2491 if test -n "$RANLIB"; then
2492 echo "$as_me:$LINENO: result: $RANLIB" >&5
2493 echo "${ECHO_T}$RANLIB" >&6
2495 echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6
2500 if test -z "$ac_cv_prog_RANLIB"; then
2501 ac_ct_RANLIB=$RANLIB
2502 # Extract the first word of "ranlib", so it can be a program name with args.
2503 set dummy ranlib; ac_word=$2
2504 echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2506 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 if test -n "$ac_ct_RANLIB"; then
2510 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_ac_ct_RANLIB="ranlib"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2529 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2530 if test -n "$ac_ct_RANLIB"; then
2531 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2532 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2534 echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2538 RANLIB=$ac_ct_RANLIB
2540 RANLIB="$ac_cv_prog_RANLIB"
2544 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2545 for ac_prog in aclocal
2547 # Extract the first word of "$ac_prog", so it can be a program name with args.
2548 set dummy $ac_prog; ac_word=$2
2549 echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2551 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 if test -n "$ACLOCAL"; then
2555 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564 ac_cv_prog_ACLOCAL="$ac_prog"
2565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 ACLOCAL=$ac_cv_prog_ACLOCAL
2574 if test -n "$ACLOCAL"; then
2575 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2576 echo "${ECHO_T}$ACLOCAL" >&6
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2582 test -n "$ACLOCAL" && break
2584 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2586 for ac_prog in autoconf
2588 # Extract the first word of "$ac_prog", so it can be a program name with args.
2589 set dummy $ac_prog; ac_word=$2
2590 echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2592 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$AUTOCONF"; then
2596 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605 ac_cv_prog_AUTOCONF="$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 AUTOCONF=$ac_cv_prog_AUTOCONF
2615 if test -n "$AUTOCONF"; then
2616 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2617 echo "${ECHO_T}$AUTOCONF" >&6
2619 echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6
2623 test -n "$AUTOCONF" && break
2625 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2627 for ac_prog in autoheader
2629 # Extract the first word of "$ac_prog", so it can be a program name with args.
2630 set dummy $ac_prog; ac_word=$2
2631 echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 if test -n "$AUTOHEADER"; then
2637 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_AUTOHEADER="$ac_prog"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2656 if test -n "$AUTOHEADER"; then
2657 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2658 echo "${ECHO_T}$AUTOHEADER" >&6
2660 echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2664 test -n "$AUTOHEADER" && break
2666 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2669 # Checks for header files.
2671 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2672 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2673 if test "${ac_cv_header_time+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 #include <sys/types.h>
2683 #include <sys/time.h>
2689 if ((struct tm *) 0)
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2716 ac_cv_header_time=yes
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2721 ac_cv_header_time=no
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
2726 echo "${ECHO_T}$ac_cv_header_time" >&6
2727 if test $ac_cv_header_time = yes; then
2729 cat >>confdefs.h <<\_ACEOF
2730 #define TIME_WITH_SYS_TIME 1
2735 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
2736 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
2737 if test "${gcc_cv_header_string+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2747 #include <strings.h>
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2760 grep -v '^ *+' conftest.er1 >conftest.err
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 gcc_cv_header_string=yes
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2782 gcc_cv_header_string=no
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
2787 echo "${ECHO_T}$gcc_cv_header_string" >&6
2788 if test $gcc_cv_header_string = yes; then
2790 cat >>confdefs.h <<\_ACEOF
2791 #define STRING_WITH_STRINGS 1
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2802 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2803 # On Suns, sometimes $CPP names a directory.
2804 if test -n "$CPP" && test -d "$CPP"; then
2807 if test -z "$CPP"; then
2808 if test "${ac_cv_prog_CPP+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 # Double quotes because CPP needs to be expanded
2812 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2815 for ac_c_preproc_warn_flag in '' yes
2817 # Use a header file that comes with gcc, so configuring glibc
2818 # with a fresh cross-compiler works.
2819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2820 # <limits.h> exists even on freestanding compilers.
2821 # On the NeXT, cc -E runs the code through the compiler's parser,
2822 # not just through cpp. "Syntax error" is here to catch this case.
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2830 # include <limits.h>
2832 # include <assert.h>
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev/null; then
2844 if test -s conftest.err; then
2845 ac_cpp_err=$ac_c_preproc_warn_flag
2846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2853 if test -z "$ac_cpp_err"; then
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 # Broken: fails on valid input.
2862 rm -f conftest.err conftest.$ac_ext
2864 # OK, works on sane cases. Now check whether non-existent headers
2865 # can be detected and how.
2866 cat >conftest.$ac_ext <<_ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2872 #include <ac_nonexistent.h>
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev/null; then
2882 if test -s conftest.err; then
2883 ac_cpp_err=$ac_c_preproc_warn_flag
2884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2891 if test -z "$ac_cpp_err"; then
2892 # Broken: success on invalid input.
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2898 # Passes both tests.
2902 rm -f conftest.err conftest.$ac_ext
2905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2906 rm -f conftest.err conftest.$ac_ext
2907 if $ac_preproc_ok; then
2919 echo "$as_me:$LINENO: result: $CPP" >&5
2920 echo "${ECHO_T}$CPP" >&6
2922 for ac_c_preproc_warn_flag in '' yes
2924 # Use a header file that comes with gcc, so configuring glibc
2925 # with a fresh cross-compiler works.
2926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2927 # <limits.h> exists even on freestanding compilers.
2928 # On the NeXT, cc -E runs the code through the compiler's parser,
2929 # not just through cpp. "Syntax error" is here to catch this case.
2930 cat >conftest.$ac_ext <<_ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2937 # include <limits.h>
2939 # include <assert.h>
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } >/dev/null; then
2951 if test -s conftest.err; then
2952 ac_cpp_err=$ac_c_preproc_warn_flag
2953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960 if test -z "$ac_cpp_err"; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2966 # Broken: fails on valid input.
2969 rm -f conftest.err conftest.$ac_ext
2971 # OK, works on sane cases. Now check whether non-existent headers
2972 # can be detected and how.
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2979 #include <ac_nonexistent.h>
2981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } >/dev/null; then
2989 if test -s conftest.err; then
2990 ac_cpp_err=$ac_c_preproc_warn_flag
2991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998 if test -z "$ac_cpp_err"; then
2999 # Broken: success on invalid input.
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 # Passes both tests.
3009 rm -f conftest.err conftest.$ac_ext
3012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3013 rm -f conftest.err conftest.$ac_ext
3014 if $ac_preproc_ok; then
3017 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3020 See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 echo "$as_me:$LINENO: checking for egrep" >&5
3032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3033 if test "${ac_cv_prog_egrep+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3037 then ac_cv_prog_egrep='grep -E'
3038 else ac_cv_prog_egrep='egrep'
3041 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3042 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3043 EGREP=$ac_cv_prog_egrep
3046 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3047 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3048 if test "${ac_cv_header_stdc+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3070 rm -f conftest.$ac_objext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3072 (eval $ac_compile) 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; } &&
3085 { ac_try='test -s conftest.$ac_objext'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 ac_cv_header_stdc=yes
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 ac_cv_header_stdc=no
3098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3100 if test $ac_cv_header_stdc = yes; then
3101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3112 $EGREP "memchr" >/dev/null 2>&1; then
3115 ac_cv_header_stdc=no
3121 if test $ac_cv_header_stdc = yes; then
3122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3133 $EGREP "free" >/dev/null 2>&1; then
3136 ac_cv_header_stdc=no
3142 if test $ac_cv_header_stdc = yes; then
3143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3144 if test "$cross_compiling" = yes; then
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3154 #if ((' ' & 0x0FF) == 0x020)
3155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3158 # define ISLOWER(c) \
3159 (('a' <= (c) && (c) <= 'i') \
3160 || ('j' <= (c) && (c) <= 'r') \
3161 || ('s' <= (c) && (c) <= 'z'))
3162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3170 for (i = 0; i < 256; i++)
3171 if (XOR (islower (i), ISLOWER (i))
3172 || toupper (i) != TOUPPER (i))
3177 rm -f conftest$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179 (eval $ac_link) 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3190 echo "$as_me: program exited with status $ac_status" >&5
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3195 ac_cv_header_stdc=no
3197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3202 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3203 if test $ac_cv_header_stdc = yes; then
3205 cat >>confdefs.h <<\_ACEOF
3206 #define STDC_HEADERS 1
3211 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3221 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3222 inttypes.h stdint.h unistd.h
3224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3225 echo "$as_me:$LINENO: checking for $ac_header" >&5
3226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236 $ac_includes_default
3238 #include <$ac_header>
3240 rm -f conftest.$ac_objext
3241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3242 (eval $ac_compile) 2>conftest.er1
3244 grep -v '^ *+' conftest.er1 >conftest.err
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; } &&
3255 { ac_try='test -s conftest.$ac_objext'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3261 eval "$as_ac_Header=yes"
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 eval "$as_ac_Header=no"
3268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3273 cat >>confdefs.h <<_ACEOF
3274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3292 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3293 stdlib.h strings.h string.h sys/file.h unistd.h
3295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3297 echo "$as_me:$LINENO: checking for $ac_header" >&5
3298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3305 # Is the header compilable?
3306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3314 $ac_includes_default
3315 #include <$ac_header>
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest.$ac_objext'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3338 ac_header_compiler=yes
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 ac_header_compiler=no
3345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3347 echo "${ECHO_T}$ac_header_compiler" >&6
3349 # Is the header present?
3350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358 #include <$ac_header>
3360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377 if test -z "$ac_cpp_err"; then
3378 ac_header_preproc=yes
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 ac_header_preproc=no
3385 rm -f conftest.err conftest.$ac_ext
3386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3387 echo "${ECHO_T}$ac_header_preproc" >&6
3389 # So? What about this header?
3390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3396 ac_header_preproc=yes
3399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3413 ## ----------------------------------- ##
3414 ## Report this to gcc-bugs@gcc.gnu.org ##
3415 ## ----------------------------------- ##
3418 sed "s/^/$as_me: WARNING: /" >&2
3421 echo "$as_me:$LINENO: checking for $ac_header" >&5
3422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 eval "$as_ac_Header=\$ac_header_preproc"
3428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3433 cat >>confdefs.h <<_ACEOF
3434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3442 # Checks for typedefs, structures, and compiler characteristics.
3443 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3444 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3445 if test "${ac_cv_c_const+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 cat >conftest.$ac_ext <<_ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3458 /* FIXME: Include the comments suggested by Paul. */
3460 /* Ultrix mips cc rejects this. */
3461 typedef int charset[2];
3463 /* SunOS 4.1.1 cc rejects this. */
3464 char const *const *ccp;
3466 /* NEC SVR4.0.2 mips cc rejects this. */
3467 struct point {int x, y;};
3468 static struct point const zero = {0,0};
3469 /* AIX XL C 1.02.0.0 rejects this.
3470 It does not let you subtract one const X* pointer from another in
3471 an arm of an if-expression whose if-part is not a constant
3473 const char *g = "string";
3474 ccp = &g + (g ? g-g : 0);
3475 /* HPUX 7.0 cc rejects these. */
3478 ccp = (char const *const *) p;
3479 { /* SCO 3.2v4 cc rejects this. */
3481 char const *s = 0 ? (char *) 0 : (char const *) 0;
3485 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3487 const int *foo = &x[0];
3490 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3491 typedef const int *iptr;
3495 { /* AIX XL C 1.02.0.0 rejects this saying
3496 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3497 struct s { int j; const int *ap[3]; };
3498 struct s *b; b->j = 5;
3500 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>conftest.er1
3513 grep -v '^ *+' conftest.er1 >conftest.err
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3540 echo "${ECHO_T}$ac_cv_c_const" >&6
3541 if test $ac_cv_c_const = no; then
3543 cat >>confdefs.h <<\_ACEOF
3549 echo "$as_me:$LINENO: checking for inline" >&5
3550 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3551 if test "${ac_cv_c_inline+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 for ac_kw in inline __inline__ __inline; do
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3564 static $ac_kw foo_t static_foo () {return 0; }
3565 $ac_kw foo_t foo () {return 0; }
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; } &&
3584 { ac_try='test -s conftest.$ac_objext'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
3590 ac_cv_c_inline=$ac_kw; break
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3600 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3601 echo "${ECHO_T}$ac_cv_c_inline" >&6
3604 case $ac_cv_c_inline in
3607 case $ac_cv_c_inline in
3609 *) ac_val=$ac_cv_c_inline;;
3611 cat >>confdefs.h <<_ACEOF
3613 #define inline $ac_val
3619 echo "$as_me:$LINENO: checking for obstacks" >&5
3620 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3621 if test "${ac_cv_func_obstack+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 cat >conftest.$ac_ext <<_ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #include "obstack.h"
3634 struct obstack *mem; obstack_free(mem,(char *) 0)
3639 rm -f conftest.$ac_objext conftest$ac_exeext
3640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3641 (eval $ac_link) 2>conftest.er1
3643 grep -v '^ *+' conftest.er1 >conftest.err
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } &&
3648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; } &&
3654 { ac_try='test -s conftest$ac_exeext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_func_obstack=yes
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3665 ac_cv_func_obstack=no
3667 rm -f conftest.err conftest.$ac_objext \
3668 conftest$ac_exeext conftest.$ac_ext
3670 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3671 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3672 if test $ac_cv_func_obstack = yes; then
3674 cat >>confdefs.h <<\_ACEOF
3675 #define HAVE_OBSTACK 1
3680 "obstack.$ac_objext" | \
3681 *" obstack.$ac_objext" | \
3682 "obstack.$ac_objext "* | \
3683 *" obstack.$ac_objext "* ) ;;
3684 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
3689 echo "$as_me:$LINENO: checking for off_t" >&5
3690 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3691 if test "${ac_cv_type_off_t+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 cat >conftest.$ac_ext <<_ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700 $ac_includes_default
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; } &&
3727 { ac_try='test -s conftest.$ac_objext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 ac_cv_type_off_t=yes
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3742 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3743 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3744 if test $ac_cv_type_off_t = yes; then
3748 cat >>confdefs.h <<_ACEOF
3754 echo "$as_me:$LINENO: checking for size_t" >&5
3755 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3756 if test "${ac_cv_type_size_t+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 $ac_includes_default
3771 if (sizeof (size_t))
3777 rm -f conftest.$ac_objext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>conftest.er1
3781 grep -v '^ *+' conftest.er1 >conftest.err
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try='test -s conftest.$ac_objext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 ac_cv_type_size_t=yes
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 ac_cv_type_size_t=no
3805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3807 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3808 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3809 if test $ac_cv_type_size_t = yes; then
3813 cat >>confdefs.h <<_ACEOF
3814 #define size_t unsigned
3819 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3820 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3821 if test "${ac_cv_struct_tm+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3830 #include <sys/types.h>
3836 struct tm *tp; tp->tm_sec;
3841 rm -f conftest.$ac_objext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843 (eval $ac_compile) 2>conftest.er1
3845 grep -v '^ *+' conftest.er1 >conftest.err
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_cv_struct_tm=time.h
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 ac_cv_struct_tm=sys/time.h
3869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3872 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3873 if test $ac_cv_struct_tm = sys/time.h; then
3875 cat >>confdefs.h <<\_ACEOF
3876 #define TM_IN_SYS_TIME 1
3881 echo "$as_me:$LINENO: checking for int" >&5
3882 echo $ECHO_N "checking for int... $ECHO_C" >&6
3883 if test "${ac_cv_type_int+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 $ac_includes_default
3904 rm -f conftest.$ac_objext
3905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3934 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3935 echo "${ECHO_T}$ac_cv_type_int" >&6
3937 echo "$as_me:$LINENO: checking size of int" >&5
3938 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3939 if test "${ac_cv_sizeof_int+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 if test "$ac_cv_type_int" = yes; then
3943 # The cast to unsigned long works around a bug in the HP C Compiler
3944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3946 # This bug is HP SR number 8606223364.
3947 if test "$cross_compiling" = yes; then
3948 # Depending upon the size, compute the lo and hi bounds.
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 $ac_includes_default
3959 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; } &&
3981 { ac_try='test -s conftest.$ac_objext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3989 cat >conftest.$ac_ext <<_ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 $ac_includes_default
3999 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4006 rm -f conftest.$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>conftest.er1
4010 grep -v '^ *+' conftest.er1 >conftest.err
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try='test -s conftest.$ac_objext'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4027 ac_hi=$ac_mid; break
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 ac_lo=`expr $ac_mid + 1`
4033 if test $ac_lo -le $ac_mid; then
4037 ac_mid=`expr 2 '*' $ac_mid + 1`
4039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 $ac_includes_default
4055 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 $ac_includes_default
4095 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_lo=$ac_mid; break
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4128 ac_hi=`expr '(' $ac_mid ')' - 1`
4129 if test $ac_mid -le $ac_hi; then
4133 ac_mid=`expr 2 '*' $ac_mid`
4135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146 # Binary search between lo and hi bounds.
4147 while test "x$ac_lo" != "x$ac_hi"; do
4148 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 $ac_includes_default
4159 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4166 rm -f conftest.$ac_objext
4167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4168 (eval $ac_compile) 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 ac_lo=`expr '(' $ac_mid ')' + 1`
4194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197 ?*) ac_cv_sizeof_int=$ac_lo;;
4198 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4199 See \`config.log' for more details." >&5
4200 echo "$as_me: error: cannot compute sizeof (int), 77
4201 See \`config.log' for more details." >&2;}
4202 { (exit 1); exit 1; }; } ;;
4205 if test "$cross_compiling" = yes; then
4206 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4207 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4208 { (exit 1); exit 1; }; }
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 $ac_includes_default
4217 long longval () { return (long) (sizeof (int)); }
4218 unsigned long ulongval () { return (long) (sizeof (int)); }
4225 FILE *f = fopen ("conftest.val", "w");
4228 if (((long) (sizeof (int))) < 0)
4230 long i = longval ();
4231 if (i != ((long) (sizeof (int))))
4233 fprintf (f, "%ld\n", i);
4237 unsigned long i = ulongval ();
4238 if (i != ((long) (sizeof (int))))
4240 fprintf (f, "%lu\n", i);
4242 exit (ferror (f) || fclose (f) != 0);
4248 rm -f conftest$ac_exeext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4250 (eval $ac_link) 2>&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 ac_cv_sizeof_int=`cat conftest.val`
4261 echo "$as_me: program exited with status $ac_status" >&5
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4266 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4267 See \`config.log' for more details." >&5
4268 echo "$as_me: error: cannot compute sizeof (int), 77
4269 See \`config.log' for more details." >&2;}
4270 { (exit 1); exit 1; }; }
4272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4280 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4281 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4282 cat >>confdefs.h <<_ACEOF
4283 #define SIZEOF_INT $ac_cv_sizeof_int
4287 echo "$as_me:$LINENO: checking for long" >&5
4288 echo $ECHO_N "checking for long... $ECHO_C" >&6
4289 if test "${ac_cv_type_long+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4310 rm -f conftest.$ac_objext
4311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4312 (eval $ac_compile) 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4340 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4341 echo "${ECHO_T}$ac_cv_type_long" >&6
4343 echo "$as_me:$LINENO: checking size of long" >&5
4344 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4345 if test "${ac_cv_sizeof_long+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 if test "$ac_cv_type_long" = yes; then
4349 # The cast to unsigned long works around a bug in the HP C Compiler
4350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4352 # This bug is HP SR number 8606223364.
4353 if test "$cross_compiling" = yes; then
4354 # Depending upon the size, compute the lo and hi bounds.
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 $ac_includes_default
4365 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4372 rm -f conftest.$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4376 grep -v '^ *+' conftest.er1 >conftest.err
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 $ac_includes_default
4405 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4412 rm -f conftest.$ac_objext
4413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4414 (eval $ac_compile) 2>conftest.er1
4416 grep -v '^ *+' conftest.er1 >conftest.err
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; } &&
4427 { ac_try='test -s conftest.$ac_objext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_hi=$ac_mid; break
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_lo=`expr $ac_mid + 1`
4439 if test $ac_lo -le $ac_mid; then
4443 ac_mid=`expr 2 '*' $ac_mid + 1`
4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 cat >conftest.$ac_ext <<_ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 $ac_includes_default
4461 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4468 rm -f conftest.$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>conftest.er1
4472 grep -v '^ *+' conftest.er1 >conftest.err
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4497 $ac_includes_default
4501 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4508 rm -f conftest.$ac_objext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>conftest.er1
4512 grep -v '^ *+' conftest.er1 >conftest.err
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_lo=$ac_mid; break
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 ac_hi=`expr '(' $ac_mid ')' - 1`
4535 if test $ac_mid -le $ac_hi; then
4539 ac_mid=`expr 2 '*' $ac_mid`
4541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4552 # Binary search between lo and hi bounds.
4553 while test "x$ac_lo" != "x$ac_hi"; do
4554 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4555 cat >conftest.$ac_ext <<_ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 $ac_includes_default
4565 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4572 rm -f conftest.$ac_objext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574 (eval $ac_compile) 2>conftest.er1
4576 grep -v '^ *+' conftest.er1 >conftest.err
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try='test -s conftest.$ac_objext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4598 ac_lo=`expr '(' $ac_mid ')' + 1`
4600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ?*) ac_cv_sizeof_long=$ac_lo;;
4604 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4605 See \`config.log' for more details." >&5
4606 echo "$as_me: error: cannot compute sizeof (long), 77
4607 See \`config.log' for more details." >&2;}
4608 { (exit 1); exit 1; }; } ;;
4611 if test "$cross_compiling" = yes; then
4612 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4613 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4614 { (exit 1); exit 1; }; }
4616 cat >conftest.$ac_ext <<_ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 $ac_includes_default
4623 long longval () { return (long) (sizeof (long)); }
4624 unsigned long ulongval () { return (long) (sizeof (long)); }
4631 FILE *f = fopen ("conftest.val", "w");
4634 if (((long) (sizeof (long))) < 0)
4636 long i = longval ();
4637 if (i != ((long) (sizeof (long))))
4639 fprintf (f, "%ld\n", i);
4643 unsigned long i = ulongval ();
4644 if (i != ((long) (sizeof (long))))
4646 fprintf (f, "%lu\n", i);
4648 exit (ferror (f) || fclose (f) != 0);
4654 rm -f conftest$ac_exeext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656 (eval $ac_link) 2>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4665 ac_cv_sizeof_long=`cat conftest.val`
4667 echo "$as_me: program exited with status $ac_status" >&5
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4672 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4673 See \`config.log' for more details." >&5
4674 echo "$as_me: error: cannot compute sizeof (long), 77
4675 See \`config.log' for more details." >&2;}
4676 { (exit 1); exit 1; }; }
4678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4686 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4687 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4688 cat >>confdefs.h <<_ACEOF
4689 #define SIZEOF_LONG $ac_cv_sizeof_long
4698 for ac_func in putc_unlocked fputc_unlocked fputs_unlocked \
4699 fwrite_unlocked fprintf_unlocked
4701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4702 echo "$as_me:$LINENO: checking for $ac_func" >&5
4703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4704 if eval "test \"\${$as_ac_var+set}\" = set"; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4715 #define $ac_func innocuous_$ac_func
4717 /* System header to define __stub macros and hopefully few prototypes,
4718 which can conflict with char $ac_func (); below.
4719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4720 <limits.h> exists even on freestanding compilers. */
4723 # include <limits.h>
4725 # include <assert.h>
4730 /* Override any gcc2 internal prototype to avoid an error. */
4735 /* We use char because int might match the return type of a gcc2
4736 builtin and then its argument prototype would still apply. */
4738 /* The GNU C library defines this for functions which it implements
4739 to always fail with ENOSYS. Some functions are actually named
4740 something starting with __ and the normal name is an alias. */
4741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4744 char (*f) () = $ac_func;
4753 return f != $ac_func;
4758 rm -f conftest.$ac_objext conftest$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; } &&
4773 { ac_try='test -s conftest$ac_exeext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 eval "$as_ac_var=yes"
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 eval "$as_ac_var=no"
4786 rm -f conftest.err conftest.$ac_objext \
4787 conftest$ac_exeext conftest.$ac_ext
4789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4791 if test `eval echo '${'$as_ac_var'}'` = yes; then
4792 cat >>confdefs.h <<_ACEOF
4793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4799 echo "$as_me:$LINENO: checking whether abort is declared" >&5
4800 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
4801 if test "${ac_cv_have_decl_abort+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 $ac_includes_default
4815 char *p = (char *) abort;
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4826 grep -v '^ *+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4843 ac_cv_have_decl_abort=yes
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 ac_cv_have_decl_abort=no
4850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
4853 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
4854 if test $ac_cv_have_decl_abort = yes; then
4856 cat >>confdefs.h <<_ACEOF
4857 #define HAVE_DECL_ABORT 1
4862 cat >>confdefs.h <<_ACEOF
4863 #define HAVE_DECL_ABORT 0
4868 echo "$as_me:$LINENO: checking whether errno is declared" >&5
4869 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
4870 if test "${ac_cv_have_decl_errno+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 cat >conftest.$ac_ext <<_ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4879 $ac_includes_default
4884 char *p = (char *) errno;
4891 rm -f conftest.$ac_objext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>conftest.er1
4895 grep -v '^ *+' conftest.er1 >conftest.err
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } &&
4900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; } &&
4906 { ac_try='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_cv_have_decl_errno=yes
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 ac_cv_have_decl_errno=no
4919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4921 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
4922 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
4923 if test $ac_cv_have_decl_errno = yes; then
4925 cat >>confdefs.h <<_ACEOF
4926 #define HAVE_DECL_ERRNO 1
4931 cat >>confdefs.h <<_ACEOF
4932 #define HAVE_DECL_ERRNO 0
4937 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
4938 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
4939 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4952 #ifndef putc_unlocked
4953 char *p = (char *) putc_unlocked;
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_have_decl_putc_unlocked=yes
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 ac_cv_have_decl_putc_unlocked=no
4988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4990 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
4991 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
4992 if test $ac_cv_have_decl_putc_unlocked = yes; then
4994 cat >>confdefs.h <<_ACEOF
4995 #define HAVE_DECL_PUTC_UNLOCKED 1
5000 cat >>confdefs.h <<_ACEOF
5001 #define HAVE_DECL_PUTC_UNLOCKED 0
5006 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
5007 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
5008 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 $ac_includes_default
5021 #ifndef fputc_unlocked
5022 char *p = (char *) fputc_unlocked;
5029 rm -f conftest.$ac_objext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031 (eval $ac_compile) 2>conftest.er1
5033 grep -v '^ *+' conftest.er1 >conftest.err
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_cv_have_decl_fputc_unlocked=yes
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 ac_cv_have_decl_fputc_unlocked=no
5057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5059 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5060 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
5061 if test $ac_cv_have_decl_fputc_unlocked = yes; then
5063 cat >>confdefs.h <<_ACEOF
5064 #define HAVE_DECL_FPUTC_UNLOCKED 1
5069 cat >>confdefs.h <<_ACEOF
5070 #define HAVE_DECL_FPUTC_UNLOCKED 0
5075 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5076 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
5077 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 $ac_includes_default
5090 #ifndef fputs_unlocked
5091 char *p = (char *) fputs_unlocked;
5098 rm -f conftest.$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>conftest.er1
5102 grep -v '^ *+' conftest.er1 >conftest.err
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest.$ac_objext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 ac_cv_have_decl_fputs_unlocked=yes
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5124 ac_cv_have_decl_fputs_unlocked=no
5126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5128 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
5129 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
5130 if test $ac_cv_have_decl_fputs_unlocked = yes; then
5132 cat >>confdefs.h <<_ACEOF
5133 #define HAVE_DECL_FPUTS_UNLOCKED 1
5138 cat >>confdefs.h <<_ACEOF
5139 #define HAVE_DECL_FPUTS_UNLOCKED 0
5144 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
5145 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
5146 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 $ac_includes_default
5159 #ifndef fwrite_unlocked
5160 char *p = (char *) fwrite_unlocked;
5167 rm -f conftest.$ac_objext
5168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5169 (eval $ac_compile) 2>conftest.er1
5171 grep -v '^ *+' conftest.er1 >conftest.err
5173 cat conftest.err >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; } &&
5182 { ac_try='test -s conftest.$ac_objext'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 ac_cv_have_decl_fwrite_unlocked=yes
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5193 ac_cv_have_decl_fwrite_unlocked=no
5195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5197 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
5198 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
5199 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
5201 cat >>confdefs.h <<_ACEOF
5202 #define HAVE_DECL_FWRITE_UNLOCKED 1
5207 cat >>confdefs.h <<_ACEOF
5208 #define HAVE_DECL_FWRITE_UNLOCKED 0
5213 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5214 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5215 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 cat >conftest.$ac_ext <<_ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 $ac_includes_default
5228 #ifndef fprintf_unlocked
5229 char *p = (char *) fprintf_unlocked;
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>conftest.er1
5240 grep -v '^ *+' conftest.er1 >conftest.err
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_have_decl_fprintf_unlocked=yes
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_cv_have_decl_fprintf_unlocked=no
5264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
5267 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
5268 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
5270 cat >>confdefs.h <<_ACEOF
5271 #define HAVE_DECL_FPRINTF_UNLOCKED 1
5276 cat >>confdefs.h <<_ACEOF
5277 #define HAVE_DECL_FPRINTF_UNLOCKED 0
5285 # Checks for library functions.
5286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5287 # for constant arguments. Useless!
5288 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5289 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5290 if test "${ac_cv_working_alloca_h+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5303 char *p = (char *) alloca (2 * sizeof (int));
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1 >conftest.err
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try='test -s conftest$ac_exeext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_cv_working_alloca_h=yes
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 ac_cv_working_alloca_h=no
5336 rm -f conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext conftest.$ac_ext
5339 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5340 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5341 if test $ac_cv_working_alloca_h = yes; then
5343 cat >>confdefs.h <<\_ACEOF
5344 #define HAVE_ALLOCA_H 1
5349 echo "$as_me:$LINENO: checking for alloca" >&5
5350 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5351 if test "${ac_cv_func_alloca_works+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5361 # define alloca __builtin_alloca
5364 # include <malloc.h>
5365 # define alloca _alloca
5368 # include <alloca.h>
5373 # ifndef alloca /* predefined by HP cc +Olibcalls */
5384 char *p = (char *) alloca (1);
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5391 (eval $ac_link) 2>conftest.er1
5393 grep -v '^ *+' conftest.er1 >conftest.err
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest$ac_exeext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_cv_func_alloca_works=yes
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 ac_cv_func_alloca_works=no
5417 rm -f conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5421 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5423 if test $ac_cv_func_alloca_works = yes; then
5425 cat >>confdefs.h <<\_ACEOF
5426 #define HAVE_ALLOCA 1
5430 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5431 # that cause trouble. Some versions do not even contain alloca or
5432 # contain a buggy version. If you still want to use their alloca,
5433 # use ar to extract alloca.o from them instead of compiling alloca.c.
5435 ALLOCA=alloca.$ac_objext
5437 cat >>confdefs.h <<\_ACEOF
5442 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5443 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5444 if test "${ac_cv_os_cray+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #if defined(CRAY) && ! defined(CRAY2)
5460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5461 $EGREP "webecray" >/dev/null 2>&1; then
5469 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5470 echo "${ECHO_T}$ac_cv_os_cray" >&6
5471 if test $ac_cv_os_cray = yes; then
5472 for ac_func in _getb67 GETB67 getb67; do
5473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5474 echo "$as_me:$LINENO: checking for $ac_func" >&5
5475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5476 if eval "test \"\${$as_ac_var+set}\" = set"; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5487 #define $ac_func innocuous_$ac_func
5489 /* System header to define __stub macros and hopefully few prototypes,
5490 which can conflict with char $ac_func (); below.
5491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5492 <limits.h> exists even on freestanding compilers. */
5495 # include <limits.h>
5497 # include <assert.h>
5502 /* Override any gcc2 internal prototype to avoid an error. */
5507 /* We use char because int might match the return type of a gcc2
5508 builtin and then its argument prototype would still apply. */
5510 /* The GNU C library defines this for functions which it implements
5511 to always fail with ENOSYS. Some functions are actually named
5512 something starting with __ and the normal name is an alias. */
5513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5516 char (*f) () = $ac_func;
5525 return f != $ac_func;
5530 rm -f conftest.$ac_objext conftest$ac_exeext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5532 (eval $ac_link) 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest$ac_exeext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 eval "$as_ac_var=yes"
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 eval "$as_ac_var=no"
5558 rm -f conftest.err conftest.$ac_objext \
5559 conftest$ac_exeext conftest.$ac_ext
5561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5563 if test `eval echo '${'$as_ac_var'}'` = yes; then
5565 cat >>confdefs.h <<_ACEOF
5566 #define CRAY_STACKSEG_END $ac_func
5575 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5576 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5577 if test "${ac_cv_c_stack_direction+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 if test "$cross_compiling" = yes; then
5581 ac_cv_c_stack_direction=0
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 find_stack_direction ()
5592 static char *addr = 0;
5597 return find_stack_direction ();
5600 return (&dummy > addr) ? 1 : -1;
5606 exit (find_stack_direction () < 0);
5609 rm -f conftest$ac_exeext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5611 (eval $ac_link) 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_cv_c_stack_direction=1
5622 echo "$as_me: program exited with status $ac_status" >&5
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_cv_c_stack_direction=-1
5629 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5632 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5633 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5635 cat >>confdefs.h <<_ACEOF
5636 #define STACK_DIRECTION $ac_cv_c_stack_direction
5642 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5643 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5644 if test "${ac_cv_header_stdc+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5666 rm -f conftest.$ac_objext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668 (eval $ac_compile) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest.$ac_objext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_header_stdc=yes
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_cv_header_stdc=no
5694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5696 if test $ac_cv_header_stdc = yes; then
5697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "memchr" >/dev/null 2>&1; then
5711 ac_cv_header_stdc=no
5717 if test $ac_cv_header_stdc = yes; then
5718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5719 cat >conftest.$ac_ext <<_ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5729 $EGREP "free" >/dev/null 2>&1; then
5732 ac_cv_header_stdc=no
5738 if test $ac_cv_header_stdc = yes; then
5739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5740 if test "$cross_compiling" = yes; then
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5750 #if ((' ' & 0x0FF) == 0x020)
5751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5754 # define ISLOWER(c) \
5755 (('a' <= (c) && (c) <= 'i') \
5756 || ('j' <= (c) && (c) <= 'r') \
5757 || ('s' <= (c) && (c) <= 'z'))
5758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5766 for (i = 0; i < 256; i++)
5767 if (XOR (islower (i), ISLOWER (i))
5768 || toupper (i) != TOUPPER (i))
5773 rm -f conftest$ac_exeext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5775 (eval $ac_link) 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5786 echo "$as_me: program exited with status $ac_status" >&5
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_cv_header_stdc=no
5793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5797 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5798 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5799 if test $ac_cv_header_stdc = yes; then
5801 cat >>confdefs.h <<\_ACEOF
5802 #define STDC_HEADERS 1
5808 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
5809 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5810 if test "${am_cv_langinfo_codeset+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 #include <langinfo.h>
5823 char* cs = nl_langinfo(CODESET);
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830 (eval $ac_link) 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest$ac_exeext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 am_cv_langinfo_codeset=yes
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 am_cv_langinfo_codeset=no
5856 rm -f conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5860 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
5861 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5862 if test $am_cv_langinfo_codeset = yes; then
5864 cat >>confdefs.h <<\_ACEOF
5865 #define HAVE_LANGINFO_CODESET 1
5870 # If we haven't got the data from the intl directory,
5871 # assume NLS is disabled.
5879 if test -f ../intl/config.intl; then
5880 . ../intl/config.intl
5882 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5883 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5884 if test x"$USE_NLS" != xyes; then
5885 echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6
5888 echo "$as_me:$LINENO: result: yes" >&5
5889 echo "${ECHO_T}yes" >&6
5891 cat >>confdefs.h <<\_ACEOF
5892 #define ENABLE_NLS 1
5896 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5897 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5898 # Look for .po and .gmo files in the source directory.
5901 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5902 # If there aren't any .gmo files the shell will give us the
5903 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5905 case "$cat" in *\**)
5908 # The quadruple backslash is collapsed to a double backslash
5909 # by the backticks, then collapsed again by the double quotes,
5910 # leaving us with one backslash in the sed expression (right
5911 # before the dot that mustn't act as a wildcard).
5912 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5913 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5914 # The user is allowed to set LINGUAS to a list of languages to
5915 # install catalogs for. If it's empty that means "all of them."
5916 if test "x$LINGUAS" = x; then
5917 CATALOGS="$CATALOGS $cat"
5918 XLINGUAS="$XLINGUAS $lang"
5920 case "$LINGUAS" in *$lang*)
5921 CATALOGS="$CATALOGS $cat"
5922 XLINGUAS="$XLINGUAS $lang"
5928 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5929 echo "${ECHO_T}$LINGUAS" >&6
5932 echo "$as_me:$LINENO: checking for uchar" >&5
5933 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
5934 if test "${gcc_cv_type_uchar+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5944 #include "ansidecl.h"
5950 if ((uchar *)0) return 0;
5951 if (sizeof(uchar)) return 0;
5956 rm -f conftest.$ac_objext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>conftest.er1
5960 grep -v '^ *+' conftest.er1 >conftest.err
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } &&
5965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; } &&
5971 { ac_try='test -s conftest.$ac_objext'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5977 ac_cv_type_uchar=yes
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5986 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
5987 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
5988 if test $ac_cv_type_uchar = yes; then
5990 cat >>confdefs.h <<\_ACEOF
5991 #define HAVE_UCHAR 1
5997 if test "X$prefix" = "XNONE"; then
5998 acl_final_prefix="$ac_default_prefix"
6000 acl_final_prefix="$prefix"
6002 if test "X$exec_prefix" = "XNONE"; then
6003 acl_final_exec_prefix='${prefix}'
6005 acl_final_exec_prefix="$exec_prefix"
6007 acl_save_prefix="$prefix"
6008 prefix="$acl_final_prefix"
6009 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6010 prefix="$acl_save_prefix"
6013 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6014 if test "${with_gnu_ld+set}" = set; then
6015 withval="$with_gnu_ld"
6016 test "$withval" = no || with_gnu_ld=yes
6020 # Prepare PATH_SEPARATOR.
6021 # The user is always right.
6022 if test "${PATH_SEPARATOR+set}" != set; then
6023 echo "#! /bin/sh" >conf$$.sh
6024 echo "exit 0" >>conf$$.sh
6026 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6034 if test "$GCC" = yes; then
6035 # Check if gcc -print-prog-name=ld gives a path.
6036 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6037 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6040 # gcc leaves a trailing carriage return which upsets mingw
6041 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6043 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6046 # Accept absolute paths.
6047 [\\/]* | [A-Za-z]:[\\/]*)
6048 re_direlt='/[^/][^/]*/\.\./'
6049 # Canonicalize the path of ld
6050 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6051 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6052 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6054 test -z "$LD" && LD="$ac_prog"
6057 # If it fails, then pretend we aren't using GCC.
6061 # If it is relative, then search for the first ld in PATH.
6065 elif test "$with_gnu_ld" = yes; then
6066 echo "$as_me:$LINENO: checking for GNU ld" >&5
6067 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6069 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6070 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6072 if test "${acl_cv_path_LD+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 if test -z "$LD"; then
6076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6077 for ac_dir in $PATH; do
6078 test -z "$ac_dir" && ac_dir=.
6079 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6080 acl_cv_path_LD="$ac_dir/$ac_prog"
6081 # Check to see if the program is GNU ld. I'd rather use --version,
6082 # but apparently some GNU ld's only accept -v.
6083 # Break only if it was the GNU/non-GNU ld that we prefer.
6084 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6085 *GNU* | *'with BFD'*)
6086 test "$with_gnu_ld" != no && break ;;
6088 test "$with_gnu_ld" != yes && break ;;
6094 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6098 LD="$acl_cv_path_LD"
6099 if test -n "$LD"; then
6100 echo "$as_me:$LINENO: result: $LD" >&5
6101 echo "${ECHO_T}$LD" >&6
6103 echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6106 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6107 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6108 { (exit 1); exit 1; }; }
6109 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6110 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6111 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6115 case `$LD -v 2>&1 </dev/null` in
6116 *GNU* | *'with BFD'*)
6117 acl_cv_prog_gnu_ld=yes ;;
6119 acl_cv_prog_gnu_ld=no ;;
6122 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6123 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6124 with_gnu_ld=$acl_cv_prog_gnu_ld
6128 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6129 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6130 if test "${acl_cv_rpath+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6135 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6141 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6142 echo "${ECHO_T}$acl_cv_rpath" >&6
6144 libext="$acl_cv_libext"
6145 shlibext="$acl_cv_shlibext"
6146 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6147 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6148 hardcode_direct="$acl_cv_hardcode_direct"
6149 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6150 # Check whether --enable-rpath or --disable-rpath was given.
6151 if test "${enable_rpath+set}" = set; then
6152 enableval="$enable_rpath"
6166 acl_save_prefix="$prefix"
6167 prefix="$acl_final_prefix"
6168 acl_save_exec_prefix="$exec_prefix"
6169 exec_prefix="$acl_final_exec_prefix"
6171 eval additional_includedir=\"$includedir\"
6172 eval additional_libdir=\"$libdir\"
6174 exec_prefix="$acl_save_exec_prefix"
6175 prefix="$acl_save_prefix"
6178 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6179 if test "${with_libiconv_prefix+set}" = set; then
6180 withval="$with_libiconv_prefix"
6182 if test "X$withval" = "Xno"; then
6185 if test "X$withval" = "X"; then
6187 acl_save_prefix="$prefix"
6188 prefix="$acl_final_prefix"
6189 acl_save_exec_prefix="$exec_prefix"
6190 exec_prefix="$acl_final_exec_prefix"
6192 eval additional_includedir=\"$includedir\"
6193 eval additional_libdir=\"$libdir\"
6195 exec_prefix="$acl_save_exec_prefix"
6196 prefix="$acl_save_prefix"
6199 additional_includedir="$withval/include"
6200 additional_libdir="$withval/lib"
6210 names_already_handled=
6211 names_next_round='iconv '
6212 while test -n "$names_next_round"; do
6213 names_this_round="$names_next_round"
6215 for name in $names_this_round; do
6217 for n in $names_already_handled; do
6218 if test "$n" = "$name"; then
6223 if test -z "$already_handled"; then
6224 names_already_handled="$names_already_handled $name"
6225 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6226 eval value=\"\$HAVE_LIB$uppername\"
6227 if test -n "$value"; then
6228 if test "$value" = yes; then
6229 eval value=\"\$LIB$uppername\"
6230 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6231 eval value=\"\$LTLIB$uppername\"
6232 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6241 if test $use_additional = yes; then
6242 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6243 found_dir="$additional_libdir"
6244 found_so="$additional_libdir/lib$name.$shlibext"
6245 if test -f "$additional_libdir/lib$name.la"; then
6246 found_la="$additional_libdir/lib$name.la"
6249 if test -f "$additional_libdir/lib$name.$libext"; then
6250 found_dir="$additional_libdir"
6251 found_a="$additional_libdir/lib$name.$libext"
6252 if test -f "$additional_libdir/lib$name.la"; then
6253 found_la="$additional_libdir/lib$name.la"
6258 if test "X$found_dir" = "X"; then
6259 for x in $LDFLAGS $LTLIBICONV; do
6261 acl_save_prefix="$prefix"
6262 prefix="$acl_final_prefix"
6263 acl_save_exec_prefix="$exec_prefix"
6264 exec_prefix="$acl_final_exec_prefix"
6266 exec_prefix="$acl_save_exec_prefix"
6267 prefix="$acl_save_prefix"
6271 dir=`echo "X$x" | sed -e 's/^X-L//'`
6272 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6274 found_so="$dir/lib$name.$shlibext"
6275 if test -f "$dir/lib$name.la"; then
6276 found_la="$dir/lib$name.la"
6279 if test -f "$dir/lib$name.$libext"; then
6281 found_a="$dir/lib$name.$libext"
6282 if test -f "$dir/lib$name.la"; then
6283 found_la="$dir/lib$name.la"
6289 if test "X$found_dir" != "X"; then
6294 if test "X$found_dir" != "X"; then
6295 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6296 if test "X$found_so" != "X"; then
6297 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6298 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6301 for x in $ltrpathdirs; do
6302 if test "X$x" = "X$found_dir"; then
6307 if test -z "$haveit"; then
6308 ltrpathdirs="$ltrpathdirs $found_dir"
6310 if test "$hardcode_direct" = yes; then
6311 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6313 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6314 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6316 for x in $rpathdirs; do
6317 if test "X$x" = "X$found_dir"; then
6322 if test -z "$haveit"; then
6323 rpathdirs="$rpathdirs $found_dir"
6327 for x in $LDFLAGS $LIBICONV; do
6329 acl_save_prefix="$prefix"
6330 prefix="$acl_final_prefix"
6331 acl_save_exec_prefix="$exec_prefix"
6332 exec_prefix="$acl_final_exec_prefix"
6334 exec_prefix="$acl_save_exec_prefix"
6335 prefix="$acl_save_prefix"
6337 if test "X$x" = "X-L$found_dir"; then
6342 if test -z "$haveit"; then
6343 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6345 if test "$hardcode_minus_L" != no; then
6346 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6348 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6354 if test "X$found_a" != "X"; then
6355 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6357 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6360 additional_includedir=
6361 case "$found_dir" in
6363 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6364 additional_includedir="$basedir/include"
6367 if test "X$additional_includedir" != "X"; then
6368 if test "X$additional_includedir" != "X/usr/include"; then
6370 if test "X$additional_includedir" = "X/usr/local/include"; then
6371 if test -n "$GCC"; then
6373 linux*) haveit=yes;;
6377 if test -z "$haveit"; then
6378 for x in $CPPFLAGS $INCICONV; do
6380 acl_save_prefix="$prefix"
6381 prefix="$acl_final_prefix"
6382 acl_save_exec_prefix="$exec_prefix"
6383 exec_prefix="$acl_final_exec_prefix"
6385 exec_prefix="$acl_save_exec_prefix"
6386 prefix="$acl_save_prefix"
6388 if test "X$x" = "X-I$additional_includedir"; then
6393 if test -z "$haveit"; then
6394 if test -d "$additional_includedir"; then
6395 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6401 if test -n "$found_la"; then
6402 save_libdir="$libdir"
6404 */* | *\\*) . "$found_la" ;;
6405 *) . "./$found_la" ;;
6407 libdir="$save_libdir"
6408 for dep in $dependency_libs; do
6411 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6412 if test "X$additional_libdir" != "X/usr/lib"; then
6414 if test "X$additional_libdir" = "X/usr/local/lib"; then
6415 if test -n "$GCC"; then
6417 linux*) haveit=yes;;
6421 if test -z "$haveit"; then
6423 for x in $LDFLAGS $LIBICONV; do
6425 acl_save_prefix="$prefix"
6426 prefix="$acl_final_prefix"
6427 acl_save_exec_prefix="$exec_prefix"
6428 exec_prefix="$acl_final_exec_prefix"
6430 exec_prefix="$acl_save_exec_prefix"
6431 prefix="$acl_save_prefix"
6433 if test "X$x" = "X-L$additional_libdir"; then
6438 if test -z "$haveit"; then
6439 if test -d "$additional_libdir"; then
6440 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6444 for x in $LDFLAGS $LTLIBICONV; do
6446 acl_save_prefix="$prefix"
6447 prefix="$acl_final_prefix"
6448 acl_save_exec_prefix="$exec_prefix"
6449 exec_prefix="$acl_final_exec_prefix"
6451 exec_prefix="$acl_save_exec_prefix"
6452 prefix="$acl_save_prefix"
6454 if test "X$x" = "X-L$additional_libdir"; then
6459 if test -z "$haveit"; then
6460 if test -d "$additional_libdir"; then
6461 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6468 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6469 if test "$enable_rpath" != no; then
6471 for x in $rpathdirs; do
6472 if test "X$x" = "X$dir"; then
6477 if test -z "$haveit"; then
6478 rpathdirs="$rpathdirs $dir"
6481 for x in $ltrpathdirs; do
6482 if test "X$x" = "X$dir"; then
6487 if test -z "$haveit"; then
6488 ltrpathdirs="$ltrpathdirs $dir"
6493 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6496 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6499 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6500 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6506 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6507 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6513 if test "X$rpathdirs" != "X"; then
6514 if test -n "$hardcode_libdir_separator"; then
6516 for found_dir in $rpathdirs; do
6517 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6519 acl_save_libdir="$libdir"
6521 eval flag=\"$hardcode_libdir_flag_spec\"
6522 libdir="$acl_save_libdir"
6523 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6525 for found_dir in $rpathdirs; do
6526 acl_save_libdir="$libdir"
6528 eval flag=\"$hardcode_libdir_flag_spec\"
6529 libdir="$acl_save_libdir"
6530 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6534 if test "X$ltrpathdirs" != "X"; then
6535 for found_dir in $ltrpathdirs; do
6536 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6546 am_save_CPPFLAGS="$CPPFLAGS"
6548 for element in $INCICONV; do
6550 for x in $CPPFLAGS; do
6552 acl_save_prefix="$prefix"
6553 prefix="$acl_final_prefix"
6554 acl_save_exec_prefix="$exec_prefix"
6555 exec_prefix="$acl_final_exec_prefix"
6557 exec_prefix="$acl_save_exec_prefix"
6558 prefix="$acl_save_prefix"
6560 if test "X$x" = "X$element"; then
6565 if test -z "$haveit"; then
6566 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6571 echo "$as_me:$LINENO: checking for iconv" >&5
6572 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6573 if test "${am_cv_func_iconv+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 am_cv_func_iconv="no, consider installing GNU libiconv"
6579 cat >conftest.$ac_ext <<_ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6590 iconv_t cd = iconv_open("","");
6591 iconv(cd,NULL,NULL,NULL,NULL);
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599 (eval $ac_link) 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 am_cv_func_iconv=yes
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6624 rm -f conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626 if test "$am_cv_func_iconv" != yes; then
6627 am_save_LIBS="$LIBS"
6628 LIBS="$LIBS $LIBICONV"
6629 cat >conftest.$ac_ext <<_ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6640 iconv_t cd = iconv_open("","");
6641 iconv(cd,NULL,NULL,NULL,NULL);
6647 rm -f conftest.$ac_objext conftest$ac_exeext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>conftest.er1
6651 grep -v '^ *+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest$ac_exeext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6669 am_cv_func_iconv=yes
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6675 rm -f conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6677 LIBS="$am_save_LIBS"
6681 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6682 echo "${ECHO_T}$am_cv_func_iconv" >&6
6683 if test "$am_cv_func_iconv" = yes; then
6685 cat >>confdefs.h <<\_ACEOF
6686 #define HAVE_ICONV 1
6690 if test "$am_cv_lib_iconv" = yes; then
6691 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6692 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6693 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6694 echo "${ECHO_T}$LIBICONV" >&6
6696 CPPFLAGS="$am_save_CPPFLAGS"
6703 if test "$am_cv_func_iconv" = yes; then
6704 echo "$as_me:$LINENO: checking for iconv declaration" >&5
6705 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6706 if test "${am_cv_proto_iconv+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 cat >conftest.$ac_ext <<_ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6723 #if defined(__STDC__) || defined(__cplusplus)
6724 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>conftest.er1
6741 grep -v '^ *+' conftest.er1 >conftest.err
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try='test -s conftest.$ac_objext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 am_cv_proto_iconv_arg1=""
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 am_cv_proto_iconv_arg1="const"
6765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6766 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6769 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6770 echo "$as_me:$LINENO: result: ${ac_t:-
6771 }$am_cv_proto_iconv" >&5
6772 echo "${ECHO_T}${ac_t:-
6773 }$am_cv_proto_iconv" >&6
6775 cat >>confdefs.h <<_ACEOF
6776 #define ICONV_CONST $am_cv_proto_iconv_arg1
6782 # More defines and substitutions.
6784 cat >>confdefs.h <<_ACEOF
6785 #define PACKAGE "$PACKAGE"
6790 if test "x$enable_nls" != xno; then
6791 USED_CATALOGS='$(CATALOGS)'
6797 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6798 if test "${enable_maintainer_mode+set}" = set; then
6799 enableval="$enable_maintainer_mode"
6802 enable_maintainer_mode=no
6805 if test "x$enable_maintainer_mode" = xno; then
6812 # Check whether --enable-checking or --disable-checking was given.
6813 if test "${enable_checking+set}" = set; then
6814 enableval="$enable_checking"
6820 if test $enable_checking != no ; then
6822 cat >>confdefs.h <<\_ACEOF
6823 #define ENABLE_CHECKING 1
6832 arm*-*-symbianelf* | \
6835 hppa*64*-*-* | parisc*64*-*-* | \
6841 sparc64*-*-* | ultrasparc-*-freebsd* | \
6842 sparcv9-*-solaris2* | \
6843 sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9] | \
6844 sh[123456789l]*-*-*)
6845 need_64bit_hwint=yes ;;
6847 need_64bit_hwint=no ;;
6850 case $need_64bit_hwint:$ac_cv_sizeof_long in
6851 *:8 | no:*) host_wide_int=long ;;
6852 *) host_wide_int='long long' ;;
6857 cat >>confdefs.h <<_ACEOF
6858 #define HOST_WIDE_INT $host_wide_int
6864 ac_config_headers="$ac_config_headers config.h:config.in"
6866 ac_config_files="$ac_config_files Makefile"
6868 cat >confcache <<\_ACEOF
6869 # This file is a shell script that caches the results of configure
6870 # tests run on this system so they can be shared between configure
6871 # scripts and configure runs, see configure's option --config-cache.
6872 # It is not useful on other systems. If it contains results you don't
6873 # want to keep, you may remove or edit it.
6875 # config.status only pays attention to the cache file if you give it
6876 # the --recheck option to rerun configure.
6878 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6879 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6884 # The following way of writing the cache mishandles newlines in values,
6885 # but we know of no workaround that is simple, portable, and efficient.
6886 # So, don't put newlines in cache variables' values.
6887 # Ultrix sh set writes to stderr and can't be redirected directly,
6888 # and sets the high bit in the cache file unless we assign to the vars.
6891 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6893 # `set' does not quote correctly, so add quotes (double-quote
6894 # substitution turns \\\\ into \\, and sed turns \\ into \).
6897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6900 # `set' quotes correctly as required by POSIX, so do not add quotes.
6902 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6911 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6913 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6914 if test -w $cache_file; then
6915 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6916 cat confcache >$cache_file
6918 echo "not updating unwritable cache $cache_file"
6923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6924 # Let make expand exec_prefix.
6925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6927 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6928 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6929 # trailing colons and then remove the whole line if VPATH becomes empty
6930 # (actually we leave an empty line to preserve line numbers).
6931 if test "x$srcdir" = x.; then
6932 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6933 s/:*\$(srcdir):*/:/;
6934 s/:*\${srcdir}:*/:/;
6936 s/^\([^=]*=[ ]*\):*/\1/;
6942 DEFS=-DHAVE_CONFIG_H
6946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6947 # 1. Remove the extension, and $U if already installed.
6948 ac_i=`echo "$ac_i" |
6949 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6951 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6952 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6956 LTLIBOBJS=$ac_ltlibobjs
6960 : ${CONFIG_STATUS=./config.status}
6961 ac_clean_files_save=$ac_clean_files
6962 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6963 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6964 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6965 cat >$CONFIG_STATUS <<_ACEOF
6967 # Generated by $as_me.
6968 # Run this file to recreate the current configuration.
6969 # Compiler output produced by configure, useful for debugging
6970 # configure, is in config.log if it exists.
6975 SHELL=\${CONFIG_SHELL-$SHELL}
6978 cat >>$CONFIG_STATUS <<\_ACEOF
6979 ## --------------------- ##
6980 ## M4sh Initialization. ##
6981 ## --------------------- ##
6983 # Be Bourne compatible
6984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6987 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6988 # is contrary to our usage. Disable this feature.
6989 alias -g '${1+"$@"}'='"$@"'
6990 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6993 DUALCASE=1; export DUALCASE # for MKS sh
6995 # Support unset when possible.
6996 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7003 # Work around bugs in pre-3.0 UWIN ksh.
7004 $as_unset ENV MAIL MAILPATH
7011 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7012 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7013 LC_TELEPHONE LC_TIME
7015 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7016 eval $as_var=C; export $as_var
7022 # Required to use basename.
7023 if expr a : '\(a\)' >/dev/null 2>&1; then
7029 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7030 as_basename=basename
7036 # Name of the executable.
7037 as_me=`$as_basename "$0" ||
7038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7039 X"$0" : 'X\(//\)$' \| \
7040 X"$0" : 'X\(/\)$' \| \
7041 . : '\(.\)' 2>/dev/null ||
7043 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7044 /^X\/\(\/\/\)$/{ s//\1/; q; }
7045 /^X\/\(\/\).*/{ s//\1/; q; }
7049 # PATH needs CR, and LINENO needs CR and PATH.
7050 # Avoid depending upon Character Ranges.
7051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7054 as_cr_digits='0123456789'
7055 as_cr_alnum=$as_cr_Letters$as_cr_digits
7057 # The user is always right.
7058 if test "${PATH_SEPARATOR+set}" != set; then
7059 echo "#! /bin/sh" >conf$$.sh
7060 echo "exit 0" >>conf$$.sh
7062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7073 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7074 test "x$as_lineno_1" != "x$as_lineno_2" &&
7075 test "x$as_lineno_3" = "x$as_lineno_2" || {
7076 # Find who we are. Look in the path if we contain no path at all
7079 *[\\/]* ) as_myself=$0 ;;
7080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7090 # We did not find ourselves, most probably we were run as `sh COMMAND'
7091 # in which case we are not to be found in the path.
7092 if test "x$as_myself" = x; then
7095 if test ! -f "$as_myself"; then
7096 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7097 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7098 { (exit 1); exit 1; }; }
7100 case $CONFIG_SHELL in
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7106 test -z "$as_dir" && as_dir=.
7107 for as_base in sh bash ksh sh5; do
7110 if ("$as_dir/$as_base" -c '
7113 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7114 test "x$as_lineno_1" != "x$as_lineno_2" &&
7115 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7116 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7117 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7118 CONFIG_SHELL=$as_dir/$as_base
7120 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7128 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7129 # uniformly replaced by the line number. The first 'sed' inserts a
7130 # line-number line before each line; the second 'sed' does the real
7131 # work. The second script uses 'N' to pair each line-number line
7132 # with the numbered line, and appends trailing '-' during
7133 # substitution so that $LINENO is not a special case at line end.
7134 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7135 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7136 sed '=' <$as_myself |
7141 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7144 s,^['$as_cr_digits']*\n,,
7146 chmod +x $as_me.lineno ||
7147 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7148 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7149 { (exit 1); exit 1; }; }
7151 # Don't try to exec as it changes $[0], causing all sort of problems
7152 # (the dirname of $[0] is not the place where we might find the
7153 # original and so on. Autoconf is especially sensible to this).
7155 # Exit status is that of the last command.
7160 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7161 *c*,-n*) ECHO_N= ECHO_C='
7163 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7164 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7167 if expr a : '\(a\)' >/dev/null 2>&1; then
7173 rm -f conf$$ conf$$.exe conf$$.file
7175 if ln -s conf$$.file conf$$ 2>/dev/null; then
7176 # We could just check for DJGPP; but this test a) works b) is more generic
7177 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7178 if test -f conf$$.exe; then
7179 # Don't use ln at all; we don't have any links
7184 elif ln conf$$.file conf$$ 2>/dev/null; then
7189 rm -f conf$$ conf$$.exe conf$$.file
7191 if mkdir -p . 2>/dev/null; then
7194 test -d ./-p && rmdir ./-p
7198 as_executable_p="test -f"
7200 # Sed expression to map a string onto a valid CPP name.
7201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7203 # Sed expression to map a string onto a valid variable name.
7204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7208 # We need space, tab and new line, in precisely that order.
7218 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7219 # report actual input values of CONFIG_FILES etc. instead of their
7220 # values after options handling. Logging --version etc. is OK.
7224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7225 ## Running $as_me. ##
7230 This file was extended by cpplib $as_me , which was
7231 generated by GNU Autoconf 2.59. Invocation command line was
7233 CONFIG_FILES = $CONFIG_FILES
7234 CONFIG_HEADERS = $CONFIG_HEADERS
7235 CONFIG_LINKS = $CONFIG_LINKS
7236 CONFIG_COMMANDS = $CONFIG_COMMANDS
7240 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7244 # Files that config.status was made for.
7245 if test -n "$ac_config_files"; then
7246 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7249 if test -n "$ac_config_headers"; then
7250 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7253 if test -n "$ac_config_links"; then
7254 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7257 if test -n "$ac_config_commands"; then
7258 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7261 cat >>$CONFIG_STATUS <<\_ACEOF
7264 \`$as_me' instantiates files from templates according to the
7265 current configuration.
7267 Usage: $0 [OPTIONS] [FILE]...
7269 -h, --help print this help, then exit
7270 -V, --version print version number, then exit
7271 -q, --quiet do not print progress messages
7272 -d, --debug don't remove temporary files
7273 --recheck update $as_me by reconfiguring in the same conditions
7274 --file=FILE[:TEMPLATE]
7275 instantiate the configuration file FILE
7276 --header=FILE[:TEMPLATE]
7277 instantiate the configuration header FILE
7279 Configuration files:
7282 Configuration headers:
7285 Report bugs to <bug-autoconf@gnu.org>."
7288 cat >>$CONFIG_STATUS <<_ACEOF
7290 cpplib config.status
7291 configured by $0, generated by GNU Autoconf 2.59,
7292 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7294 Copyright (C) 2003 Free Software Foundation, Inc.
7295 This config.status script is free software; the Free Software Foundation
7296 gives unlimited permission to copy, distribute and modify it."
7301 cat >>$CONFIG_STATUS <<\_ACEOF
7302 # If no file are specified by the user, then we need to provide default
7303 # value. By we need to know if files were specified by the user.
7309 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7310 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7318 *) # This is not an option, so the user has probably given explicit
7321 ac_need_defaults=false;;
7325 # Handling of the options.
7327 cat >>$CONFIG_STATUS <<\_ACEOF
7328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7330 --version | --vers* | -V )
7331 echo "$ac_cs_version"; exit 0 ;;
7333 # Conflict between --help and --header
7334 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7335 Try \`$0 --help' for more information." >&5
7336 echo "$as_me: error: ambiguous option: $1
7337 Try \`$0 --help' for more information." >&2;}
7338 { (exit 1); exit 1; }; };;
7339 --help | --hel | -h )
7340 echo "$ac_cs_usage"; exit 0 ;;
7341 --debug | --d* | -d )
7343 --file | --fil | --fi | --f )
7345 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7346 ac_need_defaults=false;;
7347 --header | --heade | --head | --hea )
7349 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7350 ac_need_defaults=false;;
7351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7352 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7356 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7357 Try \`$0 --help' for more information." >&5
7358 echo "$as_me: error: unrecognized option: $1
7359 Try \`$0 --help' for more information." >&2;}
7360 { (exit 1); exit 1; }; } ;;
7362 *) ac_config_targets="$ac_config_targets $1" ;;
7368 ac_configure_extra_args=
7370 if $ac_cs_silent; then
7372 ac_configure_extra_args="$ac_configure_extra_args --silent"
7376 cat >>$CONFIG_STATUS <<_ACEOF
7377 if \$ac_cs_recheck; then
7378 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7379 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7388 cat >>$CONFIG_STATUS <<\_ACEOF
7389 for ac_config_target in $ac_config_targets
7391 case "$ac_config_target" in
7392 # Handling of arguments.
7393 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7394 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7395 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7396 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7397 { (exit 1); exit 1; }; };;
7401 # If the user did not use the arguments to specify the items to instantiate,
7402 # then the envvar interface is used. Set only those that are not.
7403 # We use the long form for the default assignment because of an extremely
7404 # bizarre bug on SunOS 4.1.3.
7405 if $ac_need_defaults; then
7406 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7407 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7410 # Have a temporary directory for convenience. Make it in the build tree
7411 # simply because there is no reason to put it here, and in addition,
7412 # creating and moving files from /tmp can sometimes cause problems.
7413 # Create a temporary directory, and hook for its removal unless debugging.
7416 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7417 trap '{ (exit 1); exit 1; }' 1 2 13 15
7420 # Create a (secure) tmp directory for tmp files.
7423 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7424 test -n "$tmp" && test -d "$tmp"
7427 tmp=./confstat$$-$RANDOM
7428 (umask 077 && mkdir $tmp)
7431 echo "$me: cannot create a temporary directory in ." >&2
7432 { (exit 1); exit 1; }
7437 cat >>$CONFIG_STATUS <<_ACEOF
7440 # CONFIG_FILES section.
7443 # No need to generate the scripts if there are no CONFIG_FILES.
7444 # This happens for instance when ./config.status config.h
7445 if test -n "\$CONFIG_FILES"; then
7446 # Protect against being on the right side of a sed subst in config.status.
7447 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7448 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7449 s,@SHELL@,$SHELL,;t t
7450 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7451 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7452 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7453 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7454 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7455 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7456 s,@exec_prefix@,$exec_prefix,;t t
7457 s,@prefix@,$prefix,;t t
7458 s,@program_transform_name@,$program_transform_name,;t t
7459 s,@bindir@,$bindir,;t t
7460 s,@sbindir@,$sbindir,;t t
7461 s,@libexecdir@,$libexecdir,;t t
7462 s,@datadir@,$datadir,;t t
7463 s,@sysconfdir@,$sysconfdir,;t t
7464 s,@sharedstatedir@,$sharedstatedir,;t t
7465 s,@localstatedir@,$localstatedir,;t t
7466 s,@libdir@,$libdir,;t t
7467 s,@includedir@,$includedir,;t t
7468 s,@oldincludedir@,$oldincludedir,;t t
7469 s,@infodir@,$infodir,;t t
7470 s,@mandir@,$mandir,;t t
7471 s,@build_alias@,$build_alias,;t t
7472 s,@host_alias@,$host_alias,;t t
7473 s,@target_alias@,$target_alias,;t t
7475 s,@ECHO_C@,$ECHO_C,;t t
7476 s,@ECHO_N@,$ECHO_N,;t t
7477 s,@ECHO_T@,$ECHO_T,;t t
7479 s,@build@,$build,;t t
7480 s,@build_cpu@,$build_cpu,;t t
7481 s,@build_vendor@,$build_vendor,;t t
7482 s,@build_os@,$build_os,;t t
7484 s,@host_cpu@,$host_cpu,;t t
7485 s,@host_vendor@,$host_vendor,;t t
7486 s,@host_os@,$host_os,;t t
7487 s,@target@,$target,;t t
7488 s,@target_cpu@,$target_cpu,;t t
7489 s,@target_vendor@,$target_vendor,;t t
7490 s,@target_os@,$target_os,;t t
7491 s,@SET_MAKE@,$SET_MAKE,;t t
7492 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7493 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7494 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7496 s,@CFLAGS@,$CFLAGS,;t t
7497 s,@LDFLAGS@,$LDFLAGS,;t t
7498 s,@CPPFLAGS@,$CPPFLAGS,;t t
7499 s,@ac_ct_CC@,$ac_ct_CC,;t t
7500 s,@EXEEXT@,$EXEEXT,;t t
7501 s,@OBJEXT@,$OBJEXT,;t t
7502 s,@RANLIB@,$RANLIB,;t t
7503 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7504 s,@ACLOCAL@,$ACLOCAL,;t t
7505 s,@AUTOCONF@,$AUTOCONF,;t t
7506 s,@AUTOHEADER@,$AUTOHEADER,;t t
7508 s,@EGREP@,$EGREP,;t t
7509 s,@LIBOBJS@,$LIBOBJS,;t t
7510 s,@ALLOCA@,$ALLOCA,;t t
7511 s,@USE_NLS@,$USE_NLS,;t t
7512 s,@LIBINTL@,$LIBINTL,;t t
7513 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7514 s,@INCINTL@,$INCINTL,;t t
7515 s,@XGETTEXT@,$XGETTEXT,;t t
7516 s,@GMSGFMT@,$GMSGFMT,;t t
7517 s,@POSUB@,$POSUB,;t t
7518 s,@CATALOGS@,$CATALOGS,;t t
7519 s,@LIBICONV@,$LIBICONV,;t t
7520 s,@LTLIBICONV@,$LTLIBICONV,;t t
7521 s,@PACKAGE@,$PACKAGE,;t t
7522 s,@USED_CATALOGS@,$USED_CATALOGS,;t t
7523 s,@MAINT@,$MAINT,;t t
7524 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7529 cat >>$CONFIG_STATUS <<\_ACEOF
7530 # Split the substitutions into bite-sized pieces for seds with
7531 # small command number limits, like on Digital OSF/1 and HP-UX.
7533 ac_sed_frag=1 # Number of current file.
7534 ac_beg=1 # First line for current file.
7535 ac_end=$ac_max_sed_lines # Line after last line for current file.
7538 while $ac_more_lines; do
7539 if test $ac_beg -gt 1; then
7540 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7542 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7544 if test ! -s $tmp/subs.frag; then
7547 # The purpose of the label and of the branching condition is to
7548 # speed up the sed processing (if there are no `@' at all, there
7549 # is no need to browse any of the substitutions).
7550 # These are the two extra sed commands mentioned above.
7552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7553 if test -z "$ac_sed_cmds"; then
7554 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7556 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7558 ac_sed_frag=`expr $ac_sed_frag + 1`
7560 ac_end=`expr $ac_end + $ac_max_sed_lines`
7563 if test -z "$ac_sed_cmds"; then
7566 fi # test -n "$CONFIG_FILES"
7569 cat >>$CONFIG_STATUS <<\_ACEOF
7570 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7573 - | *:- | *:-:* ) # input from stdin
7575 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7577 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7579 * ) ac_file_in=$ac_file.in ;;
7582 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7583 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7585 X"$ac_file" : 'X\(//\)[^/]' \| \
7586 X"$ac_file" : 'X\(//\)$' \| \
7587 X"$ac_file" : 'X\(/\)' \| \
7588 . : '\(.\)' 2>/dev/null ||
7590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7592 /^X\(\/\/\)$/{ s//\1/; q; }
7593 /^X\(\/\).*/{ s//\1/; q; }
7595 { if $as_mkdir_p; then
7600 while test ! -d "$as_dir"; do
7601 as_dirs="$as_dir $as_dirs"
7602 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7604 X"$as_dir" : 'X\(//\)[^/]' \| \
7605 X"$as_dir" : 'X\(//\)$' \| \
7606 X"$as_dir" : 'X\(/\)' \| \
7607 . : '\(.\)' 2>/dev/null ||
7609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7611 /^X\(\/\/\)$/{ s//\1/; q; }
7612 /^X\(\/\).*/{ s//\1/; q; }
7615 test ! -n "$as_dirs" || mkdir $as_dirs
7616 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7618 { (exit 1); exit 1; }; }; }
7622 if test "$ac_dir" != .; then
7623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7624 # A "../" for each directory in $ac_dir_suffix.
7625 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7627 ac_dir_suffix= ac_top_builddir=
7631 .) # No --srcdir option. We are building in place.
7633 if test -z "$ac_top_builddir"; then
7636 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7638 [\\/]* | ?:[\\/]* ) # Absolute path.
7639 ac_srcdir=$srcdir$ac_dir_suffix;
7640 ac_top_srcdir=$srcdir ;;
7642 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7643 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7646 # Do not use `cd foo && pwd` to compute absolute paths, because
7647 # the directories may not exist.
7649 .) ac_abs_builddir="$ac_dir";;
7652 .) ac_abs_builddir=`pwd`;;
7653 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7654 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7657 case $ac_abs_builddir in
7658 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7660 case ${ac_top_builddir}. in
7661 .) ac_abs_top_builddir=$ac_abs_builddir;;
7662 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7663 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7666 case $ac_abs_builddir in
7667 .) ac_abs_srcdir=$ac_srcdir;;
7670 .) ac_abs_srcdir=$ac_abs_builddir;;
7671 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7672 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7675 case $ac_abs_builddir in
7676 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7678 case $ac_top_srcdir in
7679 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7680 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7681 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7687 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7688 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7691 # Let's still pretend it is `configure' which instantiates (i.e., don't
7692 # use $as_me), people would be surprised to read:
7693 # /* config.h. Generated by config.status. */
7694 if test x"$ac_file" = x-; then
7697 configure_input="$ac_file. "
7699 configure_input=$configure_input"Generated from `echo $ac_file_in |
7700 sed 's,.*/,,'` by configure."
7702 # First look for the input files in the build tree, otherwise in the
7704 ac_file_inputs=`IFS=:
7705 for f in $ac_file_in; do
7707 -) echo $tmp/stdin ;;
7709 # Absolute (can't be DOS-style, as IFS=:)
7710 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7711 echo "$as_me: error: cannot find input file: $f" >&2;}
7712 { (exit 1); exit 1; }; }
7715 if test -f "$f"; then
7718 elif test -f "$srcdir/$f"; then
7723 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7724 echo "$as_me: error: cannot find input file: $f" >&2;}
7725 { (exit 1); exit 1; }; }
7728 done` || { (exit 1); exit 1; }
7730 if test x"$ac_file" != x-; then
7731 { echo "$as_me:$LINENO: creating $ac_file" >&5
7732 echo "$as_me: creating $ac_file" >&6;}
7736 cat >>$CONFIG_STATUS <<_ACEOF
7740 cat >>$CONFIG_STATUS <<\_ACEOF
7742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7743 s,@configure_input@,$configure_input,;t t
7744 s,@srcdir@,$ac_srcdir,;t t
7745 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7746 s,@top_srcdir@,$ac_top_srcdir,;t t
7747 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7748 s,@builddir@,$ac_builddir,;t t
7749 s,@abs_builddir@,$ac_abs_builddir,;t t
7750 s,@top_builddir@,$ac_top_builddir,;t t
7751 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7752 s,@INSTALL@,$ac_INSTALL,;t t
7753 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7755 if test x"$ac_file" != x-; then
7756 mv $tmp/out $ac_file
7764 cat >>$CONFIG_STATUS <<\_ACEOF
7767 # CONFIG_HEADER section.
7770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7773 # ac_d sets the value in "#define NAME VALUE" lines.
7774 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7775 ac_dB='[ ].*$,\1#\2'
7778 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7779 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7780 ac_uB='$,\1#\2define\3'
7784 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7787 - | *:- | *:-:* ) # input from stdin
7789 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7791 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7793 * ) ac_file_in=$ac_file.in ;;
7796 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7797 echo "$as_me: creating $ac_file" >&6;}
7799 # First look for the input files in the build tree, otherwise in the
7801 ac_file_inputs=`IFS=:
7802 for f in $ac_file_in; do
7804 -) echo $tmp/stdin ;;
7806 # Absolute (can't be DOS-style, as IFS=:)
7807 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7808 echo "$as_me: error: cannot find input file: $f" >&2;}
7809 { (exit 1); exit 1; }; }
7810 # Do quote $f, to prevent DOS paths from being IFS'd.
7813 if test -f "$f"; then
7816 elif test -f "$srcdir/$f"; then
7821 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7822 echo "$as_me: error: cannot find input file: $f" >&2;}
7823 { (exit 1); exit 1; }; }
7826 done` || { (exit 1); exit 1; }
7827 # Remove the trailing spaces.
7828 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7832 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7833 # `conftest.undefs', that substitutes the proper values into
7834 # config.h.in to produce config.h. The first handles `#define'
7835 # templates, and the second `#undef' templates.
7836 # And first: Protect against being on the right side of a sed subst in
7837 # config.status. Protect against being in an unquoted here document
7839 rm -f conftest.defines conftest.undefs
7840 # Using a here document instead of a string reduces the quoting nightmare.
7841 # Putting comments in sed scripts is not portable.
7843 # `end' is used to avoid that the second main sed command (meant for
7844 # 0-ary CPP macros) applies to n-ary macro definitions.
7845 # See the Autoconf documentation for `clear'.
7846 cat >confdef2sed.sed <<\_ACEOF
7851 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7853 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7856 # If some macros were called several times there might be several times
7857 # the same #defines, which is useless. Nevertheless, we may not want to
7858 # sort them, since we want the *last* AC-DEFINE to be honored.
7859 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7860 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7861 rm -f confdef2sed.sed
7863 # This sed command replaces #undef with comments. This is necessary, for
7864 # example, in the case of _POSIX_SOURCE, which is predefined and required
7865 # on some systems where configure will not decide to define it.
7866 cat >>conftest.undefs <<\_ACEOF
7867 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7870 # Break up conftest.defines because some shells have a limit on the size
7871 # of here documents, and old seds have small limits too (100 cmds).
7872 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7873 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7874 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7875 echo ' :' >>$CONFIG_STATUS
7877 while grep . conftest.defines >/dev/null
7879 # Write a limited-size here document to $tmp/defines.sed.
7880 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7881 # Speed up: don't consider the non `#define' lines.
7882 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7883 # Work around the forget-to-reset-the-flag bug.
7884 echo 't clr' >>$CONFIG_STATUS
7885 echo ': clr' >>$CONFIG_STATUS
7886 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7888 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7892 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7893 rm -f conftest.defines
7894 mv conftest.tail conftest.defines
7896 rm -f conftest.defines
7897 echo ' fi # grep' >>$CONFIG_STATUS
7898 echo >>$CONFIG_STATUS
7900 # Break up conftest.undefs because some shells have a limit on the size
7901 # of here documents, and old seds have small limits too (100 cmds).
7902 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7904 while grep . conftest.undefs >/dev/null
7906 # Write a limited-size here document to $tmp/undefs.sed.
7907 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7908 # Speed up: don't consider the non `#undef'
7909 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7910 # Work around the forget-to-reset-the-flag bug.
7911 echo 't clr' >>$CONFIG_STATUS
7912 echo ': clr' >>$CONFIG_STATUS
7913 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7915 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7919 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7920 rm -f conftest.undefs
7921 mv conftest.tail conftest.undefs
7923 rm -f conftest.undefs
7925 cat >>$CONFIG_STATUS <<\_ACEOF
7926 # Let's still pretend it is `configure' which instantiates (i.e., don't
7927 # use $as_me), people would be surprised to read:
7928 # /* config.h. Generated by config.status. */
7929 if test x"$ac_file" = x-; then
7930 echo "/* Generated by configure. */" >$tmp/config.h
7932 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7934 cat $tmp/in >>$tmp/config.h
7936 if test x"$ac_file" != x-; then
7937 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7938 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7939 echo "$as_me: $ac_file is unchanged" >&6;}
7941 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7943 X"$ac_file" : 'X\(//\)[^/]' \| \
7944 X"$ac_file" : 'X\(//\)$' \| \
7945 X"$ac_file" : 'X\(/\)' \| \
7946 . : '\(.\)' 2>/dev/null ||
7948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7950 /^X\(\/\/\)$/{ s//\1/; q; }
7951 /^X\(\/\).*/{ s//\1/; q; }
7953 { if $as_mkdir_p; then
7958 while test ! -d "$as_dir"; do
7959 as_dirs="$as_dir $as_dirs"
7960 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7962 X"$as_dir" : 'X\(//\)[^/]' \| \
7963 X"$as_dir" : 'X\(//\)$' \| \
7964 X"$as_dir" : 'X\(/\)' \| \
7965 . : '\(.\)' 2>/dev/null ||
7967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7969 /^X\(\/\/\)$/{ s//\1/; q; }
7970 /^X\(\/\).*/{ s//\1/; q; }
7973 test ! -n "$as_dirs" || mkdir $as_dirs
7974 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7976 { (exit 1); exit 1; }; }; }
7979 mv $tmp/config.h $ac_file
7985 # Run the commands associated with the file.
7987 config.h ) echo timestamp > stamp-h1 ;;
7992 cat >>$CONFIG_STATUS <<\_ACEOF
7994 { (exit 0); exit 0; }
7996 chmod +x $CONFIG_STATUS
7997 ac_clean_files=$ac_clean_files_save
8000 # configure is writing to config.log, and then calls config.status.
8001 # config.status does its own redirection, appending to config.log.
8002 # Unfortunately, on DOS this fails, as config.log is still kept open
8003 # by configure, so config.status won't be able to write to it; its
8004 # output is simply discarded. So we exec the FD to /dev/null,
8005 # effectively closing config.log, so it can be properly (re)opened and
8006 # appended to by config.status. When coming back to configure, we
8007 # need to make the FD available again.
8008 if test "$no_create" != yes; then
8010 ac_config_status_args=
8011 test "$silent" = yes &&
8012 ac_config_status_args="$ac_config_status_args --quiet"
8014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8017 # would make configure fail if this is the last instruction.
8018 $ac_cs_success || { (exit 1); exit 1; }