2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="mtx.c"
580 ac_default_prefix=/usr/local
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
685 ac_precious_vars='build_alias
696 # Initialize some variables set by options.
698 ac_init_version=false
699 # The variables have the same names as the options, with
700 # dashes changed to underlines.
708 program_transform_name=s,x,x,
716 # Installation directory options.
717 # These are left unexpanded so users can "make install exec_prefix=/foo"
718 # and all the variables that are supposed to be based on exec_prefix
719 # by default will actually change.
720 # Use braces instead of parens because sh, perl, etc. also accept them.
721 # (The list follows the same order as the GNU Coding Standards.)
722 bindir='${exec_prefix}/bin'
723 sbindir='${exec_prefix}/sbin'
724 libexecdir='${exec_prefix}/libexec'
725 datarootdir='${prefix}/share'
726 datadir='${datarootdir}'
727 sysconfdir='${prefix}/etc'
728 sharedstatedir='${prefix}/com'
729 localstatedir='${prefix}/var'
730 includedir='${prefix}/include'
731 oldincludedir='/usr/include'
732 docdir='${datarootdir}/doc/${PACKAGE}'
733 infodir='${datarootdir}/info'
738 libdir='${exec_prefix}/lib'
739 localedir='${datarootdir}/locale'
740 mandir='${datarootdir}/man'
746 # If the previous option needs an argument, assign it.
747 if test -n "$ac_prev"; then
748 eval $ac_prev=\$ac_option
754 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
758 # Accept the important Cygnus configure options, so we can diagnose typos.
760 case $ac_dashdash$ac_option in
764 -bindir | --bindir | --bindi | --bind | --bin | --bi)
766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
769 -build | --build | --buil | --bui | --bu)
770 ac_prev=build_alias ;;
771 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772 build_alias=$ac_optarg ;;
774 -cache-file | --cache-file | --cache-fil | --cache-fi \
775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776 ac_prev=cache_file ;;
777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779 cache_file=$ac_optarg ;;
782 cache_file=config.cache ;;
784 -datadir | --datadir | --datadi | --datad)
786 -datadir=* | --datadir=* | --datadi=* | --datad=*)
787 datadir=$ac_optarg ;;
789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790 | --dataroo | --dataro | --datar)
791 ac_prev=datarootdir ;;
792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794 datarootdir=$ac_optarg ;;
796 -disable-* | --disable-*)
797 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
801 { (exit 1); exit 1; }; }
802 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
803 eval enable_$ac_feature=no ;;
805 -docdir | --docdir | --docdi | --doc | --do)
807 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
810 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
815 -enable-* | --enable-*)
816 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820 { (exit 1); exit 1; }; }
821 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
822 eval enable_$ac_feature=\$ac_optarg ;;
824 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
825 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
826 | --exec | --exe | --ex)
827 ac_prev=exec_prefix ;;
828 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
829 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
830 | --exec=* | --exe=* | --ex=*)
831 exec_prefix=$ac_optarg ;;
833 -gas | --gas | --ga | --g)
834 # Obsolete; use --with-gas.
837 -help | --help | --hel | --he | -h)
839 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
840 ac_init_help=recursive ;;
841 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
842 ac_init_help=short ;;
844 -host | --host | --hos | --ho)
845 ac_prev=host_alias ;;
846 -host=* | --host=* | --hos=* | --ho=*)
847 host_alias=$ac_optarg ;;
849 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
851 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
853 htmldir=$ac_optarg ;;
855 -includedir | --includedir | --includedi | --included | --include \
856 | --includ | --inclu | --incl | --inc)
857 ac_prev=includedir ;;
858 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
859 | --includ=* | --inclu=* | --incl=* | --inc=*)
860 includedir=$ac_optarg ;;
862 -infodir | --infodir | --infodi | --infod | --info | --inf)
864 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
865 infodir=$ac_optarg ;;
867 -libdir | --libdir | --libdi | --libd)
869 -libdir=* | --libdir=* | --libdi=* | --libd=*)
872 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
873 | --libexe | --libex | --libe)
874 ac_prev=libexecdir ;;
875 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
876 | --libexe=* | --libex=* | --libe=*)
877 libexecdir=$ac_optarg ;;
879 -localedir | --localedir | --localedi | --localed | --locale)
881 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
882 localedir=$ac_optarg ;;
884 -localstatedir | --localstatedir | --localstatedi | --localstated \
885 | --localstate | --localstat | --localsta | --localst | --locals)
886 ac_prev=localstatedir ;;
887 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
888 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
889 localstatedir=$ac_optarg ;;
891 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
893 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
897 # Obsolete; use --without-fp.
900 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
901 | --no-cr | --no-c | -n)
904 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
905 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
908 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
909 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
910 | --oldin | --oldi | --old | --ol | --o)
911 ac_prev=oldincludedir ;;
912 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
913 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
914 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
915 oldincludedir=$ac_optarg ;;
917 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
919 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
922 -program-prefix | --program-prefix | --program-prefi | --program-pref \
923 | --program-pre | --program-pr | --program-p)
924 ac_prev=program_prefix ;;
925 -program-prefix=* | --program-prefix=* | --program-prefi=* \
926 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
927 program_prefix=$ac_optarg ;;
929 -program-suffix | --program-suffix | --program-suffi | --program-suff \
930 | --program-suf | --program-su | --program-s)
931 ac_prev=program_suffix ;;
932 -program-suffix=* | --program-suffix=* | --program-suffi=* \
933 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
934 program_suffix=$ac_optarg ;;
936 -program-transform-name | --program-transform-name \
937 | --program-transform-nam | --program-transform-na \
938 | --program-transform-n | --program-transform- \
939 | --program-transform | --program-transfor \
940 | --program-transfo | --program-transf \
941 | --program-trans | --program-tran \
942 | --progr-tra | --program-tr | --program-t)
943 ac_prev=program_transform_name ;;
944 -program-transform-name=* | --program-transform-name=* \
945 | --program-transform-nam=* | --program-transform-na=* \
946 | --program-transform-n=* | --program-transform-=* \
947 | --program-transform=* | --program-transfor=* \
948 | --program-transfo=* | --program-transf=* \
949 | --program-trans=* | --program-tran=* \
950 | --progr-tra=* | --program-tr=* | --program-t=*)
951 program_transform_name=$ac_optarg ;;
953 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
955 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
958 -psdir | --psdir | --psdi | --psd | --ps)
960 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
964 | -silent | --silent | --silen | --sile | --sil)
967 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
969 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
971 sbindir=$ac_optarg ;;
973 -sharedstatedir | --sharedstatedir | --sharedstatedi \
974 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
975 | --sharedst | --shareds | --shared | --share | --shar \
977 ac_prev=sharedstatedir ;;
978 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
979 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
980 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
982 sharedstatedir=$ac_optarg ;;
984 -site | --site | --sit)
986 -site=* | --site=* | --sit=*)
989 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
991 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
994 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
995 | --syscon | --sysco | --sysc | --sys | --sy)
996 ac_prev=sysconfdir ;;
997 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
998 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
999 sysconfdir=$ac_optarg ;;
1001 -target | --target | --targe | --targ | --tar | --ta | --t)
1002 ac_prev=target_alias ;;
1003 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1004 target_alias=$ac_optarg ;;
1006 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1009 -version | --version | --versio | --versi | --vers | -V)
1010 ac_init_version=: ;;
1013 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid package name: $ac_package" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1019 eval with_$ac_package=\$ac_optarg ;;
1021 -without-* | --without-*)
1022 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid package name: $ac_package" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1028 eval with_$ac_package=no ;;
1031 # Obsolete; use --with-x.
1034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1035 | --x-incl | --x-inc | --x-in | --x-i)
1036 ac_prev=x_includes ;;
1037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1039 x_includes=$ac_optarg ;;
1041 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1043 ac_prev=x_libraries ;;
1044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1046 x_libraries=$ac_optarg ;;
1048 -*) { echo "$as_me: error: unrecognized option: $ac_option
1049 Try \`$0 --help' for more information." >&2
1050 { (exit 1); exit 1; }; }
1054 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1058 { (exit 1); exit 1; }; }
1059 eval $ac_envvar=\$ac_optarg
1060 export $ac_envvar ;;
1063 # FIXME: should be removed in autoconf 3.0.
1064 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1073 if test -n "$ac_prev"; then
1074 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075 { echo "$as_me: error: missing argument to $ac_option" >&2
1076 { (exit 1); exit 1; }; }
1079 # Be sure to have absolute directory names.
1080 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081 datadir sysconfdir sharedstatedir localstatedir includedir \
1082 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083 libdir localedir mandir
1085 eval ac_val=\$$ac_var
1087 [\\/$]* | ?:[\\/]* ) continue;;
1088 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1090 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1091 { (exit 1); exit 1; }; }
1094 # There might be people who depend on the old broken behavior: `$host'
1095 # used to hold the argument of --host etc.
1096 # FIXME: To remove some day.
1099 target=$target_alias
1101 # FIXME: To remove some day.
1102 if test "x$host_alias" != x; then
1103 if test "x$build_alias" = x; then
1104 cross_compiling=maybe
1105 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1106 If a cross compiler is detected then cross compile mode will be used." >&2
1107 elif test "x$build_alias" != "x$host_alias"; then
1113 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1115 test "$silent" = yes && exec 6>/dev/null
1118 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1119 ac_ls_di=`ls -di .` &&
1120 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1121 { echo "$as_me: error: Working directory cannot be determined" >&2
1122 { (exit 1); exit 1; }; }
1123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1124 { echo "$as_me: error: pwd does not report name of working directory" >&2
1125 { (exit 1); exit 1; }; }
1128 # Find the source files, if location was not specified.
1129 if test -z "$srcdir"; then
1130 ac_srcdir_defaulted=yes
1131 # Try the directory containing this script, then the parent directory.
1132 ac_confdir=`$as_dirname -- "$0" ||
1133 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134 X"$0" : 'X\(//\)[^/]' \| \
1135 X"$0" : 'X\(//\)$' \| \
1136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156 if test ! -r "$srcdir/$ac_unique_file"; then
1160 ac_srcdir_defaulted=no
1162 if test ! -r "$srcdir/$ac_unique_file"; then
1163 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1164 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1165 { (exit 1); exit 1; }; }
1167 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1169 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1170 { (exit 1); exit 1; }; }
1172 # When building in place, set srcdir=.
1173 if test "$ac_abs_confdir" = "$ac_pwd"; then
1176 # Remove unnecessary trailing slashes from srcdir.
1177 # Double slashes in file names in object file debugging info
1178 # mess up M-x gdb in Emacs.
1180 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1182 for ac_var in $ac_precious_vars; do
1183 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1184 eval ac_env_${ac_var}_value=\$${ac_var}
1185 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1186 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1190 # Report the --help message.
1192 if test "$ac_init_help" = "long"; then
1193 # Omit some internal or obsolete options to make the list less imposing.
1194 # This message is too long to be a string in the A/UX 3.1 sh.
1196 \`configure' configures this package to adapt to many kinds of systems.
1198 Usage: $0 [OPTION]... [VAR=VALUE]...
1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201 VAR=VALUE. See below for descriptions of some of the useful variables.
1203 Defaults for the options are specified in brackets.
1206 -h, --help display this help and exit
1207 --help=short display options specific to this package
1208 --help=recursive display the short help of all the included packages
1209 -V, --version display version information and exit
1210 -q, --quiet, --silent do not print \`checking...' messages
1211 --cache-file=FILE cache test results in FILE [disabled]
1212 -C, --config-cache alias for \`--cache-file=config.cache'
1213 -n, --no-create do not create output files
1214 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1216 Installation directories:
1217 --prefix=PREFIX install architecture-independent files in PREFIX
1218 [$ac_default_prefix]
1219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1222 By default, \`make install' will install all the files in
1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225 for instance \`--prefix=\$HOME'.
1227 For better control, use the options below.
1229 Fine tuning of the installation directories:
1230 --bindir=DIR user executables [EPREFIX/bin]
1231 --sbindir=DIR system admin executables [EPREFIX/sbin]
1232 --libexecdir=DIR program executables [EPREFIX/libexec]
1233 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1234 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1235 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1236 --libdir=DIR object code libraries [EPREFIX/lib]
1237 --includedir=DIR C header files [PREFIX/include]
1238 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1239 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1240 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1241 --infodir=DIR info documentation [DATAROOTDIR/info]
1242 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1243 --mandir=DIR man documentation [DATAROOTDIR/man]
1244 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1245 --htmldir=DIR html documentation [DOCDIR]
1246 --dvidir=DIR dvi documentation [DOCDIR]
1247 --pdfdir=DIR pdf documentation [DOCDIR]
1248 --psdir=DIR ps documentation [DOCDIR]
1254 --build=BUILD configure for building on BUILD [guessed]
1255 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1256 --target=TARGET configure for building compilers for TARGET [HOST]
1260 if test -n "$ac_init_help"; then
1264 Some influential environment variables:
1265 CC C compiler command
1266 CFLAGS C compiler flags
1267 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1268 nonstandard directory <lib dir>
1269 LIBS libraries to pass to the linker, e.g. -l<library>
1270 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1271 you have headers in a nonstandard directory <include dir>
1274 Use these variables to override the choices made by `configure' or to help
1275 it to find libraries and programs with nonstandard names/locations.
1281 if test "$ac_init_help" = "recursive"; then
1282 # If there are subdirs, report their specific --help.
1283 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1284 test -d "$ac_dir" || continue
1288 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1290 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1291 # A ".." for each directory in $ac_dir_suffix.
1292 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1293 case $ac_top_builddir_sub in
1294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1298 ac_abs_top_builddir=$ac_pwd
1299 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1300 # for backward compatibility:
1301 ac_top_builddir=$ac_top_build_prefix
1304 .) # We are building in place.
1306 ac_top_srcdir=$ac_top_builddir_sub
1307 ac_abs_top_srcdir=$ac_pwd ;;
1308 [\\/]* | ?:[\\/]* ) # Absolute name.
1309 ac_srcdir=$srcdir$ac_dir_suffix;
1310 ac_top_srcdir=$srcdir
1311 ac_abs_top_srcdir=$srcdir ;;
1313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1314 ac_top_srcdir=$ac_top_build_prefix$srcdir
1315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1317 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1319 cd "$ac_dir" || { ac_status=$?; continue; }
1320 # Check for guested configure.
1321 if test -f "$ac_srcdir/configure.gnu"; then
1323 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1324 elif test -f "$ac_srcdir/configure"; then
1326 $SHELL "$ac_srcdir/configure" --help=recursive
1328 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1330 cd "$ac_pwd" || { ac_status=$?; break; }
1334 test -n "$ac_init_help" && exit $ac_status
1335 if $ac_init_version; then
1338 generated by GNU Autoconf 2.61
1340 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1341 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1342 This configure script is free software; the Free Software Foundation
1343 gives unlimited permission to copy, distribute and modify it.
1347 cat >config.log <<_ACEOF
1348 This file contains any messages produced by compilers while
1349 running configure, to aid debugging if configure makes a mistake.
1351 It was created by $as_me, which was
1352 generated by GNU Autoconf 2.61. Invocation command line was
1364 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1365 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1366 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1367 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1368 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1370 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1371 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1373 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1374 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1375 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1376 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1377 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1378 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1379 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 test -z "$as_dir" && as_dir=.
1388 echo "PATH: $as_dir"
1404 # Keep a trace of the command line.
1405 # Strip out --no-create and --no-recursion so they do not pile up.
1406 # Strip out --silent because we don't want to record it for future runs.
1407 # Also quote any args containing shell meta-characters.
1408 # Make two passes to allow for proper duplicate-argument suppression.
1412 ac_must_keep_next=false
1418 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1420 | -silent | --silent | --silen | --sile | --sil)
1423 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1426 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1428 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1429 if test $ac_must_keep_next = true; then
1430 ac_must_keep_next=false # Got value, back to normal.
1433 *=* | --config-cache | -C | -disable-* | --disable-* \
1434 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1435 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1436 | -with-* | --with-* | -without-* | --without-* | --x)
1437 case "$ac_configure_args0 " in
1438 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1441 -* ) ac_must_keep_next=true ;;
1444 ac_configure_args="$ac_configure_args '$ac_arg'"
1449 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1450 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1452 # When interrupted or exit'd, cleanup temporary files, and complete
1453 # config.log. We remove comments because anyway the quotes in there
1454 # would cause problems or look ugly.
1455 # WARNING: Use '\'' to represent an apostrophe within the trap.
1456 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1457 trap 'exit_status=$?
1458 # Save into config.log some information that might help in debugging.
1463 ## ---------------- ##
1464 ## Cache variables. ##
1465 ## ---------------- ##
1468 # The following way of writing the cache mishandles newlines in values,
1470 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1471 eval ac_val=\$$ac_var
1475 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1476 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1479 _ | IFS | as_nl) ;; #(
1480 *) $as_unset $ac_var ;;
1485 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1486 *${as_nl}ac_space=\ *)
1488 "s/'\''/'\''\\\\'\'''\''/g;
1489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1500 ## ----------------- ##
1501 ## Output variables. ##
1502 ## ----------------- ##
1505 for ac_var in $ac_subst_vars
1507 eval ac_val=\$$ac_var
1509 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1511 echo "$ac_var='\''$ac_val'\''"
1515 if test -n "$ac_subst_files"; then
1517 ## ------------------- ##
1518 ## File substitutions. ##
1519 ## ------------------- ##
1522 for ac_var in $ac_subst_files
1524 eval ac_val=\$$ac_var
1526 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1528 echo "$ac_var='\''$ac_val'\''"
1533 if test -s confdefs.h; then
1543 test "$ac_signal" != 0 &&
1544 echo "$as_me: caught signal $ac_signal"
1545 echo "$as_me: exit $exit_status"
1547 rm -f core *.core core.conftest.* &&
1548 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1551 for ac_signal in 1 2 13 15; do
1552 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1556 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1557 rm -f -r conftest* confdefs.h
1559 # Predefined preprocessor variables.
1561 cat >>confdefs.h <<_ACEOF
1562 #define PACKAGE_NAME "$PACKAGE_NAME"
1566 cat >>confdefs.h <<_ACEOF
1567 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1571 cat >>confdefs.h <<_ACEOF
1572 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1576 cat >>confdefs.h <<_ACEOF
1577 #define PACKAGE_STRING "$PACKAGE_STRING"
1581 cat >>confdefs.h <<_ACEOF
1582 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1586 # Let the site file select an alternate cache file if it wants to.
1587 # Prefer explicitly selected file to automatically selected ones.
1588 if test -n "$CONFIG_SITE"; then
1589 set x "$CONFIG_SITE"
1590 elif test "x$prefix" != xNONE; then
1591 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1593 set x "$ac_default_prefix/share/config.site" \
1594 "$ac_default_prefix/etc/config.site"
1599 if test -r "$ac_site_file"; then
1600 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1601 echo "$as_me: loading site script $ac_site_file" >&6;}
1602 sed 's/^/| /' "$ac_site_file" >&5
1607 if test -r "$cache_file"; then
1608 # Some versions of bash will fail to source /dev/null (special
1609 # files actually), so we avoid doing that.
1610 if test -f "$cache_file"; then
1611 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1612 echo "$as_me: loading cache $cache_file" >&6;}
1614 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1615 *) . "./$cache_file";;
1619 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1620 echo "$as_me: creating cache $cache_file" >&6;}
1624 # Check that the precious variables saved in the cache have kept the same
1626 ac_cache_corrupted=false
1627 for ac_var in $ac_precious_vars; do
1628 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1629 eval ac_new_set=\$ac_env_${ac_var}_set
1630 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1631 eval ac_new_val=\$ac_env_${ac_var}_value
1632 case $ac_old_set,$ac_new_set in
1634 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1635 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1636 ac_cache_corrupted=: ;;
1638 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1639 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1640 ac_cache_corrupted=: ;;
1643 if test "x$ac_old_val" != "x$ac_new_val"; then
1644 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1645 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1646 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1647 echo "$as_me: former value: $ac_old_val" >&2;}
1648 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1649 echo "$as_me: current value: $ac_new_val" >&2;}
1650 ac_cache_corrupted=:
1653 # Pass precious variables to config.status.
1654 if test "$ac_new_set" = set; then
1656 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 *) ac_arg=$ac_var=$ac_new_val ;;
1659 case " $ac_configure_args " in
1660 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1661 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1665 if $ac_cache_corrupted; then
1666 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1667 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1668 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1669 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1670 { (exit 1); exit 1; }; }
1690 ac_cpp='$CPP $CPPFLAGS'
1691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1696 ac_config_headers="$ac_config_headers config.h"
1700 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1701 if test -f "$ac_dir/install-sh"; then
1703 ac_install_sh="$ac_aux_dir/install-sh -c"
1705 elif test -f "$ac_dir/install.sh"; then
1707 ac_install_sh="$ac_aux_dir/install.sh -c"
1709 elif test -f "$ac_dir/shtool"; then
1711 ac_install_sh="$ac_aux_dir/shtool install -c"
1715 if test -z "$ac_aux_dir"; then
1716 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1717 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1718 { (exit 1); exit 1; }; }
1721 # These three variables are undocumented and unsupported,
1722 # and are intended to be withdrawn in a future Autoconf release.
1723 # They can cause serious problems if a builder's source tree is in a directory
1724 # whose full name contains unusual characters.
1725 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1726 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1727 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1730 # Make sure we can run config.sub.
1731 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1732 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1733 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1734 { (exit 1); exit 1; }; }
1736 { echo "$as_me:$LINENO: checking build system type" >&5
1737 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1738 if test "${ac_cv_build+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 ac_build_alias=$build_alias
1742 test "x$ac_build_alias" = x &&
1743 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1744 test "x$ac_build_alias" = x &&
1745 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1746 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1747 { (exit 1); exit 1; }; }
1748 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1749 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1750 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1751 { (exit 1); exit 1; }; }
1754 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1755 echo "${ECHO_T}$ac_cv_build" >&6; }
1756 case $ac_cv_build in
1758 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1759 echo "$as_me: error: invalid value of canonical build" >&2;}
1760 { (exit 1); exit 1; }; };;
1763 ac_save_IFS=$IFS; IFS='-'
1769 # Remember, the first character of IFS is used to create $*,
1770 # except with old shells:
1773 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1776 { echo "$as_me:$LINENO: checking host system type" >&5
1777 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1778 if test "${ac_cv_host+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 if test "x$host_alias" = x; then
1782 ac_cv_host=$ac_cv_build
1784 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1785 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1786 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1787 { (exit 1); exit 1; }; }
1791 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1792 echo "${ECHO_T}$ac_cv_host" >&6; }
1795 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1796 echo "$as_me: error: invalid value of canonical host" >&2;}
1797 { (exit 1); exit 1; }; };;
1800 ac_save_IFS=$IFS; IFS='-'
1806 # Remember, the first character of IFS is used to create $*,
1807 # except with old shells:
1810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1813 { echo "$as_me:$LINENO: checking target system type" >&5
1814 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1815 if test "${ac_cv_target+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 if test "x$target_alias" = x; then
1819 ac_cv_target=$ac_cv_host
1821 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1822 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1823 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1824 { (exit 1); exit 1; }; }
1828 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1829 echo "${ECHO_T}$ac_cv_target" >&6; }
1830 case $ac_cv_target in
1832 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1833 echo "$as_me: error: invalid value of canonical target" >&2;}
1834 { (exit 1); exit 1; }; };;
1836 target=$ac_cv_target
1837 ac_save_IFS=$IFS; IFS='-'
1843 # Remember, the first character of IFS is used to create $*,
1844 # except with old shells:
1847 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1850 # The aliases save the names the user supplied, while $host etc.
1851 # will get canonicalized.
1852 test -n "$target_alias" &&
1853 test "$program_prefix$program_suffix$program_transform_name" = \
1855 program_prefix=${target_alias}-
1859 *linux*) cat >>confdefs.h <<\_ACEOF
1865 *solaris*) cat >>confdefs.h <<\_ACEOF
1871 *sunos*) TARGET=solarissparc
1873 *freebsd*) TARGET=freebsd86
1883 *sequent*) cat >>confdefs.h <<\_ACEOF
1888 *MINGW*) TARGET=mingw
1890 *MinGW*) TARGET=mingw
1892 *mingw*) TARGET=mingw
1899 # force us down to '386 if we're on some other machine.
1900 *?86*) host_cpu='i386'
1911 ac_cpp='$CPP $CPPFLAGS'
1912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1933 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 if test -n "$CC"; then
1945 { echo "$as_me:$LINENO: result: $CC" >&5
1946 echo "${ECHO_T}$CC" >&6; }
1948 { echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6; }
1954 if test -z "$ac_cv_prog_CC"; then
1956 # Extract the first word of "gcc", so it can be a program name with args.
1957 set dummy gcc; ac_word=$2
1958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1960 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 if test -n "$ac_ct_CC"; then
1964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973 ac_cv_prog_ac_ct_CC="gcc"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1984 if test -n "$ac_ct_CC"; then
1985 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1986 echo "${ECHO_T}$ac_ct_CC" >&6; }
1988 { echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6; }
1992 if test "x$ac_ct_CC" = x; then
1995 case $cross_compiling:$ac_tool_warned in
1997 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1998 whose name does not start with the host triplet. If you think this
1999 configuration is useful to you, please write to autoconf@gnu.org." >&5
2000 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2001 whose name does not start with the host triplet. If you think this
2002 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2003 ac_tool_warned=yes ;;
2011 if test -z "$CC"; then
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}cc; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_CC="${ac_tool_prefix}cc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 if test -n "$CC"; then
2042 { echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6; }
2045 { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2052 if test -z "$CC"; then
2053 # Extract the first word of "cc", so it can be a program name with args.
2054 set dummy cc; ac_word=$2
2055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2072 ac_prog_rejected=yes
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 if test $ac_prog_rejected = yes; then
2084 # We found a bogon in the path, so make sure we never use it.
2085 set dummy $ac_cv_prog_CC
2087 if test $# != 0; then
2088 # We chose a different compiler from the bogus one.
2089 # However, it has the same basename, so the bogon will be chosen
2090 # first if we set CC to just the basename; use the full file name.
2092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2098 if test -n "$CC"; then
2099 { echo "$as_me:$LINENO: result: $CC" >&5
2100 echo "${ECHO_T}$CC" >&6; }
2102 { echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6; }
2108 if test -z "$CC"; then
2109 if test -n "$ac_tool_prefix"; then
2110 for ac_prog in cl.exe
2112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2116 if test "${ac_cv_prog_CC+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 if test -n "$CC"; then
2120 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 if test -n "$CC"; then
2141 { echo "$as_me:$LINENO: result: $CC" >&5
2142 echo "${ECHO_T}$CC" >&6; }
2144 { echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6; }
2149 test -n "$CC" && break
2152 if test -z "$CC"; then
2154 for ac_prog in cl.exe
2156 # Extract the first word of "$ac_prog", so it can be a program name with args.
2157 set dummy $ac_prog; ac_word=$2
2158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2160 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 if test -n "$ac_ct_CC"; then
2164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2173 ac_cv_prog_ac_ct_CC="$ac_prog"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184 if test -n "$ac_ct_CC"; then
2185 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2186 echo "${ECHO_T}$ac_ct_CC" >&6; }
2188 { echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6; }
2193 test -n "$ac_ct_CC" && break
2196 if test "x$ac_ct_CC" = x; then
2199 case $cross_compiling:$ac_tool_warned in
2201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&5
2204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2205 whose name does not start with the host triplet. If you think this
2206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2207 ac_tool_warned=yes ;;
2216 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: no acceptable C compiler found in \$PATH
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2222 # Provide some information about the compiler.
2223 echo "$as_me:$LINENO: checking for C compiler version" >&5
2224 ac_compiler=`set X $ac_compile; echo $2`
2225 { (ac_try="$ac_compiler --version >&5"
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231 (eval "$ac_compiler --version >&5") 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }
2235 { (ac_try="$ac_compiler -v >&5"
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241 (eval "$ac_compiler -v >&5") 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }
2245 { (ac_try="$ac_compiler -V >&5"
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2251 (eval "$ac_compiler -V >&5") 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }
2256 cat >conftest.$ac_ext <<_ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2271 ac_clean_files_save=$ac_clean_files
2272 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2273 # Try to create an executable without -o first, disregard a.out.
2274 # It will help us diagnose broken compilers, and finding out an intuition
2276 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2277 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2278 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2280 # List of possible output files, starting from the most likely.
2281 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2282 # only as a last resort. b.out is created by i960 compilers.
2283 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2285 # The IRIX 6 linker writes into existing files which may not be
2286 # executable, retaining their permissions. Remove them first so a
2287 # subsequent execution test works.
2289 for ac_file in $ac_files
2292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2293 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2298 if { (ac_try="$ac_link_default"
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304 (eval "$ac_link_default") 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2309 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2310 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2311 # so that the user can short-circuit this test for compilers unknown to
2313 for ac_file in $ac_files ''
2315 test -f "$ac_file" || continue
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2320 # We found the default executable, but exeext='' is most
2324 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2326 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 # We set ac_cv_exeext here because the later test for it is not
2329 # safe: cross compilers may not add the suffix if given an `-o'
2330 # argument, so we may need to know it at that point already.
2331 # Even if this section looks crufty: it has the advantage of
2338 test "$ac_cv_exeext" = no && ac_cv_exeext=
2344 { echo "$as_me:$LINENO: result: $ac_file" >&5
2345 echo "${ECHO_T}$ac_file" >&6; }
2346 if test -z "$ac_file"; then
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2350 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: C compiler cannot create executables
2353 See \`config.log' for more details." >&2;}
2354 { (exit 77); exit 77; }; }
2357 ac_exeext=$ac_cv_exeext
2359 # Check that the compiler produces executables we can run. If not, either
2360 # the compiler is broken, or we cross compile.
2361 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2362 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2363 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2364 # If not cross compiling, check that we can run a simple program.
2365 if test "$cross_compiling" != yes; then
2366 if { ac_try='./$ac_file'
2367 { (case "(($ac_try" in
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2372 (eval "$ac_try") 2>&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2378 if test "$cross_compiling" = maybe; then
2381 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2382 If you meant to cross compile, use \`--host'.
2383 See \`config.log' for more details." >&5
2384 echo "$as_me: error: cannot run C compiled programs.
2385 If you meant to cross compile, use \`--host'.
2386 See \`config.log' for more details." >&2;}
2387 { (exit 1); exit 1; }; }
2391 { echo "$as_me:$LINENO: result: yes" >&5
2392 echo "${ECHO_T}yes" >&6; }
2394 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2395 ac_clean_files=$ac_clean_files_save
2396 # Check that the compiler produces executables we can run. If not, either
2397 # the compiler is broken, or we cross compile.
2398 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2399 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2400 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2401 echo "${ECHO_T}$cross_compiling" >&6; }
2403 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2404 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2405 if { (ac_try="$ac_link"
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_link") 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
2415 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2416 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2417 # work properly (i.e., refer to `conftest.exe'), while it won't with
2419 for ac_file in conftest.exe conftest conftest.*; do
2420 test -f "$ac_file" || continue
2422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2423 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2432 See \`config.log' for more details." >&2;}
2433 { (exit 1); exit 1; }; }
2436 rm -f conftest$ac_cv_exeext
2437 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2438 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2440 rm -f conftest.$ac_ext
2441 EXEEXT=$ac_cv_exeext
2443 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2444 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2445 if test "${ac_cv_objext+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 cat >conftest.$ac_ext <<_ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2463 rm -f conftest.o conftest.obj
2464 if { (ac_try="$ac_compile"
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_compile") 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; then
2474 for ac_file in conftest.o conftest.obj conftest.*; do
2475 test -f "$ac_file" || continue;
2477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2478 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2486 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&5
2488 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2489 See \`config.log' for more details." >&2;}
2490 { (exit 1); exit 1; }; }
2493 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2495 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2496 echo "${ECHO_T}$ac_cv_objext" >&6; }
2497 OBJEXT=$ac_cv_objext
2499 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2500 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2501 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 cat >conftest.$ac_ext <<_ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2522 rm -f conftest.$ac_objext
2523 if { (ac_try="$ac_compile"
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_compile") 2>conftest.er1
2531 grep -v '^ *+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } && {
2536 test -z "$ac_c_werror_flag" ||
2537 test ! -s conftest.err
2538 } && test -s conftest.$ac_objext; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2551 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2552 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2553 GCC=`test $ac_compiler_gnu = yes && echo yes`
2554 ac_test_CFLAGS=${CFLAGS+set}
2555 ac_save_CFLAGS=$CFLAGS
2556 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2557 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_cc_g+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 ac_save_c_werror_flag=$ac_c_werror_flag
2562 ac_c_werror_flag=yes
2565 cat >conftest.$ac_ext <<_ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2580 rm -f conftest.$ac_objext
2581 if { (ac_try="$ac_compile"
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_compile") 2>conftest.er1
2589 grep -v '^ *+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } && {
2594 test -z "$ac_c_werror_flag" ||
2595 test ! -s conftest.err
2596 } && test -s conftest.$ac_objext; then
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2618 rm -f conftest.$ac_objext
2619 if { (ac_try="$ac_compile"
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625 (eval "$ac_compile") 2>conftest.er1
2627 grep -v '^ *+' conftest.er1 >conftest.err
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } && {
2632 test -z "$ac_c_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest.$ac_objext; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compile") 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } && {
2671 test -z "$ac_c_werror_flag" ||
2672 test ! -s conftest.err
2673 } && test -s conftest.$ac_objext; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 ac_c_werror_flag=$ac_save_c_werror_flag
2691 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2692 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2693 if test "$ac_test_CFLAGS" = set; then
2694 CFLAGS=$ac_save_CFLAGS
2695 elif test $ac_cv_prog_cc_g = yes; then
2696 if test "$GCC" = yes; then
2702 if test "$GCC" = yes; then
2708 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2709 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_cc_c89+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 ac_cv_prog_cc_c89=no
2715 cat >conftest.$ac_ext <<_ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2723 #include <sys/types.h>
2724 #include <sys/stat.h>
2725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2726 struct buf { int x; };
2727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2728 static char *e (p, i)
2734 static char *f (char * (*g) (char **, int), char **p, ...)
2739 s = g (p, va_arg (v,int));
2744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2745 function prototypes and stuff, but not '\xHH' hex character constants.
2746 These don't provoke an error unfortunately, instead are silently treated
2747 as 'x'. The following induces an error, until -std is added to get
2748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2749 array size at least. It's necessary to write '\x00'==0 to get something
2750 that's true only with -std. */
2751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2754 inside strings and character constants. */
2756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2758 int test (int i, double x);
2759 struct s1 {int (*f) (int a);};
2760 struct s2 {int (*f) (double a);};
2761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2775 CC="$ac_save_CC $ac_arg"
2776 rm -f conftest.$ac_objext
2777 if { (ac_try="$ac_compile"
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } && {
2790 test -z "$ac_c_werror_flag" ||
2791 test ! -s conftest.err
2792 } && test -s conftest.$ac_objext; then
2793 ac_cv_prog_cc_c89=$ac_arg
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2801 rm -f core conftest.err conftest.$ac_objext
2802 test "x$ac_cv_prog_cc_c89" != "xno" && break
2804 rm -f conftest.$ac_ext
2809 case "x$ac_cv_prog_cc_c89" in
2811 { echo "$as_me:$LINENO: result: none needed" >&5
2812 echo "${ECHO_T}none needed" >&6; } ;;
2814 { echo "$as_me:$LINENO: result: unsupported" >&5
2815 echo "${ECHO_T}unsupported" >&6; } ;;
2817 CC="$CC $ac_cv_prog_cc_c89"
2818 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2819 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 # Find a good install program. We prefer a C program (faster),
2830 # so one script is as good as another. But avoid the broken or
2831 # incompatible versions:
2832 # SysV /etc/install, /usr/sbin/install
2833 # SunOS /usr/etc/install
2834 # IRIX /sbin/install
2836 # AmigaOS /C/install, which installs bootblocks on floppy discs
2837 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2840 # OS/2's system install, which has a completely different semantic
2841 # ./install, which can be erroneously created by make from ./install.sh.
2842 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2843 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2844 if test -z "$INSTALL"; then
2845 if test "${ac_cv_path_install+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 # Account for people who put trailing slashes in PATH elements.
2855 ./ | .// | /cC/* | \
2856 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2857 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2860 # OSF1 and SCO ODT 3.0 have their own names for install.
2861 # Don't use installbsd from OSF since it installs stuff as root
2863 for ac_prog in ginstall scoinst install; do
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2866 if test $ac_prog = install &&
2867 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868 # AIX install. It has an incompatible calling convention.
2870 elif test $ac_prog = install &&
2871 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872 # program-specific install script used by HP pwplus--don't use.
2875 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2888 if test "${ac_cv_path_install+set}" = set; then
2889 INSTALL=$ac_cv_path_install
2891 # As a last resort, use the slow shell script. Don't cache a
2892 # value for INSTALL within a source directory, because that will
2893 # break other packages using the cache if that directory is
2894 # removed, or if the value is a relative name.
2895 INSTALL=$ac_install_sh
2898 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2899 echo "${ECHO_T}$INSTALL" >&6; }
2901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2902 # It thinks the first close brace ends the variable substitution.
2903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2909 # Extract the first word of "objcopy", so it can be a program name with args.
2910 set dummy objcopy; ac_word=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_USE_OBJCOPY+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 if test -n "$USE_OBJCOPY"; then
2917 ac_cv_prog_USE_OBJCOPY="$USE_OBJCOPY" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_USE_OBJCOPY="yes"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 test -z "$ac_cv_prog_USE_OBJCOPY" && ac_cv_prog_USE_OBJCOPY="no"
2937 USE_OBJCOPY=$ac_cv_prog_USE_OBJCOPY
2938 if test -n "$USE_OBJCOPY"; then
2939 { echo "$as_me:$LINENO: result: $USE_OBJCOPY" >&5
2940 echo "${ECHO_T}$USE_OBJCOPY" >&6; }
2942 { echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6; }
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2955 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2956 # On Suns, sometimes $CPP names a directory.
2957 if test -n "$CPP" && test -d "$CPP"; then
2960 if test -z "$CPP"; then
2961 if test "${ac_cv_prog_CPP+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 # Double quotes because CPP needs to be expanded
2965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2968 for ac_c_preproc_warn_flag in '' yes
2970 # Use a header file that comes with gcc, so configuring glibc
2971 # with a fresh cross-compiler works.
2972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2973 # <limits.h> exists even on freestanding compilers.
2974 # On the NeXT, cc -E runs the code through the compiler's parser,
2975 # not just through cpp. "Syntax error" is here to catch this case.
2976 cat >conftest.$ac_ext <<_ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2983 # include <limits.h>
2985 # include <assert.h>
2989 if { (ac_try="$ac_cpp conftest.$ac_ext"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null && {
3002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3003 test ! -s conftest.err
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 # Broken: fails on valid input.
3014 rm -f conftest.err conftest.$ac_ext
3016 # OK, works on sane cases. Now check whether nonexistent headers
3017 # can be detected and how.
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024 #include <ac_nonexistent.h>
3026 if { (ac_try="$ac_cpp conftest.$ac_ext"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1 >conftest.err
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } >/dev/null && {
3039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3042 # Broken: success on invalid input.
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 # Passes both tests.
3053 rm -f conftest.err conftest.$ac_ext
3056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3057 rm -f conftest.err conftest.$ac_ext
3058 if $ac_preproc_ok; then
3070 { echo "$as_me:$LINENO: result: $CPP" >&5
3071 echo "${ECHO_T}$CPP" >&6; }
3073 for ac_c_preproc_warn_flag in '' yes
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3088 # include <limits.h>
3090 # include <assert.h>
3094 if { (ac_try="$ac_cpp conftest.$ac_ext"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 # Broken: fails on valid input.
3119 rm -f conftest.err conftest.$ac_ext
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <ac_nonexistent.h>
3131 if { (ac_try="$ac_cpp conftest.$ac_ext"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null && {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3147 # Broken: success on invalid input.
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 # Passes both tests.
3158 rm -f conftest.err conftest.$ac_ext
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3166 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3181 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3182 if test "${ac_cv_path_GREP+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 # Extract the first word of "grep ggrep" to use in msg output
3186 if test -z "$GREP"; then
3187 set dummy grep ggrep; ac_prog_name=$2
3188 if test "${ac_cv_path_GREP+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 ac_path_GREP_found=false
3192 # Loop through the user's path and test for each of PROGNAME-LIST
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3197 test -z "$as_dir" && as_dir=.
3198 for ac_prog in grep ggrep; do
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3201 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3202 # Check for GNU ac_path_GREP and select it if it is found.
3203 # Check for GNU $ac_path_GREP
3204 case `"$ac_path_GREP" --version 2>&1` in
3206 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3209 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3212 cat "conftest.in" "conftest.in" >"conftest.tmp"
3213 mv "conftest.tmp" "conftest.in"
3214 cp "conftest.in" "conftest.nl"
3215 echo 'GREP' >> "conftest.nl"
3216 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3218 ac_count=`expr $ac_count + 1`
3219 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3220 # Best one so far, save it but keep looking for a better one
3221 ac_cv_path_GREP="$ac_path_GREP"
3222 ac_path_GREP_max=$ac_count
3224 # 10*(2^10) chars as input seems more than enough
3225 test $ac_count -gt 10 && break
3227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3231 $ac_path_GREP_found && break 3
3241 GREP="$ac_cv_path_GREP"
3242 if test -z "$GREP"; then
3243 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3244 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3245 { (exit 1); exit 1; }; }
3249 ac_cv_path_GREP=$GREP
3254 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3255 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3256 GREP="$ac_cv_path_GREP"
3259 { echo "$as_me:$LINENO: checking for egrep" >&5
3260 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3261 if test "${ac_cv_path_EGREP+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3265 then ac_cv_path_EGREP="$GREP -E"
3267 # Extract the first word of "egrep" to use in msg output
3268 if test -z "$EGREP"; then
3269 set dummy egrep; ac_prog_name=$2
3270 if test "${ac_cv_path_EGREP+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 ac_path_EGREP_found=false
3274 # Loop through the user's path and test for each of PROGNAME-LIST
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3279 test -z "$as_dir" && as_dir=.
3280 for ac_prog in egrep; do
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3283 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3284 # Check for GNU ac_path_EGREP and select it if it is found.
3285 # Check for GNU $ac_path_EGREP
3286 case `"$ac_path_EGREP" --version 2>&1` in
3288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3291 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3294 cat "conftest.in" "conftest.in" >"conftest.tmp"
3295 mv "conftest.tmp" "conftest.in"
3296 cp "conftest.in" "conftest.nl"
3297 echo 'EGREP' >> "conftest.nl"
3298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3300 ac_count=`expr $ac_count + 1`
3301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3302 # Best one so far, save it but keep looking for a better one
3303 ac_cv_path_EGREP="$ac_path_EGREP"
3304 ac_path_EGREP_max=$ac_count
3306 # 10*(2^10) chars as input seems more than enough
3307 test $ac_count -gt 10 && break
3309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3313 $ac_path_EGREP_found && break 3
3323 EGREP="$ac_cv_path_EGREP"
3324 if test -z "$EGREP"; then
3325 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3326 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3327 { (exit 1); exit 1; }; }
3331 ac_cv_path_EGREP=$EGREP
3337 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3338 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3339 EGREP="$ac_cv_path_EGREP"
3342 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3344 if test "${ac_cv_header_stdc+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3366 rm -f conftest.$ac_objext
3367 if { (ac_try="$ac_compile"
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_compile") 2>conftest.er1
3375 grep -v '^ *+' conftest.er1 >conftest.err
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } && {
3380 test -z "$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3382 } && test -s conftest.$ac_objext; then
3383 ac_cv_header_stdc=yes
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 ac_cv_header_stdc=no
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 if test $ac_cv_header_stdc = yes; then
3394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3395 cat >conftest.$ac_ext <<_ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 $EGREP "memchr" >/dev/null 2>&1; then
3408 ac_cv_header_stdc=no
3414 if test $ac_cv_header_stdc = yes; then
3415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3416 cat >conftest.$ac_ext <<_ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3426 $EGREP "free" >/dev/null 2>&1; then
3429 ac_cv_header_stdc=no
3435 if test $ac_cv_header_stdc = yes; then
3436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3437 if test "$cross_compiling" = yes; then
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3448 #if ((' ' & 0x0FF) == 0x020)
3449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3452 # define ISLOWER(c) \
3453 (('a' <= (c) && (c) <= 'i') \
3454 || ('j' <= (c) && (c) <= 'r') \
3455 || ('s' <= (c) && (c) <= 'z'))
3456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3464 for (i = 0; i < 256; i++)
3465 if (XOR (islower (i), ISLOWER (i))
3466 || toupper (i) != TOUPPER (i))
3471 rm -f conftest$ac_exeext
3472 if { (ac_try="$ac_link"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_link") 2>&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3482 { (case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_try") 2>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3493 echo "$as_me: program exited with status $ac_status" >&5
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3498 ac_cv_header_stdc=no
3500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3506 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3507 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3508 if test $ac_cv_header_stdc = yes; then
3510 cat >>confdefs.h <<\_ACEOF
3511 #define STDC_HEADERS 1
3516 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3526 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3527 inttypes.h stdint.h unistd.h
3529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 $ac_includes_default
3543 #include <$ac_header>
3545 rm -f conftest.$ac_objext
3546 if { (ac_try="$ac_compile"
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_compile") 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } && {
3559 test -z "$ac_c_werror_flag" ||
3560 test ! -s conftest.err
3561 } && test -s conftest.$ac_objext; then
3562 eval "$as_ac_Header=yes"
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 eval "$as_ac_Header=no"
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 ac_res=`eval echo '${'$as_ac_Header'}'`
3573 { echo "$as_me:$LINENO: result: $ac_res" >&5
3574 echo "${ECHO_T}$ac_res" >&6; }
3575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3576 cat >>confdefs.h <<_ACEOF
3577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3627 cam/scsi/scsi_message.h \
3635 sys/scsi/impl/uscsi.h \
3645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 ac_res=`eval echo '${'$as_ac_Header'}'`
3653 { echo "$as_me:$LINENO: result: $ac_res" >&5
3654 echo "${ECHO_T}$ac_res" >&6; }
3656 # Is the header compilable?
3657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 $ac_includes_default
3666 #include <$ac_header>
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3685 ac_header_compiler=yes
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_header_compiler=no
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3695 echo "${ECHO_T}$ac_header_compiler" >&6; }
3697 # Is the header present?
3698 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3700 cat >conftest.$ac_ext <<_ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 #include <$ac_header>
3708 if { (ac_try="$ac_cpp conftest.$ac_ext"
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } >/dev/null && {
3721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3724 ac_header_preproc=yes
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 ac_header_preproc=no
3732 rm -f conftest.err conftest.$ac_ext
3733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3734 echo "${ECHO_T}$ac_header_preproc" >&6; }
3736 # So? What about this header?
3737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3743 ac_header_preproc=yes
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 eval "$as_ac_Header=\$ac_header_preproc"
3768 ac_res=`eval echo '${'$as_ac_Header'}'`
3769 { echo "$as_me:$LINENO: result: $ac_res" >&5
3770 echo "${ECHO_T}$ac_res" >&6; }
3773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3774 cat >>confdefs.h <<_ACEOF
3775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3783 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3784 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3785 if test "${ac_cv_c_const+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 cat >conftest.$ac_ext <<_ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3798 /* FIXME: Include the comments suggested by Paul. */
3800 /* Ultrix mips cc rejects this. */
3801 typedef int charset[2];
3803 /* SunOS 4.1.1 cc rejects this. */
3804 char const *const *pcpcc;
3806 /* NEC SVR4.0.2 mips cc rejects this. */
3807 struct point {int x, y;};
3808 static struct point const zero = {0,0};
3809 /* AIX XL C 1.02.0.0 rejects this.
3810 It does not let you subtract one const X* pointer from another in
3811 an arm of an if-expression whose if-part is not a constant
3813 const char *g = "string";
3814 pcpcc = &g + (g ? g-g : 0);
3815 /* HPUX 7.0 cc rejects these. */
3817 ppc = (char**) pcpcc;
3818 pcpcc = (char const *const *) ppc;
3819 { /* SCO 3.2v4 cc rejects this. */
3821 char const *s = 0 ? (char *) 0 : (char const *) 0;
3826 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3828 const int *foo = &x[0];
3831 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3832 typedef const int *iptr;
3836 { /* AIX XL C 1.02.0.0 rejects this saying
3837 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3838 struct s { int j; const int *ap[3]; };
3839 struct s *b; b->j = 5;
3841 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3845 return !cs[0] && !zero.x;
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_compile") 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && {
3866 test -z "$ac_c_werror_flag" ||
3867 test ! -s conftest.err
3868 } && test -s conftest.$ac_objext; then
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3880 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3881 if test $ac_cv_c_const = no; then
3883 cat >>confdefs.h <<\_ACEOF
3889 { echo "$as_me:$LINENO: checking for size_t" >&5
3890 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
3891 if test "${ac_cv_type_size_t+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 $ac_includes_default
3901 typedef size_t ac__type_new_;
3905 if ((ac__type_new_ *) 0)
3907 if (sizeof (ac__type_new_))
3913 rm -f conftest.$ac_objext
3914 if { (ac_try="$ac_compile"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_compile") 2>conftest.er1
3922 grep -v '^ *+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } && {
3927 test -z "$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 } && test -s conftest.$ac_objext; then
3930 ac_cv_type_size_t=yes
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 ac_cv_type_size_t=no
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3941 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
3942 if test $ac_cv_type_size_t = yes; then
3946 cat >>confdefs.h <<_ACEOF
3947 #define size_t unsigned int
3952 { echo "$as_me:$LINENO: checking for pid_t" >&5
3953 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
3954 if test "${ac_cv_type_pid_t+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 $ac_includes_default
3964 typedef pid_t ac__type_new_;
3968 if ((ac__type_new_ *) 0)
3970 if (sizeof (ac__type_new_))
3976 rm -f conftest.$ac_objext
3977 if { (ac_try="$ac_compile"
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_compile") 2>conftest.er1
3985 grep -v '^ *+' conftest.er1 >conftest.err
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && {
3990 test -z "$ac_c_werror_flag" ||
3991 test ! -s conftest.err
3992 } && test -s conftest.$ac_objext; then
3993 ac_cv_type_pid_t=yes
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4004 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4005 if test $ac_cv_type_pid_t = yes; then
4009 cat >>confdefs.h <<_ACEOF
4015 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4016 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4017 if test "${ac_cv_header_time+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 cat >conftest.$ac_ext <<_ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <sys/types.h>
4027 #include <sys/time.h>
4033 if ((struct tm *) 0)
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest.$ac_objext; then
4056 ac_cv_header_time=yes
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 ac_cv_header_time=no
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4067 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4068 if test $ac_cv_header_time = yes; then
4070 cat >>confdefs.h <<\_ACEOF
4071 #define TIME_WITH_SYS_TIME 1
4076 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4077 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
4078 if test "${ac_cv_struct_tm+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 cat >conftest.$ac_ext <<_ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4087 #include <sys/types.h>
4094 int *p = &tm.tm_sec;
4100 rm -f conftest.$ac_objext
4101 if { (ac_try="$ac_compile"
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_compile") 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } && {
4114 test -z "$ac_c_werror_flag" ||
4115 test ! -s conftest.err
4116 } && test -s conftest.$ac_objext; then
4117 ac_cv_struct_tm=time.h
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 ac_cv_struct_tm=sys/time.h
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4128 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
4129 if test $ac_cv_struct_tm = sys/time.h; then
4131 cat >>confdefs.h <<\_ACEOF
4132 #define TM_IN_SYS_TIME 1
4137 { echo "$as_me:$LINENO: checking for int" >&5
4138 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
4139 if test "${ac_cv_type_int+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148 $ac_includes_default
4149 typedef int ac__type_new_;
4153 if ((ac__type_new_ *) 0)
4155 if (sizeof (ac__type_new_))
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4189 echo "${ECHO_T}$ac_cv_type_int" >&6; }
4191 # The cast to long int works around a bug in the HP C Compiler
4192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4194 # This bug is HP SR number 8606223364.
4195 { echo "$as_me:$LINENO: checking size of int" >&5
4196 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
4197 if test "${ac_cv_sizeof_int+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 if test "$cross_compiling" = yes; then
4201 # Depending upon the size, compute the lo and hi bounds.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 $ac_includes_default
4209 typedef int ac__type_sizeof_;
4213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest.$ac_objext; then
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 $ac_includes_default
4246 typedef int ac__type_sizeof_;
4250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.$ac_objext; then
4274 ac_hi=$ac_mid; break
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 ac_lo=`expr $ac_mid + 1`
4280 if test $ac_lo -le $ac_mid; then
4284 ac_mid=`expr 2 '*' $ac_mid + 1`
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 $ac_includes_default
4300 typedef int ac__type_sizeof_;
4304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4311 rm -f conftest.$ac_objext
4312 if { (ac_try="$ac_compile"
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_compile") 2>conftest.er1
4320 grep -v '^ *+' conftest.er1 >conftest.err
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && {
4325 test -z "$ac_c_werror_flag" ||
4326 test ! -s conftest.err
4327 } && test -s conftest.$ac_objext; then
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 $ac_includes_default
4337 typedef int ac__type_sizeof_;
4341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_compile") 2>conftest.er1
4357 grep -v '^ *+' conftest.er1 >conftest.err
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } && {
4362 test -z "$ac_c_werror_flag" ||
4363 test ! -s conftest.err
4364 } && test -s conftest.$ac_objext; then
4365 ac_lo=$ac_mid; break
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 ac_hi=`expr '(' $ac_mid ')' - 1`
4371 if test $ac_mid -le $ac_hi; then
4375 ac_mid=`expr 2 '*' $ac_mid`
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 # Binary search between lo and hi bounds.
4392 while test "x$ac_lo" != "x$ac_hi"; do
4393 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 $ac_includes_default
4401 typedef int ac__type_sizeof_;
4405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4412 rm -f conftest.$ac_objext
4413 if { (ac_try="$ac_compile"
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_compile") 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && {
4426 test -z "$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4428 } && test -s conftest.$ac_objext; then
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 ac_lo=`expr '(' $ac_mid ')' + 1`
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 ?*) ac_cv_sizeof_int=$ac_lo;;
4441 '') if test "$ac_cv_type_int" = yes; then
4442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4443 See \`config.log' for more details." >&5
4444 echo "$as_me: error: cannot compute sizeof (int)
4445 See \`config.log' for more details." >&2;}
4446 { (exit 77); exit 77; }; }
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 $ac_includes_default
4459 typedef int ac__type_sizeof_;
4460 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4461 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4468 FILE *f = fopen ("conftest.val", "w");
4471 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4473 long int i = longval ();
4474 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4476 fprintf (f, "%ld\n", i);
4480 unsigned long int i = ulongval ();
4481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4483 fprintf (f, "%lu\n", i);
4485 return ferror (f) || fclose (f) != 0;
4491 rm -f conftest$ac_exeext
4492 if { (ac_try="$ac_link"
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_link") 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4502 { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_try") 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_sizeof_int=`cat conftest.val`
4513 echo "$as_me: program exited with status $ac_status" >&5
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4518 if test "$ac_cv_type_int" = yes; then
4519 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4520 See \`config.log' for more details." >&5
4521 echo "$as_me: error: cannot compute sizeof (int)
4522 See \`config.log' for more details." >&2;}
4523 { (exit 77); exit 77; }; }
4528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4532 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4533 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
4537 cat >>confdefs.h <<_ACEOF
4538 #define SIZEOF_INT $ac_cv_sizeof_int
4542 { echo "$as_me:$LINENO: checking for long" >&5
4543 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4544 if test "${ac_cv_type_long+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 cat >conftest.$ac_ext <<_ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 $ac_includes_default
4554 typedef long ac__type_new_;
4558 if ((ac__type_new_ *) 0)
4560 if (sizeof (ac__type_new_))
4566 rm -f conftest.$ac_objext
4567 if { (ac_try="$ac_compile"
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_compile") 2>conftest.er1
4575 grep -v '^ *+' conftest.er1 >conftest.err
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } && {
4580 test -z "$ac_c_werror_flag" ||
4581 test ! -s conftest.err
4582 } && test -s conftest.$ac_objext; then
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4594 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4596 # The cast to long int works around a bug in the HP C Compiler
4597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4599 # This bug is HP SR number 8606223364.
4600 { echo "$as_me:$LINENO: checking size of long" >&5
4601 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4602 if test "${ac_cv_sizeof_long+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 if test "$cross_compiling" = yes; then
4606 # Depending upon the size, compute the lo and hi bounds.
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 typedef long ac__type_sizeof_;
4618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4625 rm -f conftest.$ac_objext
4626 if { (ac_try="$ac_compile"
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_compile") 2>conftest.er1
4634 grep -v '^ *+' conftest.er1 >conftest.err
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && {
4639 test -z "$ac_c_werror_flag" ||
4640 test ! -s conftest.err
4641 } && test -s conftest.$ac_objext; then
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 $ac_includes_default
4651 typedef long ac__type_sizeof_;
4655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4662 rm -f conftest.$ac_objext
4663 if { (ac_try="$ac_compile"
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669 (eval "$ac_compile") 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && {
4676 test -z "$ac_c_werror_flag" ||
4677 test ! -s conftest.err
4678 } && test -s conftest.$ac_objext; then
4679 ac_hi=$ac_mid; break
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4684 ac_lo=`expr $ac_mid + 1`
4685 if test $ac_lo -le $ac_mid; then
4689 ac_mid=`expr 2 '*' $ac_mid + 1`
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 $ac_includes_default
4705 typedef long ac__type_sizeof_;
4709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4716 rm -f conftest.$ac_objext
4717 if { (ac_try="$ac_compile"
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_compile") 2>conftest.er1
4725 grep -v '^ *+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } && {
4730 test -z "$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4732 } && test -s conftest.$ac_objext; then
4735 cat >conftest.$ac_ext <<_ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 $ac_includes_default
4742 typedef long ac__type_sizeof_;
4746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4753 rm -f conftest.$ac_objext
4754 if { (ac_try="$ac_compile"
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_compile") 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && {
4767 test -z "$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest.$ac_objext; then
4770 ac_lo=$ac_mid; break
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 ac_hi=`expr '(' $ac_mid ')' - 1`
4776 if test $ac_mid -le $ac_hi; then
4780 ac_mid=`expr 2 '*' $ac_mid`
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 # Binary search between lo and hi bounds.
4797 while test "x$ac_lo" != "x$ac_hi"; do
4798 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4799 cat >conftest.$ac_ext <<_ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 $ac_includes_default
4806 typedef long ac__type_sizeof_;
4810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4817 rm -f conftest.$ac_objext
4818 if { (ac_try="$ac_compile"
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_compile") 2>conftest.er1
4826 grep -v '^ *+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } && {
4831 test -z "$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4833 } && test -s conftest.$ac_objext; then
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 ac_lo=`expr '(' $ac_mid ')' + 1`
4842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845 ?*) ac_cv_sizeof_long=$ac_lo;;
4846 '') if test "$ac_cv_type_long" = yes; then
4847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
4848 See \`config.log' for more details." >&5
4849 echo "$as_me: error: cannot compute sizeof (long)
4850 See \`config.log' for more details." >&2;}
4851 { (exit 77); exit 77; }; }
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 $ac_includes_default
4864 typedef long ac__type_sizeof_;
4865 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4866 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4873 FILE *f = fopen ("conftest.val", "w");
4876 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4878 long int i = longval ();
4879 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4881 fprintf (f, "%ld\n", i);
4885 unsigned long int i = ulongval ();
4886 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4888 fprintf (f, "%lu\n", i);
4890 return ferror (f) || fclose (f) != 0;
4896 rm -f conftest$ac_exeext
4897 if { (ac_try="$ac_link"
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_link") 2>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4907 { (case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_try") 2>&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 ac_cv_sizeof_long=`cat conftest.val`
4918 echo "$as_me: program exited with status $ac_status" >&5
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4923 if test "$ac_cv_type_long" = yes; then
4924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
4925 See \`config.log' for more details." >&5
4926 echo "$as_me: error: cannot compute sizeof (long)
4927 See \`config.log' for more details." >&2;}
4928 { (exit 77); exit 77; }; }
4933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4938 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
4942 cat >>confdefs.h <<_ACEOF
4943 #define SIZEOF_LONG $ac_cv_sizeof_long
4947 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4948 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4949 if test "${ac_cv_c_bigendian+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 # See if sys/param.h defines the BYTE_ORDER macro.
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <sys/types.h>
4960 #include <sys/param.h>
4965 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4966 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4974 rm -f conftest.$ac_objext
4975 if { (ac_try="$ac_compile"
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_compile") 2>conftest.er1
4983 grep -v '^ *+' conftest.er1 >conftest.err
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } && {
4988 test -z "$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 } && test -s conftest.$ac_objext; then
4991 # It does; now see whether it defined to BIG_ENDIAN or not.
4992 cat >conftest.$ac_ext <<_ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 #include <sys/types.h>
4999 #include <sys/param.h>
5004 #if BYTE_ORDER != BIG_ENDIAN
5012 rm -f conftest.$ac_objext
5013 if { (ac_try="$ac_compile"
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_compile") 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } && {
5026 test -z "$ac_c_werror_flag" ||
5027 test ! -s conftest.err
5028 } && test -s conftest.$ac_objext; then
5029 ac_cv_c_bigendian=yes
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_cv_c_bigendian=no
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042 # It does not; compile a test program.
5043 if test "$cross_compiling" = yes; then
5044 # try to guess the endianness by grepping values into an object file
5045 ac_cv_c_bigendian=unknown
5046 cat >conftest.$ac_ext <<_ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5053 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5054 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5055 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5056 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5057 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5061 _ascii (); _ebcdic ();
5066 rm -f conftest.$ac_objext
5067 if { (ac_try="$ac_compile"
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_compile") 2>conftest.er1
5075 grep -v '^ *+' conftest.er1 >conftest.err
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } && {
5080 test -z "$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 } && test -s conftest.$ac_objext; then
5083 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5084 ac_cv_c_bigendian=yes
5086 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5087 if test "$ac_cv_c_bigendian" = unknown; then
5088 ac_cv_c_bigendian=no
5090 # finding both strings is unlikely to happen, but who knows?
5091 ac_cv_c_bigendian=unknown
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 $ac_includes_default
5114 /* Are we little or big endian? From Harbison&Steele. */
5118 char c[sizeof (long int)];
5121 return u.c[sizeof (long int) - 1] == 1;
5127 rm -f conftest$ac_exeext
5128 if { (ac_try="$ac_link"
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_link") 2>&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5138 { (case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_try") 2>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_cv_c_bigendian=no
5149 echo "$as_me: program exited with status $ac_status" >&5
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_cv_c_bigendian=yes
5156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5165 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5166 case $ac_cv_c_bigendian in
5169 cat >>confdefs.h <<\_ACEOF
5170 #define WORDS_BIGENDIAN 1
5176 { { echo "$as_me:$LINENO: error: unknown endianness
5177 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5178 echo "$as_me: error: unknown endianness
5179 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5187 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5188 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5189 if test "${ac_cv_type_signal+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5198 #include <sys/types.h>
5204 return *(signal (0, 0)) (0) == 1;
5209 rm -f conftest.$ac_objext
5210 if { (ac_try="$ac_compile"
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216 (eval "$ac_compile") 2>conftest.er1
5218 grep -v '^ *+' conftest.er1 >conftest.err
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } && {
5223 test -z "$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5225 } && test -s conftest.$ac_objext; then
5226 ac_cv_type_signal=int
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 ac_cv_type_signal=void
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5237 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5239 cat >>confdefs.h <<_ACEOF
5240 #define RETSIGTYPE $ac_cv_type_signal
5245 for ac_func in vprintf
5247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 cat >conftest.$ac_ext <<_ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5261 #define $ac_func innocuous_$ac_func
5263 /* System header to define __stub macros and hopefully few prototypes,
5264 which can conflict with char $ac_func (); below.
5265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5266 <limits.h> exists even on freestanding compilers. */
5269 # include <limits.h>
5271 # include <assert.h>
5276 /* Override any GCC internal prototype to avoid an error.
5277 Use char because int might match the return type of a GCC
5278 builtin and then its argument prototype would still apply. */
5283 /* The GNU C library defines this for functions which it implements
5284 to always fail with ENOSYS. Some functions are actually named
5285 something starting with __ and the normal name is an alias. */
5286 #if defined __stub_$ac_func || defined __stub___$ac_func
5298 rm -f conftest.$ac_objext conftest$ac_exeext
5299 if { (ac_try="$ac_link"
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_link") 2>conftest.er1
5307 grep -v '^ *+' conftest.er1 >conftest.err
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_c_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest$ac_exeext &&
5315 $as_test_x conftest$ac_exeext; then
5316 eval "$as_ac_var=yes"
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5321 eval "$as_ac_var=no"
5324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5325 conftest$ac_exeext conftest.$ac_ext
5327 ac_res=`eval echo '${'$as_ac_var'}'`
5328 { echo "$as_me:$LINENO: result: $ac_res" >&5
5329 echo "${ECHO_T}$ac_res" >&6; }
5330 if test `eval echo '${'$as_ac_var'}'` = yes; then
5331 cat >>confdefs.h <<_ACEOF
5332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5335 { echo "$as_me:$LINENO: checking for _doprnt" >&5
5336 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
5337 if test "${ac_cv_func__doprnt+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5348 #define _doprnt innocuous__doprnt
5350 /* System header to define __stub macros and hopefully few prototypes,
5351 which can conflict with char _doprnt (); below.
5352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353 <limits.h> exists even on freestanding compilers. */
5356 # include <limits.h>
5358 # include <assert.h>
5363 /* Override any GCC internal prototype to avoid an error.
5364 Use char because int might match the return type of a GCC
5365 builtin and then its argument prototype would still apply. */
5370 /* The GNU C library defines this for functions which it implements
5371 to always fail with ENOSYS. Some functions are actually named
5372 something starting with __ and the normal name is an alias. */
5373 #if defined __stub__doprnt || defined __stub____doprnt
5385 rm -f conftest.$ac_objext conftest$ac_exeext
5386 if { (ac_try="$ac_link"
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_link") 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest$ac_exeext &&
5402 $as_test_x conftest$ac_exeext; then
5403 ac_cv_func__doprnt=yes
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 ac_cv_func__doprnt=no
5411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5412 conftest$ac_exeext conftest.$ac_ext
5414 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5415 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
5416 if test $ac_cv_func__doprnt = yes; then
5418 cat >>confdefs.h <<\_ACEOF
5419 #define HAVE_DOPRNT 1
5430 ac_config_files="$ac_config_files Makefile"
5432 cat >confcache <<\_ACEOF
5433 # This file is a shell script that caches the results of configure
5434 # tests run on this system so they can be shared between configure
5435 # scripts and configure runs, see configure's option --config-cache.
5436 # It is not useful on other systems. If it contains results you don't
5437 # want to keep, you may remove or edit it.
5439 # config.status only pays attention to the cache file if you give it
5440 # the --recheck option to rerun configure.
5442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5448 # The following way of writing the cache mishandles newlines in values,
5449 # but we know of no workaround that is simple, portable, and efficient.
5450 # So, we kill variables containing newlines.
5451 # Ultrix sh set writes to stderr and can't be redirected directly,
5452 # and sets the high bit in the cache file unless we assign to the vars.
5454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5455 eval ac_val=\$$ac_var
5459 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5460 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5463 _ | IFS | as_nl) ;; #(
5464 *) $as_unset $ac_var ;;
5470 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5471 *${as_nl}ac_space=\ *)
5472 # `set' does not quote correctly, so add quotes (double-quote
5473 # substitution turns \\\\ into \\, and sed turns \\ into \).
5476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5479 # `set' quotes correctly as required by POSIX, so do not add quotes.
5480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5493 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5494 if test -w "$cache_file"; then
5495 test "x$cache_file" != "x/dev/null" &&
5496 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5497 echo "$as_me: updating cache $cache_file" >&6;}
5498 cat confcache >$cache_file
5500 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5501 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5507 # Let make expand exec_prefix.
5508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5510 DEFS=-DHAVE_CONFIG_H
5514 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5515 # 1. Remove the extension, and $U if already installed.
5516 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5517 ac_i=`echo "$ac_i" | sed "$ac_script"`
5518 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5519 # will be set to the directory where LIBOBJS objects are built.
5520 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5521 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5525 LTLIBOBJS=$ac_ltlibobjs
5529 : ${CONFIG_STATUS=./config.status}
5530 ac_clean_files_save=$ac_clean_files
5531 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5532 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5533 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5534 cat >$CONFIG_STATUS <<_ACEOF
5536 # Generated by $as_me.
5537 # Run this file to recreate the current configuration.
5538 # Compiler output produced by configure, useful for debugging
5539 # configure, is in config.log if it exists.
5544 SHELL=\${CONFIG_SHELL-$SHELL}
5547 cat >>$CONFIG_STATUS <<\_ACEOF
5548 ## --------------------- ##
5549 ## M4sh Initialization. ##
5550 ## --------------------- ##
5552 # Be more Bourne compatible
5553 DUALCASE=1; export DUALCASE # for MKS sh
5554 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5557 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5558 # is contrary to our usage. Disable this feature.
5559 alias -g '${1+"$@"}'='"$@"'
5560 setopt NO_GLOB_SUBST
5562 case `(set -o) 2>/dev/null` in
5563 *posix*) set -o posix ;;
5572 # Avoid depending upon Character Ranges.
5573 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5574 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5575 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5576 as_cr_digits='0123456789'
5577 as_cr_alnum=$as_cr_Letters$as_cr_digits
5579 # The user is always right.
5580 if test "${PATH_SEPARATOR+set}" != set; then
5581 echo "#! /bin/sh" >conf$$.sh
5582 echo "exit 0" >>conf$$.sh
5584 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5592 # Support unset when possible.
5593 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5601 # We need space, tab and new line, in precisely that order. Quoting is
5602 # there to prevent editors from complaining about space-tab.
5603 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5604 # splitting by setting IFS to empty value.)
5609 # Find who we are. Look in the path if we contain no directory separator.
5611 *[\\/]* ) as_myself=$0 ;;
5612 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5623 # We did not find ourselves, most probably we were run as `sh COMMAND'
5624 # in which case we are not to be found in the path.
5625 if test "x$as_myself" = x; then
5628 if test ! -f "$as_myself"; then
5629 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5630 { (exit 1); exit 1; }
5633 # Work around bugs in pre-3.0 UWIN ksh.
5634 for as_var in ENV MAIL MAILPATH
5635 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5643 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5644 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5645 LC_TELEPHONE LC_TIME
5647 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5648 eval $as_var=C; export $as_var
5650 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5654 # Required to use basename.
5655 if expr a : '\(a\)' >/dev/null 2>&1 &&
5656 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5662 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5663 as_basename=basename
5669 # Name of the executable.
5670 as_me=`$as_basename -- "$0" ||
5671 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5672 X"$0" : 'X\(//\)$' \| \
5673 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5675 sed '/^.*\/\([^/][^/]*\)\/*$/{
5696 test "x$as_lineno_1" != "x$as_lineno_2" &&
5697 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5699 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5700 # uniformly replaced by the line number. The first 'sed' inserts a
5701 # line-number line after each line using $LINENO; the second 'sed'
5702 # does the real work. The second script uses 'N' to pair each
5703 # line-number line with the line containing $LINENO, and appends
5704 # trailing '-' during substitution so that $LINENO is not a special
5706 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5707 # scripts with optimization help from Paolo Bonzini. Blame Lee
5708 # E. McMahon (1931-1989) for sed's syntax. :-)
5720 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5724 chmod +x "$as_me.lineno" ||
5725 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5726 { (exit 1); exit 1; }; }
5728 # Don't try to exec as it changes $[0], causing all sort of problems
5729 # (the dirname of $[0] is not the place where we might find the
5730 # original and so on. Autoconf is especially sensitive to this).
5732 # Exit status is that of the last command.
5737 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5743 ECHO_C= ECHO_N= ECHO_T=
5746 case `echo 'x\c'` in
5747 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5754 if expr a : '\(a\)' >/dev/null 2>&1 &&
5755 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5761 rm -f conf$$ conf$$.exe conf$$.file
5762 if test -d conf$$.dir; then
5763 rm -f conf$$.dir/conf$$.file
5769 if ln -s conf$$.file conf$$ 2>/dev/null; then
5771 # ... but there are two gotchas:
5772 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5773 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5774 # In both cases, we have to default to `cp -p'.
5775 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5777 elif ln conf$$.file conf$$ 2>/dev/null; then
5782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5783 rmdir conf$$.dir 2>/dev/null
5785 if mkdir -p . 2>/dev/null; then
5788 test -d ./-p && rmdir ./-p
5792 if test -x / >/dev/null 2>&1; then
5795 if ls -dL / >/dev/null 2>&1; then
5802 if test -d "$1"; then
5808 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5809 ???[sx]*):;;*)false;;esac;fi
5813 as_executable_p=$as_test_x
5815 # Sed expression to map a string onto a valid CPP name.
5816 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5818 # Sed expression to map a string onto a valid variable name.
5819 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5824 # Save the log message, to keep $[0] and so on meaningful, and to
5825 # report actual input values of CONFIG_FILES etc. instead of their
5826 # values after options handling.
5828 This file was extended by $as_me, which was
5829 generated by GNU Autoconf 2.61. Invocation command line was
5831 CONFIG_FILES = $CONFIG_FILES
5832 CONFIG_HEADERS = $CONFIG_HEADERS
5833 CONFIG_LINKS = $CONFIG_LINKS
5834 CONFIG_COMMANDS = $CONFIG_COMMANDS
5837 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5842 cat >>$CONFIG_STATUS <<_ACEOF
5843 # Files that config.status was made for.
5844 config_files="$ac_config_files"
5845 config_headers="$ac_config_headers"
5849 cat >>$CONFIG_STATUS <<\_ACEOF
5851 \`$as_me' instantiates files from templates according to the
5852 current configuration.
5854 Usage: $0 [OPTIONS] [FILE]...
5856 -h, --help print this help, then exit
5857 -V, --version print version number and configuration settings, then exit
5858 -q, --quiet do not print progress messages
5859 -d, --debug don't remove temporary files
5860 --recheck update $as_me by reconfiguring in the same conditions
5861 --file=FILE[:TEMPLATE]
5862 instantiate the configuration file FILE
5863 --header=FILE[:TEMPLATE]
5864 instantiate the configuration header FILE
5866 Configuration files:
5869 Configuration headers:
5872 Report bugs to <bug-autoconf@gnu.org>."
5875 cat >>$CONFIG_STATUS <<_ACEOF
5878 configured by $0, generated by GNU Autoconf 2.61,
5879 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5881 Copyright (C) 2006 Free Software Foundation, Inc.
5882 This config.status script is free software; the Free Software Foundation
5883 gives unlimited permission to copy, distribute and modify it."
5890 cat >>$CONFIG_STATUS <<\_ACEOF
5891 # If no file are specified by the user, then we need to provide default
5892 # value. By we need to know if files were specified by the user.
5898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5910 # Handling of the options.
5911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5914 echo "$ac_cs_version"; exit ;;
5915 --debug | --debu | --deb | --de | --d | -d )
5917 --file | --fil | --fi | --f )
5919 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5920 ac_need_defaults=false;;
5921 --header | --heade | --head | --hea )
5923 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5924 ac_need_defaults=false;;
5926 # Conflict between --help and --header
5927 { echo "$as_me: error: ambiguous option: $1
5928 Try \`$0 --help' for more information." >&2
5929 { (exit 1); exit 1; }; };;
5930 --help | --hel | -h )
5931 echo "$ac_cs_usage"; exit ;;
5932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5937 -*) { echo "$as_me: error: unrecognized option: $1
5938 Try \`$0 --help' for more information." >&2
5939 { (exit 1); exit 1; }; } ;;
5941 *) ac_config_targets="$ac_config_targets $1"
5942 ac_need_defaults=false ;;
5948 ac_configure_extra_args=
5950 if $ac_cs_silent; then
5952 ac_configure_extra_args="$ac_configure_extra_args --silent"
5956 cat >>$CONFIG_STATUS <<_ACEOF
5957 if \$ac_cs_recheck; then
5958 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5961 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5965 cat >>$CONFIG_STATUS <<\_ACEOF
5969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5970 ## Running $as_me. ##
5976 cat >>$CONFIG_STATUS <<_ACEOF
5979 cat >>$CONFIG_STATUS <<\_ACEOF
5981 # Handling of arguments.
5982 for ac_config_target in $ac_config_targets
5984 case $ac_config_target in
5985 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5986 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5988 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5989 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5990 { (exit 1); exit 1; }; };;
5995 # If the user did not use the arguments to specify the items to instantiate,
5996 # then the envvar interface is used. Set only those that are not.
5997 # We use the long form for the default assignment because of an extremely
5998 # bizarre bug on SunOS 4.1.3.
5999 if $ac_need_defaults; then
6000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6004 # Have a temporary directory for convenience. Make it in the build tree
6005 # simply because there is no reason against having it here, and in addition,
6006 # creating and moving files from /tmp can sometimes cause problems.
6007 # Hook for its removal unless debugging.
6008 # Note that there is a small window in which the directory will not be cleaned:
6009 # after its creation but before its name has been assigned to `$tmp'.
6013 trap 'exit_status=$?
6014 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6016 trap '{ (exit 1); exit 1; }' 1 2 13 15
6018 # Create a (secure) tmp directory for tmp files.
6021 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6022 test -n "$tmp" && test -d "$tmp"
6025 tmp=./conf$$-$RANDOM
6026 (umask 077 && mkdir "$tmp")
6029 echo "$me: cannot create a temporary directory in ." >&2
6030 { (exit 1); exit 1; }
6034 # Set up the sed scripts for CONFIG_FILES section.
6037 # No need to generate the scripts if there are no CONFIG_FILES.
6038 # This happens for instance when ./config.status config.h
6039 if test -n "$CONFIG_FILES"; then
6046 for ac_last_try in false false false false false :; do
6047 cat >conf$$subs.sed <<_ACEOF
6048 SHELL!$SHELL$ac_delim
6049 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6050 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6051 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6052 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6053 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6054 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6055 exec_prefix!$exec_prefix$ac_delim
6056 prefix!$prefix$ac_delim
6057 program_transform_name!$program_transform_name$ac_delim
6058 bindir!$bindir$ac_delim
6059 sbindir!$sbindir$ac_delim
6060 libexecdir!$libexecdir$ac_delim
6061 datarootdir!$datarootdir$ac_delim
6062 datadir!$datadir$ac_delim
6063 sysconfdir!$sysconfdir$ac_delim
6064 sharedstatedir!$sharedstatedir$ac_delim
6065 localstatedir!$localstatedir$ac_delim
6066 includedir!$includedir$ac_delim
6067 oldincludedir!$oldincludedir$ac_delim
6068 docdir!$docdir$ac_delim
6069 infodir!$infodir$ac_delim
6070 htmldir!$htmldir$ac_delim
6071 dvidir!$dvidir$ac_delim
6072 pdfdir!$pdfdir$ac_delim
6073 psdir!$psdir$ac_delim
6074 libdir!$libdir$ac_delim
6075 localedir!$localedir$ac_delim
6076 mandir!$mandir$ac_delim
6078 ECHO_C!$ECHO_C$ac_delim
6079 ECHO_N!$ECHO_N$ac_delim
6080 ECHO_T!$ECHO_T$ac_delim
6082 build_alias!$build_alias$ac_delim
6083 host_alias!$host_alias$ac_delim
6084 target_alias!$target_alias$ac_delim
6085 build!$build$ac_delim
6086 build_cpu!$build_cpu$ac_delim
6087 build_vendor!$build_vendor$ac_delim
6088 build_os!$build_os$ac_delim
6090 host_cpu!$host_cpu$ac_delim
6091 host_vendor!$host_vendor$ac_delim
6092 host_os!$host_os$ac_delim
6093 target!$target$ac_delim
6094 target_cpu!$target_cpu$ac_delim
6095 target_vendor!$target_vendor$ac_delim
6096 target_os!$target_os$ac_delim
6097 TARGET!$TARGET$ac_delim
6100 CFLAGS!$CFLAGS$ac_delim
6101 LDFLAGS!$LDFLAGS$ac_delim
6102 CPPFLAGS!$CPPFLAGS$ac_delim
6103 ac_ct_CC!$ac_ct_CC$ac_delim
6104 EXEEXT!$EXEEXT$ac_delim
6105 OBJEXT!$OBJEXT$ac_delim
6106 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6107 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6108 INSTALL_DATA!$INSTALL_DATA$ac_delim
6109 USE_OBJCOPY!$USE_OBJCOPY$ac_delim
6112 EGREP!$EGREP$ac_delim
6113 LIBOBJS!$LIBOBJS$ac_delim
6114 LTLIBOBJS!$LTLIBOBJS$ac_delim
6117 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
6119 elif $ac_last_try; then
6120 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6121 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6122 { (exit 1); exit 1; }; }
6124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6128 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6129 if test -n "$ac_eof"; then
6130 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6131 ac_eof=`expr $ac_eof + 1`
6134 cat >>$CONFIG_STATUS <<_ACEOF
6135 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6136 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6139 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6140 s/^/s,@/; s/!/@,|#_!!_#|/
6143 s/'"$ac_delim"'$/,g/; t
6145 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6146 ' >>$CONFIG_STATUS <conf$$subs.sed
6147 rm -f conf$$subs.sed
6148 cat >>$CONFIG_STATUS <<_ACEOF
6155 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6156 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6157 # trailing colons and then remove the whole line if VPATH becomes empty
6158 # (actually we leave an empty line to preserve line numbers).
6159 if test "x$srcdir" = x.; then
6160 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6164 s/^\([^=]*=[ ]*\):*/\1/
6170 cat >>$CONFIG_STATUS <<\_ACEOF
6171 fi # test -n "$CONFIG_FILES"
6174 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6177 :[FHLC]) ac_mode=$ac_tag; continue;;
6179 case $ac_mode$ac_tag in
6181 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6182 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6183 { (exit 1); exit 1; }; };;
6184 :[FH]-) ac_tag=-:-;;
6185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6202 -) ac_f="$tmp/stdin";;
6203 *) # Look for the file first in the build tree, then in the source tree
6204 # (if the path is not absolute). The absolute path cannot be DOS-style,
6205 # because $ac_f cannot contain `:'.
6209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6211 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6212 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6213 { (exit 1); exit 1; }; };;
6215 ac_file_inputs="$ac_file_inputs $ac_f"
6218 # Let's still pretend it is `configure' which instantiates (i.e., don't
6219 # use $as_me), people would be surprised to read:
6220 # /* config.h. Generated by config.status. */
6221 configure_input="Generated from "`IFS=:
6222 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6223 if test x"$ac_file" != x-; then
6224 configure_input="$ac_file. $configure_input"
6225 { echo "$as_me:$LINENO: creating $ac_file" >&5
6226 echo "$as_me: creating $ac_file" >&6;}
6230 *:-:* | *:-) cat >"$tmp/stdin";;
6235 ac_dir=`$as_dirname -- "$ac_file" ||
6236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6237 X"$ac_file" : 'X\(//\)[^/]' \| \
6238 X"$ac_file" : 'X\(//\)$' \| \
6239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6260 -*) as_dir=./$as_dir;;
6262 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6266 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6267 *) as_qdir=$as_dir;;
6269 as_dirs="'$as_qdir' $as_dirs"
6270 as_dir=`$as_dirname -- "$as_dir" ||
6271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6272 X"$as_dir" : 'X\(//\)[^/]' \| \
6273 X"$as_dir" : 'X\(//\)$' \| \
6274 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6293 test -d "$as_dir" && break
6295 test -z "$as_dirs" || eval "mkdir $as_dirs"
6296 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6297 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6298 { (exit 1); exit 1; }; }; }
6302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6305 # A ".." for each directory in $ac_dir_suffix.
6306 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6307 case $ac_top_builddir_sub in
6308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6312 ac_abs_top_builddir=$ac_pwd
6313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6314 # for backward compatibility:
6315 ac_top_builddir=$ac_top_build_prefix
6318 .) # We are building in place.
6320 ac_top_srcdir=$ac_top_builddir_sub
6321 ac_abs_top_srcdir=$ac_pwd ;;
6322 [\\/]* | ?:[\\/]* ) # Absolute name.
6323 ac_srcdir=$srcdir$ac_dir_suffix;
6324 ac_top_srcdir=$srcdir
6325 ac_abs_top_srcdir=$srcdir ;;
6327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6328 ac_top_srcdir=$ac_top_build_prefix$srcdir
6329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6342 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6346 cat >>$CONFIG_STATUS <<\_ACEOF
6347 # If the template does not know about datarootdir, expand it.
6348 # FIXME: This hack should be removed a few years after 2.60.
6349 ac_datarootdir_hack=; ac_datarootdir_seen=
6351 case `sed -n '/datarootdir/ {
6360 ' $ac_file_inputs` in
6361 *datarootdir*) ac_datarootdir_seen=yes;;
6362 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6363 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6364 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6366 cat >>$CONFIG_STATUS <<_ACEOF
6367 ac_datarootdir_hack='
6368 s&@datadir@&$datadir&g
6369 s&@docdir@&$docdir&g
6370 s&@infodir@&$infodir&g
6371 s&@localedir@&$localedir&g
6372 s&@mandir@&$mandir&g
6373 s&\\\${datarootdir}&$datarootdir&g' ;;
6377 # Neutralize VPATH when `$srcdir' = `.'.
6378 # Shell code in configure.ac might set extrasub.
6379 # FIXME: do we really want to maintain this feature?
6380 cat >>$CONFIG_STATUS <<_ACEOF
6384 cat >>$CONFIG_STATUS <<\_ACEOF
6386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6387 s&@configure_input@&$configure_input&;t t
6388 s&@top_builddir@&$ac_top_builddir_sub&;t t
6389 s&@srcdir@&$ac_srcdir&;t t
6390 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6391 s&@top_srcdir@&$ac_top_srcdir&;t t
6392 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6393 s&@builddir@&$ac_builddir&;t t
6394 s&@abs_builddir@&$ac_abs_builddir&;t t
6395 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6396 s&@INSTALL@&$ac_INSTALL&;t t
6397 $ac_datarootdir_hack
6398 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6400 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6401 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6402 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6403 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6404 which seems to be undefined. Please make sure it is defined." >&5
6405 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6406 which seems to be undefined. Please make sure it is defined." >&2;}
6410 -) cat "$tmp/out"; rm -f "$tmp/out";;
6411 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6420 # Transform confdefs.h into a sed script `conftest.defines', that
6421 # substitutes the proper values into config.h.in to produce config.h.
6422 rm -f conftest.defines conftest.tail
6423 # First, append a space to every undef/define line, to ease matching.
6424 echo 's/$/ /' >conftest.defines
6425 # Then, protect against being on the right side of a sed subst, or in
6426 # an unquoted here document, in config.status. If some macros were
6427 # called several times there might be several #defines for the same
6428 # symbol, which is useless. But do not sort them, since the last
6429 # AC_DEFINE must be honored.
6430 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6431 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6432 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6433 # PARAMS is the parameter list in the macro definition--in most cases, it's
6434 # just an empty string.
6435 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6436 ac_dB='\\)[ (].*,\\1define\\2'
6444 s/^[ ]*#[ ]*define[ ][ ]*//
6449 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6450 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6451 ' >>conftest.defines
6453 # Remove the space that was appended to ease matching.
6454 # Then replace #undef with comments. This is necessary, for
6455 # example, in the case of _POSIX_SOURCE, which is predefined and required
6456 # on some systems where configure will not decide to define it.
6457 # (The regexp can be short, since the line contains either #define or #undef.)
6459 s,^[ #]*u.*,/* & */,' >>conftest.defines
6461 # Break up conftest.defines:
6464 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6465 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6466 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6468 ac_in='$ac_file_inputs'
6469 ac_out='"$tmp/out1"'
6470 ac_nxt='"$tmp/out2"'
6474 # Write a here document:
6475 cat >>$CONFIG_STATUS <<_ACEOF
6476 # First, check the format of the line:
6477 cat >"\$tmp/defines.sed" <<\\CEOF
6478 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6479 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6483 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6485 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6486 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6487 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6488 grep . conftest.tail >/dev/null || break
6489 rm -f conftest.defines
6490 mv conftest.tail conftest.defines
6492 rm -f conftest.defines conftest.tail
6494 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6495 cat >>$CONFIG_STATUS <<\_ACEOF
6496 if test x"$ac_file" != x-; then
6497 echo "/* $configure_input */" >"$tmp/config.h"
6498 cat "$ac_result" >>"$tmp/config.h"
6499 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6500 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6501 echo "$as_me: $ac_file is unchanged" >&6;}
6504 mv "$tmp/config.h" $ac_file
6507 echo "/* $configure_input */"
6519 { (exit 0); exit 0; }
6521 chmod +x $CONFIG_STATUS
6522 ac_clean_files=$ac_clean_files_save
6525 # configure is writing to config.log, and then calls config.status.
6526 # config.status does its own redirection, appending to config.log.
6527 # Unfortunately, on DOS this fails, as config.log is still kept open
6528 # by configure, so config.status won't be able to write to it; its
6529 # output is simply discarded. So we exec the FD to /dev/null,
6530 # effectively closing config.log, so it can be properly (re)opened and
6531 # appended to by config.status. When coming back to configure, we
6532 # need to make the FD available again.
6533 if test "$no_create" != yes; then
6535 ac_config_status_args=
6536 test "$silent" = yes &&
6537 ac_config_status_args="$ac_config_status_args --quiet"
6539 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6541 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6542 # would make configure fail if this is the last instruction.
6543 $ac_cs_success || { (exit 1); exit 1; }