2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="version.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
684 STATIC_DEVMAPPER_LIBS
708 BUILD_INCLUDED_LIBINTL
715 INTL_LIBTOOL_SUFFIX_PREFIX
758 ac_subst_files='MCONFIG
765 ac_precious_vars='build_alias
775 # Initialize some variables set by options.
777 ac_init_version=false
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
787 program_transform_name=s,x,x,
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE}'
812 infodir='${datarootdir}/info'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
833 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
861 cache_file=config.cache ;;
863 -datadir | --datadir | --datadi | --datad)
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
875 -disable-* | --disable-*)
876 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
879 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
880 { (exit 1); exit 1; }; }
881 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
882 eval enable_$ac_feature=no ;;
884 -docdir | --docdir | --docdi | --doc | --do)
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 -enable-* | --enable-*)
895 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
898 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899 { (exit 1); exit 1; }; }
900 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
901 eval enable_$ac_feature=\$ac_optarg ;;
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
916 -help | --help | --hel | --he | -h)
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 htmldir=$ac_optarg ;;
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
946 -libdir | --libdir | --libdi | --libd)
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
958 -localedir | --localedir | --localedi | --localed | --locale)
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 # Obsolete; use --without-fp.
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1037 -psdir | --psdir | --psdi | --psd | --ps)
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 sbindir=$ac_optarg ;;
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 sharedstatedir=$ac_optarg ;;
1063 -site | --site | --sit)
1065 -site=* | --site=* | --sit=*)
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071 srcdir=$ac_optarg ;;
1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078 sysconfdir=$ac_optarg ;;
1080 -target | --target | --targe | --targ | --tar | --ta | --t)
1081 ac_prev=target_alias ;;
1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083 target_alias=$ac_optarg ;;
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
1092 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1095 { echo "$as_me: error: invalid package name: $ac_package" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_package=`echo $ac_package| sed 's/-/_/g'`
1098 eval with_$ac_package=\$ac_optarg ;;
1100 -without-* | --without-*)
1101 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid package name: $ac_package" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_package=`echo $ac_package | sed 's/-/_/g'`
1107 eval with_$ac_package=no ;;
1110 # Obsolete; use --with-x.
1113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114 | --x-incl | --x-inc | --x-in | --x-i)
1115 ac_prev=x_includes ;;
1116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118 x_includes=$ac_optarg ;;
1120 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122 ac_prev=x_libraries ;;
1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125 x_libraries=$ac_optarg ;;
1127 -*) { echo "$as_me: error: unrecognized option: $ac_option
1128 Try \`$0 --help' for more information." >&2
1129 { (exit 1); exit 1; }; }
1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1136 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1137 { (exit 1); exit 1; }; }
1138 eval $ac_envvar=\$ac_optarg
1139 export $ac_envvar ;;
1142 # FIXME: should be removed in autoconf 3.0.
1143 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152 if test -n "$ac_prev"; then
1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154 { echo "$as_me: error: missing argument to $ac_option" >&2
1155 { (exit 1); exit 1; }; }
1158 # Be sure to have absolute directory names.
1159 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1162 libdir localedir mandir
1164 eval ac_val=\$$ac_var
1166 [\\/$]* | ?:[\\/]* ) continue;;
1167 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1169 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1170 { (exit 1); exit 1; }; }
1173 # There might be people who depend on the old broken behavior: `$host'
1174 # used to hold the argument of --host etc.
1175 # FIXME: To remove some day.
1178 target=$target_alias
1180 # FIXME: To remove some day.
1181 if test "x$host_alias" != x; then
1182 if test "x$build_alias" = x; then
1183 cross_compiling=maybe
1184 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1185 If a cross compiler is detected then cross compile mode will be used." >&2
1186 elif test "x$build_alias" != "x$host_alias"; then
1192 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1194 test "$silent" = yes && exec 6>/dev/null
1197 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1198 ac_ls_di=`ls -di .` &&
1199 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1200 { echo "$as_me: error: Working directory cannot be determined" >&2
1201 { (exit 1); exit 1; }; }
1202 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1203 { echo "$as_me: error: pwd does not report name of working directory" >&2
1204 { (exit 1); exit 1; }; }
1207 # Find the source files, if location was not specified.
1208 if test -z "$srcdir"; then
1209 ac_srcdir_defaulted=yes
1210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir=`$as_dirname -- "$0" ||
1212 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$0" : 'X\(//\)[^/]' \| \
1214 X"$0" : 'X\(//\)$' \| \
1215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1239 ac_srcdir_defaulted=no
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1243 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1244 { (exit 1); exit 1; }; }
1246 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1249 { (exit 1); exit 1; }; }
1251 # When building in place, set srcdir=.
1252 if test "$ac_abs_confdir" = "$ac_pwd"; then
1255 # Remove unnecessary trailing slashes from srcdir.
1256 # Double slashes in file names in object file debugging info
1257 # mess up M-x gdb in Emacs.
1259 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 for ac_var in $ac_precious_vars; do
1262 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_${ac_var}_value=\$${ac_var}
1264 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1269 # Report the --help message.
1271 if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
1275 \`configure' configures this package to adapt to many kinds of systems.
1277 Usage: $0 [OPTION]... [VAR=VALUE]...
1279 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280 VAR=VALUE. See below for descriptions of some of the useful variables.
1282 Defaults for the options are specified in brackets.
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
1289 -q, --quiet, --silent do not print \`checking...' messages
1290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295 Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
1297 [$ac_default_prefix]
1298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1301 By default, \`make install' will install all the files in
1302 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304 for instance \`--prefix=\$HOME'.
1306 For better control, use the options below.
1308 Fine tuning of the installation directories:
1309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
1312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1315 --libdir=DIR object code libraries [EPREFIX/lib]
1316 --includedir=DIR C header files [PREFIX/include]
1317 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1318 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1319 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1320 --infodir=DIR info documentation [DATAROOTDIR/info]
1321 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1322 --mandir=DIR man documentation [DATAROOTDIR/man]
1323 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1324 --htmldir=DIR html documentation [DOCDIR]
1325 --dvidir=DIR dvi documentation [DOCDIR]
1326 --pdfdir=DIR pdf documentation [DOCDIR]
1327 --psdir=DIR ps documentation [DOCDIR]
1333 --build=BUILD configure for building on BUILD [guessed]
1334 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1338 if test -n "$ac_init_help"; then
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1345 --enable-maintainer-mode enable makefile rules useful for maintainers
1346 --enable-compression enable EXPERIMENTAL compression support
1347 --enable-htree enable EXPERIMENTAL htree directory support
1348 --enable-elf-shlibs select ELF shared libraries
1349 --enable-bsd-shlibs select BSD shared libraries
1350 --enable-profile build profiling libraries
1351 --enable-checker build checker libraries
1352 --enable-jbd-debug enable journal debugging
1353 --enable-blkid-debug enable blkid debugging
1354 --enable-testio-debug enable the use of the test I/O manager for debugging
1355 --disable-swapfs disable support of legacy byte-swapped filesystems
1356 --disable-debugfs disable support of debugfs program
1357 --disable-imager disable support of e2image program
1358 --disable-resizer disable support of e2resize program
1359 --enable-dynamic-e2fsck build e2fsck dynamically
1360 --enable-fsck build fsck wrapper program
1361 --enable-e2initrd-helper build e2initrd-helper program
1362 --enable-blkid-devmapper build with device-mapper support
1363 --disable-nls do not use Native Language Support
1364 --disable-rpath do not hardcode runtime library paths
1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1369 --with-diet-libc Use diet libc
1370 --with-cc=COMPILER select compiler to use
1371 --with-linker=LINKER select linker to use
1372 --with-ccopts=CCOPTS select compiler command line options
1373 --with-ldopts=LDOPTS select linker command line options
1374 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1375 --with-gnu-ld assume the C compiler uses GNU ld default=no
1376 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1377 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1378 --with-included-gettext use the GNU gettext library included here
1379 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1380 --without-libintl-prefix don't search for libintl in includedir and libdir
1382 Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388 you have headers in a nonstandard directory <include dir>
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401 test -d "$ac_dir" || continue
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1421 .) # We are building in place.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1455 generated by GNU Autoconf 2.60
1457 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1459 This configure script is free software; the Free Software Foundation
1460 gives unlimited permission to copy, distribute and modify it.
1464 cat >config.log <<_ACEOF
1465 This file contains any messages produced by compilers while
1466 running configure, to aid debugging if configure makes a mistake.
1468 It was created by $as_me, which was
1469 generated by GNU Autoconf 2.60. Invocation command line was
1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir=.
1505 echo "PATH: $as_dir"
1521 # Keep a trace of the command line.
1522 # Strip out --no-create and --no-recursion so they do not pile up.
1523 # Strip out --silent because we don't want to record it for future runs.
1524 # Also quote any args containing shell meta-characters.
1525 # Make two passes to allow for proper duplicate-argument suppression.
1529 ac_must_keep_next=false
1535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1540 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1545 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true; then
1547 ac_must_keep_next=false # Got value, back to normal.
1550 *=* | --config-cache | -C | -disable-* | --disable-* \
1551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553 | -with-* | --with-* | -without-* | --without-* | --x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558 -* ) ac_must_keep_next=true ;;
1561 ac_configure_args="$ac_configure_args '$ac_arg'"
1566 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1567 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1569 # When interrupted or exit'd, cleanup temporary files, and complete
1570 # config.log. We remove comments because anyway the quotes in there
1571 # would cause problems or look ugly.
1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574 trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
1580 ## ---------------- ##
1581 ## Cache variables. ##
1582 ## ---------------- ##
1585 # The following way of writing the cache mishandles newlines in values,
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
1605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1617 ## ----------------- ##
1618 ## Output variables. ##
1619 ## ----------------- ##
1622 for ac_var in $ac_subst_vars
1624 eval ac_val=\$$ac_var
1626 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 echo "$ac_var='\''$ac_val'\''"
1632 if test -n "$ac_subst_files"; then
1634 ## ------------------- ##
1635 ## File substitutions. ##
1636 ## ------------------- ##
1639 for ac_var in $ac_subst_files
1641 eval ac_val=\$$ac_var
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 echo "$ac_var='\''$ac_val'\''"
1650 if test -s confdefs.h; then
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668 for ac_signal in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1674 rm -f -r conftest* confdefs.h
1676 # Predefined preprocessor variables.
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_NAME "$PACKAGE_NAME"
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_STRING "$PACKAGE_STRING"
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1703 # Let the site file select an alternate cache file if it wants to.
1704 # Prefer explicitly selected file to automatically selected ones.
1705 if test -n "$CONFIG_SITE"; then
1706 set x "$CONFIG_SITE"
1707 elif test "x$prefix" != xNONE; then
1708 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1710 set x "$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
1716 if test -r "$ac_site_file"; then
1717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718 echo "$as_me: loading site script $ac_site_file" >&6;}
1719 sed 's/^/| /' "$ac_site_file" >&5
1724 if test -r "$cache_file"; then
1725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729 echo "$as_me: loading cache $cache_file" >&6;}
1731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732 *) . "./$cache_file";;
1736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737 echo "$as_me: creating cache $cache_file" >&6;}
1741 # Check that the precious variables saved in the cache have kept the same
1743 ac_cache_corrupted=false
1744 for ac_var in $ac_precious_vars; do
1745 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1746 eval ac_new_set=\$ac_env_${ac_var}_set
1747 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1748 eval ac_new_val=\$ac_env_${ac_var}_value
1749 case $ac_old_set,$ac_new_set in
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1752 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1755 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1756 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1757 ac_cache_corrupted=: ;;
1760 if test "x$ac_old_val" != "x$ac_new_val"; then
1761 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1762 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1763 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1764 echo "$as_me: former value: $ac_old_val" >&2;}
1765 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1766 echo "$as_me: current value: $ac_new_val" >&2;}
1767 ac_cache_corrupted=:
1770 # Pass precious variables to config.status.
1771 if test "$ac_new_set" = set; then
1773 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 *) ac_arg=$ac_var=$ac_new_val ;;
1776 case " $ac_configure_args " in
1777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1778 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1782 if $ac_cache_corrupted; then
1783 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1784 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1785 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1786 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1787 { (exit 1); exit 1; }; }
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815 for ac_dir in config "$srcdir"/config; do
1816 if test -f "$ac_dir/install-sh"; then
1818 ac_install_sh="$ac_aux_dir/install-sh -c"
1820 elif test -f "$ac_dir/install.sh"; then
1822 ac_install_sh="$ac_aux_dir/install.sh -c"
1824 elif test -f "$ac_dir/shtool"; then
1826 ac_install_sh="$ac_aux_dir/shtool install -c"
1830 if test -z "$ac_aux_dir"; then
1831 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1832 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1833 { (exit 1); exit 1; }; }
1836 # These three variables are undocumented and unsupported,
1837 # and are intended to be withdrawn in a future Autoconf release.
1838 # They can cause serious problems if a builder's source tree is in a directory
1839 # whose full name contains unusual characters.
1840 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1841 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1842 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1848 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1849 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1850 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1852 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1853 MONTH=`echo $DATE | awk -F- '{print $2}'`
1854 YEAR=`echo $DATE | awk -F- '{print $3}'`
1856 if expr $YEAR ">" 1900 > /dev/null ; then
1857 E2FSPROGS_YEAR=$YEAR
1858 elif expr $YEAR ">" 90 >/dev/null ; then
1859 E2FSPROGS_YEAR=19$YEAR
1861 E2FSPROGS_YEAR=20$YEAR
1865 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1866 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1867 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1868 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1869 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1870 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1871 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1872 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1873 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1874 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1875 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1876 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1877 *) echo "Unknown month $MONTH??" ;;
1880 base_ver=`echo $E2FSPROGS_VERSION | \
1881 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1882 pre_vers=`echo $base_ver 0.01 - p | dc`
1884 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1886 case $E2FSPROGS_VERSION in
1888 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1891 E2FSPROGS_PKGVER="$base_ver"
1895 unset DATE MONTH YEAR base_ver pre_vers date_spec
1896 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1897 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1903 # Make sure we can run config.sub.
1904 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1905 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1906 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1907 { (exit 1); exit 1; }; }
1909 { echo "$as_me:$LINENO: checking build system type" >&5
1910 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1911 if test "${ac_cv_build+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 ac_build_alias=$build_alias
1915 test "x$ac_build_alias" = x &&
1916 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1917 test "x$ac_build_alias" = x &&
1918 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1919 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1920 { (exit 1); exit 1; }; }
1921 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1922 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1923 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1924 { (exit 1); exit 1; }; }
1927 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1928 echo "${ECHO_T}$ac_cv_build" >&6; }
1929 case $ac_cv_build in
1931 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1932 echo "$as_me: error: invalid value of canonical build" >&2;}
1933 { (exit 1); exit 1; }; };;
1936 ac_save_IFS=$IFS; IFS='-'
1942 # Remember, the first character of IFS is used to create $*,
1943 # except with old shells:
1946 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1949 { echo "$as_me:$LINENO: checking host system type" >&5
1950 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1951 if test "${ac_cv_host+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 if test "x$host_alias" = x; then
1955 ac_cv_host=$ac_cv_build
1957 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1958 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1959 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1960 { (exit 1); exit 1; }; }
1964 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1965 echo "${ECHO_T}$ac_cv_host" >&6; }
1968 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1969 echo "$as_me: error: invalid value of canonical host" >&2;}
1970 { (exit 1); exit 1; }; };;
1973 ac_save_IFS=$IFS; IFS='-'
1979 # Remember, the first character of IFS is used to create $*,
1980 # except with old shells:
1983 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1987 # Check whether --with-diet-libc was given.
1988 if test "${with_diet_libc+set}" = set; then
1989 withval=$with_diet_libc; CC="diet cc -nostdinc"
1990 { echo "$as_me:$LINENO: result: CC=$CC" >&5
1991 echo "${ECHO_T}CC=$CC" >&6; }
1994 # Check whether --with-cc was given.
1995 if test "${with_cc+set}" = set; then
1996 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
1997 echo "${ECHO_T}CC=$withval" >&6; }
2000 if test -z "$CC" ; then CC=cc; fi
2001 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2002 echo "${ECHO_T}CC defaults to $CC" >&6; }
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011 if test -n "$ac_tool_prefix"; then
2012 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2013 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$CC"; then
2041 { echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6; }
2044 { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2050 if test -z "$ac_cv_prog_CC"; then
2052 # Extract the first word of "gcc", so it can be a program name with args.
2053 set dummy gcc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_ac_ct_CC="gcc"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080 if test -n "$ac_ct_CC"; then
2081 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2082 echo "${ECHO_T}$ac_ct_CC" >&6; }
2084 { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2088 if test "x$ac_ct_CC" = x; then
2091 case $cross_compiling:$ac_tool_warned in
2093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet. If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&5
2096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2097 whose name does not start with the host triplet. If you think this
2098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2099 ac_tool_warned=yes ;;
2107 if test -z "$CC"; then
2108 if test -n "$ac_tool_prefix"; then
2109 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2110 set dummy ${ac_tool_prefix}cc; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_CC="${ac_tool_prefix}cc"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2148 if test -z "$CC"; then
2149 # Extract the first word of "cc", so it can be a program name with args.
2150 set dummy cc; ac_word=$2
2151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2153 if test "${ac_cv_prog_CC+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 if test -n "$CC"; then
2157 ac_cv_prog_CC="$CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2168 ac_prog_rejected=yes
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 if test $ac_prog_rejected = yes; then
2180 # We found a bogon in the path, so make sure we never use it.
2181 set dummy $ac_cv_prog_CC
2183 if test $# != 0; then
2184 # We chose a different compiler from the bogus one.
2185 # However, it has the same basename, so the bogon will be chosen
2186 # first if we set CC to just the basename; use the full file name.
2188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2194 if test -n "$CC"; then
2195 { echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6; }
2198 { echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6; }
2204 if test -z "$CC"; then
2205 if test -n "$ac_tool_prefix"; then
2206 for ac_prog in cl.exe
2208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$CC"; then
2216 ac_cv_prog_CC="$CC" # Let the user override the test.
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 if test -n "$CC"; then
2237 { echo "$as_me:$LINENO: result: $CC" >&5
2238 echo "${ECHO_T}$CC" >&6; }
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2245 test -n "$CC" && break
2248 if test -z "$CC"; then
2250 for ac_prog in cl.exe
2252 # Extract the first word of "$ac_prog", so it can be a program name with args.
2253 set dummy $ac_prog; ac_word=$2
2254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 if test -n "$ac_ct_CC"; then
2260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 ac_cv_prog_ac_ct_CC="$ac_prog"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280 if test -n "$ac_ct_CC"; then
2281 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2282 echo "${ECHO_T}$ac_ct_CC" >&6; }
2284 { echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6; }
2289 test -n "$ac_ct_CC" && break
2292 if test "x$ac_ct_CC" = x; then
2295 case $cross_compiling:$ac_tool_warned in
2297 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2298 whose name does not start with the host triplet. If you think this
2299 configuration is useful to you, please write to autoconf@gnu.org." >&5
2300 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2301 whose name does not start with the host triplet. If you think this
2302 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2303 ac_tool_warned=yes ;;
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO: checking for C compiler version" >&5
2320 ac_compiler=`set X $ac_compile; echo $2`
2321 { (ac_try="$ac_compiler --version >&5"
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_compiler --version >&5") 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331 { (ac_try="$ac_compiler -v >&5"
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337 (eval "$ac_compiler -v >&5") 2>&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341 { (ac_try="$ac_compiler -V >&5"
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2347 (eval "$ac_compiler -V >&5") 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2352 cat >conftest.$ac_ext <<_ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2367 ac_clean_files_save=$ac_clean_files
2368 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2369 # Try to create an executable without -o first, disregard a.out.
2370 # It will help us diagnose broken compilers, and finding out an intuition
2372 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2373 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2374 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2376 # List of possible output files, starting from the most likely.
2377 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2378 # only as a last resort. b.out is created by i960 compilers.
2379 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2381 # The IRIX 6 linker writes into existing files which may not be
2382 # executable, retaining their permissions. Remove them first so a
2383 # subsequent execution test works.
2385 for ac_file in $ac_files
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2389 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2394 if { (ac_try="$ac_link_default"
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_link_default") 2>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; then
2404 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2405 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2406 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2407 # so that the user can short-circuit this test for compilers unknown to
2409 for ac_file in $ac_files
2411 test -f "$ac_file" || continue
2413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2416 # We found the default executable, but exeext='' is most
2420 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2424 # We set ac_cv_exeext here because the later test for it is not
2425 # safe: cross compilers may not add the suffix if given an `-o'
2426 # argument, so we may need to know it at that point already.
2427 # Even if this section looks crufty: it has the advantage of
2434 test "$ac_cv_exeext" = no && ac_cv_exeext=
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&2;}
2444 { (exit 77); exit 77; }; }
2447 ac_exeext=$ac_cv_exeext
2448 { echo "$as_me:$LINENO: result: $ac_file" >&5
2449 echo "${ECHO_T}$ac_file" >&6; }
2451 # Check that the compiler produces executables we can run. If not, either
2452 # the compiler is broken, or we cross compile.
2453 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2454 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2455 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2456 # If not cross compiling, check that we can run a simple program.
2457 if test "$cross_compiling" != yes; then
2458 if { ac_try='./$ac_file'
2459 { (case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_try") 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2470 if test "$cross_compiling" = maybe; then
2473 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2474 If you meant to cross compile, use \`--host'.
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \`config.log' for more details." >&2;}
2479 { (exit 1); exit 1; }; }
2483 { echo "$as_me:$LINENO: result: yes" >&5
2484 echo "${ECHO_T}yes" >&6; }
2486 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2487 ac_clean_files=$ac_clean_files_save
2488 # Check that the compiler produces executables we can run. If not, either
2489 # the compiler is broken, or we cross compile.
2490 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2491 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2492 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2493 echo "${ECHO_T}$cross_compiling" >&6; }
2495 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2496 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2497 if { (ac_try="$ac_link"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_link") 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then
2507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2509 # work properly (i.e., refer to `conftest.exe'), while it won't with
2511 for ac_file in conftest.exe conftest conftest.*; do
2512 test -f "$ac_file" || continue
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2522 See \`config.log' for more details." >&5
2523 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2524 See \`config.log' for more details." >&2;}
2525 { (exit 1); exit 1; }; }
2528 rm -f conftest$ac_cv_exeext
2529 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2530 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2532 rm -f conftest.$ac_ext
2533 EXEEXT=$ac_cv_exeext
2535 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2536 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2537 if test "${ac_cv_objext+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 cat >conftest.$ac_ext <<_ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2555 rm -f conftest.o conftest.obj
2556 if { (ac_try="$ac_compile"
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_compile") 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; then
2566 for ac_file in conftest.o conftest.obj conftest.*; do
2567 test -f "$ac_file" || continue;
2569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2587 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2588 echo "${ECHO_T}$ac_cv_objext" >&6; }
2589 OBJEXT=$ac_cv_objext
2591 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2592 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 cat >conftest.$ac_ext <<_ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2614 rm -f conftest.$ac_objext
2615 if { (ac_try="$ac_compile"
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_compile") 2>conftest.er1
2623 grep -v '^ *+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2629 { (case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634 (eval "$ac_try") 2>&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest.$ac_objext'
2639 { (case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644 (eval "$ac_try") 2>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2660 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2661 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2662 GCC=`test $ac_compiler_gnu = yes && echo yes`
2663 ac_test_CFLAGS=${CFLAGS+set}
2664 ac_save_CFLAGS=$CFLAGS
2665 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2666 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_cc_g+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 ac_save_c_werror_flag=$ac_c_werror_flag
2671 ac_c_werror_flag=yes
2674 cat >conftest.$ac_ext <<_ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2689 rm -f conftest.$ac_objext
2690 if { (ac_try="$ac_compile"
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compile") 2>conftest.er1
2698 grep -v '^ *+' conftest.er1 >conftest.err
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2704 { (case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_try") 2>&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_try") 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2729 cat >conftest.$ac_ext <<_ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2744 rm -f conftest.$ac_objext
2745 if { (ac_try="$ac_compile"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compile") 2>conftest.er1
2753 grep -v '^ *+' conftest.er1 >conftest.err
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2759 { (case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_try") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_try") 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 ac_c_werror_flag=$ac_save_c_werror_flag
2785 cat >conftest.$ac_ext <<_ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2800 rm -f conftest.$ac_objext
2801 if { (ac_try="$ac_compile"
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807 (eval "$ac_compile") 2>conftest.er1
2809 grep -v '^ *+' conftest.er1 >conftest.err
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2815 { (case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_try") 2>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_try") 2>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 ac_c_werror_flag=$ac_save_c_werror_flag
2851 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2852 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2853 if test "$ac_test_CFLAGS" = set; then
2854 CFLAGS=$ac_save_CFLAGS
2855 elif test $ac_cv_prog_cc_g = yes; then
2856 if test "$GCC" = yes; then
2862 if test "$GCC" = yes; then
2868 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2869 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2870 if test "${ac_cv_prog_cc_c89+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 ac_cv_prog_cc_c89=no
2875 cat >conftest.$ac_ext <<_ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2883 #include <sys/types.h>
2884 #include <sys/stat.h>
2885 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2886 struct buf { int x; };
2887 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2888 static char *e (p, i)
2894 static char *f (char * (*g) (char **, int), char **p, ...)
2899 s = g (p, va_arg (v,int));
2904 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2905 function prototypes and stuff, but not '\xHH' hex character constants.
2906 These don't provoke an error unfortunately, instead are silently treated
2907 as 'x'. The following induces an error, until -std is added to get
2908 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2909 array size at least. It's necessary to write '\x00'==0 to get something
2910 that's true only with -std. */
2911 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2913 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2914 inside strings and character constants. */
2916 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2918 int test (int i, double x);
2919 struct s1 {int (*f) (int a);};
2920 struct s2 {int (*f) (double a);};
2921 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2927 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2932 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2933 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2935 CC="$ac_save_CC $ac_arg"
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 ac_cv_prog_cc_c89=$ac_arg
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f core conftest.err conftest.$ac_objext
2979 test "x$ac_cv_prog_cc_c89" != "xno" && break
2981 rm -f conftest.$ac_ext
2986 case "x$ac_cv_prog_cc_c89" in
2988 { echo "$as_me:$LINENO: result: none needed" >&5
2989 echo "${ECHO_T}none needed" >&6; } ;;
2991 { echo "$as_me:$LINENO: result: unsupported" >&5
2992 echo "${ECHO_T}unsupported" >&6; } ;;
2994 CC="$CC $ac_cv_prog_cc_c89"
2995 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2996 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3001 ac_cpp='$CPP $CPPFLAGS'
3002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3007 # Check whether --with-linker was given.
3008 if test "${with_linker+set}" = set; then
3009 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3010 echo "${ECHO_T}LD=$withval" >&6; }
3013 if test -z "$LD" ; then LD=$CC; fi
3014 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3015 echo "${ECHO_T}LD defaults to $LD" >&6; }
3020 # Check whether --with-ccopts was given.
3021 if test "${with_ccopts+set}" = set; then
3022 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3023 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3033 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3034 # On Suns, sometimes $CPP names a directory.
3035 if test -n "$CPP" && test -d "$CPP"; then
3038 if test -z "$CPP"; then
3039 if test "${ac_cv_prog_CPP+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 # Double quotes because CPP needs to be expanded
3043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3046 for ac_c_preproc_warn_flag in '' yes
3048 # Use a header file that comes with gcc, so configuring glibc
3049 # with a fresh cross-compiler works.
3050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3051 # <limits.h> exists even on freestanding compilers.
3052 # On the NeXT, cc -E runs the code through the compiler's parser,
3053 # not just through cpp. "Syntax error" is here to catch this case.
3054 cat >conftest.$ac_ext <<_ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3061 # include <limits.h>
3063 # include <assert.h>
3067 if { (ac_try="$ac_cpp conftest.$ac_ext"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null; then
3080 if test -s conftest.err; then
3081 ac_cpp_err=$ac_c_preproc_warn_flag
3082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3089 if test -z "$ac_cpp_err"; then
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 # Broken: fails on valid input.
3099 rm -f conftest.err conftest.$ac_ext
3101 # OK, works on sane cases. Now check whether nonexistent headers
3102 # can be detected and how.
3103 cat >conftest.$ac_ext <<_ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3109 #include <ac_nonexistent.h>
3111 if { (ac_try="$ac_cpp conftest.$ac_ext"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3119 grep -v '^ *+' conftest.er1 >conftest.err
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } >/dev/null; then
3124 if test -s conftest.err; then
3125 ac_cpp_err=$ac_c_preproc_warn_flag
3126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3133 if test -z "$ac_cpp_err"; then
3134 # Broken: success on invalid input.
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 # Passes both tests.
3145 rm -f conftest.err conftest.$ac_ext
3148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3149 rm -f conftest.err conftest.$ac_ext
3150 if $ac_preproc_ok; then
3162 { echo "$as_me:$LINENO: result: $CPP" >&5
3163 echo "${ECHO_T}$CPP" >&6; }
3165 for ac_c_preproc_warn_flag in '' yes
3167 # Use a header file that comes with gcc, so configuring glibc
3168 # with a fresh cross-compiler works.
3169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3170 # <limits.h> exists even on freestanding compilers.
3171 # On the NeXT, cc -E runs the code through the compiler's parser,
3172 # not just through cpp. "Syntax error" is here to catch this case.
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3180 # include <limits.h>
3182 # include <assert.h>
3186 if { (ac_try="$ac_cpp conftest.$ac_ext"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null; then
3199 if test -s conftest.err; then
3200 ac_cpp_err=$ac_c_preproc_warn_flag
3201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3208 if test -z "$ac_cpp_err"; then
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 # Broken: fails on valid input.
3218 rm -f conftest.err conftest.$ac_ext
3220 # OK, works on sane cases. Now check whether nonexistent headers
3221 # can be detected and how.
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include <ac_nonexistent.h>
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 if test -z "$ac_cpp_err"; then
3253 # Broken: success on invalid input.
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 # Passes both tests.
3264 rm -f conftest.err conftest.$ac_ext
3267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268 rm -f conftest.err conftest.$ac_ext
3269 if $ac_preproc_ok; then
3272 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3273 See \`config.log' for more details." >&5
3274 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3275 See \`config.log' for more details." >&2;}
3276 { (exit 1); exit 1; }; }
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3287 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3288 if test "${ac_cv_path_GREP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 # Extract the first word of "grep ggrep" to use in msg output
3292 if test -z "$GREP"; then
3293 set dummy grep ggrep; ac_prog_name=$2
3294 if test "${ac_cv_path_GREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 ac_path_GREP_found=false
3298 # Loop through the user's path and test for each of PROGNAME-LIST
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3303 test -z "$as_dir" && as_dir=.
3304 for ac_prog in grep ggrep; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3307 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3308 # Check for GNU ac_path_GREP and select it if it is found.
3309 # Check for GNU $ac_path_GREP
3310 case `"$ac_path_GREP" --version 2>&1` in
3312 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3315 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3318 cat "conftest.in" "conftest.in" >"conftest.tmp"
3319 mv "conftest.tmp" "conftest.in"
3320 cp "conftest.in" "conftest.nl"
3321 echo 'GREP' >> "conftest.nl"
3322 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3324 ac_count=`expr $ac_count + 1`
3325 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3326 # Best one so far, save it but keep looking for a better one
3327 ac_cv_path_GREP="$ac_path_GREP"
3328 ac_path_GREP_max=$ac_count
3330 # 10*(2^10) chars as input seems more than enough
3331 test $ac_count -gt 10 && break
3333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3337 $ac_path_GREP_found && break 3
3347 GREP="$ac_cv_path_GREP"
3348 if test -z "$GREP"; then
3349 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3350 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3351 { (exit 1); exit 1; }; }
3355 ac_cv_path_GREP=$GREP
3360 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3361 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3362 GREP="$ac_cv_path_GREP"
3365 { echo "$as_me:$LINENO: checking for egrep" >&5
3366 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3367 if test "${ac_cv_path_EGREP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3371 then ac_cv_path_EGREP="$GREP -E"
3373 # Extract the first word of "egrep" to use in msg output
3374 if test -z "$EGREP"; then
3375 set dummy egrep; ac_prog_name=$2
3376 if test "${ac_cv_path_EGREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 ac_path_EGREP_found=false
3380 # Loop through the user's path and test for each of PROGNAME-LIST
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3385 test -z "$as_dir" && as_dir=.
3386 for ac_prog in egrep; do
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3389 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3390 # Check for GNU ac_path_EGREP and select it if it is found.
3391 # Check for GNU $ac_path_EGREP
3392 case `"$ac_path_EGREP" --version 2>&1` in
3394 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3397 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3400 cat "conftest.in" "conftest.in" >"conftest.tmp"
3401 mv "conftest.tmp" "conftest.in"
3402 cp "conftest.in" "conftest.nl"
3403 echo 'EGREP' >> "conftest.nl"
3404 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3406 ac_count=`expr $ac_count + 1`
3407 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3408 # Best one so far, save it but keep looking for a better one
3409 ac_cv_path_EGREP="$ac_path_EGREP"
3410 ac_path_EGREP_max=$ac_count
3412 # 10*(2^10) chars as input seems more than enough
3413 test $ac_count -gt 10 && break
3415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3419 $ac_path_EGREP_found && break 3
3429 EGREP="$ac_cv_path_EGREP"
3430 if test -z "$EGREP"; then
3431 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3432 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3433 { (exit 1); exit 1; }; }
3437 ac_cv_path_EGREP=$EGREP
3443 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3444 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3445 EGREP="$ac_cv_path_EGREP"
3448 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3449 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3450 if test "${ac_cv_header_stdc+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 cat >conftest.$ac_ext <<_ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3472 rm -f conftest.$ac_objext
3473 if { (ac_try="$ac_compile"
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_compile") 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
3486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3487 { (case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_try") 2>&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest.$ac_objext'
3497 { (case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_try") 2>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 ac_cv_header_stdc=yes
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 ac_cv_header_stdc=no
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 if test $ac_cv_header_stdc = yes; then
3517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 $EGREP "memchr" >/dev/null 2>&1; then
3531 ac_cv_header_stdc=no
3537 if test $ac_cv_header_stdc = yes; then
3538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "free" >/dev/null 2>&1; then
3552 ac_cv_header_stdc=no
3558 if test $ac_cv_header_stdc = yes; then
3559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3560 if test "$cross_compiling" = yes; then
3563 cat >conftest.$ac_ext <<_ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3571 #if ((' ' & 0x0FF) == 0x020)
3572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3575 # define ISLOWER(c) \
3576 (('a' <= (c) && (c) <= 'i') \
3577 || ('j' <= (c) && (c) <= 'r') \
3578 || ('s' <= (c) && (c) <= 'z'))
3579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3587 for (i = 0; i < 256; i++)
3588 if (XOR (islower (i), ISLOWER (i))
3589 || toupper (i) != TOUPPER (i))
3594 rm -f conftest$ac_exeext
3595 if { (ac_try="$ac_link"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_link") 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3605 { (case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_try") 2>&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3616 echo "$as_me: program exited with status $ac_status" >&5
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3621 ac_cv_header_stdc=no
3623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3629 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3630 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3631 if test $ac_cv_header_stdc = yes; then
3633 cat >>confdefs.h <<\_ACEOF
3634 #define STDC_HEADERS 1
3639 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3649 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3650 inttypes.h stdint.h unistd.h
3652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 cat >conftest.$ac_ext <<_ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3664 $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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3683 { (case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_try") 2>&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; }; then
3702 eval "$as_ac_Header=yes"
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 eval "$as_ac_Header=no"
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_res=`eval echo '${'$as_ac_Header'}'`
3713 { echo "$as_me:$LINENO: result: $ac_res" >&5
3714 echo "${ECHO_T}$ac_res" >&6; }
3715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3716 cat >>confdefs.h <<_ACEOF
3717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3725 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3726 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3727 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3728 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3732 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3734 # Is the header compilable?
3735 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3736 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3737 cat >conftest.$ac_ext <<_ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 $ac_includes_default
3744 #include <linux/fs.h>
3746 rm -f conftest.$ac_objext
3747 if { (ac_try="$ac_compile"
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3753 (eval "$ac_compile") 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3761 { (case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_try") 2>&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; } &&
3770 { ac_try='test -s conftest.$ac_objext'
3771 { (case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_try") 2>&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 ac_header_compiler=yes
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3785 ac_header_compiler=no
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3790 echo "${ECHO_T}$ac_header_compiler" >&6; }
3792 # Is the header present?
3793 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3794 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3795 cat >conftest.$ac_ext <<_ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 #include <linux/fs.h>
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null; then
3816 if test -s conftest.err; then
3817 ac_cpp_err=$ac_c_preproc_warn_flag
3818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3825 if test -z "$ac_cpp_err"; then
3826 ac_header_preproc=yes
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 ac_header_preproc=no
3834 rm -f conftest.err conftest.$ac_ext
3835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3836 echo "${ECHO_T}$ac_header_preproc" >&6; }
3838 # So? What about this header?
3839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3841 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3842 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3843 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3844 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3845 ac_header_preproc=yes
3848 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3849 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3850 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3851 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3852 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3853 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3854 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3855 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3856 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3857 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3858 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3859 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3863 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3864 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3865 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 ac_cv_header_linux_fs_h=$ac_header_preproc
3870 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3871 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3874 if test $ac_cv_header_linux_fs_h = yes; then
3881 if test "$linux_headers" != yes; then
3882 LINUX_INCLUDE='-I$(top_builddir)/include'
3885 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3886 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3887 if test "$GCC" = yes
3890 alpha) addcflags="-mieee" ;;
3893 if test "x$addcflags" != x
3895 { echo "$as_me:$LINENO: result: $addcflags" >&5
3896 echo "${ECHO_T}$addcflags" >&6; }
3897 CFLAGS="$addcflags $CFLAGS"
3899 { echo "$as_me:$LINENO: result: (none)" >&5
3900 echo "${ECHO_T}(none)" >&6; }
3906 # Check whether --with-ldopts was given.
3907 if test "${with_ldopts+set}" = set; then
3908 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3909 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3916 # Check whether --with-root-prefix was given.
3917 if test "${with_root_prefix+set}" = set; then
3918 withval=$with_root_prefix; root_prefix=$withval
3922 # Check whether --enable-maintainer-mode was given.
3923 if test "${enable_maintainer_mode+set}" = set; then
3924 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3927 echo "Disabling maintainer mode"
3930 echo "Enabling maintainer mode"
3935 echo "Disabling maintainer mode by default"
3940 # Check whether --enable-compression was given.
3941 if test "${enable_compression+set}" = set; then
3942 enableval=$enable_compression; if test "$enableval" = "no"
3944 echo "Disabling compression support"
3946 cat >>confdefs.h <<\_ACEOF
3947 #define ENABLE_COMPRESSION 1
3950 echo "Enabling compression support"
3951 echo "WARNING: Compression support is experimental"
3955 echo "Disabling compression support by default"
3959 # Check whether --enable-htree was given.
3960 if test "${enable_htree+set}" = set; then
3961 enableval=$enable_htree; if test "$enableval" = "no"
3964 echo "Disabling htree directory support"
3967 cat >>confdefs.h <<\_ACEOF
3968 #define ENABLE_HTREE 1
3971 echo "Enabling htree directory support"
3976 cat >>confdefs.h <<\_ACEOF
3977 #define ENABLE_HTREE 1
3980 echo "Enabling htree directory support by default"
3985 # Check whether --enable-elf-shlibs was given.
3986 if test "${enable_elf_shlibs+set}" = set; then
3987 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3990 MAKEFILE_ELF=/dev/null
3991 echo "Disabling ELF shared libraries"
3994 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3997 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4002 echo "Enabling ELF shared libraries"
4006 MAKEFILE_ELF=/dev/null
4008 echo "Disabling ELF shared libraries by default"
4014 # Check whether --enable-bsd-shlibs was given.
4015 if test "${enable_bsd_shlibs+set}" = set; then
4016 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4019 MAKEFILE_BSDLIB=/dev/null
4020 echo "Disabling BSD shared libraries"
4023 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4027 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4031 echo "Enabling BSD shared libraries"
4035 MAKEFILE_BSDLIB=/dev/null
4037 echo "Disabling BSD shared libraries by default"
4043 # Check whether --enable-profile was given.
4044 if test "${enable_profile+set}" = set; then
4045 enableval=$enable_profile; if test "$enableval" = "no"
4048 MAKEFILE_PROFILE=/dev/null
4049 echo "Disabling profiling libraries"
4052 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4053 PROFILED_LIB_EXT=_p.a
4054 echo "Building profiling libraries"
4059 MAKEFILE_PROFILE=/dev/null
4060 echo "Disabling profiling libraries by default"
4066 # Check whether --enable-checker was given.
4067 if test "${enable_checker+set}" = set; then
4068 enableval=$enable_checker; if test "$enableval" = "no"
4071 MAKEFILE_CHECKER=/dev/null
4072 echo "Disabling checker libraries"
4075 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4076 echo "Building checker libraries"
4081 MAKEFILE_CHECKER=/dev/null
4082 echo "Disabling checker libraries by default"
4091 # Check whether --enable-jbd-debug was given.
4092 if test "${enable_jbd_debug+set}" = set; then
4093 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4095 echo "Disabling journal debugging"
4097 cat >>confdefs.h <<\_ACEOF
4098 #define CONFIG_JBD_DEBUG 1
4101 echo "Enabling journal debugging"
4105 echo "Disabling journal debugging by default"
4109 # Check whether --enable-blkid-debug was given.
4110 if test "${enable_blkid_debug+set}" = set; then
4111 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4113 echo "Disabling blkid debugging"
4115 cat >>confdefs.h <<\_ACEOF
4116 #define CONFIG_BLKID_DEBUG 1
4119 echo "Enabling blkid debugging"
4123 echo "Disabling blkid debugging by default"
4127 # Check whether --enable-testio-debug was given.
4128 if test "${enable_testio_debug+set}" = set; then
4129 enableval=$enable_testio_debug; if test "$enableval" = "no"
4131 echo "Disabling testio debugging"
4133 cat >>confdefs.h <<\_ACEOF
4134 #define CONFIG_TESTIO_DEBUG 1
4137 echo "Enabling testio debugging"
4141 echo "Disabling testio debugging by default"
4145 # Check whether --enable-swapfs was given.
4146 if test "${enable_swapfs+set}" = set; then
4147 enableval=$enable_swapfs; if test "$enableval" = "no"
4150 echo "Disabling swapfs support"
4153 cat >>confdefs.h <<\_ACEOF
4154 #define ENABLE_SWAPFS 1
4157 echo "Enabling swapfs support"
4162 echo "Enabling swapfs support by default"
4163 cat >>confdefs.h <<\_ACEOF
4164 #define ENABLE_SWAPFS 1
4171 # Check whether --enable-debugfs was given.
4172 if test "${enable_debugfs+set}" = set; then
4173 enableval=$enable_debugfs; if test "$enableval" = "no"
4175 echo "Disabling debugfs support"
4179 echo "Enabling debugfs support"
4183 echo "Enabling debugfs support by default"
4189 # Check whether --enable-imager was given.
4190 if test "${enable_imager+set}" = set; then
4191 enableval=$enable_imager; if test "$enableval" = "no"
4193 echo "Disabling e2image support"
4197 echo "Enabling e2image support"
4201 echo "Enabling e2image support by default"
4207 # Check whether --enable-resizer was given.
4208 if test "${enable_resizer+set}" = set; then
4209 enableval=$enable_resizer; if test "$enableval" = "no"
4211 echo "Disabling e2resize support"
4215 echo "Enabling e2resize support"
4219 echo "Enabling e2resize support by default"
4225 # Check whether --enable-dynamic-e2fsck was given.
4226 if test "${enable_dynamic_e2fsck+set}" = set; then
4227 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
4230 echo "Building e2fsck statically"
4233 echo "Building e2fsck dynamically"
4238 echo "Building e2fsck statically by default"
4243 # Check whether --enable-fsck was given.
4244 if test "${enable_fsck+set}" = set; then
4245 enableval=$enable_fsck; if test "$enableval" = "no"
4247 FSCK_PROG='' FSCK_MAN=''
4248 echo "Not building fsck wrapper"
4250 FSCK_PROG=fsck FSCK_MAN=fsck.8
4251 echo "Building fsck wrapper"
4257 FSCK_PROG='' FSCK_MAN=''
4258 echo "Not building fsck wrapper by default"
4261 FSCK_PROG=fsck FSCK_MAN=fsck.8
4262 echo "Building fsck wrapper by default"
4269 # Check whether --enable-e2initrd-helper was given.
4270 if test "${enable_e2initrd_helper+set}" = set; then
4271 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4273 E2INITRD_PROG='' E2INITRD_MAN=''
4274 echo "Not building e2initrd helper"
4276 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4277 echo "Building e2initrd helper"
4281 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4282 echo "Building e2initrd helper by default"
4288 # Check whether --enable-blkid-devmapper was given.
4289 if test "${enable_blkid_devmapper+set}" = set; then
4290 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4292 echo "Disabling device-mapper support"
4295 STATIC_DEVMAPPER_LIBS=''
4297 cat >>confdefs.h <<\_ACEOF
4298 #define HAVE_DEVMAPPER 1
4301 echo "Enabling device-mapper support"
4303 DEVMAPPER_REQ='libselinux libsepol'
4304 DEVMAPPER_PC_LIBS='-ldevmapper'
4305 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4306 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
4311 echo "Disabling device-mapper support by default"
4319 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4321 GETTEXT_PACKAGE=e2fsprogs
4323 VERSION="$E2FSPROGS_VERSION"
4325 cat >>confdefs.h <<_ACEOF
4326 #define PACKAGE "$PACKAGE"
4329 cat >>confdefs.h <<_ACEOF
4330 #define VERSION "$VERSION"
4337 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4338 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4339 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4340 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 cat >conftest.make <<\_ACEOF
4346 @echo '@@@%%%=$(MAKE)=@@@%%%'
4348 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4349 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4351 eval ac_cv_prog_make_${ac_make}_set=yes;;
4353 eval ac_cv_prog_make_${ac_make}_set=no;;
4357 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4358 { echo "$as_me:$LINENO: result: yes" >&5
4359 echo "${ECHO_T}yes" >&6; }
4362 { echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6; }
4364 SET_MAKE="MAKE=${MAKE-make}"
4367 # Find a good install program. We prefer a C program (faster),
4368 # so one script is as good as another. But avoid the broken or
4369 # incompatible versions:
4370 # SysV /etc/install, /usr/sbin/install
4371 # SunOS /usr/etc/install
4372 # IRIX /sbin/install
4374 # AmigaOS /C/install, which installs bootblocks on floppy discs
4375 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4376 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4377 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4378 # OS/2's system install, which has a completely different semantic
4379 # ./install, which can be erroneously created by make from ./install.sh.
4380 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4381 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4382 if test -z "$INSTALL"; then
4383 if test "${ac_cv_path_install+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir=.
4391 # Account for people who put trailing slashes in PATH elements.
4393 ./ | .// | /cC/* | \
4394 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4395 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4398 # OSF1 and SCO ODT 3.0 have their own names for install.
4399 # Don't use installbsd from OSF since it installs stuff as root
4401 for ac_prog in ginstall scoinst install; do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4404 if test $ac_prog = install &&
4405 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4406 # AIX install. It has an incompatible calling convention.
4408 elif test $ac_prog = install &&
4409 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4410 # program-specific install script used by HP pwplus--don't use.
4413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4426 if test "${ac_cv_path_install+set}" = set; then
4427 INSTALL=$ac_cv_path_install
4429 # As a last resort, use the slow shell script. Don't cache a
4430 # value for INSTALL within a source directory, because that will
4431 # break other packages using the cache if that directory is
4432 # removed, or if the value is a relative name.
4433 INSTALL=$ac_install_sh
4436 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4437 echo "${ECHO_T}$INSTALL" >&6; }
4439 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4440 # It thinks the first close brace ends the variable substitution.
4441 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4443 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4445 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4449 if test -n "$ac_aux_dir"; then
4450 case "$ac_aux_dir" in
4451 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4452 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4455 if test -z "$MKINSTALLDIRS"; then
4456 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4461 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4462 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4463 # Check whether --enable-nls was given.
4464 if test "${enable_nls+set}" = set; then
4465 enableval=$enable_nls; USE_NLS=$enableval
4470 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4471 echo "${ECHO_T}$USE_NLS" >&6; }
4478 # Prepare PATH_SEPARATOR.
4479 # The user is always right.
4480 if test "${PATH_SEPARATOR+set}" != set; then
4481 echo "#! /bin/sh" >conf$$.sh
4482 echo "exit 0" >>conf$$.sh
4484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4492 # Find out how to test for executable files. Don't use a zero-byte file,
4493 # as systems may use methods other than mode bits to determine executability.
4494 cat >conf$$.file <<_ASEOF
4498 chmod +x conf$$.file
4499 if test -x conf$$.file >/dev/null 2>&1; then
4500 ac_executable_p="test -x"
4502 ac_executable_p="test -f"
4506 # Extract the first word of "msgfmt", so it can be a program name with args.
4507 set dummy msgfmt; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_path_MSGFMT+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4518 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH; do
4521 test -z "$ac_dir" && ac_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4524 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4525 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4526 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4533 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4537 MSGFMT="$ac_cv_path_MSGFMT"
4538 if test "$MSGFMT" != ":"; then
4539 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4540 echo "${ECHO_T}$MSGFMT" >&6; }
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4546 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4547 set dummy gmsgfmt; ac_word=$2
4548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4550 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4577 GMSGFMT=$ac_cv_path_GMSGFMT
4578 if test -n "$GMSGFMT"; then
4579 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4580 echo "${ECHO_T}$GMSGFMT" >&6; }
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4589 # Prepare PATH_SEPARATOR.
4590 # The user is always right.
4591 if test "${PATH_SEPARATOR+set}" != set; then
4592 echo "#! /bin/sh" >conf$$.sh
4593 echo "exit 0" >>conf$$.sh
4595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4603 # Find out how to test for executable files. Don't use a zero-byte file,
4604 # as systems may use methods other than mode bits to determine executability.
4605 cat >conf$$.file <<_ASEOF
4609 chmod +x conf$$.file
4610 if test -x conf$$.file >/dev/null 2>&1; then
4611 ac_executable_p="test -x"
4613 ac_executable_p="test -f"
4617 # Extract the first word of "xgettext", so it can be a program name with args.
4618 set dummy xgettext; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4629 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4630 for ac_dir in $PATH; do
4632 test -z "$ac_dir" && ac_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4635 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4636 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4637 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4644 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4648 XGETTEXT="$ac_cv_path_XGETTEXT"
4649 if test "$XGETTEXT" != ":"; then
4650 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4651 echo "${ECHO_T}$XGETTEXT" >&6; }
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4660 # Prepare PATH_SEPARATOR.
4661 # The user is always right.
4662 if test "${PATH_SEPARATOR+set}" != set; then
4663 echo "#! /bin/sh" >conf$$.sh
4664 echo "exit 0" >>conf$$.sh
4666 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4674 # Find out how to test for executable files. Don't use a zero-byte file,
4675 # as systems may use methods other than mode bits to determine executability.
4676 cat >conf$$.file <<_ASEOF
4680 chmod +x conf$$.file
4681 if test -x conf$$.file >/dev/null 2>&1; then
4682 ac_executable_p="test -x"
4684 ac_executable_p="test -f"
4688 # Extract the first word of "msgmerge", so it can be a program name with args.
4689 set dummy msgmerge; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4700 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4701 for ac_dir in $PATH; do
4703 test -z "$ac_dir" && ac_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4706 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4707 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4714 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4718 MSGMERGE="$ac_cv_path_MSGMERGE"
4719 if test "$MSGMERGE" != ":"; then
4720 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4721 echo "${ECHO_T}$MSGMERGE" >&6; }
4723 { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4728 if test "$GMSGFMT" != ":"; then
4729 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4730 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4733 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4734 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4735 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4740 if test "$XGETTEXT" != ":"; then
4741 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4742 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4745 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4746 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4752 ac_config_commands="$ac_config_commands default-1"
4755 if test -n "$ac_tool_prefix"; then
4756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_prog_RANLIB+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 if test -n "$RANLIB"; then
4764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 RANLIB=$ac_cv_prog_RANLIB
4784 if test -n "$RANLIB"; then
4785 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4786 echo "${ECHO_T}$RANLIB" >&6; }
4788 { echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6; }
4794 if test -z "$ac_cv_prog_RANLIB"; then
4795 ac_ct_RANLIB=$RANLIB
4796 # Extract the first word of "ranlib", so it can be a program name with args.
4797 set dummy ranlib; ac_word=$2
4798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4800 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 if test -n "$ac_ct_RANLIB"; then
4804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4813 ac_cv_prog_ac_ct_RANLIB="ranlib"
4814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4824 if test -n "$ac_ct_RANLIB"; then
4825 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4826 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4828 { echo "$as_me:$LINENO: result: no" >&5
4829 echo "${ECHO_T}no" >&6; }
4832 if test "x$ac_ct_RANLIB" = x; then
4835 case $cross_compiling:$ac_tool_warned in
4837 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4838 whose name does not start with the host triplet. If you think this
4839 configuration is useful to you, please write to autoconf@gnu.org." >&5
4840 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4841 whose name does not start with the host triplet. If you think this
4842 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4843 ac_tool_warned=yes ;;
4845 RANLIB=$ac_ct_RANLIB
4848 RANLIB="$ac_cv_prog_RANLIB"
4852 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4853 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4854 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_check_lib_save_LIBS=$LIBS
4858 LIBS="-lcposix $LIBS"
4859 cat >conftest.$ac_ext <<_ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 /* Override any GCC internal prototype to avoid an error.
4867 Use char because int might match the return type of a GCC
4868 builtin and then its argument prototype would still apply. */
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (ac_try="$ac_link"
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_link") 2>conftest.er1
4890 grep -v '^ *+' conftest.er1 >conftest.err
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
4895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4896 { (case "(($ac_try" in
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901 (eval "$ac_try") 2>&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; } &&
4905 { ac_try='test -s conftest$ac_exeext'
4906 { (case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911 (eval "$ac_try") 2>&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_lib_cposix_strerror=yes
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 ac_cv_lib_cposix_strerror=no
4923 rm -f core conftest.err conftest.$ac_objext \
4924 conftest$ac_exeext conftest.$ac_ext
4925 LIBS=$ac_check_lib_save_LIBS
4927 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4928 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4929 if test $ac_cv_lib_cposix_strerror = yes; then
4930 LIBS="$LIBS -lcposix"
4935 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4936 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4937 if test "${ac_cv_c_const+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4950 /* FIXME: Include the comments suggested by Paul. */
4952 /* Ultrix mips cc rejects this. */
4953 typedef int charset[2];
4955 /* SunOS 4.1.1 cc rejects this. */
4956 char const *const *ccp;
4958 /* NEC SVR4.0.2 mips cc rejects this. */
4959 struct point {int x, y;};
4960 static struct point const zero = {0,0};
4961 /* AIX XL C 1.02.0.0 rejects this.
4962 It does not let you subtract one const X* pointer from another in
4963 an arm of an if-expression whose if-part is not a constant
4965 const char *g = "string";
4966 ccp = &g + (g ? g-g : 0);
4967 /* HPUX 7.0 cc rejects these. */
4970 ccp = (char const *const *) p;
4971 { /* SCO 3.2v4 cc rejects this. */
4973 char const *s = 0 ? (char *) 0 : (char const *) 0;
4978 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4980 const int *foo = &x[0];
4983 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4984 typedef const int *iptr;
4988 { /* AIX XL C 1.02.0.0 rejects this saying
4989 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4990 struct s { int j; const int *ap[3]; };
4991 struct s *b; b->j = 5;
4993 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4997 return !x[0] && !zero.x;
5004 rm -f conftest.$ac_objext
5005 if { (ac_try="$ac_compile"
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_compile") 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5019 { (case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_try") 2>&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest.$ac_objext'
5029 { (case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_try") 2>&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5049 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5050 if test $ac_cv_c_const = no; then
5052 cat >>confdefs.h <<\_ACEOF
5059 { echo "$as_me:$LINENO: checking for signed" >&5
5060 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5061 if test "${bh_cv_c_signed+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5079 rm -f conftest.$ac_objext
5080 if { (ac_try="$ac_compile"
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086 (eval "$ac_compile") 2>conftest.er1
5088 grep -v '^ *+' conftest.er1 >conftest.err
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
5093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5094 { (case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_try") 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109 (eval "$ac_try") 2>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5124 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5125 if test $bh_cv_c_signed = no; then
5127 cat >>confdefs.h <<\_ACEOF
5133 { echo "$as_me:$LINENO: checking for inline" >&5
5134 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5135 if test "${ac_cv_c_inline+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 for ac_kw in inline __inline__ __inline; do
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5148 static $ac_kw foo_t static_foo () {return 0; }
5149 $ac_kw foo_t foo () {return 0; }
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160 (eval "$ac_compile") 2>conftest.er1
5162 grep -v '^ *+' conftest.er1 >conftest.err
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5168 { (case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_try") 2>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; } &&
5177 { ac_try='test -s conftest.$ac_objext'
5178 { (case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_try") 2>&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 ac_cv_c_inline=$ac_kw
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 test "$ac_cv_c_inline" != no && break
5200 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5201 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5204 case $ac_cv_c_inline in
5207 case $ac_cv_c_inline in
5209 *) ac_val=$ac_cv_c_inline;;
5211 cat >>confdefs.h <<_ACEOF
5213 #define inline $ac_val
5219 { echo "$as_me:$LINENO: checking for off_t" >&5
5220 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5221 if test "${ac_cv_type_off_t+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 $ac_includes_default
5231 typedef off_t ac__type_new_;
5235 if ((ac__type_new_ *) 0)
5237 if (sizeof (ac__type_new_))
5243 rm -f conftest.$ac_objext
5244 if { (ac_try="$ac_compile"
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5258 { (case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_try") 2>&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try='test -s conftest.$ac_objext'
5268 { (case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_try") 2>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_type_off_t=yes
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5288 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5289 if test $ac_cv_type_off_t = yes; then
5293 cat >>confdefs.h <<_ACEOF
5294 #define off_t long int
5299 { echo "$as_me:$LINENO: checking for size_t" >&5
5300 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5301 if test "${ac_cv_type_size_t+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 $ac_includes_default
5311 typedef size_t ac__type_new_;
5315 if ((ac__type_new_ *) 0)
5317 if (sizeof (ac__type_new_))
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_compile") 2>conftest.er1
5332 grep -v '^ *+' conftest.er1 >conftest.err
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5338 { (case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_try") 2>&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_try") 2>&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_type_size_t=yes
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 ac_cv_type_size_t=no
5365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5368 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5369 if test $ac_cv_type_size_t = yes; then
5373 cat >>confdefs.h <<_ACEOF
5374 #define size_t unsigned int
5380 { echo "$as_me:$LINENO: checking for long long" >&5
5381 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5382 if test "${ac_cv_type_long_long+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 long long ll = 1LL; int i = 63;
5395 long long llmax = (long long) -1;
5396 return ll << i | ll >> i | llmax / ll | llmax % ll;
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (ac_try="$ac_link"
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_link") 2>conftest.er1
5410 grep -v '^ *+' conftest.er1 >conftest.err
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5416 { (case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_try") 2>&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; } &&
5425 { ac_try='test -s conftest$ac_exeext'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5435 ac_cv_type_long_long=yes
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 ac_cv_type_long_long=no
5443 rm -f core conftest.err conftest.$ac_objext \
5444 conftest$ac_exeext conftest.$ac_ext
5446 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5447 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5448 if test $ac_cv_type_long_long = yes; then
5450 cat >>confdefs.h <<\_ACEOF
5451 #define HAVE_LONG_LONG 1
5457 { echo "$as_me:$LINENO: checking for long double" >&5
5458 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5459 if test "${gt_cv_c_long_double+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 if test "$GCC" = yes; then
5463 gt_cv_c_long_double=yes
5465 cat >conftest.$ac_ext <<_ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5472 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5473 long double foo = 0.0;
5474 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5475 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5485 rm -f conftest.$ac_objext
5486 if { (ac_try="$ac_compile"
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
5499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5500 { (case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_try") 2>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try='test -s conftest.$ac_objext'
5510 { (case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_try") 2>&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 gt_cv_c_long_double=yes
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 gt_cv_c_long_double=no
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5531 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5532 if test $gt_cv_c_long_double = yes; then
5534 cat >>confdefs.h <<\_ACEOF
5535 #define HAVE_LONG_DOUBLE 1
5541 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5542 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5543 if test "${gt_cv_c_wchar_t+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5553 wchar_t foo = (wchar_t)'\0';
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5577 { (case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_try") 2>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; } &&
5586 { ac_try='test -s conftest.$ac_objext'
5587 { (case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_try") 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5607 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5608 if test $gt_cv_c_wchar_t = yes; then
5610 cat >>confdefs.h <<\_ACEOF
5611 #define HAVE_WCHAR_T 1
5617 { echo "$as_me:$LINENO: checking for wint_t" >&5
5618 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5619 if test "${gt_cv_c_wint_t+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5629 wint_t foo = (wchar_t)'\0';
5638 rm -f conftest.$ac_objext
5639 if { (ac_try="$ac_compile"
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compile") 2>conftest.er1
5647 grep -v '^ *+' conftest.er1 >conftest.err
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } &&
5652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5653 { (case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_try") 2>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest.$ac_objext'
5663 { (case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_try") 2>&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5683 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5684 if test $gt_cv_c_wint_t = yes; then
5686 cat >>confdefs.h <<\_ACEOF
5687 #define HAVE_WINT_T 1
5693 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5694 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5695 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <sys/types.h>
5705 #include <inttypes.h>
5709 uintmax_t i = (uintmax_t) -1;
5714 rm -f conftest.$ac_objext
5715 if { (ac_try="$ac_compile"
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_compile") 2>conftest.er1
5723 grep -v '^ *+' conftest.er1 >conftest.err
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5729 { (case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_try") 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 jm_ac_cv_header_inttypes_h=yes
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 jm_ac_cv_header_inttypes_h=no
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5759 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5760 if test $jm_ac_cv_header_inttypes_h = yes; then
5762 cat >>confdefs.h <<_ACEOF
5763 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5769 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5770 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5771 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 #include <sys/types.h>
5785 uintmax_t i = (uintmax_t) -1;
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5805 { (case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_try") 2>&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_try") 2>&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 jm_ac_cv_header_stdint_h=yes
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 jm_ac_cv_header_stdint_h=no
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5835 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5836 if test $jm_ac_cv_header_stdint_h = yes; then
5838 cat >>confdefs.h <<_ACEOF
5839 #define HAVE_STDINT_H_WITH_UINTMAX 1
5847 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5848 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5849 if test "${gt_cv_c_intmax_t+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5861 #if HAVE_STDINT_H_WITH_UINTMAX
5864 #if HAVE_INTTYPES_H_WITH_UINTMAX
5865 #include <inttypes.h>
5876 rm -f conftest.$ac_objext
5877 if { (ac_try="$ac_compile"
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_compile") 2>conftest.er1
5885 grep -v '^ *+' conftest.er1 >conftest.err
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5891 { (case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_try") 2>&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest.$ac_objext'
5901 { (case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_try") 2>&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 gt_cv_c_intmax_t=yes
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5921 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5922 if test $gt_cv_c_intmax_t = yes; then
5924 cat >>confdefs.h <<\_ACEOF
5925 #define HAVE_INTMAX_T 1
5932 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5933 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5934 if test "${gt_cv_func_printf_posix+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test "$cross_compiling" = yes; then
5940 cat >conftest.$ac_ext <<_ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5947 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953 $EGREP "notposix" >/dev/null 2>&1; then
5954 gt_cv_func_printf_posix="guessing no"
5956 gt_cv_func_printf_posix="guessing yes"
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5971 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5972 dollar expansion (possibly an autoconf bug). */
5973 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5974 static char buf[100];
5977 sprintf (buf, format, 33, 55);
5978 return (strcmp (buf, "55 33") != 0);
5981 rm -f conftest$ac_exeext
5982 if { (ac_try="$ac_link"
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_link") 2>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5992 { (case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_try") 2>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 gt_cv_func_printf_posix=yes
6003 echo "$as_me: program exited with status $ac_status" >&5
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6008 gt_cv_func_printf_posix=no
6010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6016 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6017 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
6018 case $gt_cv_func_printf_posix in
6021 cat >>confdefs.h <<\_ACEOF
6022 #define HAVE_POSIX_PRINTF 1
6028 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6029 # for constant arguments. Useless!
6030 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6031 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6032 if test "${ac_cv_working_alloca_h+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6045 char *p = (char *) alloca (2 * sizeof (int));
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (ac_try="$ac_link"
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_link") 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6066 { (case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_try") 2>&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest$ac_exeext'
6076 { (case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_try") 2>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_working_alloca_h=yes
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_cv_working_alloca_h=no
6093 rm -f core conftest.err conftest.$ac_objext \
6094 conftest$ac_exeext conftest.$ac_ext
6096 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6097 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6098 if test $ac_cv_working_alloca_h = yes; then
6100 cat >>confdefs.h <<\_ACEOF
6101 #define HAVE_ALLOCA_H 1
6106 { echo "$as_me:$LINENO: checking for alloca" >&5
6107 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6108 if test "${ac_cv_func_alloca_works+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6118 # define alloca __builtin_alloca
6121 # include <malloc.h>
6122 # define alloca _alloca
6125 # include <alloca.h>
6130 # ifndef alloca /* predefined by HP cc +Olibcalls */
6141 char *p = (char *) alloca (1);
6147 rm -f conftest.$ac_objext conftest$ac_exeext
6148 if { (ac_try="$ac_link"
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_link") 2>conftest.er1
6156 grep -v '^ *+' conftest.er1 >conftest.err
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
6161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest$ac_exeext'
6172 { (case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_try") 2>&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_cv_func_alloca_works=yes
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ac_cv_func_alloca_works=no
6189 rm -f core conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext conftest.$ac_ext
6192 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6193 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6195 if test $ac_cv_func_alloca_works = yes; then
6197 cat >>confdefs.h <<\_ACEOF
6198 #define HAVE_ALLOCA 1
6202 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6203 # that cause trouble. Some versions do not even contain alloca or
6204 # contain a buggy version. If you still want to use their alloca,
6205 # use ar to extract alloca.o from them instead of compiling alloca.c.
6207 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6209 cat >>confdefs.h <<\_ACEOF
6214 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6215 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6216 if test "${ac_cv_os_cray+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #if defined CRAY && ! defined CRAY2
6232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6233 $EGREP "webecray" >/dev/null 2>&1; then
6241 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6242 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6243 if test $ac_cv_os_cray = yes; then
6244 for ac_func in _getb67 GETB67 getb67; do
6245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 cat >conftest.$ac_ext <<_ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6259 #define $ac_func innocuous_$ac_func
6261 /* System header to define __stub macros and hopefully few prototypes,
6262 which can conflict with char $ac_func (); below.
6263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 <limits.h> exists even on freestanding compilers. */
6267 # include <limits.h>
6269 # include <assert.h>
6274 /* Override any GCC internal prototype to avoid an error.
6275 Use char because int might match the return type of a GCC
6276 builtin and then its argument prototype would still apply. */
6281 /* The GNU C library defines this for functions which it implements
6282 to always fail with ENOSYS. Some functions are actually named
6283 something starting with __ and the normal name is an alias. */
6284 #if defined __stub_$ac_func || defined __stub___$ac_func
6296 rm -f conftest.$ac_objext conftest$ac_exeext
6297 if { (ac_try="$ac_link"
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_link") 2>conftest.er1
6305 grep -v '^ *+' conftest.er1 >conftest.err
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6311 { (case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_try") 2>&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest$ac_exeext'
6321 { (case "(($ac_try" in
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326 (eval "$ac_try") 2>&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 eval "$as_ac_var=yes"
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 eval "$as_ac_var=no"
6338 rm -f core conftest.err conftest.$ac_objext \
6339 conftest$ac_exeext conftest.$ac_ext
6341 ac_res=`eval echo '${'$as_ac_var'}'`
6342 { echo "$as_me:$LINENO: result: $ac_res" >&5
6343 echo "${ECHO_T}$ac_res" >&6; }
6344 if test `eval echo '${'$as_ac_var'}'` = yes; then
6346 cat >>confdefs.h <<_ACEOF
6347 #define CRAY_STACKSEG_END $ac_func
6356 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6357 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6358 if test "${ac_cv_c_stack_direction+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 if test "$cross_compiling" = yes; then
6362 ac_cv_c_stack_direction=0
6364 cat >conftest.$ac_ext <<_ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6372 find_stack_direction ()
6374 static char *addr = 0;
6379 return find_stack_direction ();
6382 return (&dummy > addr) ? 1 : -1;
6388 return find_stack_direction () < 0;
6391 rm -f conftest$ac_exeext
6392 if { (ac_try="$ac_link"
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_link") 2>&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 ac_cv_c_stack_direction=1
6413 echo "$as_me: program exited with status $ac_status" >&5
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6418 ac_cv_c_stack_direction=-1
6420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6425 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6426 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6428 cat >>confdefs.h <<_ACEOF
6429 #define STACK_DIRECTION $ac_cv_c_stack_direction
6437 for ac_header in stdlib.h unistd.h
6439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6446 ac_res=`eval echo '${'$as_ac_Header'}'`
6447 { echo "$as_me:$LINENO: result: $ac_res" >&5
6448 echo "${ECHO_T}$ac_res" >&6; }
6450 # Is the header compilable?
6451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6453 cat >conftest.$ac_ext <<_ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6460 #include <$ac_header>
6462 rm -f conftest.$ac_objext
6463 if { (ac_try="$ac_compile"
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6471 grep -v '^ *+' conftest.er1 >conftest.err
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6477 { (case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_try") 2>&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_header_compiler=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 ac_header_compiler=no
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6506 echo "${ECHO_T}$ac_header_compiler" >&6; }
6508 # Is the header present?
6509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6511 cat >conftest.$ac_ext <<_ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <$ac_header>
6519 if { (ac_try="$ac_cpp conftest.$ac_ext"
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } >/dev/null; then
6532 if test -s conftest.err; then
6533 ac_cpp_err=$ac_c_preproc_warn_flag
6534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6541 if test -z "$ac_cpp_err"; then
6542 ac_header_preproc=yes
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6547 ac_header_preproc=no
6550 rm -f conftest.err conftest.$ac_ext
6551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6552 echo "${ECHO_T}$ac_header_preproc" >&6; }
6554 # So? What about this header?
6555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6561 ac_header_preproc=yes
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 eval "$as_ac_Header=\$ac_header_preproc"
6586 ac_res=`eval echo '${'$as_ac_Header'}'`
6587 { echo "$as_me:$LINENO: result: $ac_res" >&5
6588 echo "${ECHO_T}$ac_res" >&6; }
6591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6592 cat >>confdefs.h <<_ACEOF
6593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6601 for ac_func in getpagesize
6603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 cat >conftest.$ac_ext <<_ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6617 #define $ac_func innocuous_$ac_func
6619 /* System header to define __stub macros and hopefully few prototypes,
6620 which can conflict with char $ac_func (); below.
6621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6622 <limits.h> exists even on freestanding compilers. */
6625 # include <limits.h>
6627 # include <assert.h>
6632 /* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */
6639 /* The GNU C library defines this for functions which it implements
6640 to always fail with ENOSYS. Some functions are actually named
6641 something starting with __ and the normal name is an alias. */
6642 #if defined __stub_$ac_func || defined __stub___$ac_func
6654 rm -f conftest.$ac_objext conftest$ac_exeext
6655 if { (ac_try="$ac_link"
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_link") 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6669 { (case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_try") 2>&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; } &&
6678 { ac_try='test -s conftest$ac_exeext'
6679 { (case "(($ac_try" in
6680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681 *) ac_try_echo=$ac_try;;
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_try") 2>&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 eval "$as_ac_var=yes"
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 eval "$as_ac_var=no"
6696 rm -f core conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
6699 ac_res=`eval echo '${'$as_ac_var'}'`
6700 { echo "$as_me:$LINENO: result: $ac_res" >&5
6701 echo "${ECHO_T}$ac_res" >&6; }
6702 if test `eval echo '${'$as_ac_var'}'` = yes; then
6703 cat >>confdefs.h <<_ACEOF
6704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6710 { echo "$as_me:$LINENO: checking for working mmap" >&5
6711 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6712 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 if test "$cross_compiling" = yes; then
6716 ac_cv_func_mmap_fixed_mapped=no
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 $ac_includes_default
6725 /* malloc might have been renamed as rpl_malloc. */
6728 /* Thanks to Mike Haertel and Jim Avera for this test.
6729 Here is a matrix of mmap possibilities:
6730 mmap private not fixed
6731 mmap private fixed at somewhere currently unmapped
6732 mmap private fixed at somewhere already mapped
6733 mmap shared not fixed
6734 mmap shared fixed at somewhere currently unmapped
6735 mmap shared fixed at somewhere already mapped
6736 For private mappings, we should verify that changes cannot be read()
6737 back from the file, nor mmap's back from the file at a different
6738 address. (There have been systems where private was not correctly
6739 implemented like the infamous i386 svr4.0, and systems where the
6740 VM page cache was not coherent with the file system buffer cache
6741 like early versions of FreeBSD and possibly contemporary NetBSD.)
6742 For shared mappings, we should conversely verify that changes get
6743 propagated back to all the places they're supposed to be.
6745 Grep wants private fixed already mapped.
6746 The main things grep needs to know about mmap are:
6747 * does it exist and is it safe to write into the mmap'd area
6748 * how to use it (BSD variants) */
6751 #include <sys/mman.h>
6753 #if !STDC_HEADERS && !HAVE_STDLIB_H
6757 /* This mess was copied from the GNU getpagesize.h. */
6758 #if !HAVE_GETPAGESIZE
6759 /* Assume that all systems that can run configure have sys/param.h. */
6760 # if !HAVE_SYS_PARAM_H
6761 # define HAVE_SYS_PARAM_H 1
6764 # ifdef _SC_PAGESIZE
6765 # define getpagesize() sysconf(_SC_PAGESIZE)
6766 # else /* no _SC_PAGESIZE */
6767 # if HAVE_SYS_PARAM_H
6768 # include <sys/param.h>
6769 # ifdef EXEC_PAGESIZE
6770 # define getpagesize() EXEC_PAGESIZE
6771 # else /* no EXEC_PAGESIZE */
6773 # define getpagesize() NBPG * CLSIZE
6776 # endif /* no CLSIZE */
6777 # else /* no NBPG */
6779 # define getpagesize() NBPC
6780 # else /* no NBPC */
6782 # define getpagesize() PAGESIZE
6783 # endif /* PAGESIZE */
6784 # endif /* no NBPC */
6785 # endif /* no NBPG */
6786 # endif /* no EXEC_PAGESIZE */
6787 # else /* no HAVE_SYS_PARAM_H */
6788 # define getpagesize() 8192 /* punt totally */
6789 # endif /* no HAVE_SYS_PARAM_H */
6790 # endif /* no _SC_PAGESIZE */
6792 #endif /* no HAVE_GETPAGESIZE */
6797 char *data, *data2, *data3;
6801 pagesize = getpagesize ();
6803 /* First, make a file with some known garbage in it. */
6804 data = (char *) malloc (pagesize);
6807 for (i = 0; i < pagesize; ++i)
6808 *(data + i) = rand ();
6810 fd = creat ("conftest.mmap", 0600);
6813 if (write (fd, data, pagesize) != pagesize)
6817 /* Next, try to mmap the file at a fixed address which already has
6818 something else allocated at it. If we can, also make sure that
6819 we see the same garbage. */
6820 fd = open ("conftest.mmap", O_RDWR);
6823 data2 = (char *) malloc (2 * pagesize);
6826 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6827 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6828 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6830 for (i = 0; i < pagesize; ++i)
6831 if (*(data + i) != *(data2 + i))
6834 /* Finally, make sure that changes to the mapped area do not
6835 percolate back to the file as seen by read(). (This is a bug on
6836 some variants of i386 svr4.0.) */
6837 for (i = 0; i < pagesize; ++i)
6838 *(data2 + i) = *(data2 + i) + 1;
6839 data3 = (char *) malloc (pagesize);
6842 if (read (fd, data3, pagesize) != pagesize)
6844 for (i = 0; i < pagesize; ++i)
6845 if (*(data + i) != *(data3 + i))
6851 rm -f conftest$ac_exeext
6852 if { (ac_try="$ac_link"
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_link") 2>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6862 { (case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_try") 2>&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6871 ac_cv_func_mmap_fixed_mapped=yes
6873 echo "$as_me: program exited with status $ac_status" >&5
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_cv_func_mmap_fixed_mapped=no
6880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6885 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6886 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6887 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6889 cat >>confdefs.h <<\_ACEOF
6897 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6898 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6899 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 cat >conftest.$ac_ext <<_ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6909 #include <features.h>
6910 #ifdef __GNU_LIBRARY__
6911 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6918 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6919 ac_cv_gnu_library_2_1=yes
6921 ac_cv_gnu_library_2_1=no
6928 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6929 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6931 GLIBC21="$ac_cv_gnu_library_2_1"
6936 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6937 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6938 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 if test "$cross_compiling" = yes; then
6944 # Guess based on the CPU.
6946 alpha* | i3456786 | m68k | s390*)
6947 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6949 gt_cv_int_divbyzero_sigfpe="guessing no";;
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6965 sigfpe_handler (int sig)
6967 sigfpe_handler (sig) int sig;
6970 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6971 exit (sig != SIGFPE);
6981 signal (SIGFPE, sigfpe_handler);
6982 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6983 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6984 signal (SIGTRAP, sigfpe_handler);
6986 /* Linux/SPARC yields signal SIGILL. */
6987 #if defined (__sparc__) && defined (__linux__)
6988 signal (SIGILL, sigfpe_handler);
6997 rm -f conftest$ac_exeext
6998 if { (ac_try="$ac_link"
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004 (eval "$ac_link") 2>&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7008 { (case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_try") 2>&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 gt_cv_int_divbyzero_sigfpe=yes
7019 echo "$as_me: program exited with status $ac_status" >&5
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7024 gt_cv_int_divbyzero_sigfpe=no
7026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7032 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7033 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
7034 case "$gt_cv_int_divbyzero_sigfpe" in
7039 cat >>confdefs.h <<_ACEOF
7040 #define INTDIV0_RAISES_SIGFPE $value
7045 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7046 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
7047 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 cat >conftest.$ac_ext <<_ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 unsigned long long ull = 1ULL; int i = 63;
7060 unsigned long long ullmax = (unsigned long long) -1;
7061 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (ac_try="$ac_link"
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_link") 2>conftest.er1
7075 grep -v '^ *+' conftest.er1 >conftest.err
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
7080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7081 { (case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_try") 2>&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; } &&
7090 { ac_try='test -s conftest$ac_exeext'
7091 { (case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7096 (eval "$ac_try") 2>&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; }; then
7100 ac_cv_type_unsigned_long_long=yes
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7105 ac_cv_type_unsigned_long_long=no
7108 rm -f core conftest.err conftest.$ac_objext \
7109 conftest$ac_exeext conftest.$ac_ext
7111 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7112 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7113 if test $ac_cv_type_unsigned_long_long = yes; then
7115 cat >>confdefs.h <<\_ACEOF
7116 #define HAVE_UNSIGNED_LONG_LONG 1
7124 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7126 test $ac_cv_type_unsigned_long_long = yes \
7127 && ac_type='unsigned long long' \
7128 || ac_type='unsigned long'
7130 cat >>confdefs.h <<_ACEOF
7131 #define uintmax_t $ac_type
7136 cat >>confdefs.h <<\_ACEOF
7137 #define HAVE_UINTMAX_T 1
7143 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7144 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
7145 if test "${gt_cv_header_inttypes_h+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 cat >conftest.$ac_ext <<_ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <sys/types.h>
7156 #include <inttypes.h>
7165 rm -f conftest.$ac_objext
7166 if { (ac_try="$ac_compile"
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7174 grep -v '^ *+' conftest.er1 >conftest.err
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7180 { (case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_try") 2>&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest.$ac_objext'
7190 { (case "(($ac_try" in
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_try") 2>&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 gt_cv_header_inttypes_h=yes
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 gt_cv_header_inttypes_h=no
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7211 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7212 if test $gt_cv_header_inttypes_h = yes; then
7214 cat >>confdefs.h <<_ACEOF
7215 #define HAVE_INTTYPES_H 1
7222 if test $gt_cv_header_inttypes_h = yes; then
7223 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7224 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7225 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 cat >conftest.$ac_ext <<_ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7235 #include <inttypes.h>
7248 rm -f conftest.$ac_objext
7249 if { (ac_try="$ac_compile"
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7257 grep -v '^ *+' conftest.er1 >conftest.err
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } &&
7262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7263 { (case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_try") 2>&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try='test -s conftest.$ac_objext'
7273 { (case "(($ac_try" in
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7278 (eval "$ac_try") 2>&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 gt_cv_inttypes_pri_broken=no
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 gt_cv_inttypes_pri_broken=yes
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7294 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7296 if test "$gt_cv_inttypes_pri_broken" = yes; then
7298 cat >>confdefs.h <<_ACEOF
7299 #define PRI_MACROS_BROKEN 1
7306 for ac_header in stdint.h
7308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 ac_res=`eval echo '${'$as_ac_Header'}'`
7316 { echo "$as_me:$LINENO: result: $ac_res" >&5
7317 echo "${ECHO_T}$ac_res" >&6; }
7319 # Is the header compilable?
7320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 $ac_includes_default
7329 #include <$ac_header>
7331 rm -f conftest.$ac_objext
7332 if { (ac_try="$ac_compile"
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_compile") 2>conftest.er1
7340 grep -v '^ *+' conftest.er1 >conftest.err
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7346 { (case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351 (eval "$ac_try") 2>&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest.$ac_objext'
7356 { (case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_try") 2>&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_header_compiler=yes
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_header_compiler=no
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7375 echo "${ECHO_T}$ac_header_compiler" >&6; }
7377 # Is the header present?
7378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <$ac_header>
7388 if { (ac_try="$ac_cpp conftest.$ac_ext"
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7396 grep -v '^ *+' conftest.er1 >conftest.err
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } >/dev/null; then
7401 if test -s conftest.err; then
7402 ac_cpp_err=$ac_c_preproc_warn_flag
7403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7410 if test -z "$ac_cpp_err"; then
7411 ac_header_preproc=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 ac_header_preproc=no
7419 rm -f conftest.err conftest.$ac_ext
7420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7421 echo "${ECHO_T}$ac_header_preproc" >&6; }
7423 # So? What about this header?
7424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7430 ac_header_preproc=yes
7433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 eval "$as_ac_Header=\$ac_header_preproc"
7455 ac_res=`eval echo '${'$as_ac_Header'}'`
7456 { echo "$as_me:$LINENO: result: $ac_res" >&5
7457 echo "${ECHO_T}$ac_res" >&6; }
7460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7461 cat >>confdefs.h <<_ACEOF
7462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7469 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7470 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7489 $EGREP "Found it" >/dev/null 2>&1; then
7494 if test -z "$result"; then
7495 if test "$cross_compiling" = yes; then
7496 # Depending upon the size, compute the lo and hi bounds.
7497 cat >conftest.$ac_ext <<_ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7507 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7514 rm -f conftest.$ac_objext
7515 if { (ac_try="$ac_compile"
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_compile") 2>conftest.er1
7523 grep -v '^ *+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7529 { (case "(($ac_try" in
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7534 (eval "$ac_try") 2>&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; } &&
7538 { ac_try='test -s conftest.$ac_objext'
7539 { (case "(($ac_try" in
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544 (eval "$ac_try") 2>&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7550 cat >conftest.$ac_ext <<_ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7560 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7567 rm -f conftest.$ac_objext
7568 if { (ac_try="$ac_compile"
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7576 grep -v '^ *+' conftest.er1 >conftest.err
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7582 { (case "(($ac_try" in
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_try") 2>&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (case "(($ac_try" in
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7597 (eval "$ac_try") 2>&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 ac_hi=$ac_mid; break
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 ac_lo=`expr $ac_mid + 1`
7607 if test $ac_lo -le $ac_mid; then
7611 ac_mid=`expr 2 '*' $ac_mid + 1`
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 cat >conftest.$ac_ext <<_ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7630 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7637 rm -f conftest.$ac_objext
7638 if { (ac_try="$ac_compile"
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_compile") 2>conftest.er1
7646 grep -v '^ *+' conftest.er1 >conftest.err
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7652 { (case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_try") 2>&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest.$ac_objext'
7662 { (case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_try") 2>&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7673 cat >conftest.$ac_ext <<_ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7683 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7699 grep -v '^ *+' conftest.er1 >conftest.err
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7705 { (case "(($ac_try" in
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_try") 2>&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_try") 2>&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 ac_lo=$ac_mid; break
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7729 ac_hi=`expr '(' $ac_mid ')' - 1`
7730 if test $ac_mid -le $ac_hi; then
7734 ac_mid=`expr 2 '*' $ac_mid`
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 # Binary search between lo and hi bounds.
7751 while test "x$ac_lo" != "x$ac_hi"; do
7752 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7753 cat >conftest.$ac_ext <<_ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7763 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7770 rm -f conftest.$ac_objext
7771 if { (ac_try="$ac_compile"
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_compile") 2>conftest.er1
7779 grep -v '^ *+' conftest.er1 >conftest.err
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest.$ac_objext'
7795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 ac_lo=`expr '(' $ac_mid ')' + 1`
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 cat >conftest.$ac_ext <<_ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7826 static long int longval () { return ~(size_t)0 / 10; }
7827 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7834 FILE *f = fopen ("conftest.val", "w");
7837 if ((~(size_t)0 / 10) < 0)
7839 long int i = longval ();
7840 if (i != (~(size_t)0 / 10))
7842 fprintf (f, "%ld\n", i);
7846 unsigned long int i = ulongval ();
7847 if (i != (~(size_t)0 / 10))
7849 fprintf (f, "%lu\n", i);
7851 return ferror (f) || fclose (f) != 0;
7857 rm -f conftest$ac_exeext
7858 if { (ac_try="$ac_link"
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_link") 2>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 res_hi=`cat conftest.val`
7879 echo "$as_me: program exited with status $ac_status" >&5
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7889 if test "$cross_compiling" = yes; then
7890 # Depending upon the size, compute the lo and hi bounds.
7891 cat >conftest.$ac_ext <<_ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7901 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7917 grep -v '^ *+' conftest.er1 >conftest.err
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7923 { (case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_try") 2>&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; } &&
7932 { ac_try='test -s conftest.$ac_objext'
7933 { (case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_try") 2>&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7954 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7970 grep -v '^ *+' conftest.er1 >conftest.err
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 ac_hi=$ac_mid; break
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_lo=`expr $ac_mid + 1`
8001 if test $ac_lo -le $ac_mid; then
8005 ac_mid=`expr 2 '*' $ac_mid + 1`
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8014 cat >conftest.$ac_ext <<_ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8024 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
8056 { (case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_try") 2>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8067 cat >conftest.$ac_ext <<_ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8077 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8084 rm -f conftest.$ac_objext
8085 if { (ac_try="$ac_compile"
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8093 grep -v '^ *+' conftest.er1 >conftest.err
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8099 { (case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_try") 2>&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try='test -s conftest.$ac_objext'
8109 { (case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_try") 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 ac_lo=$ac_mid; break
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 ac_hi=`expr '(' $ac_mid ')' - 1`
8124 if test $ac_mid -le $ac_hi; then
8128 ac_mid=`expr 2 '*' $ac_mid`
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 # Binary search between lo and hi bounds.
8145 while test "x$ac_lo" != "x$ac_hi"; do
8146 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8147 cat >conftest.$ac_ext <<_ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8157 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 ac_lo=`expr '(' $ac_mid ')' + 1`
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 cat >conftest.$ac_ext <<_ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8220 static long int longval () { return ~(size_t)0 % 10; }
8221 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8228 FILE *f = fopen ("conftest.val", "w");
8231 if ((~(size_t)0 % 10) < 0)
8233 long int i = longval ();
8234 if (i != (~(size_t)0 % 10))
8236 fprintf (f, "%ld\n", i);
8240 unsigned long int i = ulongval ();
8241 if (i != (~(size_t)0 % 10))
8243 fprintf (f, "%lu\n", i);
8245 return ferror (f) || fclose (f) != 0;
8251 rm -f conftest$ac_exeext
8252 if { (ac_try="$ac_link"
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_link") 2>&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8262 { (case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_try") 2>&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 res_lo=`cat conftest.val`
8273 echo "$as_me: program exited with status $ac_status" >&5
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8283 if test "$cross_compiling" = yes; then
8284 # Depending upon the size, compute the lo and hi bounds.
8285 cat >conftest.$ac_ext <<_ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8295 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8302 rm -f conftest.$ac_objext
8303 if { (ac_try="$ac_compile"
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_compile") 2>conftest.er1
8311 grep -v '^ *+' conftest.er1 >conftest.err
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8317 { (case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_try") 2>&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest.$ac_objext'
8327 { (case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_try") 2>&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8348 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8355 rm -f conftest.$ac_objext
8356 if { (ac_try="$ac_compile"
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_compile") 2>conftest.er1
8364 grep -v '^ *+' conftest.er1 >conftest.err
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8370 { (case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_try") 2>&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest.$ac_objext'
8380 { (case "(($ac_try" in
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_try") 2>&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_hi=$ac_mid; break
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8394 ac_lo=`expr $ac_mid + 1`
8395 if test $ac_lo -le $ac_mid; then
8399 ac_mid=`expr 2 '*' $ac_mid + 1`
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 cat >conftest.$ac_ext <<_ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8418 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8425 rm -f conftest.$ac_objext
8426 if { (ac_try="$ac_compile"
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_compile") 2>conftest.er1
8434 grep -v '^ *+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8440 { (case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_try") 2>&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; } &&
8449 { ac_try='test -s conftest.$ac_objext'
8450 { (case "(($ac_try" in
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_try") 2>&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8461 cat >conftest.$ac_ext <<_ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8471 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8478 rm -f conftest.$ac_objext
8479 if { (ac_try="$ac_compile"
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_compile") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest.$ac_objext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_lo=$ac_mid; break
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 ac_hi=`expr '(' $ac_mid ')' - 1`
8518 if test $ac_mid -le $ac_hi; then
8522 ac_mid=`expr 2 '*' $ac_mid`
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 # Binary search between lo and hi bounds.
8539 while test "x$ac_lo" != "x$ac_hi"; do
8540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8551 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8558 rm -f conftest.$ac_objext
8559 if { (ac_try="$ac_compile"
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_compile") 2>conftest.er1
8567 grep -v '^ *+' conftest.er1 >conftest.err
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_try") 2>&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest.$ac_objext'
8583 { (case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_try") 2>&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 ac_lo=`expr '(' $ac_mid ')' + 1`
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 ?*) fits_in_uint=$ac_lo;;
8607 cat >conftest.$ac_ext <<_ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8614 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8615 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8622 FILE *f = fopen ("conftest.val", "w");
8625 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8627 long int i = longval ();
8628 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8630 fprintf (f, "%ld\n", i);
8634 unsigned long int i = ulongval ();
8635 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8637 fprintf (f, "%lu\n", i);
8639 return ferror (f) || fclose (f) != 0;
8645 rm -f conftest$ac_exeext
8646 if { (ac_try="$ac_link"
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_link") 2>&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8656 { (case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_try") 2>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 fits_in_uint=`cat conftest.val`
8667 echo "$as_me: program exited with status $ac_status" >&5
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8677 if test "$fits_in_uint" = 1; then
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8686 extern unsigned long foo;
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8705 grep -v '^ *+' conftest.er1 >conftest.err
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8711 { (case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716 (eval "$ac_try") 2>&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest.$ac_objext'
8721 { (case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_try") 2>&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 if test -z "$result"; then
8741 if test "$fits_in_uint" = 1; then
8742 result="$res_hi$res_lo"U
8744 result="$res_hi$res_lo"UL
8750 { echo "$as_me:$LINENO: result: $result" >&5
8751 echo "${ECHO_T}$result" >&6; }
8752 if test "$result" != yes; then
8754 cat >>confdefs.h <<_ACEOF
8755 #define SIZE_MAX $result
8763 for ac_header in stdint.h
8765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 ac_res=`eval echo '${'$as_ac_Header'}'`
8773 { echo "$as_me:$LINENO: result: $ac_res" >&5
8774 echo "${ECHO_T}$ac_res" >&6; }
8776 # Is the header compilable?
8777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8779 cat >conftest.$ac_ext <<_ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8786 #include <$ac_header>
8788 rm -f conftest.$ac_objext
8789 if { (ac_try="$ac_compile"
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_compile") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803 { (case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_try") 2>&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_header_compiler=yes
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8827 ac_header_compiler=no
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8832 echo "${ECHO_T}$ac_header_compiler" >&6; }
8834 # Is the header present?
8835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8837 cat >conftest.$ac_ext <<_ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8843 #include <$ac_header>
8845 if { (ac_try="$ac_cpp conftest.$ac_ext"
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8853 grep -v '^ *+' conftest.er1 >conftest.err
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } >/dev/null; then
8858 if test -s conftest.err; then
8859 ac_cpp_err=$ac_c_preproc_warn_flag
8860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8867 if test -z "$ac_cpp_err"; then
8868 ac_header_preproc=yes
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8873 ac_header_preproc=no
8876 rm -f conftest.err conftest.$ac_ext
8877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8878 echo "${ECHO_T}$ac_header_preproc" >&6; }
8880 # So? What about this header?
8881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8887 ac_header_preproc=yes
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 eval "$as_ac_Header=\$ac_header_preproc"
8912 ac_res=`eval echo '${'$as_ac_Header'}'`
8913 { echo "$as_me:$LINENO: result: $ac_res" >&5
8914 echo "${ECHO_T}$ac_res" >&6; }
8917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8918 cat >>confdefs.h <<_ACEOF
8919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8928 if test "X$prefix" = "XNONE"; then
8929 acl_final_prefix="$ac_default_prefix"
8931 acl_final_prefix="$prefix"
8933 if test "X$exec_prefix" = "XNONE"; then
8934 acl_final_exec_prefix='${prefix}'
8936 acl_final_exec_prefix="$exec_prefix"
8938 acl_save_prefix="$prefix"
8939 prefix="$acl_final_prefix"
8940 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8941 prefix="$acl_save_prefix"
8944 # Check whether --with-gnu-ld was given.
8945 if test "${with_gnu_ld+set}" = set; then
8946 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8951 # Prepare PATH_SEPARATOR.
8952 # The user is always right.
8953 if test "${PATH_SEPARATOR+set}" != set; then
8954 echo "#! /bin/sh" >conf$$.sh
8955 echo "exit 0" >>conf$$.sh
8957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8965 if test "$GCC" = yes; then
8966 # Check if gcc -print-prog-name=ld gives a path.
8967 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8968 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8971 # gcc leaves a trailing carriage return which upsets mingw
8972 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8974 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8977 # Accept absolute paths.
8978 [\\/]* | [A-Za-z]:[\\/]*)
8979 re_direlt='/[^/][^/]*/\.\./'
8980 # Canonicalize the path of ld
8981 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8982 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8983 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8985 test -z "$LD" && LD="$ac_prog"
8988 # If it fails, then pretend we aren't using GCC.
8992 # If it is relative, then search for the first ld in PATH.
8996 elif test "$with_gnu_ld" = yes; then
8997 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8998 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9000 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9001 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9003 if test "${acl_cv_path_LD+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 if test -z "$LD"; then
9007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9008 for ac_dir in $PATH; do
9009 test -z "$ac_dir" && ac_dir=.
9010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9011 acl_cv_path_LD="$ac_dir/$ac_prog"
9012 # Check to see if the program is GNU ld. I'd rather use --version,
9013 # but apparently some GNU ld's only accept -v.
9014 # Break only if it was the GNU/non-GNU ld that we prefer.
9015 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9016 *GNU* | *'with BFD'*)
9017 test "$with_gnu_ld" != no && break ;;
9019 test "$with_gnu_ld" != yes && break ;;
9025 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9029 LD="$acl_cv_path_LD"
9030 if test -n "$LD"; then
9031 { echo "$as_me:$LINENO: result: $LD" >&5
9032 echo "${ECHO_T}$LD" >&6; }
9034 { echo "$as_me:$LINENO: result: no" >&5
9035 echo "${ECHO_T}no" >&6; }
9037 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9038 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9039 { (exit 1); exit 1; }; }
9040 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9041 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9042 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9046 case `$LD -v 2>&1 </dev/null` in
9047 *GNU* | *'with BFD'*)
9048 acl_cv_prog_gnu_ld=yes ;;
9050 acl_cv_prog_gnu_ld=no ;;
9053 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9054 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
9055 with_gnu_ld=$acl_cv_prog_gnu_ld
9059 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9060 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
9061 if test "${acl_cv_rpath+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9066 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9072 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9073 echo "${ECHO_T}$acl_cv_rpath" >&6; }
9075 libext="$acl_cv_libext"
9076 shlibext="$acl_cv_shlibext"
9077 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9078 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9079 hardcode_direct="$acl_cv_hardcode_direct"
9080 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9081 # Check whether --enable-rpath was given.
9082 if test "${enable_rpath+set}" = set; then
9083 enableval=$enable_rpath; :
9097 acl_save_prefix="$prefix"
9098 prefix="$acl_final_prefix"
9099 acl_save_exec_prefix="$exec_prefix"
9100 exec_prefix="$acl_final_exec_prefix"
9102 eval additional_includedir=\"$includedir\"
9103 eval additional_libdir=\"$libdir\"
9105 exec_prefix="$acl_save_exec_prefix"
9106 prefix="$acl_save_prefix"
9109 # Check whether --with-libiconv-prefix was given.
9110 if test "${with_libiconv_prefix+set}" = set; then
9111 withval=$with_libiconv_prefix;
9112 if test "X$withval" = "Xno"; then
9115 if test "X$withval" = "X"; then
9117 acl_save_prefix="$prefix"
9118 prefix="$acl_final_prefix"
9119 acl_save_exec_prefix="$exec_prefix"
9120 exec_prefix="$acl_final_exec_prefix"
9122 eval additional_includedir=\"$includedir\"
9123 eval additional_libdir=\"$libdir\"
9125 exec_prefix="$acl_save_exec_prefix"
9126 prefix="$acl_save_prefix"
9129 additional_includedir="$withval/include"
9130 additional_libdir="$withval/lib"
9141 names_already_handled=
9142 names_next_round='iconv '
9143 while test -n "$names_next_round"; do
9144 names_this_round="$names_next_round"
9146 for name in $names_this_round; do
9148 for n in $names_already_handled; do
9149 if test "$n" = "$name"; then
9154 if test -z "$already_handled"; then
9155 names_already_handled="$names_already_handled $name"
9156 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9157 eval value=\"\$HAVE_LIB$uppername\"
9158 if test -n "$value"; then
9159 if test "$value" = yes; then
9160 eval value=\"\$LIB$uppername\"
9161 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9162 eval value=\"\$LTLIB$uppername\"
9163 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9172 if test $use_additional = yes; then
9173 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9174 found_dir="$additional_libdir"
9175 found_so="$additional_libdir/lib$name.$shlibext"
9176 if test -f "$additional_libdir/lib$name.la"; then
9177 found_la="$additional_libdir/lib$name.la"
9180 if test -f "$additional_libdir/lib$name.$libext"; then
9181 found_dir="$additional_libdir"
9182 found_a="$additional_libdir/lib$name.$libext"
9183 if test -f "$additional_libdir/lib$name.la"; then
9184 found_la="$additional_libdir/lib$name.la"
9189 if test "X$found_dir" = "X"; then
9190 for x in $LDFLAGS $LTLIBICONV; do
9192 acl_save_prefix="$prefix"
9193 prefix="$acl_final_prefix"
9194 acl_save_exec_prefix="$exec_prefix"
9195 exec_prefix="$acl_final_exec_prefix"
9197 exec_prefix="$acl_save_exec_prefix"
9198 prefix="$acl_save_prefix"
9202 dir=`echo "X$x" | sed -e 's/^X-L//'`
9203 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9205 found_so="$dir/lib$name.$shlibext"
9206 if test -f "$dir/lib$name.la"; then
9207 found_la="$dir/lib$name.la"
9210 if test -f "$dir/lib$name.$libext"; then
9212 found_a="$dir/lib$name.$libext"
9213 if test -f "$dir/lib$name.la"; then
9214 found_la="$dir/lib$name.la"
9220 if test "X$found_dir" != "X"; then
9225 if test "X$found_dir" != "X"; then
9226 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9227 if test "X$found_so" != "X"; then
9228 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9229 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9232 for x in $ltrpathdirs; do
9233 if test "X$x" = "X$found_dir"; then
9238 if test -z "$haveit"; then
9239 ltrpathdirs="$ltrpathdirs $found_dir"
9241 if test "$hardcode_direct" = yes; then
9242 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9244 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9245 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9247 for x in $rpathdirs; do
9248 if test "X$x" = "X$found_dir"; then
9253 if test -z "$haveit"; then
9254 rpathdirs="$rpathdirs $found_dir"
9258 for x in $LDFLAGS $LIBICONV; do
9260 acl_save_prefix="$prefix"
9261 prefix="$acl_final_prefix"
9262 acl_save_exec_prefix="$exec_prefix"
9263 exec_prefix="$acl_final_exec_prefix"
9265 exec_prefix="$acl_save_exec_prefix"
9266 prefix="$acl_save_prefix"
9268 if test "X$x" = "X-L$found_dir"; then
9273 if test -z "$haveit"; then
9274 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9276 if test "$hardcode_minus_L" != no; then
9277 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9279 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9285 if test "X$found_a" != "X"; then
9286 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9288 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9291 additional_includedir=
9292 case "$found_dir" in
9294 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9295 additional_includedir="$basedir/include"
9298 if test "X$additional_includedir" != "X"; then
9299 if test "X$additional_includedir" != "X/usr/include"; then
9301 if test "X$additional_includedir" = "X/usr/local/include"; then
9302 if test -n "$GCC"; then
9304 linux*) haveit=yes;;
9308 if test -z "$haveit"; then
9309 for x in $CPPFLAGS $INCICONV; do
9311 acl_save_prefix="$prefix"
9312 prefix="$acl_final_prefix"
9313 acl_save_exec_prefix="$exec_prefix"
9314 exec_prefix="$acl_final_exec_prefix"
9316 exec_prefix="$acl_save_exec_prefix"
9317 prefix="$acl_save_prefix"
9319 if test "X$x" = "X-I$additional_includedir"; then
9324 if test -z "$haveit"; then
9325 if test -d "$additional_includedir"; then
9326 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9332 if test -n "$found_la"; then
9333 save_libdir="$libdir"
9335 */* | *\\*) . "$found_la" ;;
9336 *) . "./$found_la" ;;
9338 libdir="$save_libdir"
9339 for dep in $dependency_libs; do
9342 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9343 if test "X$additional_libdir" != "X/usr/lib"; then
9345 if test "X$additional_libdir" = "X/usr/local/lib"; then
9346 if test -n "$GCC"; then
9348 linux*) haveit=yes;;
9352 if test -z "$haveit"; then
9354 for x in $LDFLAGS $LIBICONV; do
9356 acl_save_prefix="$prefix"
9357 prefix="$acl_final_prefix"
9358 acl_save_exec_prefix="$exec_prefix"
9359 exec_prefix="$acl_final_exec_prefix"
9361 exec_prefix="$acl_save_exec_prefix"
9362 prefix="$acl_save_prefix"
9364 if test "X$x" = "X-L$additional_libdir"; then
9369 if test -z "$haveit"; then
9370 if test -d "$additional_libdir"; then
9371 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9375 for x in $LDFLAGS $LTLIBICONV; do
9377 acl_save_prefix="$prefix"
9378 prefix="$acl_final_prefix"
9379 acl_save_exec_prefix="$exec_prefix"
9380 exec_prefix="$acl_final_exec_prefix"
9382 exec_prefix="$acl_save_exec_prefix"
9383 prefix="$acl_save_prefix"
9385 if test "X$x" = "X-L$additional_libdir"; then
9390 if test -z "$haveit"; then
9391 if test -d "$additional_libdir"; then
9392 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9399 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9400 if test "$enable_rpath" != no; then
9402 for x in $rpathdirs; do
9403 if test "X$x" = "X$dir"; then
9408 if test -z "$haveit"; then
9409 rpathdirs="$rpathdirs $dir"
9412 for x in $ltrpathdirs; do
9413 if test "X$x" = "X$dir"; then
9418 if test -z "$haveit"; then
9419 ltrpathdirs="$ltrpathdirs $dir"
9424 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9427 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9430 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9431 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9437 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9438 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9444 if test "X$rpathdirs" != "X"; then
9445 if test -n "$hardcode_libdir_separator"; then
9447 for found_dir in $rpathdirs; do
9448 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9450 acl_save_libdir="$libdir"
9452 eval flag=\"$hardcode_libdir_flag_spec\"
9453 libdir="$acl_save_libdir"
9454 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9456 for found_dir in $rpathdirs; do
9457 acl_save_libdir="$libdir"
9459 eval flag=\"$hardcode_libdir_flag_spec\"
9460 libdir="$acl_save_libdir"
9461 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9465 if test "X$ltrpathdirs" != "X"; then
9466 for found_dir in $ltrpathdirs; do
9467 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9478 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9479 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9480 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 cat >conftest.$ac_ext <<_ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 $ac_includes_default
9490 typedef ptrdiff_t ac__type_new_;
9494 if ((ac__type_new_ *) 0)
9496 if (sizeof (ac__type_new_))
9502 rm -f conftest.$ac_objext
9503 if { (ac_try="$ac_compile"
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_compile") 2>conftest.er1
9511 grep -v '^ *+' conftest.er1 >conftest.err
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
9516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9517 { (case "(($ac_try" in
9518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519 *) ac_try_echo=$ac_try;;
9521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522 (eval "$ac_try") 2>&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try='test -s conftest.$ac_objext'
9527 { (case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_try") 2>&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_cv_type_ptrdiff_t=yes
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9541 ac_cv_type_ptrdiff_t=no
9544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9547 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9548 if test $ac_cv_type_ptrdiff_t = yes; then
9552 cat >>confdefs.h <<\_ACEOF
9553 #define ptrdiff_t long
9569 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9570 stdlib.h string.h unistd.h sys/param.h
9572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 ac_res=`eval echo '${'$as_ac_Header'}'`
9580 { echo "$as_me:$LINENO: result: $ac_res" >&5
9581 echo "${ECHO_T}$ac_res" >&6; }
9583 # Is the header compilable?
9584 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9586 cat >conftest.$ac_ext <<_ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 $ac_includes_default
9593 #include <$ac_header>
9595 rm -f conftest.$ac_objext
9596 if { (ac_try="$ac_compile"
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_compile") 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest.$ac_objext'
9620 { (case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_try") 2>&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_header_compiler=yes
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9634 ac_header_compiler=no
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9639 echo "${ECHO_T}$ac_header_compiler" >&6; }
9641 # Is the header present?
9642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9644 cat >conftest.$ac_ext <<_ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 #include <$ac_header>
9652 if { (ac_try="$ac_cpp conftest.$ac_ext"
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9660 grep -v '^ *+' conftest.er1 >conftest.err
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } >/dev/null; then
9665 if test -s conftest.err; then
9666 ac_cpp_err=$ac_c_preproc_warn_flag
9667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9674 if test -z "$ac_cpp_err"; then
9675 ac_header_preproc=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_header_preproc=no
9683 rm -f conftest.err conftest.$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685 echo "${ECHO_T}$ac_header_preproc" >&6; }
9687 # So? What about this header?
9688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc=yes
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 eval "$as_ac_Header=\$ac_header_preproc"
9719 ac_res=`eval echo '${'$as_ac_Header'}'`
9720 { echo "$as_me:$LINENO: result: $ac_res" >&5
9721 echo "${ECHO_T}$ac_res" >&6; }
9724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9725 cat >>confdefs.h <<_ACEOF
9726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9756 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9757 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9758 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9775 #define $ac_func innocuous_$ac_func
9777 /* System header to define __stub macros and hopefully few prototypes,
9778 which can conflict with char $ac_func (); below.
9779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9780 <limits.h> exists even on freestanding compilers. */
9783 # include <limits.h>
9785 # include <assert.h>
9790 /* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
9797 /* The GNU C library defines this for functions which it implements
9798 to always fail with ENOSYS. Some functions are actually named
9799 something starting with __ and the normal name is an alias. */
9800 #if defined __stub_$ac_func || defined __stub___$ac_func
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>conftest.er1
9821 grep -v '^ *+' conftest.er1 >conftest.err
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest$ac_exeext'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 eval "$as_ac_var=yes"
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 eval "$as_ac_var=no"
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9857 ac_res=`eval echo '${'$as_ac_var'}'`
9858 { echo "$as_me:$LINENO: result: $ac_res" >&5
9859 echo "${ECHO_T}$ac_res" >&6; }
9860 if test `eval echo '${'$as_ac_var'}'` = yes; then
9861 cat >>confdefs.h <<_ACEOF
9862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9870 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9871 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9872 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9887 char *p = (char *) _snprintf;
9894 rm -f conftest.$ac_objext
9895 if { (ac_try="$ac_compile"
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_compile") 2>conftest.er1
9903 grep -v '^ *+' conftest.er1 >conftest.err
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9909 { (case "(($ac_try" in
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_try") 2>&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; } &&
9918 { ac_try='test -s conftest.$ac_objext'
9919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_try") 2>&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_cv_have_decl__snprintf=yes
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ac_cv_have_decl__snprintf=no
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9939 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9940 if test $ac_cv_have_decl__snprintf = yes; then
9946 cat >>confdefs.h <<_ACEOF
9947 #define HAVE_DECL__SNPRINTF $gt_value
9952 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9953 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9954 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9969 char *p = (char *) _snwprintf;
9976 rm -f conftest.$ac_objext
9977 if { (ac_try="$ac_compile"
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_compile") 2>conftest.er1
9985 grep -v '^ *+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9991 { (case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_try") 2>&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest.$ac_objext'
10001 { (case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_try") 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_have_decl__snwprintf=yes
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_cv_have_decl__snwprintf=no
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10021 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
10022 if test $ac_cv_have_decl__snwprintf = yes; then
10028 cat >>confdefs.h <<_ACEOF
10029 #define HAVE_DECL__SNWPRINTF $gt_value
10035 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10036 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
10037 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10051 #ifndef feof_unlocked
10052 char *p = (char *) feof_unlocked;
10059 rm -f conftest.$ac_objext
10060 if { (ac_try="$ac_compile"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_compile") 2>conftest.er1
10068 grep -v '^ *+' conftest.er1 >conftest.err
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_try") 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; } &&
10083 { ac_try='test -s conftest.$ac_objext'
10084 { (case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_try") 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_have_decl_feof_unlocked=yes
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_cv_have_decl_feof_unlocked=no
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10104 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
10105 if test $ac_cv_have_decl_feof_unlocked = yes; then
10111 cat >>confdefs.h <<_ACEOF
10112 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10117 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10118 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
10119 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10133 #ifndef fgets_unlocked
10134 char *p = (char *) fgets_unlocked;
10141 rm -f conftest.$ac_objext
10142 if { (ac_try="$ac_compile"
10143 case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_compile") 2>conftest.er1
10150 grep -v '^ *+' conftest.er1 >conftest.err
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; } &&
10165 { ac_try='test -s conftest.$ac_objext'
10166 { (case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_try") 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_have_decl_fgets_unlocked=yes
10177 echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10180 ac_cv_have_decl_fgets_unlocked=no
10183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10185 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10186 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
10187 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10193 cat >>confdefs.h <<_ACEOF
10194 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10199 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10200 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
10201 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 cat >conftest.$ac_ext <<_ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10215 #ifndef getc_unlocked
10216 char *p = (char *) getc_unlocked;
10223 rm -f conftest.$ac_objext
10224 if { (ac_try="$ac_compile"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_compile") 2>conftest.er1
10232 grep -v '^ *+' conftest.er1 >conftest.err
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest.$ac_objext'
10248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_have_decl_getc_unlocked=yes
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_cv_have_decl_getc_unlocked=no
10265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10267 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10268 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
10269 if test $ac_cv_have_decl_getc_unlocked = yes; then
10275 cat >>confdefs.h <<_ACEOF
10276 #define HAVE_DECL_GETC_UNLOCKED $gt_value
10281 case $gt_cv_func_printf_posix in
10282 *yes) HAVE_POSIX_PRINTF=1 ;;
10283 *) HAVE_POSIX_PRINTF=0 ;;
10286 if test "$ac_cv_func_asprintf" = yes; then
10292 if test "$ac_cv_func_snprintf" = yes; then
10298 if test "$ac_cv_func_wprintf" = yes; then
10310 am_save_CPPFLAGS="$CPPFLAGS"
10312 for element in $INCICONV; do
10314 for x in $CPPFLAGS; do
10316 acl_save_prefix="$prefix"
10317 prefix="$acl_final_prefix"
10318 acl_save_exec_prefix="$exec_prefix"
10319 exec_prefix="$acl_final_exec_prefix"
10321 exec_prefix="$acl_save_exec_prefix"
10322 prefix="$acl_save_prefix"
10324 if test "X$x" = "X$element"; then
10329 if test -z "$haveit"; then
10330 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10335 { echo "$as_me:$LINENO: checking for iconv" >&5
10336 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
10337 if test "${am_cv_func_iconv+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 am_cv_func_iconv="no, consider installing GNU libiconv"
10343 cat >conftest.$ac_ext <<_ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 #include <stdlib.h>
10354 iconv_t cd = iconv_open("","");
10355 iconv(cd,NULL,NULL,NULL,NULL);
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (ac_try="$ac_link"
10363 case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_link") 2>conftest.er1
10370 grep -v '^ *+' conftest.er1 >conftest.err
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } &&
10375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10376 { (case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_try") 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; } &&
10385 { ac_try='test -s conftest$ac_exeext'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 am_cv_func_iconv=yes
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10403 rm -f core conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10405 if test "$am_cv_func_iconv" != yes; then
10406 am_save_LIBS="$LIBS"
10407 LIBS="$LIBS $LIBICONV"
10408 cat >conftest.$ac_ext <<_ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10414 #include <stdlib.h>
10419 iconv_t cd = iconv_open("","");
10420 iconv(cd,NULL,NULL,NULL,NULL);
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (ac_try="$ac_link"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_link") 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10441 { (case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_try") 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_try") 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 am_cv_lib_iconv=yes
10461 am_cv_func_iconv=yes
10463 echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LIBS="$am_save_LIBS"
10475 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10476 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
10477 if test "$am_cv_func_iconv" = yes; then
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_ICONV 1
10484 if test "$am_cv_lib_iconv" = yes; then
10485 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10486 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
10487 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
10488 echo "${ECHO_T}$LIBICONV" >&6; }
10490 CPPFLAGS="$am_save_CPPFLAGS"
10497 if test "$am_cv_func_iconv" = yes; then
10498 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
10499 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
10500 if test "${am_cv_proto_iconv+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10511 #include <stdlib.h>
10517 #if defined(__STDC__) || defined(__cplusplus)
10518 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10531 rm -f conftest.$ac_objext
10532 if { (ac_try="$ac_compile"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_compile") 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest.$ac_objext'
10556 { (case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_try") 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 am_cv_proto_iconv_arg1=""
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570 am_cv_proto_iconv_arg1="const"
10573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10577 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10578 { echo "$as_me:$LINENO: result: ${ac_t:-
10579 }$am_cv_proto_iconv" >&5
10580 echo "${ECHO_T}${ac_t:-
10581 }$am_cv_proto_iconv" >&6; }
10583 cat >>confdefs.h <<_ACEOF
10584 #define ICONV_CONST $am_cv_proto_iconv_arg1
10590 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10591 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10592 if test "${am_cv_langinfo_codeset+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 #include <langinfo.h>
10605 char* cs = nl_langinfo(CODESET);
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest$ac_exeext'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 am_cv_langinfo_codeset=yes
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 am_cv_langinfo_codeset=no
10652 rm -f core conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10656 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10657 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10658 if test $am_cv_langinfo_codeset = yes; then
10660 cat >>confdefs.h <<\_ACEOF
10661 #define HAVE_LANGINFO_CODESET 1
10666 if test $ac_cv_header_locale_h = yes; then
10668 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10669 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10670 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 cat >conftest.$ac_ext <<_ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 #include <locale.h>
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_link") 2>conftest.er1
10697 grep -v '^ *+' conftest.er1 >conftest.err
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest$ac_exeext'
10713 { (case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_try") 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 am_cv_val_LC_MESSAGES=yes
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 am_cv_val_LC_MESSAGES=no
10730 rm -f core conftest.err conftest.$ac_objext \
10731 conftest$ac_exeext conftest.$ac_ext
10733 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10734 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10735 if test $am_cv_val_LC_MESSAGES = yes; then
10737 cat >>confdefs.h <<\_ACEOF
10738 #define HAVE_LC_MESSAGES 1
10745 for ac_prog in bison
10747 # Extract the first word of "$ac_prog", so it can be a program name with args.
10748 set dummy $ac_prog; ac_word=$2
10749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10751 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 if test -n "$INTLBISON"; then
10755 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758 for as_dir in $PATH
10761 test -z "$as_dir" && as_dir=.
10762 for ac_exec_ext in '' $ac_executable_extensions; do
10763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10764 ac_cv_prog_INTLBISON="$ac_prog"
10765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 INTLBISON=$ac_cv_prog_INTLBISON
10775 if test -n "$INTLBISON"; then
10776 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10777 echo "${ECHO_T}$INTLBISON" >&6; }
10779 { echo "$as_me:$LINENO: result: no" >&5
10780 echo "${ECHO_T}no" >&6; }
10784 test -n "$INTLBISON" && break
10787 if test -z "$INTLBISON"; then
10790 { echo "$as_me:$LINENO: checking version of bison" >&5
10791 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10792 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10793 case $ac_prog_version in
10794 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10795 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10796 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10797 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10799 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10800 echo "${ECHO_T}$ac_prog_version" >&6; }
10802 if test $ac_verc_fail = yes; then
10821 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10822 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10823 # Check whether --enable-nls was given.
10824 if test "${enable_nls+set}" = set; then
10825 enableval=$enable_nls; USE_NLS=$enableval
10830 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10831 echo "${ECHO_T}$USE_NLS" >&6; }
10836 BUILD_INCLUDED_LIBINTL=no
10837 USE_INCLUDED_LIBINTL=no
10843 if test "$USE_NLS" = "yes"; then
10844 gt_use_preinstalled_gnugettext=no
10846 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10847 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10849 # Check whether --with-included-gettext was given.
10850 if test "${with_included_gettext+set}" = set; then
10851 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10853 nls_cv_force_use_gnu_gettext=no
10856 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10857 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10859 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10860 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10867 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10868 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10869 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 cat >conftest.$ac_ext <<_ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 #include <libintl.h>
10879 extern int _nl_msg_cat_cntr;
10880 extern int *_nl_domain_bindings;
10884 bindtextdomain ("", "");
10885 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10890 rm -f conftest.$ac_objext conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1 >conftest.err
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905 { (case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_try") 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; } &&
10914 { ac_try='test -s conftest$ac_exeext'
10915 { (case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_try") 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 gt_cv_func_gnugettext1_libc=yes
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 gt_cv_func_gnugettext1_libc=no
10932 rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10935 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10936 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10938 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10944 acl_save_prefix="$prefix"
10945 prefix="$acl_final_prefix"
10946 acl_save_exec_prefix="$exec_prefix"
10947 exec_prefix="$acl_final_exec_prefix"
10949 eval additional_includedir=\"$includedir\"
10950 eval additional_libdir=\"$libdir\"
10952 exec_prefix="$acl_save_exec_prefix"
10953 prefix="$acl_save_prefix"
10956 # Check whether --with-libintl-prefix was given.
10957 if test "${with_libintl_prefix+set}" = set; then
10958 withval=$with_libintl_prefix;
10959 if test "X$withval" = "Xno"; then
10962 if test "X$withval" = "X"; then
10964 acl_save_prefix="$prefix"
10965 prefix="$acl_final_prefix"
10966 acl_save_exec_prefix="$exec_prefix"
10967 exec_prefix="$acl_final_exec_prefix"
10969 eval additional_includedir=\"$includedir\"
10970 eval additional_libdir=\"$libdir\"
10972 exec_prefix="$acl_save_exec_prefix"
10973 prefix="$acl_save_prefix"
10976 additional_includedir="$withval/include"
10977 additional_libdir="$withval/lib"
10988 names_already_handled=
10989 names_next_round='intl '
10990 while test -n "$names_next_round"; do
10991 names_this_round="$names_next_round"
10993 for name in $names_this_round; do
10995 for n in $names_already_handled; do
10996 if test "$n" = "$name"; then
10997 already_handled=yes
11001 if test -z "$already_handled"; then
11002 names_already_handled="$names_already_handled $name"
11003 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11004 eval value=\"\$HAVE_LIB$uppername\"
11005 if test -n "$value"; then
11006 if test "$value" = yes; then
11007 eval value=\"\$LIB$uppername\"
11008 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11009 eval value=\"\$LTLIB$uppername\"
11010 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11019 if test $use_additional = yes; then
11020 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11021 found_dir="$additional_libdir"
11022 found_so="$additional_libdir/lib$name.$shlibext"
11023 if test -f "$additional_libdir/lib$name.la"; then
11024 found_la="$additional_libdir/lib$name.la"
11027 if test -f "$additional_libdir/lib$name.$libext"; then
11028 found_dir="$additional_libdir"
11029 found_a="$additional_libdir/lib$name.$libext"
11030 if test -f "$additional_libdir/lib$name.la"; then
11031 found_la="$additional_libdir/lib$name.la"
11036 if test "X$found_dir" = "X"; then
11037 for x in $LDFLAGS $LTLIBINTL; do
11039 acl_save_prefix="$prefix"
11040 prefix="$acl_final_prefix"
11041 acl_save_exec_prefix="$exec_prefix"
11042 exec_prefix="$acl_final_exec_prefix"
11044 exec_prefix="$acl_save_exec_prefix"
11045 prefix="$acl_save_prefix"
11049 dir=`echo "X$x" | sed -e 's/^X-L//'`
11050 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11052 found_so="$dir/lib$name.$shlibext"
11053 if test -f "$dir/lib$name.la"; then
11054 found_la="$dir/lib$name.la"
11057 if test -f "$dir/lib$name.$libext"; then
11059 found_a="$dir/lib$name.$libext"
11060 if test -f "$dir/lib$name.la"; then
11061 found_la="$dir/lib$name.la"
11067 if test "X$found_dir" != "X"; then
11072 if test "X$found_dir" != "X"; then
11073 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11074 if test "X$found_so" != "X"; then
11075 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11076 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11079 for x in $ltrpathdirs; do
11080 if test "X$x" = "X$found_dir"; then
11085 if test -z "$haveit"; then
11086 ltrpathdirs="$ltrpathdirs $found_dir"
11088 if test "$hardcode_direct" = yes; then
11089 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11091 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11092 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11094 for x in $rpathdirs; do
11095 if test "X$x" = "X$found_dir"; then
11100 if test -z "$haveit"; then
11101 rpathdirs="$rpathdirs $found_dir"
11105 for x in $LDFLAGS $LIBINTL; do
11107 acl_save_prefix="$prefix"
11108 prefix="$acl_final_prefix"
11109 acl_save_exec_prefix="$exec_prefix"
11110 exec_prefix="$acl_final_exec_prefix"
11112 exec_prefix="$acl_save_exec_prefix"
11113 prefix="$acl_save_prefix"
11115 if test "X$x" = "X-L$found_dir"; then
11120 if test -z "$haveit"; then
11121 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11123 if test "$hardcode_minus_L" != no; then
11124 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11126 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11132 if test "X$found_a" != "X"; then
11133 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11135 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11138 additional_includedir=
11139 case "$found_dir" in
11141 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11142 additional_includedir="$basedir/include"
11145 if test "X$additional_includedir" != "X"; then
11146 if test "X$additional_includedir" != "X/usr/include"; then
11148 if test "X$additional_includedir" = "X/usr/local/include"; then
11149 if test -n "$GCC"; then
11151 linux*) haveit=yes;;
11155 if test -z "$haveit"; then
11156 for x in $CPPFLAGS $INCINTL; do
11158 acl_save_prefix="$prefix"
11159 prefix="$acl_final_prefix"
11160 acl_save_exec_prefix="$exec_prefix"
11161 exec_prefix="$acl_final_exec_prefix"
11163 exec_prefix="$acl_save_exec_prefix"
11164 prefix="$acl_save_prefix"
11166 if test "X$x" = "X-I$additional_includedir"; then
11171 if test -z "$haveit"; then
11172 if test -d "$additional_includedir"; then
11173 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11179 if test -n "$found_la"; then
11180 save_libdir="$libdir"
11181 case "$found_la" in
11182 */* | *\\*) . "$found_la" ;;
11183 *) . "./$found_la" ;;
11185 libdir="$save_libdir"
11186 for dep in $dependency_libs; do
11189 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11190 if test "X$additional_libdir" != "X/usr/lib"; then
11192 if test "X$additional_libdir" = "X/usr/local/lib"; then
11193 if test -n "$GCC"; then
11195 linux*) haveit=yes;;
11199 if test -z "$haveit"; then
11201 for x in $LDFLAGS $LIBINTL; do
11203 acl_save_prefix="$prefix"
11204 prefix="$acl_final_prefix"
11205 acl_save_exec_prefix="$exec_prefix"
11206 exec_prefix="$acl_final_exec_prefix"
11208 exec_prefix="$acl_save_exec_prefix"
11209 prefix="$acl_save_prefix"
11211 if test "X$x" = "X-L$additional_libdir"; then
11216 if test -z "$haveit"; then
11217 if test -d "$additional_libdir"; then
11218 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11222 for x in $LDFLAGS $LTLIBINTL; do
11224 acl_save_prefix="$prefix"
11225 prefix="$acl_final_prefix"
11226 acl_save_exec_prefix="$exec_prefix"
11227 exec_prefix="$acl_final_exec_prefix"
11229 exec_prefix="$acl_save_exec_prefix"
11230 prefix="$acl_save_prefix"
11232 if test "X$x" = "X-L$additional_libdir"; then
11237 if test -z "$haveit"; then
11238 if test -d "$additional_libdir"; then
11239 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11246 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11247 if test "$enable_rpath" != no; then
11249 for x in $rpathdirs; do
11250 if test "X$x" = "X$dir"; then
11255 if test -z "$haveit"; then
11256 rpathdirs="$rpathdirs $dir"
11259 for x in $ltrpathdirs; do
11260 if test "X$x" = "X$dir"; then
11265 if test -z "$haveit"; then
11266 ltrpathdirs="$ltrpathdirs $dir"
11271 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11274 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11277 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11284 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11285 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11291 if test "X$rpathdirs" != "X"; then
11292 if test -n "$hardcode_libdir_separator"; then
11294 for found_dir in $rpathdirs; do
11295 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11297 acl_save_libdir="$libdir"
11299 eval flag=\"$hardcode_libdir_flag_spec\"
11300 libdir="$acl_save_libdir"
11301 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11303 for found_dir in $rpathdirs; do
11304 acl_save_libdir="$libdir"
11305 libdir="$found_dir"
11306 eval flag=\"$hardcode_libdir_flag_spec\"
11307 libdir="$acl_save_libdir"
11308 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11312 if test "X$ltrpathdirs" != "X"; then
11313 for found_dir in $ltrpathdirs; do
11314 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11318 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11319 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
11320 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 gt_save_CPPFLAGS="$CPPFLAGS"
11324 CPPFLAGS="$CPPFLAGS $INCINTL"
11325 gt_save_LIBS="$LIBS"
11326 LIBS="$LIBS $LIBINTL"
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 #include <libintl.h>
11334 extern int _nl_msg_cat_cntr;
11339 const char *_nl_expand_alias ();
11343 bindtextdomain ("", "");
11344 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11349 rm -f conftest.$ac_objext conftest$ac_exeext
11350 if { (ac_try="$ac_link"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_link") 2>conftest.er1
11358 grep -v '^ *+' conftest.er1 >conftest.err
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11364 { (case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_try") 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest$ac_exeext'
11374 { (case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_try") 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 gt_cv_func_gnugettext1_libintl=yes
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 gt_cv_func_gnugettext1_libintl=no
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11394 LIBS="$LIBS $LIBICONV"
11395 cat >conftest.$ac_ext <<_ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 #include <libintl.h>
11402 extern int _nl_msg_cat_cntr;
11407 const char *_nl_expand_alias ();
11411 bindtextdomain ("", "");
11412 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (ac_try="$ac_link"
11419 case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_link") 2>conftest.er1
11426 grep -v '^ *+' conftest.er1 >conftest.err
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } &&
11431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11432 { (case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_try") 2>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; } &&
11441 { ac_try='test -s conftest$ac_exeext'
11442 { (case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_try") 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 LIBINTL="$LIBINTL $LIBICONV"
11452 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11453 gt_cv_func_gnugettext1_libintl=yes
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11465 CPPFLAGS="$gt_save_CPPFLAGS"
11466 LIBS="$gt_save_LIBS"
11468 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11469 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
11472 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11473 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11474 && test "$PACKAGE" != gettext-runtime \
11475 && test "$PACKAGE" != gettext-tools; }; then
11476 gt_use_preinstalled_gnugettext=yes
11484 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11485 nls_cv_use_gnu_gettext=yes
11489 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11490 BUILD_INCLUDED_LIBINTL=yes
11491 USE_INCLUDED_LIBINTL=yes
11492 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11493 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11494 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11497 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11498 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11503 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11504 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11506 cat >>confdefs.h <<\_ACEOF
11507 #define ENABLE_NLS 1
11515 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
11516 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
11517 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11518 echo "${ECHO_T}$USE_NLS" >&6; }
11519 if test "$USE_NLS" = "yes"; then
11520 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11521 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
11522 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11523 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11524 gt_source="external libintl"
11529 gt_source="included intl directory"
11531 { echo "$as_me:$LINENO: result: $gt_source" >&5
11532 echo "${ECHO_T}$gt_source" >&6; }
11535 if test "$USE_NLS" = "yes"; then
11537 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11538 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11539 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11540 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11541 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11542 echo "${ECHO_T}$LIBINTL" >&6; }
11544 for element in $INCINTL; do
11546 for x in $CPPFLAGS; do
11548 acl_save_prefix="$prefix"
11549 prefix="$acl_final_prefix"
11550 acl_save_exec_prefix="$exec_prefix"
11551 exec_prefix="$acl_final_exec_prefix"
11553 exec_prefix="$acl_save_exec_prefix"
11554 prefix="$acl_save_prefix"
11556 if test "X$x" = "X$element"; then
11561 if test -z "$haveit"; then
11562 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11569 cat >>confdefs.h <<\_ACEOF
11570 #define HAVE_GETTEXT 1
11574 cat >>confdefs.h <<\_ACEOF
11575 #define HAVE_DCGETTEXT 1
11584 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11585 BUILD_INCLUDED_LIBINTL=yes
11592 nls_cv_header_intl=
11593 nls_cv_header_libgt=
11604 if test "$USE_INCLUDED_LIBINTL" = yes; then
11605 INTLOBJS="\$(GETTOBJS)"
11609 INTL_LIBTOOL_SUFFIX_PREFIX=
11613 INTLLIBS="$LIBINTL"
11621 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11622 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
11623 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11624 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 cat >conftest.make <<\_ACEOF
11630 @echo '@@@%%%=$(MAKE)=@@@%%%'
11632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11634 *@@@%%%=?*=@@@%%%*)
11635 eval ac_cv_prog_make_${ac_make}_set=yes;;
11637 eval ac_cv_prog_make_${ac_make}_set=no;;
11639 rm -f conftest.make
11641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11642 { echo "$as_me:$LINENO: result: yes" >&5
11643 echo "${ECHO_T}yes" >&6; }
11646 { echo "$as_me:$LINENO: result: no" >&5
11647 echo "${ECHO_T}no" >&6; }
11648 SET_MAKE="MAKE=${MAKE-make}"
11651 # Extract the first word of "ln", so it can be a program name with args.
11652 set dummy ln; ac_word=$2
11653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11655 if test "${ac_cv_path_LN+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11670 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11678 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11683 if test -n "$LN"; then
11684 { echo "$as_me:$LINENO: result: $LN" >&5
11685 echo "${ECHO_T}$LN" >&6; }
11687 { echo "$as_me:$LINENO: result: no" >&5
11688 echo "${ECHO_T}no" >&6; }
11692 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
11693 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
11695 if test "$LN_S" = "ln -s"; then
11696 { echo "$as_me:$LINENO: result: yes" >&5
11697 echo "${ECHO_T}yes" >&6; }
11699 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11700 echo "${ECHO_T}no, using $LN_S" >&6; }
11703 # Extract the first word of "mv", so it can be a program name with args.
11704 set dummy mv; ac_word=$2
11705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11707 if test "${ac_cv_path_MV+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11722 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11735 if test -n "$MV"; then
11736 { echo "$as_me:$LINENO: result: $MV" >&5
11737 echo "${ECHO_T}$MV" >&6; }
11739 { echo "$as_me:$LINENO: result: no" >&5
11740 echo "${ECHO_T}no" >&6; }
11744 # Extract the first word of "cp", so it can be a program name with args.
11745 set dummy cp; ac_word=$2
11746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11748 if test "${ac_cv_path_CP+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11763 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11771 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11776 if test -n "$CP"; then
11777 { echo "$as_me:$LINENO: result: $CP" >&5
11778 echo "${ECHO_T}$CP" >&6; }
11780 { echo "$as_me:$LINENO: result: no" >&5
11781 echo "${ECHO_T}no" >&6; }
11785 # Extract the first word of "rm", so it can be a program name with args.
11786 set dummy rm; ac_word=$2
11787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11789 if test "${ac_cv_path_RM+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11804 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11817 if test -n "$RM"; then
11818 { echo "$as_me:$LINENO: result: $RM" >&5
11819 echo "${ECHO_T}$RM" >&6; }
11821 { echo "$as_me:$LINENO: result: no" >&5
11822 echo "${ECHO_T}no" >&6; }
11826 # Extract the first word of "chmod", so it can be a program name with args.
11827 set dummy chmod; ac_word=$2
11828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11830 if test "${ac_cv_path_CHMOD+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11845 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11857 CHMOD=$ac_cv_path_CHMOD
11858 if test -n "$CHMOD"; then
11859 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11860 echo "${ECHO_T}$CHMOD" >&6; }
11862 { echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6; }
11867 for ac_prog in gawk mawk nawk awk
11869 # Extract the first word of "$ac_prog", so it can be a program name with args.
11870 set dummy $ac_prog; ac_word=$2
11871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11873 if test "${ac_cv_prog_AWK+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 if test -n "$AWK"; then
11877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11886 ac_cv_prog_AWK="$ac_prog"
11887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11896 AWK=$ac_cv_prog_AWK
11897 if test -n "$AWK"; then
11898 { echo "$as_me:$LINENO: result: $AWK" >&5
11899 echo "${ECHO_T}$AWK" >&6; }
11901 { echo "$as_me:$LINENO: result: no" >&5
11902 echo "${ECHO_T}no" >&6; }
11906 test -n "$AWK" && break
11909 { echo "$as_me:$LINENO: checking for egrep" >&5
11910 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11911 if test "${ac_cv_path_EGREP+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11915 then ac_cv_path_EGREP="$GREP -E"
11917 # Extract the first word of "egrep" to use in msg output
11918 if test -z "$EGREP"; then
11919 set dummy egrep; ac_prog_name=$2
11920 if test "${ac_cv_path_EGREP+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 ac_path_EGREP_found=false
11924 # Loop through the user's path and test for each of PROGNAME-LIST
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11929 test -z "$as_dir" && as_dir=.
11930 for ac_prog in egrep; do
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11933 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
11934 # Check for GNU ac_path_EGREP and select it if it is found.
11935 # Check for GNU $ac_path_EGREP
11936 case `"$ac_path_EGREP" --version 2>&1` in
11938 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11941 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11944 cat "conftest.in" "conftest.in" >"conftest.tmp"
11945 mv "conftest.tmp" "conftest.in"
11946 cp "conftest.in" "conftest.nl"
11947 echo 'EGREP' >> "conftest.nl"
11948 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11950 ac_count=`expr $ac_count + 1`
11951 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11952 # Best one so far, save it but keep looking for a better one
11953 ac_cv_path_EGREP="$ac_path_EGREP"
11954 ac_path_EGREP_max=$ac_count
11956 # 10*(2^10) chars as input seems more than enough
11957 test $ac_count -gt 10 && break
11959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11963 $ac_path_EGREP_found && break 3
11973 EGREP="$ac_cv_path_EGREP"
11974 if test -z "$EGREP"; then
11975 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11976 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11977 { (exit 1); exit 1; }; }
11981 ac_cv_path_EGREP=$EGREP
11987 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11988 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11989 EGREP="$ac_cv_path_EGREP"
11992 # Extract the first word of "sed", so it can be a program name with args.
11993 set dummy sed; ac_word=$2
11994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11996 if test "${ac_cv_path_SED+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 ac_cv_path_SED="$SED" # Let the user override the test with a path.
12004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005 for as_dir in $PATH
12008 test -z "$as_dir" && as_dir=.
12009 for ac_exec_ext in '' $ac_executable_extensions; do
12010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12011 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12023 SED=$ac_cv_path_SED
12024 if test -n "$SED"; then
12025 { echo "$as_me:$LINENO: result: $SED" >&5
12026 echo "${ECHO_T}$SED" >&6; }
12028 { echo "$as_me:$LINENO: result: no" >&5
12029 echo "${ECHO_T}no" >&6; }
12033 # Extract the first word of "perl", so it can be a program name with args.
12034 set dummy perl; ac_word=$2
12035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12037 if test "${ac_cv_path_PERL+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12052 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12060 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12064 PERL=$ac_cv_path_PERL
12065 if test -n "$PERL"; then
12066 { echo "$as_me:$LINENO: result: $PERL" >&5
12067 echo "${ECHO_T}$PERL" >&6; }
12069 { echo "$as_me:$LINENO: result: no" >&5
12070 echo "${ECHO_T}no" >&6; }
12074 # Extract the first word of "ldconfig", so it can be a program name with args.
12075 set dummy ldconfig; ac_word=$2
12076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12078 if test "${ac_cv_path_LDCONFIG+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087 for as_dir in $PATH
12090 test -z "$as_dir" && as_dir=.
12091 for ac_exec_ext in '' $ac_executable_extensions; do
12092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12093 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12105 LDCONFIG=$ac_cv_path_LDCONFIG
12106 if test -n "$LDCONFIG"; then
12107 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12108 echo "${ECHO_T}$LDCONFIG" >&6; }
12110 { echo "$as_me:$LINENO: result: no" >&5
12111 echo "${ECHO_T}no" >&6; }
12115 if test -n "$ac_tool_prefix"; then
12116 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12117 set dummy ${ac_tool_prefix}ar; ac_word=$2
12118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12120 if test "${ac_cv_prog_AR+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 if test -n "$AR"; then
12124 ac_cv_prog_AR="$AR" # Let the user override the test.
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $PATH
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12133 ac_cv_prog_AR="${ac_tool_prefix}ar"
12134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 if test -n "$AR"; then
12145 { echo "$as_me:$LINENO: result: $AR" >&5
12146 echo "${ECHO_T}$AR" >&6; }
12148 { echo "$as_me:$LINENO: result: no" >&5
12149 echo "${ECHO_T}no" >&6; }
12154 if test -z "$ac_cv_prog_AR"; then
12156 # Extract the first word of "ar", so it can be a program name with args.
12157 set dummy ar; ac_word=$2
12158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12160 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 if test -n "$ac_ct_AR"; then
12164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167 for as_dir in $PATH
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12173 ac_cv_prog_ac_ct_AR="ar"
12174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12184 if test -n "$ac_ct_AR"; then
12185 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12186 echo "${ECHO_T}$ac_ct_AR" >&6; }
12188 { echo "$as_me:$LINENO: result: no" >&5
12189 echo "${ECHO_T}no" >&6; }
12192 if test "x$ac_ct_AR" = x; then
12195 case $cross_compiling:$ac_tool_warned in
12197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12198 whose name does not start with the host triplet. If you think this
12199 configuration is useful to you, please write to autoconf@gnu.org." >&5
12200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12201 whose name does not start with the host triplet. If you think this
12202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12203 ac_tool_warned=yes ;;
12208 AR="$ac_cv_prog_AR"
12211 if test -n "$ac_tool_prefix"; then
12212 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12213 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12216 if test "${ac_cv_prog_RANLIB+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 if test -n "$RANLIB"; then
12220 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223 for as_dir in $PATH
12226 test -z "$as_dir" && as_dir=.
12227 for ac_exec_ext in '' $ac_executable_extensions; do
12228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12229 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 RANLIB=$ac_cv_prog_RANLIB
12240 if test -n "$RANLIB"; then
12241 { echo "$as_me:$LINENO: result: $RANLIB" >&5
12242 echo "${ECHO_T}$RANLIB" >&6; }
12244 { echo "$as_me:$LINENO: result: no" >&5
12245 echo "${ECHO_T}no" >&6; }
12250 if test -z "$ac_cv_prog_RANLIB"; then
12251 ac_ct_RANLIB=$RANLIB
12252 # Extract the first word of "ranlib", so it can be a program name with args.
12253 set dummy ranlib; ac_word=$2
12254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 if test -n "$ac_ct_RANLIB"; then
12260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12269 ac_cv_prog_ac_ct_RANLIB="ranlib"
12270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12280 if test -n "$ac_ct_RANLIB"; then
12281 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12282 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
12284 { echo "$as_me:$LINENO: result: no" >&5
12285 echo "${ECHO_T}no" >&6; }
12288 if test "x$ac_ct_RANLIB" = x; then
12291 case $cross_compiling:$ac_tool_warned in
12293 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12294 whose name does not start with the host triplet. If you think this
12295 configuration is useful to you, please write to autoconf@gnu.org." >&5
12296 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12297 whose name does not start with the host triplet. If you think this
12298 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12299 ac_tool_warned=yes ;;
12301 RANLIB=$ac_ct_RANLIB
12304 RANLIB="$ac_cv_prog_RANLIB"
12307 if test -n "$ac_tool_prefix"; then
12308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12309 set dummy ${ac_tool_prefix}strip; ac_word=$2
12310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12312 if test "${ac_cv_prog_STRIP+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 if test -n "$STRIP"; then
12316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12335 STRIP=$ac_cv_prog_STRIP
12336 if test -n "$STRIP"; then
12337 { echo "$as_me:$LINENO: result: $STRIP" >&5
12338 echo "${ECHO_T}$STRIP" >&6; }
12340 { echo "$as_me:$LINENO: result: no" >&5
12341 echo "${ECHO_T}no" >&6; }
12346 if test -z "$ac_cv_prog_STRIP"; then
12348 # Extract the first word of "strip", so it can be a program name with args.
12349 set dummy strip; ac_word=$2
12350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 if test -n "$ac_ct_STRIP"; then
12356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12365 ac_cv_prog_ac_ct_STRIP="strip"
12366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12376 if test -n "$ac_ct_STRIP"; then
12377 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12378 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
12380 { echo "$as_me:$LINENO: result: no" >&5
12381 echo "${ECHO_T}no" >&6; }
12384 if test "x$ac_ct_STRIP" = x; then
12387 case $cross_compiling:$ac_tool_warned in
12389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12390 whose name does not start with the host triplet. If you think this
12391 configuration is useful to you, please write to autoconf@gnu.org." >&5
12392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12393 whose name does not start with the host triplet. If you think this
12394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12395 ac_tool_warned=yes ;;
12400 STRIP="$ac_cv_prog_STRIP"
12403 # Find a good install program. We prefer a C program (faster),
12404 # so one script is as good as another. But avoid the broken or
12405 # incompatible versions:
12406 # SysV /etc/install, /usr/sbin/install
12407 # SunOS /usr/etc/install
12408 # IRIX /sbin/install
12410 # AmigaOS /C/install, which installs bootblocks on floppy discs
12411 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12412 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12413 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12414 # OS/2's system install, which has a completely different semantic
12415 # ./install, which can be erroneously created by make from ./install.sh.
12416 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12417 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12418 if test -z "$INSTALL"; then
12419 if test "${ac_cv_path_install+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423 for as_dir in $PATH
12426 test -z "$as_dir" && as_dir=.
12427 # Account for people who put trailing slashes in PATH elements.
12429 ./ | .// | /cC/* | \
12430 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12431 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12434 # OSF1 and SCO ODT 3.0 have their own names for install.
12435 # Don't use installbsd from OSF since it installs stuff as root
12437 for ac_prog in ginstall scoinst install; do
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
12440 if test $ac_prog = install &&
12441 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12442 # AIX install. It has an incompatible calling convention.
12444 elif test $ac_prog = install &&
12445 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12446 # program-specific install script used by HP pwplus--don't use.
12449 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12462 if test "${ac_cv_path_install+set}" = set; then
12463 INSTALL=$ac_cv_path_install
12465 # As a last resort, use the slow shell script. Don't cache a
12466 # value for INSTALL within a source directory, because that will
12467 # break other packages using the cache if that directory is
12468 # removed, or if the value is a relative name.
12469 INSTALL=$ac_install_sh
12472 { echo "$as_me:$LINENO: result: $INSTALL" >&5
12473 echo "${ECHO_T}$INSTALL" >&6; }
12475 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12476 # It thinks the first close brace ends the variable substitution.
12477 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12479 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12481 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12483 # See if we need a separate native compiler.
12484 if test $cross_compiling = no; then
12488 for ac_prog in gcc cc
12490 # Extract the first word of "$ac_prog", so it can be a program name with args.
12491 set dummy $ac_prog; ac_word=$2
12492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12494 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 if test -n "$BUILD_CC"; then
12498 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12501 for as_dir in $PATH
12504 test -z "$as_dir" && as_dir=.
12505 for ac_exec_ext in '' $ac_executable_extensions; do
12506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12507 ac_cv_prog_BUILD_CC="$ac_prog"
12508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 BUILD_CC=$ac_cv_prog_BUILD_CC
12518 if test -n "$BUILD_CC"; then
12519 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12520 echo "${ECHO_T}$BUILD_CC" >&6; }
12522 { echo "$as_me:$LINENO: result: no" >&5
12523 echo "${ECHO_T}no" >&6; }
12527 test -n "$BUILD_CC" && break
12563 for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h
12565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 ac_res=`eval echo '${'$as_ac_Header'}'`
12573 { echo "$as_me:$LINENO: result: $ac_res" >&5
12574 echo "${ECHO_T}$ac_res" >&6; }
12576 # Is the header compilable?
12577 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12579 cat >conftest.$ac_ext <<_ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 $ac_includes_default
12586 #include <$ac_header>
12588 rm -f conftest.$ac_objext
12589 if { (ac_try="$ac_compile"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_compile") 2>conftest.er1
12597 grep -v '^ *+' conftest.er1 >conftest.err
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12603 { (case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_try") 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; } &&
12612 { ac_try='test -s conftest.$ac_objext'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_header_compiler=yes
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 ac_header_compiler=no
12630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12632 echo "${ECHO_T}$ac_header_compiler" >&6; }
12634 # Is the header present?
12635 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12637 cat >conftest.$ac_ext <<_ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12643 #include <$ac_header>
12645 if { (ac_try="$ac_cpp conftest.$ac_ext"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12653 grep -v '^ *+' conftest.er1 >conftest.err
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } >/dev/null; then
12658 if test -s conftest.err; then
12659 ac_cpp_err=$ac_c_preproc_warn_flag
12660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12667 if test -z "$ac_cpp_err"; then
12668 ac_header_preproc=yes
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12673 ac_header_preproc=no
12676 rm -f conftest.err conftest.$ac_ext
12677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12678 echo "${ECHO_T}$ac_header_preproc" >&6; }
12680 # So? What about this header?
12681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12687 ac_header_preproc=yes
12690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 eval "$as_ac_Header=\$ac_header_preproc"
12712 ac_res=`eval echo '${'$as_ac_Header'}'`
12713 { echo "$as_me:$LINENO: result: $ac_res" >&5
12714 echo "${ECHO_T}$ac_res" >&6; }
12717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12718 cat >>confdefs.h <<_ACEOF
12719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12728 for ac_header in sys/disk.h sys/mount.h
12730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12743 #if HAVE_SYS_QUEUE_H
12744 #include <sys/queue.h>
12748 #include <$ac_header>
12750 rm -f conftest.$ac_objext
12751 if { (ac_try="$ac_compile"
12752 case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_compile") 2>conftest.er1
12759 grep -v '^ *+' conftest.er1 >conftest.err
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12765 { (case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_try") 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try='test -s conftest.$ac_objext'
12775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 eval "$as_ac_Header=yes"
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 eval "$as_ac_Header=no"
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 ac_res=`eval echo '${'$as_ac_Header'}'`
12795 { echo "$as_me:$LINENO: result: $ac_res" >&5
12796 echo "${ECHO_T}$ac_res" >&6; }
12797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12798 cat >>confdefs.h <<_ACEOF
12799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12807 for ac_header in net/if.h
12809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 cat >conftest.$ac_ext <<_ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12822 #if HAVE_SYS_TYPES_H
12823 #include <sys/types.h>
12825 #if HAVE_SYS_SOCKET
12826 #include <sys/socket.h>
12830 #include <$ac_header>
12832 rm -f conftest.$ac_objext
12833 if { (ac_try="$ac_compile"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_compile") 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest.$ac_objext'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 eval "$as_ac_Header=yes"
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 eval "$as_ac_Header=no"
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 ac_res=`eval echo '${'$as_ac_Header'}'`
12877 { echo "$as_me:$LINENO: result: $ac_res" >&5
12878 echo "${ECHO_T}$ac_res" >&6; }
12879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12880 cat >>confdefs.h <<_ACEOF
12881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12889 for ac_func in vprintf
12891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12905 #define $ac_func innocuous_$ac_func
12907 /* System header to define __stub macros and hopefully few prototypes,
12908 which can conflict with char $ac_func (); below.
12909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12910 <limits.h> exists even on freestanding compilers. */
12913 # include <limits.h>
12915 # include <assert.h>
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12927 /* The GNU C library defines this for functions which it implements
12928 to always fail with ENOSYS. Some functions are actually named
12929 something starting with __ and the normal name is an alias. */
12930 #if defined __stub_$ac_func || defined __stub___$ac_func
12937 return $ac_func ();
12942 rm -f conftest.$ac_objext conftest$ac_exeext
12943 if { (ac_try="$ac_link"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_link") 2>conftest.er1
12951 grep -v '^ *+' conftest.er1 >conftest.err
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12957 { (case "(($ac_try" in
12958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12959 *) ac_try_echo=$ac_try;;
12961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12962 (eval "$ac_try") 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest$ac_exeext'
12967 { (case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_try") 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 eval "$as_ac_var=yes"
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12981 eval "$as_ac_var=no"
12984 rm -f core conftest.err conftest.$ac_objext \
12985 conftest$ac_exeext conftest.$ac_ext
12987 ac_res=`eval echo '${'$as_ac_var'}'`
12988 { echo "$as_me:$LINENO: result: $ac_res" >&5
12989 echo "${ECHO_T}$ac_res" >&6; }
12990 if test `eval echo '${'$as_ac_var'}'` = yes; then
12991 cat >>confdefs.h <<_ACEOF
12992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12995 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12996 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12997 if test "${ac_cv_func__doprnt+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 cat >conftest.$ac_ext <<_ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13008 #define _doprnt innocuous__doprnt
13010 /* System header to define __stub macros and hopefully few prototypes,
13011 which can conflict with char _doprnt (); below.
13012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13013 <limits.h> exists even on freestanding compilers. */
13016 # include <limits.h>
13018 # include <assert.h>
13023 /* Override any GCC internal prototype to avoid an error.
13024 Use char because int might match the return type of a GCC
13025 builtin and then its argument prototype would still apply. */
13030 /* The GNU C library defines this for functions which it implements
13031 to always fail with ENOSYS. Some functions are actually named
13032 something starting with __ and the normal name is an alias. */
13033 #if defined __stub__doprnt || defined __stub____doprnt
13045 rm -f conftest.$ac_objext conftest$ac_exeext
13046 if { (ac_try="$ac_link"
13047 case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_link") 2>conftest.er1
13054 grep -v '^ *+' conftest.er1 >conftest.err
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try='test -s conftest$ac_exeext'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_try") 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 ac_cv_func__doprnt=yes
13081 echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 ac_cv_func__doprnt=no
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13090 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13091 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13092 if test $ac_cv_func__doprnt = yes; then
13094 cat >>confdefs.h <<\_ACEOF
13095 #define HAVE_DOPRNT 1
13104 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13105 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
13106 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 #include <dirent.h>
13120 static struct dirent ac_aggr;
13121 if (ac_aggr.d_reclen)
13127 rm -f conftest.$ac_objext
13128 if { (ac_try="$ac_compile"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_compile") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest.$ac_objext'
13152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_member_struct_dirent_d_reclen=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13172 #include <dirent.h>
13177 static struct dirent ac_aggr;
13178 if (sizeof ac_aggr.d_reclen)
13184 rm -f conftest.$ac_objext
13185 if { (ac_try="$ac_compile"
13186 case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_compile") 2>conftest.er1
13193 grep -v '^ *+' conftest.er1 >conftest.err
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
13198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13199 { (case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_try") 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; } &&
13208 { ac_try='test -s conftest.$ac_objext'
13209 { (case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_try") 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_member_struct_dirent_d_reclen=yes
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13223 ac_cv_member_struct_dirent_d_reclen=no
13226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13231 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13232 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
13233 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
13234 cat >>confdefs.h <<\_ACEOF
13235 #define HAVE_RECLEN_DIRENT 1
13240 { echo "$as_me:$LINENO: checking for ssize_t" >&5
13241 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
13242 if test "${ac_cv_type_ssize_t+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251 #include <sys/types.h>
13253 typedef ssize_t ac__type_new_;
13257 if ((ac__type_new_ *) 0)
13259 if (sizeof (ac__type_new_))
13265 rm -f conftest.$ac_objext
13266 if { (ac_try="$ac_compile"
13267 case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_compile") 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest.$ac_objext'
13290 { (case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_try") 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13299 ac_cv_type_ssize_t=yes
13301 echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13304 ac_cv_type_ssize_t=no
13307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13309 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13310 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
13311 if test $ac_cv_type_ssize_t = yes; then
13312 cat >>confdefs.h <<\_ACEOF
13313 #define HAVE_TYPE_SSIZE_T 1
13318 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13319 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
13320 if test "${ac_cv_have_decl_llseek+set}" = set; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 cat >conftest.$ac_ext <<_ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13329 #include <unistd.h>
13335 char *p = (char *) llseek;
13343 rm -f conftest.$ac_objext
13344 if { (ac_try="$ac_compile"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_compile") 2>conftest.er1
13352 grep -v '^ *+' conftest.er1 >conftest.err
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13358 { (case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_try") 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; } &&
13367 { ac_try='test -s conftest.$ac_objext'
13368 { (case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_try") 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 ac_cv_have_decl_llseek=yes
13379 echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13382 ac_cv_have_decl_llseek=no
13385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13388 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
13389 if test $ac_cv_have_decl_llseek = yes; then
13390 cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_LLSEEK_PROTOTYPE 1
13396 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13397 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
13398 if test "${ac_cv_have_decl_lseek64+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 cat >conftest.$ac_ext <<_ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 #define _LARGEFILE_SOURCE
13408 #define _LARGEFILE64_SOURCE
13409 #include <unistd.h>
13415 char *p = (char *) lseek64;
13423 rm -f conftest.$ac_objext
13424 if { (ac_try="$ac_compile"
13425 case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_compile") 2>conftest.er1
13432 grep -v '^ *+' conftest.er1 >conftest.err
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13438 { (case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_try") 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_try") 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_cv_have_decl_lseek64=yes
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 ac_cv_have_decl_lseek64=no
13465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13468 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
13469 if test $ac_cv_have_decl_lseek64 = yes; then
13470 cat >>confdefs.h <<\_ACEOF
13471 #define HAVE_LSEEK64_PROTOTYPE 1
13476 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
13477 # if cross-compiling, with no cached values, just assume something common.
13478 ac_cv_sizeof_short=2
13480 ac_cv_sizeof_long=4
13481 ac_cv_sizeof_long_long=8
13482 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
13483 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
13485 { echo "$as_me:$LINENO: checking for short" >&5
13486 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
13487 if test "${ac_cv_type_short+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496 $ac_includes_default
13497 typedef short ac__type_new_;
13501 if ((ac__type_new_ *) 0)
13503 if (sizeof (ac__type_new_))
13509 rm -f conftest.$ac_objext
13510 if { (ac_try="$ac_compile"
13511 case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_compile") 2>conftest.er1
13518 grep -v '^ *+' conftest.er1 >conftest.err
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13524 { (case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_try") 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; } &&
13533 { ac_try='test -s conftest.$ac_objext'
13534 { (case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_try") 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 ac_cv_type_short=yes
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13548 ac_cv_type_short=no
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13554 echo "${ECHO_T}$ac_cv_type_short" >&6; }
13556 { echo "$as_me:$LINENO: checking size of short" >&5
13557 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
13558 if test "${ac_cv_sizeof_short+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 if test "$ac_cv_type_short" = yes; then
13562 # The cast to long int works around a bug in the HP C Compiler
13563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13565 # This bug is HP SR number 8606223364.
13566 if test "$cross_compiling" = yes; then
13567 # Depending upon the size, compute the lo and hi bounds.
13568 cat >conftest.$ac_ext <<_ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13574 $ac_includes_default
13575 typedef short ac__type_sizeof_;
13579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13586 rm -f conftest.$ac_objext
13587 if { (ac_try="$ac_compile"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_compile") 2>conftest.er1
13595 grep -v '^ *+' conftest.er1 >conftest.err
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } &&
13600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13601 { (case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_try") 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_try") 2>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }; then
13622 cat >conftest.$ac_ext <<_ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13628 $ac_includes_default
13629 typedef short ac__type_sizeof_;
13633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13640 rm -f conftest.$ac_objext
13641 if { (ac_try="$ac_compile"
13642 case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_compile") 2>conftest.er1
13649 grep -v '^ *+' conftest.er1 >conftest.err
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_try") 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_hi=$ac_mid; break
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_lo=`expr $ac_mid + 1`
13680 if test $ac_lo -le $ac_mid; then
13684 ac_mid=`expr 2 '*' $ac_mid + 1`
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13693 cat >conftest.$ac_ext <<_ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 $ac_includes_default
13700 typedef short ac__type_sizeof_;
13704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13711 rm -f conftest.$ac_objext
13712 if { (ac_try="$ac_compile"
13713 case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_compile") 2>conftest.er1
13720 grep -v '^ *+' conftest.er1 >conftest.err
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest.$ac_objext'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13747 cat >conftest.$ac_ext <<_ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 $ac_includes_default
13754 typedef short ac__type_sizeof_;
13758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13765 rm -f conftest.$ac_objext
13766 if { (ac_try="$ac_compile"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_compile") 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest.$ac_objext'
13790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_lo=$ac_mid; break
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_hi=`expr '(' $ac_mid ')' - 1`
13805 if test $ac_mid -le $ac_hi; then
13809 ac_mid=`expr 2 '*' $ac_mid`
13812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 # Binary search between lo and hi bounds.
13826 while test "x$ac_lo" != "x$ac_hi"; do
13827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13828 cat >conftest.$ac_ext <<_ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 $ac_includes_default
13835 typedef short ac__type_sizeof_;
13839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13846 rm -f conftest.$ac_objext
13847 if { (ac_try="$ac_compile"
13848 case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_compile") 2>conftest.er1
13855 grep -v '^ *+' conftest.er1 >conftest.err
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest.$ac_objext'
13871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 ac_lo=`expr '(' $ac_mid ')' + 1`
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891 ?*) ac_cv_sizeof_short=$ac_lo;;
13892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13893 See \`config.log' for more details." >&5
13894 echo "$as_me: error: cannot compute sizeof (short)
13895 See \`config.log' for more details." >&2;}
13896 { (exit 77); exit 77; }; } ;;
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13905 $ac_includes_default
13906 typedef short ac__type_sizeof_;
13907 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13908 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13910 #include <stdlib.h>
13915 FILE *f = fopen ("conftest.val", "w");
13918 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13920 long int i = longval ();
13921 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13923 fprintf (f, "%ld\n", i);
13927 unsigned long int i = ulongval ();
13928 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13930 fprintf (f, "%lu\n", i);
13932 return ferror (f) || fclose (f) != 0;
13938 rm -f conftest$ac_exeext
13939 if { (ac_try="$ac_link"
13940 case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_link") 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_cv_sizeof_short=`cat conftest.val`
13960 echo "$as_me: program exited with status $ac_status" >&5
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13964 ( exit $ac_status )
13965 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13966 See \`config.log' for more details." >&5
13967 echo "$as_me: error: cannot compute sizeof (short)
13968 See \`config.log' for more details." >&2;}
13969 { (exit 77); exit 77; }; }
13971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13975 ac_cv_sizeof_short=0
13978 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13979 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
13980 cat >>confdefs.h <<_ACEOF
13981 #define SIZEOF_SHORT $ac_cv_sizeof_short
13985 { echo "$as_me:$LINENO: checking for int" >&5
13986 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13987 if test "${ac_cv_type_int+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 cat >conftest.$ac_ext <<_ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 $ac_includes_default
13997 typedef int ac__type_new_;
14001 if ((ac__type_new_ *) 0)
14003 if (sizeof (ac__type_new_))
14009 rm -f conftest.$ac_objext
14010 if { (ac_try="$ac_compile"
14011 case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_compile") 2>conftest.er1
14018 grep -v '^ *+' conftest.er1 >conftest.err
14020 cat conftest.err >&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
14023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14024 { (case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_try") 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest.$ac_objext'
14034 { (case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_try") 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14054 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14056 { echo "$as_me:$LINENO: checking size of int" >&5
14057 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14058 if test "${ac_cv_sizeof_int+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 if test "$ac_cv_type_int" = yes; then
14062 # The cast to long int works around a bug in the HP C Compiler
14063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14065 # This bug is HP SR number 8606223364.
14066 if test "$cross_compiling" = yes; then
14067 # Depending upon the size, compute the lo and hi bounds.
14068 cat >conftest.$ac_ext <<_ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 $ac_includes_default
14075 typedef int ac__type_sizeof_;
14079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14086 rm -f conftest.$ac_objext
14087 if { (ac_try="$ac_compile"
14088 case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_compile") 2>conftest.er1
14095 grep -v '^ *+' conftest.er1 >conftest.err
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14101 { (case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106 (eval "$ac_try") 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_try") 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14122 cat >conftest.$ac_ext <<_ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 $ac_includes_default
14129 typedef int ac__type_sizeof_;
14133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14140 rm -f conftest.$ac_objext
14141 if { (ac_try="$ac_compile"
14142 case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_compile") 2>conftest.er1
14149 grep -v '^ *+' conftest.er1 >conftest.err
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
14154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14155 { (case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_try") 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; } &&
14164 { ac_try='test -s conftest.$ac_objext'
14165 { (case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_try") 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 ac_hi=$ac_mid; break
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_lo=`expr $ac_mid + 1`
14180 if test $ac_lo -le $ac_mid; then
14184 ac_mid=`expr 2 '*' $ac_mid + 1`
14187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 cat >conftest.$ac_ext <<_ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14199 $ac_includes_default
14200 typedef int ac__type_sizeof_;
14204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14211 rm -f conftest.$ac_objext
14212 if { (ac_try="$ac_compile"
14213 case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_compile") 2>conftest.er1
14220 grep -v '^ *+' conftest.er1 >conftest.err
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest.$ac_objext'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14247 cat >conftest.$ac_ext <<_ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253 $ac_includes_default
14254 typedef int ac__type_sizeof_;
14258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14265 rm -f conftest.$ac_objext
14266 if { (ac_try="$ac_compile"
14267 case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_compile") 2>conftest.er1
14274 grep -v '^ *+' conftest.er1 >conftest.err
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
14279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14280 { (case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_try") 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest.$ac_objext'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_lo=$ac_mid; break
14301 echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14304 ac_hi=`expr '(' $ac_mid ')' - 1`
14305 if test $ac_mid -le $ac_hi; then
14309 ac_mid=`expr 2 '*' $ac_mid`
14312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325 # Binary search between lo and hi bounds.
14326 while test "x$ac_lo" != "x$ac_hi"; do
14327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14328 cat >conftest.$ac_ext <<_ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14334 $ac_includes_default
14335 typedef int ac__type_sizeof_;
14339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14346 rm -f conftest.$ac_objext
14347 if { (ac_try="$ac_compile"
14348 case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_compile") 2>conftest.er1
14355 grep -v '^ *+' conftest.er1 >conftest.err
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14361 { (case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_try") 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14385 ac_lo=`expr '(' $ac_mid ')' + 1`
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 ?*) ac_cv_sizeof_int=$ac_lo;;
14392 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14393 See \`config.log' for more details." >&5
14394 echo "$as_me: error: cannot compute sizeof (int)
14395 See \`config.log' for more details." >&2;}
14396 { (exit 77); exit 77; }; } ;;
14399 cat >conftest.$ac_ext <<_ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 $ac_includes_default
14406 typedef int ac__type_sizeof_;
14407 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14408 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14410 #include <stdlib.h>
14415 FILE *f = fopen ("conftest.val", "w");
14418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14420 long int i = longval ();
14421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14423 fprintf (f, "%ld\n", i);
14427 unsigned long int i = ulongval ();
14428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14430 fprintf (f, "%lu\n", i);
14432 return ferror (f) || fclose (f) != 0;
14438 rm -f conftest$ac_exeext
14439 if { (ac_try="$ac_link"
14440 case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_link") 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14449 { (case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_try") 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_cv_sizeof_int=`cat conftest.val`
14460 echo "$as_me: program exited with status $ac_status" >&5
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 ( exit $ac_status )
14465 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14466 See \`config.log' for more details." >&5
14467 echo "$as_me: error: cannot compute sizeof (int)
14468 See \`config.log' for more details." >&2;}
14469 { (exit 77); exit 77; }; }
14471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14478 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14479 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
14480 cat >>confdefs.h <<_ACEOF
14481 #define SIZEOF_INT $ac_cv_sizeof_int
14485 { echo "$as_me:$LINENO: checking for long" >&5
14486 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
14487 if test "${ac_cv_type_long+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 $ac_includes_default
14497 typedef long ac__type_new_;
14501 if ((ac__type_new_ *) 0)
14503 if (sizeof (ac__type_new_))
14509 rm -f conftest.$ac_objext
14510 if { (ac_try="$ac_compile"
14511 case "(($ac_try" in
14512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516 (eval "$ac_compile") 2>conftest.er1
14518 grep -v '^ *+' conftest.er1 >conftest.err
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } &&
14523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14524 { (case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_try") 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest.$ac_objext'
14534 { (case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_try") 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_cv_type_long=yes
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14554 echo "${ECHO_T}$ac_cv_type_long" >&6; }
14556 { echo "$as_me:$LINENO: checking size of long" >&5
14557 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
14558 if test "${ac_cv_sizeof_long+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 if test "$ac_cv_type_long" = yes; then
14562 # The cast to long int works around a bug in the HP C Compiler
14563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14565 # This bug is HP SR number 8606223364.
14566 if test "$cross_compiling" = yes; then
14567 # Depending upon the size, compute the lo and hi bounds.
14568 cat >conftest.$ac_ext <<_ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h. */
14574 $ac_includes_default
14575 typedef long ac__type_sizeof_;
14579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14586 rm -f conftest.$ac_objext
14587 if { (ac_try="$ac_compile"
14588 case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_compile") 2>conftest.er1
14595 grep -v '^ *+' conftest.er1 >conftest.err
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest.$ac_objext'
14611 { (case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_try") 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 $ac_includes_default
14629 typedef long ac__type_sizeof_;
14633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14640 rm -f conftest.$ac_objext
14641 if { (ac_try="$ac_compile"
14642 case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_compile") 2>conftest.er1
14649 grep -v '^ *+' conftest.er1 >conftest.err
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14655 { (case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660 (eval "$ac_try") 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670 (eval "$ac_try") 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_hi=$ac_mid; break
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14679 ac_lo=`expr $ac_mid + 1`
14680 if test $ac_lo -le $ac_mid; then
14684 ac_mid=`expr 2 '*' $ac_mid + 1`
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 cat >conftest.$ac_ext <<_ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 $ac_includes_default
14700 typedef long ac__type_sizeof_;
14704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14711 rm -f conftest.$ac_objext
14712 if { (ac_try="$ac_compile"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_compile") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_try") 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14747 cat >conftest.$ac_ext <<_ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14753 $ac_includes_default
14754 typedef long ac__type_sizeof_;
14758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14765 rm -f conftest.$ac_objext
14766 if { (ac_try="$ac_compile"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_compile") 2>conftest.er1
14774 grep -v '^ *+' conftest.er1 >conftest.err
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14780 { (case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_try") 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_try") 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }; then
14799 ac_lo=$ac_mid; break
14801 echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14804 ac_hi=`expr '(' $ac_mid ')' - 1`
14805 if test $ac_mid -le $ac_hi; then
14809 ac_mid=`expr 2 '*' $ac_mid`
14812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825 # Binary search between lo and hi bounds.
14826 while test "x$ac_lo" != "x$ac_hi"; do
14827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14828 cat >conftest.$ac_ext <<_ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834 $ac_includes_default
14835 typedef long ac__type_sizeof_;
14839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14846 rm -f conftest.$ac_objext
14847 if { (ac_try="$ac_compile"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_compile") 2>conftest.er1
14855 grep -v '^ *+' conftest.er1 >conftest.err
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14861 { (case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_try") 2>&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; } &&
14870 { ac_try='test -s conftest.$ac_objext'
14871 { (case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_try") 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 ac_lo=`expr '(' $ac_mid ')' + 1`
14888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14891 ?*) ac_cv_sizeof_long=$ac_lo;;
14892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14893 See \`config.log' for more details." >&5
14894 echo "$as_me: error: cannot compute sizeof (long)
14895 See \`config.log' for more details." >&2;}
14896 { (exit 77); exit 77; }; } ;;
14899 cat >conftest.$ac_ext <<_ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 $ac_includes_default
14906 typedef long ac__type_sizeof_;
14907 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14908 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14910 #include <stdlib.h>
14915 FILE *f = fopen ("conftest.val", "w");
14918 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14920 long int i = longval ();
14921 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14923 fprintf (f, "%ld\n", i);
14927 unsigned long int i = ulongval ();
14928 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14930 fprintf (f, "%lu\n", i);
14932 return ferror (f) || fclose (f) != 0;
14938 rm -f conftest$ac_exeext
14939 if { (ac_try="$ac_link"
14940 case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_link") 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14949 { (case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_try") 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_cv_sizeof_long=`cat conftest.val`
14960 echo "$as_me: program exited with status $ac_status" >&5
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 ( exit $ac_status )
14965 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14966 See \`config.log' for more details." >&5
14967 echo "$as_me: error: cannot compute sizeof (long)
14968 See \`config.log' for more details." >&2;}
14969 { (exit 77); exit 77; }; }
14971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14975 ac_cv_sizeof_long=0
14978 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14979 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
14980 cat >>confdefs.h <<_ACEOF
14981 #define SIZEOF_LONG $ac_cv_sizeof_long
14985 { echo "$as_me:$LINENO: checking for long long" >&5
14986 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14987 if test "${ac_cv_type_long_long+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 cat >conftest.$ac_ext <<_ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 $ac_includes_default
14997 typedef long long ac__type_new_;
15001 if ((ac__type_new_ *) 0)
15003 if (sizeof (ac__type_new_))
15009 rm -f conftest.$ac_objext
15010 if { (ac_try="$ac_compile"
15011 case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_compile") 2>conftest.er1
15018 grep -v '^ *+' conftest.er1 >conftest.err
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024 { (case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_try") 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest.$ac_objext'
15034 { (case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_try") 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_type_long_long=yes
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ac_cv_type_long_long=no
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15054 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15056 { echo "$as_me:$LINENO: checking size of long long" >&5
15057 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
15058 if test "${ac_cv_sizeof_long_long+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15061 if test "$ac_cv_type_long_long" = yes; then
15062 # The cast to long int works around a bug in the HP C Compiler
15063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15065 # This bug is HP SR number 8606223364.
15066 if test "$cross_compiling" = yes; then
15067 # Depending upon the size, compute the lo and hi bounds.
15068 cat >conftest.$ac_ext <<_ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 $ac_includes_default
15075 typedef long long ac__type_sizeof_;
15079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_compile") 2>conftest.er1
15095 grep -v '^ *+' conftest.er1 >conftest.err
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest.$ac_objext'
15111 { (case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_try") 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 $ac_includes_default
15129 typedef long long ac__type_sizeof_;
15133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15140 rm -f conftest.$ac_objext
15141 if { (ac_try="$ac_compile"
15142 case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_compile") 2>conftest.er1
15149 grep -v '^ *+' conftest.er1 >conftest.err
15151 cat conftest.err >&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
15154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15155 { (case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_try") 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; } &&
15164 { ac_try='test -s conftest.$ac_objext'
15165 { (case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_try") 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_hi=$ac_mid; break
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15179 ac_lo=`expr $ac_mid + 1`
15180 if test $ac_lo -le $ac_mid; then
15184 ac_mid=`expr 2 '*' $ac_mid + 1`
15187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 cat >conftest.$ac_ext <<_ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 $ac_includes_default
15200 typedef long long ac__type_sizeof_;
15204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15211 rm -f conftest.$ac_objext
15212 if { (ac_try="$ac_compile"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_compile") 2>conftest.er1
15220 grep -v '^ *+' conftest.er1 >conftest.err
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
15225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15226 { (case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_try") 2>&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest.$ac_objext'
15236 { (case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_try") 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15247 cat >conftest.$ac_ext <<_ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 $ac_includes_default
15254 typedef long long ac__type_sizeof_;
15258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15265 rm -f conftest.$ac_objext
15266 if { (ac_try="$ac_compile"
15267 case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272 (eval "$ac_compile") 2>conftest.er1
15274 grep -v '^ *+' conftest.er1 >conftest.err
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } &&
15279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15280 { (case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_try") 2>&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; } &&
15289 { ac_try='test -s conftest.$ac_objext'
15290 { (case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_try") 2>&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 ac_lo=$ac_mid; break
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 ac_hi=`expr '(' $ac_mid ')' - 1`
15305 if test $ac_mid -le $ac_hi; then
15309 ac_mid=`expr 2 '*' $ac_mid`
15312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15325 # Binary search between lo and hi bounds.
15326 while test "x$ac_lo" != "x$ac_hi"; do
15327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 $ac_includes_default
15335 typedef long long ac__type_sizeof_;
15339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15346 rm -f conftest.$ac_objext
15347 if { (ac_try="$ac_compile"
15348 case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_compile") 2>conftest.er1
15355 grep -v '^ *+' conftest.er1 >conftest.err
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
15360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15361 { (case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_try") 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; } &&
15370 { ac_try='test -s conftest.$ac_objext'
15371 { (case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_try") 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 ac_lo=`expr '(' $ac_mid ')' + 1`
15388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15392 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
15393 See \`config.log' for more details." >&5
15394 echo "$as_me: error: cannot compute sizeof (long long)
15395 See \`config.log' for more details." >&2;}
15396 { (exit 77); exit 77; }; } ;;
15399 cat >conftest.$ac_ext <<_ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 $ac_includes_default
15406 typedef long long ac__type_sizeof_;
15407 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15408 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15410 #include <stdlib.h>
15415 FILE *f = fopen ("conftest.val", "w");
15418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15420 long int i = longval ();
15421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15423 fprintf (f, "%ld\n", i);
15427 unsigned long int i = ulongval ();
15428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15430 fprintf (f, "%lu\n", i);
15432 return ferror (f) || fclose (f) != 0;
15438 rm -f conftest$ac_exeext
15439 if { (ac_try="$ac_link"
15440 case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_link") 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15449 { (case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_try") 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_sizeof_long_long=`cat conftest.val`
15460 echo "$as_me: program exited with status $ac_status" >&5
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15464 ( exit $ac_status )
15465 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
15466 See \`config.log' for more details." >&5
15467 echo "$as_me: error: cannot compute sizeof (long long)
15468 See \`config.log' for more details." >&2;}
15469 { (exit 77); exit 77; }; }
15471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15475 ac_cv_sizeof_long_long=0
15478 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15479 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
15480 cat >>confdefs.h <<_ACEOF
15481 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15485 SIZEOF_SHORT=$ac_cv_sizeof_short
15486 SIZEOF_INT=$ac_cv_sizeof_int
15487 SIZEOF_LONG=$ac_cv_sizeof_long
15488 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
15493 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15494 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
15495 if test "${ac_cv_c_bigendian+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 # See if sys/param.h defines the BYTE_ORDER macro.
15499 cat >conftest.$ac_ext <<_ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15505 #include <sys/types.h>
15506 #include <sys/param.h>
15511 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15512 bogus endian macros
15519 rm -f conftest.$ac_objext
15520 if { (ac_try="$ac_compile"
15521 case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_compile") 2>conftest.er1
15528 grep -v '^ *+' conftest.er1 >conftest.err
15530 cat conftest.err >&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
15533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15534 { (case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_try") 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest.$ac_objext'
15544 { (case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_try") 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 # It does; now see whether it defined to BIG_ENDIAN or not.
15554 cat >conftest.$ac_ext <<_ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15560 #include <sys/types.h>
15561 #include <sys/param.h>
15566 #if BYTE_ORDER != BIG_ENDIAN
15574 rm -f conftest.$ac_objext
15575 if { (ac_try="$ac_compile"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_compile") 2>conftest.er1
15583 grep -v '^ *+' conftest.er1 >conftest.err
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15589 { (case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_try") 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_cv_c_bigendian=yes
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 ac_cv_c_bigendian=no
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 # It does not; compile a test program.
15622 if test "$cross_compiling" = yes; then
15623 # try to guess the endianness by grepping values into an object file
15624 ac_cv_c_bigendian=unknown
15625 cat >conftest.$ac_ext <<_ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15632 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15633 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15634 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15635 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15636 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15640 _ascii (); _ebcdic ();
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652 (eval "$ac_compile") 2>conftest.er1
15654 grep -v '^ *+' conftest.er1 >conftest.err
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15660 { (case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_try") 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15680 ac_cv_c_bigendian=yes
15682 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15683 if test "$ac_cv_c_bigendian" = unknown; then
15684 ac_cv_c_bigendian=no
15686 # finding both strings is unlikely to happen, but who knows?
15687 ac_cv_c_bigendian=unknown
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 cat >conftest.$ac_ext <<_ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 $ac_includes_default
15710 /* Are we little or big endian? From Harbison&Steele. */
15714 char c[sizeof (long int)];
15717 return u.c[sizeof (long int) - 1] == 1;
15723 rm -f conftest$ac_exeext
15724 if { (ac_try="$ac_link"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_link") 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15734 { (case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_try") 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 ac_cv_c_bigendian=no
15745 echo "$as_me: program exited with status $ac_status" >&5
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ( exit $ac_status )
15750 ac_cv_c_bigendian=yes
15752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15760 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15761 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
15762 case $ac_cv_c_bigendian in
15765 cat >>confdefs.h <<\_ACEOF
15766 #define WORDS_BIGENDIAN 1
15772 { { echo "$as_me:$LINENO: error: unknown endianness
15773 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15774 echo "$as_me: error: unknown endianness
15775 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15776 { (exit 1); exit 1; }; } ;;
15779 /bin/sh $ac_aux_dir/parse-types.sh
15780 ASM_TYPES_HEADER=./asm_types.h
15783 for ac_header in inttypes.h
15785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 ac_res=`eval echo '${'$as_ac_Header'}'`
15793 { echo "$as_me:$LINENO: result: $ac_res" >&5
15794 echo "${ECHO_T}$ac_res" >&6; }
15796 # Is the header compilable?
15797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15799 cat >conftest.$ac_ext <<_ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 $ac_includes_default
15806 #include <$ac_header>
15808 rm -f conftest.$ac_objext
15809 if { (ac_try="$ac_compile"
15810 case "(($ac_try" in
15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812 *) ac_try_echo=$ac_try;;
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_compile") 2>conftest.er1
15817 grep -v '^ *+' conftest.er1 >conftest.err
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15823 { (case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_try") 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; } &&
15832 { ac_try='test -s conftest.$ac_objext'
15833 { (case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_try") 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 ac_header_compiler=yes
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15847 ac_header_compiler=no
15850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15852 echo "${ECHO_T}$ac_header_compiler" >&6; }
15854 # Is the header present?
15855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15857 cat >conftest.$ac_ext <<_ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15863 #include <$ac_header>
15865 if { (ac_try="$ac_cpp conftest.$ac_ext"
15866 case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15873 grep -v '^ *+' conftest.er1 >conftest.err
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } >/dev/null; then
15878 if test -s conftest.err; then
15879 ac_cpp_err=$ac_c_preproc_warn_flag
15880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15887 if test -z "$ac_cpp_err"; then
15888 ac_header_preproc=yes
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 ac_header_preproc=no
15896 rm -f conftest.err conftest.$ac_ext
15897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15898 echo "${ECHO_T}$ac_header_preproc" >&6; }
15900 # So? What about this header?
15901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15907 ac_header_preproc=yes
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 eval "$as_ac_Header=\$ac_header_preproc"
15932 ac_res=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934 echo "${ECHO_T}$ac_res" >&6; }
15937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15938 cat >>confdefs.h <<_ACEOF
15939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15946 { echo "$as_me:$LINENO: checking for intptr_t" >&5
15947 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
15948 if test "${ac_cv_type_intptr_t+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 cat >conftest.$ac_ext <<_ACEOF
15954 cat confdefs.h >>conftest.$ac_ext
15955 cat >>conftest.$ac_ext <<_ACEOF
15956 /* end confdefs.h. */
15957 $ac_includes_default
15958 typedef intptr_t ac__type_new_;
15962 if ((ac__type_new_ *) 0)
15964 if (sizeof (ac__type_new_))
15970 rm -f conftest.$ac_objext
15971 if { (ac_try="$ac_compile"
15972 case "(($ac_try" in
15973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977 (eval "$ac_compile") 2>conftest.er1
15979 grep -v '^ *+' conftest.er1 >conftest.err
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15985 { (case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_try") 2>&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try='test -s conftest.$ac_objext'
15995 { (case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_try") 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004 ac_cv_type_intptr_t=yes
16006 echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16009 ac_cv_type_intptr_t=no
16012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16015 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
16016 if test $ac_cv_type_intptr_t = yes; then
16018 cat >>confdefs.h <<_ACEOF
16019 #define HAVE_INTPTR_T 1
16025 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
16026 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
16027 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 cat >conftest.$ac_ext <<_ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16036 #include <sys/stat.h>
16040 struct stat stat; stat.st_flags = 0;
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_compile") 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060 { (case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_try") 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest.$ac_objext'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 e2fsprogs_cv_struct_st_flags=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 e2fsprogs_cv_struct_st_flags=no
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
16091 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
16092 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
16093 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
16094 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
16095 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 cat >conftest.$ac_ext <<_ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 #include <sys/stat.h>
16108 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
16113 rm -f conftest.$ac_objext
16114 if { (ac_try="$ac_compile"
16115 case "(($ac_try" in
16116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117 *) ac_try_echo=$ac_try;;
16119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16120 (eval "$ac_compile") 2>conftest.er1
16122 grep -v '^ *+' conftest.er1 >conftest.err
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16128 { (case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_try") 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; } &&
16137 { ac_try='test -s conftest.$ac_objext'
16138 { (case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_try") 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; }; then
16147 e2fsprogs_cv_struct_st_flags_immut=yes
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16152 e2fsprogs_cv_struct_st_flags_immut=no
16155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
16159 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
16160 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
16161 cat >>confdefs.h <<\_ACEOF
16162 #define HAVE_STAT_FLAGS 1
16167 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16168 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
16169 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 #include <sys/types.h>
16179 #include <sys/socket.h>
16184 static struct sockaddr ac_aggr;
16185 if (ac_aggr.sa_len)
16191 rm -f conftest.$ac_objext
16192 if { (ac_try="$ac_compile"
16193 case "(($ac_try" in
16194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195 *) ac_try_echo=$ac_try;;
16197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16198 (eval "$ac_compile") 2>conftest.er1
16200 grep -v '^ *+' conftest.er1 >conftest.err
16202 cat conftest.err >&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
16205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16206 { (case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_try") 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; } &&
16215 { ac_try='test -s conftest.$ac_objext'
16216 { (case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_try") 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 ac_cv_member_struct_sockaddr_sa_len=yes
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 #include <sys/types.h>
16237 #include <sys/socket.h>
16242 static struct sockaddr ac_aggr;
16243 if (sizeof ac_aggr.sa_len)
16249 rm -f conftest.$ac_objext
16250 if { (ac_try="$ac_compile"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_compile") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1 >conftest.err
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264 { (case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_try") 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try='test -s conftest.$ac_objext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_member_struct_sockaddr_sa_len=yes
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_cv_member_struct_sockaddr_sa_len=no
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16297 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16298 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
16300 cat >>confdefs.h <<_ACEOF
16301 #define HAVE_SA_LEN 1
16332 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime
16334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 cat >conftest.$ac_ext <<_ACEOF
16343 cat confdefs.h >>conftest.$ac_ext
16344 cat >>conftest.$ac_ext <<_ACEOF
16345 /* end confdefs.h. */
16346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16348 #define $ac_func innocuous_$ac_func
16350 /* System header to define __stub macros and hopefully few prototypes,
16351 which can conflict with char $ac_func (); below.
16352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16353 <limits.h> exists even on freestanding compilers. */
16356 # include <limits.h>
16358 # include <assert.h>
16363 /* Override any GCC internal prototype to avoid an error.
16364 Use char because int might match the return type of a GCC
16365 builtin and then its argument prototype would still apply. */
16370 /* The GNU C library defines this for functions which it implements
16371 to always fail with ENOSYS. Some functions are actually named
16372 something starting with __ and the normal name is an alias. */
16373 #if defined __stub_$ac_func || defined __stub___$ac_func
16380 return $ac_func ();
16385 rm -f conftest.$ac_objext conftest$ac_exeext
16386 if { (ac_try="$ac_link"
16387 case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_link") 2>conftest.er1
16394 grep -v '^ *+' conftest.er1 >conftest.err
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; } &&
16409 { ac_try='test -s conftest$ac_exeext'
16410 { (case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_try") 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 eval "$as_ac_var=yes"
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 eval "$as_ac_var=no"
16427 rm -f core conftest.err conftest.$ac_objext \
16428 conftest$ac_exeext conftest.$ac_ext
16430 ac_res=`eval echo '${'$as_ac_var'}'`
16431 { echo "$as_me:$LINENO: result: $ac_res" >&5
16432 echo "${ECHO_T}$ac_res" >&6; }
16433 if test `eval echo '${'$as_ac_var'}'` = yes; then
16434 cat >>confdefs.h <<_ACEOF
16435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16442 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16443 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16444 if test "${ac_cv_lib_socket_socket+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 ac_check_lib_save_LIBS=$LIBS
16448 LIBS="-lsocket $LIBS"
16449 cat >conftest.$ac_ext <<_ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16456 /* Override any GCC internal prototype to avoid an error.
16457 Use char because int might match the return type of a GCC
16458 builtin and then its argument prototype would still apply. */
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (ac_try="$ac_link"
16473 case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_link") 2>conftest.er1
16480 grep -v '^ *+' conftest.er1 >conftest.err
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
16485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16486 { (case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_try") 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest$ac_exeext'
16496 { (case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_try") 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 ac_cv_lib_socket_socket=yes
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 ac_cv_lib_socket_socket=no
16513 rm -f core conftest.err conftest.$ac_objext \
16514 conftest$ac_exeext conftest.$ac_ext
16515 LIBS=$ac_check_lib_save_LIBS
16517 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16518 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16519 if test $ac_cv_lib_socket_socket = yes; then
16520 SOCKET_LIB=-lsocket
16525 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16526 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16527 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 ac_check_lib_save_LIBS=$LIBS
16532 cat >conftest.$ac_ext <<_ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16539 /* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
16554 rm -f conftest.$ac_objext conftest$ac_exeext
16555 if { (ac_try="$ac_link"
16556 case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_link") 2>conftest.er1
16563 grep -v '^ *+' conftest.er1 >conftest.err
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16569 { (case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_try") 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; } &&
16578 { ac_try='test -s conftest$ac_exeext'
16579 { (case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_try") 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 ac_cv_lib_dl_dlopen=yes
16590 echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16593 ac_cv_lib_dl_dlopen=no
16596 rm -f core conftest.err conftest.$ac_objext \
16597 conftest$ac_exeext conftest.$ac_ext
16598 LIBS=$ac_check_lib_save_LIBS
16600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16601 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16602 if test $ac_cv_lib_dl_dlopen = yes; then
16604 cat >>confdefs.h <<\_ACEOF
16605 #define HAVE_DLOPEN 1
16611 { echo "$as_me:$LINENO: checking for optreset" >&5
16612 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
16613 if test "${ac_cv_have_optreset+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 #include <unistd.h>
16625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16626 $EGREP "optreset" >/dev/null 2>&1; then
16627 ac_cv_have_optreset=yes
16629 ac_cv_have_optreset=no
16634 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16635 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
16636 if test $ac_cv_have_optreset = yes; then
16637 cat >>confdefs.h <<\_ACEOF
16638 #define HAVE_OPTRESET 1
16642 { echo "$as_me:$LINENO: checking for unified diff option" >&5
16643 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
16644 if diff -u $0 $0 >& /dev/null ; then
16649 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16650 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
16654 cat >>confdefs.h <<\_ACEOF
16655 #define HAVE_EXT2_IOCTLS 1
16676 linux* | gnu* | k*bsd*-gnu)
16677 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16679 echo "On $host_os systems, root_prefix defaults to ''"
16684 linux* | gnu* | k*bsd*-gnu)
16685 if test "$prefix" = NONE ; then
16687 echo "On $host_os systems, prefix defaults to /usr"
16688 if test "$mandir" = '${prefix}/man' ; then
16689 echo "...and mandir defaults to /usr/share/man"
16690 mandir=/usr/share/man
16695 if test "$root_prefix" = NONE ; then
16696 if test "$prefix" = NONE ; then
16697 root_prefix="$ac_default_prefix"
16699 root_prefix="$prefix"
16701 root_bindir=$bindir
16702 root_sbindir=$sbindir
16703 root_libdir=$libdir
16704 root_sysconfdir=$sysconfdir
16706 root_bindir='${root_prefix}/bin'
16707 root_sbindir='${root_prefix}/sbin'
16708 root_libdir='${root_prefix}/lib'
16709 root_sysconfdir='${root_prefix}/etc'
16716 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16717 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
16718 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (ac_try="$ac_link"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_link") 2>conftest.er1
16746 grep -v '^ *+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752 { (case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_try") 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest$ac_exeext'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_cv_e2fsprogs_use_static=yes
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 ac_cv_e2fsprogs_use_static=no
16779 rm -f core conftest.err conftest.$ac_objext \
16780 conftest$ac_exeext conftest.$ac_ext
16781 LDFLAGS=$SAVE_LDFLAGS
16786 ac_cv_e2fsprogs_use_static=no
16789 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16790 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
16792 if test $ac_cv_e2fsprogs_use_static = yes; then
16793 LDFLAG_STATIC=-static
16798 echo "Using Apple Darwin / GNU libintl workaround"
16799 cat >>confdefs.h <<\_ACEOF
16800 #define _INTL_REDIRECT_MACROS 1
16805 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16806 ET_DIR=`cd ${srcdir}/lib/et; pwd`
16809 if test "$cross_compiling" = yes ; then
16812 DO_TEST_SUITE=check
16816 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16817 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16820 if test $cross_compiling = no; then
16821 BUILD_CFLAGS="$CFLAGS"
16822 BUILD_LDFLAGS="$LDFLAGS"
16829 test -d lib || mkdir lib
16830 test -d include || mkdir include
16831 test -d include/linux || mkdir include/linux
16832 test -d include/asm || mkdir include/asm
16833 for i in MCONFIG Makefile e2fsprogs.spec \
16834 util/Makefile util/subst.conf util/gen-tarball \
16835 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16836 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16837 lib/uuid/Makefile lib/uuid/uuid_types.h \
16838 lib/blkid/Makefile lib/blkid/blkid_types.h \
16839 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16840 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
16841 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16842 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16843 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
16844 if test -d `dirname ${srcdir}/$i` ; then
16845 outlist="$outlist $i"
16848 ac_config_files="$ac_config_files $outlist"
16850 cat >confcache <<\_ACEOF
16851 # This file is a shell script that caches the results of configure
16852 # tests run on this system so they can be shared between configure
16853 # scripts and configure runs, see configure's option --config-cache.
16854 # It is not useful on other systems. If it contains results you don't
16855 # want to keep, you may remove or edit it.
16857 # config.status only pays attention to the cache file if you give it
16858 # the --recheck option to rerun configure.
16860 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16861 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16862 # following values.
16866 # The following way of writing the cache mishandles newlines in values,
16867 # but we know of no workaround that is simple, portable, and efficient.
16868 # So, we kill variables containing newlines.
16869 # Ultrix sh set writes to stderr and can't be redirected directly,
16870 # and sets the high bit in the cache file unless we assign to the vars.
16872 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16873 eval ac_val=\$$ac_var
16877 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16878 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16881 _ | IFS | as_nl) ;; #(
16882 *) $as_unset $ac_var ;;
16888 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16889 *${as_nl}ac_space=\ *)
16890 # `set' does not quote correctly, so add quotes (double-quote
16891 # substitution turns \\\\ into \\, and sed turns \\ into \).
16894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16897 # `set' quotes correctly as required by POSIX, so do not add quotes.
16898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16907 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16909 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16911 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16912 if test -w "$cache_file"; then
16913 test "x$cache_file" != "x/dev/null" &&
16914 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16915 echo "$as_me: updating cache $cache_file" >&6;}
16916 cat confcache >$cache_file
16918 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16919 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16925 # Let make expand exec_prefix.
16926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16928 # Transform confdefs.h into DEFS.
16929 # Protect against shell expansion while executing Makefile rules.
16930 # Protect against Makefile macro expansion.
16932 # If the first sed substitution is executed (which looks for macros that
16933 # take arguments), then branch to the quote section. Otherwise,
16934 # look for a macro that doesn't take arguments.
16938 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16940 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16944 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16957 DEFS=`sed -n "$ac_script" confdefs.h`
16962 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16963 # 1. Remove the extension, and $U if already installed.
16964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16965 ac_i=`echo "$ac_i" | sed "$ac_script"`
16966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16967 # will be set to the directory where LIBOBJS objects are built.
16968 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16969 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16971 LIBOBJS=$ac_libobjs
16973 LTLIBOBJS=$ac_ltlibobjs
16977 : ${CONFIG_STATUS=./config.status}
16978 ac_clean_files_save=$ac_clean_files
16979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16980 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16981 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16982 cat >$CONFIG_STATUS <<_ACEOF
16984 # Generated by $as_me.
16985 # Run this file to recreate the current configuration.
16986 # Compiler output produced by configure, useful for debugging
16987 # configure, is in config.log if it exists.
16990 ac_cs_recheck=false
16992 SHELL=\${CONFIG_SHELL-$SHELL}
16995 cat >>$CONFIG_STATUS <<\_ACEOF
16996 ## --------------------- ##
16997 ## M4sh Initialization. ##
16998 ## --------------------- ##
17000 # Be Bourne compatible
17001 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17004 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17005 # is contrary to our usage. Disable this feature.
17006 alias -g '${1+"$@"}'='"$@"'
17007 setopt NO_GLOB_SUBST
17009 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
17011 BIN_SH=xpg4; export BIN_SH # for Tru64
17012 DUALCASE=1; export DUALCASE # for MKS sh
17016 # Avoid depending upon Character Ranges.
17017 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17018 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17019 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17020 as_cr_digits='0123456789'
17021 as_cr_alnum=$as_cr_Letters$as_cr_digits
17023 # The user is always right.
17024 if test "${PATH_SEPARATOR+set}" != set; then
17025 echo "#! /bin/sh" >conf$$.sh
17026 echo "exit 0" >>conf$$.sh
17028 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17036 # Support unset when possible.
17037 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17045 # We need space, tab and new line, in precisely that order. Quoting is
17046 # there to prevent editors from complaining about space-tab.
17047 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17048 # splitting by setting IFS to empty value.)
17053 # Find who we are. Look in the path if we contain no directory separator.
17055 *[\\/]* ) as_myself=$0 ;;
17056 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17057 for as_dir in $PATH
17060 test -z "$as_dir" && as_dir=.
17061 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17067 # We did not find ourselves, most probably we were run as `sh COMMAND'
17068 # in which case we are not to be found in the path.
17069 if test "x$as_myself" = x; then
17072 if test ! -f "$as_myself"; then
17073 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17074 { (exit 1); exit 1; }
17077 # Work around bugs in pre-3.0 UWIN ksh.
17078 for as_var in ENV MAIL MAILPATH
17079 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17087 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17088 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17089 LC_TELEPHONE LC_TIME
17091 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17092 eval $as_var=C; export $as_var
17094 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17098 # Required to use basename.
17099 if expr a : '\(a\)' >/dev/null 2>&1 &&
17100 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17106 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17107 as_basename=basename
17113 # Name of the executable.
17114 as_me=`$as_basename -- "$0" ||
17115 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17116 X"$0" : 'X\(//\)$' \| \
17117 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17119 sed '/^.*\/\([^/][^/]*\)\/*$/{
17138 as_lineno_1=$LINENO
17139 as_lineno_2=$LINENO
17140 test "x$as_lineno_1" != "x$as_lineno_2" &&
17141 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17143 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17144 # uniformly replaced by the line number. The first 'sed' inserts a
17145 # line-number line after each line using $LINENO; the second 'sed'
17146 # does the real work. The second script uses 'N' to pair each
17147 # line-number line with the line containing $LINENO, and appends
17148 # trailing '-' during substitution so that $LINENO is not a special
17149 # case at line end.
17150 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17151 # scripts with optimization help from Paolo Bonzini. Blame Lee
17152 # E. McMahon (1931-1989) for sed's syntax. :-)
17164 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17167 ' >$as_me.lineno &&
17168 chmod +x "$as_me.lineno" ||
17169 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17170 { (exit 1); exit 1; }; }
17172 # Don't try to exec as it changes $[0], causing all sort of problems
17173 # (the dirname of $[0] is not the place where we might find the
17174 # original and so on. Autoconf is especially sensitive to this).
17175 . "./$as_me.lineno"
17176 # Exit status is that of the last command.
17181 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17187 ECHO_C= ECHO_N= ECHO_T=
17188 case `echo -n x` in
17190 case `echo 'x\c'` in
17191 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17198 if expr a : '\(a\)' >/dev/null 2>&1 &&
17199 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17205 rm -f conf$$ conf$$.exe conf$$.file
17206 if test -d conf$$.dir; then
17207 rm -f conf$$.dir/conf$$.file
17213 if ln -s conf$$.file conf$$ 2>/dev/null; then
17215 # ... but there are two gotchas:
17216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17218 # In both cases, we have to default to `cp -p'.
17219 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17221 elif ln conf$$.file conf$$ 2>/dev/null; then
17226 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17227 rmdir conf$$.dir 2>/dev/null
17229 if mkdir -p . 2>/dev/null; then
17232 test -d ./-p && rmdir ./-p
17236 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
17237 # systems may use methods other than mode bits to determine executability.
17238 cat >conf$$.file <<_ASEOF
17242 chmod +x conf$$.file
17243 if test -x conf$$.file >/dev/null 2>&1; then
17244 as_executable_p="test -x"
17250 # Sed expression to map a string onto a valid CPP name.
17251 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17253 # Sed expression to map a string onto a valid variable name.
17254 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17259 # Save the log message, to keep $[0] and so on meaningful, and to
17260 # report actual input values of CONFIG_FILES etc. instead of their
17261 # values after options handling.
17263 This file was extended by $as_me, which was
17264 generated by GNU Autoconf 2.60. Invocation command line was
17266 CONFIG_FILES = $CONFIG_FILES
17267 CONFIG_HEADERS = $CONFIG_HEADERS
17268 CONFIG_LINKS = $CONFIG_LINKS
17269 CONFIG_COMMANDS = $CONFIG_COMMANDS
17272 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17277 cat >>$CONFIG_STATUS <<_ACEOF
17278 # Files that config.status was made for.
17279 config_files="$ac_config_files"
17280 config_commands="$ac_config_commands"
17284 cat >>$CONFIG_STATUS <<\_ACEOF
17286 \`$as_me' instantiates files from templates according to the
17287 current configuration.
17289 Usage: $0 [OPTIONS] [FILE]...
17291 -h, --help print this help, then exit
17292 -V, --version print version number, then exit
17293 -q, --quiet do not print progress messages
17294 -d, --debug don't remove temporary files
17295 --recheck update $as_me by reconfiguring in the same conditions
17296 --file=FILE[:TEMPLATE]
17297 instantiate the configuration file FILE
17299 Configuration files:
17302 Configuration commands:
17305 Report bugs to <bug-autoconf@gnu.org>."
17308 cat >>$CONFIG_STATUS <<_ACEOF
17311 configured by $0, generated by GNU Autoconf 2.60,
17312 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17314 Copyright (C) 2006 Free Software Foundation, Inc.
17315 This config.status script is free software; the Free Software Foundation
17316 gives unlimited permission to copy, distribute and modify it."
17323 cat >>$CONFIG_STATUS <<\_ACEOF
17324 # If no file are specified by the user, then we need to provide default
17325 # value. By we need to know if files were specified by the user.
17331 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17332 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17343 # Handling of the options.
17344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17346 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17347 echo "$ac_cs_version"; exit ;;
17348 --debug | --debu | --deb | --de | --d | -d )
17350 --file | --fil | --fi | --f )
17352 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17353 ac_need_defaults=false;;
17354 --he | --h | --help | --hel | -h )
17355 echo "$ac_cs_usage"; exit ;;
17356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17357 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17360 # This is an error.
17361 -*) { echo "$as_me: error: unrecognized option: $1
17362 Try \`$0 --help' for more information." >&2
17363 { (exit 1); exit 1; }; } ;;
17365 *) ac_config_targets="$ac_config_targets $1"
17366 ac_need_defaults=false ;;
17372 ac_configure_extra_args=
17374 if $ac_cs_silent; then
17376 ac_configure_extra_args="$ac_configure_extra_args --silent"
17380 cat >>$CONFIG_STATUS <<_ACEOF
17381 if \$ac_cs_recheck; then
17382 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17383 CONFIG_SHELL=$SHELL
17384 export CONFIG_SHELL
17385 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17389 cat >>$CONFIG_STATUS <<\_ACEOF
17393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17394 ## Running $as_me. ##
17400 cat >>$CONFIG_STATUS <<_ACEOF
17404 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17405 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17407 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17408 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17409 LINGUAS="${LINGUAS-%UNSET%}"
17414 cat >>$CONFIG_STATUS <<\_ACEOF
17416 # Handling of arguments.
17417 for ac_config_target in $ac_config_targets
17419 case $ac_config_target in
17420 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17421 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17423 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17424 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17425 { (exit 1); exit 1; }; };;
17430 # If the user did not use the arguments to specify the items to instantiate,
17431 # then the envvar interface is used. Set only those that are not.
17432 # We use the long form for the default assignment because of an extremely
17433 # bizarre bug on SunOS 4.1.3.
17434 if $ac_need_defaults; then
17435 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17436 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17439 # Have a temporary directory for convenience. Make it in the build tree
17440 # simply because there is no reason against having it here, and in addition,
17441 # creating and moving files from /tmp can sometimes cause problems.
17442 # Hook for its removal unless debugging.
17443 # Note that there is a small window in which the directory will not be cleaned:
17444 # after its creation but before its name has been assigned to `$tmp'.
17448 trap 'exit_status=$?
17449 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17451 trap '{ (exit 1); exit 1; }' 1 2 13 15
17453 # Create a (secure) tmp directory for tmp files.
17456 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17457 test -n "$tmp" && test -d "$tmp"
17460 tmp=./conf$$-$RANDOM
17461 (umask 077 && mkdir "$tmp")
17464 echo "$me: cannot create a temporary directory in ." >&2
17465 { (exit 1); exit 1; }
17469 # Set up the sed scripts for CONFIG_FILES section.
17472 # No need to generate the scripts if there are no CONFIG_FILES.
17473 # This happens for instance when ./config.status config.h
17474 if test -n "$CONFIG_FILES"; then
17478 # Create sed commands to just substitute file output variables.
17480 # Remaining file output variables are in a fragment that also has non-file
17486 for ac_last_try in false false false false false :; do
17487 cat >conf$$subs.sed <<_ACEOF
17488 SHELL!$SHELL$ac_delim
17489 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17490 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17491 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17492 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17493 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17494 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17495 exec_prefix!$exec_prefix$ac_delim
17496 prefix!$prefix$ac_delim
17497 program_transform_name!$program_transform_name$ac_delim
17498 bindir!$bindir$ac_delim
17499 sbindir!$sbindir$ac_delim
17500 libexecdir!$libexecdir$ac_delim
17501 datarootdir!$datarootdir$ac_delim
17502 datadir!$datadir$ac_delim
17503 sysconfdir!$sysconfdir$ac_delim
17504 sharedstatedir!$sharedstatedir$ac_delim
17505 localstatedir!$localstatedir$ac_delim
17506 includedir!$includedir$ac_delim
17507 oldincludedir!$oldincludedir$ac_delim
17508 docdir!$docdir$ac_delim
17509 infodir!$infodir$ac_delim
17510 htmldir!$htmldir$ac_delim
17511 dvidir!$dvidir$ac_delim
17512 pdfdir!$pdfdir$ac_delim
17513 psdir!$psdir$ac_delim
17514 libdir!$libdir$ac_delim
17515 localedir!$localedir$ac_delim
17516 mandir!$mandir$ac_delim
17517 DEFS!$DEFS$ac_delim
17518 ECHO_C!$ECHO_C$ac_delim
17519 ECHO_N!$ECHO_N$ac_delim
17520 ECHO_T!$ECHO_T$ac_delim
17521 LIBS!$LIBS$ac_delim
17522 build_alias!$build_alias$ac_delim
17523 host_alias!$host_alias$ac_delim
17524 target_alias!$target_alias$ac_delim
17525 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
17526 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
17527 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
17528 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
17529 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
17530 build!$build$ac_delim
17531 build_cpu!$build_cpu$ac_delim
17532 build_vendor!$build_vendor$ac_delim
17533 build_os!$build_os$ac_delim
17534 host!$host$ac_delim
17535 host_cpu!$host_cpu$ac_delim
17536 host_vendor!$host_vendor$ac_delim
17537 host_os!$host_os$ac_delim
17539 CFLAGS!$CFLAGS$ac_delim
17540 LDFLAGS!$LDFLAGS$ac_delim
17541 CPPFLAGS!$CPPFLAGS$ac_delim
17542 ac_ct_CC!$ac_ct_CC$ac_delim
17543 EXEEXT!$EXEEXT$ac_delim
17544 OBJEXT!$OBJEXT$ac_delim
17547 GREP!$GREP$ac_delim
17548 EGREP!$EGREP$ac_delim
17549 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
17550 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
17551 HTREE_CMT!$HTREE_CMT$ac_delim
17552 ELF_CMT!$ELF_CMT$ac_delim
17553 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
17554 PROFILE_CMT!$PROFILE_CMT$ac_delim
17555 CHECKER_CMT!$CHECKER_CMT$ac_delim
17556 LIB_EXT!$LIB_EXT$ac_delim
17557 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
17558 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
17559 SWAPFS_CMT!$SWAPFS_CMT$ac_delim
17560 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
17561 IMAGER_CMT!$IMAGER_CMT$ac_delim
17562 RESIZER_CMT!$RESIZER_CMT$ac_delim
17563 E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
17566 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
17568 elif $ac_last_try; then
17569 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17570 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17571 { (exit 1); exit 1; }; }
17573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17577 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17578 if test -n "$ac_eof"; then
17579 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17580 ac_eof=`expr $ac_eof + 1`
17583 cat >>$CONFIG_STATUS <<_ACEOF
17584 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17586 /^[ ]*@MCONFIG@[ ]*$/{
17590 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
17594 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
17598 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
17599 r $MAKEFILE_PROFILE
17602 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
17603 r $MAKEFILE_CHECKER
17606 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
17607 r $MAKEFILE_LIBRARY
17610 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
17611 r $ASM_TYPES_HEADER
17616 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17617 s/^/s,@/; s/!/@,|#_!!_#|/
17620 s/'"$ac_delim"'$/,g/; t
17622 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17623 ' >>$CONFIG_STATUS <conf$$subs.sed
17624 rm -f conf$$subs.sed
17625 cat >>$CONFIG_STATUS <<_ACEOF
17631 for ac_last_try in false false false false false :; do
17632 cat >conf$$subs.sed <<_ACEOF
17633 FSCK_PROG!$FSCK_PROG$ac_delim
17634 FSCK_MAN!$FSCK_MAN$ac_delim
17635 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
17636 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
17637 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
17638 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
17639 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
17640 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
17641 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
17642 PACKAGE!$PACKAGE$ac_delim
17643 VERSION!$VERSION$ac_delim
17644 SET_MAKE!$SET_MAKE$ac_delim
17645 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17646 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17647 INSTALL_DATA!$INSTALL_DATA$ac_delim
17648 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
17649 USE_NLS!$USE_NLS$ac_delim
17650 MSGFMT!$MSGFMT$ac_delim
17651 GMSGFMT!$GMSGFMT$ac_delim
17652 XGETTEXT!$XGETTEXT$ac_delim
17653 MSGMERGE!$MSGMERGE$ac_delim
17654 RANLIB!$RANLIB$ac_delim
17655 ALLOCA!$ALLOCA$ac_delim
17656 GLIBC21!$GLIBC21$ac_delim
17657 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
17658 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
17659 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
17660 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
17661 LIBICONV!$LIBICONV$ac_delim
17662 LTLIBICONV!$LTLIBICONV$ac_delim
17663 INTLBISON!$INTLBISON$ac_delim
17664 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
17665 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
17666 CATOBJEXT!$CATOBJEXT$ac_delim
17667 DATADIRNAME!$DATADIRNAME$ac_delim
17668 INSTOBJEXT!$INSTOBJEXT$ac_delim
17669 GENCAT!$GENCAT$ac_delim
17670 INTLOBJS!$INTLOBJS$ac_delim
17671 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
17672 INTLLIBS!$INTLLIBS$ac_delim
17673 LIBINTL!$LIBINTL$ac_delim
17674 LTLIBINTL!$LTLIBINTL$ac_delim
17675 POSUB!$POSUB$ac_delim
17676 BINARY_TYPE!$BINARY_TYPE$ac_delim
17678 LN_S!$LN_S$ac_delim
17682 CHMOD!$CHMOD$ac_delim
17685 PERL!$PERL$ac_delim
17686 LDCONFIG!$LDCONFIG$ac_delim
17688 STRIP!$STRIP$ac_delim
17689 BUILD_CC!$BUILD_CC$ac_delim
17690 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
17691 SIZEOF_INT!$SIZEOF_INT$ac_delim
17692 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
17693 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
17694 SOCKET_LIB!$SOCKET_LIB$ac_delim
17695 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
17696 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
17697 LINUX_CMT!$LINUX_CMT$ac_delim
17698 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
17699 UNIX_CMT!$UNIX_CMT$ac_delim
17700 root_prefix!$root_prefix$ac_delim
17701 root_bindir!$root_bindir$ac_delim
17702 root_sbindir!$root_sbindir$ac_delim
17703 root_libdir!$root_libdir$ac_delim
17704 root_sysconfdir!$root_sysconfdir$ac_delim
17705 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
17706 SS_DIR!$SS_DIR$ac_delim
17707 ET_DIR!$ET_DIR$ac_delim
17708 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
17709 INTL_FLAGS!$INTL_FLAGS$ac_delim
17710 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
17711 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
17712 LIBOBJS!$LIBOBJS$ac_delim
17713 LTLIBOBJS!$LTLIBOBJS$ac_delim
17716 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
17718 elif $ac_last_try; then
17719 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17720 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17721 { (exit 1); exit 1; }; }
17723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17727 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17728 if test -n "$ac_eof"; then
17729 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17730 ac_eof=`expr $ac_eof + 1`
17733 cat >>$CONFIG_STATUS <<_ACEOF
17734 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17738 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17739 s/^/s,@/; s/!/@,|#_!!_#|/
17742 s/'"$ac_delim"'$/,g/; t
17744 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17745 ' >>$CONFIG_STATUS <conf$$subs.sed
17746 rm -f conf$$subs.sed
17747 cat >>$CONFIG_STATUS <<_ACEOF
17754 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17755 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17756 # trailing colons and then remove the whole line if VPATH becomes empty
17757 # (actually we leave an empty line to preserve line numbers).
17758 if test "x$srcdir" = x.; then
17759 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17760 s/:*\$(srcdir):*/:/
17761 s/:*\${srcdir}:*/:/
17763 s/^\([^=]*=[ ]*\):*/\1/
17769 cat >>$CONFIG_STATUS <<\_ACEOF
17770 fi # test -n "$CONFIG_FILES"
17773 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
17776 :[FHLC]) ac_mode=$ac_tag; continue;;
17778 case $ac_mode$ac_tag in
17780 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17781 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17782 { (exit 1); exit 1; }; };;
17783 :[FH]-) ac_tag=-:-;;
17784 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17801 -) ac_f="$tmp/stdin";;
17802 *) # Look for the file first in the build tree, then in the source tree
17803 # (if the path is not absolute). The absolute path cannot be DOS-style,
17804 # because $ac_f cannot contain `:'.
17808 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17810 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17811 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17812 { (exit 1); exit 1; }; };;
17814 ac_file_inputs="$ac_file_inputs $ac_f"
17817 # Let's still pretend it is `configure' which instantiates (i.e., don't
17818 # use $as_me), people would be surprised to read:
17819 # /* config.h. Generated by config.status. */
17820 configure_input="Generated from "`IFS=:
17821 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17822 if test x"$ac_file" != x-; then
17823 configure_input="$ac_file. $configure_input"
17824 { echo "$as_me:$LINENO: creating $ac_file" >&5
17825 echo "$as_me: creating $ac_file" >&6;}
17829 *:-:* | *:-) cat >"$tmp/stdin";;
17834 ac_dir=`$as_dirname -- "$ac_file" ||
17835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17836 X"$ac_file" : 'X\(//\)[^/]' \| \
17837 X"$ac_file" : 'X\(//\)$' \| \
17838 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17844 /^X\(\/\/\)[^/].*/{
17859 -*) as_dir=./$as_dir;;
17861 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17865 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17866 *) as_qdir=$as_dir;;
17868 as_dirs="'$as_qdir' $as_dirs"
17869 as_dir=`$as_dirname -- "$as_dir" ||
17870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17871 X"$as_dir" : 'X\(//\)[^/]' \| \
17872 X"$as_dir" : 'X\(//\)$' \| \
17873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17879 /^X\(\/\/\)[^/].*/{
17892 test -d "$as_dir" && break
17894 test -z "$as_dirs" || eval "mkdir $as_dirs"
17895 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17896 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17897 { (exit 1); exit 1; }; }; }
17901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17904 # A ".." for each directory in $ac_dir_suffix.
17905 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17906 case $ac_top_builddir_sub in
17907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17911 ac_abs_top_builddir=$ac_pwd
17912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17913 # for backward compatibility:
17914 ac_top_builddir=$ac_top_build_prefix
17917 .) # We are building in place.
17919 ac_top_srcdir=$ac_top_builddir_sub
17920 ac_abs_top_srcdir=$ac_pwd ;;
17921 [\\/]* | ?:[\\/]* ) # Absolute name.
17922 ac_srcdir=$srcdir$ac_dir_suffix;
17923 ac_top_srcdir=$srcdir
17924 ac_abs_top_srcdir=$srcdir ;;
17925 *) # Relative name.
17926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17927 ac_top_srcdir=$ac_top_build_prefix$srcdir
17928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17941 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17945 cat >>$CONFIG_STATUS <<\_ACEOF
17946 # If the template does not know about datarootdir, expand it.
17947 # FIXME: This hack should be removed a few years after 2.60.
17948 ac_datarootdir_hack=; ac_datarootdir_seen=
17950 case `sed -n '/datarootdir/ {
17959 ' $ac_file_inputs` in
17960 *datarootdir*) ac_datarootdir_seen=yes;;
17961 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17962 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17963 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17965 cat >>$CONFIG_STATUS <<_ACEOF
17966 ac_datarootdir_hack='
17967 s&@datadir@&$datadir&g
17968 s&@docdir@&$docdir&g
17969 s&@infodir@&$infodir&g
17970 s&@localedir@&$localedir&g
17971 s&@mandir@&$mandir&g
17972 s&\\\${datarootdir}&$datarootdir&g' ;;
17976 # Neutralize VPATH when `$srcdir' = `.'.
17977 # Shell code in configure.ac might set extrasub.
17978 # FIXME: do we really want to maintain this feature?
17979 cat >>$CONFIG_STATUS <<_ACEOF
17983 cat >>$CONFIG_STATUS <<\_ACEOF
17985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17986 s&@configure_input@&$configure_input&;t t
17987 s&@top_builddir@&$ac_top_builddir_sub&;t t
17988 s&@srcdir@&$ac_srcdir&;t t
17989 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17990 s&@top_srcdir@&$ac_top_srcdir&;t t
17991 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17992 s&@builddir@&$ac_builddir&;t t
17993 s&@abs_builddir@&$ac_abs_builddir&;t t
17994 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17995 s&@INSTALL@&$ac_INSTALL&;t t
17996 $ac_datarootdir_hack
17997 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17999 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18000 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18001 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18002 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18003 which seems to be undefined. Please make sure it is defined." >&5
18004 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18005 which seems to be undefined. Please make sure it is defined." >&2;}
18009 -) cat "$tmp/out"; rm -f "$tmp/out";;
18010 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18015 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18016 echo "$as_me: executing $ac_file commands" >&6;}
18021 case $ac_file$ac_mode in
18023 for ac_file in $CONFIG_FILES; do
18024 # Support "outfile[:infile[:infile...]]"
18026 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18028 # PO directories have a Makefile.in generated from Makefile.in.in.
18029 case "$ac_file" in */Makefile.in)
18030 # Adjust a relative srcdir.
18031 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18032 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18033 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18034 # In autoconf-2.13 it is called $ac_given_srcdir.
18035 # In autoconf-2.50 it is called $srcdir.
18036 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18037 case "$ac_given_srcdir" in
18038 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18039 /*) top_srcdir="$ac_given_srcdir" ;;
18040 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18042 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18043 rm -f "$ac_dir/POTFILES"
18044 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18045 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18046 POMAKEFILEDEPS="POTFILES.in"
18047 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18048 # on $ac_dir but don't depend on user-specified configuration
18050 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18051 # The LINGUAS file contains the set of available languages.
18052 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18053 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18055 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18056 # Hide the ALL_LINGUAS assigment from automake.
18057 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18058 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18060 # The set of available languages was given in configure.in.
18061 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18064 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18065 # Compute UPDATEPOFILES
18066 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18067 # Compute DUMMYPOFILES
18068 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18070 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18071 case "$ac_given_srcdir" in
18073 *) srcdirpre='$(srcdir)/' ;;
18079 for lang in $ALL_LINGUAS; do
18080 POFILES="$POFILES $srcdirpre$lang.po"
18081 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18082 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18083 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18085 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18086 # environment variable.
18088 if test -n "$ALL_LINGUAS"; then
18089 for presentlang in $ALL_LINGUAS; do
18091 if test "%UNSET%" != "$LINGUAS"; then
18092 desiredlanguages="$LINGUAS"
18094 desiredlanguages="$ALL_LINGUAS"
18096 for desiredlang in $desiredlanguages; do
18097 # Use the presentlang catalog if desiredlang is
18098 # a. equal to presentlang, or
18099 # b. a variant of presentlang (because in this case,
18100 # presentlang can be used as a fallback for messages
18101 # which are not translated in the desiredlang catalog).
18102 case "$desiredlang" in
18103 "$presentlang"*) useit=yes;;
18106 if test $useit = yes; then
18107 INST_LINGUAS="$INST_LINGUAS $presentlang"
18112 if test -n "$INST_LINGUAS"; then
18113 for lang in $INST_LINGUAS; do
18114 CATALOGS="$CATALOGS $lang.gmo"
18117 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18118 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18119 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18120 if test -f "$f"; then
18122 *.orig | *.bak | *~) ;;
18123 *) cat "$f" >> "$ac_dir/Makefile" ;;
18136 { (exit 0); exit 0; }
18138 chmod +x $CONFIG_STATUS
18139 ac_clean_files=$ac_clean_files_save
18142 # configure is writing to config.log, and then calls config.status.
18143 # config.status does its own redirection, appending to config.log.
18144 # Unfortunately, on DOS this fails, as config.log is still kept open
18145 # by configure, so config.status won't be able to write to it; its
18146 # output is simply discarded. So we exec the FD to /dev/null,
18147 # effectively closing config.log, so it can be properly (re)opened and
18148 # appended to by config.status. When coming back to configure, we
18149 # need to make the FD available again.
18150 if test "$no_create" != yes; then
18152 ac_config_status_args=
18153 test "$silent" = yes &&
18154 ac_config_status_args="$ac_config_status_args --quiet"
18156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18159 # would make configure fail if this is the last instruction.
18160 $ac_cs_success || { (exit 1); exit 1; }
18163 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi