2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
698 STATIC_DEVMAPPER_LIBS
699 STATIC_BLKID_DEVMAPPER_LIBS
724 BUILD_INCLUDED_LIBINTL
731 INTL_LIBTOOL_SUFFIX_PREFIX
774 ac_subst_files='MCONFIG
781 ac_precious_vars='build_alias
793 # Initialize some variables set by options.
795 ac_init_version=false
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
805 program_transform_name=s,x,x,
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE}'
830 infodir='${datarootdir}/info'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
851 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
879 cache_file=config.cache ;;
881 -datadir | --datadir | --datadi | --datad)
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
893 -disable-* | --disable-*)
894 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
897 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
898 { (exit 1); exit 1; }; }
899 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
900 eval enable_$ac_feature=no ;;
902 -docdir | --docdir | --docdi | --doc | --do)
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 -enable-* | --enable-*)
913 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
916 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
917 { (exit 1); exit 1; }; }
918 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
919 eval enable_$ac_feature=\$ac_optarg ;;
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
934 -help | --help | --hel | --he | -h)
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 htmldir=$ac_optarg ;;
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
964 -libdir | --libdir | --libdi | --libd)
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
976 -localedir | --localedir | --localedi | --localed | --locale)
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 # Obsolete; use --without-fp.
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1055 -psdir | --psdir | --psdi | --psd | --ps)
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 sbindir=$ac_optarg ;;
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 sharedstatedir=$ac_optarg ;;
1081 -site | --site | --sit)
1083 -site=* | --site=* | --sit=*)
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089 srcdir=$ac_optarg ;;
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096 sysconfdir=$ac_optarg ;;
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
1099 ac_prev=target_alias ;;
1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101 target_alias=$ac_optarg ;;
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
1110 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid package name: $ac_package" >&2
1114 { (exit 1); exit 1; }; }
1115 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1116 eval with_$ac_package=\$ac_optarg ;;
1118 -without-* | --without-*)
1119 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 { echo "$as_me: error: invalid package name: $ac_package" >&2
1123 { (exit 1); exit 1; }; }
1124 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1125 eval with_$ac_package=no ;;
1128 # Obsolete; use --with-x.
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1145 -*) { echo "$as_me: error: unrecognized option: $ac_option
1146 Try \`$0 --help' for more information." >&2
1147 { (exit 1); exit 1; }; }
1151 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1155 { (exit 1); exit 1; }; }
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1160 # FIXME: should be removed in autoconf 3.0.
1161 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 { echo "$as_me: error: missing argument to $ac_option" >&2
1173 { (exit 1); exit 1; }; }
1176 # Be sure to have absolute directory names.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1182 eval ac_val=\$$ac_var
1184 [\\/$]* | ?:[\\/]* ) continue;;
1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1188 { (exit 1); exit 1; }; }
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1196 target=$target_alias
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used." >&2
1204 elif test "x$build_alias" != "x$host_alias"; then
1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212 test "$silent" = yes && exec 6>/dev/null
1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di=`ls -di .` &&
1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218 { echo "$as_me: error: Working directory cannot be determined" >&2
1219 { (exit 1); exit 1; }; }
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 { echo "$as_me: error: pwd does not report name of working directory" >&2
1222 { (exit 1); exit 1; }; }
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$0" ||
1230 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$0" : 'X\(//\)[^/]' \| \
1232 X"$0" : 'X\(//\)$' \| \
1233 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1257 ac_srcdir_defaulted=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1262 { (exit 1); exit 1; }; }
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1267 { (exit 1); exit 1; }; }
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1293 \`configure' configures this package to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1351 --build=BUILD configure for building on BUILD [guessed]
1352 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1356 if test -n "$ac_init_help"; then
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363 --enable-maintainer-mode enable makefile rules useful for maintainers
1364 --enable-compression enable EXPERIMENTAL compression support
1365 --enable-htree enable EXPERIMENTAL htree directory support
1366 --enable-elf-shlibs select ELF shared libraries
1367 --enable-bsd-shlibs select BSD shared libraries
1368 --enable-profile build profiling libraries
1369 --enable-checker build checker libraries
1370 --enable-jbd-debug enable journal debugging
1371 --enable-blkid-debug enable blkid debugging
1372 --enable-testio-debug enable the use of the test I/O manager for debugging
1373 --disable-debugfs disable support of debugfs program
1374 --disable-imager disable support of e2image program
1375 --disable-resizer disable support of e2resize program
1376 --enable-fsck build fsck wrapper program
1377 --enable-e2initrd-helper build e2initrd-helper program
1378 --enable-blkid-devmapper build with device-mapper support
1379 --disable-tls disable use of thread local support
1380 --disable-uuidd disable building the uuid daemon
1381 --disable-nls do not use Native Language Support
1382 --disable-rpath do not hardcode runtime library paths
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-diet-libc use diet libc
1388 --with-cc=COMPILER select compiler to use
1389 --with-linker=LINKER select linker to use
1390 --with-ccopts=CCOPTS select compiler command line options
1391 --with-ldopts=LDOPTS select linker command line options
1392 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1393 --with-gnu-ld assume the C compiler uses GNU ld default=no
1394 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1395 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1396 --with-included-gettext use the GNU gettext library included here
1397 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1398 --without-libintl-prefix don't search for libintl in includedir and libdir
1400 Some influential environment variables:
1401 CC C compiler command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1404 nonstandard directory <lib dir>
1405 LIBS libraries to pass to the linker, e.g. -l<library>
1406 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407 you have headers in a nonstandard directory <include dir>
1409 PKG_CONFIG path to pkg-config utility
1411 Use these variables to override the choices made by `configure' or to help
1412 it to find libraries and programs with nonstandard names/locations.
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" || continue
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1441 .) # We are building in place.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1465 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1475 generated by GNU Autoconf 2.61
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1488 It was created by $as_me, which was
1489 generated by GNU Autoconf 2.61. Invocation command line was
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1510 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1511 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1514 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1515 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1516 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 test -z "$as_dir" && as_dir=.
1525 echo "PATH: $as_dir"
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1549 ac_must_keep_next=false
1555 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557 | -silent | --silent | --silen | --sile | --sil)
1560 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566 if test $ac_must_keep_next = true; then
1567 ac_must_keep_next=false # Got value, back to normal.
1570 *=* | --config-cache | -C | -disable-* | --disable-* \
1571 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573 | -with-* | --with-* | -without-* | --without-* | --x)
1574 case "$ac_configure_args0 " in
1575 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 -* ) ac_must_keep_next=true ;;
1581 ac_configure_args="$ac_configure_args '$ac_arg'"
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log. We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595 # Save into config.log some information that might help in debugging.
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1605 # The following way of writing the cache mishandles newlines in values,
1607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608 eval ac_val=\$$ac_var
1612 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1613 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616 _ | IFS | as_nl) ;; #(
1617 *) $as_unset $ac_var ;;
1622 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1623 *${as_nl}ac_space=\ *)
1625 "s/'\''/'\''\\\\'\'''\''/g;
1626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1637 ## ----------------- ##
1638 ## Output variables. ##
1639 ## ----------------- ##
1642 for ac_var in $ac_subst_vars
1644 eval ac_val=\$$ac_var
1646 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 echo "$ac_var='\''$ac_val'\''"
1652 if test -n "$ac_subst_files"; then
1654 ## ------------------- ##
1655 ## File substitutions. ##
1656 ## ------------------- ##
1659 for ac_var in $ac_subst_files
1661 eval ac_val=\$$ac_var
1663 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665 echo "$ac_var='\''$ac_val'\''"
1670 if test -s confdefs.h; then
1680 test "$ac_signal" != 0 &&
1681 echo "$as_me: caught signal $ac_signal"
1682 echo "$as_me: exit $exit_status"
1684 rm -f core *.core core.conftest.* &&
1685 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688 for ac_signal in 1 2 13 15; do
1689 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1693 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1694 rm -f -r conftest* confdefs.h
1696 # Predefined preprocessor variables.
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_NAME "$PACKAGE_NAME"
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_STRING "$PACKAGE_STRING"
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1723 # Let the site file select an alternate cache file if it wants to.
1724 # Prefer explicitly selected file to automatically selected ones.
1725 if test -n "$CONFIG_SITE"; then
1726 set x "$CONFIG_SITE"
1727 elif test "x$prefix" != xNONE; then
1728 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1730 set x "$ac_default_prefix/share/config.site" \
1731 "$ac_default_prefix/etc/config.site"
1736 if test -r "$ac_site_file"; then
1737 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1738 echo "$as_me: loading site script $ac_site_file" >&6;}
1739 sed 's/^/| /' "$ac_site_file" >&5
1744 if test -r "$cache_file"; then
1745 # Some versions of bash will fail to source /dev/null (special
1746 # files actually), so we avoid doing that.
1747 if test -f "$cache_file"; then
1748 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1749 echo "$as_me: loading cache $cache_file" >&6;}
1751 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1752 *) . "./$cache_file";;
1756 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1757 echo "$as_me: creating cache $cache_file" >&6;}
1761 # Check that the precious variables saved in the cache have kept the same
1763 ac_cache_corrupted=false
1764 for ac_var in $ac_precious_vars; do
1765 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1766 eval ac_new_set=\$ac_env_${ac_var}_set
1767 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1768 eval ac_new_val=\$ac_env_${ac_var}_value
1769 case $ac_old_set,$ac_new_set in
1771 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1772 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1773 ac_cache_corrupted=: ;;
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1776 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1780 if test "x$ac_old_val" != "x$ac_new_val"; then
1781 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1782 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1783 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1784 echo "$as_me: former value: $ac_old_val" >&2;}
1785 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1786 echo "$as_me: current value: $ac_new_val" >&2;}
1787 ac_cache_corrupted=:
1790 # Pass precious variables to config.status.
1791 if test "$ac_new_set" = set; then
1793 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1794 *) ac_arg=$ac_var=$ac_new_val ;;
1796 case " $ac_configure_args " in
1797 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1798 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802 if $ac_cache_corrupted; then
1803 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1804 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1805 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1806 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1807 { (exit 1); exit 1; }; }
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 for ac_dir in config "$srcdir"/config; do
1836 if test -f "$ac_dir/install-sh"; then
1838 ac_install_sh="$ac_aux_dir/install-sh -c"
1840 elif test -f "$ac_dir/install.sh"; then
1842 ac_install_sh="$ac_aux_dir/install.sh -c"
1844 elif test -f "$ac_dir/shtool"; then
1846 ac_install_sh="$ac_aux_dir/shtool install -c"
1850 if test -z "$ac_aux_dir"; then
1851 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1852 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1853 { (exit 1); exit 1; }; }
1856 # These three variables are undocumented and unsupported,
1857 # and are intended to be withdrawn in a future Autoconf release.
1858 # They can cause serious problems if a builder's source tree is in a directory
1859 # whose full name contains unusual characters.
1860 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1861 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1862 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1868 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1869 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1870 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1872 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1873 MONTH=`echo $DATE | awk -F- '{print $2}'`
1874 YEAR=`echo $DATE | awk -F- '{print $3}'`
1876 if expr $YEAR ">" 1900 > /dev/null ; then
1877 E2FSPROGS_YEAR=$YEAR
1878 elif expr $YEAR ">" 90 >/dev/null ; then
1879 E2FSPROGS_YEAR=19$YEAR
1881 E2FSPROGS_YEAR=20$YEAR
1885 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1886 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1887 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1888 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1889 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1890 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1891 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1892 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1893 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1894 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1895 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1896 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1897 *) echo "Unknown month $MONTH??" ;;
1900 base_ver=`echo $E2FSPROGS_VERSION | \
1901 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1903 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1905 case $E2FSPROGS_VERSION in
1907 pre_vers=`echo $base_ver 0.01 - p | dc`
1908 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1911 E2FSPROGS_PKGVER="$base_ver"
1915 unset DATE MONTH YEAR base_ver pre_vers date_spec
1916 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1917 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1956 ac_save_IFS=$IFS; IFS='-'
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1993 ac_save_IFS=$IFS; IFS='-'
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2007 # Check whether --with-diet-libc was given.
2008 if test "${with_diet_libc+set}" = set; then
2009 withval=$with_diet_libc; CC="diet cc -nostdinc"
2010 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2011 echo "${ECHO_T}CC=$CC" >&6; }
2014 # Check whether --with-cc was given.
2015 if test "${with_cc+set}" = set; then
2016 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2017 echo "${ECHO_T}CC=$withval" >&6; }
2020 if test -z "$CC" ; then CC=cc; fi
2021 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2022 echo "${ECHO_T}CC defaults to $CC" >&6; }
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031 if test -n "$ac_tool_prefix"; then
2032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 if test -n "$CC"; then
2061 { echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6; }
2064 { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2070 if test -z "$ac_cv_prog_CC"; then
2072 # Extract the first word of "gcc", so it can be a program name with args.
2073 set dummy gcc; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_prog_ac_ct_CC="gcc"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6; }
2104 { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2108 if test "x$ac_ct_CC" = x; then
2111 case $cross_compiling:$ac_tool_warned in
2113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet. If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&5
2116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2117 whose name does not start with the host triplet. If you think this
2118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2119 ac_tool_warned=yes ;;
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}cc; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_CC="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 if test -n "$CC"; then
2158 { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 if test $ac_prog_rejected = yes; then
2200 # We found a bogon in the path, so make sure we never use it.
2201 set dummy $ac_cv_prog_CC
2203 if test $# != 0; then
2204 # We chose a different compiler from the bogus one.
2205 # However, it has the same basename, so the bogon will be chosen
2206 # first if we set CC to just the basename; use the full file name.
2208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2214 if test -n "$CC"; then
2215 { echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6; }
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2224 if test -z "$CC"; then
2225 if test -n "$ac_tool_prefix"; then
2226 for ac_prog in cl.exe
2228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 if test -n "$CC"; then
2257 { echo "$as_me:$LINENO: result: $CC" >&5
2258 echo "${ECHO_T}$CC" >&6; }
2260 { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2265 test -n "$CC" && break
2268 if test -z "$CC"; then
2270 for ac_prog in cl.exe
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289 ac_cv_prog_ac_ct_CC="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300 if test -n "$ac_ct_CC"; then
2301 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302 echo "${ECHO_T}$ac_ct_CC" >&6; }
2304 { echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6; }
2309 test -n "$ac_ct_CC" && break
2312 if test "x$ac_ct_CC" = x; then
2315 case $cross_compiling:$ac_tool_warned in
2317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&5
2320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323 ac_tool_warned=yes ;;
2332 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: no acceptable C compiler found in \$PATH
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2338 # Provide some information about the compiler.
2339 echo "$as_me:$LINENO: checking for C compiler version" >&5
2340 ac_compiler=`set X $ac_compile; echo $2`
2341 { (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351 { (ac_try="$ac_compiler -v >&5"
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357 (eval "$ac_compiler -v >&5") 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2361 { (ac_try="$ac_compiler -V >&5"
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_compiler -V >&5") 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2372 cat >conftest.$ac_ext <<_ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2392 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 # List of possible output files, starting from the most likely.
2397 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2398 # only as a last resort. b.out is created by i960 compilers.
2399 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2401 # The IRIX 6 linker writes into existing files which may not be
2402 # executable, retaining their permissions. Remove them first so a
2403 # subsequent execution test works.
2405 for ac_file in $ac_files
2408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2414 if { (ac_try="$ac_link_default"
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_link_default") 2>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
2424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2427 # so that the user can short-circuit this test for compilers unknown to
2429 for ac_file in $ac_files ''
2431 test -f "$ac_file" || continue
2433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2436 # We found the default executable, but exeext='' is most
2440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 # We set ac_cv_exeext here because the later test for it is not
2445 # safe: cross compilers may not add the suffix if given an `-o'
2446 # argument, so we may need to know it at that point already.
2447 # Even if this section looks crufty: it has the advantage of
2454 test "$ac_cv_exeext" = no && ac_cv_exeext=
2460 { echo "$as_me:$LINENO: result: $ac_file" >&5
2461 echo "${ECHO_T}$ac_file" >&6; }
2462 if test -z "$ac_file"; then
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2466 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: C compiler cannot create executables
2469 See \`config.log' for more details." >&2;}
2470 { (exit 77); exit 77; }; }
2473 ac_exeext=$ac_cv_exeext
2475 # Check that the compiler produces executables we can run. If not, either
2476 # the compiler is broken, or we cross compile.
2477 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2478 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2479 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2480 # If not cross compiling, check that we can run a simple program.
2481 if test "$cross_compiling" != yes; then
2482 if { ac_try='./$ac_file'
2483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2494 if test "$cross_compiling" = maybe; then
2497 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2498 If you meant to cross compile, use \`--host'.
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: cannot run C compiled programs.
2501 If you meant to cross compile, use \`--host'.
2502 See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }
2507 { echo "$as_me:$LINENO: result: yes" >&5
2508 echo "${ECHO_T}yes" >&6; }
2510 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2511 ac_clean_files=$ac_clean_files_save
2512 # Check that the compiler produces executables we can run. If not, either
2513 # the compiler is broken, or we cross compile.
2514 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2515 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2516 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2517 echo "${ECHO_T}$cross_compiling" >&6; }
2519 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2520 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2521 if { (ac_try="$ac_link"
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_link") 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; then
2531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2532 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2533 # work properly (i.e., refer to `conftest.exe'), while it won't with
2535 for ac_file in conftest.exe conftest conftest.*; do
2536 test -f "$ac_file" || continue
2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2545 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2548 See \`config.log' for more details." >&2;}
2549 { (exit 1); exit 1; }; }
2552 rm -f conftest$ac_cv_exeext
2553 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2554 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2556 rm -f conftest.$ac_ext
2557 EXEEXT=$ac_cv_exeext
2559 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2560 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2561 if test "${ac_cv_objext+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 cat >conftest.$ac_ext <<_ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2579 rm -f conftest.o conftest.obj
2580 if { (ac_try="$ac_compile"
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_compile") 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 for ac_file in conftest.o conftest.obj conftest.*; do
2591 test -f "$ac_file" || continue;
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2602 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2605 See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2612 echo "${ECHO_T}$ac_cv_objext" >&6; }
2613 OBJEXT=$ac_cv_objext
2615 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2616 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2617 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 cat >conftest.$ac_ext <<_ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2638 rm -f conftest.$ac_objext
2639 if { (ac_try="$ac_compile"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compile") 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest.$ac_objext; then
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2667 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2669 GCC=`test $ac_compiler_gnu = yes && echo yes`
2670 ac_test_CFLAGS=${CFLAGS+set}
2671 ac_save_CFLAGS=$CFLAGS
2672 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2673 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_cc_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 ac_save_c_werror_flag=$ac_c_werror_flag
2678 ac_c_werror_flag=yes
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2719 cat >conftest.$ac_ext <<_ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2734 rm -f conftest.$ac_objext
2735 if { (ac_try="$ac_compile"
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2743 grep -v '^ *+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } && {
2748 test -z "$ac_c_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest.$ac_objext; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2758 cat >conftest.$ac_ext <<_ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 ac_c_werror_flag=$ac_save_c_werror_flag
2807 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2809 if test "$ac_test_CFLAGS" = set; then
2810 CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812 if test "$GCC" = yes; then
2818 if test "$GCC" = yes; then
2824 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2825 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_cc_c89+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 ac_cv_prog_cc_c89=no
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2855 s = g (p, va_arg (v,int));
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
2863 as 'x'. The following induces an error, until -std is added to get
2864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
2866 that's true only with -std. */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870 inside strings and character constants. */
2872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874 int test (int i, double x);
2875 struct s1 {int (*f) (int a);};
2876 struct s2 {int (*f) (double a);};
2877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 CC="$ac_save_CC $ac_arg"
2892 rm -f conftest.$ac_objext
2893 if { (ac_try="$ac_compile"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.$ac_objext; then
2909 ac_cv_prog_cc_c89=$ac_arg
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f core conftest.err conftest.$ac_objext
2918 test "x$ac_cv_prog_cc_c89" != "xno" && break
2920 rm -f conftest.$ac_ext
2925 case "x$ac_cv_prog_cc_c89" in
2927 { echo "$as_me:$LINENO: result: none needed" >&5
2928 echo "${ECHO_T}none needed" >&6; } ;;
2930 { echo "$as_me:$LINENO: result: unsupported" >&5
2931 echo "${ECHO_T}unsupported" >&6; } ;;
2933 CC="$CC $ac_cv_prog_cc_c89"
2934 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2935 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2951 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2952 # On Suns, sometimes $CPP names a directory.
2953 if test -n "$CPP" && test -d "$CPP"; then
2956 if test -z "$CPP"; then
2957 if test "${ac_cv_prog_CPP+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 # Double quotes because CPP needs to be expanded
2961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2964 for ac_c_preproc_warn_flag in '' yes
2966 # Use a header file that comes with gcc, so configuring glibc
2967 # with a fresh cross-compiler works.
2968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2969 # <limits.h> exists even on freestanding compilers.
2970 # On the NeXT, cc -E runs the code through the compiler's parser,
2971 # not just through cpp. "Syntax error" is here to catch this case.
2972 cat >conftest.$ac_ext <<_ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2979 # include <limits.h>
2981 # include <assert.h>
2985 if { (ac_try="$ac_cpp conftest.$ac_ext"
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2993 grep -v '^ *+' conftest.er1 >conftest.err
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } >/dev/null && {
2998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 # Broken: fails on valid input.
3010 rm -f conftest.err conftest.$ac_ext
3012 # OK, works on sane cases. Now check whether nonexistent headers
3013 # can be detected and how.
3014 cat >conftest.$ac_ext <<_ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #include <ac_nonexistent.h>
3022 if { (ac_try="$ac_cpp conftest.$ac_ext"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3038 # Broken: success on invalid input.
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 # Passes both tests.
3049 rm -f conftest.err conftest.$ac_ext
3052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053 rm -f conftest.err conftest.$ac_ext
3054 if $ac_preproc_ok; then
3066 { echo "$as_me:$LINENO: result: $CPP" >&5
3067 echo "${ECHO_T}$CPP" >&6; }
3069 for ac_c_preproc_warn_flag in '' yes
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3084 # include <limits.h>
3086 # include <assert.h>
3090 if { (ac_try="$ac_cpp conftest.$ac_ext"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null && {
3103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 # Broken: fails on valid input.
3115 rm -f conftest.err conftest.$ac_ext
3117 # OK, works on sane cases. Now check whether nonexistent headers
3118 # can be detected and how.
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3125 #include <ac_nonexistent.h>
3127 if { (ac_try="$ac_cpp conftest.$ac_ext"
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null && {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3143 # Broken: success on invalid input.
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3149 # Passes both tests.
3154 rm -f conftest.err conftest.$ac_ext
3157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158 rm -f conftest.err conftest.$ac_ext
3159 if $ac_preproc_ok; then
3162 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176 # Check whether --with-linker was given.
3177 if test "${with_linker+set}" = set; then
3178 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3179 echo "${ECHO_T}LD=$withval" >&6; }
3182 if test -z "$LD" ; then LD=$CC; fi
3183 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3184 echo "${ECHO_T}LD defaults to $LD" >&6; }
3189 # Check whether --with-ccopts was given.
3190 if test "${with_ccopts+set}" = set; then
3191 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3192 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3197 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3198 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3199 if test "${ac_cv_path_GREP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 # Extract the first word of "grep ggrep" to use in msg output
3203 if test -z "$GREP"; then
3204 set dummy grep ggrep; ac_prog_name=$2
3205 if test "${ac_cv_path_GREP+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 ac_path_GREP_found=false
3209 # Loop through the user's path and test for each of PROGNAME-LIST
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3214 test -z "$as_dir" && as_dir=.
3215 for ac_prog in grep ggrep; do
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3218 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3219 # Check for GNU ac_path_GREP and select it if it is found.
3220 # Check for GNU $ac_path_GREP
3221 case `"$ac_path_GREP" --version 2>&1` in
3223 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3226 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3229 cat "conftest.in" "conftest.in" >"conftest.tmp"
3230 mv "conftest.tmp" "conftest.in"
3231 cp "conftest.in" "conftest.nl"
3232 echo 'GREP' >> "conftest.nl"
3233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3235 ac_count=`expr $ac_count + 1`
3236 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3237 # Best one so far, save it but keep looking for a better one
3238 ac_cv_path_GREP="$ac_path_GREP"
3239 ac_path_GREP_max=$ac_count
3241 # 10*(2^10) chars as input seems more than enough
3242 test $ac_count -gt 10 && break
3244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3248 $ac_path_GREP_found && break 3
3258 GREP="$ac_cv_path_GREP"
3259 if test -z "$GREP"; then
3260 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3261 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3262 { (exit 1); exit 1; }; }
3266 ac_cv_path_GREP=$GREP
3271 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3272 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3273 GREP="$ac_cv_path_GREP"
3276 { echo "$as_me:$LINENO: checking for egrep" >&5
3277 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3278 if test "${ac_cv_path_EGREP+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3282 then ac_cv_path_EGREP="$GREP -E"
3284 # Extract the first word of "egrep" to use in msg output
3285 if test -z "$EGREP"; then
3286 set dummy egrep; ac_prog_name=$2
3287 if test "${ac_cv_path_EGREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 ac_path_EGREP_found=false
3291 # Loop through the user's path and test for each of PROGNAME-LIST
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3296 test -z "$as_dir" && as_dir=.
3297 for ac_prog in egrep; do
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3300 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3301 # Check for GNU ac_path_EGREP and select it if it is found.
3302 # Check for GNU $ac_path_EGREP
3303 case `"$ac_path_EGREP" --version 2>&1` in
3305 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3308 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3311 cat "conftest.in" "conftest.in" >"conftest.tmp"
3312 mv "conftest.tmp" "conftest.in"
3313 cp "conftest.in" "conftest.nl"
3314 echo 'EGREP' >> "conftest.nl"
3315 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3317 ac_count=`expr $ac_count + 1`
3318 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3319 # Best one so far, save it but keep looking for a better one
3320 ac_cv_path_EGREP="$ac_path_EGREP"
3321 ac_path_EGREP_max=$ac_count
3323 # 10*(2^10) chars as input seems more than enough
3324 test $ac_count -gt 10 && break
3326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330 $ac_path_EGREP_found && break 3
3340 EGREP="$ac_cv_path_EGREP"
3341 if test -z "$EGREP"; then
3342 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3343 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3344 { (exit 1); exit 1; }; }
3348 ac_cv_path_EGREP=$EGREP
3354 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3355 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3356 EGREP="$ac_cv_path_EGREP"
3359 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3360 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3361 if test "${ac_cv_header_stdc+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3383 rm -f conftest.$ac_objext
3384 if { (ac_try="$ac_compile"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compile") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
3400 ac_cv_header_stdc=yes
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 ac_cv_header_stdc=no
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 if test $ac_cv_header_stdc = yes; then
3411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 $EGREP "memchr" >/dev/null 2>&1; then
3425 ac_cv_header_stdc=no
3431 if test $ac_cv_header_stdc = yes; then
3432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443 $EGREP "free" >/dev/null 2>&1; then
3446 ac_cv_header_stdc=no
3452 if test $ac_cv_header_stdc = yes; then
3453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3454 if test "$cross_compiling" = yes; then
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3465 #if ((' ' & 0x0FF) == 0x020)
3466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3469 # define ISLOWER(c) \
3470 (('a' <= (c) && (c) <= 'i') \
3471 || ('j' <= (c) && (c) <= 'r') \
3472 || ('s' <= (c) && (c) <= 'z'))
3473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3481 for (i = 0; i < 256; i++)
3482 if (XOR (islower (i), ISLOWER (i))
3483 || toupper (i) != TOUPPER (i))
3488 rm -f conftest$ac_exeext
3489 if { (ac_try="$ac_link"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_link") 2>&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3499 { (case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_try") 2>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3510 echo "$as_me: program exited with status $ac_status" >&5
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3515 ac_cv_header_stdc=no
3517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3523 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3524 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3525 if test $ac_cv_header_stdc = yes; then
3527 cat >>confdefs.h <<\_ACEOF
3528 #define STDC_HEADERS 1
3533 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3543 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3544 inttypes.h stdint.h unistd.h
3546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 $ac_includes_default
3560 #include <$ac_header>
3562 rm -f conftest.$ac_objext
3563 if { (ac_try="$ac_compile"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compile") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } && {
3576 test -z "$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3578 } && test -s conftest.$ac_objext; then
3579 eval "$as_ac_Header=yes"
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 eval "$as_ac_Header=no"
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_res=`eval echo '${'$as_ac_Header'}'`
3590 { echo "$as_me:$LINENO: result: $ac_res" >&5
3591 echo "${ECHO_T}$ac_res" >&6; }
3592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3593 cat >>confdefs.h <<_ACEOF
3594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3602 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3603 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3604 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3605 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3609 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3611 # Is the header compilable?
3612 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3613 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 $ac_includes_default
3621 #include <linux/fs.h>
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 ac_header_compiler=yes
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 ac_header_compiler=no
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3650 echo "${ECHO_T}$ac_header_compiler" >&6; }
3652 # Is the header present?
3653 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3654 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 #include <linux/fs.h>
3663 if { (ac_try="$ac_cpp conftest.$ac_ext"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3671 grep -v '^ *+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } >/dev/null && {
3676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3679 ac_header_preproc=yes
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 ac_header_preproc=no
3687 rm -f conftest.err conftest.$ac_ext
3688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3689 echo "${ECHO_T}$ac_header_preproc" >&6; }
3691 # So? What about this header?
3692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3694 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3695 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3697 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3698 ac_header_preproc=yes
3701 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3702 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3704 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3706 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3708 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3710 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3712 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3716 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3717 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3718 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 ac_cv_header_linux_fs_h=$ac_header_preproc
3723 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3724 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3727 if test $ac_cv_header_linux_fs_h = yes; then
3734 if test "$linux_headers" != yes; then
3735 LINUX_INCLUDE='-I$(top_builddir)/include'
3738 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3739 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3740 if test "$GCC" = yes
3743 alpha) addcflags="-mieee" ;;
3746 if test "x$addcflags" != x
3748 { echo "$as_me:$LINENO: result: $addcflags" >&5
3749 echo "${ECHO_T}$addcflags" >&6; }
3750 CFLAGS="$addcflags $CFLAGS"
3752 { echo "$as_me:$LINENO: result: (none)" >&5
3753 echo "${ECHO_T}(none)" >&6; }
3759 # Check whether --with-ldopts was given.
3760 if test "${with_ldopts+set}" = set; then
3761 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3762 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3769 # Check whether --with-root-prefix was given.
3770 if test "${with_root_prefix+set}" = set; then
3771 withval=$with_root_prefix; root_prefix=$withval
3775 # Check whether --enable-maintainer-mode was given.
3776 if test "${enable_maintainer_mode+set}" = set; then
3777 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3780 echo "Disabling maintainer mode"
3783 echo "Enabling maintainer mode"
3788 echo "Disabling maintainer mode by default"
3793 # Check whether --enable-compression was given.
3794 if test "${enable_compression+set}" = set; then
3795 enableval=$enable_compression; if test "$enableval" = "no"
3797 echo "Disabling compression support"
3799 cat >>confdefs.h <<\_ACEOF
3800 #define ENABLE_COMPRESSION 1
3803 echo "Enabling compression support"
3804 echo "WARNING: Compression support is experimental"
3808 echo "Disabling compression support by default"
3812 # Check whether --enable-htree was given.
3813 if test "${enable_htree+set}" = set; then
3814 enableval=$enable_htree; if test "$enableval" = "no"
3817 echo "Disabling htree directory support"
3820 cat >>confdefs.h <<\_ACEOF
3821 #define ENABLE_HTREE 1
3824 echo "Enabling htree directory support"
3829 cat >>confdefs.h <<\_ACEOF
3830 #define ENABLE_HTREE 1
3833 echo "Enabling htree directory support by default"
3838 E2_PKG_CONFIG_STATIC=--static
3839 # Check whether --enable-elf-shlibs was given.
3840 if test "${enable_elf_shlibs+set}" = set; then
3841 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3844 MAKEFILE_ELF=/dev/null
3845 echo "Disabling ELF shared libraries"
3847 E2_PKG_CONFIG_STATIC=
3849 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3852 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3857 echo "Enabling ELF shared libraries"
3861 MAKEFILE_ELF=/dev/null
3863 echo "Disabling ELF shared libraries by default"
3869 # Check whether --enable-bsd-shlibs was given.
3870 if test "${enable_bsd_shlibs+set}" = set; then
3871 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3874 MAKEFILE_BSDLIB=/dev/null
3875 echo "Disabling BSD shared libraries"
3877 E2_PKG_CONFIG_STATIC=
3879 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3883 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3887 echo "Enabling BSD shared libraries"
3891 MAKEFILE_BSDLIB=/dev/null
3893 echo "Disabling BSD shared libraries by default"
3899 # Check whether --enable-profile was given.
3900 if test "${enable_profile+set}" = set; then
3901 enableval=$enable_profile; if test "$enableval" = "no"
3904 MAKEFILE_PROFILE=/dev/null
3905 echo "Disabling profiling libraries"
3908 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3909 PROFILED_LIB_EXT=_p.a
3910 echo "Building profiling libraries"
3915 MAKEFILE_PROFILE=/dev/null
3916 echo "Disabling profiling libraries by default"
3922 # Check whether --enable-checker was given.
3923 if test "${enable_checker+set}" = set; then
3924 enableval=$enable_checker; if test "$enableval" = "no"
3927 MAKEFILE_CHECKER=/dev/null
3928 echo "Disabling checker libraries"
3931 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3932 echo "Building checker libraries"
3937 MAKEFILE_CHECKER=/dev/null
3938 echo "Disabling checker libraries by default"
3947 # Check whether --enable-jbd-debug was given.
3948 if test "${enable_jbd_debug+set}" = set; then
3949 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3951 echo "Disabling journal debugging"
3953 cat >>confdefs.h <<\_ACEOF
3954 #define CONFIG_JBD_DEBUG 1
3957 echo "Enabling journal debugging"
3961 echo "Disabling journal debugging by default"
3965 # Check whether --enable-blkid-debug was given.
3966 if test "${enable_blkid_debug+set}" = set; then
3967 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3969 echo "Disabling blkid debugging"
3971 cat >>confdefs.h <<\_ACEOF
3972 #define CONFIG_BLKID_DEBUG 1
3975 echo "Enabling blkid debugging"
3979 echo "Disabling blkid debugging by default"
3983 # Check whether --enable-testio-debug was given.
3984 if test "${enable_testio_debug+set}" = set; then
3985 enableval=$enable_testio_debug; if test "$enableval" = "no"
3987 echo "Disabling testio debugging"
3989 cat >>confdefs.h <<\_ACEOF
3990 #define CONFIG_TESTIO_DEBUG 1
3993 echo "Enabling testio debugging"
3997 echo "Disabling testio debugging by default"
4001 # Check whether --enable-debugfs was given.
4002 if test "${enable_debugfs+set}" = set; then
4003 enableval=$enable_debugfs; if test "$enableval" = "no"
4005 echo "Disabling debugfs support"
4009 echo "Enabling debugfs support"
4013 echo "Enabling debugfs support by default"
4019 # Check whether --enable-imager was given.
4020 if test "${enable_imager+set}" = set; then
4021 enableval=$enable_imager; if test "$enableval" = "no"
4023 echo "Disabling e2image support"
4027 echo "Enabling e2image support"
4031 echo "Enabling e2image support by default"
4037 # Check whether --enable-resizer was given.
4038 if test "${enable_resizer+set}" = set; then
4039 enableval=$enable_resizer; if test "$enableval" = "no"
4041 echo "Disabling e2resize support"
4045 echo "Enabling e2resize support"
4049 echo "Enabling e2resize support by default"
4055 # Check whether --enable-fsck was given.
4056 if test "${enable_fsck+set}" = set; then
4057 enableval=$enable_fsck; if test "$enableval" = "no"
4059 FSCK_PROG='' FSCK_MAN=''
4060 echo "Not building fsck wrapper"
4062 FSCK_PROG=fsck FSCK_MAN=fsck.8
4063 echo "Building fsck wrapper"
4069 FSCK_PROG='' FSCK_MAN=''
4070 echo "Not building fsck wrapper by default"
4073 FSCK_PROG=fsck FSCK_MAN=fsck.8
4074 echo "Building fsck wrapper by default"
4081 # Check whether --enable-e2initrd-helper was given.
4082 if test "${enable_e2initrd_helper+set}" = set; then
4083 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4085 E2INITRD_PROG='' E2INITRD_MAN=''
4086 echo "Not building e2initrd helper"
4088 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4089 echo "Building e2initrd helper"
4093 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4094 echo "Building e2initrd helper by default"
4100 STATIC_BLKID_DEVMAPPER_LIBS=''
4101 # Check whether --enable-blkid-devmapper was given.
4102 if test "${enable_blkid_devmapper+set}" = set; then
4103 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4105 echo "Disabling device-mapper support"
4108 STATIC_DEVMAPPER_LIBS=''
4110 cat >>confdefs.h <<\_ACEOF
4111 #define HAVE_DEVMAPPER 1
4114 echo "Enabling device-mapper support"
4118 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4151 if test -n "$PKG_CONFIG"; then
4152 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4153 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4155 { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4161 if test -z "$ac_cv_path_PKG_CONFIG"; then
4162 ac_pt_PKG_CONFIG=$PKG_CONFIG
4163 # Extract the first word of "pkg-config", so it can be a program name with args.
4164 set dummy pkg-config; ac_word=$2
4165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 case $ac_pt_PKG_CONFIG in
4172 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4194 if test -n "$ac_pt_PKG_CONFIG"; then
4195 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4196 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4202 if test "x$ac_pt_PKG_CONFIG" = x; then
4205 case $cross_compiling:$ac_tool_warned in
4207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4208 whose name does not start with the host triplet. If you think this
4209 configuration is useful to you, please write to autoconf@gnu.org." >&5
4210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4211 whose name does not start with the host triplet. If you think this
4212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4213 ac_tool_warned=yes ;;
4215 PKG_CONFIG=$ac_pt_PKG_CONFIG
4218 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4222 if test -n "$PKG_CONFIG"; then
4223 _pkg_min_version=0.9.0
4224 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4225 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4226 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4227 { echo "$as_me:$LINENO: result: yes" >&5
4228 echo "${ECHO_T}yes" >&6; }
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4237 if test -z "$PKG_CONFIG"; then
4238 echo "pkg-config not installed; please install it."
4242 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4243 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4244 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 ac_check_lib_save_LIBS=$LIBS
4248 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4256 /* Override any GCC internal prototype to avoid an error.
4257 Use char because int might match the return type of a GCC
4258 builtin and then its argument prototype would still apply. */
4262 char dm_tree_create ();
4266 return dm_tree_create ();
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (ac_try="$ac_link"
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_link") 2>conftest.er1
4280 grep -v '^ *+' conftest.er1 >conftest.err
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && {
4285 test -z "$ac_c_werror_flag" ||
4286 test ! -s conftest.err
4287 } && test -s conftest$ac_exeext &&
4288 $as_test_x conftest$ac_exeext; then
4289 ac_cv_lib_devmapper_dm_tree_create=yes
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4294 ac_cv_lib_devmapper_dm_tree_create=no
4297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4298 conftest$ac_exeext conftest.$ac_ext
4299 LIBS=$ac_check_lib_save_LIBS
4301 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4302 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4303 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4304 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4305 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4306 DEVMAPPER_REQ="devmapper";
4307 DEVMAPPER_PC_LIBS="-ldevmapper"
4309 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4310 echo "$as_me: error: device-mapper library not found" >&2;}
4311 { (exit 1); exit 1; }; }
4314 # work around stupid devmapper.pc bug in Debian
4315 case "$STATIC_DEVMAPPER_LIBS" in
4319 echo "Working around Debian bug #390243..."
4320 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4323 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4324 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4325 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4330 echo "Disabling device-mapper support by default"
4339 # Check whether --enable-tls was given.
4340 if test "${enable_tls+set}" = set; then
4341 enableval=$enable_tls; if test "$enableval" = "no"
4344 echo "Disabling thread local support"
4347 echo "Enabling thread local support"
4352 echo "Try using thread local support by default"
4356 if test "$try_tls" = "yes"
4359 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4360 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4361 if test "${ac_cv_tls+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 ax_tls_keywords="__thread __declspec(thread) none"
4366 for ax_tls_keyword in $ax_tls_keywords; do
4367 case $ax_tls_keyword in
4368 none) ac_cv_tls=none ; break ;;
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4379 static $ax_tls_keyword int bar;
4390 rm -f conftest.$ac_objext
4391 if { (ac_try="$ac_compile"
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_compile") 2>conftest.er1
4399 grep -v '^ *+' conftest.er1 >conftest.err
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } && {
4404 test -z "$ac_c_werror_flag" ||
4405 test ! -s conftest.err
4406 } && test -s conftest.$ac_objext; then
4407 ac_cv_tls=$ax_tls_keyword ; break
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 if test "$ac_cv_tls" != "none"; then
4425 cat >>confdefs.h <<_ACEOF
4426 #define TLS $ac_cv_tls
4430 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4431 echo "${ECHO_T}$ac_cv_tls" >&6; }
4434 # Check whether --enable-uuidd was given.
4435 if test "${enable_uuidd+set}" = set; then
4436 enableval=$enable_uuidd; if test "$enableval" = "no"
4438 echo "Not building uuidd"
4441 cat >>confdefs.h <<\_ACEOF
4446 echo "Building uuidd"
4450 cat >>confdefs.h <<\_ACEOF
4455 echo "Building uuidd by default"
4460 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4462 GETTEXT_PACKAGE=e2fsprogs
4464 VERSION="$E2FSPROGS_VERSION"
4466 cat >>confdefs.h <<_ACEOF
4467 #define PACKAGE "$PACKAGE"
4470 cat >>confdefs.h <<_ACEOF
4471 #define VERSION "$VERSION"
4478 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4479 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4480 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4481 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 cat >conftest.make <<\_ACEOF
4487 @echo '@@@%%%=$(MAKE)=@@@%%%'
4489 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4490 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4492 eval ac_cv_prog_make_${ac_make}_set=yes;;
4494 eval ac_cv_prog_make_${ac_make}_set=no;;
4498 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4499 { echo "$as_me:$LINENO: result: yes" >&5
4500 echo "${ECHO_T}yes" >&6; }
4503 { echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6; }
4505 SET_MAKE="MAKE=${MAKE-make}"
4508 # Find a good install program. We prefer a C program (faster),
4509 # so one script is as good as another. But avoid the broken or
4510 # incompatible versions:
4511 # SysV /etc/install, /usr/sbin/install
4512 # SunOS /usr/etc/install
4513 # IRIX /sbin/install
4515 # AmigaOS /C/install, which installs bootblocks on floppy discs
4516 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4517 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4518 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4519 # OS/2's system install, which has a completely different semantic
4520 # ./install, which can be erroneously created by make from ./install.sh.
4521 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4522 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4523 if test -z "$INSTALL"; then
4524 if test "${ac_cv_path_install+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 test -z "$as_dir" && as_dir=.
4532 # Account for people who put trailing slashes in PATH elements.
4534 ./ | .// | /cC/* | \
4535 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4536 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4539 # OSF1 and SCO ODT 3.0 have their own names for install.
4540 # Don't use installbsd from OSF since it installs stuff as root
4542 for ac_prog in ginstall scoinst install; do
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4545 if test $ac_prog = install &&
4546 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4547 # AIX install. It has an incompatible calling convention.
4549 elif test $ac_prog = install &&
4550 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4551 # program-specific install script used by HP pwplus--don't use.
4554 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4567 if test "${ac_cv_path_install+set}" = set; then
4568 INSTALL=$ac_cv_path_install
4570 # As a last resort, use the slow shell script. Don't cache a
4571 # value for INSTALL within a source directory, because that will
4572 # break other packages using the cache if that directory is
4573 # removed, or if the value is a relative name.
4574 INSTALL=$ac_install_sh
4577 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4578 echo "${ECHO_T}$INSTALL" >&6; }
4580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4581 # It thinks the first close brace ends the variable substitution.
4582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4590 if test -n "$ac_aux_dir"; then
4591 case "$ac_aux_dir" in
4592 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4593 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4596 if test -z "$MKINSTALLDIRS"; then
4597 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4602 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4603 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4604 # Check whether --enable-nls was given.
4605 if test "${enable_nls+set}" = set; then
4606 enableval=$enable_nls; USE_NLS=$enableval
4611 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4612 echo "${ECHO_T}$USE_NLS" >&6; }
4619 # Prepare PATH_SEPARATOR.
4620 # The user is always right.
4621 if test "${PATH_SEPARATOR+set}" != set; then
4622 echo "#! /bin/sh" >conf$$.sh
4623 echo "exit 0" >>conf$$.sh
4625 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4633 # Find out how to test for executable files. Don't use a zero-byte file,
4634 # as systems may use methods other than mode bits to determine executability.
4635 cat >conf$$.file <<_ASEOF
4639 chmod +x conf$$.file
4640 if test -x conf$$.file >/dev/null 2>&1; then
4641 ac_executable_p="test -x"
4643 ac_executable_p="test -f"
4647 # Extract the first word of "msgfmt", so it can be a program name with args.
4648 set dummy msgfmt; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_path_MSGFMT+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4659 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4660 for ac_dir in $PATH; do
4662 test -z "$ac_dir" && ac_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4665 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4666 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4667 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4674 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4678 MSGFMT="$ac_cv_path_MSGFMT"
4679 if test "$MSGFMT" != ":"; then
4680 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4681 echo "${ECHO_T}$MSGFMT" >&6; }
4683 { echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6; }
4687 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4688 set dummy gmsgfmt; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4718 GMSGFMT=$ac_cv_path_GMSGFMT
4719 if test -n "$GMSGFMT"; then
4720 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4721 echo "${ECHO_T}$GMSGFMT" >&6; }
4723 { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4730 # Prepare PATH_SEPARATOR.
4731 # The user is always right.
4732 if test "${PATH_SEPARATOR+set}" != set; then
4733 echo "#! /bin/sh" >conf$$.sh
4734 echo "exit 0" >>conf$$.sh
4736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4744 # Find out how to test for executable files. Don't use a zero-byte file,
4745 # as systems may use methods other than mode bits to determine executability.
4746 cat >conf$$.file <<_ASEOF
4750 chmod +x conf$$.file
4751 if test -x conf$$.file >/dev/null 2>&1; then
4752 ac_executable_p="test -x"
4754 ac_executable_p="test -f"
4758 # Extract the first word of "xgettext", so it can be a program name with args.
4759 set dummy xgettext; ac_word=$2
4760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4770 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4771 for ac_dir in $PATH; do
4773 test -z "$ac_dir" && ac_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4776 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4777 (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
4778 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4785 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4789 XGETTEXT="$ac_cv_path_XGETTEXT"
4790 if test "$XGETTEXT" != ":"; then
4791 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4792 echo "${ECHO_T}$XGETTEXT" >&6; }
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4801 # Prepare PATH_SEPARATOR.
4802 # The user is always right.
4803 if test "${PATH_SEPARATOR+set}" != set; then
4804 echo "#! /bin/sh" >conf$$.sh
4805 echo "exit 0" >>conf$$.sh
4807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4815 # Find out how to test for executable files. Don't use a zero-byte file,
4816 # as systems may use methods other than mode bits to determine executability.
4817 cat >conf$$.file <<_ASEOF
4821 chmod +x conf$$.file
4822 if test -x conf$$.file >/dev/null 2>&1; then
4823 ac_executable_p="test -x"
4825 ac_executable_p="test -f"
4829 # Extract the first word of "msgmerge", so it can be a program name with args.
4830 set dummy msgmerge; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4841 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4842 for ac_dir in $PATH; do
4844 test -z "$ac_dir" && ac_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4847 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4848 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4855 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4859 MSGMERGE="$ac_cv_path_MSGMERGE"
4860 if test "$MSGMERGE" != ":"; then
4861 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4862 echo "${ECHO_T}$MSGMERGE" >&6; }
4864 { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4869 if test "$GMSGFMT" != ":"; then
4870 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4871 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4874 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4875 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4876 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4881 if test "$XGETTEXT" != ":"; then
4882 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4883 (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
4886 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4887 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4893 ac_config_commands="$ac_config_commands default-1"
4896 if test -n "$ac_tool_prefix"; then
4897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4901 if test "${ac_cv_prog_RANLIB+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 if test -n "$RANLIB"; then
4905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 RANLIB=$ac_cv_prog_RANLIB
4925 if test -n "$RANLIB"; then
4926 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4927 echo "${ECHO_T}$RANLIB" >&6; }
4929 { echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6; }
4935 if test -z "$ac_cv_prog_RANLIB"; then
4936 ac_ct_RANLIB=$RANLIB
4937 # Extract the first word of "ranlib", so it can be a program name with args.
4938 set dummy ranlib; ac_word=$2
4939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 if test -n "$ac_ct_RANLIB"; then
4945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_prog_ac_ct_RANLIB="ranlib"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4965 if test -n "$ac_ct_RANLIB"; then
4966 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4967 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4969 { echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6; }
4973 if test "x$ac_ct_RANLIB" = x; then
4976 case $cross_compiling:$ac_tool_warned in
4978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4979 whose name does not start with the host triplet. If you think this
4980 configuration is useful to you, please write to autoconf@gnu.org." >&5
4981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4982 whose name does not start with the host triplet. If you think this
4983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4984 ac_tool_warned=yes ;;
4986 RANLIB=$ac_ct_RANLIB
4989 RANLIB="$ac_cv_prog_RANLIB"
4993 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4994 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4995 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 ac_check_lib_save_LIBS=$LIBS
4999 LIBS="-lcposix $LIBS"
5000 cat >conftest.$ac_ext <<_ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5007 /* Override any GCC internal prototype to avoid an error.
5008 Use char because int might match the return type of a GCC
5009 builtin and then its argument prototype would still apply. */
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_link") 2>conftest.er1
5031 grep -v '^ *+' conftest.er1 >conftest.err
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } && {
5036 test -z "$ac_c_werror_flag" ||
5037 test ! -s conftest.err
5038 } && test -s conftest$ac_exeext &&
5039 $as_test_x conftest$ac_exeext; then
5040 ac_cv_lib_cposix_strerror=yes
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 ac_cv_lib_cposix_strerror=no
5048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5049 conftest$ac_exeext conftest.$ac_ext
5050 LIBS=$ac_check_lib_save_LIBS
5052 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5053 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5054 if test $ac_cv_lib_cposix_strerror = yes; then
5055 LIBS="$LIBS -lcposix"
5060 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5061 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5062 if test "${ac_cv_c_const+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 cat >conftest.$ac_ext <<_ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5075 /* FIXME: Include the comments suggested by Paul. */
5077 /* Ultrix mips cc rejects this. */
5078 typedef int charset[2];
5080 /* SunOS 4.1.1 cc rejects this. */
5081 char const *const *pcpcc;
5083 /* NEC SVR4.0.2 mips cc rejects this. */
5084 struct point {int x, y;};
5085 static struct point const zero = {0,0};
5086 /* AIX XL C 1.02.0.0 rejects this.
5087 It does not let you subtract one const X* pointer from another in
5088 an arm of an if-expression whose if-part is not a constant
5090 const char *g = "string";
5091 pcpcc = &g + (g ? g-g : 0);
5092 /* HPUX 7.0 cc rejects these. */
5094 ppc = (char**) pcpcc;
5095 pcpcc = (char const *const *) ppc;
5096 { /* SCO 3.2v4 cc rejects this. */
5098 char const *s = 0 ? (char *) 0 : (char const *) 0;
5103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5105 const int *foo = &x[0];
5108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5109 typedef const int *iptr;
5113 { /* AIX XL C 1.02.0.0 rejects this saying
5114 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5115 struct s { int j; const int *ap[3]; };
5116 struct s *b; b->j = 5;
5118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5122 return !cs[0] && !zero.x;
5129 rm -f conftest.$ac_objext
5130 if { (ac_try="$ac_compile"
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_compile") 2>conftest.er1
5138 grep -v '^ *+' conftest.er1 >conftest.err
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } && {
5143 test -z "$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 } && test -s conftest.$ac_objext; then
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5157 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5158 if test $ac_cv_c_const = no; then
5160 cat >>confdefs.h <<\_ACEOF
5167 { echo "$as_me:$LINENO: checking for signed" >&5
5168 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5169 if test "${bh_cv_c_signed+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 cat >conftest.$ac_ext <<_ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5187 rm -f conftest.$ac_objext
5188 if { (ac_try="$ac_compile"
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compile") 2>conftest.er1
5196 grep -v '^ *+' conftest.er1 >conftest.err
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest.$ac_objext; then
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5215 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5216 if test $bh_cv_c_signed = no; then
5218 cat >>confdefs.h <<\_ACEOF
5224 { echo "$as_me:$LINENO: checking for inline" >&5
5225 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5226 if test "${ac_cv_c_inline+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 for ac_kw in inline __inline__ __inline; do
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5239 static $ac_kw foo_t static_foo () {return 0; }
5240 $ac_kw foo_t foo () {return 0; }
5244 rm -f conftest.$ac_objext
5245 if { (ac_try="$ac_compile"
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5251 (eval "$ac_compile") 2>conftest.er1
5253 grep -v '^ *+' conftest.er1 >conftest.err
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } && {
5258 test -z "$ac_c_werror_flag" ||
5259 test ! -s conftest.err
5260 } && test -s conftest.$ac_objext; then
5261 ac_cv_c_inline=$ac_kw
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 test "$ac_cv_c_inline" != no && break
5274 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5275 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5278 case $ac_cv_c_inline in
5281 case $ac_cv_c_inline in
5283 *) ac_val=$ac_cv_c_inline;;
5285 cat >>confdefs.h <<_ACEOF
5287 #define inline $ac_val
5293 { echo "$as_me:$LINENO: checking for off_t" >&5
5294 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5295 if test "${ac_cv_type_off_t+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 $ac_includes_default
5305 typedef off_t ac__type_new_;
5309 if ((ac__type_new_ *) 0)
5311 if (sizeof (ac__type_new_))
5317 rm -f conftest.$ac_objext
5318 if { (ac_try="$ac_compile"
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_compile") 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest.$ac_objext; then
5334 ac_cv_type_off_t=yes
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5345 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5346 if test $ac_cv_type_off_t = yes; then
5350 cat >>confdefs.h <<_ACEOF
5351 #define off_t long int
5356 { echo "$as_me:$LINENO: checking for size_t" >&5
5357 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5358 if test "${ac_cv_type_size_t+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 cat >conftest.$ac_ext <<_ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 $ac_includes_default
5368 typedef size_t ac__type_new_;
5372 if ((ac__type_new_ *) 0)
5374 if (sizeof (ac__type_new_))
5380 rm -f conftest.$ac_objext
5381 if { (ac_try="$ac_compile"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compile") 2>conftest.er1
5389 grep -v '^ *+' conftest.er1 >conftest.err
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } && {
5394 test -z "$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest.$ac_objext; then
5397 ac_cv_type_size_t=yes
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5402 ac_cv_type_size_t=no
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5408 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5409 if test $ac_cv_type_size_t = yes; then
5413 cat >>confdefs.h <<_ACEOF
5414 #define size_t unsigned int
5420 { echo "$as_me:$LINENO: checking for long long" >&5
5421 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5422 if test "${ac_cv_type_long_long+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 long long ll = 1LL; int i = 63;
5435 long long llmax = (long long) -1;
5436 return ll << i | ll >> i | llmax / ll | llmax % ll;
5441 rm -f conftest.$ac_objext conftest$ac_exeext
5442 if { (ac_try="$ac_link"
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_link") 2>conftest.er1
5450 grep -v '^ *+' conftest.er1 >conftest.err
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest$ac_exeext &&
5458 $as_test_x conftest$ac_exeext; then
5459 ac_cv_type_long_long=yes
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 ac_cv_type_long_long=no
5467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5468 conftest$ac_exeext conftest.$ac_ext
5470 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5471 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5472 if test $ac_cv_type_long_long = yes; then
5474 cat >>confdefs.h <<\_ACEOF
5475 #define HAVE_LONG_LONG 1
5481 { echo "$as_me:$LINENO: checking for long double" >&5
5482 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5483 if test "${gt_cv_c_long_double+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 if test "$GCC" = yes; then
5487 gt_cv_c_long_double=yes
5489 cat >conftest.$ac_ext <<_ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5496 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5497 long double foo = 0.0;
5498 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5499 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5509 rm -f conftest.$ac_objext
5510 if { (ac_try="$ac_compile"
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_compile") 2>conftest.er1
5518 grep -v '^ *+' conftest.er1 >conftest.err
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } && {
5523 test -z "$ac_c_werror_flag" ||
5524 test ! -s conftest.err
5525 } && test -s conftest.$ac_objext; then
5526 gt_cv_c_long_double=yes
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5531 gt_cv_c_long_double=no
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5538 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5539 if test $gt_cv_c_long_double = yes; then
5541 cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_LONG_DOUBLE 1
5548 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5549 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5550 if test "${gt_cv_c_wchar_t+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 cat >conftest.$ac_ext <<_ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5560 wchar_t foo = (wchar_t)'\0';
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
5578 grep -v '^ *+' conftest.er1 >conftest.err
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && {
5583 test -z "$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest.$ac_objext; then
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5597 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5598 if test $gt_cv_c_wchar_t = yes; then
5600 cat >>confdefs.h <<\_ACEOF
5601 #define HAVE_WCHAR_T 1
5607 { echo "$as_me:$LINENO: checking for wint_t" >&5
5608 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5609 if test "${gt_cv_c_wint_t+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 cat >conftest.$ac_ext <<_ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5619 wint_t foo = (wchar_t)'\0';
5628 rm -f conftest.$ac_objext
5629 if { (ac_try="$ac_compile"
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_compile") 2>conftest.er1
5637 grep -v '^ *+' conftest.er1 >conftest.err
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.$ac_objext; then
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5656 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5657 if test $gt_cv_c_wint_t = yes; then
5659 cat >>confdefs.h <<\_ACEOF
5660 #define HAVE_WINT_T 1
5666 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5667 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5668 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 cat >conftest.$ac_ext <<_ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 #include <sys/types.h>
5678 #include <inttypes.h>
5682 uintmax_t i = (uintmax_t) -1;
5687 rm -f conftest.$ac_objext
5688 if { (ac_try="$ac_compile"
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_compile") 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest.$ac_objext; then
5704 jm_ac_cv_header_inttypes_h=yes
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5709 jm_ac_cv_header_inttypes_h=no
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5715 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5716 if test $jm_ac_cv_header_inttypes_h = yes; then
5718 cat >>confdefs.h <<_ACEOF
5719 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5725 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5726 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5727 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5741 uintmax_t i = (uintmax_t) -1;
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 jm_ac_cv_header_stdint_h=yes
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5768 jm_ac_cv_header_stdint_h=no
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5774 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5775 if test $jm_ac_cv_header_stdint_h = yes; then
5777 cat >>confdefs.h <<_ACEOF
5778 #define HAVE_STDINT_H_WITH_UINTMAX 1
5786 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5787 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5788 if test "${gt_cv_c_intmax_t+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 cat >conftest.$ac_ext <<_ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5800 #if HAVE_STDINT_H_WITH_UINTMAX
5803 #if HAVE_INTTYPES_H_WITH_UINTMAX
5804 #include <inttypes.h>
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5824 grep -v '^ *+' conftest.er1 >conftest.err
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
5832 gt_cv_c_intmax_t=yes
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5843 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5844 if test $gt_cv_c_intmax_t = yes; then
5846 cat >>confdefs.h <<\_ACEOF
5847 #define HAVE_INTMAX_T 1
5854 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5855 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5856 if test "${gt_cv_func_printf_posix+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 if test "$cross_compiling" = yes; then
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5869 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5875 $EGREP "notposix" >/dev/null 2>&1; then
5876 gt_cv_func_printf_posix="guessing no"
5878 gt_cv_func_printf_posix="guessing yes"
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5893 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5894 dollar expansion (possibly an autoconf bug). */
5895 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5896 static char buf[100];
5899 sprintf (buf, format, 33, 55);
5900 return (strcmp (buf, "55 33") != 0);
5903 rm -f conftest$ac_exeext
5904 if { (ac_try="$ac_link"
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_link") 2>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5914 { (case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 gt_cv_func_printf_posix=yes
5925 echo "$as_me: program exited with status $ac_status" >&5
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5930 gt_cv_func_printf_posix=no
5932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5938 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5939 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5940 case $gt_cv_func_printf_posix in
5943 cat >>confdefs.h <<\_ACEOF
5944 #define HAVE_POSIX_PRINTF 1
5950 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5951 # for constant arguments. Useless!
5952 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5953 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5954 if test "${ac_cv_working_alloca_h+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5967 char *p = (char *) alloca (2 * sizeof (int));
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (ac_try="$ac_link"
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_link") 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest$ac_exeext &&
5990 $as_test_x conftest$ac_exeext; then
5991 ac_cv_working_alloca_h=yes
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 ac_cv_working_alloca_h=no
5999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6000 conftest$ac_exeext conftest.$ac_ext
6002 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6003 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6004 if test $ac_cv_working_alloca_h = yes; then
6006 cat >>confdefs.h <<\_ACEOF
6007 #define HAVE_ALLOCA_H 1
6012 { echo "$as_me:$LINENO: checking for alloca" >&5
6013 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6014 if test "${ac_cv_func_alloca_works+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6024 # define alloca __builtin_alloca
6027 # include <malloc.h>
6028 # define alloca _alloca
6030 # ifdef HAVE_ALLOCA_H
6031 # include <alloca.h>
6036 # ifndef alloca /* predefined by HP cc +Olibcalls */
6047 char *p = (char *) alloca (1);
6053 rm -f conftest.$ac_objext conftest$ac_exeext
6054 if { (ac_try="$ac_link"
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_link") 2>conftest.er1
6062 grep -v '^ *+' conftest.er1 >conftest.err
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest$ac_exeext &&
6070 $as_test_x conftest$ac_exeext; then
6071 ac_cv_func_alloca_works=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 ac_cv_func_alloca_works=no
6079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6080 conftest$ac_exeext conftest.$ac_ext
6082 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6083 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6085 if test $ac_cv_func_alloca_works = yes; then
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_ALLOCA 1
6092 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6093 # that cause trouble. Some versions do not even contain alloca or
6094 # contain a buggy version. If you still want to use their alloca,
6095 # use ar to extract alloca.o from them instead of compiling alloca.c.
6097 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6099 cat >>confdefs.h <<\_ACEOF
6104 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6105 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6106 if test "${ac_cv_os_cray+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #if defined CRAY && ! defined CRAY2
6122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123 $EGREP "webecray" >/dev/null 2>&1; then
6131 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6132 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6133 if test $ac_cv_os_cray = yes; then
6134 for ac_func in _getb67 GETB67 getb67; do
6135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6149 #define $ac_func innocuous_$ac_func
6151 /* System header to define __stub macros and hopefully few prototypes,
6152 which can conflict with char $ac_func (); below.
6153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6154 <limits.h> exists even on freestanding compilers. */
6157 # include <limits.h>
6159 # include <assert.h>
6164 /* Override any GCC internal prototype to avoid an error.
6165 Use char because int might match the return type of a GCC
6166 builtin and then its argument prototype would still apply. */
6171 /* The GNU C library defines this for functions which it implements
6172 to always fail with ENOSYS. Some functions are actually named
6173 something starting with __ and the normal name is an alias. */
6174 #if defined __stub_$ac_func || defined __stub___$ac_func
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (ac_try="$ac_link"
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_link") 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } && {
6200 test -z "$ac_c_werror_flag" ||
6201 test ! -s conftest.err
6202 } && test -s conftest$ac_exeext &&
6203 $as_test_x conftest$ac_exeext; then
6204 eval "$as_ac_var=yes"
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 eval "$as_ac_var=no"
6212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6213 conftest$ac_exeext conftest.$ac_ext
6215 ac_res=`eval echo '${'$as_ac_var'}'`
6216 { echo "$as_me:$LINENO: result: $ac_res" >&5
6217 echo "${ECHO_T}$ac_res" >&6; }
6218 if test `eval echo '${'$as_ac_var'}'` = yes; then
6220 cat >>confdefs.h <<_ACEOF
6221 #define CRAY_STACKSEG_END $ac_func
6230 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6231 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6232 if test "${ac_cv_c_stack_direction+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 if test "$cross_compiling" = yes; then
6236 ac_cv_c_stack_direction=0
6238 cat >conftest.$ac_ext <<_ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h. */
6244 $ac_includes_default
6246 find_stack_direction ()
6248 static char *addr = 0;
6253 return find_stack_direction ();
6256 return (&dummy > addr) ? 1 : -1;
6262 return find_stack_direction () < 0;
6265 rm -f conftest$ac_exeext
6266 if { (ac_try="$ac_link"
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_link") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6276 { (case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_try") 2>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 ac_cv_c_stack_direction=1
6287 echo "$as_me: program exited with status $ac_status" >&5
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6292 ac_cv_c_stack_direction=-1
6294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6299 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6300 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6302 cat >>confdefs.h <<_ACEOF
6303 #define STACK_DIRECTION $ac_cv_c_stack_direction
6311 for ac_header in stdlib.h unistd.h
6313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 ac_res=`eval echo '${'$as_ac_Header'}'`
6321 { echo "$as_me:$LINENO: result: $ac_res" >&5
6322 echo "${ECHO_T}$ac_res" >&6; }
6324 # Is the header compilable?
6325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 $ac_includes_default
6334 #include <$ac_header>
6336 rm -f conftest.$ac_objext
6337 if { (ac_try="$ac_compile"
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compile") 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } && {
6350 test -z "$ac_c_werror_flag" ||
6351 test ! -s conftest.err
6352 } && test -s conftest.$ac_objext; then
6353 ac_header_compiler=yes
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6358 ac_header_compiler=no
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363 echo "${ECHO_T}$ac_header_compiler" >&6; }
6365 # Is the header present?
6366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 #include <$ac_header>
6376 if { (ac_try="$ac_cpp conftest.$ac_ext"
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6384 grep -v '^ *+' conftest.er1 >conftest.err
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } >/dev/null && {
6389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6390 test ! -s conftest.err
6392 ac_header_preproc=yes
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 ac_header_preproc=no
6400 rm -f conftest.err conftest.$ac_ext
6401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6402 echo "${ECHO_T}$ac_header_preproc" >&6; }
6404 # So? What about this header?
6405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6411 ac_header_preproc=yes
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 eval "$as_ac_Header=\$ac_header_preproc"
6436 ac_res=`eval echo '${'$as_ac_Header'}'`
6437 { echo "$as_me:$LINENO: result: $ac_res" >&5
6438 echo "${ECHO_T}$ac_res" >&6; }
6441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442 cat >>confdefs.h <<_ACEOF
6443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6451 for ac_func in getpagesize
6453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 cat >conftest.$ac_ext <<_ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6467 #define $ac_func innocuous_$ac_func
6469 /* System header to define __stub macros and hopefully few prototypes,
6470 which can conflict with char $ac_func (); below.
6471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6472 <limits.h> exists even on freestanding compilers. */
6475 # include <limits.h>
6477 # include <assert.h>
6482 /* Override any GCC internal prototype to avoid an error.
6483 Use char because int might match the return type of a GCC
6484 builtin and then its argument prototype would still apply. */
6489 /* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
6492 #if defined __stub_$ac_func || defined __stub___$ac_func
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (ac_try="$ac_link"
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_link") 2>conftest.er1
6513 grep -v '^ *+' conftest.er1 >conftest.err
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest$ac_exeext &&
6521 $as_test_x conftest$ac_exeext; then
6522 eval "$as_ac_var=yes"
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6527 eval "$as_ac_var=no"
6530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6531 conftest$ac_exeext conftest.$ac_ext
6533 ac_res=`eval echo '${'$as_ac_var'}'`
6534 { echo "$as_me:$LINENO: result: $ac_res" >&5
6535 echo "${ECHO_T}$ac_res" >&6; }
6536 if test `eval echo '${'$as_ac_var'}'` = yes; then
6537 cat >>confdefs.h <<_ACEOF
6538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6544 { echo "$as_me:$LINENO: checking for working mmap" >&5
6545 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6546 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 if test "$cross_compiling" = yes; then
6550 ac_cv_func_mmap_fixed_mapped=no
6552 cat >conftest.$ac_ext <<_ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 $ac_includes_default
6559 /* malloc might have been renamed as rpl_malloc. */
6562 /* Thanks to Mike Haertel and Jim Avera for this test.
6563 Here is a matrix of mmap possibilities:
6564 mmap private not fixed
6565 mmap private fixed at somewhere currently unmapped
6566 mmap private fixed at somewhere already mapped
6567 mmap shared not fixed
6568 mmap shared fixed at somewhere currently unmapped
6569 mmap shared fixed at somewhere already mapped
6570 For private mappings, we should verify that changes cannot be read()
6571 back from the file, nor mmap's back from the file at a different
6572 address. (There have been systems where private was not correctly
6573 implemented like the infamous i386 svr4.0, and systems where the
6574 VM page cache was not coherent with the file system buffer cache
6575 like early versions of FreeBSD and possibly contemporary NetBSD.)
6576 For shared mappings, we should conversely verify that changes get
6577 propagated back to all the places they're supposed to be.
6579 Grep wants private fixed already mapped.
6580 The main things grep needs to know about mmap are:
6581 * does it exist and is it safe to write into the mmap'd area
6582 * how to use it (BSD variants) */
6585 #include <sys/mman.h>
6587 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6591 /* This mess was copied from the GNU getpagesize.h. */
6592 #ifndef HAVE_GETPAGESIZE
6593 /* Assume that all systems that can run configure have sys/param.h. */
6594 # ifndef HAVE_SYS_PARAM_H
6595 # define HAVE_SYS_PARAM_H 1
6598 # ifdef _SC_PAGESIZE
6599 # define getpagesize() sysconf(_SC_PAGESIZE)
6600 # else /* no _SC_PAGESIZE */
6601 # ifdef HAVE_SYS_PARAM_H
6602 # include <sys/param.h>
6603 # ifdef EXEC_PAGESIZE
6604 # define getpagesize() EXEC_PAGESIZE
6605 # else /* no EXEC_PAGESIZE */
6607 # define getpagesize() NBPG * CLSIZE
6610 # endif /* no CLSIZE */
6611 # else /* no NBPG */
6613 # define getpagesize() NBPC
6614 # else /* no NBPC */
6616 # define getpagesize() PAGESIZE
6617 # endif /* PAGESIZE */
6618 # endif /* no NBPC */
6619 # endif /* no NBPG */
6620 # endif /* no EXEC_PAGESIZE */
6621 # else /* no HAVE_SYS_PARAM_H */
6622 # define getpagesize() 8192 /* punt totally */
6623 # endif /* no HAVE_SYS_PARAM_H */
6624 # endif /* no _SC_PAGESIZE */
6626 #endif /* no HAVE_GETPAGESIZE */
6631 char *data, *data2, *data3;
6635 pagesize = getpagesize ();
6637 /* First, make a file with some known garbage in it. */
6638 data = (char *) malloc (pagesize);
6641 for (i = 0; i < pagesize; ++i)
6642 *(data + i) = rand ();
6644 fd = creat ("conftest.mmap", 0600);
6647 if (write (fd, data, pagesize) != pagesize)
6651 /* Next, try to mmap the file at a fixed address which already has
6652 something else allocated at it. If we can, also make sure that
6653 we see the same garbage. */
6654 fd = open ("conftest.mmap", O_RDWR);
6657 data2 = (char *) malloc (2 * pagesize);
6660 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6661 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6662 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6664 for (i = 0; i < pagesize; ++i)
6665 if (*(data + i) != *(data2 + i))
6668 /* Finally, make sure that changes to the mapped area do not
6669 percolate back to the file as seen by read(). (This is a bug on
6670 some variants of i386 svr4.0.) */
6671 for (i = 0; i < pagesize; ++i)
6672 *(data2 + i) = *(data2 + i) + 1;
6673 data3 = (char *) malloc (pagesize);
6676 if (read (fd, data3, pagesize) != pagesize)
6678 for (i = 0; i < pagesize; ++i)
6679 if (*(data + i) != *(data3 + i))
6685 rm -f conftest$ac_exeext
6686 if { (ac_try="$ac_link"
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692 (eval "$ac_link") 2>&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6696 { (case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_try") 2>&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_cv_func_mmap_fixed_mapped=yes
6707 echo "$as_me: program exited with status $ac_status" >&5
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6712 ac_cv_func_mmap_fixed_mapped=no
6714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6719 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6720 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6721 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6723 cat >>confdefs.h <<\_ACEOF
6731 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6732 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6733 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6743 #include <features.h>
6744 #ifdef __GNU_LIBRARY__
6745 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6753 ac_cv_gnu_library_2_1=yes
6755 ac_cv_gnu_library_2_1=no
6762 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6763 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6765 GLIBC21="$ac_cv_gnu_library_2_1"
6770 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6771 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6772 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 if test "$cross_compiling" = yes; then
6778 # Guess based on the CPU.
6780 alpha* | i3456786 | m68k | s390*)
6781 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6783 gt_cv_int_divbyzero_sigfpe="guessing no";;
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6799 sigfpe_handler (int sig)
6801 sigfpe_handler (sig) int sig;
6804 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6805 exit (sig != SIGFPE);
6815 signal (SIGFPE, sigfpe_handler);
6816 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6817 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6818 signal (SIGTRAP, sigfpe_handler);
6820 /* Linux/SPARC yields signal SIGILL. */
6821 #if defined (__sparc__) && defined (__linux__)
6822 signal (SIGILL, sigfpe_handler);
6831 rm -f conftest$ac_exeext
6832 if { (ac_try="$ac_link"
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_link") 2>&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6842 { (case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_try") 2>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 gt_cv_int_divbyzero_sigfpe=yes
6853 echo "$as_me: program exited with status $ac_status" >&5
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6858 gt_cv_int_divbyzero_sigfpe=no
6860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6866 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6867 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6868 case "$gt_cv_int_divbyzero_sigfpe" in
6873 cat >>confdefs.h <<_ACEOF
6874 #define INTDIV0_RAISES_SIGFPE $value
6879 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6880 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6881 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 unsigned long long ull = 1ULL; int i = 63;
6894 unsigned long long ullmax = (unsigned long long) -1;
6895 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (ac_try="$ac_link"
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_link") 2>conftest.er1
6909 grep -v '^ *+' conftest.er1 >conftest.err
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest$ac_exeext &&
6917 $as_test_x conftest$ac_exeext; then
6918 ac_cv_type_unsigned_long_long=yes
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6923 ac_cv_type_unsigned_long_long=no
6926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6927 conftest$ac_exeext conftest.$ac_ext
6929 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6930 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6931 if test $ac_cv_type_unsigned_long_long = yes; then
6933 cat >>confdefs.h <<\_ACEOF
6934 #define HAVE_UNSIGNED_LONG_LONG 1
6942 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6944 test $ac_cv_type_unsigned_long_long = yes \
6945 && ac_type='unsigned long long' \
6946 || ac_type='unsigned long'
6948 cat >>confdefs.h <<_ACEOF
6949 #define uintmax_t $ac_type
6954 cat >>confdefs.h <<\_ACEOF
6955 #define HAVE_UINTMAX_T 1
6961 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6962 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6963 if test "${gt_cv_header_inttypes_h+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >conftest.$ac_ext <<_ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 #include <sys/types.h>
6974 #include <inttypes.h>
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6992 grep -v '^ *+' conftest.er1 >conftest.err
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.$ac_objext; then
7000 gt_cv_header_inttypes_h=yes
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 gt_cv_header_inttypes_h=no
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7012 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7013 if test $gt_cv_header_inttypes_h = yes; then
7015 cat >>confdefs.h <<_ACEOF
7016 #define HAVE_INTTYPES_H 1
7023 if test $gt_cv_header_inttypes_h = yes; then
7024 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7025 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7026 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 cat >conftest.$ac_ext <<_ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 #include <inttypes.h>
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7058 grep -v '^ *+' conftest.er1 >conftest.err
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.$ac_objext; then
7066 gt_cv_inttypes_pri_broken=no
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 gt_cv_inttypes_pri_broken=yes
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7078 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7080 if test "$gt_cv_inttypes_pri_broken" = yes; then
7082 cat >>confdefs.h <<_ACEOF
7083 #define PRI_MACROS_BROKEN 1
7090 for ac_header in stdint.h
7092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 ac_res=`eval echo '${'$as_ac_Header'}'`
7100 { echo "$as_me:$LINENO: result: $ac_res" >&5
7101 echo "${ECHO_T}$ac_res" >&6; }
7103 # Is the header compilable?
7104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7113 #include <$ac_header>
7115 rm -f conftest.$ac_objext
7116 if { (ac_try="$ac_compile"
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 (eval "$ac_compile") 2>conftest.er1
7124 grep -v '^ *+' conftest.er1 >conftest.err
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest.$ac_objext; then
7132 ac_header_compiler=yes
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 ac_header_compiler=no
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7142 echo "${ECHO_T}$ac_header_compiler" >&6; }
7144 # Is the header present?
7145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7147 cat >conftest.$ac_ext <<_ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7153 #include <$ac_header>
7155 if { (ac_try="$ac_cpp conftest.$ac_ext"
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7163 grep -v '^ *+' conftest.er1 >conftest.err
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } >/dev/null && {
7168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7169 test ! -s conftest.err
7171 ac_header_preproc=yes
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7176 ac_header_preproc=no
7179 rm -f conftest.err conftest.$ac_ext
7180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7181 echo "${ECHO_T}$ac_header_preproc" >&6; }
7183 # So? What about this header?
7184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7190 ac_header_preproc=yes
7193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 eval "$as_ac_Header=\$ac_header_preproc"
7215 ac_res=`eval echo '${'$as_ac_Header'}'`
7216 { echo "$as_me:$LINENO: result: $ac_res" >&5
7217 echo "${ECHO_T}$ac_res" >&6; }
7220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7221 cat >>confdefs.h <<_ACEOF
7222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7229 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7230 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7249 $EGREP "Found it" >/dev/null 2>&1; then
7254 if test -z "$result"; then
7255 if test "$cross_compiling" = yes; then
7256 # Depending upon the size, compute the lo and hi bounds.
7257 cat >conftest.$ac_ext <<_ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7267 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7274 rm -f conftest.$ac_objext
7275 if { (ac_try="$ac_compile"
7277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278 *) ac_try_echo=$ac_try;;
7280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281 (eval "$ac_compile") 2>conftest.er1
7283 grep -v '^ *+' conftest.er1 >conftest.err
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } && {
7288 test -z "$ac_c_werror_flag" ||
7289 test ! -s conftest.err
7290 } && test -s conftest.$ac_objext; then
7293 cat >conftest.$ac_ext <<_ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7303 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_compile") 2>conftest.er1
7319 grep -v '^ *+' conftest.er1 >conftest.err
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest.$ac_objext; then
7327 ac_hi=$ac_mid; break
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 ac_lo=`expr $ac_mid + 1`
7333 if test $ac_lo -le $ac_mid; then
7337 ac_mid=`expr 2 '*' $ac_mid + 1`
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 cat >conftest.$ac_ext <<_ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h. */
7356 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_compile") 2>conftest.er1
7372 grep -v '^ *+' conftest.er1 >conftest.err
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest.$ac_objext; then
7382 cat >conftest.$ac_ext <<_ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7392 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7399 rm -f conftest.$ac_objext
7400 if { (ac_try="$ac_compile"
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_compile") 2>conftest.er1
7408 grep -v '^ *+' conftest.er1 >conftest.err
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } && {
7413 test -z "$ac_c_werror_flag" ||
7414 test ! -s conftest.err
7415 } && test -s conftest.$ac_objext; then
7416 ac_lo=$ac_mid; break
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7421 ac_hi=`expr '(' $ac_mid ')' - 1`
7422 if test $ac_mid -le $ac_hi; then
7426 ac_mid=`expr 2 '*' $ac_mid`
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 # Binary search between lo and hi bounds.
7443 while test "x$ac_lo" != "x$ac_hi"; do
7444 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7445 cat >conftest.$ac_ext <<_ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7455 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
7471 grep -v '^ *+' conftest.er1 >conftest.err
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.$ac_objext; then
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 ac_lo=`expr '(' $ac_mid ')' + 1`
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494 cat >conftest.$ac_ext <<_ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7501 static long int longval () { return ~(size_t)0 / 10; }
7502 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7509 FILE *f = fopen ("conftest.val", "w");
7512 if ((~(size_t)0 / 10) < 0)
7514 long int i = longval ();
7515 if (i != (~(size_t)0 / 10))
7517 fprintf (f, "%ld\n", i);
7521 unsigned long int i = ulongval ();
7522 if (i != (~(size_t)0 / 10))
7524 fprintf (f, "%lu\n", i);
7526 return ferror (f) || fclose (f) != 0;
7532 rm -f conftest$ac_exeext
7533 if { (ac_try="$ac_link"
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_link") 2>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7543 { (case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_try") 2>&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 res_hi=`cat conftest.val`
7554 echo "$as_me: program exited with status $ac_status" >&5
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7565 if test "$cross_compiling" = yes; then
7566 # Depending upon the size, compute the lo and hi bounds.
7567 cat >conftest.$ac_ext <<_ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7577 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7584 rm -f conftest.$ac_objext
7585 if { (ac_try="$ac_compile"
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7593 grep -v '^ *+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
7603 cat >conftest.$ac_ext <<_ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7613 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_compile") 2>conftest.er1
7629 grep -v '^ *+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && {
7634 test -z "$ac_c_werror_flag" ||
7635 test ! -s conftest.err
7636 } && test -s conftest.$ac_objext; then
7637 ac_hi=$ac_mid; break
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 ac_lo=`expr $ac_mid + 1`
7643 if test $ac_lo -le $ac_mid; then
7647 ac_mid=`expr 2 '*' $ac_mid + 1`
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7656 cat >conftest.$ac_ext <<_ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7666 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7673 rm -f conftest.$ac_objext
7674 if { (ac_try="$ac_compile"
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_compile") 2>conftest.er1
7682 grep -v '^ *+' conftest.er1 >conftest.err
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest.$ac_objext; then
7692 cat >conftest.$ac_ext <<_ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7702 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_compile") 2>conftest.er1
7718 grep -v '^ *+' conftest.er1 >conftest.err
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && {
7723 test -z "$ac_c_werror_flag" ||
7724 test ! -s conftest.err
7725 } && test -s conftest.$ac_objext; then
7726 ac_lo=$ac_mid; break
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 ac_hi=`expr '(' $ac_mid ')' - 1`
7732 if test $ac_mid -le $ac_hi; then
7736 ac_mid=`expr 2 '*' $ac_mid`
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 # Binary search between lo and hi bounds.
7753 while test "x$ac_lo" != "x$ac_hi"; do
7754 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7765 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_compile") 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest.$ac_objext; then
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_lo=`expr '(' $ac_mid ')' + 1`
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7811 static long int longval () { return ~(size_t)0 % 10; }
7812 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7819 FILE *f = fopen ("conftest.val", "w");
7822 if ((~(size_t)0 % 10) < 0)
7824 long int i = longval ();
7825 if (i != (~(size_t)0 % 10))
7827 fprintf (f, "%ld\n", i);
7831 unsigned long int i = ulongval ();
7832 if (i != (~(size_t)0 % 10))
7834 fprintf (f, "%lu\n", i);
7836 return ferror (f) || fclose (f) != 0;
7842 rm -f conftest$ac_exeext
7843 if { (ac_try="$ac_link"
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_link") 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7853 { (case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_try") 2>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 res_lo=`cat conftest.val`
7864 echo "$as_me: program exited with status $ac_status" >&5
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7875 if test "$cross_compiling" = yes; then
7876 # Depending upon the size, compute the lo and hi bounds.
7877 cat >conftest.$ac_ext <<_ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7887 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7894 rm -f conftest.$ac_objext
7895 if { (ac_try="$ac_compile"
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_compile") 2>conftest.er1
7903 grep -v '^ *+' conftest.er1 >conftest.err
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest.$ac_objext; then
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7923 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7939 grep -v '^ *+' conftest.er1 >conftest.err
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.$ac_objext; then
7947 ac_hi=$ac_mid; break
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 ac_lo=`expr $ac_mid + 1`
7953 if test $ac_lo -le $ac_mid; then
7957 ac_mid=`expr 2 '*' $ac_mid + 1`
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 cat >conftest.$ac_ext <<_ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7976 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7983 rm -f conftest.$ac_objext
7984 if { (ac_try="$ac_compile"
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_compile") 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && {
7997 test -z "$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 } && test -s conftest.$ac_objext; then
8002 cat >conftest.$ac_ext <<_ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8012 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8019 rm -f conftest.$ac_objext
8020 if { (ac_try="$ac_compile"
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_compile") 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } && {
8033 test -z "$ac_c_werror_flag" ||
8034 test ! -s conftest.err
8035 } && test -s conftest.$ac_objext; then
8036 ac_lo=$ac_mid; break
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8041 ac_hi=`expr '(' $ac_mid ')' - 1`
8042 if test $ac_mid -le $ac_hi; then
8046 ac_mid=`expr 2 '*' $ac_mid`
8049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 # Binary search between lo and hi bounds.
8063 while test "x$ac_lo" != "x$ac_hi"; do
8064 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8065 cat >conftest.$ac_ext <<_ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8075 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
8091 grep -v '^ *+' conftest.er1 >conftest.err
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest.$ac_objext; then
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 ac_lo=`expr '(' $ac_mid ')' + 1`
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 ?*) fits_in_uint=$ac_lo;;
8114 cat >conftest.$ac_ext <<_ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8121 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8122 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8129 FILE *f = fopen ("conftest.val", "w");
8132 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8134 long int i = longval ();
8135 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8137 fprintf (f, "%ld\n", i);
8141 unsigned long int i = ulongval ();
8142 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8144 fprintf (f, "%lu\n", i);
8146 return ferror (f) || fclose (f) != 0;
8152 rm -f conftest$ac_exeext
8153 if { (ac_try="$ac_link"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_link") 2>&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8163 { (case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_try") 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 fits_in_uint=`cat conftest.val`
8174 echo "$as_me: program exited with status $ac_status" >&5
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8185 if test "$fits_in_uint" = 1; then
8186 cat >conftest.$ac_ext <<_ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8194 extern unsigned long foo;
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8213 grep -v '^ *+' conftest.er1 >conftest.err
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231 if test -z "$result"; then
8232 if test "$fits_in_uint" = 1; then
8233 result="$res_hi$res_lo"U
8235 result="$res_hi$res_lo"UL
8241 { echo "$as_me:$LINENO: result: $result" >&5
8242 echo "${ECHO_T}$result" >&6; }
8243 if test "$result" != yes; then
8245 cat >>confdefs.h <<_ACEOF
8246 #define SIZE_MAX $result
8254 for ac_header in stdint.h
8256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 ac_res=`eval echo '${'$as_ac_Header'}'`
8264 { echo "$as_me:$LINENO: result: $ac_res" >&5
8265 echo "${ECHO_T}$ac_res" >&6; }
8267 # Is the header compilable?
8268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8270 cat >conftest.$ac_ext <<_ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #include <$ac_header>
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8288 grep -v '^ *+' conftest.er1 >conftest.err
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.$ac_objext; then
8296 ac_header_compiler=yes
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8301 ac_header_compiler=no
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8306 echo "${ECHO_T}$ac_header_compiler" >&6; }
8308 # Is the header present?
8309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8311 cat >conftest.$ac_ext <<_ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 #include <$ac_header>
8319 if { (ac_try="$ac_cpp conftest.$ac_ext"
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8327 grep -v '^ *+' conftest.er1 >conftest.err
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } >/dev/null && {
8332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8333 test ! -s conftest.err
8335 ac_header_preproc=yes
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 ac_header_preproc=no
8343 rm -f conftest.err conftest.$ac_ext
8344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345 echo "${ECHO_T}$ac_header_preproc" >&6; }
8347 # So? What about this header?
8348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8354 ac_header_preproc=yes
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 eval "$as_ac_Header=\$ac_header_preproc"
8379 ac_res=`eval echo '${'$as_ac_Header'}'`
8380 { echo "$as_me:$LINENO: result: $ac_res" >&5
8381 echo "${ECHO_T}$ac_res" >&6; }
8384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8395 if test "X$prefix" = "XNONE"; then
8396 acl_final_prefix="$ac_default_prefix"
8398 acl_final_prefix="$prefix"
8400 if test "X$exec_prefix" = "XNONE"; then
8401 acl_final_exec_prefix='${prefix}'
8403 acl_final_exec_prefix="$exec_prefix"
8405 acl_save_prefix="$prefix"
8406 prefix="$acl_final_prefix"
8407 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8408 prefix="$acl_save_prefix"
8411 # Check whether --with-gnu-ld was given.
8412 if test "${with_gnu_ld+set}" = set; then
8413 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8418 # Prepare PATH_SEPARATOR.
8419 # The user is always right.
8420 if test "${PATH_SEPARATOR+set}" != set; then
8421 echo "#! /bin/sh" >conf$$.sh
8422 echo "exit 0" >>conf$$.sh
8424 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8432 if test "$GCC" = yes; then
8433 # Check if gcc -print-prog-name=ld gives a path.
8434 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8435 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8438 # gcc leaves a trailing carriage return which upsets mingw
8439 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8441 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8444 # Accept absolute paths.
8445 [\\/]* | [A-Za-z]:[\\/]*)
8446 re_direlt='/[^/][^/]*/\.\./'
8447 # Canonicalize the path of ld
8448 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8449 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8450 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8452 test -z "$LD" && LD="$ac_prog"
8455 # If it fails, then pretend we aren't using GCC.
8459 # If it is relative, then search for the first ld in PATH.
8463 elif test "$with_gnu_ld" = yes; then
8464 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8465 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8467 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8468 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8470 if test "${acl_cv_path_LD+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 if test -z "$LD"; then
8474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8475 for ac_dir in $PATH; do
8476 test -z "$ac_dir" && ac_dir=.
8477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8478 acl_cv_path_LD="$ac_dir/$ac_prog"
8479 # Check to see if the program is GNU ld. I'd rather use --version,
8480 # but apparently some GNU ld's only accept -v.
8481 # Break only if it was the GNU/non-GNU ld that we prefer.
8482 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8483 *GNU* | *'with BFD'*)
8484 test "$with_gnu_ld" != no && break ;;
8486 test "$with_gnu_ld" != yes && break ;;
8492 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8496 LD="$acl_cv_path_LD"
8497 if test -n "$LD"; then
8498 { echo "$as_me:$LINENO: result: $LD" >&5
8499 echo "${ECHO_T}$LD" >&6; }
8501 { echo "$as_me:$LINENO: result: no" >&5
8502 echo "${ECHO_T}no" >&6; }
8504 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8505 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8506 { (exit 1); exit 1; }; }
8507 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8508 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8509 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8513 case `$LD -v 2>&1 </dev/null` in
8514 *GNU* | *'with BFD'*)
8515 acl_cv_prog_gnu_ld=yes ;;
8517 acl_cv_prog_gnu_ld=no ;;
8520 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8521 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8522 with_gnu_ld=$acl_cv_prog_gnu_ld
8526 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8527 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8528 if test "${acl_cv_rpath+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8533 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8539 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8540 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8542 libext="$acl_cv_libext"
8543 shlibext="$acl_cv_shlibext"
8544 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8545 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8546 hardcode_direct="$acl_cv_hardcode_direct"
8547 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8548 # Check whether --enable-rpath was given.
8549 if test "${enable_rpath+set}" = set; then
8550 enableval=$enable_rpath; :
8564 acl_save_prefix="$prefix"
8565 prefix="$acl_final_prefix"
8566 acl_save_exec_prefix="$exec_prefix"
8567 exec_prefix="$acl_final_exec_prefix"
8569 eval additional_includedir=\"$includedir\"
8570 eval additional_libdir=\"$libdir\"
8572 exec_prefix="$acl_save_exec_prefix"
8573 prefix="$acl_save_prefix"
8576 # Check whether --with-libiconv-prefix was given.
8577 if test "${with_libiconv_prefix+set}" = set; then
8578 withval=$with_libiconv_prefix;
8579 if test "X$withval" = "Xno"; then
8582 if test "X$withval" = "X"; then
8584 acl_save_prefix="$prefix"
8585 prefix="$acl_final_prefix"
8586 acl_save_exec_prefix="$exec_prefix"
8587 exec_prefix="$acl_final_exec_prefix"
8589 eval additional_includedir=\"$includedir\"
8590 eval additional_libdir=\"$libdir\"
8592 exec_prefix="$acl_save_exec_prefix"
8593 prefix="$acl_save_prefix"
8596 additional_includedir="$withval/include"
8597 additional_libdir="$withval/lib"
8608 names_already_handled=
8609 names_next_round='iconv '
8610 while test -n "$names_next_round"; do
8611 names_this_round="$names_next_round"
8613 for name in $names_this_round; do
8615 for n in $names_already_handled; do
8616 if test "$n" = "$name"; then
8621 if test -z "$already_handled"; then
8622 names_already_handled="$names_already_handled $name"
8623 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8624 eval value=\"\$HAVE_LIB$uppername\"
8625 if test -n "$value"; then
8626 if test "$value" = yes; then
8627 eval value=\"\$LIB$uppername\"
8628 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8629 eval value=\"\$LTLIB$uppername\"
8630 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8639 if test $use_additional = yes; then
8640 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8641 found_dir="$additional_libdir"
8642 found_so="$additional_libdir/lib$name.$shlibext"
8643 if test -f "$additional_libdir/lib$name.la"; then
8644 found_la="$additional_libdir/lib$name.la"
8647 if test -f "$additional_libdir/lib$name.$libext"; then
8648 found_dir="$additional_libdir"
8649 found_a="$additional_libdir/lib$name.$libext"
8650 if test -f "$additional_libdir/lib$name.la"; then
8651 found_la="$additional_libdir/lib$name.la"
8656 if test "X$found_dir" = "X"; then
8657 for x in $LDFLAGS $LTLIBICONV; do
8659 acl_save_prefix="$prefix"
8660 prefix="$acl_final_prefix"
8661 acl_save_exec_prefix="$exec_prefix"
8662 exec_prefix="$acl_final_exec_prefix"
8664 exec_prefix="$acl_save_exec_prefix"
8665 prefix="$acl_save_prefix"
8669 dir=`echo "X$x" | sed -e 's/^X-L//'`
8670 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8672 found_so="$dir/lib$name.$shlibext"
8673 if test -f "$dir/lib$name.la"; then
8674 found_la="$dir/lib$name.la"
8677 if test -f "$dir/lib$name.$libext"; then
8679 found_a="$dir/lib$name.$libext"
8680 if test -f "$dir/lib$name.la"; then
8681 found_la="$dir/lib$name.la"
8687 if test "X$found_dir" != "X"; then
8692 if test "X$found_dir" != "X"; then
8693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8694 if test "X$found_so" != "X"; then
8695 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8696 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8699 for x in $ltrpathdirs; do
8700 if test "X$x" = "X$found_dir"; then
8705 if test -z "$haveit"; then
8706 ltrpathdirs="$ltrpathdirs $found_dir"
8708 if test "$hardcode_direct" = yes; then
8709 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8711 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8712 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8714 for x in $rpathdirs; do
8715 if test "X$x" = "X$found_dir"; then
8720 if test -z "$haveit"; then
8721 rpathdirs="$rpathdirs $found_dir"
8725 for x in $LDFLAGS $LIBICONV; do
8727 acl_save_prefix="$prefix"
8728 prefix="$acl_final_prefix"
8729 acl_save_exec_prefix="$exec_prefix"
8730 exec_prefix="$acl_final_exec_prefix"
8732 exec_prefix="$acl_save_exec_prefix"
8733 prefix="$acl_save_prefix"
8735 if test "X$x" = "X-L$found_dir"; then
8740 if test -z "$haveit"; then
8741 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8743 if test "$hardcode_minus_L" != no; then
8744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8746 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8752 if test "X$found_a" != "X"; then
8753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8755 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8758 additional_includedir=
8759 case "$found_dir" in
8761 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8762 additional_includedir="$basedir/include"
8765 if test "X$additional_includedir" != "X"; then
8766 if test "X$additional_includedir" != "X/usr/include"; then
8768 if test "X$additional_includedir" = "X/usr/local/include"; then
8769 if test -n "$GCC"; then
8771 linux*) haveit=yes;;
8775 if test -z "$haveit"; then
8776 for x in $CPPFLAGS $INCICONV; do
8778 acl_save_prefix="$prefix"
8779 prefix="$acl_final_prefix"
8780 acl_save_exec_prefix="$exec_prefix"
8781 exec_prefix="$acl_final_exec_prefix"
8783 exec_prefix="$acl_save_exec_prefix"
8784 prefix="$acl_save_prefix"
8786 if test "X$x" = "X-I$additional_includedir"; then
8791 if test -z "$haveit"; then
8792 if test -d "$additional_includedir"; then
8793 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8799 if test -n "$found_la"; then
8800 save_libdir="$libdir"
8802 */* | *\\*) . "$found_la" ;;
8803 *) . "./$found_la" ;;
8805 libdir="$save_libdir"
8806 for dep in $dependency_libs; do
8809 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8810 if test "X$additional_libdir" != "X/usr/lib"; then
8812 if test "X$additional_libdir" = "X/usr/local/lib"; then
8813 if test -n "$GCC"; then
8815 linux*) haveit=yes;;
8819 if test -z "$haveit"; then
8821 for x in $LDFLAGS $LIBICONV; do
8823 acl_save_prefix="$prefix"
8824 prefix="$acl_final_prefix"
8825 acl_save_exec_prefix="$exec_prefix"
8826 exec_prefix="$acl_final_exec_prefix"
8828 exec_prefix="$acl_save_exec_prefix"
8829 prefix="$acl_save_prefix"
8831 if test "X$x" = "X-L$additional_libdir"; then
8836 if test -z "$haveit"; then
8837 if test -d "$additional_libdir"; then
8838 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8842 for x in $LDFLAGS $LTLIBICONV; do
8844 acl_save_prefix="$prefix"
8845 prefix="$acl_final_prefix"
8846 acl_save_exec_prefix="$exec_prefix"
8847 exec_prefix="$acl_final_exec_prefix"
8849 exec_prefix="$acl_save_exec_prefix"
8850 prefix="$acl_save_prefix"
8852 if test "X$x" = "X-L$additional_libdir"; then
8857 if test -z "$haveit"; then
8858 if test -d "$additional_libdir"; then
8859 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8866 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8867 if test "$enable_rpath" != no; then
8869 for x in $rpathdirs; do
8870 if test "X$x" = "X$dir"; then
8875 if test -z "$haveit"; then
8876 rpathdirs="$rpathdirs $dir"
8879 for x in $ltrpathdirs; do
8880 if test "X$x" = "X$dir"; then
8885 if test -z "$haveit"; then
8886 ltrpathdirs="$ltrpathdirs $dir"
8891 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8894 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8897 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8898 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8904 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8905 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8911 if test "X$rpathdirs" != "X"; then
8912 if test -n "$hardcode_libdir_separator"; then
8914 for found_dir in $rpathdirs; do
8915 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8917 acl_save_libdir="$libdir"
8919 eval flag=\"$hardcode_libdir_flag_spec\"
8920 libdir="$acl_save_libdir"
8921 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8923 for found_dir in $rpathdirs; do
8924 acl_save_libdir="$libdir"
8926 eval flag=\"$hardcode_libdir_flag_spec\"
8927 libdir="$acl_save_libdir"
8928 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8932 if test "X$ltrpathdirs" != "X"; then
8933 for found_dir in $ltrpathdirs; do
8934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8945 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8946 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8947 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8956 $ac_includes_default
8957 typedef ptrdiff_t ac__type_new_;
8961 if ((ac__type_new_ *) 0)
8963 if (sizeof (ac__type_new_))
8969 rm -f conftest.$ac_objext
8970 if { (ac_try="$ac_compile"
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_compile") 2>conftest.er1
8978 grep -v '^ *+' conftest.er1 >conftest.err
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest.$ac_objext; then
8986 ac_cv_type_ptrdiff_t=yes
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 ac_cv_type_ptrdiff_t=no
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8997 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8998 if test $ac_cv_type_ptrdiff_t = yes; then
9002 cat >>confdefs.h <<\_ACEOF
9003 #define ptrdiff_t long
9019 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9020 stdlib.h string.h unistd.h sys/param.h
9022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 ac_res=`eval echo '${'$as_ac_Header'}'`
9030 { echo "$as_me:$LINENO: result: $ac_res" >&5
9031 echo "${ECHO_T}$ac_res" >&6; }
9033 # Is the header compilable?
9034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9036 cat >conftest.$ac_ext <<_ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9042 $ac_includes_default
9043 #include <$ac_header>
9045 rm -f conftest.$ac_objext
9046 if { (ac_try="$ac_compile"
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_compile") 2>conftest.er1
9054 grep -v '^ *+' conftest.er1 >conftest.err
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } && {
9059 test -z "$ac_c_werror_flag" ||
9060 test ! -s conftest.err
9061 } && test -s conftest.$ac_objext; then
9062 ac_header_compiler=yes
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 ac_header_compiler=no
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9072 echo "${ECHO_T}$ac_header_compiler" >&6; }
9074 # Is the header present?
9075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9077 cat >conftest.$ac_ext <<_ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 #include <$ac_header>
9085 if { (ac_try="$ac_cpp conftest.$ac_ext"
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9093 grep -v '^ *+' conftest.er1 >conftest.err
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } >/dev/null && {
9098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9099 test ! -s conftest.err
9101 ac_header_preproc=yes
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9106 ac_header_preproc=no
9109 rm -f conftest.err conftest.$ac_ext
9110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9111 echo "${ECHO_T}$ac_header_preproc" >&6; }
9113 # So? What about this header?
9114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9120 ac_header_preproc=yes
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 eval "$as_ac_Header=\$ac_header_preproc"
9145 ac_res=`eval echo '${'$as_ac_Header'}'`
9146 { echo "$as_me:$LINENO: result: $ac_res" >&5
9147 echo "${ECHO_T}$ac_res" >&6; }
9150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9151 cat >>confdefs.h <<_ACEOF
9152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9183 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9184 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 cat >conftest.$ac_ext <<_ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9201 #define $ac_func innocuous_$ac_func
9203 /* System header to define __stub macros and hopefully few prototypes,
9204 which can conflict with char $ac_func (); below.
9205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9206 <limits.h> exists even on freestanding compilers. */
9209 # include <limits.h>
9211 # include <assert.h>
9216 /* Override any GCC internal prototype to avoid an error.
9217 Use char because int might match the return type of a GCC
9218 builtin and then its argument prototype would still apply. */
9223 /* The GNU C library defines this for functions which it implements
9224 to always fail with ENOSYS. Some functions are actually named
9225 something starting with __ and the normal name is an alias. */
9226 #if defined __stub_$ac_func || defined __stub___$ac_func
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (ac_try="$ac_link"
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_link") 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } && {
9252 test -z "$ac_c_werror_flag" ||
9253 test ! -s conftest.err
9254 } && test -s conftest$ac_exeext &&
9255 $as_test_x conftest$ac_exeext; then
9256 eval "$as_ac_var=yes"
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 eval "$as_ac_var=no"
9264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9265 conftest$ac_exeext conftest.$ac_ext
9267 ac_res=`eval echo '${'$as_ac_var'}'`
9268 { echo "$as_me:$LINENO: result: $ac_res" >&5
9269 echo "${ECHO_T}$ac_res" >&6; }
9270 if test `eval echo '${'$as_ac_var'}'` = yes; then
9271 cat >>confdefs.h <<_ACEOF
9272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9280 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9281 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9282 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 cat >conftest.$ac_ext <<_ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9297 char *p = (char *) _snprintf;
9304 rm -f conftest.$ac_objext
9305 if { (ac_try="$ac_compile"
9307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308 *) ac_try_echo=$ac_try;;
9310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9311 (eval "$ac_compile") 2>conftest.er1
9313 grep -v '^ *+' conftest.er1 >conftest.err
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && {
9318 test -z "$ac_c_werror_flag" ||
9319 test ! -s conftest.err
9320 } && test -s conftest.$ac_objext; then
9321 ac_cv_have_decl__snprintf=yes
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 ac_cv_have_decl__snprintf=no
9329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9332 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9333 if test $ac_cv_have_decl__snprintf = yes; then
9339 cat >>confdefs.h <<_ACEOF
9340 #define HAVE_DECL__SNPRINTF $gt_value
9345 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9346 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9347 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 cat >conftest.$ac_ext <<_ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9362 char *p = (char *) _snwprintf;
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_compile") 2>conftest.er1
9378 grep -v '^ *+' conftest.er1 >conftest.err
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest.$ac_objext; then
9386 ac_cv_have_decl__snwprintf=yes
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_cv_have_decl__snwprintf=no
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9397 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9398 if test $ac_cv_have_decl__snwprintf = yes; then
9404 cat >>confdefs.h <<_ACEOF
9405 #define HAVE_DECL__SNWPRINTF $gt_value
9411 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9412 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9413 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 cat >conftest.$ac_ext <<_ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9427 #ifndef feof_unlocked
9428 char *p = (char *) feof_unlocked;
9435 rm -f conftest.$ac_objext
9436 if { (ac_try="$ac_compile"
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_compile") 2>conftest.er1
9444 grep -v '^ *+' conftest.er1 >conftest.err
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && {
9449 test -z "$ac_c_werror_flag" ||
9450 test ! -s conftest.err
9451 } && test -s conftest.$ac_objext; then
9452 ac_cv_have_decl_feof_unlocked=yes
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9457 ac_cv_have_decl_feof_unlocked=no
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9463 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9464 if test $ac_cv_have_decl_feof_unlocked = yes; then
9470 cat >>confdefs.h <<_ACEOF
9471 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9476 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9477 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9478 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 cat >conftest.$ac_ext <<_ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9492 #ifndef fgets_unlocked
9493 char *p = (char *) fgets_unlocked;
9500 rm -f conftest.$ac_objext
9501 if { (ac_try="$ac_compile"
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_compile") 2>conftest.er1
9509 grep -v '^ *+' conftest.er1 >conftest.err
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } && {
9514 test -z "$ac_c_werror_flag" ||
9515 test ! -s conftest.err
9516 } && test -s conftest.$ac_objext; then
9517 ac_cv_have_decl_fgets_unlocked=yes
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 ac_cv_have_decl_fgets_unlocked=no
9525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9528 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9529 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9535 cat >>confdefs.h <<_ACEOF
9536 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9541 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9542 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9543 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9557 #ifndef getc_unlocked
9558 char *p = (char *) getc_unlocked;
9565 rm -f conftest.$ac_objext
9566 if { (ac_try="$ac_compile"
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_compile") 2>conftest.er1
9574 grep -v '^ *+' conftest.er1 >conftest.err
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest.$ac_objext; then
9582 ac_cv_have_decl_getc_unlocked=yes
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 ac_cv_have_decl_getc_unlocked=no
9590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9593 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9594 if test $ac_cv_have_decl_getc_unlocked = yes; then
9600 cat >>confdefs.h <<_ACEOF
9601 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9606 case $gt_cv_func_printf_posix in
9607 *yes) HAVE_POSIX_PRINTF=1 ;;
9608 *) HAVE_POSIX_PRINTF=0 ;;
9611 if test "$ac_cv_func_asprintf" = yes; then
9617 if test "$ac_cv_func_snprintf" = yes; then
9623 if test "$ac_cv_func_wprintf" = yes; then
9635 am_save_CPPFLAGS="$CPPFLAGS"
9637 for element in $INCICONV; do
9639 for x in $CPPFLAGS; do
9641 acl_save_prefix="$prefix"
9642 prefix="$acl_final_prefix"
9643 acl_save_exec_prefix="$exec_prefix"
9644 exec_prefix="$acl_final_exec_prefix"
9646 exec_prefix="$acl_save_exec_prefix"
9647 prefix="$acl_save_prefix"
9649 if test "X$x" = "X$element"; then
9654 if test -z "$haveit"; then
9655 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9660 { echo "$as_me:$LINENO: checking for iconv" >&5
9661 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9662 if test "${am_cv_func_iconv+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 am_cv_func_iconv="no, consider installing GNU libiconv"
9668 cat >conftest.$ac_ext <<_ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9679 iconv_t cd = iconv_open("","");
9680 iconv(cd,NULL,NULL,NULL,NULL);
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (ac_try="$ac_link"
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_link") 2>conftest.er1
9695 grep -v '^ *+' conftest.er1 >conftest.err
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } && {
9700 test -z "$ac_c_werror_flag" ||
9701 test ! -s conftest.err
9702 } && test -s conftest$ac_exeext &&
9703 $as_test_x conftest$ac_exeext; then
9704 am_cv_func_iconv=yes
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9713 conftest$ac_exeext conftest.$ac_ext
9714 if test "$am_cv_func_iconv" != yes; then
9715 am_save_LIBS="$LIBS"
9716 LIBS="$LIBS $LIBICONV"
9717 cat >conftest.$ac_ext <<_ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9728 iconv_t cd = iconv_open("","");
9729 iconv(cd,NULL,NULL,NULL,NULL);
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_link") 2>conftest.er1
9744 grep -v '^ *+' conftest.er1 >conftest.err
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && {
9749 test -z "$ac_c_werror_flag" ||
9750 test ! -s conftest.err
9751 } && test -s conftest$ac_exeext &&
9752 $as_test_x conftest$ac_exeext; then
9754 am_cv_func_iconv=yes
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS="$am_save_LIBS"
9768 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9769 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9770 if test "$am_cv_func_iconv" = yes; then
9772 cat >>confdefs.h <<\_ACEOF
9773 #define HAVE_ICONV 1
9777 if test "$am_cv_lib_iconv" = yes; then
9778 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9779 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9780 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9781 echo "${ECHO_T}$LIBICONV" >&6; }
9783 CPPFLAGS="$am_save_CPPFLAGS"
9790 if test "$am_cv_func_iconv" = yes; then
9791 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9792 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9793 if test "${am_cv_proto_iconv+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 cat >conftest.$ac_ext <<_ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9810 #if defined(__STDC__) || defined(__cplusplus)
9811 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9824 rm -f conftest.$ac_objext
9825 if { (ac_try="$ac_compile"
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_compile") 2>conftest.er1
9833 grep -v '^ *+' conftest.er1 >conftest.err
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_c_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest.$ac_objext; then
9841 am_cv_proto_iconv_arg1=""
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 am_cv_proto_iconv_arg1="const"
9849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850 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);"
9853 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9854 { echo "$as_me:$LINENO: result: ${ac_t:-
9855 }$am_cv_proto_iconv" >&5
9856 echo "${ECHO_T}${ac_t:-
9857 }$am_cv_proto_iconv" >&6; }
9859 cat >>confdefs.h <<_ACEOF
9860 #define ICONV_CONST $am_cv_proto_iconv_arg1
9866 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9867 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9868 if test "${am_cv_langinfo_codeset+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 cat >conftest.$ac_ext <<_ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 #include <langinfo.h>
9881 char* cs = nl_langinfo(CODESET);
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_link") 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } && {
9900 test -z "$ac_c_werror_flag" ||
9901 test ! -s conftest.err
9902 } && test -s conftest$ac_exeext &&
9903 $as_test_x conftest$ac_exeext; then
9904 am_cv_langinfo_codeset=yes
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 am_cv_langinfo_codeset=no
9912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9913 conftest$ac_exeext conftest.$ac_ext
9916 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9917 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9918 if test $am_cv_langinfo_codeset = yes; then
9920 cat >>confdefs.h <<\_ACEOF
9921 #define HAVE_LANGINFO_CODESET 1
9926 if test $ac_cv_header_locale_h = yes; then
9928 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9929 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9930 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 cat >conftest.$ac_ext <<_ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest$ac_exeext &&
9965 $as_test_x conftest$ac_exeext; then
9966 am_cv_val_LC_MESSAGES=yes
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 am_cv_val_LC_MESSAGES=no
9974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9975 conftest$ac_exeext conftest.$ac_ext
9977 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9978 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9979 if test $am_cv_val_LC_MESSAGES = yes; then
9981 cat >>confdefs.h <<\_ACEOF
9982 #define HAVE_LC_MESSAGES 1
9989 for ac_prog in bison
9991 # Extract the first word of "$ac_prog", so it can be a program name with args.
9992 set dummy $ac_prog; ac_word=$2
9993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9995 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 if test -n "$INTLBISON"; then
9999 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008 ac_cv_prog_INTLBISON="$ac_prog"
10009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 INTLBISON=$ac_cv_prog_INTLBISON
10019 if test -n "$INTLBISON"; then
10020 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10021 echo "${ECHO_T}$INTLBISON" >&6; }
10023 { echo "$as_me:$LINENO: result: no" >&5
10024 echo "${ECHO_T}no" >&6; }
10028 test -n "$INTLBISON" && break
10031 if test -z "$INTLBISON"; then
10034 { echo "$as_me:$LINENO: checking version of bison" >&5
10035 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10036 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10037 case $ac_prog_version in
10038 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10039 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10040 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10041 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10043 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10044 echo "${ECHO_T}$ac_prog_version" >&6; }
10046 if test $ac_verc_fail = yes; then
10065 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10066 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10067 # Check whether --enable-nls was given.
10068 if test "${enable_nls+set}" = set; then
10069 enableval=$enable_nls; USE_NLS=$enableval
10074 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10075 echo "${ECHO_T}$USE_NLS" >&6; }
10080 BUILD_INCLUDED_LIBINTL=no
10081 USE_INCLUDED_LIBINTL=no
10087 if test "$USE_NLS" = "yes"; then
10088 gt_use_preinstalled_gnugettext=no
10090 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10091 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10093 # Check whether --with-included-gettext was given.
10094 if test "${with_included_gettext+set}" = set; then
10095 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10097 nls_cv_force_use_gnu_gettext=no
10100 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10101 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10103 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10104 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10111 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10112 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10113 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 #include <libintl.h>
10123 extern int _nl_msg_cat_cntr;
10124 extern int *_nl_domain_bindings;
10128 bindtextdomain ("", "");
10129 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_link") 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest$ac_exeext &&
10151 $as_test_x conftest$ac_exeext; then
10152 gt_cv_func_gnugettext1_libc=yes
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 gt_cv_func_gnugettext1_libc=no
10160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10161 conftest$ac_exeext conftest.$ac_ext
10163 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10164 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10166 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10172 acl_save_prefix="$prefix"
10173 prefix="$acl_final_prefix"
10174 acl_save_exec_prefix="$exec_prefix"
10175 exec_prefix="$acl_final_exec_prefix"
10177 eval additional_includedir=\"$includedir\"
10178 eval additional_libdir=\"$libdir\"
10180 exec_prefix="$acl_save_exec_prefix"
10181 prefix="$acl_save_prefix"
10184 # Check whether --with-libintl-prefix was given.
10185 if test "${with_libintl_prefix+set}" = set; then
10186 withval=$with_libintl_prefix;
10187 if test "X$withval" = "Xno"; then
10190 if test "X$withval" = "X"; then
10192 acl_save_prefix="$prefix"
10193 prefix="$acl_final_prefix"
10194 acl_save_exec_prefix="$exec_prefix"
10195 exec_prefix="$acl_final_exec_prefix"
10197 eval additional_includedir=\"$includedir\"
10198 eval additional_libdir=\"$libdir\"
10200 exec_prefix="$acl_save_exec_prefix"
10201 prefix="$acl_save_prefix"
10204 additional_includedir="$withval/include"
10205 additional_libdir="$withval/lib"
10216 names_already_handled=
10217 names_next_round='intl '
10218 while test -n "$names_next_round"; do
10219 names_this_round="$names_next_round"
10221 for name in $names_this_round; do
10223 for n in $names_already_handled; do
10224 if test "$n" = "$name"; then
10225 already_handled=yes
10229 if test -z "$already_handled"; then
10230 names_already_handled="$names_already_handled $name"
10231 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10232 eval value=\"\$HAVE_LIB$uppername\"
10233 if test -n "$value"; then
10234 if test "$value" = yes; then
10235 eval value=\"\$LIB$uppername\"
10236 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10237 eval value=\"\$LTLIB$uppername\"
10238 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10247 if test $use_additional = yes; then
10248 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10249 found_dir="$additional_libdir"
10250 found_so="$additional_libdir/lib$name.$shlibext"
10251 if test -f "$additional_libdir/lib$name.la"; then
10252 found_la="$additional_libdir/lib$name.la"
10255 if test -f "$additional_libdir/lib$name.$libext"; then
10256 found_dir="$additional_libdir"
10257 found_a="$additional_libdir/lib$name.$libext"
10258 if test -f "$additional_libdir/lib$name.la"; then
10259 found_la="$additional_libdir/lib$name.la"
10264 if test "X$found_dir" = "X"; then
10265 for x in $LDFLAGS $LTLIBINTL; do
10267 acl_save_prefix="$prefix"
10268 prefix="$acl_final_prefix"
10269 acl_save_exec_prefix="$exec_prefix"
10270 exec_prefix="$acl_final_exec_prefix"
10272 exec_prefix="$acl_save_exec_prefix"
10273 prefix="$acl_save_prefix"
10277 dir=`echo "X$x" | sed -e 's/^X-L//'`
10278 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10280 found_so="$dir/lib$name.$shlibext"
10281 if test -f "$dir/lib$name.la"; then
10282 found_la="$dir/lib$name.la"
10285 if test -f "$dir/lib$name.$libext"; then
10287 found_a="$dir/lib$name.$libext"
10288 if test -f "$dir/lib$name.la"; then
10289 found_la="$dir/lib$name.la"
10295 if test "X$found_dir" != "X"; then
10300 if test "X$found_dir" != "X"; then
10301 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10302 if test "X$found_so" != "X"; then
10303 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10304 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10307 for x in $ltrpathdirs; do
10308 if test "X$x" = "X$found_dir"; then
10313 if test -z "$haveit"; then
10314 ltrpathdirs="$ltrpathdirs $found_dir"
10316 if test "$hardcode_direct" = yes; then
10317 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10319 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10320 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10322 for x in $rpathdirs; do
10323 if test "X$x" = "X$found_dir"; then
10328 if test -z "$haveit"; then
10329 rpathdirs="$rpathdirs $found_dir"
10333 for x in $LDFLAGS $LIBINTL; do
10335 acl_save_prefix="$prefix"
10336 prefix="$acl_final_prefix"
10337 acl_save_exec_prefix="$exec_prefix"
10338 exec_prefix="$acl_final_exec_prefix"
10340 exec_prefix="$acl_save_exec_prefix"
10341 prefix="$acl_save_prefix"
10343 if test "X$x" = "X-L$found_dir"; then
10348 if test -z "$haveit"; then
10349 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10351 if test "$hardcode_minus_L" != no; then
10352 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10354 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10360 if test "X$found_a" != "X"; then
10361 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10363 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10366 additional_includedir=
10367 case "$found_dir" in
10369 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10370 additional_includedir="$basedir/include"
10373 if test "X$additional_includedir" != "X"; then
10374 if test "X$additional_includedir" != "X/usr/include"; then
10376 if test "X$additional_includedir" = "X/usr/local/include"; then
10377 if test -n "$GCC"; then
10379 linux*) haveit=yes;;
10383 if test -z "$haveit"; then
10384 for x in $CPPFLAGS $INCINTL; do
10386 acl_save_prefix="$prefix"
10387 prefix="$acl_final_prefix"
10388 acl_save_exec_prefix="$exec_prefix"
10389 exec_prefix="$acl_final_exec_prefix"
10391 exec_prefix="$acl_save_exec_prefix"
10392 prefix="$acl_save_prefix"
10394 if test "X$x" = "X-I$additional_includedir"; then
10399 if test -z "$haveit"; then
10400 if test -d "$additional_includedir"; then
10401 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10407 if test -n "$found_la"; then
10408 save_libdir="$libdir"
10409 case "$found_la" in
10410 */* | *\\*) . "$found_la" ;;
10411 *) . "./$found_la" ;;
10413 libdir="$save_libdir"
10414 for dep in $dependency_libs; do
10417 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10418 if test "X$additional_libdir" != "X/usr/lib"; then
10420 if test "X$additional_libdir" = "X/usr/local/lib"; then
10421 if test -n "$GCC"; then
10423 linux*) haveit=yes;;
10427 if test -z "$haveit"; then
10429 for x in $LDFLAGS $LIBINTL; do
10431 acl_save_prefix="$prefix"
10432 prefix="$acl_final_prefix"
10433 acl_save_exec_prefix="$exec_prefix"
10434 exec_prefix="$acl_final_exec_prefix"
10436 exec_prefix="$acl_save_exec_prefix"
10437 prefix="$acl_save_prefix"
10439 if test "X$x" = "X-L$additional_libdir"; then
10444 if test -z "$haveit"; then
10445 if test -d "$additional_libdir"; then
10446 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10450 for x in $LDFLAGS $LTLIBINTL; do
10452 acl_save_prefix="$prefix"
10453 prefix="$acl_final_prefix"
10454 acl_save_exec_prefix="$exec_prefix"
10455 exec_prefix="$acl_final_exec_prefix"
10457 exec_prefix="$acl_save_exec_prefix"
10458 prefix="$acl_save_prefix"
10460 if test "X$x" = "X-L$additional_libdir"; then
10465 if test -z "$haveit"; then
10466 if test -d "$additional_libdir"; then
10467 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10474 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10475 if test "$enable_rpath" != no; then
10477 for x in $rpathdirs; do
10478 if test "X$x" = "X$dir"; then
10483 if test -z "$haveit"; then
10484 rpathdirs="$rpathdirs $dir"
10487 for x in $ltrpathdirs; do
10488 if test "X$x" = "X$dir"; then
10493 if test -z "$haveit"; then
10494 ltrpathdirs="$ltrpathdirs $dir"
10499 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10502 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10505 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10506 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10512 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10513 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10519 if test "X$rpathdirs" != "X"; then
10520 if test -n "$hardcode_libdir_separator"; then
10522 for found_dir in $rpathdirs; do
10523 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10525 acl_save_libdir="$libdir"
10527 eval flag=\"$hardcode_libdir_flag_spec\"
10528 libdir="$acl_save_libdir"
10529 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10531 for found_dir in $rpathdirs; do
10532 acl_save_libdir="$libdir"
10533 libdir="$found_dir"
10534 eval flag=\"$hardcode_libdir_flag_spec\"
10535 libdir="$acl_save_libdir"
10536 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10540 if test "X$ltrpathdirs" != "X"; then
10541 for found_dir in $ltrpathdirs; do
10542 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10546 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10547 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10548 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 gt_save_CPPFLAGS="$CPPFLAGS"
10552 CPPFLAGS="$CPPFLAGS $INCINTL"
10553 gt_save_LIBS="$LIBS"
10554 LIBS="$LIBS $LIBINTL"
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 #include <libintl.h>
10562 extern int _nl_msg_cat_cntr;
10567 const char *_nl_expand_alias ();
10571 bindtextdomain ("", "");
10572 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10577 rm -f conftest.$ac_objext conftest$ac_exeext
10578 if { (ac_try="$ac_link"
10579 case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_link") 2>conftest.er1
10586 grep -v '^ *+' conftest.er1 >conftest.err
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest$ac_exeext &&
10594 $as_test_x conftest$ac_exeext; then
10595 gt_cv_func_gnugettext1_libintl=yes
10597 echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10600 gt_cv_func_gnugettext1_libintl=no
10603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10604 conftest$ac_exeext conftest.$ac_ext
10605 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10606 LIBS="$LIBS $LIBICONV"
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 #include <libintl.h>
10614 extern int _nl_msg_cat_cntr;
10619 const char *_nl_expand_alias ();
10623 bindtextdomain ("", "");
10624 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_link") 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } && {
10643 test -z "$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10645 } && test -s conftest$ac_exeext &&
10646 $as_test_x conftest$ac_exeext; then
10647 LIBINTL="$LIBINTL $LIBICONV"
10648 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10649 gt_cv_func_gnugettext1_libintl=yes
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10659 conftest$ac_exeext conftest.$ac_ext
10661 CPPFLAGS="$gt_save_CPPFLAGS"
10662 LIBS="$gt_save_LIBS"
10664 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10665 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10668 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10669 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10670 && test "$PACKAGE" != gettext-runtime \
10671 && test "$PACKAGE" != gettext-tools; }; then
10672 gt_use_preinstalled_gnugettext=yes
10680 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10681 nls_cv_use_gnu_gettext=yes
10685 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10686 BUILD_INCLUDED_LIBINTL=yes
10687 USE_INCLUDED_LIBINTL=yes
10688 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10689 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10690 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10693 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10694 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10699 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10700 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10702 cat >>confdefs.h <<\_ACEOF
10703 #define ENABLE_NLS 1
10711 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10712 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10713 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10714 echo "${ECHO_T}$USE_NLS" >&6; }
10715 if test "$USE_NLS" = "yes"; then
10716 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10717 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10718 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10719 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10720 gt_source="external libintl"
10725 gt_source="included intl directory"
10727 { echo "$as_me:$LINENO: result: $gt_source" >&5
10728 echo "${ECHO_T}$gt_source" >&6; }
10731 if test "$USE_NLS" = "yes"; then
10733 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10734 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10735 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10736 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10737 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10738 echo "${ECHO_T}$LIBINTL" >&6; }
10740 for element in $INCINTL; do
10742 for x in $CPPFLAGS; do
10744 acl_save_prefix="$prefix"
10745 prefix="$acl_final_prefix"
10746 acl_save_exec_prefix="$exec_prefix"
10747 exec_prefix="$acl_final_exec_prefix"
10749 exec_prefix="$acl_save_exec_prefix"
10750 prefix="$acl_save_prefix"
10752 if test "X$x" = "X$element"; then
10757 if test -z "$haveit"; then
10758 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_GETTEXT 1
10770 cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_DCGETTEXT 1
10780 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10781 BUILD_INCLUDED_LIBINTL=yes
10788 nls_cv_header_intl=
10789 nls_cv_header_libgt=
10800 if test "$USE_INCLUDED_LIBINTL" = yes; then
10801 INTLOBJS="\$(GETTOBJS)"
10805 INTL_LIBTOOL_SUFFIX_PREFIX=
10809 INTLLIBS="$LIBINTL"
10817 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10819 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10820 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 cat >conftest.make <<\_ACEOF
10826 @echo '@@@%%%=$(MAKE)=@@@%%%'
10828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10830 *@@@%%%=?*=@@@%%%*)
10831 eval ac_cv_prog_make_${ac_make}_set=yes;;
10833 eval ac_cv_prog_make_${ac_make}_set=no;;
10835 rm -f conftest.make
10837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10838 { echo "$as_me:$LINENO: result: yes" >&5
10839 echo "${ECHO_T}yes" >&6; }
10842 { echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6; }
10844 SET_MAKE="MAKE=${MAKE-make}"
10847 # Extract the first word of "ln", so it can be a program name with args.
10848 set dummy ln; ac_word=$2
10849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10851 if test "${ac_cv_path_LN+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10879 if test -n "$LN"; then
10880 { echo "$as_me:$LINENO: result: $LN" >&5
10881 echo "${ECHO_T}$LN" >&6; }
10883 { echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6; }
10888 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10889 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10891 if test "$LN_S" = "ln -s"; then
10892 { echo "$as_me:$LINENO: result: yes" >&5
10893 echo "${ECHO_T}yes" >&6; }
10895 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10896 echo "${ECHO_T}no, using $LN_S" >&6; }
10899 # Extract the first word of "mv", so it can be a program name with args.
10900 set dummy mv; ac_word=$2
10901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10903 if test "${ac_cv_path_MV+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10918 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10931 if test -n "$MV"; then
10932 { echo "$as_me:$LINENO: result: $MV" >&5
10933 echo "${ECHO_T}$MV" >&6; }
10935 { echo "$as_me:$LINENO: result: no" >&5
10936 echo "${ECHO_T}no" >&6; }
10940 # Extract the first word of "cp", so it can be a program name with args.
10941 set dummy cp; ac_word=$2
10942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10944 if test "${ac_cv_path_CP+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10959 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10967 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10972 if test -n "$CP"; then
10973 { echo "$as_me:$LINENO: result: $CP" >&5
10974 echo "${ECHO_T}$CP" >&6; }
10976 { echo "$as_me:$LINENO: result: no" >&5
10977 echo "${ECHO_T}no" >&6; }
10981 # Extract the first word of "rm", so it can be a program name with args.
10982 set dummy rm; ac_word=$2
10983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10985 if test "${ac_cv_path_RM+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11000 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11013 if test -n "$RM"; then
11014 { echo "$as_me:$LINENO: result: $RM" >&5
11015 echo "${ECHO_T}$RM" >&6; }
11017 { echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6; }
11022 # Extract the first word of "chmod", so it can be a program name with args.
11023 set dummy chmod; ac_word=$2
11024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11026 if test "${ac_cv_path_CHMOD+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11041 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11053 CHMOD=$ac_cv_path_CHMOD
11054 if test -n "$CHMOD"; then
11055 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11056 echo "${ECHO_T}$CHMOD" >&6; }
11058 { echo "$as_me:$LINENO: result: no" >&5
11059 echo "${ECHO_T}no" >&6; }
11063 for ac_prog in gawk mawk nawk awk
11065 # Extract the first word of "$ac_prog", so it can be a program name with args.
11066 set dummy $ac_prog; ac_word=$2
11067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11069 if test "${ac_cv_prog_AWK+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 if test -n "$AWK"; then
11073 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_prog_AWK="$ac_prog"
11083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 AWK=$ac_cv_prog_AWK
11093 if test -n "$AWK"; then
11094 { echo "$as_me:$LINENO: result: $AWK" >&5
11095 echo "${ECHO_T}$AWK" >&6; }
11097 { echo "$as_me:$LINENO: result: no" >&5
11098 echo "${ECHO_T}no" >&6; }
11102 test -n "$AWK" && break
11105 { echo "$as_me:$LINENO: checking for egrep" >&5
11106 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11107 if test "${ac_cv_path_EGREP+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11111 then ac_cv_path_EGREP="$GREP -E"
11113 # Extract the first word of "egrep" to use in msg output
11114 if test -z "$EGREP"; then
11115 set dummy egrep; ac_prog_name=$2
11116 if test "${ac_cv_path_EGREP+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 ac_path_EGREP_found=false
11120 # Loop through the user's path and test for each of PROGNAME-LIST
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11125 test -z "$as_dir" && as_dir=.
11126 for ac_prog in egrep; do
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11129 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11130 # Check for GNU ac_path_EGREP and select it if it is found.
11131 # Check for GNU $ac_path_EGREP
11132 case `"$ac_path_EGREP" --version 2>&1` in
11134 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11137 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11140 cat "conftest.in" "conftest.in" >"conftest.tmp"
11141 mv "conftest.tmp" "conftest.in"
11142 cp "conftest.in" "conftest.nl"
11143 echo 'EGREP' >> "conftest.nl"
11144 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11146 ac_count=`expr $ac_count + 1`
11147 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11148 # Best one so far, save it but keep looking for a better one
11149 ac_cv_path_EGREP="$ac_path_EGREP"
11150 ac_path_EGREP_max=$ac_count
11152 # 10*(2^10) chars as input seems more than enough
11153 test $ac_count -gt 10 && break
11155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11159 $ac_path_EGREP_found && break 3
11169 EGREP="$ac_cv_path_EGREP"
11170 if test -z "$EGREP"; then
11171 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11172 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11173 { (exit 1); exit 1; }; }
11177 ac_cv_path_EGREP=$EGREP
11183 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11184 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11185 EGREP="$ac_cv_path_EGREP"
11188 # Extract the first word of "sed", so it can be a program name with args.
11189 set dummy sed; ac_word=$2
11190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11192 if test "${ac_cv_path_SED+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11207 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11219 SED=$ac_cv_path_SED
11220 if test -n "$SED"; then
11221 { echo "$as_me:$LINENO: result: $SED" >&5
11222 echo "${ECHO_T}$SED" >&6; }
11224 { echo "$as_me:$LINENO: result: no" >&5
11225 echo "${ECHO_T}no" >&6; }
11229 # Extract the first word of "perl", so it can be a program name with args.
11230 set dummy perl; ac_word=$2
11231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11233 if test "${ac_cv_path_PERL+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11248 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11260 PERL=$ac_cv_path_PERL
11261 if test -n "$PERL"; then
11262 { echo "$as_me:$LINENO: result: $PERL" >&5
11263 echo "${ECHO_T}$PERL" >&6; }
11265 { echo "$as_me:$LINENO: result: no" >&5
11266 echo "${ECHO_T}no" >&6; }
11270 # Extract the first word of "ldconfig", so it can be a program name with args.
11271 set dummy ldconfig; ac_word=$2
11272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11274 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11301 LDCONFIG=$ac_cv_path_LDCONFIG
11302 if test -n "$LDCONFIG"; then
11303 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11304 echo "${ECHO_T}$LDCONFIG" >&6; }
11306 { echo "$as_me:$LINENO: result: no" >&5
11307 echo "${ECHO_T}no" >&6; }
11311 if test -n "$ac_tool_prefix"; then
11312 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11313 set dummy ${ac_tool_prefix}ar; ac_word=$2
11314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11316 if test "${ac_cv_prog_AR+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 if test -n "$AR"; then
11320 ac_cv_prog_AR="$AR" # Let the user override the test.
11322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323 for as_dir in $PATH
11326 test -z "$as_dir" && as_dir=.
11327 for ac_exec_ext in '' $ac_executable_extensions; do
11328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11329 ac_cv_prog_AR="${ac_tool_prefix}ar"
11330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 if test -n "$AR"; then
11341 { echo "$as_me:$LINENO: result: $AR" >&5
11342 echo "${ECHO_T}$AR" >&6; }
11344 { echo "$as_me:$LINENO: result: no" >&5
11345 echo "${ECHO_T}no" >&6; }
11350 if test -z "$ac_cv_prog_AR"; then
11352 # Extract the first word of "ar", so it can be a program name with args.
11353 set dummy ar; ac_word=$2
11354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11356 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 if test -n "$ac_ct_AR"; then
11360 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363 for as_dir in $PATH
11366 test -z "$as_dir" && as_dir=.
11367 for ac_exec_ext in '' $ac_executable_extensions; do
11368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11369 ac_cv_prog_ac_ct_AR="ar"
11370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11380 if test -n "$ac_ct_AR"; then
11381 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11382 echo "${ECHO_T}$ac_ct_AR" >&6; }
11384 { echo "$as_me:$LINENO: result: no" >&5
11385 echo "${ECHO_T}no" >&6; }
11388 if test "x$ac_ct_AR" = x; then
11391 case $cross_compiling:$ac_tool_warned in
11393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11394 whose name does not start with the host triplet. If you think this
11395 configuration is useful to you, please write to autoconf@gnu.org." >&5
11396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11397 whose name does not start with the host triplet. If you think this
11398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11399 ac_tool_warned=yes ;;
11404 AR="$ac_cv_prog_AR"
11407 if test -n "$ac_tool_prefix"; then
11408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11412 if test "${ac_cv_prog_RANLIB+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 if test -n "$RANLIB"; then
11416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11419 for as_dir in $PATH
11422 test -z "$as_dir" && as_dir=.
11423 for ac_exec_ext in '' $ac_executable_extensions; do
11424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 RANLIB=$ac_cv_prog_RANLIB
11436 if test -n "$RANLIB"; then
11437 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11438 echo "${ECHO_T}$RANLIB" >&6; }
11440 { echo "$as_me:$LINENO: result: no" >&5
11441 echo "${ECHO_T}no" >&6; }
11446 if test -z "$ac_cv_prog_RANLIB"; then
11447 ac_ct_RANLIB=$RANLIB
11448 # Extract the first word of "ranlib", so it can be a program name with args.
11449 set dummy ranlib; ac_word=$2
11450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11452 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 if test -n "$ac_ct_RANLIB"; then
11456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459 for as_dir in $PATH
11462 test -z "$as_dir" && as_dir=.
11463 for ac_exec_ext in '' $ac_executable_extensions; do
11464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11465 ac_cv_prog_ac_ct_RANLIB="ranlib"
11466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11476 if test -n "$ac_ct_RANLIB"; then
11477 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11478 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11480 { echo "$as_me:$LINENO: result: no" >&5
11481 echo "${ECHO_T}no" >&6; }
11484 if test "x$ac_ct_RANLIB" = x; then
11487 case $cross_compiling:$ac_tool_warned in
11489 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11490 whose name does not start with the host triplet. If you think this
11491 configuration is useful to you, please write to autoconf@gnu.org." >&5
11492 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11493 whose name does not start with the host triplet. If you think this
11494 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11495 ac_tool_warned=yes ;;
11497 RANLIB=$ac_ct_RANLIB
11500 RANLIB="$ac_cv_prog_RANLIB"
11503 if test -n "$ac_tool_prefix"; then
11504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11505 set dummy ${ac_tool_prefix}strip; ac_word=$2
11506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11508 if test "${ac_cv_prog_STRIP+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 if test -n "$STRIP"; then
11512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 STRIP=$ac_cv_prog_STRIP
11532 if test -n "$STRIP"; then
11533 { echo "$as_me:$LINENO: result: $STRIP" >&5
11534 echo "${ECHO_T}$STRIP" >&6; }
11536 { echo "$as_me:$LINENO: result: no" >&5
11537 echo "${ECHO_T}no" >&6; }
11542 if test -z "$ac_cv_prog_STRIP"; then
11544 # Extract the first word of "strip", so it can be a program name with args.
11545 set dummy strip; ac_word=$2
11546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11548 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 if test -n "$ac_ct_STRIP"; then
11552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11561 ac_cv_prog_ac_ct_STRIP="strip"
11562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11572 if test -n "$ac_ct_STRIP"; then
11573 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11574 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11576 { echo "$as_me:$LINENO: result: no" >&5
11577 echo "${ECHO_T}no" >&6; }
11580 if test "x$ac_ct_STRIP" = x; then
11583 case $cross_compiling:$ac_tool_warned in
11585 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11586 whose name does not start with the host triplet. If you think this
11587 configuration is useful to you, please write to autoconf@gnu.org." >&5
11588 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11589 whose name does not start with the host triplet. If you think this
11590 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11591 ac_tool_warned=yes ;;
11596 STRIP="$ac_cv_prog_STRIP"
11599 # Find a good install program. We prefer a C program (faster),
11600 # so one script is as good as another. But avoid the broken or
11601 # incompatible versions:
11602 # SysV /etc/install, /usr/sbin/install
11603 # SunOS /usr/etc/install
11604 # IRIX /sbin/install
11606 # AmigaOS /C/install, which installs bootblocks on floppy discs
11607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11610 # OS/2's system install, which has a completely different semantic
11611 # ./install, which can be erroneously created by make from ./install.sh.
11612 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11613 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11614 if test -z "$INSTALL"; then
11615 if test "${ac_cv_path_install+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11622 test -z "$as_dir" && as_dir=.
11623 # Account for people who put trailing slashes in PATH elements.
11625 ./ | .// | /cC/* | \
11626 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11627 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11630 # OSF1 and SCO ODT 3.0 have their own names for install.
11631 # Don't use installbsd from OSF since it installs stuff as root
11633 for ac_prog in ginstall scoinst install; do
11634 for ac_exec_ext in '' $ac_executable_extensions; do
11635 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11636 if test $ac_prog = install &&
11637 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11638 # AIX install. It has an incompatible calling convention.
11640 elif test $ac_prog = install &&
11641 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11642 # program-specific install script used by HP pwplus--don't use.
11645 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11658 if test "${ac_cv_path_install+set}" = set; then
11659 INSTALL=$ac_cv_path_install
11661 # As a last resort, use the slow shell script. Don't cache a
11662 # value for INSTALL within a source directory, because that will
11663 # break other packages using the cache if that directory is
11664 # removed, or if the value is a relative name.
11665 INSTALL=$ac_install_sh
11668 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11669 echo "${ECHO_T}$INSTALL" >&6; }
11671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11672 # It thinks the first close brace ends the variable substitution.
11673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11679 # See if we need a separate native compiler.
11680 if test $cross_compiling = no; then
11684 for ac_prog in gcc cc
11686 # Extract the first word of "$ac_prog", so it can be a program name with args.
11687 set dummy $ac_prog; ac_word=$2
11688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 if test -n "$BUILD_CC"; then
11694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697 for as_dir in $PATH
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11703 ac_cv_prog_BUILD_CC="$ac_prog"
11704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 BUILD_CC=$ac_cv_prog_BUILD_CC
11714 if test -n "$BUILD_CC"; then
11715 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11716 echo "${ECHO_T}$BUILD_CC" >&6; }
11718 { echo "$as_me:$LINENO: result: no" >&5
11719 echo "${ECHO_T}no" >&6; }
11723 test -n "$BUILD_CC" && break
11762 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 ac_res=`eval echo '${'$as_ac_Header'}'`
11772 { echo "$as_me:$LINENO: result: $ac_res" >&5
11773 echo "${ECHO_T}$ac_res" >&6; }
11775 # Is the header compilable?
11776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11778 cat >conftest.$ac_ext <<_ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 $ac_includes_default
11785 #include <$ac_header>
11787 rm -f conftest.$ac_objext
11788 if { (ac_try="$ac_compile"
11789 case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_compile") 2>conftest.er1
11796 grep -v '^ *+' conftest.er1 >conftest.err
11798 cat conftest.err >&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } && {
11801 test -z "$ac_c_werror_flag" ||
11802 test ! -s conftest.err
11803 } && test -s conftest.$ac_objext; then
11804 ac_header_compiler=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_header_compiler=no
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814 echo "${ECHO_T}$ac_header_compiler" >&6; }
11816 # Is the header present?
11817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 #include <$ac_header>
11827 if { (ac_try="$ac_cpp conftest.$ac_ext"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } >/dev/null && {
11840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11843 ac_header_preproc=yes
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_header_preproc=no
11851 rm -f conftest.err conftest.$ac_ext
11852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11853 echo "${ECHO_T}$ac_header_preproc" >&6; }
11855 # So? What about this header?
11856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11862 ac_header_preproc=yes
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 eval "$as_ac_Header=\$ac_header_preproc"
11887 ac_res=`eval echo '${'$as_ac_Header'}'`
11888 { echo "$as_me:$LINENO: result: $ac_res" >&5
11889 echo "${ECHO_T}$ac_res" >&6; }
11892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11893 cat >>confdefs.h <<_ACEOF
11894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11903 for ac_header in sys/disk.h sys/mount.h
11905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 cat >conftest.$ac_ext <<_ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11918 #if HAVE_SYS_QUEUE_H
11919 #include <sys/queue.h>
11923 #include <$ac_header>
11925 rm -f conftest.$ac_objext
11926 if { (ac_try="$ac_compile"
11927 case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_compile") 2>conftest.er1
11934 grep -v '^ *+' conftest.er1 >conftest.err
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } && {
11939 test -z "$ac_c_werror_flag" ||
11940 test ! -s conftest.err
11941 } && test -s conftest.$ac_objext; then
11942 eval "$as_ac_Header=yes"
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 eval "$as_ac_Header=no"
11950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11952 ac_res=`eval echo '${'$as_ac_Header'}'`
11953 { echo "$as_me:$LINENO: result: $ac_res" >&5
11954 echo "${ECHO_T}$ac_res" >&6; }
11955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965 for ac_header in net/if.h
11967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 cat >conftest.$ac_ext <<_ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11980 #if HAVE_SYS_TYPES_H
11981 #include <sys/types.h>
11983 #if HAVE_SYS_SOCKET
11984 #include <sys/socket.h>
11988 #include <$ac_header>
11990 rm -f conftest.$ac_objext
11991 if { (ac_try="$ac_compile"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_compile") 2>conftest.er1
11999 grep -v '^ *+' conftest.er1 >conftest.err
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } && {
12004 test -z "$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12006 } && test -s conftest.$ac_objext; then
12007 eval "$as_ac_Header=yes"
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12012 eval "$as_ac_Header=no"
12015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017 ac_res=`eval echo '${'$as_ac_Header'}'`
12018 { echo "$as_me:$LINENO: result: $ac_res" >&5
12019 echo "${ECHO_T}$ac_res" >&6; }
12020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12021 cat >>confdefs.h <<_ACEOF
12022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12030 for ac_func in vprintf
12032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 cat >conftest.$ac_ext <<_ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12046 #define $ac_func innocuous_$ac_func
12048 /* System header to define __stub macros and hopefully few prototypes,
12049 which can conflict with char $ac_func (); below.
12050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12051 <limits.h> exists even on freestanding compilers. */
12054 # include <limits.h>
12056 # include <assert.h>
12061 /* Override any GCC internal prototype to avoid an error.
12062 Use char because int might match the return type of a GCC
12063 builtin and then its argument prototype would still apply. */
12068 /* The GNU C library defines this for functions which it implements
12069 to always fail with ENOSYS. Some functions are actually named
12070 something starting with __ and the normal name is an alias. */
12071 #if defined __stub_$ac_func || defined __stub___$ac_func
12078 return $ac_func ();
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (ac_try="$ac_link"
12085 case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_link") 2>conftest.er1
12092 grep -v '^ *+' conftest.er1 >conftest.err
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } && {
12097 test -z "$ac_c_werror_flag" ||
12098 test ! -s conftest.err
12099 } && test -s conftest$ac_exeext &&
12100 $as_test_x conftest$ac_exeext; then
12101 eval "$as_ac_var=yes"
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 eval "$as_ac_var=no"
12109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12110 conftest$ac_exeext conftest.$ac_ext
12112 ac_res=`eval echo '${'$as_ac_var'}'`
12113 { echo "$as_me:$LINENO: result: $ac_res" >&5
12114 echo "${ECHO_T}$ac_res" >&6; }
12115 if test `eval echo '${'$as_ac_var'}'` = yes; then
12116 cat >>confdefs.h <<_ACEOF
12117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12121 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12122 if test "${ac_cv_func__doprnt+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12133 #define _doprnt innocuous__doprnt
12135 /* System header to define __stub macros and hopefully few prototypes,
12136 which can conflict with char _doprnt (); below.
12137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12138 <limits.h> exists even on freestanding compilers. */
12141 # include <limits.h>
12143 # include <assert.h>
12148 /* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
12155 /* The GNU C library defines this for functions which it implements
12156 to always fail with ENOSYS. Some functions are actually named
12157 something starting with __ and the normal name is an alias. */
12158 #if defined __stub__doprnt || defined __stub____doprnt
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (ac_try="$ac_link"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_link") 2>conftest.er1
12179 grep -v '^ *+' conftest.er1 >conftest.err
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && {
12184 test -z "$ac_c_werror_flag" ||
12185 test ! -s conftest.err
12186 } && test -s conftest$ac_exeext &&
12187 $as_test_x conftest$ac_exeext; then
12188 ac_cv_func__doprnt=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 ac_cv_func__doprnt=no
12196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12197 conftest$ac_exeext conftest.$ac_ext
12199 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12200 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12201 if test $ac_cv_func__doprnt = yes; then
12203 cat >>confdefs.h <<\_ACEOF
12204 #define HAVE_DOPRNT 1
12213 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12214 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12215 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 cat >conftest.$ac_ext <<_ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 #include <dirent.h>
12229 static struct dirent ac_aggr;
12230 if (ac_aggr.d_reclen)
12236 rm -f conftest.$ac_objext
12237 if { (ac_try="$ac_compile"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_compile") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1 >conftest.err
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } && {
12250 test -z "$ac_c_werror_flag" ||
12251 test ! -s conftest.err
12252 } && test -s conftest.$ac_objext; then
12253 ac_cv_member_struct_dirent_d_reclen=yes
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12264 #include <dirent.h>
12269 static struct dirent ac_aggr;
12270 if (sizeof ac_aggr.d_reclen)
12276 rm -f conftest.$ac_objext
12277 if { (ac_try="$ac_compile"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_compile") 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_c_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest.$ac_objext; then
12293 ac_cv_member_struct_dirent_d_reclen=yes
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 ac_cv_member_struct_dirent_d_reclen=no
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12307 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12308 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12309 cat >>confdefs.h <<\_ACEOF
12310 #define HAVE_RECLEN_DIRENT 1
12315 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12316 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12317 if test "${ac_cv_type_ssize_t+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 cat >conftest.$ac_ext <<_ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 #include <sys/types.h>
12328 typedef ssize_t ac__type_new_;
12332 if ((ac__type_new_ *) 0)
12334 if (sizeof (ac__type_new_))
12340 rm -f conftest.$ac_objext
12341 if { (ac_try="$ac_compile"
12342 case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_compile") 2>conftest.er1
12349 grep -v '^ *+' conftest.er1 >conftest.err
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } && {
12354 test -z "$ac_c_werror_flag" ||
12355 test ! -s conftest.err
12356 } && test -s conftest.$ac_objext; then
12357 ac_cv_type_ssize_t=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_cv_type_ssize_t=no
12365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12367 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12368 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12369 if test $ac_cv_type_ssize_t = yes; then
12370 cat >>confdefs.h <<\_ACEOF
12371 #define HAVE_TYPE_SSIZE_T 1
12376 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12377 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12378 if test "${ac_cv_have_decl_llseek+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 cat >conftest.$ac_ext <<_ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12387 #include <unistd.h>
12400 rm -f conftest.$ac_objext
12401 if { (ac_try="$ac_compile"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_compile") 2>conftest.er1
12409 grep -v '^ *+' conftest.er1 >conftest.err
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } && {
12414 test -z "$ac_c_werror_flag" ||
12415 test ! -s conftest.err
12416 } && test -s conftest.$ac_objext; then
12417 ac_cv_have_decl_llseek=yes
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 ac_cv_have_decl_llseek=no
12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12428 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12429 if test $ac_cv_have_decl_llseek = yes; then
12430 cat >>confdefs.h <<\_ACEOF
12431 #define HAVE_LLSEEK_PROTOTYPE 1
12436 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12437 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12438 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 cat >conftest.$ac_ext <<_ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 #define _LARGEFILE_SOURCE
12448 #define _LARGEFILE64_SOURCE
12449 #include <unistd.h>
12462 rm -f conftest.$ac_objext
12463 if { (ac_try="$ac_compile"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest.$ac_objext; then
12479 ac_cv_have_decl_lseek64=yes
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 ac_cv_have_decl_lseek64=no
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12490 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12491 if test $ac_cv_have_decl_lseek64 = yes; then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define HAVE_LSEEK64_PROTOTYPE 1
12498 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12499 # if cross-compiling, with no cached values, just assume something common.
12500 ac_cv_sizeof_short=2
12502 ac_cv_sizeof_long=4
12503 ac_cv_sizeof_long_long=8
12504 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12505 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12507 { echo "$as_me:$LINENO: checking for short" >&5
12508 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12509 if test "${ac_cv_type_short+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 $ac_includes_default
12519 typedef short ac__type_new_;
12523 if ((ac__type_new_ *) 0)
12525 if (sizeof (ac__type_new_))
12531 rm -f conftest.$ac_objext
12532 if { (ac_try="$ac_compile"
12533 case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_compile") 2>conftest.er1
12540 grep -v '^ *+' conftest.er1 >conftest.err
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } && {
12545 test -z "$ac_c_werror_flag" ||
12546 test ! -s conftest.err
12547 } && test -s conftest.$ac_objext; then
12548 ac_cv_type_short=yes
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 ac_cv_type_short=no
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12558 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12559 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12561 # The cast to long int works around a bug in the HP C Compiler
12562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12564 # This bug is HP SR number 8606223364.
12565 { echo "$as_me:$LINENO: checking size of short" >&5
12566 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12567 if test "${ac_cv_sizeof_short+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 if test "$cross_compiling" = yes; then
12571 # Depending upon the size, compute the lo and hi bounds.
12572 cat >conftest.$ac_ext <<_ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12578 $ac_includes_default
12579 typedef short ac__type_sizeof_;
12583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12590 rm -f conftest.$ac_objext
12591 if { (ac_try="$ac_compile"
12592 case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_compile") 2>conftest.er1
12599 grep -v '^ *+' conftest.er1 >conftest.err
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } && {
12604 test -z "$ac_c_werror_flag" ||
12605 test ! -s conftest.err
12606 } && test -s conftest.$ac_objext; then
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 $ac_includes_default
12616 typedef short ac__type_sizeof_;
12620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12627 rm -f conftest.$ac_objext
12628 if { (ac_try="$ac_compile"
12629 case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_compile") 2>conftest.er1
12636 grep -v '^ *+' conftest.er1 >conftest.err
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } && {
12641 test -z "$ac_c_werror_flag" ||
12642 test ! -s conftest.err
12643 } && test -s conftest.$ac_objext; then
12644 ac_hi=$ac_mid; break
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_lo=`expr $ac_mid + 1`
12650 if test $ac_lo -le $ac_mid; then
12654 ac_mid=`expr 2 '*' $ac_mid + 1`
12657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 cat >conftest.$ac_ext <<_ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12669 $ac_includes_default
12670 typedef short ac__type_sizeof_;
12674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12681 rm -f conftest.$ac_objext
12682 if { (ac_try="$ac_compile"
12683 case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_compile") 2>conftest.er1
12690 grep -v '^ *+' conftest.er1 >conftest.err
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } && {
12695 test -z "$ac_c_werror_flag" ||
12696 test ! -s conftest.err
12697 } && test -s conftest.$ac_objext; then
12700 cat >conftest.$ac_ext <<_ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12706 $ac_includes_default
12707 typedef short ac__type_sizeof_;
12711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12718 rm -f conftest.$ac_objext
12719 if { (ac_try="$ac_compile"
12720 case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_compile") 2>conftest.er1
12727 grep -v '^ *+' conftest.er1 >conftest.err
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } && {
12732 test -z "$ac_c_werror_flag" ||
12733 test ! -s conftest.err
12734 } && test -s conftest.$ac_objext; then
12735 ac_lo=$ac_mid; break
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 ac_hi=`expr '(' $ac_mid ')' - 1`
12741 if test $ac_mid -le $ac_hi; then
12745 ac_mid=`expr 2 '*' $ac_mid`
12748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12761 # Binary search between lo and hi bounds.
12762 while test "x$ac_lo" != "x$ac_hi"; do
12763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12764 cat >conftest.$ac_ext <<_ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12770 $ac_includes_default
12771 typedef short ac__type_sizeof_;
12775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12782 rm -f conftest.$ac_objext
12783 if { (ac_try="$ac_compile"
12784 case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_compile") 2>conftest.er1
12791 grep -v '^ *+' conftest.er1 >conftest.err
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest.$ac_objext; then
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12804 ac_lo=`expr '(' $ac_mid ')' + 1`
12807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12810 ?*) ac_cv_sizeof_short=$ac_lo;;
12811 '') if test "$ac_cv_type_short" = yes; then
12812 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12813 See \`config.log' for more details." >&5
12814 echo "$as_me: error: cannot compute sizeof (short)
12815 See \`config.log' for more details." >&2;}
12816 { (exit 77); exit 77; }; }
12818 ac_cv_sizeof_short=0
12822 cat >conftest.$ac_ext <<_ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 $ac_includes_default
12829 typedef short ac__type_sizeof_;
12830 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12831 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12833 #include <stdlib.h>
12838 FILE *f = fopen ("conftest.val", "w");
12841 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12843 long int i = longval ();
12844 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12846 fprintf (f, "%ld\n", i);
12850 unsigned long int i = ulongval ();
12851 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12853 fprintf (f, "%lu\n", i);
12855 return ferror (f) || fclose (f) != 0;
12861 rm -f conftest$ac_exeext
12862 if { (ac_try="$ac_link"
12863 case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_link") 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12872 { (case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_try") 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 ac_cv_sizeof_short=`cat conftest.val`
12883 echo "$as_me: program exited with status $ac_status" >&5
12884 echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12887 ( exit $ac_status )
12888 if test "$ac_cv_type_short" = yes; then
12889 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12890 See \`config.log' for more details." >&5
12891 echo "$as_me: error: cannot compute sizeof (short)
12892 See \`config.log' for more details." >&2;}
12893 { (exit 77); exit 77; }; }
12895 ac_cv_sizeof_short=0
12898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12902 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12903 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12907 cat >>confdefs.h <<_ACEOF
12908 #define SIZEOF_SHORT $ac_cv_sizeof_short
12912 { echo "$as_me:$LINENO: checking for int" >&5
12913 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12914 if test "${ac_cv_type_int+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 cat >conftest.$ac_ext <<_ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923 $ac_includes_default
12924 typedef int ac__type_new_;
12928 if ((ac__type_new_ *) 0)
12930 if (sizeof (ac__type_new_))
12936 rm -f conftest.$ac_objext
12937 if { (ac_try="$ac_compile"
12938 case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_compile") 2>conftest.er1
12945 grep -v '^ *+' conftest.er1 >conftest.err
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } && {
12950 test -z "$ac_c_werror_flag" ||
12951 test ! -s conftest.err
12952 } && test -s conftest.$ac_objext; then
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12963 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12964 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12966 # The cast to long int works around a bug in the HP C Compiler
12967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12969 # This bug is HP SR number 8606223364.
12970 { echo "$as_me:$LINENO: checking size of int" >&5
12971 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12972 if test "${ac_cv_sizeof_int+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 if test "$cross_compiling" = yes; then
12976 # Depending upon the size, compute the lo and hi bounds.
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 $ac_includes_default
12984 typedef int ac__type_sizeof_;
12988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12995 rm -f conftest.$ac_objext
12996 if { (ac_try="$ac_compile"
12997 case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_compile") 2>conftest.er1
13004 grep -v '^ *+' conftest.er1 >conftest.err
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } && {
13009 test -z "$ac_c_werror_flag" ||
13010 test ! -s conftest.err
13011 } && test -s conftest.$ac_objext; then
13014 cat >conftest.$ac_ext <<_ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13020 $ac_includes_default
13021 typedef int ac__type_sizeof_;
13025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13032 rm -f conftest.$ac_objext
13033 if { (ac_try="$ac_compile"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_compile") 2>conftest.er1
13041 grep -v '^ *+' conftest.er1 >conftest.err
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } && {
13046 test -z "$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13048 } && test -s conftest.$ac_objext; then
13049 ac_hi=$ac_mid; break
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 ac_lo=`expr $ac_mid + 1`
13055 if test $ac_lo -le $ac_mid; then
13059 ac_mid=`expr 2 '*' $ac_mid + 1`
13062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13068 cat >conftest.$ac_ext <<_ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13074 $ac_includes_default
13075 typedef int ac__type_sizeof_;
13079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13086 rm -f conftest.$ac_objext
13087 if { (ac_try="$ac_compile"
13088 case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_compile") 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest.$ac_objext; then
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13111 $ac_includes_default
13112 typedef int ac__type_sizeof_;
13116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13123 rm -f conftest.$ac_objext
13124 if { (ac_try="$ac_compile"
13125 case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_compile") 2>conftest.er1
13132 grep -v '^ *+' conftest.er1 >conftest.err
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } && {
13137 test -z "$ac_c_werror_flag" ||
13138 test ! -s conftest.err
13139 } && test -s conftest.$ac_objext; then
13140 ac_lo=$ac_mid; break
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13145 ac_hi=`expr '(' $ac_mid ')' - 1`
13146 if test $ac_mid -le $ac_hi; then
13150 ac_mid=`expr 2 '*' $ac_mid`
13153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 # Binary search between lo and hi bounds.
13167 while test "x$ac_lo" != "x$ac_hi"; do
13168 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13169 cat >conftest.$ac_ext <<_ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13175 $ac_includes_default
13176 typedef int ac__type_sizeof_;
13180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13187 rm -f conftest.$ac_objext
13188 if { (ac_try="$ac_compile"
13189 case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_compile") 2>conftest.er1
13196 grep -v '^ *+' conftest.er1 >conftest.err
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } && {
13201 test -z "$ac_c_werror_flag" ||
13202 test ! -s conftest.err
13203 } && test -s conftest.$ac_objext; then
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 ac_lo=`expr '(' $ac_mid ')' + 1`
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13215 ?*) ac_cv_sizeof_int=$ac_lo;;
13216 '') if test "$ac_cv_type_int" = yes; then
13217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13218 See \`config.log' for more details." >&5
13219 echo "$as_me: error: cannot compute sizeof (int)
13220 See \`config.log' for more details." >&2;}
13221 { (exit 77); exit 77; }; }
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 $ac_includes_default
13234 typedef int ac__type_sizeof_;
13235 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13236 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13238 #include <stdlib.h>
13243 FILE *f = fopen ("conftest.val", "w");
13246 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13248 long int i = longval ();
13249 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13251 fprintf (f, "%ld\n", i);
13255 unsigned long int i = ulongval ();
13256 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13258 fprintf (f, "%lu\n", i);
13260 return ferror (f) || fclose (f) != 0;
13266 rm -f conftest$ac_exeext
13267 if { (ac_try="$ac_link"
13268 case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273 (eval "$ac_link") 2>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13277 { (case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_try") 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 ac_cv_sizeof_int=`cat conftest.val`
13288 echo "$as_me: program exited with status $ac_status" >&5
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13292 ( exit $ac_status )
13293 if test "$ac_cv_type_int" = yes; then
13294 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13295 See \`config.log' for more details." >&5
13296 echo "$as_me: error: cannot compute sizeof (int)
13297 See \`config.log' for more details." >&2;}
13298 { (exit 77); exit 77; }; }
13303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13307 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13308 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13312 cat >>confdefs.h <<_ACEOF
13313 #define SIZEOF_INT $ac_cv_sizeof_int
13317 { echo "$as_me:$LINENO: checking for long" >&5
13318 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13319 if test "${ac_cv_type_long+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 cat >conftest.$ac_ext <<_ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 $ac_includes_default
13329 typedef long ac__type_new_;
13333 if ((ac__type_new_ *) 0)
13335 if (sizeof (ac__type_new_))
13341 rm -f conftest.$ac_objext
13342 if { (ac_try="$ac_compile"
13343 case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_compile") 2>conftest.er1
13350 grep -v '^ *+' conftest.er1 >conftest.err
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } && {
13355 test -z "$ac_c_werror_flag" ||
13356 test ! -s conftest.err
13357 } && test -s conftest.$ac_objext; then
13358 ac_cv_type_long=yes
13360 echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13369 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13371 # The cast to long int works around a bug in the HP C Compiler
13372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13374 # This bug is HP SR number 8606223364.
13375 { echo "$as_me:$LINENO: checking size of long" >&5
13376 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13377 if test "${ac_cv_sizeof_long+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 if test "$cross_compiling" = yes; then
13381 # Depending upon the size, compute the lo and hi bounds.
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 $ac_includes_default
13389 typedef long ac__type_sizeof_;
13393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13400 rm -f conftest.$ac_objext
13401 if { (ac_try="$ac_compile"
13402 case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_compile") 2>conftest.er1
13409 grep -v '^ *+' conftest.er1 >conftest.err
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && {
13414 test -z "$ac_c_werror_flag" ||
13415 test ! -s conftest.err
13416 } && test -s conftest.$ac_objext; then
13419 cat >conftest.$ac_ext <<_ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h. */
13425 $ac_includes_default
13426 typedef long ac__type_sizeof_;
13430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13437 rm -f conftest.$ac_objext
13438 if { (ac_try="$ac_compile"
13439 case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_compile") 2>conftest.er1
13446 grep -v '^ *+' conftest.er1 >conftest.err
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } && {
13451 test -z "$ac_c_werror_flag" ||
13452 test ! -s conftest.err
13453 } && test -s conftest.$ac_objext; then
13454 ac_hi=$ac_mid; break
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 ac_lo=`expr $ac_mid + 1`
13460 if test $ac_lo -le $ac_mid; then
13464 ac_mid=`expr 2 '*' $ac_mid + 1`
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 cat >conftest.$ac_ext <<_ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 $ac_includes_default
13480 typedef long ac__type_sizeof_;
13484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13491 rm -f conftest.$ac_objext
13492 if { (ac_try="$ac_compile"
13493 case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_compile") 2>conftest.er1
13500 grep -v '^ *+' conftest.er1 >conftest.err
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest.$ac_objext; then
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 $ac_includes_default
13517 typedef long ac__type_sizeof_;
13521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13528 rm -f conftest.$ac_objext
13529 if { (ac_try="$ac_compile"
13530 case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_compile") 2>conftest.er1
13537 grep -v '^ *+' conftest.er1 >conftest.err
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } && {
13542 test -z "$ac_c_werror_flag" ||
13543 test ! -s conftest.err
13544 } && test -s conftest.$ac_objext; then
13545 ac_lo=$ac_mid; break
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13550 ac_hi=`expr '(' $ac_mid ')' - 1`
13551 if test $ac_mid -le $ac_hi; then
13555 ac_mid=`expr 2 '*' $ac_mid`
13558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13571 # Binary search between lo and hi bounds.
13572 while test "x$ac_lo" != "x$ac_hi"; do
13573 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 $ac_includes_default
13581 typedef long ac__type_sizeof_;
13585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13592 rm -f conftest.$ac_objext
13593 if { (ac_try="$ac_compile"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_compile") 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } && {
13606 test -z "$ac_c_werror_flag" ||
13607 test ! -s conftest.err
13608 } && test -s conftest.$ac_objext; then
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13614 ac_lo=`expr '(' $ac_mid ')' + 1`
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620 ?*) ac_cv_sizeof_long=$ac_lo;;
13621 '') if test "$ac_cv_type_long" = yes; then
13622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13623 See \`config.log' for more details." >&5
13624 echo "$as_me: error: cannot compute sizeof (long)
13625 See \`config.log' for more details." >&2;}
13626 { (exit 77); exit 77; }; }
13628 ac_cv_sizeof_long=0
13632 cat >conftest.$ac_ext <<_ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 $ac_includes_default
13639 typedef long ac__type_sizeof_;
13640 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13641 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13643 #include <stdlib.h>
13648 FILE *f = fopen ("conftest.val", "w");
13651 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13653 long int i = longval ();
13654 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13656 fprintf (f, "%ld\n", i);
13660 unsigned long int i = ulongval ();
13661 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13663 fprintf (f, "%lu\n", i);
13665 return ferror (f) || fclose (f) != 0;
13671 rm -f conftest$ac_exeext
13672 if { (ac_try="$ac_link"
13673 case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678 (eval "$ac_link") 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13682 { (case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_try") 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_sizeof_long=`cat conftest.val`
13693 echo "$as_me: program exited with status $ac_status" >&5
13694 echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13697 ( exit $ac_status )
13698 if test "$ac_cv_type_long" = yes; then
13699 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13700 See \`config.log' for more details." >&5
13701 echo "$as_me: error: cannot compute sizeof (long)
13702 See \`config.log' for more details." >&2;}
13703 { (exit 77); exit 77; }; }
13705 ac_cv_sizeof_long=0
13708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13712 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13713 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13717 cat >>confdefs.h <<_ACEOF
13718 #define SIZEOF_LONG $ac_cv_sizeof_long
13722 { echo "$as_me:$LINENO: checking for long long" >&5
13723 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13724 if test "${ac_cv_type_long_long+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 $ac_includes_default
13734 typedef long long ac__type_new_;
13738 if ((ac__type_new_ *) 0)
13740 if (sizeof (ac__type_new_))
13746 rm -f conftest.$ac_objext
13747 if { (ac_try="$ac_compile"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_compile") 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } && {
13760 test -z "$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 } && test -s conftest.$ac_objext; then
13763 ac_cv_type_long_long=yes
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13768 ac_cv_type_long_long=no
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13774 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13776 # The cast to long int works around a bug in the HP C Compiler
13777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13779 # This bug is HP SR number 8606223364.
13780 { echo "$as_me:$LINENO: checking size of long long" >&5
13781 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13782 if test "${ac_cv_sizeof_long_long+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 if test "$cross_compiling" = yes; then
13786 # Depending upon the size, compute the lo and hi bounds.
13787 cat >conftest.$ac_ext <<_ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 $ac_includes_default
13794 typedef long long ac__type_sizeof_;
13798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13805 rm -f conftest.$ac_objext
13806 if { (ac_try="$ac_compile"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_compile") 2>conftest.er1
13814 grep -v '^ *+' conftest.er1 >conftest.err
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } && {
13819 test -z "$ac_c_werror_flag" ||
13820 test ! -s conftest.err
13821 } && test -s conftest.$ac_objext; then
13824 cat >conftest.$ac_ext <<_ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 $ac_includes_default
13831 typedef long long ac__type_sizeof_;
13835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13842 rm -f conftest.$ac_objext
13843 if { (ac_try="$ac_compile"
13844 case "(($ac_try" in
13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846 *) ac_try_echo=$ac_try;;
13848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_compile") 2>conftest.er1
13851 grep -v '^ *+' conftest.er1 >conftest.err
13853 cat conftest.err >&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } && {
13856 test -z "$ac_c_werror_flag" ||
13857 test ! -s conftest.err
13858 } && test -s conftest.$ac_objext; then
13859 ac_hi=$ac_mid; break
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13864 ac_lo=`expr $ac_mid + 1`
13865 if test $ac_lo -le $ac_mid; then
13869 ac_mid=`expr 2 '*' $ac_mid + 1`
13872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13878 cat >conftest.$ac_ext <<_ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 $ac_includes_default
13885 typedef long long ac__type_sizeof_;
13889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13896 rm -f conftest.$ac_objext
13897 if { (ac_try="$ac_compile"
13898 case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_compile") 2>conftest.er1
13905 grep -v '^ *+' conftest.er1 >conftest.err
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest.$ac_objext; then
13915 cat >conftest.$ac_ext <<_ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13921 $ac_includes_default
13922 typedef long long ac__type_sizeof_;
13926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13933 rm -f conftest.$ac_objext
13934 if { (ac_try="$ac_compile"
13935 case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_compile") 2>conftest.er1
13942 grep -v '^ *+' conftest.er1 >conftest.err
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } && {
13947 test -z "$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 } && test -s conftest.$ac_objext; then
13950 ac_lo=$ac_mid; break
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_hi=`expr '(' $ac_mid ')' - 1`
13956 if test $ac_mid -le $ac_hi; then
13960 ac_mid=`expr 2 '*' $ac_mid`
13963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 # Binary search between lo and hi bounds.
13977 while test "x$ac_lo" != "x$ac_hi"; do
13978 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 $ac_includes_default
13986 typedef long long ac__type_sizeof_;
13990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13997 rm -f conftest.$ac_objext
13998 if { (ac_try="$ac_compile"
13999 case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_compile") 2>conftest.er1
14006 grep -v '^ *+' conftest.er1 >conftest.err
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } && {
14011 test -z "$ac_c_werror_flag" ||
14012 test ! -s conftest.err
14013 } && test -s conftest.$ac_objext; then
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 ac_lo=`expr '(' $ac_mid ')' + 1`
14022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14026 '') if test "$ac_cv_type_long_long" = yes; then
14027 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14028 See \`config.log' for more details." >&5
14029 echo "$as_me: error: cannot compute sizeof (long long)
14030 See \`config.log' for more details." >&2;}
14031 { (exit 77); exit 77; }; }
14033 ac_cv_sizeof_long_long=0
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14044 typedef long long ac__type_sizeof_;
14045 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14046 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14048 #include <stdlib.h>
14053 FILE *f = fopen ("conftest.val", "w");
14056 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14058 long int i = longval ();
14059 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14061 fprintf (f, "%ld\n", i);
14065 unsigned long int i = ulongval ();
14066 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14068 fprintf (f, "%lu\n", i);
14070 return ferror (f) || fclose (f) != 0;
14076 rm -f conftest$ac_exeext
14077 if { (ac_try="$ac_link"
14078 case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_link") 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14087 { (case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_try") 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_sizeof_long_long=`cat conftest.val`
14098 echo "$as_me: program exited with status $ac_status" >&5
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ( exit $ac_status )
14103 if test "$ac_cv_type_long_long" = yes; then
14104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14105 See \`config.log' for more details." >&5
14106 echo "$as_me: error: cannot compute sizeof (long long)
14107 See \`config.log' for more details." >&2;}
14108 { (exit 77); exit 77; }; }
14110 ac_cv_sizeof_long_long=0
14113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14117 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14118 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14122 cat >>confdefs.h <<_ACEOF
14123 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14127 SIZEOF_SHORT=$ac_cv_sizeof_short
14128 SIZEOF_INT=$ac_cv_sizeof_int
14129 SIZEOF_LONG=$ac_cv_sizeof_long
14130 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14135 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14136 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14137 if test "${ac_cv_c_bigendian+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 # See if sys/param.h defines the BYTE_ORDER macro.
14141 cat >conftest.$ac_ext <<_ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <sys/types.h>
14148 #include <sys/param.h>
14153 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14154 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14155 bogus endian macros
14162 rm -f conftest.$ac_objext
14163 if { (ac_try="$ac_compile"
14164 case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169 (eval "$ac_compile") 2>conftest.er1
14171 grep -v '^ *+' conftest.er1 >conftest.err
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } && {
14176 test -z "$ac_c_werror_flag" ||
14177 test ! -s conftest.err
14178 } && test -s conftest.$ac_objext; then
14179 # It does; now see whether it defined to BIG_ENDIAN or not.
14180 cat >conftest.$ac_ext <<_ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14186 #include <sys/types.h>
14187 #include <sys/param.h>
14192 #if BYTE_ORDER != BIG_ENDIAN
14200 rm -f conftest.$ac_objext
14201 if { (ac_try="$ac_compile"
14202 case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_compile") 2>conftest.er1
14209 grep -v '^ *+' conftest.er1 >conftest.err
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } && {
14214 test -z "$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 } && test -s conftest.$ac_objext; then
14217 ac_cv_c_bigendian=yes
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 ac_cv_c_bigendian=no
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 # It does not; compile a test program.
14231 if test "$cross_compiling" = yes; then
14232 # try to guess the endianness by grepping values into an object file
14233 ac_cv_c_bigendian=unknown
14234 cat >conftest.$ac_ext <<_ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14240 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14241 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14242 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14243 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14244 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14245 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14249 _ascii (); _ebcdic ();
14254 rm -f conftest.$ac_objext
14255 if { (ac_try="$ac_compile"
14256 case "(($ac_try" in
14257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14258 *) ac_try_echo=$ac_try;;
14260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261 (eval "$ac_compile") 2>conftest.er1
14263 grep -v '^ *+' conftest.er1 >conftest.err
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && {
14268 test -z "$ac_c_werror_flag" ||
14269 test ! -s conftest.err
14270 } && test -s conftest.$ac_objext; then
14271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14272 ac_cv_c_bigendian=yes
14274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14275 if test "$ac_cv_c_bigendian" = unknown; then
14276 ac_cv_c_bigendian=no
14278 # finding both strings is unlikely to happen, but who knows?
14279 ac_cv_c_bigendian=unknown
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291 cat >conftest.$ac_ext <<_ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 $ac_includes_default
14302 /* Are we little or big endian? From Harbison&Steele. */
14306 char c[sizeof (long int)];
14309 return u.c[sizeof (long int) - 1] == 1;
14315 rm -f conftest$ac_exeext
14316 if { (ac_try="$ac_link"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_link") 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14326 { (case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_try") 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_c_bigendian=no
14337 echo "$as_me: program exited with status $ac_status" >&5
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ( exit $ac_status )
14342 ac_cv_c_bigendian=yes
14344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14354 case $ac_cv_c_bigendian in
14357 cat >>confdefs.h <<\_ACEOF
14358 #define WORDS_BIGENDIAN 1
14364 { { echo "$as_me:$LINENO: error: unknown endianness
14365 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14366 echo "$as_me: error: unknown endianness
14367 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14368 { (exit 1); exit 1; }; } ;;
14371 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14372 ASM_TYPES_HEADER=./asm_types.h
14375 for ac_header in inttypes.h
14377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 ac_res=`eval echo '${'$as_ac_Header'}'`
14385 { echo "$as_me:$LINENO: result: $ac_res" >&5
14386 echo "${ECHO_T}$ac_res" >&6; }
14388 # Is the header compilable?
14389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 $ac_includes_default
14398 #include <$ac_header>
14400 rm -f conftest.$ac_objext
14401 if { (ac_try="$ac_compile"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_compile") 2>conftest.er1
14409 grep -v '^ *+' conftest.er1 >conftest.err
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } && {
14414 test -z "$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 } && test -s conftest.$ac_objext; then
14417 ac_header_compiler=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_header_compiler=no
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14427 echo "${ECHO_T}$ac_header_compiler" >&6; }
14429 # Is the header present?
14430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14432 cat >conftest.$ac_ext <<_ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14438 #include <$ac_header>
14440 if { (ac_try="$ac_cpp conftest.$ac_ext"
14441 case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14448 grep -v '^ *+' conftest.er1 >conftest.err
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } >/dev/null && {
14453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14454 test ! -s conftest.err
14456 ac_header_preproc=yes
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 ac_header_preproc=no
14464 rm -f conftest.err conftest.$ac_ext
14465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14466 echo "${ECHO_T}$ac_header_preproc" >&6; }
14468 # So? What about this header?
14469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14475 ac_header_preproc=yes
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 eval "$as_ac_Header=\$ac_header_preproc"
14500 ac_res=`eval echo '${'$as_ac_Header'}'`
14501 { echo "$as_me:$LINENO: result: $ac_res" >&5
14502 echo "${ECHO_T}$ac_res" >&6; }
14505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14506 cat >>confdefs.h <<_ACEOF
14507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14514 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14515 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14516 if test "${ac_cv_type_intptr_t+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 cat >conftest.$ac_ext <<_ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14525 $ac_includes_default
14526 typedef intptr_t ac__type_new_;
14530 if ((ac__type_new_ *) 0)
14532 if (sizeof (ac__type_new_))
14538 rm -f conftest.$ac_objext
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_compile") 2>conftest.er1
14547 grep -v '^ *+' conftest.er1 >conftest.err
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest.$ac_objext; then
14555 ac_cv_type_intptr_t=yes
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14560 ac_cv_type_intptr_t=no
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14566 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14567 if test $ac_cv_type_intptr_t = yes; then
14569 cat >>confdefs.h <<_ACEOF
14570 #define HAVE_INTPTR_T 1
14576 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14577 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14578 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 #include <sys/stat.h>
14591 struct stat stat; stat.st_flags = 0;
14596 rm -f conftest.$ac_objext
14597 if { (ac_try="$ac_compile"
14598 case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_compile") 2>conftest.er1
14605 grep -v '^ *+' conftest.er1 >conftest.err
14607 cat conftest.err >&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } && {
14610 test -z "$ac_c_werror_flag" ||
14611 test ! -s conftest.err
14612 } && test -s conftest.$ac_objext; then
14613 e2fsprogs_cv_struct_st_flags=yes
14615 echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14618 e2fsprogs_cv_struct_st_flags=no
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14625 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14626 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14627 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14628 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14629 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 cat >conftest.$ac_ext <<_ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 #include <sys/stat.h>
14642 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14647 rm -f conftest.$ac_objext
14648 if { (ac_try="$ac_compile"
14649 case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_compile") 2>conftest.er1
14656 grep -v '^ *+' conftest.er1 >conftest.err
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && {
14661 test -z "$ac_c_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest.$ac_objext; then
14664 e2fsprogs_cv_struct_st_flags_immut=yes
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 e2fsprogs_cv_struct_st_flags_immut=no
14672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14675 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14676 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14677 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14678 cat >>confdefs.h <<\_ACEOF
14679 #define HAVE_STAT_FLAGS 1
14684 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14685 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14686 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 cat >conftest.$ac_ext <<_ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 #include <sys/types.h>
14696 #include <sys/socket.h>
14701 static struct sockaddr ac_aggr;
14702 if (ac_aggr.sa_len)
14708 rm -f conftest.$ac_objext
14709 if { (ac_try="$ac_compile"
14710 case "(($ac_try" in
14711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712 *) ac_try_echo=$ac_try;;
14714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715 (eval "$ac_compile") 2>conftest.er1
14717 grep -v '^ *+' conftest.er1 >conftest.err
14719 cat conftest.err >&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } && {
14722 test -z "$ac_c_werror_flag" ||
14723 test ! -s conftest.err
14724 } && test -s conftest.$ac_objext; then
14725 ac_cv_member_struct_sockaddr_sa_len=yes
14727 echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14730 cat >conftest.$ac_ext <<_ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 #include <sys/types.h>
14737 #include <sys/socket.h>
14742 static struct sockaddr ac_aggr;
14743 if (sizeof ac_aggr.sa_len)
14749 rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_compile") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest.$ac_objext; then
14766 ac_cv_member_struct_sockaddr_sa_len=yes
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 ac_cv_member_struct_sockaddr_sa_len=no
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14780 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14781 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14783 cat >>confdefs.h <<_ACEOF
14784 #define HAVE_SA_LEN 1
14818 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
14820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14834 #define $ac_func innocuous_$ac_func
14836 /* System header to define __stub macros and hopefully few prototypes,
14837 which can conflict with char $ac_func (); below.
14838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839 <limits.h> exists even on freestanding compilers. */
14842 # include <limits.h>
14844 # include <assert.h>
14849 /* Override any GCC internal prototype to avoid an error.
14850 Use char because int might match the return type of a GCC
14851 builtin and then its argument prototype would still apply. */
14856 /* The GNU C library defines this for functions which it implements
14857 to always fail with ENOSYS. Some functions are actually named
14858 something starting with __ and the normal name is an alias. */
14859 #if defined __stub_$ac_func || defined __stub___$ac_func
14866 return $ac_func ();
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (ac_try="$ac_link"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_link") 2>conftest.er1
14880 grep -v '^ *+' conftest.er1 >conftest.err
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest$ac_exeext &&
14888 $as_test_x conftest$ac_exeext; then
14889 eval "$as_ac_var=yes"
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 eval "$as_ac_var=no"
14897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14898 conftest$ac_exeext conftest.$ac_ext
14900 ac_res=`eval echo '${'$as_ac_var'}'`
14901 { echo "$as_me:$LINENO: result: $ac_res" >&5
14902 echo "${ECHO_T}$ac_res" >&6; }
14903 if test `eval echo '${'$as_ac_var'}'` = yes; then
14904 cat >>confdefs.h <<_ACEOF
14905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14912 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14913 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14914 if test "${ac_cv_lib_socket_socket+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 ac_check_lib_save_LIBS=$LIBS
14918 LIBS="-lsocket $LIBS"
14919 cat >conftest.$ac_ext <<_ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14926 /* Override any GCC internal prototype to avoid an error.
14927 Use char because int might match the return type of a GCC
14928 builtin and then its argument prototype would still apply. */
14941 rm -f conftest.$ac_objext conftest$ac_exeext
14942 if { (ac_try="$ac_link"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_link") 2>conftest.er1
14950 grep -v '^ *+' conftest.er1 >conftest.err
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } && {
14955 test -z "$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14957 } && test -s conftest$ac_exeext &&
14958 $as_test_x conftest$ac_exeext; then
14959 ac_cv_lib_socket_socket=yes
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 ac_cv_lib_socket_socket=no
14967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14968 conftest$ac_exeext conftest.$ac_ext
14969 LIBS=$ac_check_lib_save_LIBS
14971 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14972 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14973 if test $ac_cv_lib_socket_socket = yes; then
14974 SOCKET_LIB=-lsocket
14979 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 ac_check_lib_save_LIBS=$LIBS
14986 cat >conftest.$ac_ext <<_ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14993 /* Override any GCC internal prototype to avoid an error.
14994 Use char because int might match the return type of a GCC
14995 builtin and then its argument prototype would still apply. */
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (ac_try="$ac_link"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_link") 2>conftest.er1
15017 grep -v '^ *+' conftest.er1 >conftest.err
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && {
15022 test -z "$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest$ac_exeext &&
15025 $as_test_x conftest$ac_exeext; then
15026 ac_cv_lib_dl_dlopen=yes
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_cv_lib_dl_dlopen=no
15034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15035 conftest$ac_exeext conftest.$ac_ext
15036 LIBS=$ac_check_lib_save_LIBS
15038 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15039 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15040 if test $ac_cv_lib_dl_dlopen = yes; then
15042 cat >>confdefs.h <<\_ACEOF
15043 #define HAVE_DLOPEN 1
15049 { echo "$as_me:$LINENO: checking for optreset" >&5
15050 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15051 if test "${ac_cv_have_optreset+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 cat >conftest.$ac_ext <<_ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060 #include <unistd.h>
15063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15064 $EGREP "optreset" >/dev/null 2>&1; then
15065 ac_cv_have_optreset=yes
15067 ac_cv_have_optreset=no
15072 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15073 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15074 if test $ac_cv_have_optreset = yes; then
15075 cat >>confdefs.h <<\_ACEOF
15076 #define HAVE_OPTRESET 1
15080 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15081 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15082 if diff -u $0 $0 > /dev/null 2>&1 ; then
15087 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15088 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15092 cat >>confdefs.h <<\_ACEOF
15093 #define HAVE_EXT2_IOCTLS 1
15114 linux* | gnu* | k*bsd*-gnu)
15115 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15117 echo "On $host_os systems, root_prefix defaults to ''"
15122 linux* | gnu* | k*bsd*-gnu)
15123 if test "$prefix" = NONE ; then
15125 echo "On $host_os systems, prefix defaults to /usr"
15126 if test "$mandir" = '${prefix}/man' ; then
15127 echo "...and mandir defaults to /usr/share/man"
15128 mandir=/usr/share/man
15133 if test "$root_prefix" = NONE ; then
15134 if test "$prefix" = NONE ; then
15135 root_prefix="$ac_default_prefix"
15137 root_prefix="$prefix"
15139 root_bindir=$bindir
15140 root_sbindir=$sbindir
15141 root_libdir=$libdir
15142 root_sysconfdir=$sysconfdir
15144 root_bindir='${root_prefix}/bin'
15145 root_sbindir='${root_prefix}/sbin'
15146 root_libdir='${root_prefix}/lib'
15147 root_sysconfdir='${root_prefix}/etc'
15149 if test "$bindir" != '${exec_prefix}/bin'; then
15150 root_bindir=$bindir
15151 echo "Setting root_bindir to $root_bindir"
15153 if test "$sbindir" != '${exec_prefix}/sbin'; then
15154 root_sbindir=$sbindir
15155 echo "Setting root_sbindir to $root_sbindir"
15157 if test "$libdir" != '${exec_prefix}/lib'; then
15158 root_libdir=$libdir
15159 echo "Setting root_libdir to $root_libdir"
15161 if test "$sysconfdir" != '${prefix}/etc'; then
15162 root_sysconfdir=$sysconfdir
15163 echo "Setting root_sysconfdir to $root_sysconfdir"
15170 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15171 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15172 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15191 rm -f conftest.$ac_objext conftest$ac_exeext
15192 if { (ac_try="$ac_link"
15193 case "(($ac_try" in
15194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15195 *) ac_try_echo=$ac_try;;
15197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15198 (eval "$ac_link") 2>conftest.er1
15200 grep -v '^ *+' conftest.er1 >conftest.err
15202 cat conftest.err >&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } && {
15205 test -z "$ac_c_werror_flag" ||
15206 test ! -s conftest.err
15207 } && test -s conftest$ac_exeext &&
15208 $as_test_x conftest$ac_exeext; then
15209 ac_cv_e2fsprogs_use_static=yes
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15214 ac_cv_e2fsprogs_use_static=no
15217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15218 conftest$ac_exeext conftest.$ac_ext
15219 LDFLAGS=$SAVE_LDFLAGS
15224 ac_cv_e2fsprogs_use_static=no
15227 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15228 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15230 if test $ac_cv_e2fsprogs_use_static = yes; then
15231 LDFLAG_STATIC=-static
15236 echo "Using Apple Darwin / GNU libintl workaround"
15237 cat >>confdefs.h <<\_ACEOF
15238 #define _INTL_REDIRECT_MACROS 1
15243 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15244 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15247 if test "$cross_compiling" = yes ; then
15250 DO_TEST_SUITE=check
15254 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15255 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15258 if test $cross_compiling = no; then
15259 BUILD_CFLAGS="$CFLAGS"
15260 BUILD_LDFLAGS="$LDFLAGS"
15267 test -d lib || mkdir lib
15268 test -d include || mkdir include
15269 test -d include/linux || mkdir include/linux
15270 test -d include/asm || mkdir include/asm
15271 for i in MCONFIG Makefile e2fsprogs.spec \
15272 util/Makefile util/subst.conf util/gen-tarball \
15273 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15274 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15275 lib/uuid/Makefile lib/uuid/uuid_types.h \
15276 lib/blkid/Makefile lib/blkid/blkid_types.h \
15277 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15278 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15279 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15280 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15281 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15282 if test -d `dirname ${srcdir}/$i` ; then
15283 outlist="$outlist $i"
15286 ac_config_files="$ac_config_files $outlist"
15288 cat >confcache <<\_ACEOF
15289 # This file is a shell script that caches the results of configure
15290 # tests run on this system so they can be shared between configure
15291 # scripts and configure runs, see configure's option --config-cache.
15292 # It is not useful on other systems. If it contains results you don't
15293 # want to keep, you may remove or edit it.
15295 # config.status only pays attention to the cache file if you give it
15296 # the --recheck option to rerun configure.
15298 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15299 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15300 # following values.
15304 # The following way of writing the cache mishandles newlines in values,
15305 # but we know of no workaround that is simple, portable, and efficient.
15306 # So, we kill variables containing newlines.
15307 # Ultrix sh set writes to stderr and can't be redirected directly,
15308 # and sets the high bit in the cache file unless we assign to the vars.
15310 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15311 eval ac_val=\$$ac_var
15315 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15316 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15319 _ | IFS | as_nl) ;; #(
15320 *) $as_unset $ac_var ;;
15326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15327 *${as_nl}ac_space=\ *)
15328 # `set' does not quote correctly, so add quotes (double-quote
15329 # substitution turns \\\\ into \\, and sed turns \\ into \).
15332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15335 # `set' quotes correctly as required by POSIX, so do not add quotes.
15336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15349 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15350 if test -w "$cache_file"; then
15351 test "x$cache_file" != "x/dev/null" &&
15352 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15353 echo "$as_me: updating cache $cache_file" >&6;}
15354 cat confcache >$cache_file
15356 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15357 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15362 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15363 # Let make expand exec_prefix.
15364 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15366 # Transform confdefs.h into DEFS.
15367 # Protect against shell expansion while executing Makefile rules.
15368 # Protect against Makefile macro expansion.
15370 # If the first sed substitution is executed (which looks for macros that
15371 # take arguments), then branch to the quote section. Otherwise,
15372 # look for a macro that doesn't take arguments.
15376 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15378 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15382 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15395 DEFS=`sed -n "$ac_script" confdefs.h`
15400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15401 # 1. Remove the extension, and $U if already installed.
15402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15403 ac_i=`echo "$ac_i" | sed "$ac_script"`
15404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15405 # will be set to the directory where LIBOBJS objects are built.
15406 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15407 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15409 LIBOBJS=$ac_libobjs
15411 LTLIBOBJS=$ac_ltlibobjs
15415 : ${CONFIG_STATUS=./config.status}
15416 ac_clean_files_save=$ac_clean_files
15417 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15418 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15419 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15420 cat >$CONFIG_STATUS <<_ACEOF
15422 # Generated by $as_me.
15423 # Run this file to recreate the current configuration.
15424 # Compiler output produced by configure, useful for debugging
15425 # configure, is in config.log if it exists.
15428 ac_cs_recheck=false
15430 SHELL=\${CONFIG_SHELL-$SHELL}
15433 cat >>$CONFIG_STATUS <<\_ACEOF
15434 ## --------------------- ##
15435 ## M4sh Initialization. ##
15436 ## --------------------- ##
15438 # Be more Bourne compatible
15439 DUALCASE=1; export DUALCASE # for MKS sh
15440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15443 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15444 # is contrary to our usage. Disable this feature.
15445 alias -g '${1+"$@"}'='"$@"'
15446 setopt NO_GLOB_SUBST
15448 case `(set -o) 2>/dev/null` in
15449 *posix*) set -o posix ;;
15458 # Avoid depending upon Character Ranges.
15459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15462 as_cr_digits='0123456789'
15463 as_cr_alnum=$as_cr_Letters$as_cr_digits
15465 # The user is always right.
15466 if test "${PATH_SEPARATOR+set}" != set; then
15467 echo "#! /bin/sh" >conf$$.sh
15468 echo "exit 0" >>conf$$.sh
15470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15478 # Support unset when possible.
15479 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15487 # We need space, tab and new line, in precisely that order. Quoting is
15488 # there to prevent editors from complaining about space-tab.
15489 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15490 # splitting by setting IFS to empty value.)
15495 # Find who we are. Look in the path if we contain no directory separator.
15497 *[\\/]* ) as_myself=$0 ;;
15498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15499 for as_dir in $PATH
15502 test -z "$as_dir" && as_dir=.
15503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15509 # We did not find ourselves, most probably we were run as `sh COMMAND'
15510 # in which case we are not to be found in the path.
15511 if test "x$as_myself" = x; then
15514 if test ! -f "$as_myself"; then
15515 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15516 { (exit 1); exit 1; }
15519 # Work around bugs in pre-3.0 UWIN ksh.
15520 for as_var in ENV MAIL MAILPATH
15521 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15529 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15530 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15531 LC_TELEPHONE LC_TIME
15533 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15534 eval $as_var=C; export $as_var
15536 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15540 # Required to use basename.
15541 if expr a : '\(a\)' >/dev/null 2>&1 &&
15542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15548 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15549 as_basename=basename
15555 # Name of the executable.
15556 as_me=`$as_basename -- "$0" ||
15557 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15558 X"$0" : 'X\(//\)$' \| \
15559 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15561 sed '/^.*\/\([^/][^/]*\)\/*$/{
15580 as_lineno_1=$LINENO
15581 as_lineno_2=$LINENO
15582 test "x$as_lineno_1" != "x$as_lineno_2" &&
15583 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15585 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15586 # uniformly replaced by the line number. The first 'sed' inserts a
15587 # line-number line after each line using $LINENO; the second 'sed'
15588 # does the real work. The second script uses 'N' to pair each
15589 # line-number line with the line containing $LINENO, and appends
15590 # trailing '-' during substitution so that $LINENO is not a special
15591 # case at line end.
15592 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15593 # scripts with optimization help from Paolo Bonzini. Blame Lee
15594 # E. McMahon (1931-1989) for sed's syntax. :-)
15606 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15609 ' >$as_me.lineno &&
15610 chmod +x "$as_me.lineno" ||
15611 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15612 { (exit 1); exit 1; }; }
15614 # Don't try to exec as it changes $[0], causing all sort of problems
15615 # (the dirname of $[0] is not the place where we might find the
15616 # original and so on. Autoconf is especially sensitive to this).
15617 . "./$as_me.lineno"
15618 # Exit status is that of the last command.
15623 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15629 ECHO_C= ECHO_N= ECHO_T=
15630 case `echo -n x` in
15632 case `echo 'x\c'` in
15633 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15640 if expr a : '\(a\)' >/dev/null 2>&1 &&
15641 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15647 rm -f conf$$ conf$$.exe conf$$.file
15648 if test -d conf$$.dir; then
15649 rm -f conf$$.dir/conf$$.file
15655 if ln -s conf$$.file conf$$ 2>/dev/null; then
15657 # ... but there are two gotchas:
15658 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15659 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15660 # In both cases, we have to default to `cp -p'.
15661 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15663 elif ln conf$$.file conf$$ 2>/dev/null; then
15668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15669 rmdir conf$$.dir 2>/dev/null
15671 if mkdir -p . 2>/dev/null; then
15674 test -d ./-p && rmdir ./-p
15678 if test -x / >/dev/null 2>&1; then
15679 as_test_x='test -x'
15681 if ls -dL / >/dev/null 2>&1; then
15688 if test -d "$1"; then
15694 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15695 ???[sx]*):;;*)false;;esac;fi
15699 as_executable_p=$as_test_x
15701 # Sed expression to map a string onto a valid CPP name.
15702 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15704 # Sed expression to map a string onto a valid variable name.
15705 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15710 # Save the log message, to keep $[0] and so on meaningful, and to
15711 # report actual input values of CONFIG_FILES etc. instead of their
15712 # values after options handling.
15714 This file was extended by $as_me, which was
15715 generated by GNU Autoconf 2.61. Invocation command line was
15717 CONFIG_FILES = $CONFIG_FILES
15718 CONFIG_HEADERS = $CONFIG_HEADERS
15719 CONFIG_LINKS = $CONFIG_LINKS
15720 CONFIG_COMMANDS = $CONFIG_COMMANDS
15723 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15728 cat >>$CONFIG_STATUS <<_ACEOF
15729 # Files that config.status was made for.
15730 config_files="$ac_config_files"
15731 config_commands="$ac_config_commands"
15735 cat >>$CONFIG_STATUS <<\_ACEOF
15737 \`$as_me' instantiates files from templates according to the
15738 current configuration.
15740 Usage: $0 [OPTIONS] [FILE]...
15742 -h, --help print this help, then exit
15743 -V, --version print version number and configuration settings, then exit
15744 -q, --quiet do not print progress messages
15745 -d, --debug don't remove temporary files
15746 --recheck update $as_me by reconfiguring in the same conditions
15747 --file=FILE[:TEMPLATE]
15748 instantiate the configuration file FILE
15750 Configuration files:
15753 Configuration commands:
15756 Report bugs to <bug-autoconf@gnu.org>."
15759 cat >>$CONFIG_STATUS <<_ACEOF
15762 configured by $0, generated by GNU Autoconf 2.61,
15763 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15765 Copyright (C) 2006 Free Software Foundation, Inc.
15766 This config.status script is free software; the Free Software Foundation
15767 gives unlimited permission to copy, distribute and modify it."
15774 cat >>$CONFIG_STATUS <<\_ACEOF
15775 # If no file are specified by the user, then we need to provide default
15776 # value. By we need to know if files were specified by the user.
15782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15783 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15794 # Handling of the options.
15795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15797 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15798 echo "$ac_cs_version"; exit ;;
15799 --debug | --debu | --deb | --de | --d | -d )
15801 --file | --fil | --fi | --f )
15803 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15804 ac_need_defaults=false;;
15805 --he | --h | --help | --hel | -h )
15806 echo "$ac_cs_usage"; exit ;;
15807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15808 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15811 # This is an error.
15812 -*) { echo "$as_me: error: unrecognized option: $1
15813 Try \`$0 --help' for more information." >&2
15814 { (exit 1); exit 1; }; } ;;
15816 *) ac_config_targets="$ac_config_targets $1"
15817 ac_need_defaults=false ;;
15823 ac_configure_extra_args=
15825 if $ac_cs_silent; then
15827 ac_configure_extra_args="$ac_configure_extra_args --silent"
15831 cat >>$CONFIG_STATUS <<_ACEOF
15832 if \$ac_cs_recheck; then
15833 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15834 CONFIG_SHELL=$SHELL
15835 export CONFIG_SHELL
15836 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15840 cat >>$CONFIG_STATUS <<\_ACEOF
15844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15845 ## Running $as_me. ##
15851 cat >>$CONFIG_STATUS <<_ACEOF
15855 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15856 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15858 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15859 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15860 LINGUAS="${LINGUAS-%UNSET%}"
15865 cat >>$CONFIG_STATUS <<\_ACEOF
15867 # Handling of arguments.
15868 for ac_config_target in $ac_config_targets
15870 case $ac_config_target in
15871 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15872 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15874 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15875 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15876 { (exit 1); exit 1; }; };;
15881 # If the user did not use the arguments to specify the items to instantiate,
15882 # then the envvar interface is used. Set only those that are not.
15883 # We use the long form for the default assignment because of an extremely
15884 # bizarre bug on SunOS 4.1.3.
15885 if $ac_need_defaults; then
15886 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15887 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15890 # Have a temporary directory for convenience. Make it in the build tree
15891 # simply because there is no reason against having it here, and in addition,
15892 # creating and moving files from /tmp can sometimes cause problems.
15893 # Hook for its removal unless debugging.
15894 # Note that there is a small window in which the directory will not be cleaned:
15895 # after its creation but before its name has been assigned to `$tmp'.
15899 trap 'exit_status=$?
15900 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15902 trap '{ (exit 1); exit 1; }' 1 2 13 15
15904 # Create a (secure) tmp directory for tmp files.
15907 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15908 test -n "$tmp" && test -d "$tmp"
15911 tmp=./conf$$-$RANDOM
15912 (umask 077 && mkdir "$tmp")
15915 echo "$me: cannot create a temporary directory in ." >&2
15916 { (exit 1); exit 1; }
15920 # Set up the sed scripts for CONFIG_FILES section.
15923 # No need to generate the scripts if there are no CONFIG_FILES.
15924 # This happens for instance when ./config.status config.h
15925 if test -n "$CONFIG_FILES"; then
15929 # Create sed commands to just substitute file output variables.
15931 # Remaining file output variables are in a fragment that also has non-file
15937 for ac_last_try in false false false false false :; do
15938 cat >conf$$subs.sed <<_ACEOF
15939 SHELL!$SHELL$ac_delim
15940 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15941 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15942 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15943 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15944 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15945 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15946 exec_prefix!$exec_prefix$ac_delim
15947 prefix!$prefix$ac_delim
15948 program_transform_name!$program_transform_name$ac_delim
15949 bindir!$bindir$ac_delim
15950 sbindir!$sbindir$ac_delim
15951 libexecdir!$libexecdir$ac_delim
15952 datarootdir!$datarootdir$ac_delim
15953 datadir!$datadir$ac_delim
15954 sysconfdir!$sysconfdir$ac_delim
15955 sharedstatedir!$sharedstatedir$ac_delim
15956 localstatedir!$localstatedir$ac_delim
15957 includedir!$includedir$ac_delim
15958 oldincludedir!$oldincludedir$ac_delim
15959 docdir!$docdir$ac_delim
15960 infodir!$infodir$ac_delim
15961 htmldir!$htmldir$ac_delim
15962 dvidir!$dvidir$ac_delim
15963 pdfdir!$pdfdir$ac_delim
15964 psdir!$psdir$ac_delim
15965 libdir!$libdir$ac_delim
15966 localedir!$localedir$ac_delim
15967 mandir!$mandir$ac_delim
15968 DEFS!$DEFS$ac_delim
15969 ECHO_C!$ECHO_C$ac_delim
15970 ECHO_N!$ECHO_N$ac_delim
15971 ECHO_T!$ECHO_T$ac_delim
15972 LIBS!$LIBS$ac_delim
15973 build_alias!$build_alias$ac_delim
15974 host_alias!$host_alias$ac_delim
15975 target_alias!$target_alias$ac_delim
15976 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15977 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15978 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15979 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
15980 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
15981 build!$build$ac_delim
15982 build_cpu!$build_cpu$ac_delim
15983 build_vendor!$build_vendor$ac_delim
15984 build_os!$build_os$ac_delim
15985 host!$host$ac_delim
15986 host_cpu!$host_cpu$ac_delim
15987 host_vendor!$host_vendor$ac_delim
15988 host_os!$host_os$ac_delim
15990 CFLAGS!$CFLAGS$ac_delim
15991 LDFLAGS!$LDFLAGS$ac_delim
15992 CPPFLAGS!$CPPFLAGS$ac_delim
15993 ac_ct_CC!$ac_ct_CC$ac_delim
15994 EXEEXT!$EXEEXT$ac_delim
15995 OBJEXT!$OBJEXT$ac_delim
15998 GREP!$GREP$ac_delim
15999 EGREP!$EGREP$ac_delim
16000 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16001 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16002 HTREE_CMT!$HTREE_CMT$ac_delim
16003 ELF_CMT!$ELF_CMT$ac_delim
16004 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16005 PROFILE_CMT!$PROFILE_CMT$ac_delim
16006 CHECKER_CMT!$CHECKER_CMT$ac_delim
16007 LIB_EXT!$LIB_EXT$ac_delim
16008 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16009 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16010 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16011 IMAGER_CMT!$IMAGER_CMT$ac_delim
16012 RESIZER_CMT!$RESIZER_CMT$ac_delim
16013 FSCK_PROG!$FSCK_PROG$ac_delim
16014 FSCK_MAN!$FSCK_MAN$ac_delim
16017 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16019 elif $ac_last_try; then
16020 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16021 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16022 { (exit 1); exit 1; }; }
16024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16028 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16029 if test -n "$ac_eof"; then
16030 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16031 ac_eof=`expr $ac_eof + 1`
16034 cat >>$CONFIG_STATUS <<_ACEOF
16035 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16037 /^[ ]*@MCONFIG@[ ]*$/{
16041 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16045 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16049 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16050 r $MAKEFILE_PROFILE
16053 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16054 r $MAKEFILE_CHECKER
16057 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16058 r $MAKEFILE_LIBRARY
16061 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16062 r $ASM_TYPES_HEADER
16067 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16068 s/^/s,@/; s/!/@,|#_!!_#|/
16071 s/'"$ac_delim"'$/,g/; t
16073 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16074 ' >>$CONFIG_STATUS <conf$$subs.sed
16075 rm -f conf$$subs.sed
16076 cat >>$CONFIG_STATUS <<_ACEOF
16082 for ac_last_try in false false false false false :; do
16083 cat >conf$$subs.sed <<_ACEOF
16084 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16085 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16086 PKG_CONFIG!$PKG_CONFIG$ac_delim
16087 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16088 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16089 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16090 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16091 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16092 UUIDD_CMT!$UUIDD_CMT$ac_delim
16093 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16094 PACKAGE!$PACKAGE$ac_delim
16095 VERSION!$VERSION$ac_delim
16096 SET_MAKE!$SET_MAKE$ac_delim
16097 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16098 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16099 INSTALL_DATA!$INSTALL_DATA$ac_delim
16100 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16101 USE_NLS!$USE_NLS$ac_delim
16102 MSGFMT!$MSGFMT$ac_delim
16103 GMSGFMT!$GMSGFMT$ac_delim
16104 XGETTEXT!$XGETTEXT$ac_delim
16105 MSGMERGE!$MSGMERGE$ac_delim
16106 RANLIB!$RANLIB$ac_delim
16107 ALLOCA!$ALLOCA$ac_delim
16108 GLIBC21!$GLIBC21$ac_delim
16109 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16110 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16111 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16112 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16113 LIBICONV!$LIBICONV$ac_delim
16114 LTLIBICONV!$LTLIBICONV$ac_delim
16115 INTLBISON!$INTLBISON$ac_delim
16116 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16117 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16118 CATOBJEXT!$CATOBJEXT$ac_delim
16119 DATADIRNAME!$DATADIRNAME$ac_delim
16120 INSTOBJEXT!$INSTOBJEXT$ac_delim
16121 GENCAT!$GENCAT$ac_delim
16122 INTLOBJS!$INTLOBJS$ac_delim
16123 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16124 INTLLIBS!$INTLLIBS$ac_delim
16125 LIBINTL!$LIBINTL$ac_delim
16126 LTLIBINTL!$LTLIBINTL$ac_delim
16127 POSUB!$POSUB$ac_delim
16128 BINARY_TYPE!$BINARY_TYPE$ac_delim
16130 LN_S!$LN_S$ac_delim
16134 CHMOD!$CHMOD$ac_delim
16137 PERL!$PERL$ac_delim
16138 LDCONFIG!$LDCONFIG$ac_delim
16140 STRIP!$STRIP$ac_delim
16141 BUILD_CC!$BUILD_CC$ac_delim
16142 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16143 SIZEOF_INT!$SIZEOF_INT$ac_delim
16144 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16145 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16146 SOCKET_LIB!$SOCKET_LIB$ac_delim
16147 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16148 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16149 LINUX_CMT!$LINUX_CMT$ac_delim
16150 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16151 UNIX_CMT!$UNIX_CMT$ac_delim
16152 root_prefix!$root_prefix$ac_delim
16153 root_bindir!$root_bindir$ac_delim
16154 root_sbindir!$root_sbindir$ac_delim
16155 root_libdir!$root_libdir$ac_delim
16156 root_sysconfdir!$root_sysconfdir$ac_delim
16157 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16158 SS_DIR!$SS_DIR$ac_delim
16159 ET_DIR!$ET_DIR$ac_delim
16160 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16161 INTL_FLAGS!$INTL_FLAGS$ac_delim
16162 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16163 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16164 LIBOBJS!$LIBOBJS$ac_delim
16165 LTLIBOBJS!$LTLIBOBJS$ac_delim
16168 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
16170 elif $ac_last_try; then
16171 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16172 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16173 { (exit 1); exit 1; }; }
16175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16179 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16180 if test -n "$ac_eof"; then
16181 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16182 ac_eof=`expr $ac_eof + 1`
16185 cat >>$CONFIG_STATUS <<_ACEOF
16186 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16190 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16191 s/^/s,@/; s/!/@,|#_!!_#|/
16194 s/'"$ac_delim"'$/,g/; t
16196 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16197 ' >>$CONFIG_STATUS <conf$$subs.sed
16198 rm -f conf$$subs.sed
16199 cat >>$CONFIG_STATUS <<_ACEOF
16206 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16207 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16208 # trailing colons and then remove the whole line if VPATH becomes empty
16209 # (actually we leave an empty line to preserve line numbers).
16210 if test "x$srcdir" = x.; then
16211 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16212 s/:*\$(srcdir):*/:/
16213 s/:*\${srcdir}:*/:/
16215 s/^\([^=]*=[ ]*\):*/\1/
16221 cat >>$CONFIG_STATUS <<\_ACEOF
16222 fi # test -n "$CONFIG_FILES"
16225 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16228 :[FHLC]) ac_mode=$ac_tag; continue;;
16230 case $ac_mode$ac_tag in
16232 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16233 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16234 { (exit 1); exit 1; }; };;
16235 :[FH]-) ac_tag=-:-;;
16236 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16253 -) ac_f="$tmp/stdin";;
16254 *) # Look for the file first in the build tree, then in the source tree
16255 # (if the path is not absolute). The absolute path cannot be DOS-style,
16256 # because $ac_f cannot contain `:'.
16260 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16262 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16263 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16264 { (exit 1); exit 1; }; };;
16266 ac_file_inputs="$ac_file_inputs $ac_f"
16269 # Let's still pretend it is `configure' which instantiates (i.e., don't
16270 # use $as_me), people would be surprised to read:
16271 # /* config.h. Generated by config.status. */
16272 configure_input="Generated from "`IFS=:
16273 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16274 if test x"$ac_file" != x-; then
16275 configure_input="$ac_file. $configure_input"
16276 { echo "$as_me:$LINENO: creating $ac_file" >&5
16277 echo "$as_me: creating $ac_file" >&6;}
16281 *:-:* | *:-) cat >"$tmp/stdin";;
16286 ac_dir=`$as_dirname -- "$ac_file" ||
16287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16288 X"$ac_file" : 'X\(//\)[^/]' \| \
16289 X"$ac_file" : 'X\(//\)$' \| \
16290 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16296 /^X\(\/\/\)[^/].*/{
16311 -*) as_dir=./$as_dir;;
16313 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16317 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16318 *) as_qdir=$as_dir;;
16320 as_dirs="'$as_qdir' $as_dirs"
16321 as_dir=`$as_dirname -- "$as_dir" ||
16322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16323 X"$as_dir" : 'X\(//\)[^/]' \| \
16324 X"$as_dir" : 'X\(//\)$' \| \
16325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16331 /^X\(\/\/\)[^/].*/{
16344 test -d "$as_dir" && break
16346 test -z "$as_dirs" || eval "mkdir $as_dirs"
16347 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16348 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16349 { (exit 1); exit 1; }; }; }
16353 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16356 # A ".." for each directory in $ac_dir_suffix.
16357 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16358 case $ac_top_builddir_sub in
16359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16363 ac_abs_top_builddir=$ac_pwd
16364 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16365 # for backward compatibility:
16366 ac_top_builddir=$ac_top_build_prefix
16369 .) # We are building in place.
16371 ac_top_srcdir=$ac_top_builddir_sub
16372 ac_abs_top_srcdir=$ac_pwd ;;
16373 [\\/]* | ?:[\\/]* ) # Absolute name.
16374 ac_srcdir=$srcdir$ac_dir_suffix;
16375 ac_top_srcdir=$srcdir
16376 ac_abs_top_srcdir=$srcdir ;;
16377 *) # Relative name.
16378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16379 ac_top_srcdir=$ac_top_build_prefix$srcdir
16380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16382 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16392 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16393 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16397 cat >>$CONFIG_STATUS <<\_ACEOF
16398 # If the template does not know about datarootdir, expand it.
16399 # FIXME: This hack should be removed a few years after 2.60.
16400 ac_datarootdir_hack=; ac_datarootdir_seen=
16402 case `sed -n '/datarootdir/ {
16411 ' $ac_file_inputs` in
16412 *datarootdir*) ac_datarootdir_seen=yes;;
16413 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16414 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16415 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16417 cat >>$CONFIG_STATUS <<_ACEOF
16418 ac_datarootdir_hack='
16419 s&@datadir@&$datadir&g
16420 s&@docdir@&$docdir&g
16421 s&@infodir@&$infodir&g
16422 s&@localedir@&$localedir&g
16423 s&@mandir@&$mandir&g
16424 s&\\\${datarootdir}&$datarootdir&g' ;;
16428 # Neutralize VPATH when `$srcdir' = `.'.
16429 # Shell code in configure.ac might set extrasub.
16430 # FIXME: do we really want to maintain this feature?
16431 cat >>$CONFIG_STATUS <<_ACEOF
16435 cat >>$CONFIG_STATUS <<\_ACEOF
16437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16438 s&@configure_input@&$configure_input&;t t
16439 s&@top_builddir@&$ac_top_builddir_sub&;t t
16440 s&@srcdir@&$ac_srcdir&;t t
16441 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16442 s&@top_srcdir@&$ac_top_srcdir&;t t
16443 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16444 s&@builddir@&$ac_builddir&;t t
16445 s&@abs_builddir@&$ac_abs_builddir&;t t
16446 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16447 s&@INSTALL@&$ac_INSTALL&;t t
16448 $ac_datarootdir_hack
16449 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16451 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16452 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16453 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16454 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16455 which seems to be undefined. Please make sure it is defined." >&5
16456 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16457 which seems to be undefined. Please make sure it is defined." >&2;}
16461 -) cat "$tmp/out"; rm -f "$tmp/out";;
16462 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16467 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16468 echo "$as_me: executing $ac_file commands" >&6;}
16473 case $ac_file$ac_mode in
16475 for ac_file in $CONFIG_FILES; do
16476 # Support "outfile[:infile[:infile...]]"
16478 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16480 # PO directories have a Makefile.in generated from Makefile.in.in.
16481 case "$ac_file" in */Makefile.in)
16482 # Adjust a relative srcdir.
16483 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16484 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16485 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16486 # In autoconf-2.13 it is called $ac_given_srcdir.
16487 # In autoconf-2.50 it is called $srcdir.
16488 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16489 case "$ac_given_srcdir" in
16490 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16491 /*) top_srcdir="$ac_given_srcdir" ;;
16492 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16494 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16495 rm -f "$ac_dir/POTFILES"
16496 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16497 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16498 POMAKEFILEDEPS="POTFILES.in"
16499 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16500 # on $ac_dir but don't depend on user-specified configuration
16502 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16503 # The LINGUAS file contains the set of available languages.
16504 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16505 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16507 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16508 # Hide the ALL_LINGUAS assigment from automake.
16509 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16510 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16512 # The set of available languages was given in configure.in.
16513 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16516 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16517 # Compute UPDATEPOFILES
16518 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16519 # Compute DUMMYPOFILES
16520 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16522 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16523 case "$ac_given_srcdir" in
16525 *) srcdirpre='$(srcdir)/' ;;
16531 for lang in $ALL_LINGUAS; do
16532 POFILES="$POFILES $srcdirpre$lang.po"
16533 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16534 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16535 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16537 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16538 # environment variable.
16540 if test -n "$ALL_LINGUAS"; then
16541 for presentlang in $ALL_LINGUAS; do
16543 if test "%UNSET%" != "$LINGUAS"; then
16544 desiredlanguages="$LINGUAS"
16546 desiredlanguages="$ALL_LINGUAS"
16548 for desiredlang in $desiredlanguages; do
16549 # Use the presentlang catalog if desiredlang is
16550 # a. equal to presentlang, or
16551 # b. a variant of presentlang (because in this case,
16552 # presentlang can be used as a fallback for messages
16553 # which are not translated in the desiredlang catalog).
16554 case "$desiredlang" in
16555 "$presentlang"*) useit=yes;;
16558 if test $useit = yes; then
16559 INST_LINGUAS="$INST_LINGUAS $presentlang"
16564 if test -n "$INST_LINGUAS"; then
16565 for lang in $INST_LINGUAS; do
16566 CATALOGS="$CATALOGS $lang.gmo"
16569 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16570 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"
16571 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16572 if test -f "$f"; then
16574 *.orig | *.bak | *~) ;;
16575 *) cat "$f" >> "$ac_dir/Makefile" ;;
16588 { (exit 0); exit 0; }
16590 chmod +x $CONFIG_STATUS
16591 ac_clean_files=$ac_clean_files_save
16594 # configure is writing to config.log, and then calls config.status.
16595 # config.status does its own redirection, appending to config.log.
16596 # Unfortunately, on DOS this fails, as config.log is still kept open
16597 # by configure, so config.status won't be able to write to it; its
16598 # output is simply discarded. So we exec the FD to /dev/null,
16599 # effectively closing config.log, so it can be properly (re)opened and
16600 # appended to by config.status. When coming back to configure, we
16601 # need to make the FD available again.
16602 if test "$no_create" != yes; then
16604 ac_config_status_args=
16605 test "$silent" = yes &&
16606 ac_config_status_args="$ac_config_status_args --quiet"
16608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16611 # would make configure fail if this is the last instruction.
16612 $ac_cs_success || { (exit 1); exit 1; }
16615 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi