2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="Makefile.in"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
658 sdccconf_h_dir_separator
663 ac_precious_vars='build_alias
671 sdccconf_h_dir_separator
675 # Initialize some variables set by options.
677 ac_init_version=false
678 # The variables have the same names as the options, with
679 # dashes changed to underlines.
687 program_transform_name=s,x,x,
695 # Installation directory options.
696 # These are left unexpanded so users can "make install exec_prefix=/foo"
697 # and all the variables that are supposed to be based on exec_prefix
698 # by default will actually change.
699 # Use braces instead of parens because sh, perl, etc. also accept them.
700 # (The list follows the same order as the GNU Coding Standards.)
701 bindir='${exec_prefix}/bin'
702 sbindir='${exec_prefix}/sbin'
703 libexecdir='${exec_prefix}/libexec'
704 datarootdir='${prefix}/share'
705 datadir='${datarootdir}'
706 sysconfdir='${prefix}/etc'
707 sharedstatedir='${prefix}/com'
708 localstatedir='${prefix}/var'
709 includedir='${prefix}/include'
710 oldincludedir='/usr/include'
711 docdir='${datarootdir}/doc/${PACKAGE}'
712 infodir='${datarootdir}/info'
717 libdir='${exec_prefix}/lib'
718 localedir='${datarootdir}/locale'
719 mandir='${datarootdir}/man'
725 # If the previous option needs an argument, assign it.
726 if test -n "$ac_prev"; then
727 eval $ac_prev=\$ac_option
733 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
737 # Accept the important Cygnus configure options, so we can diagnose typos.
739 case $ac_dashdash$ac_option in
743 -bindir | --bindir | --bindi | --bind | --bin | --bi)
745 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
748 -build | --build | --buil | --bui | --bu)
749 ac_prev=build_alias ;;
750 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
751 build_alias=$ac_optarg ;;
753 -cache-file | --cache-file | --cache-fil | --cache-fi \
754 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
755 ac_prev=cache_file ;;
756 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
757 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
758 cache_file=$ac_optarg ;;
761 cache_file=config.cache ;;
763 -datadir | --datadir | --datadi | --datad)
765 -datadir=* | --datadir=* | --datadi=* | --datad=*)
766 datadir=$ac_optarg ;;
768 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
769 | --dataroo | --dataro | --datar)
770 ac_prev=datarootdir ;;
771 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
772 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
773 datarootdir=$ac_optarg ;;
775 -disable-* | --disable-*)
776 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
780 { (exit 1); exit 1; }; }
781 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
782 eval enable_$ac_feature=no ;;
784 -docdir | --docdir | --docdi | --doc | --do)
786 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
789 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
791 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
794 -enable-* | --enable-*)
795 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
798 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
799 { (exit 1); exit 1; }; }
800 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
801 eval enable_$ac_feature=\$ac_optarg ;;
803 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
804 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
805 | --exec | --exe | --ex)
806 ac_prev=exec_prefix ;;
807 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
808 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
809 | --exec=* | --exe=* | --ex=*)
810 exec_prefix=$ac_optarg ;;
812 -gas | --gas | --ga | --g)
813 # Obsolete; use --with-gas.
816 -help | --help | --hel | --he | -h)
818 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
819 ac_init_help=recursive ;;
820 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
821 ac_init_help=short ;;
823 -host | --host | --hos | --ho)
824 ac_prev=host_alias ;;
825 -host=* | --host=* | --hos=* | --ho=*)
826 host_alias=$ac_optarg ;;
828 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
830 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
832 htmldir=$ac_optarg ;;
834 -includedir | --includedir | --includedi | --included | --include \
835 | --includ | --inclu | --incl | --inc)
836 ac_prev=includedir ;;
837 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
838 | --includ=* | --inclu=* | --incl=* | --inc=*)
839 includedir=$ac_optarg ;;
841 -infodir | --infodir | --infodi | --infod | --info | --inf)
843 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
844 infodir=$ac_optarg ;;
846 -libdir | --libdir | --libdi | --libd)
848 -libdir=* | --libdir=* | --libdi=* | --libd=*)
851 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
852 | --libexe | --libex | --libe)
853 ac_prev=libexecdir ;;
854 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
855 | --libexe=* | --libex=* | --libe=*)
856 libexecdir=$ac_optarg ;;
858 -localedir | --localedir | --localedi | --localed | --locale)
860 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
861 localedir=$ac_optarg ;;
863 -localstatedir | --localstatedir | --localstatedi | --localstated \
864 | --localstate | --localstat | --localsta | --localst | --locals)
865 ac_prev=localstatedir ;;
866 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
867 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
868 localstatedir=$ac_optarg ;;
870 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
872 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
876 # Obsolete; use --without-fp.
879 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
880 | --no-cr | --no-c | -n)
883 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
884 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
887 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
888 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
889 | --oldin | --oldi | --old | --ol | --o)
890 ac_prev=oldincludedir ;;
891 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
892 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
893 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
894 oldincludedir=$ac_optarg ;;
896 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
898 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
901 -program-prefix | --program-prefix | --program-prefi | --program-pref \
902 | --program-pre | --program-pr | --program-p)
903 ac_prev=program_prefix ;;
904 -program-prefix=* | --program-prefix=* | --program-prefi=* \
905 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
906 program_prefix=$ac_optarg ;;
908 -program-suffix | --program-suffix | --program-suffi | --program-suff \
909 | --program-suf | --program-su | --program-s)
910 ac_prev=program_suffix ;;
911 -program-suffix=* | --program-suffix=* | --program-suffi=* \
912 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
913 program_suffix=$ac_optarg ;;
915 -program-transform-name | --program-transform-name \
916 | --program-transform-nam | --program-transform-na \
917 | --program-transform-n | --program-transform- \
918 | --program-transform | --program-transfor \
919 | --program-transfo | --program-transf \
920 | --program-trans | --program-tran \
921 | --progr-tra | --program-tr | --program-t)
922 ac_prev=program_transform_name ;;
923 -program-transform-name=* | --program-transform-name=* \
924 | --program-transform-nam=* | --program-transform-na=* \
925 | --program-transform-n=* | --program-transform-=* \
926 | --program-transform=* | --program-transfor=* \
927 | --program-transfo=* | --program-transf=* \
928 | --program-trans=* | --program-tran=* \
929 | --progr-tra=* | --program-tr=* | --program-t=*)
930 program_transform_name=$ac_optarg ;;
932 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
934 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
937 -psdir | --psdir | --psdi | --psd | --ps)
939 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
943 | -silent | --silent | --silen | --sile | --sil)
946 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
948 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
950 sbindir=$ac_optarg ;;
952 -sharedstatedir | --sharedstatedir | --sharedstatedi \
953 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
954 | --sharedst | --shareds | --shared | --share | --shar \
956 ac_prev=sharedstatedir ;;
957 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
958 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
959 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
961 sharedstatedir=$ac_optarg ;;
963 -site | --site | --sit)
965 -site=* | --site=* | --sit=*)
968 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
970 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
973 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
974 | --syscon | --sysco | --sysc | --sys | --sy)
975 ac_prev=sysconfdir ;;
976 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
977 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
978 sysconfdir=$ac_optarg ;;
980 -target | --target | --targe | --targ | --tar | --ta | --t)
981 ac_prev=target_alias ;;
982 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
983 target_alias=$ac_optarg ;;
985 -v | -verbose | --verbose | --verbos | --verbo | --verb)
988 -version | --version | --versio | --versi | --vers | -V)
992 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid package name: $ac_package" >&2
996 { (exit 1); exit 1; }; }
997 ac_package=`echo $ac_package| sed 's/-/_/g'`
998 eval with_$ac_package=\$ac_optarg ;;
1000 -without-* | --without-*)
1001 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1004 { echo "$as_me: error: invalid package name: $ac_package" >&2
1005 { (exit 1); exit 1; }; }
1006 ac_package=`echo $ac_package | sed 's/-/_/g'`
1007 eval with_$ac_package=no ;;
1010 # Obsolete; use --with-x.
1013 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1014 | --x-incl | --x-inc | --x-in | --x-i)
1015 ac_prev=x_includes ;;
1016 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1017 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1018 x_includes=$ac_optarg ;;
1020 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1021 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1022 ac_prev=x_libraries ;;
1023 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1024 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1025 x_libraries=$ac_optarg ;;
1027 -*) { echo "$as_me: error: unrecognized option: $ac_option
1028 Try \`$0 --help' for more information." >&2
1029 { (exit 1); exit 1; }; }
1033 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1037 { (exit 1); exit 1; }; }
1038 eval $ac_envvar=\$ac_optarg
1039 export $ac_envvar ;;
1042 # FIXME: should be removed in autoconf 3.0.
1043 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1044 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1046 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1052 if test -n "$ac_prev"; then
1053 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1054 { echo "$as_me: error: missing argument to $ac_option" >&2
1055 { (exit 1); exit 1; }; }
1058 # Be sure to have absolute directory names.
1059 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1060 datadir sysconfdir sharedstatedir localstatedir includedir \
1061 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1062 libdir localedir mandir
1064 eval ac_val=\$$ac_var
1066 [\\/$]* | ?:[\\/]* ) continue;;
1067 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1069 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1070 { (exit 1); exit 1; }; }
1073 # There might be people who depend on the old broken behavior: `$host'
1074 # used to hold the argument of --host etc.
1075 # FIXME: To remove some day.
1078 target=$target_alias
1080 # FIXME: To remove some day.
1081 if test "x$host_alias" != x; then
1082 if test "x$build_alias" = x; then
1083 cross_compiling=maybe
1084 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1085 If a cross compiler is detected then cross compile mode will be used." >&2
1086 elif test "x$build_alias" != "x$host_alias"; then
1092 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1094 test "$silent" = yes && exec 6>/dev/null
1097 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1098 ac_ls_di=`ls -di .` &&
1099 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1100 { echo "$as_me: error: Working directory cannot be determined" >&2
1101 { (exit 1); exit 1; }; }
1102 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1103 { echo "$as_me: error: pwd does not report name of working directory" >&2
1104 { (exit 1); exit 1; }; }
1107 # Find the source files, if location was not specified.
1108 if test -z "$srcdir"; then
1109 ac_srcdir_defaulted=yes
1110 # Try the directory containing this script, then the parent directory.
1111 ac_confdir=`$as_dirname -- "$0" ||
1112 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1113 X"$0" : 'X\(//\)[^/]' \| \
1114 X"$0" : 'X\(//\)$' \| \
1115 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1135 if test ! -r "$srcdir/$ac_unique_file"; then
1139 ac_srcdir_defaulted=no
1141 if test ! -r "$srcdir/$ac_unique_file"; then
1142 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1143 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1144 { (exit 1); exit 1; }; }
1146 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1148 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1149 { (exit 1); exit 1; }; }
1151 # When building in place, set srcdir=.
1152 if test "$ac_abs_confdir" = "$ac_pwd"; then
1155 # Remove unnecessary trailing slashes from srcdir.
1156 # Double slashes in file names in object file debugging info
1157 # mess up M-x gdb in Emacs.
1159 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1161 for ac_var in $ac_precious_vars; do
1162 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1163 eval ac_env_${ac_var}_value=\$${ac_var}
1164 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1165 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1169 # Report the --help message.
1171 if test "$ac_init_help" = "long"; then
1172 # Omit some internal or obsolete options to make the list less imposing.
1173 # This message is too long to be a string in the A/UX 3.1 sh.
1175 \`configure' configures this package to adapt to many kinds of systems.
1177 Usage: $0 [OPTION]... [VAR=VALUE]...
1179 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1180 VAR=VALUE. See below for descriptions of some of the useful variables.
1182 Defaults for the options are specified in brackets.
1185 -h, --help display this help and exit
1186 --help=short display options specific to this package
1187 --help=recursive display the short help of all the included packages
1188 -V, --version display version information and exit
1189 -q, --quiet, --silent do not print \`checking...' messages
1190 --cache-file=FILE cache test results in FILE [disabled]
1191 -C, --config-cache alias for \`--cache-file=config.cache'
1192 -n, --no-create do not create output files
1193 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1195 Installation directories:
1196 --prefix=PREFIX install architecture-independent files in PREFIX
1197 [$ac_default_prefix]
1198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1201 By default, \`make install' will install all the files in
1202 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1203 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1204 for instance \`--prefix=\$HOME'.
1206 For better control, use the options below.
1208 Fine tuning of the installation directories:
1209 --bindir=DIR user executables [EPREFIX/bin]
1210 --sbindir=DIR system admin executables [EPREFIX/sbin]
1211 --libexecdir=DIR program executables [EPREFIX/libexec]
1212 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1213 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1214 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1215 --libdir=DIR object code libraries [EPREFIX/lib]
1216 --includedir=DIR C header files [PREFIX/include]
1217 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1218 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1219 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1220 --infodir=DIR info documentation [DATAROOTDIR/info]
1221 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1222 --mandir=DIR man documentation [DATAROOTDIR/man]
1223 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1224 --htmldir=DIR html documentation [DOCDIR]
1225 --dvidir=DIR dvi documentation [DOCDIR]
1226 --pdfdir=DIR pdf documentation [DOCDIR]
1227 --psdir=DIR ps documentation [DOCDIR]
1234 if test -n "$ac_init_help"; then
1238 Some influential environment variables:
1239 CC C compiler command
1240 CFLAGS C compiler flags
1241 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1242 nonstandard directory <lib dir>
1243 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1244 you have headers in a nonstandard directory <include dir>
1246 sdccconf_h_dir_separator
1247 needed in sdccconf.h: either "/" (default) or "\\"
1249 appended to datadir to define SDCC's library root directory
1251 Use these variables to override the choices made by `configure' or to help
1252 it to find libraries and programs with nonstandard names/locations.
1258 if test "$ac_init_help" = "recursive"; then
1259 # If there are subdirs, report their specific --help.
1260 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1261 test -d "$ac_dir" || continue
1265 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1267 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1268 # A ".." for each directory in $ac_dir_suffix.
1269 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1270 case $ac_top_builddir_sub in
1271 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1272 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1275 ac_abs_top_builddir=$ac_pwd
1276 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1277 # for backward compatibility:
1278 ac_top_builddir=$ac_top_build_prefix
1281 .) # We are building in place.
1283 ac_top_srcdir=$ac_top_builddir_sub
1284 ac_abs_top_srcdir=$ac_pwd ;;
1285 [\\/]* | ?:[\\/]* ) # Absolute name.
1286 ac_srcdir=$srcdir$ac_dir_suffix;
1287 ac_top_srcdir=$srcdir
1288 ac_abs_top_srcdir=$srcdir ;;
1290 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1291 ac_top_srcdir=$ac_top_build_prefix$srcdir
1292 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1294 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1296 cd "$ac_dir" || { ac_status=$?; continue; }
1297 # Check for guested configure.
1298 if test -f "$ac_srcdir/configure.gnu"; then
1300 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1301 elif test -f "$ac_srcdir/configure"; then
1303 $SHELL "$ac_srcdir/configure" --help=recursive
1305 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1307 cd "$ac_pwd" || { ac_status=$?; break; }
1311 test -n "$ac_init_help" && exit $ac_status
1312 if $ac_init_version; then
1315 generated by GNU Autoconf 2.60
1317 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1318 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1319 This configure script is free software; the Free Software Foundation
1320 gives unlimited permission to copy, distribute and modify it.
1324 cat >config.log <<_ACEOF
1325 This file contains any messages produced by compilers while
1326 running configure, to aid debugging if configure makes a mistake.
1328 It was created by $as_me, which was
1329 generated by GNU Autoconf 2.60. Invocation command line was
1341 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1342 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1343 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1344 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1345 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1347 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1348 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1350 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1351 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1352 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1353 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1354 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1355 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1356 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 test -z "$as_dir" && as_dir=.
1365 echo "PATH: $as_dir"
1381 # Keep a trace of the command line.
1382 # Strip out --no-create and --no-recursion so they do not pile up.
1383 # Strip out --silent because we don't want to record it for future runs.
1384 # Also quote any args containing shell meta-characters.
1385 # Make two passes to allow for proper duplicate-argument suppression.
1389 ac_must_keep_next=false
1395 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1397 | -silent | --silent | --silen | --sile | --sil)
1400 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1403 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1405 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1406 if test $ac_must_keep_next = true; then
1407 ac_must_keep_next=false # Got value, back to normal.
1410 *=* | --config-cache | -C | -disable-* | --disable-* \
1411 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1412 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1413 | -with-* | --with-* | -without-* | --without-* | --x)
1414 case "$ac_configure_args0 " in
1415 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1418 -* ) ac_must_keep_next=true ;;
1421 ac_configure_args="$ac_configure_args '$ac_arg'"
1426 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1427 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1429 # When interrupted or exit'd, cleanup temporary files, and complete
1430 # config.log. We remove comments because anyway the quotes in there
1431 # would cause problems or look ugly.
1432 # WARNING: Use '\'' to represent an apostrophe within the trap.
1433 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1434 trap 'exit_status=$?
1435 # Save into config.log some information that might help in debugging.
1440 ## ---------------- ##
1441 ## Cache variables. ##
1442 ## ---------------- ##
1445 # The following way of writing the cache mishandles newlines in values,
1447 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1448 eval ac_val=\$$ac_var
1452 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1453 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1456 _ | IFS | as_nl) ;; #(
1457 *) $as_unset $ac_var ;;
1462 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1463 *${as_nl}ac_space=\ *)
1465 "s/'\''/'\''\\\\'\'''\''/g;
1466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1477 ## ----------------- ##
1478 ## Output variables. ##
1479 ## ----------------- ##
1482 for ac_var in $ac_subst_vars
1484 eval ac_val=\$$ac_var
1486 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1488 echo "$ac_var='\''$ac_val'\''"
1492 if test -n "$ac_subst_files"; then
1494 ## ------------------- ##
1495 ## File substitutions. ##
1496 ## ------------------- ##
1499 for ac_var in $ac_subst_files
1501 eval ac_val=\$$ac_var
1503 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1505 echo "$ac_var='\''$ac_val'\''"
1510 if test -s confdefs.h; then
1520 test "$ac_signal" != 0 &&
1521 echo "$as_me: caught signal $ac_signal"
1522 echo "$as_me: exit $exit_status"
1524 rm -f core *.core core.conftest.* &&
1525 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1528 for ac_signal in 1 2 13 15; do
1529 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1534 rm -f -r conftest* confdefs.h
1536 # Predefined preprocessor variables.
1538 cat >>confdefs.h <<_ACEOF
1539 #define PACKAGE_NAME "$PACKAGE_NAME"
1543 cat >>confdefs.h <<_ACEOF
1544 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1548 cat >>confdefs.h <<_ACEOF
1549 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE_STRING "$PACKAGE_STRING"
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1563 # Let the site file select an alternate cache file if it wants to.
1564 # Prefer explicitly selected file to automatically selected ones.
1565 if test -n "$CONFIG_SITE"; then
1566 set x "$CONFIG_SITE"
1567 elif test "x$prefix" != xNONE; then
1568 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1570 set x "$ac_default_prefix/share/config.site" \
1571 "$ac_default_prefix/etc/config.site"
1576 if test -r "$ac_site_file"; then
1577 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1578 echo "$as_me: loading site script $ac_site_file" >&6;}
1579 sed 's/^/| /' "$ac_site_file" >&5
1584 if test -r "$cache_file"; then
1585 # Some versions of bash will fail to source /dev/null (special
1586 # files actually), so we avoid doing that.
1587 if test -f "$cache_file"; then
1588 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1589 echo "$as_me: loading cache $cache_file" >&6;}
1591 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1592 *) . "./$cache_file";;
1596 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1597 echo "$as_me: creating cache $cache_file" >&6;}
1601 # Check that the precious variables saved in the cache have kept the same
1603 ac_cache_corrupted=false
1604 for ac_var in $ac_precious_vars; do
1605 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1606 eval ac_new_set=\$ac_env_${ac_var}_set
1607 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1608 eval ac_new_val=\$ac_env_${ac_var}_value
1609 case $ac_old_set,$ac_new_set in
1611 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1612 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1613 ac_cache_corrupted=: ;;
1615 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1616 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1617 ac_cache_corrupted=: ;;
1620 if test "x$ac_old_val" != "x$ac_new_val"; then
1621 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1622 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1623 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1624 echo "$as_me: former value: $ac_old_val" >&2;}
1625 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1626 echo "$as_me: current value: $ac_new_val" >&2;}
1627 ac_cache_corrupted=:
1630 # Pass precious variables to config.status.
1631 if test "$ac_new_set" = set; then
1633 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1634 *) ac_arg=$ac_var=$ac_new_val ;;
1636 case " $ac_configure_args " in
1637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1638 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1642 if $ac_cache_corrupted; then
1643 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1644 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1645 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1646 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1647 { (exit 1); exit 1; }; }
1667 ac_cpp='$CPP $CPPFLAGS'
1668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1674 ac_config_headers="$ac_config_headers config.h"
1679 ac_cpp='$CPP $CPPFLAGS'
1680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1683 if test -n "$ac_tool_prefix"; then
1684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 if test -n "$CC"; then
1713 { echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6; }
1716 { echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6; }
1722 if test -z "$ac_cv_prog_CC"; then
1724 # Extract the first word of "gcc", so it can be a program name with args.
1725 set dummy gcc; ac_word=$2
1726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1741 ac_cv_prog_ac_ct_CC="gcc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752 if test -n "$ac_ct_CC"; then
1753 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754 echo "${ECHO_T}$ac_ct_CC" >&6; }
1756 { echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6; }
1760 if test "x$ac_ct_CC" = x; then
1763 case $cross_compiling:$ac_tool_warned in
1765 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1766 whose name does not start with the host triplet. If you think this
1767 configuration is useful to you, please write to autoconf@gnu.org." >&5
1768 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1769 whose name does not start with the host triplet. If you think this
1770 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1771 ac_tool_warned=yes ;;
1779 if test -z "$CC"; then
1780 if test -n "$ac_tool_prefix"; then
1781 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1782 set dummy ${ac_tool_prefix}cc; ac_word=$2
1783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1785 if test "${ac_cv_prog_CC+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 if test -n "$CC"; then
1789 ac_cv_prog_CC="$CC" # Let the user override the test.
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 test -z "$as_dir" && as_dir=.
1796 for ac_exec_ext in '' $ac_executable_extensions; do
1797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1798 ac_cv_prog_CC="${ac_tool_prefix}cc"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 if test -n "$CC"; then
1810 { echo "$as_me:$LINENO: result: $CC" >&5
1811 echo "${ECHO_T}$CC" >&6; }
1813 { echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6; }
1820 if test -z "$CC"; then
1821 # Extract the first word of "cc", so it can be a program name with args.
1822 set dummy cc; ac_word=$2
1823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1840 ac_prog_rejected=yes
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 if test $ac_prog_rejected = yes; then
1852 # We found a bogon in the path, so make sure we never use it.
1853 set dummy $ac_cv_prog_CC
1855 if test $# != 0; then
1856 # We chose a different compiler from the bogus one.
1857 # However, it has the same basename, so the bogon will be chosen
1858 # first if we set CC to just the basename; use the full file name.
1860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1866 if test -n "$CC"; then
1867 { echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6; }
1870 { echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6; }
1876 if test -z "$CC"; then
1877 if test -n "$ac_tool_prefix"; then
1878 for ac_prog in cl.exe
1880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1884 if test "${ac_cv_prog_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$CC"; then
1888 ac_cv_prog_CC="$CC" # Let the user override the test.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$CC"; then
1909 { echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6; }
1912 { echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6; }
1917 test -n "$CC" && break
1920 if test -z "$CC"; then
1922 for ac_prog in cl.exe
1924 # Extract the first word of "$ac_prog", so it can be a program name with args.
1925 set dummy $ac_prog; ac_word=$2
1926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 if test -n "$ac_ct_CC"; then
1932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1941 ac_cv_prog_ac_ct_CC="$ac_prog"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 echo "${ECHO_T}$ac_ct_CC" >&6; }
1956 { echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6; }
1961 test -n "$ac_ct_CC" && break
1964 if test "x$ac_ct_CC" = x; then
1967 case $cross_compiling:$ac_tool_warned in
1969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1970 whose name does not start with the host triplet. If you think this
1971 configuration is useful to you, please write to autoconf@gnu.org." >&5
1972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1973 whose name does not start with the host triplet. If you think this
1974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1975 ac_tool_warned=yes ;;
1984 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1985 See \`config.log' for more details." >&5
1986 echo "$as_me: error: no acceptable C compiler found in \$PATH
1987 See \`config.log' for more details." >&2;}
1988 { (exit 1); exit 1; }; }
1990 # Provide some information about the compiler.
1991 echo "$as_me:$LINENO: checking for C compiler version" >&5
1992 ac_compiler=`set X $ac_compile; echo $2`
1993 { (ac_try="$ac_compiler --version >&5"
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1999 (eval "$ac_compiler --version >&5") 2>&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2003 { (ac_try="$ac_compiler -v >&5"
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2009 (eval "$ac_compiler -v >&5") 2>&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2013 { (ac_try="$ac_compiler -V >&5"
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2019 (eval "$ac_compiler -V >&5") 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }
2024 cat >conftest.$ac_ext <<_ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h. */
2039 ac_clean_files_save=$ac_clean_files
2040 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2041 # Try to create an executable without -o first, disregard a.out.
2042 # It will help us diagnose broken compilers, and finding out an intuition
2044 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2045 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2046 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2048 # List of possible output files, starting from the most likely.
2049 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2050 # only as a last resort. b.out is created by i960 compilers.
2051 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2053 # The IRIX 6 linker writes into existing files which may not be
2054 # executable, retaining their permissions. Remove them first so a
2055 # subsequent execution test works.
2057 for ac_file in $ac_files
2060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2061 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2066 if { (ac_try="$ac_link_default"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2072 (eval "$ac_link_default") 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; then
2076 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2077 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2078 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2079 # so that the user can short-circuit this test for compilers unknown to
2081 for ac_file in $ac_files
2083 test -f "$ac_file" || continue
2085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2088 # We found the default executable, but exeext='' is most
2092 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2094 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 # We set ac_cv_exeext here because the later test for it is not
2097 # safe: cross compilers may not add the suffix if given an `-o'
2098 # argument, so we may need to know it at that point already.
2099 # Even if this section looks crufty: it has the advantage of
2106 test "$ac_cv_exeext" = no && ac_cv_exeext=
2109 echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2112 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: C compiler cannot create executables
2115 See \`config.log' for more details." >&2;}
2116 { (exit 77); exit 77; }; }
2119 ac_exeext=$ac_cv_exeext
2120 { echo "$as_me:$LINENO: result: $ac_file" >&5
2121 echo "${ECHO_T}$ac_file" >&6; }
2123 # Check that the compiler produces executables we can run. If not, either
2124 # the compiler is broken, or we cross compile.
2125 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2126 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2128 # If not cross compiling, check that we can run a simple program.
2129 if test "$cross_compiling" != yes; then
2130 if { ac_try='./$ac_file'
2131 { (case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_try") 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; }; then
2142 if test "$cross_compiling" = maybe; then
2145 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2146 If you meant to cross compile, use \`--host'.
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot run C compiled programs.
2149 If you meant to cross compile, use \`--host'.
2150 See \`config.log' for more details." >&2;}
2151 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: yes" >&5
2156 echo "${ECHO_T}yes" >&6; }
2158 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2159 ac_clean_files=$ac_clean_files_save
2160 # Check that the compiler produces executables we can run. If not, either
2161 # the compiler is broken, or we cross compile.
2162 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2163 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2164 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2165 echo "${ECHO_T}$cross_compiling" >&6; }
2167 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2168 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2169 if { (ac_try="$ac_link"
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2175 (eval "$ac_link") 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2181 # work properly (i.e., refer to `conftest.exe'), while it won't with
2183 for ac_file in conftest.exe conftest conftest.*; do
2184 test -f "$ac_file" || continue
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2200 rm -f conftest$ac_cv_exeext
2201 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2202 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2204 rm -f conftest.$ac_ext
2205 EXEEXT=$ac_cv_exeext
2207 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2208 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2209 if test "${ac_cv_objext+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.$ac_ext <<_ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2227 rm -f conftest.o conftest.obj
2228 if { (ac_try="$ac_compile"
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234 (eval "$ac_compile") 2>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; then
2238 for ac_file in conftest.o conftest.obj conftest.*; do
2239 test -f "$ac_file" || continue;
2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2242 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2257 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2259 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2260 echo "${ECHO_T}$ac_cv_objext" >&6; }
2261 OBJEXT=$ac_cv_objext
2263 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2264 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2265 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 cat >conftest.$ac_ext <<_ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h. */
2286 rm -f conftest.$ac_objext
2287 if { (ac_try="$ac_compile"
2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293 (eval "$ac_compile") 2>conftest.er1
2295 grep -v '^ *+' conftest.er1 >conftest.err
2297 cat conftest.err >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2301 { (case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 (eval "$ac_try") 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316 (eval "$ac_try") 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2332 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2333 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2334 GCC=`test $ac_compiler_gnu = yes && echo yes`
2335 ac_test_CFLAGS=${CFLAGS+set}
2336 ac_save_CFLAGS=$CFLAGS
2337 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2338 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_cc_g+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 ac_save_c_werror_flag=$ac_c_werror_flag
2343 ac_c_werror_flag=yes
2346 cat >conftest.$ac_ext <<_ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h. */
2361 rm -f conftest.$ac_objext
2362 if { (ac_try="$ac_compile"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compile") 2>conftest.er1
2370 grep -v '^ *+' conftest.er1 >conftest.err
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2376 { (case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_try") 2>&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_try") 2>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2401 cat >conftest.$ac_ext <<_ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2416 rm -f conftest.$ac_objext
2417 if { (ac_try="$ac_compile"
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_compile") 2>conftest.er1
2425 grep -v '^ *+' conftest.er1 >conftest.err
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2431 { (case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_try") 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_try") 2>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2455 ac_c_werror_flag=$ac_save_c_werror_flag
2457 cat >conftest.$ac_ext <<_ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2472 rm -f conftest.$ac_objext
2473 if { (ac_try="$ac_compile"
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_compile") 2>conftest.er1
2481 grep -v '^ *+' conftest.er1 >conftest.err
2483 cat conftest.err >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2487 { (case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_try") 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; } &&
2496 { ac_try='test -s conftest.$ac_objext'
2497 { (case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502 (eval "$ac_try") 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 ac_c_werror_flag=$ac_save_c_werror_flag
2523 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2524 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2525 if test "$ac_test_CFLAGS" = set; then
2526 CFLAGS=$ac_save_CFLAGS
2527 elif test $ac_cv_prog_cc_g = yes; then
2528 if test "$GCC" = yes; then
2534 if test "$GCC" = yes; then
2540 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2541 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_cc_c89+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 ac_cv_prog_cc_c89=no
2547 cat >conftest.$ac_ext <<_ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2555 #include <sys/types.h>
2556 #include <sys/stat.h>
2557 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2558 struct buf { int x; };
2559 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2560 static char *e (p, i)
2566 static char *f (char * (*g) (char **, int), char **p, ...)
2571 s = g (p, va_arg (v,int));
2576 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2577 function prototypes and stuff, but not '\xHH' hex character constants.
2578 These don't provoke an error unfortunately, instead are silently treated
2579 as 'x'. The following induces an error, until -std is added to get
2580 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2581 array size at least. It's necessary to write '\x00'==0 to get something
2582 that's true only with -std. */
2583 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2585 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2586 inside strings and character constants. */
2588 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2590 int test (int i, double x);
2591 struct s1 {int (*f) (int a);};
2592 struct s2 {int (*f) (double a);};
2593 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2599 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2604 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2605 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2607 CC="$ac_save_CC $ac_arg"
2608 rm -f conftest.$ac_objext
2609 if { (ac_try="$ac_compile"
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compile") 2>conftest.er1
2617 grep -v '^ *+' conftest.er1 >conftest.err
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2623 { (case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_try") 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_try") 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 ac_cv_prog_cc_c89=$ac_arg
2644 echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f core conftest.err conftest.$ac_objext
2651 test "x$ac_cv_prog_cc_c89" != "xno" && break
2653 rm -f conftest.$ac_ext
2658 case "x$ac_cv_prog_cc_c89" in
2660 { echo "$as_me:$LINENO: result: none needed" >&5
2661 echo "${ECHO_T}none needed" >&6; } ;;
2663 { echo "$as_me:$LINENO: result: unsupported" >&5
2664 echo "${ECHO_T}unsupported" >&6; } ;;
2666 CC="$CC $ac_cv_prog_cc_c89"
2667 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2668 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2685 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2686 # On Suns, sometimes $CPP names a directory.
2687 if test -n "$CPP" && test -d "$CPP"; then
2690 if test -z "$CPP"; then
2691 if test "${ac_cv_prog_CPP+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 # Double quotes because CPP needs to be expanded
2695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2698 for ac_c_preproc_warn_flag in '' yes
2700 # Use a header file that comes with gcc, so configuring glibc
2701 # with a fresh cross-compiler works.
2702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2703 # <limits.h> exists even on freestanding compilers.
2704 # On the NeXT, cc -E runs the code through the compiler's parser,
2705 # not just through cpp. "Syntax error" is here to catch this case.
2706 cat >conftest.$ac_ext <<_ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2713 # include <limits.h>
2715 # include <assert.h>
2719 if { (ac_try="$ac_cpp conftest.$ac_ext"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2727 grep -v '^ *+' conftest.er1 >conftest.err
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } >/dev/null; then
2732 if test -s conftest.err; then
2733 ac_cpp_err=$ac_c_preproc_warn_flag
2734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2741 if test -z "$ac_cpp_err"; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2747 # Broken: fails on valid input.
2751 rm -f conftest.err conftest.$ac_ext
2753 # OK, works on sane cases. Now check whether nonexistent headers
2754 # can be detected and how.
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2761 #include <ac_nonexistent.h>
2763 if { (ac_try="$ac_cpp conftest.$ac_ext"
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2771 grep -v '^ *+' conftest.er1 >conftest.err
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } >/dev/null; then
2776 if test -s conftest.err; then
2777 ac_cpp_err=$ac_c_preproc_warn_flag
2778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2785 if test -z "$ac_cpp_err"; then
2786 # Broken: success on invalid input.
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 # Passes both tests.
2797 rm -f conftest.err conftest.$ac_ext
2800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2801 rm -f conftest.err conftest.$ac_ext
2802 if $ac_preproc_ok; then
2814 { echo "$as_me:$LINENO: result: $CPP" >&5
2815 echo "${ECHO_T}$CPP" >&6; }
2817 for ac_c_preproc_warn_flag in '' yes
2819 # Use a header file that comes with gcc, so configuring glibc
2820 # with a fresh cross-compiler works.
2821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2822 # <limits.h> exists even on freestanding compilers.
2823 # On the NeXT, cc -E runs the code through the compiler's parser,
2824 # not just through cpp. "Syntax error" is here to catch this case.
2825 cat >conftest.$ac_ext <<_ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2832 # include <limits.h>
2834 # include <assert.h>
2838 if { (ac_try="$ac_cpp conftest.$ac_ext"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } >/dev/null; then
2851 if test -s conftest.err; then
2852 ac_cpp_err=$ac_c_preproc_warn_flag
2853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2860 if test -z "$ac_cpp_err"; then
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 # Broken: fails on valid input.
2870 rm -f conftest.err conftest.$ac_ext
2872 # OK, works on sane cases. Now check whether nonexistent headers
2873 # can be detected and how.
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880 #include <ac_nonexistent.h>
2882 if { (ac_try="$ac_cpp conftest.$ac_ext"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } >/dev/null; then
2895 if test -s conftest.err; then
2896 ac_cpp_err=$ac_c_preproc_warn_flag
2897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2904 if test -z "$ac_cpp_err"; then
2905 # Broken: success on invalid input.
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2911 # Passes both tests.
2916 rm -f conftest.err conftest.$ac_ext
2919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2920 rm -f conftest.err conftest.$ac_ext
2921 if $ac_preproc_ok; then
2924 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2939 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2940 if test "${ac_cv_path_GREP+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 # Extract the first word of "grep ggrep" to use in msg output
2944 if test -z "$GREP"; then
2945 set dummy grep ggrep; ac_prog_name=$2
2946 if test "${ac_cv_path_GREP+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 ac_path_GREP_found=false
2950 # Loop through the user's path and test for each of PROGNAME-LIST
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2955 test -z "$as_dir" && as_dir=.
2956 for ac_prog in grep ggrep; do
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2959 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
2960 # Check for GNU ac_path_GREP and select it if it is found.
2961 # Check for GNU $ac_path_GREP
2962 case `"$ac_path_GREP" --version 2>&1` in
2964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2970 cat "conftest.in" "conftest.in" >"conftest.tmp"
2971 mv "conftest.tmp" "conftest.in"
2972 cp "conftest.in" "conftest.nl"
2973 echo 'GREP' >> "conftest.nl"
2974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2976 ac_count=`expr $ac_count + 1`
2977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2978 # Best one so far, save it but keep looking for a better one
2979 ac_cv_path_GREP="$ac_path_GREP"
2980 ac_path_GREP_max=$ac_count
2982 # 10*(2^10) chars as input seems more than enough
2983 test $ac_count -gt 10 && break
2985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2989 $ac_path_GREP_found && break 3
2999 GREP="$ac_cv_path_GREP"
3000 if test -z "$GREP"; then
3001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3002 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3003 { (exit 1); exit 1; }; }
3007 ac_cv_path_GREP=$GREP
3012 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3013 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3014 GREP="$ac_cv_path_GREP"
3017 { echo "$as_me:$LINENO: checking for egrep" >&5
3018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3019 if test "${ac_cv_path_EGREP+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3023 then ac_cv_path_EGREP="$GREP -E"
3025 # Extract the first word of "egrep" to use in msg output
3026 if test -z "$EGREP"; then
3027 set dummy egrep; ac_prog_name=$2
3028 if test "${ac_cv_path_EGREP+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 ac_path_EGREP_found=false
3032 # Loop through the user's path and test for each of PROGNAME-LIST
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3037 test -z "$as_dir" && as_dir=.
3038 for ac_prog in egrep; do
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3041 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3042 # Check for GNU ac_path_EGREP and select it if it is found.
3043 # Check for GNU $ac_path_EGREP
3044 case `"$ac_path_EGREP" --version 2>&1` in
3046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3052 cat "conftest.in" "conftest.in" >"conftest.tmp"
3053 mv "conftest.tmp" "conftest.in"
3054 cp "conftest.in" "conftest.nl"
3055 echo 'EGREP' >> "conftest.nl"
3056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3058 ac_count=`expr $ac_count + 1`
3059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3060 # Best one so far, save it but keep looking for a better one
3061 ac_cv_path_EGREP="$ac_path_EGREP"
3062 ac_path_EGREP_max=$ac_count
3064 # 10*(2^10) chars as input seems more than enough
3065 test $ac_count -gt 10 && break
3067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3071 $ac_path_EGREP_found && break 3
3081 EGREP="$ac_cv_path_EGREP"
3082 if test -z "$EGREP"; then
3083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3085 { (exit 1); exit 1; }; }
3089 ac_cv_path_EGREP=$EGREP
3095 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3096 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3097 EGREP="$ac_cv_path_EGREP"
3100 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3101 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3102 if test "${ac_cv_header_stdc+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 cat >conftest.$ac_ext <<_ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_header_stdc=yes
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_cv_header_stdc=no
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 if test $ac_cv_header_stdc = yes; then
3169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180 $EGREP "memchr" >/dev/null 2>&1; then
3183 ac_cv_header_stdc=no
3189 if test $ac_cv_header_stdc = yes; then
3190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201 $EGREP "free" >/dev/null 2>&1; then
3204 ac_cv_header_stdc=no
3210 if test $ac_cv_header_stdc = yes; then
3211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3212 if test "$cross_compiling" = yes; then
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3223 #if ((' ' & 0x0FF) == 0x020)
3224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3227 # define ISLOWER(c) \
3228 (('a' <= (c) && (c) <= 'i') \
3229 || ('j' <= (c) && (c) <= 'r') \
3230 || ('s' <= (c) && (c) <= 'z'))
3231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3239 for (i = 0; i < 256; i++)
3240 if (XOR (islower (i), ISLOWER (i))
3241 || toupper (i) != TOUPPER (i))
3246 rm -f conftest$ac_exeext
3247 if { (ac_try="$ac_link"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_link") 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3257 { (case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_try") 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3268 echo "$as_me: program exited with status $ac_status" >&5
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3273 ac_cv_header_stdc=no
3275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3281 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3282 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3283 if test $ac_cv_header_stdc = yes; then
3285 cat >>confdefs.h <<\_ACEOF
3286 #define STDC_HEADERS 1
3291 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3301 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3302 inttypes.h stdint.h unistd.h
3304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 $ac_includes_default
3318 #include <$ac_header>
3320 rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compile") 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } &&
3334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3335 { (case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_try") 2>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_try") 2>&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 eval "$as_ac_Header=yes"
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 eval "$as_ac_Header=no"
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_res=`eval echo '${'$as_ac_Header'}'`
3365 { echo "$as_me:$LINENO: result: $ac_res" >&5
3366 echo "${ECHO_T}$ac_res" >&6; }
3367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3368 cat >>confdefs.h <<_ACEOF
3369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3378 if test "${ac_cv_header_readline_readline_h+set}" = set; then
3379 { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
3380 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
3381 if test "${ac_cv_header_readline_readline_h+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
3385 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
3387 # Is the header compilable?
3388 { echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
3389 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6; }
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 $ac_includes_default
3397 #include <readline/readline.h>
3399 rm -f conftest.$ac_objext
3400 if { (ac_try="$ac_compile"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_compile") 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3414 { (case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_try") 2>&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; } &&
3423 { ac_try='test -s conftest.$ac_objext'
3424 { (case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_try") 2>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 ac_header_compiler=yes
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 ac_header_compiler=no
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3443 echo "${ECHO_T}$ac_header_compiler" >&6; }
3445 # Is the header present?
3446 { echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
3447 echo $ECHO_N "checking readline/readline.h presence... $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. */
3454 #include <readline/readline.h>
3456 if { (ac_try="$ac_cpp conftest.$ac_ext"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3464 grep -v '^ *+' conftest.er1 >conftest.err
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } >/dev/null; then
3469 if test -s conftest.err; then
3470 ac_cpp_err=$ac_c_preproc_warn_flag
3471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3478 if test -z "$ac_cpp_err"; then
3479 ac_header_preproc=yes
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 ac_header_preproc=no
3487 rm -f conftest.err conftest.$ac_ext
3488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3489 echo "${ECHO_T}$ac_header_preproc" >&6; }
3491 # So? What about this header?
3492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3494 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
3495 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3496 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
3497 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
3498 ac_header_preproc=yes
3501 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
3502 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
3503 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
3504 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
3505 { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
3506 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
3507 { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
3508 echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
3509 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
3510 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
3511 { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
3512 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
3516 { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
3517 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
3518 if test "${ac_cv_header_readline_readline_h+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 ac_cv_header_readline_readline_h=$ac_header_preproc
3523 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
3524 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
3530 if test "$ac_cv_header_readline_readline_h" = yes; then
3532 ac_save_LIBS="$LIBS"
3533 # Note: $LIBCURSES is permitted to be empty.
3535 for LIBREADLINE in "-lreadline.dll" "-lreadline" "-lreadline $LIBCURSES" "-lreadline -ltermcap" "-lreadline -lncurses" "-lreadline -lcurses"
3537 { echo "$as_me:$LINENO: checking for GNU Readline library" >&5
3538 echo $ECHO_N "checking for GNU Readline library... $ECHO_C" >&6; }
3540 LIBS="$ac_save_LIBS $LIBREADLINE"
3542 cat >conftest.$ac_ext <<_ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3551 #include <readline/readline.h>
3559 rl_function_of_keyseq(NULL, NULL, NULL);
3565 rm -f conftest.$ac_objext conftest$ac_exeext
3566 if { (ac_try="$ac_link"
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_link") 2>conftest.er1
3574 grep -v '^ *+' conftest.er1 >conftest.err
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3580 { (case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_try") 2>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } &&
3589 { ac_try='test -s conftest$ac_exeext'
3590 { (case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_try") 2>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3600 wi_cv_lib_readline=yes
3601 wi_cv_lib_readline_result="$LIBREADLINE"
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3608 wi_cv_lib_readline=no
3609 wi_cv_lib_readline_result=no
3613 rm -f core conftest.err conftest.$ac_objext \
3614 conftest$ac_exeext conftest.$ac_ext
3616 if test "$wi_cv_lib_readline" = yes; then
3617 { echo "$as_me:$LINENO: result: $wi_cv_lib_readline_result" >&5
3618 echo "${ECHO_T}$wi_cv_lib_readline_result" >&6; }
3621 cat >>confdefs.h <<_ACEOF
3622 #define HAVE_LIBREADLINE 1
3629 LIBS="$ac_save_LIBS"
3634 # ===========================================================================
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 if test -n "$ac_tool_prefix"; then
3641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3642 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3645 if test "${ac_cv_prog_CC+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3658 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 if test -n "$CC"; then
3670 { echo "$as_me:$LINENO: result: $CC" >&5
3671 echo "${ECHO_T}$CC" >&6; }
3673 { echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6; }
3679 if test -z "$ac_cv_prog_CC"; then
3681 # Extract the first word of "gcc", so it can be a program name with args.
3682 set dummy gcc; ac_word=$2
3683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 if test -n "$ac_ct_CC"; then
3689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3698 ac_cv_prog_ac_ct_CC="gcc"
3699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3709 if test -n "$ac_ct_CC"; then
3710 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3711 echo "${ECHO_T}$ac_ct_CC" >&6; }
3713 { echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6; }
3717 if test "x$ac_ct_CC" = x; then
3720 case $cross_compiling:$ac_tool_warned in
3722 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3723 whose name does not start with the host triplet. If you think this
3724 configuration is useful to you, please write to autoconf@gnu.org." >&5
3725 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3726 whose name does not start with the host triplet. If you think this
3727 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3728 ac_tool_warned=yes ;;
3736 if test -z "$CC"; then
3737 if test -n "$ac_tool_prefix"; then
3738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3739 set dummy ${ac_tool_prefix}cc; ac_word=$2
3740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3742 if test "${ac_cv_prog_CC+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 if test -n "$CC"; then
3746 ac_cv_prog_CC="$CC" # Let the user override the test.
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_CC="${ac_tool_prefix}cc"
3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 if test -n "$CC"; then
3767 { echo "$as_me:$LINENO: result: $CC" >&5
3768 echo "${ECHO_T}$CC" >&6; }
3770 { echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; }
3777 if test -z "$CC"; then
3778 # Extract the first word of "cc", so it can be a program name with args.
3779 set dummy cc; ac_word=$2
3780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3782 if test "${ac_cv_prog_CC+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3797 ac_prog_rejected=yes
3801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 if test $ac_prog_rejected = yes; then
3809 # We found a bogon in the path, so make sure we never use it.
3810 set dummy $ac_cv_prog_CC
3812 if test $# != 0; then
3813 # We chose a different compiler from the bogus one.
3814 # However, it has the same basename, so the bogon will be chosen
3815 # first if we set CC to just the basename; use the full file name.
3817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3823 if test -n "$CC"; then
3824 { echo "$as_me:$LINENO: result: $CC" >&5
3825 echo "${ECHO_T}$CC" >&6; }
3827 { echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6; }
3833 if test -z "$CC"; then
3834 if test -n "$ac_tool_prefix"; then
3835 for ac_prog in cl.exe
3837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3841 if test "${ac_cv_prog_CC+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 if test -n "$CC"; then
3845 ac_cv_prog_CC="$CC" # Let the user override the test.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 if test -n "$CC"; then
3866 { echo "$as_me:$LINENO: result: $CC" >&5
3867 echo "${ECHO_T}$CC" >&6; }
3869 { echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6; }
3874 test -n "$CC" && break
3877 if test -z "$CC"; then
3879 for ac_prog in cl.exe
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$ac_ct_CC"; then
3889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_ac_ct_CC="$ac_prog"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3909 if test -n "$ac_ct_CC"; then
3910 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3911 echo "${ECHO_T}$ac_ct_CC" >&6; }
3913 { echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6; }
3918 test -n "$ac_ct_CC" && break
3921 if test "x$ac_ct_CC" = x; then
3924 case $cross_compiling:$ac_tool_warned in
3926 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3927 whose name does not start with the host triplet. If you think this
3928 configuration is useful to you, please write to autoconf@gnu.org." >&5
3929 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3930 whose name does not start with the host triplet. If you think this
3931 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3932 ac_tool_warned=yes ;;
3941 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3942 See \`config.log' for more details." >&5
3943 echo "$as_me: error: no acceptable C compiler found in \$PATH
3944 See \`config.log' for more details." >&2;}
3945 { (exit 1); exit 1; }; }
3947 # Provide some information about the compiler.
3948 echo "$as_me:$LINENO: checking for C compiler version" >&5
3949 ac_compiler=`set X $ac_compile; echo $2`
3950 { (ac_try="$ac_compiler --version >&5"
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_compiler --version >&5") 2>&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }
3960 { (ac_try="$ac_compiler -v >&5"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_compiler -v >&5") 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }
3970 { (ac_try="$ac_compiler -V >&5"
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_compiler -V >&5") 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }
3981 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3982 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3983 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 cat >conftest.$ac_ext <<_ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
4004 rm -f conftest.$ac_objext
4005 if { (ac_try="$ac_compile"
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011 (eval "$ac_compile") 2>conftest.er1
4013 grep -v '^ *+' conftest.er1 >conftest.err
4015 cat conftest.err >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4019 { (case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_try") 2>&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; } &&
4028 { ac_try='test -s conftest.$ac_objext'
4029 { (case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_try") 2>&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4050 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4052 GCC=`test $ac_compiler_gnu = yes && echo yes`
4053 ac_test_CFLAGS=${CFLAGS+set}
4054 ac_save_CFLAGS=$CFLAGS
4055 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4056 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4057 if test "${ac_cv_prog_cc_g+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 ac_save_c_werror_flag=$ac_c_werror_flag
4061 ac_c_werror_flag=yes
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_try") 2>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 ac_c_werror_flag=$ac_save_c_werror_flag
4175 cat >conftest.$ac_ext <<_ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_compile") 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205 { (case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_try") 2>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; } &&
4214 { ac_try='test -s conftest.$ac_objext'
4215 { (case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_try") 2>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 ac_c_werror_flag=$ac_save_c_werror_flag
4241 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4242 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4243 if test "$ac_test_CFLAGS" = set; then
4244 CFLAGS=$ac_save_CFLAGS
4245 elif test $ac_cv_prog_cc_g = yes; then
4246 if test "$GCC" = yes; then
4252 if test "$GCC" = yes; then
4258 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4259 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4260 if test "${ac_cv_prog_cc_c89+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 ac_cv_prog_cc_c89=no
4265 cat >conftest.$ac_ext <<_ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4273 #include <sys/types.h>
4274 #include <sys/stat.h>
4275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4276 struct buf { int x; };
4277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4278 static char *e (p, i)
4284 static char *f (char * (*g) (char **, int), char **p, ...)
4289 s = g (p, va_arg (v,int));
4294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4295 function prototypes and stuff, but not '\xHH' hex character constants.
4296 These don't provoke an error unfortunately, instead are silently treated
4297 as 'x'. The following induces an error, until -std is added to get
4298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4299 array size at least. It's necessary to write '\x00'==0 to get something
4300 that's true only with -std. */
4301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4304 inside strings and character constants. */
4306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4308 int test (int i, double x);
4309 struct s1 {int (*f) (int a);};
4310 struct s2 {int (*f) (double a);};
4311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4325 CC="$ac_save_CC $ac_arg"
4326 rm -f conftest.$ac_objext
4327 if { (ac_try="$ac_compile"
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_compile") 2>conftest.er1
4335 grep -v '^ *+' conftest.er1 >conftest.err
4337 cat conftest.err >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } &&
4340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4341 { (case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_try") 2>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; } &&
4350 { ac_try='test -s conftest.$ac_objext'
4351 { (case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_try") 2>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_prog_cc_c89=$ac_arg
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4368 rm -f core conftest.err conftest.$ac_objext
4369 test "x$ac_cv_prog_cc_c89" != "xno" && break
4371 rm -f conftest.$ac_ext
4376 case "x$ac_cv_prog_cc_c89" in
4378 { echo "$as_me:$LINENO: result: none needed" >&5
4379 echo "${ECHO_T}none needed" >&6; } ;;
4381 { echo "$as_me:$LINENO: result: unsupported" >&5
4382 echo "${ECHO_T}unsupported" >&6; } ;;
4384 CC="$CC $ac_cv_prog_cc_c89"
4385 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4386 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4402 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4403 # On Suns, sometimes $CPP names a directory.
4404 if test -n "$CPP" && test -d "$CPP"; then
4407 if test -z "$CPP"; then
4408 if test "${ac_cv_prog_CPP+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 # Double quotes because CPP needs to be expanded
4412 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4415 for ac_c_preproc_warn_flag in '' yes
4417 # Use a header file that comes with gcc, so configuring glibc
4418 # with a fresh cross-compiler works.
4419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4420 # <limits.h> exists even on freestanding compilers.
4421 # On the NeXT, cc -E runs the code through the compiler's parser,
4422 # not just through cpp. "Syntax error" is here to catch this case.
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4430 # include <limits.h>
4432 # include <assert.h>
4436 if { (ac_try="$ac_cpp conftest.$ac_ext"
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4444 grep -v '^ *+' conftest.er1 >conftest.err
4446 cat conftest.err >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } >/dev/null; then
4449 if test -s conftest.err; then
4450 ac_cpp_err=$ac_c_preproc_warn_flag
4451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4458 if test -z "$ac_cpp_err"; then
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4464 # Broken: fails on valid input.
4468 rm -f conftest.err conftest.$ac_ext
4470 # OK, works on sane cases. Now check whether nonexistent headers
4471 # can be detected and how.
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 #include <ac_nonexistent.h>
4480 if { (ac_try="$ac_cpp conftest.$ac_ext"
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4488 grep -v '^ *+' conftest.er1 >conftest.err
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } >/dev/null; then
4493 if test -s conftest.err; then
4494 ac_cpp_err=$ac_c_preproc_warn_flag
4495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4502 if test -z "$ac_cpp_err"; then
4503 # Broken: success on invalid input.
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 # Passes both tests.
4514 rm -f conftest.err conftest.$ac_ext
4517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4518 rm -f conftest.err conftest.$ac_ext
4519 if $ac_preproc_ok; then
4531 { echo "$as_me:$LINENO: result: $CPP" >&5
4532 echo "${ECHO_T}$CPP" >&6; }
4534 for ac_c_preproc_warn_flag in '' yes
4536 # Use a header file that comes with gcc, so configuring glibc
4537 # with a fresh cross-compiler works.
4538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4539 # <limits.h> exists even on freestanding compilers.
4540 # On the NeXT, cc -E runs the code through the compiler's parser,
4541 # not just through cpp. "Syntax error" is here to catch this case.
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 # include <limits.h>
4551 # include <assert.h>
4555 if { (ac_try="$ac_cpp conftest.$ac_ext"
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4563 grep -v '^ *+' conftest.er1 >conftest.err
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } >/dev/null; then
4568 if test -s conftest.err; then
4569 ac_cpp_err=$ac_c_preproc_warn_flag
4570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4577 if test -z "$ac_cpp_err"; then
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 # Broken: fails on valid input.
4587 rm -f conftest.err conftest.$ac_ext
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat >conftest.$ac_ext <<_ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 #include <ac_nonexistent.h>
4599 if { (ac_try="$ac_cpp conftest.$ac_ext"
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4607 grep -v '^ *+' conftest.er1 >conftest.err
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } >/dev/null; then
4612 if test -s conftest.err; then
4613 ac_cpp_err=$ac_c_preproc_warn_flag
4614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4621 if test -z "$ac_cpp_err"; then
4622 # Broken: success on invalid input.
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 # Passes both tests.
4633 rm -f conftest.err conftest.$ac_ext
4636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4637 rm -f conftest.err conftest.$ac_ext
4638 if $ac_preproc_ok; then
4641 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4642 See \`config.log' for more details." >&5
4643 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4644 See \`config.log' for more details." >&2;}
4645 { (exit 1); exit 1; }; }
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4656 if test -f "$ac_dir/install-sh"; then
4658 ac_install_sh="$ac_aux_dir/install-sh -c"
4660 elif test -f "$ac_dir/install.sh"; then
4662 ac_install_sh="$ac_aux_dir/install.sh -c"
4664 elif test -f "$ac_dir/shtool"; then
4666 ac_install_sh="$ac_aux_dir/shtool install -c"
4670 if test -z "$ac_aux_dir"; then
4671 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4672 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4673 { (exit 1); exit 1; }; }
4676 # These three variables are undocumented and unsupported,
4677 # and are intended to be withdrawn in a future Autoconf release.
4678 # They can cause serious problems if a builder's source tree is in a directory
4679 # whose full name contains unusual characters.
4680 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4681 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4682 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4685 # Find a good install program. We prefer a C program (faster),
4686 # so one script is as good as another. But avoid the broken or
4687 # incompatible versions:
4688 # SysV /etc/install, /usr/sbin/install
4689 # SunOS /usr/etc/install
4690 # IRIX /sbin/install
4692 # AmigaOS /C/install, which installs bootblocks on floppy discs
4693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4696 # OS/2's system install, which has a completely different semantic
4697 # ./install, which can be erroneously created by make from ./install.sh.
4698 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4699 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4700 if test -z "$INSTALL"; then
4701 if test "${ac_cv_path_install+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 # Account for people who put trailing slashes in PATH elements.
4711 ./ | .// | /cC/* | \
4712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4713 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4716 # OSF1 and SCO ODT 3.0 have their own names for install.
4717 # Don't use installbsd from OSF since it installs stuff as root
4719 for ac_prog in ginstall scoinst install; do
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4722 if test $ac_prog = install &&
4723 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4724 # AIX install. It has an incompatible calling convention.
4726 elif test $ac_prog = install &&
4727 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4728 # program-specific install script used by HP pwplus--don't use.
4731 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4744 if test "${ac_cv_path_install+set}" = set; then
4745 INSTALL=$ac_cv_path_install
4747 # As a last resort, use the slow shell script. Don't cache a
4748 # value for INSTALL within a source directory, because that will
4749 # break other packages using the cache if that directory is
4750 # removed, or if the value is a relative name.
4751 INSTALL=$ac_install_sh
4754 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4755 echo "${ECHO_T}$INSTALL" >&6; }
4757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4758 # It thinks the first close brace ends the variable substitution.
4759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4765 if test -n "$ac_tool_prefix"; then
4766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4767 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_RANLIB+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 if test -n "$RANLIB"; then
4774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 RANLIB=$ac_cv_prog_RANLIB
4794 if test -n "$RANLIB"; then
4795 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4796 echo "${ECHO_T}$RANLIB" >&6; }
4798 { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4804 if test -z "$ac_cv_prog_RANLIB"; then
4805 ac_ct_RANLIB=$RANLIB
4806 # Extract the first word of "ranlib", so it can be a program name with args.
4807 set dummy ranlib; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 if test -n "$ac_ct_RANLIB"; then
4814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_ac_ct_RANLIB="ranlib"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4834 if test -n "$ac_ct_RANLIB"; then
4835 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4836 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4838 { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4842 if test "x$ac_ct_RANLIB" = x; then
4845 case $cross_compiling:$ac_tool_warned in
4847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4848 whose name does not start with the host triplet. If you think this
4849 configuration is useful to you, please write to autoconf@gnu.org." >&5
4850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4851 whose name does not start with the host triplet. If you think this
4852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4853 ac_tool_warned=yes ;;
4855 RANLIB=$ac_ct_RANLIB
4858 RANLIB="$ac_cv_prog_RANLIB"
4861 # Extract the first word of "autoconf", so it can be a program name with args.
4862 set dummy autoconf; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 if test -n "$AUTOCONF"; then
4869 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_prog_AUTOCONF="autoconf"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
4889 AUTOCONF=$ac_cv_prog_AUTOCONF
4890 if test -n "$AUTOCONF"; then
4891 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
4892 echo "${ECHO_T}$AUTOCONF" >&6; }
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 # Extract the first word of "strip", so it can be a program name with args.
4900 set dummy strip; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_STRIP+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 if test -n "$STRIP"; then
4907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_STRIP="strip"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4927 STRIP=$ac_cv_prog_STRIP
4928 if test -n "$STRIP"; then
4929 { echo "$as_me:$LINENO: result: $STRIP" >&5
4930 echo "${ECHO_T}$STRIP" >&6; }
4932 { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4937 # Extract the first word of "as", so it can be a program name with args.
4938 set dummy as; ac_word=$2
4939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4941 if test "${ac_cv_prog_AS+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 if test -n "$AS"; then
4945 ac_cv_prog_AS="$AS" # Let the user override the test.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
4966 if test -n "$AS"; then
4967 { echo "$as_me:$LINENO: result: $AS" >&5
4968 echo "${ECHO_T}$AS" >&6; }
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4975 # Extract the first word of "cp", so it can be a program name with args.
4976 set dummy cp; ac_word=$2
4977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4979 if test "${ac_cv_prog_CP+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 if test -n "$CP"; then
4983 ac_cv_prog_CP="$CP" # Let the user override the test.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
5004 if test -n "$CP"; then
5005 { echo "$as_me:$LINENO: result: $CP" >&5
5006 echo "${ECHO_T}$CP" >&6; }
5008 { echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6; }
5015 ac_cpp='$CPP $CPPFLAGS'
5016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 # Checking for header files.
5023 # ===========================================================================
5026 for ac_header in sys/socket.h
5028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 ac_res=`eval echo '${'$as_ac_Header'}'`
5036 { echo "$as_me:$LINENO: result: $ac_res" >&5
5037 echo "${ECHO_T}$ac_res" >&6; }
5039 # Is the header compilable?
5040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 $ac_includes_default
5049 #include <$ac_header>
5051 rm -f conftest.$ac_objext
5052 if { (ac_try="$ac_compile"
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_compile") 2>conftest.er1
5060 grep -v '^ *+' conftest.er1 >conftest.err
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5066 { (case "(($ac_try" in
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5071 (eval "$ac_try") 2>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; } &&
5075 { ac_try='test -s conftest.$ac_objext'
5076 { (case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_try") 2>&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_header_compiler=yes
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 ac_header_compiler=no
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5095 echo "${ECHO_T}$ac_header_compiler" >&6; }
5097 # Is the header present?
5098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 #include <$ac_header>
5108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5116 grep -v '^ *+' conftest.er1 >conftest.err
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_c_preproc_warn_flag
5123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5130 if test -z "$ac_cpp_err"; then
5131 ac_header_preproc=yes
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5136 ac_header_preproc=no
5139 rm -f conftest.err conftest.$ac_ext
5140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5141 echo "${ECHO_T}$ac_header_preproc" >&6; }
5143 # So? What about this header?
5144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5150 ac_header_preproc=yes
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 eval "$as_ac_Header=\$ac_header_preproc"
5175 ac_res=`eval echo '${'$as_ac_Header'}'`
5176 { echo "$as_me:$LINENO: result: $ac_res" >&5
5177 echo "${ECHO_T}$ac_res" >&6; }
5180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5181 cat >>confdefs.h <<_ACEOF
5182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184 socket_type=sys_socket_h
5189 if test $socket_type = unknown; then
5191 for ac_header in winsock2.h
5193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 ac_res=`eval echo '${'$as_ac_Header'}'`
5201 { echo "$as_me:$LINENO: result: $ac_res" >&5
5202 echo "${ECHO_T}$ac_res" >&6; }
5204 # Is the header compilable?
5205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5207 cat >conftest.$ac_ext <<_ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 $ac_includes_default
5214 #include <$ac_header>
5216 rm -f conftest.$ac_objext
5217 if { (ac_try="$ac_compile"
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_compile") 2>conftest.er1
5225 grep -v '^ *+' conftest.er1 >conftest.err
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5231 { (case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_try") 2>&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; } &&
5240 { ac_try='test -s conftest.$ac_objext'
5241 { (case "(($ac_try" in
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_try") 2>&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_header_compiler=yes
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5255 ac_header_compiler=no
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5260 echo "${ECHO_T}$ac_header_compiler" >&6; }
5262 # Is the header present?
5263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5265 cat >conftest.$ac_ext <<_ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 #include <$ac_header>
5273 if { (ac_try="$ac_cpp conftest.$ac_ext"
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5281 grep -v '^ *+' conftest.er1 >conftest.err
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } >/dev/null; then
5286 if test -s conftest.err; then
5287 ac_cpp_err=$ac_c_preproc_warn_flag
5288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5295 if test -z "$ac_cpp_err"; then
5296 ac_header_preproc=yes
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5301 ac_header_preproc=no
5304 rm -f conftest.err conftest.$ac_ext
5305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5306 echo "${ECHO_T}$ac_header_preproc" >&6; }
5308 # So? What about this header?
5309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5315 ac_header_preproc=yes
5318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 eval "$as_ac_Header=\$ac_header_preproc"
5340 ac_res=`eval echo '${'$as_ac_Header'}'`
5341 { echo "$as_me:$LINENO: result: $ac_res" >&5
5342 echo "${ECHO_T}$ac_res" >&6; }
5345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5346 cat >>confdefs.h <<_ACEOF
5347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5349 socket_type=winsock2_h
5357 # Checking for functions/libs
5358 # ===========================================================================
5359 if test $socket_type = winsock2_h; then
5360 LIBS="-lws2_32 $LIBS"
5363 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5364 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5365 if test "${ac_cv_lib_socket_socket+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 ac_check_lib_save_LIBS=$LIBS
5369 LIBS="-lsocket $LIBS"
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5377 /* Override any GCC internal prototype to avoid an error.
5378 Use char because int might match the return type of a GCC
5379 builtin and then its argument prototype would still apply. */
5392 rm -f conftest.$ac_objext conftest$ac_exeext
5393 if { (ac_try="$ac_link"
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_link") 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5407 { (case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_try") 2>&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; } &&
5416 { ac_try='test -s conftest$ac_exeext'
5417 { (case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_try") 2>&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }; then
5426 ac_cv_lib_socket_socket=yes
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5431 ac_cv_lib_socket_socket=no
5434 rm -f core conftest.err conftest.$ac_objext \
5435 conftest$ac_exeext conftest.$ac_ext
5436 LIBS=$ac_check_lib_save_LIBS
5438 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5439 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5440 if test $ac_cv_lib_socket_socket = yes; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define HAVE_LIBSOCKET 1
5445 LIBS="-lsocket $LIBS"
5450 { echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
5451 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6; }
5452 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 ac_check_lib_save_LIBS=$LIBS
5457 cat >conftest.$ac_ext <<_ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5464 /* Override any GCC internal prototype to avoid an error.
5465 Use char because int might match the return type of a GCC
5466 builtin and then its argument prototype would still apply. */
5474 return xdr_short ();
5479 rm -f conftest.$ac_objext conftest$ac_exeext
5480 if { (ac_try="$ac_link"
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_link") 2>conftest.er1
5488 grep -v '^ *+' conftest.er1 >conftest.err
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5494 { (case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_try") 2>&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; } &&
5503 { ac_try='test -s conftest$ac_exeext'
5504 { (case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_try") 2>&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 ac_cv_lib_nsl_xdr_short=yes
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_cv_lib_nsl_xdr_short=no
5521 rm -f core conftest.err conftest.$ac_objext \
5522 conftest$ac_exeext conftest.$ac_ext
5523 LIBS=$ac_check_lib_save_LIBS
5525 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
5526 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6; }
5527 if test $ac_cv_lib_nsl_xdr_short = yes; then
5528 cat >>confdefs.h <<_ACEOF
5529 #define HAVE_LIBNSL 1
5540 # ===========================================================================
5542 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
5543 # supports option specified as the 2nd parameter
5544 # For example: DD_CPORT(CXX, fPIC)
5548 # This macro expands DIR and assigns it to RET.
5549 # If DIR is NONE, then it's replaced by DEFAULT.
5551 # Based on AC_DEFINE_DIR
5555 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
5559 # adl_NORMALIZE_PATH
5561 # - empty paths are changed to '.'
5562 # - trailing slashes are removed
5563 # - repeated slashes are squeezed except a leading doubled slash '//'
5564 # (which might indicate a networked disk on some OS).
5567 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
5568 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
5569 # are turned into backslashes, otherwise they are all turned into slashes.
5571 # This makes processing of DOS filenames quite easier, because you can turn a
5572 # filename to the Unix notation, make your processing, and turn it back to
5573 # original notation.
5581 # Checking characteristics of compilers and other programs
5582 # ===========================================================================
5583 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
5584 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
5585 if test "${sdcc_cv_MM+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 echo "#include <stdio.h>" >_test_.c
5590 $CPP -v -MM _test_.c 1>&5 2>&5
5591 if test "$?" = "0"; then
5598 { echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
5599 echo "${ECHO_T}$sdcc_cv_MM" >&6; }
5603 # This is the first time when CFLAGS are set/modified!!
5605 { echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
5606 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6; }
5607 if test "${sdcc_cv_CCggdb+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 $CC -v -ggdb -c _test_.c 1>&5 2>&5
5615 if test "$?" = "0"; then
5616 sdcc_cv_CCggdb="yes"
5620 rm -f _test_.* a.out
5622 { echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
5623 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6; }
5625 if test "$sdcc_cv_CCggdb" = "yes"; then
5626 CFLAGS="-ggdb ${CFLAGS}"
5630 { echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
5631 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6; }
5632 if test "${sdcc_cv_CCpipe+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 $CC -v -pipe -c _test_.c 1>&5 2>&5
5640 if test "$?" = "0"; then
5641 sdcc_cv_CCpipe="yes"
5645 rm -f _test_.* a.out
5647 { echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
5648 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6; }
5650 if test "$sdcc_cv_CCpipe" = "yes"; then
5651 CFLAGS="-pipe $CFLAGS"
5655 # Set standard installation paths
5656 # ===========================================================================
5658 # In the Makefiles we need paths with '/' as directory separator, even if
5659 # crosscompiling for Win32.
5660 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5661 # The variables in the Makefiles are replaced by AC_SUBST()
5663 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5665 # The macros are expanded for the header.
5666 # The variables in the header are replaced by AC_*DEFINE*()
5667 # sdccconf_h_dir_separator contains a backslash.
5669 if test "x${sdccconf_h_dir_separator}" = "x"; then
5670 sdccconf_h_dir_separator="/"
5677 # *nix default: "sdcc/lib"
5679 if test "${lib_dir_suffix}" = ""; then
5680 lib_dir_suffix="sdcc/lib"
5689 cat >>confdefs.h <<_ACEOF
5690 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
5695 # default: "${prefix}/share"
5697 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5698 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5700 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5701 ac_expand=`eval echo $ac_expand`
5702 expanded_datadir=`eval echo $ac_expand`
5705 ac_ndu=$expanded_datadir
5708 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5711 case $sdccconf_h_dir_separator in
5713 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5714 s,^[\\/],\\\\\\\\,'` ;;
5716 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5718 cat >>confdefs.h <<_ACEOF
5719 #define DATADIR "${ac_ndu}"
5725 norm_lib_dir_suffix=${lib_dir_suffix}
5726 case ":$norm_lib_dir_suffix:" in
5727 ::) norm_lib_dir_suffix='.' ;;
5728 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5731 case $sdccconf_h_dir_separator in
5733 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5734 s,^[\\/],\\\\\\\\,'` ;;
5736 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5738 cat >>confdefs.h <<_ACEOF
5739 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5744 # Generating output files
5745 # ===========================================================================
5746 ac_config_files="$ac_config_files Makefile"
5748 cat >confcache <<\_ACEOF
5749 # This file is a shell script that caches the results of configure
5750 # tests run on this system so they can be shared between configure
5751 # scripts and configure runs, see configure's option --config-cache.
5752 # It is not useful on other systems. If it contains results you don't
5753 # want to keep, you may remove or edit it.
5755 # config.status only pays attention to the cache file if you give it
5756 # the --recheck option to rerun configure.
5758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5764 # The following way of writing the cache mishandles newlines in values,
5765 # but we know of no workaround that is simple, portable, and efficient.
5766 # So, we kill variables containing newlines.
5767 # Ultrix sh set writes to stderr and can't be redirected directly,
5768 # and sets the high bit in the cache file unless we assign to the vars.
5770 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5771 eval ac_val=\$$ac_var
5775 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5776 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5779 _ | IFS | as_nl) ;; #(
5780 *) $as_unset $ac_var ;;
5786 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5787 *${as_nl}ac_space=\ *)
5788 # `set' does not quote correctly, so add quotes (double-quote
5789 # substitution turns \\\\ into \\, and sed turns \\ into \).
5792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5795 # `set' quotes correctly as required by POSIX, so do not add quotes.
5796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5805 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5807 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5809 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5810 if test -w "$cache_file"; then
5811 test "x$cache_file" != "x/dev/null" &&
5812 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5813 echo "$as_me: updating cache $cache_file" >&6;}
5814 cat confcache >$cache_file
5816 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5817 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5822 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5823 # Let make expand exec_prefix.
5824 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5826 DEFS=-DHAVE_CONFIG_H
5830 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5831 # 1. Remove the extension, and $U if already installed.
5832 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5833 ac_i=`echo "$ac_i" | sed "$ac_script"`
5834 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5835 # will be set to the directory where LIBOBJS objects are built.
5836 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5837 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5841 LTLIBOBJS=$ac_ltlibobjs
5845 : ${CONFIG_STATUS=./config.status}
5846 ac_clean_files_save=$ac_clean_files
5847 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5848 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5849 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5850 cat >$CONFIG_STATUS <<_ACEOF
5852 # Generated by $as_me.
5853 # Run this file to recreate the current configuration.
5854 # Compiler output produced by configure, useful for debugging
5855 # configure, is in config.log if it exists.
5860 SHELL=\${CONFIG_SHELL-$SHELL}
5863 cat >>$CONFIG_STATUS <<\_ACEOF
5864 ## --------------------- ##
5865 ## M4sh Initialization. ##
5866 ## --------------------- ##
5868 # Be Bourne compatible
5869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5872 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5873 # is contrary to our usage. Disable this feature.
5874 alias -g '${1+"$@"}'='"$@"'
5875 setopt NO_GLOB_SUBST
5877 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
5879 BIN_SH=xpg4; export BIN_SH # for Tru64
5880 DUALCASE=1; export DUALCASE # for MKS sh
5884 # Avoid depending upon Character Ranges.
5885 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5886 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5887 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5888 as_cr_digits='0123456789'
5889 as_cr_alnum=$as_cr_Letters$as_cr_digits
5891 # The user is always right.
5892 if test "${PATH_SEPARATOR+set}" != set; then
5893 echo "#! /bin/sh" >conf$$.sh
5894 echo "exit 0" >>conf$$.sh
5896 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5904 # Support unset when possible.
5905 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5913 # We need space, tab and new line, in precisely that order. Quoting is
5914 # there to prevent editors from complaining about space-tab.
5915 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5916 # splitting by setting IFS to empty value.)
5921 # Find who we are. Look in the path if we contain no directory separator.
5923 *[\\/]* ) as_myself=$0 ;;
5924 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5935 # We did not find ourselves, most probably we were run as `sh COMMAND'
5936 # in which case we are not to be found in the path.
5937 if test "x$as_myself" = x; then
5940 if test ! -f "$as_myself"; then
5941 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5942 { (exit 1); exit 1; }
5945 # Work around bugs in pre-3.0 UWIN ksh.
5946 for as_var in ENV MAIL MAILPATH
5947 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5955 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5956 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5957 LC_TELEPHONE LC_TIME
5959 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5960 eval $as_var=C; export $as_var
5962 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5966 # Required to use basename.
5967 if expr a : '\(a\)' >/dev/null 2>&1 &&
5968 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5974 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5975 as_basename=basename
5981 # Name of the executable.
5982 as_me=`$as_basename -- "$0" ||
5983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5984 X"$0" : 'X\(//\)$' \| \
5985 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5987 sed '/^.*\/\([^/][^/]*\)\/*$/{
6008 test "x$as_lineno_1" != "x$as_lineno_2" &&
6009 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6011 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6012 # uniformly replaced by the line number. The first 'sed' inserts a
6013 # line-number line after each line using $LINENO; the second 'sed'
6014 # does the real work. The second script uses 'N' to pair each
6015 # line-number line with the line containing $LINENO, and appends
6016 # trailing '-' during substitution so that $LINENO is not a special
6018 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6019 # scripts with optimization help from Paolo Bonzini. Blame Lee
6020 # E. McMahon (1931-1989) for sed's syntax. :-)
6032 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6036 chmod +x "$as_me.lineno" ||
6037 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6038 { (exit 1); exit 1; }; }
6040 # Don't try to exec as it changes $[0], causing all sort of problems
6041 # (the dirname of $[0] is not the place where we might find the
6042 # original and so on. Autoconf is especially sensitive to this).
6044 # Exit status is that of the last command.
6049 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6055 ECHO_C= ECHO_N= ECHO_T=
6058 case `echo 'x\c'` in
6059 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6066 if expr a : '\(a\)' >/dev/null 2>&1 &&
6067 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6073 rm -f conf$$ conf$$.exe conf$$.file
6074 if test -d conf$$.dir; then
6075 rm -f conf$$.dir/conf$$.file
6081 if ln -s conf$$.file conf$$ 2>/dev/null; then
6083 # ... but there are two gotchas:
6084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6086 # In both cases, we have to default to `cp -p'.
6087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6089 elif ln conf$$.file conf$$ 2>/dev/null; then
6094 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6095 rmdir conf$$.dir 2>/dev/null
6097 if mkdir -p . 2>/dev/null; then
6100 test -d ./-p && rmdir ./-p
6104 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
6105 # systems may use methods other than mode bits to determine executability.
6106 cat >conf$$.file <<_ASEOF
6110 chmod +x conf$$.file
6111 if test -x conf$$.file >/dev/null 2>&1; then
6112 as_executable_p="test -x"
6118 # Sed expression to map a string onto a valid CPP name.
6119 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6121 # Sed expression to map a string onto a valid variable name.
6122 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6127 # Save the log message, to keep $[0] and so on meaningful, and to
6128 # report actual input values of CONFIG_FILES etc. instead of their
6129 # values after options handling.
6131 This file was extended by $as_me, which was
6132 generated by GNU Autoconf 2.60. Invocation command line was
6134 CONFIG_FILES = $CONFIG_FILES
6135 CONFIG_HEADERS = $CONFIG_HEADERS
6136 CONFIG_LINKS = $CONFIG_LINKS
6137 CONFIG_COMMANDS = $CONFIG_COMMANDS
6140 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6145 cat >>$CONFIG_STATUS <<_ACEOF
6146 # Files that config.status was made for.
6147 config_files="$ac_config_files"
6148 config_headers="$ac_config_headers"
6152 cat >>$CONFIG_STATUS <<\_ACEOF
6154 \`$as_me' instantiates files from templates according to the
6155 current configuration.
6157 Usage: $0 [OPTIONS] [FILE]...
6159 -h, --help print this help, then exit
6160 -V, --version print version number, then exit
6161 -q, --quiet do not print progress messages
6162 -d, --debug don't remove temporary files
6163 --recheck update $as_me by reconfiguring in the same conditions
6164 --file=FILE[:TEMPLATE]
6165 instantiate the configuration file FILE
6166 --header=FILE[:TEMPLATE]
6167 instantiate the configuration header FILE
6169 Configuration files:
6172 Configuration headers:
6175 Report bugs to <bug-autoconf@gnu.org>."
6178 cat >>$CONFIG_STATUS <<_ACEOF
6181 configured by $0, generated by GNU Autoconf 2.60,
6182 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6184 Copyright (C) 2006 Free Software Foundation, Inc.
6185 This config.status script is free software; the Free Software Foundation
6186 gives unlimited permission to copy, distribute and modify it."
6193 cat >>$CONFIG_STATUS <<\_ACEOF
6194 # If no file are specified by the user, then we need to provide default
6195 # value. By we need to know if files were specified by the user.
6201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6202 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6213 # Handling of the options.
6214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6216 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6217 echo "$ac_cs_version"; exit ;;
6218 --debug | --debu | --deb | --de | --d | -d )
6220 --file | --fil | --fi | --f )
6222 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6223 ac_need_defaults=false;;
6224 --header | --heade | --head | --hea )
6226 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6227 ac_need_defaults=false;;
6229 # Conflict between --help and --header
6230 { echo "$as_me: error: ambiguous option: $1
6231 Try \`$0 --help' for more information." >&2
6232 { (exit 1); exit 1; }; };;
6233 --help | --hel | -h )
6234 echo "$ac_cs_usage"; exit ;;
6235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6240 -*) { echo "$as_me: error: unrecognized option: $1
6241 Try \`$0 --help' for more information." >&2
6242 { (exit 1); exit 1; }; } ;;
6244 *) ac_config_targets="$ac_config_targets $1"
6245 ac_need_defaults=false ;;
6251 ac_configure_extra_args=
6253 if $ac_cs_silent; then
6255 ac_configure_extra_args="$ac_configure_extra_args --silent"
6259 cat >>$CONFIG_STATUS <<_ACEOF
6260 if \$ac_cs_recheck; then
6261 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6264 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6268 cat >>$CONFIG_STATUS <<\_ACEOF
6272 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6273 ## Running $as_me. ##
6279 cat >>$CONFIG_STATUS <<_ACEOF
6282 cat >>$CONFIG_STATUS <<\_ACEOF
6284 # Handling of arguments.
6285 for ac_config_target in $ac_config_targets
6287 case $ac_config_target in
6288 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6289 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6291 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6292 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6293 { (exit 1); exit 1; }; };;
6298 # If the user did not use the arguments to specify the items to instantiate,
6299 # then the envvar interface is used. Set only those that are not.
6300 # We use the long form for the default assignment because of an extremely
6301 # bizarre bug on SunOS 4.1.3.
6302 if $ac_need_defaults; then
6303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6307 # Have a temporary directory for convenience. Make it in the build tree
6308 # simply because there is no reason against having it here, and in addition,
6309 # creating and moving files from /tmp can sometimes cause problems.
6310 # Hook for its removal unless debugging.
6311 # Note that there is a small window in which the directory will not be cleaned:
6312 # after its creation but before its name has been assigned to `$tmp'.
6316 trap 'exit_status=$?
6317 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6319 trap '{ (exit 1); exit 1; }' 1 2 13 15
6321 # Create a (secure) tmp directory for tmp files.
6324 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6325 test -n "$tmp" && test -d "$tmp"
6328 tmp=./conf$$-$RANDOM
6329 (umask 077 && mkdir "$tmp")
6332 echo "$me: cannot create a temporary directory in ." >&2
6333 { (exit 1); exit 1; }
6337 # Set up the sed scripts for CONFIG_FILES section.
6340 # No need to generate the scripts if there are no CONFIG_FILES.
6341 # This happens for instance when ./config.status config.h
6342 if test -n "$CONFIG_FILES"; then
6349 for ac_last_try in false false false false false :; do
6350 cat >conf$$subs.sed <<_ACEOF
6351 SHELL!$SHELL$ac_delim
6352 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6353 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6354 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6355 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6356 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6357 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6358 exec_prefix!$exec_prefix$ac_delim
6359 prefix!$prefix$ac_delim
6360 program_transform_name!$program_transform_name$ac_delim
6361 bindir!$bindir$ac_delim
6362 sbindir!$sbindir$ac_delim
6363 libexecdir!$libexecdir$ac_delim
6364 datarootdir!$datarootdir$ac_delim
6365 datadir!$datadir$ac_delim
6366 sysconfdir!$sysconfdir$ac_delim
6367 sharedstatedir!$sharedstatedir$ac_delim
6368 localstatedir!$localstatedir$ac_delim
6369 includedir!$includedir$ac_delim
6370 oldincludedir!$oldincludedir$ac_delim
6371 docdir!$docdir$ac_delim
6372 infodir!$infodir$ac_delim
6373 htmldir!$htmldir$ac_delim
6374 dvidir!$dvidir$ac_delim
6375 pdfdir!$pdfdir$ac_delim
6376 psdir!$psdir$ac_delim
6377 libdir!$libdir$ac_delim
6378 localedir!$localedir$ac_delim
6379 mandir!$mandir$ac_delim
6381 ECHO_C!$ECHO_C$ac_delim
6382 ECHO_N!$ECHO_N$ac_delim
6383 ECHO_T!$ECHO_T$ac_delim
6385 build_alias!$build_alias$ac_delim
6386 host_alias!$host_alias$ac_delim
6387 target_alias!$target_alias$ac_delim
6389 CFLAGS!$CFLAGS$ac_delim
6390 LDFLAGS!$LDFLAGS$ac_delim
6391 CPPFLAGS!$CPPFLAGS$ac_delim
6392 ac_ct_CC!$ac_ct_CC$ac_delim
6393 EXEEXT!$EXEEXT$ac_delim
6394 OBJEXT!$OBJEXT$ac_delim
6397 EGREP!$EGREP$ac_delim
6398 LIBREADLINE!$LIBREADLINE$ac_delim
6399 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6400 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6401 INSTALL_DATA!$INSTALL_DATA$ac_delim
6402 RANLIB!$RANLIB$ac_delim
6403 AUTOCONF!$AUTOCONF$ac_delim
6404 STRIP!$STRIP$ac_delim
6407 M_OR_MM!$M_OR_MM$ac_delim
6408 sdccconf_h_dir_separator!$sdccconf_h_dir_separator$ac_delim
6409 lib_dir_suffix!$lib_dir_suffix$ac_delim
6410 LIBOBJS!$LIBOBJS$ac_delim
6411 LTLIBOBJS!$LTLIBOBJS$ac_delim
6414 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
6416 elif $ac_last_try; then
6417 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6418 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6419 { (exit 1); exit 1; }; }
6421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6425 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6426 if test -n "$ac_eof"; then
6427 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6428 ac_eof=`expr $ac_eof + 1`
6431 cat >>$CONFIG_STATUS <<_ACEOF
6432 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6436 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6437 s/^/s,@/; s/!/@,|#_!!_#|/
6440 s/'"$ac_delim"'$/,g/; t
6442 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6443 ' >>$CONFIG_STATUS <conf$$subs.sed
6444 rm -f conf$$subs.sed
6445 cat >>$CONFIG_STATUS <<_ACEOF
6452 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6453 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6454 # trailing colons and then remove the whole line if VPATH becomes empty
6455 # (actually we leave an empty line to preserve line numbers).
6456 if test "x$srcdir" = x.; then
6457 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6461 s/^\([^=]*=[ ]*\):*/\1/
6467 cat >>$CONFIG_STATUS <<\_ACEOF
6468 fi # test -n "$CONFIG_FILES"
6471 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6474 :[FHLC]) ac_mode=$ac_tag; continue;;
6476 case $ac_mode$ac_tag in
6478 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6479 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6480 { (exit 1); exit 1; }; };;
6481 :[FH]-) ac_tag=-:-;;
6482 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6499 -) ac_f="$tmp/stdin";;
6500 *) # Look for the file first in the build tree, then in the source tree
6501 # (if the path is not absolute). The absolute path cannot be DOS-style,
6502 # because $ac_f cannot contain `:'.
6506 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6508 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6509 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6510 { (exit 1); exit 1; }; };;
6512 ac_file_inputs="$ac_file_inputs $ac_f"
6515 # Let's still pretend it is `configure' which instantiates (i.e., don't
6516 # use $as_me), people would be surprised to read:
6517 # /* config.h. Generated by config.status. */
6518 configure_input="Generated from "`IFS=:
6519 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6520 if test x"$ac_file" != x-; then
6521 configure_input="$ac_file. $configure_input"
6522 { echo "$as_me:$LINENO: creating $ac_file" >&5
6523 echo "$as_me: creating $ac_file" >&6;}
6527 *:-:* | *:-) cat >"$tmp/stdin";;
6532 ac_dir=`$as_dirname -- "$ac_file" ||
6533 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6534 X"$ac_file" : 'X\(//\)[^/]' \| \
6535 X"$ac_file" : 'X\(//\)$' \| \
6536 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6557 -*) as_dir=./$as_dir;;
6559 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6563 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6564 *) as_qdir=$as_dir;;
6566 as_dirs="'$as_qdir' $as_dirs"
6567 as_dir=`$as_dirname -- "$as_dir" ||
6568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6569 X"$as_dir" : 'X\(//\)[^/]' \| \
6570 X"$as_dir" : 'X\(//\)$' \| \
6571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6590 test -d "$as_dir" && break
6592 test -z "$as_dirs" || eval "mkdir $as_dirs"
6593 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6594 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6595 { (exit 1); exit 1; }; }; }
6599 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6602 # A ".." for each directory in $ac_dir_suffix.
6603 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6604 case $ac_top_builddir_sub in
6605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6609 ac_abs_top_builddir=$ac_pwd
6610 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6611 # for backward compatibility:
6612 ac_top_builddir=$ac_top_build_prefix
6615 .) # We are building in place.
6617 ac_top_srcdir=$ac_top_builddir_sub
6618 ac_abs_top_srcdir=$ac_pwd ;;
6619 [\\/]* | ?:[\\/]* ) # Absolute name.
6620 ac_srcdir=$srcdir$ac_dir_suffix;
6621 ac_top_srcdir=$srcdir
6622 ac_abs_top_srcdir=$srcdir ;;
6624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6625 ac_top_srcdir=$ac_top_build_prefix$srcdir
6626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6628 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6638 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6639 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6643 cat >>$CONFIG_STATUS <<\_ACEOF
6644 # If the template does not know about datarootdir, expand it.
6645 # FIXME: This hack should be removed a few years after 2.60.
6646 ac_datarootdir_hack=; ac_datarootdir_seen=
6648 case `sed -n '/datarootdir/ {
6657 ' $ac_file_inputs` in
6658 *datarootdir*) ac_datarootdir_seen=yes;;
6659 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6660 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6661 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6663 cat >>$CONFIG_STATUS <<_ACEOF
6664 ac_datarootdir_hack='
6665 s&@datadir@&$datadir&g
6666 s&@docdir@&$docdir&g
6667 s&@infodir@&$infodir&g
6668 s&@localedir@&$localedir&g
6669 s&@mandir@&$mandir&g
6670 s&\\\${datarootdir}&$datarootdir&g' ;;
6674 # Neutralize VPATH when `$srcdir' = `.'.
6675 # Shell code in configure.ac might set extrasub.
6676 # FIXME: do we really want to maintain this feature?
6677 cat >>$CONFIG_STATUS <<_ACEOF
6681 cat >>$CONFIG_STATUS <<\_ACEOF
6683 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6684 s&@configure_input@&$configure_input&;t t
6685 s&@top_builddir@&$ac_top_builddir_sub&;t t
6686 s&@srcdir@&$ac_srcdir&;t t
6687 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6688 s&@top_srcdir@&$ac_top_srcdir&;t t
6689 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6690 s&@builddir@&$ac_builddir&;t t
6691 s&@abs_builddir@&$ac_abs_builddir&;t t
6692 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6693 s&@INSTALL@&$ac_INSTALL&;t t
6694 $ac_datarootdir_hack
6695 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6697 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6698 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6699 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6700 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6701 which seems to be undefined. Please make sure it is defined." >&5
6702 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6703 which seems to be undefined. Please make sure it is defined." >&2;}
6707 -) cat "$tmp/out"; rm -f "$tmp/out";;
6708 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6717 # Transform confdefs.h into a sed script `conftest.defines', that
6718 # substitutes the proper values into config.h.in to produce config.h.
6719 rm -f conftest.defines conftest.tail
6720 # First, append a space to every undef/define line, to ease matching.
6721 echo 's/$/ /' >conftest.defines
6722 # Then, protect against being on the right side of a sed subst, or in
6723 # an unquoted here document, in config.status. If some macros were
6724 # called several times there might be several #defines for the same
6725 # symbol, which is useless. But do not sort them, since the last
6726 # AC_DEFINE must be honored.
6727 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6728 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6729 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6730 # PARAMS is the parameter list in the macro definition--in most cases, it's
6731 # just an empty string.
6732 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6733 ac_dB='\\)[ (].*,\\1define\\2'
6741 s/^[ ]*#[ ]*define[ ][ ]*//
6746 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6747 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6748 ' >>conftest.defines
6750 # Remove the space that was appended to ease matching.
6751 # Then replace #undef with comments. This is necessary, for
6752 # example, in the case of _POSIX_SOURCE, which is predefined and required
6753 # on some systems where configure will not decide to define it.
6754 # (The regexp can be short, since the line contains either #define or #undef.)
6756 s,^[ #]*u.*,/* & */,' >>conftest.defines
6758 # Break up conftest.defines:
6761 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6762 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6763 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6765 ac_in='$ac_file_inputs'
6766 ac_out='"$tmp/out1"'
6767 ac_nxt='"$tmp/out2"'
6771 # Write a here document:
6772 cat >>$CONFIG_STATUS <<_ACEOF
6773 # First, check the format of the line:
6774 cat >"\$tmp/defines.sed" <<\\CEOF
6775 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6776 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6780 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6782 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6783 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6784 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6785 grep . conftest.tail >/dev/null || break
6786 rm -f conftest.defines
6787 mv conftest.tail conftest.defines
6789 rm -f conftest.defines conftest.tail
6791 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6792 cat >>$CONFIG_STATUS <<\_ACEOF
6793 if test x"$ac_file" != x-; then
6794 echo "/* $configure_input */" >"$tmp/config.h"
6795 cat "$ac_result" >>"$tmp/config.h"
6796 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6797 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6798 echo "$as_me: $ac_file is unchanged" >&6;}
6801 mv "$tmp/config.h" $ac_file
6804 echo "/* $configure_input */"
6816 { (exit 0); exit 0; }
6818 chmod +x $CONFIG_STATUS
6819 ac_clean_files=$ac_clean_files_save
6822 # configure is writing to config.log, and then calls config.status.
6823 # config.status does its own redirection, appending to config.log.
6824 # Unfortunately, on DOS this fails, as config.log is still kept open
6825 # by configure, so config.status won't be able to write to it; its
6826 # output is simply discarded. So we exec the FD to /dev/null,
6827 # effectively closing config.log, so it can be properly (re)opened and
6828 # appended to by config.status. When coming back to configure, we
6829 # need to make the FD available again.
6830 if test "$no_create" != yes; then
6832 ac_config_status_args=
6833 test "$silent" = yes &&
6834 ac_config_status_args="$ac_config_status_args --quiet"
6836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6839 # would make configure fail if this is the last instruction.
6840 $ac_cs_success || { (exit 1); exit 1; }
6844 # Prepare result message
6845 # ======================
6847 # In the C-header we need \\ as dir-separator, but in the message only \
6848 dirch=${sdccconf_h_dir_separator}
6849 test ${dirch} = '\\' && dirch='\'
6851 { echo "$as_me:$LINENO: result:
6852 sdcdb is now configured for
6854 Build: ${build_alias}
6856 Source directory: ${srcdir}
6861 binary files: ${exec_prefix}
6862 include files: ${datadir}/${include_dir_suffix}
6863 library files: ${datadir}/${lib_dir_suffix}
6864 documentation: ${docdir}
6869 Search paths (incomplete, see manual for all search paths):
6870 binary files: \$SDCC_HOME${binPath}
6871 include files: ${incPath1}
6872 path(argv[0])${incPath2}
6874 library files: \$SDCC_HOME${libPath1}${dirch}<model>
6875 path(argv[0])${libPath2}${dirch}<model>
6876 ${libPath3}${dirch}<model>
6879 sdcdb is now configured for
6881 Build: ${build_alias}
6883 Source directory: ${srcdir}
6888 binary files: ${exec_prefix}
6889 include files: ${datadir}/${include_dir_suffix}
6890 library files: ${datadir}/${lib_dir_suffix}
6891 documentation: ${docdir}
6896 Search paths (incomplete, see manual for all search paths):
6897 binary files: \$SDCC_HOME${binPath}
6898 include files: ${incPath1}
6899 path(argv[0])${incPath2}
6901 library files: \$SDCC_HOME${libPath1}${dirch}<model>
6902 path(argv[0])${libPath2}${dirch}<model>
6903 ${libPath3}${dirch}<model>
6905 # End of configure/configure.in