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//'`
1902 pre_vers=`echo $base_ver 0.01 - p | dc`
1904 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1906 case $E2FSPROGS_VERSION in
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
11760 for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h sys/syscall.h net/if_dl.h netinet/in.h utime.h
11762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 ac_res=`eval echo '${'$as_ac_Header'}'`
11770 { echo "$as_me:$LINENO: result: $ac_res" >&5
11771 echo "${ECHO_T}$ac_res" >&6; }
11773 # Is the header compilable?
11774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11776 cat >conftest.$ac_ext <<_ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 #include <$ac_header>
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_compile") 2>conftest.er1
11794 grep -v '^ *+' conftest.er1 >conftest.err
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } && {
11799 test -z "$ac_c_werror_flag" ||
11800 test ! -s conftest.err
11801 } && test -s conftest.$ac_objext; then
11802 ac_header_compiler=yes
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 ac_header_compiler=no
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11812 echo "${ECHO_T}$ac_header_compiler" >&6; }
11814 # Is the header present?
11815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 #include <$ac_header>
11825 if { (ac_try="$ac_cpp conftest.$ac_ext"
11826 case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } >/dev/null && {
11838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11839 test ! -s conftest.err
11841 ac_header_preproc=yes
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 ac_header_preproc=no
11849 rm -f conftest.err conftest.$ac_ext
11850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11851 echo "${ECHO_T}$ac_header_preproc" >&6; }
11853 # So? What about this header?
11854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11860 ac_header_preproc=yes
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 eval "$as_ac_Header=\$ac_header_preproc"
11885 ac_res=`eval echo '${'$as_ac_Header'}'`
11886 { echo "$as_me:$LINENO: result: $ac_res" >&5
11887 echo "${ECHO_T}$ac_res" >&6; }
11890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11901 for ac_header in sys/disk.h sys/mount.h
11903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 cat >conftest.$ac_ext <<_ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11916 #if HAVE_SYS_QUEUE_H
11917 #include <sys/queue.h>
11921 #include <$ac_header>
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_compile") 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } && {
11937 test -z "$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 } && test -s conftest.$ac_objext; then
11940 eval "$as_ac_Header=yes"
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 eval "$as_ac_Header=no"
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950 ac_res=`eval echo '${'$as_ac_Header'}'`
11951 { echo "$as_me:$LINENO: result: $ac_res" >&5
11952 echo "${ECHO_T}$ac_res" >&6; }
11953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954 cat >>confdefs.h <<_ACEOF
11955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11963 for ac_header in net/if.h
11965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 cat >conftest.$ac_ext <<_ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11978 #if HAVE_SYS_TYPES_H
11979 #include <sys/types.h>
11981 #if HAVE_SYS_SOCKET
11982 #include <sys/socket.h>
11986 #include <$ac_header>
11988 rm -f conftest.$ac_objext
11989 if { (ac_try="$ac_compile"
11990 case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_compile") 2>conftest.er1
11997 grep -v '^ *+' conftest.er1 >conftest.err
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && {
12002 test -z "$ac_c_werror_flag" ||
12003 test ! -s conftest.err
12004 } && test -s conftest.$ac_objext; then
12005 eval "$as_ac_Header=yes"
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 eval "$as_ac_Header=no"
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015 ac_res=`eval echo '${'$as_ac_Header'}'`
12016 { echo "$as_me:$LINENO: result: $ac_res" >&5
12017 echo "${ECHO_T}$ac_res" >&6; }
12018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12019 cat >>confdefs.h <<_ACEOF
12020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12028 for ac_func in vprintf
12030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 cat >conftest.$ac_ext <<_ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12044 #define $ac_func innocuous_$ac_func
12046 /* System header to define __stub macros and hopefully few prototypes,
12047 which can conflict with char $ac_func (); below.
12048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049 <limits.h> exists even on freestanding compilers. */
12052 # include <limits.h>
12054 # include <assert.h>
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12066 /* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069 #if defined __stub_$ac_func || defined __stub___$ac_func
12076 return $ac_func ();
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (ac_try="$ac_link"
12083 case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_link") 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_c_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest$ac_exeext &&
12098 $as_test_x conftest$ac_exeext; then
12099 eval "$as_ac_var=yes"
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 eval "$as_ac_var=no"
12107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12108 conftest$ac_exeext conftest.$ac_ext
12110 ac_res=`eval echo '${'$as_ac_var'}'`
12111 { echo "$as_me:$LINENO: result: $ac_res" >&5
12112 echo "${ECHO_T}$ac_res" >&6; }
12113 if test `eval echo '${'$as_ac_var'}'` = yes; then
12114 cat >>confdefs.h <<_ACEOF
12115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12118 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12119 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12120 if test "${ac_cv_func__doprnt+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12131 #define _doprnt innocuous__doprnt
12133 /* System header to define __stub macros and hopefully few prototypes,
12134 which can conflict with char _doprnt (); below.
12135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12136 <limits.h> exists even on freestanding compilers. */
12139 # include <limits.h>
12141 # include <assert.h>
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12153 /* The GNU C library defines this for functions which it implements
12154 to always fail with ENOSYS. Some functions are actually named
12155 something starting with __ and the normal name is an alias. */
12156 #if defined __stub__doprnt || defined __stub____doprnt
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (ac_try="$ac_link"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_link") 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest$ac_exeext &&
12185 $as_test_x conftest$ac_exeext; then
12186 ac_cv_func__doprnt=yes
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12191 ac_cv_func__doprnt=no
12194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12195 conftest$ac_exeext conftest.$ac_ext
12197 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12198 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12199 if test $ac_cv_func__doprnt = yes; then
12201 cat >>confdefs.h <<\_ACEOF
12202 #define HAVE_DOPRNT 1
12211 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12212 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12213 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 cat >conftest.$ac_ext <<_ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 #include <dirent.h>
12227 static struct dirent ac_aggr;
12228 if (ac_aggr.d_reclen)
12234 rm -f conftest.$ac_objext
12235 if { (ac_try="$ac_compile"
12236 case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_compile") 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } && {
12248 test -z "$ac_c_werror_flag" ||
12249 test ! -s conftest.err
12250 } && test -s conftest.$ac_objext; then
12251 ac_cv_member_struct_dirent_d_reclen=yes
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 cat >conftest.$ac_ext <<_ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 #include <dirent.h>
12267 static struct dirent ac_aggr;
12268 if (sizeof ac_aggr.d_reclen)
12274 rm -f conftest.$ac_objext
12275 if { (ac_try="$ac_compile"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_compile") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest.$ac_objext; then
12291 ac_cv_member_struct_dirent_d_reclen=yes
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ac_cv_member_struct_dirent_d_reclen=no
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12305 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12306 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12307 cat >>confdefs.h <<\_ACEOF
12308 #define HAVE_RECLEN_DIRENT 1
12313 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12314 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12315 if test "${ac_cv_type_ssize_t+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 cat >conftest.$ac_ext <<_ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 #include <sys/types.h>
12326 typedef ssize_t ac__type_new_;
12330 if ((ac__type_new_ *) 0)
12332 if (sizeof (ac__type_new_))
12338 rm -f conftest.$ac_objext
12339 if { (ac_try="$ac_compile"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.$ac_objext; then
12355 ac_cv_type_ssize_t=yes
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12360 ac_cv_type_ssize_t=no
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12366 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12367 if test $ac_cv_type_ssize_t = yes; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_TYPE_SSIZE_T 1
12374 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12375 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12376 if test "${ac_cv_have_decl_llseek+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 #include <unistd.h>
12398 rm -f conftest.$ac_objext
12399 if { (ac_try="$ac_compile"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_compile") 2>conftest.er1
12407 grep -v '^ *+' conftest.er1 >conftest.err
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } && {
12412 test -z "$ac_c_werror_flag" ||
12413 test ! -s conftest.err
12414 } && test -s conftest.$ac_objext; then
12415 ac_cv_have_decl_llseek=yes
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 ac_cv_have_decl_llseek=no
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12426 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12427 if test $ac_cv_have_decl_llseek = yes; then
12428 cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_LLSEEK_PROTOTYPE 1
12434 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12435 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12436 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 cat >conftest.$ac_ext <<_ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 #define _LARGEFILE_SOURCE
12446 #define _LARGEFILE64_SOURCE
12447 #include <unistd.h>
12460 rm -f conftest.$ac_objext
12461 if { (ac_try="$ac_compile"
12462 case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_compile") 2>conftest.er1
12469 grep -v '^ *+' conftest.er1 >conftest.err
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } && {
12474 test -z "$ac_c_werror_flag" ||
12475 test ! -s conftest.err
12476 } && test -s conftest.$ac_objext; then
12477 ac_cv_have_decl_lseek64=yes
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12482 ac_cv_have_decl_lseek64=no
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12488 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12489 if test $ac_cv_have_decl_lseek64 = yes; then
12490 cat >>confdefs.h <<\_ACEOF
12491 #define HAVE_LSEEK64_PROTOTYPE 1
12496 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12497 # if cross-compiling, with no cached values, just assume something common.
12498 ac_cv_sizeof_short=2
12500 ac_cv_sizeof_long=4
12501 ac_cv_sizeof_long_long=8
12502 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12503 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12505 { echo "$as_me:$LINENO: checking for short" >&5
12506 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12507 if test "${ac_cv_type_short+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 cat >conftest.$ac_ext <<_ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12517 typedef short ac__type_new_;
12521 if ((ac__type_new_ *) 0)
12523 if (sizeof (ac__type_new_))
12529 rm -f conftest.$ac_objext
12530 if { (ac_try="$ac_compile"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_compile") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest.$ac_objext; then
12546 ac_cv_type_short=yes
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 ac_cv_type_short=no
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12557 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12559 # The cast to long int works around a bug in the HP C Compiler
12560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12562 # This bug is HP SR number 8606223364.
12563 { echo "$as_me:$LINENO: checking size of short" >&5
12564 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12565 if test "${ac_cv_sizeof_short+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 if test "$cross_compiling" = yes; then
12569 # Depending upon the size, compute the lo and hi bounds.
12570 cat >conftest.$ac_ext <<_ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12576 $ac_includes_default
12577 typedef short ac__type_sizeof_;
12581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12588 rm -f conftest.$ac_objext
12589 if { (ac_try="$ac_compile"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_compile") 2>conftest.er1
12597 grep -v '^ *+' conftest.er1 >conftest.err
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest.$ac_objext; then
12607 cat >conftest.$ac_ext <<_ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h. */
12613 $ac_includes_default
12614 typedef short ac__type_sizeof_;
12618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12625 rm -f conftest.$ac_objext
12626 if { (ac_try="$ac_compile"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_compile") 2>conftest.er1
12634 grep -v '^ *+' conftest.er1 >conftest.err
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } && {
12639 test -z "$ac_c_werror_flag" ||
12640 test ! -s conftest.err
12641 } && test -s conftest.$ac_objext; then
12642 ac_hi=$ac_mid; break
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12647 ac_lo=`expr $ac_mid + 1`
12648 if test $ac_lo -le $ac_mid; then
12652 ac_mid=`expr 2 '*' $ac_mid + 1`
12655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 cat >conftest.$ac_ext <<_ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 $ac_includes_default
12668 typedef short ac__type_sizeof_;
12672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12679 rm -f conftest.$ac_objext
12680 if { (ac_try="$ac_compile"
12681 case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_compile") 2>conftest.er1
12688 grep -v '^ *+' conftest.er1 >conftest.err
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } && {
12693 test -z "$ac_c_werror_flag" ||
12694 test ! -s conftest.err
12695 } && test -s conftest.$ac_objext; then
12698 cat >conftest.$ac_ext <<_ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12704 $ac_includes_default
12705 typedef short ac__type_sizeof_;
12709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12716 rm -f conftest.$ac_objext
12717 if { (ac_try="$ac_compile"
12718 case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_compile") 2>conftest.er1
12725 grep -v '^ *+' conftest.er1 >conftest.err
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && {
12730 test -z "$ac_c_werror_flag" ||
12731 test ! -s conftest.err
12732 } && test -s conftest.$ac_objext; then
12733 ac_lo=$ac_mid; break
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 ac_hi=`expr '(' $ac_mid ')' - 1`
12739 if test $ac_mid -le $ac_hi; then
12743 ac_mid=`expr 2 '*' $ac_mid`
12746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12749 echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 # Binary search between lo and hi bounds.
12760 while test "x$ac_lo" != "x$ac_hi"; do
12761 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12762 cat >conftest.$ac_ext <<_ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12768 $ac_includes_default
12769 typedef short ac__type_sizeof_;
12773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12780 rm -f conftest.$ac_objext
12781 if { (ac_try="$ac_compile"
12782 case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_compile") 2>conftest.er1
12789 grep -v '^ *+' conftest.er1 >conftest.err
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest.$ac_objext; then
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ac_lo=`expr '(' $ac_mid ')' + 1`
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12808 ?*) ac_cv_sizeof_short=$ac_lo;;
12809 '') if test "$ac_cv_type_short" = yes; then
12810 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12811 See \`config.log' for more details." >&5
12812 echo "$as_me: error: cannot compute sizeof (short)
12813 See \`config.log' for more details." >&2;}
12814 { (exit 77); exit 77; }; }
12816 ac_cv_sizeof_short=0
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 $ac_includes_default
12827 typedef short ac__type_sizeof_;
12828 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12829 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12831 #include <stdlib.h>
12836 FILE *f = fopen ("conftest.val", "w");
12839 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12841 long int i = longval ();
12842 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12844 fprintf (f, "%ld\n", i);
12848 unsigned long int i = ulongval ();
12849 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12851 fprintf (f, "%lu\n", i);
12853 return ferror (f) || fclose (f) != 0;
12859 rm -f conftest$ac_exeext
12860 if { (ac_try="$ac_link"
12861 case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12870 { (case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12875 (eval "$ac_try") 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 ac_cv_sizeof_short=`cat conftest.val`
12881 echo "$as_me: program exited with status $ac_status" >&5
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12885 ( exit $ac_status )
12886 if test "$ac_cv_type_short" = yes; then
12887 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12888 See \`config.log' for more details." >&5
12889 echo "$as_me: error: cannot compute sizeof (short)
12890 See \`config.log' for more details." >&2;}
12891 { (exit 77); exit 77; }; }
12893 ac_cv_sizeof_short=0
12896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12900 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12901 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12905 cat >>confdefs.h <<_ACEOF
12906 #define SIZEOF_SHORT $ac_cv_sizeof_short
12910 { echo "$as_me:$LINENO: checking for int" >&5
12911 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12912 if test "${ac_cv_type_int+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 cat >conftest.$ac_ext <<_ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 $ac_includes_default
12922 typedef int ac__type_new_;
12926 if ((ac__type_new_ *) 0)
12928 if (sizeof (ac__type_new_))
12934 rm -f conftest.$ac_objext
12935 if { (ac_try="$ac_compile"
12936 case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941 (eval "$ac_compile") 2>conftest.er1
12943 grep -v '^ *+' conftest.er1 >conftest.err
12945 cat conftest.err >&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } && {
12948 test -z "$ac_c_werror_flag" ||
12949 test ! -s conftest.err
12950 } && test -s conftest.$ac_objext; then
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12961 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12962 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12964 # The cast to long int works around a bug in the HP C Compiler
12965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12967 # This bug is HP SR number 8606223364.
12968 { echo "$as_me:$LINENO: checking size of int" >&5
12969 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12970 if test "${ac_cv_sizeof_int+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 if test "$cross_compiling" = yes; then
12974 # Depending upon the size, compute the lo and hi bounds.
12975 cat >conftest.$ac_ext <<_ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12981 $ac_includes_default
12982 typedef int ac__type_sizeof_;
12986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12993 rm -f conftest.$ac_objext
12994 if { (ac_try="$ac_compile"
12995 case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_compile") 2>conftest.er1
13002 grep -v '^ *+' conftest.er1 >conftest.err
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } && {
13007 test -z "$ac_c_werror_flag" ||
13008 test ! -s conftest.err
13009 } && test -s conftest.$ac_objext; then
13012 cat >conftest.$ac_ext <<_ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 $ac_includes_default
13019 typedef int ac__type_sizeof_;
13023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13030 rm -f conftest.$ac_objext
13031 if { (ac_try="$ac_compile"
13032 case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_compile") 2>conftest.er1
13039 grep -v '^ *+' conftest.er1 >conftest.err
13041 cat conftest.err >&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } && {
13044 test -z "$ac_c_werror_flag" ||
13045 test ! -s conftest.err
13046 } && test -s conftest.$ac_objext; then
13047 ac_hi=$ac_mid; break
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13052 ac_lo=`expr $ac_mid + 1`
13053 if test $ac_lo -le $ac_mid; then
13057 ac_mid=`expr 2 '*' $ac_mid + 1`
13060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 $ac_includes_default
13073 typedef int ac__type_sizeof_;
13077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13084 rm -f conftest.$ac_objext
13085 if { (ac_try="$ac_compile"
13086 case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_compile") 2>conftest.er1
13093 grep -v '^ *+' conftest.er1 >conftest.err
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && {
13098 test -z "$ac_c_werror_flag" ||
13099 test ! -s conftest.err
13100 } && test -s conftest.$ac_objext; then
13103 cat >conftest.$ac_ext <<_ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13109 $ac_includes_default
13110 typedef int ac__type_sizeof_;
13114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13121 rm -f conftest.$ac_objext
13122 if { (ac_try="$ac_compile"
13123 case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128 (eval "$ac_compile") 2>conftest.er1
13130 grep -v '^ *+' conftest.er1 >conftest.err
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } && {
13135 test -z "$ac_c_werror_flag" ||
13136 test ! -s conftest.err
13137 } && test -s conftest.$ac_objext; then
13138 ac_lo=$ac_mid; break
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ac_hi=`expr '(' $ac_mid ')' - 1`
13144 if test $ac_mid -le $ac_hi; then
13148 ac_mid=`expr 2 '*' $ac_mid`
13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 # Binary search between lo and hi bounds.
13165 while test "x$ac_lo" != "x$ac_hi"; do
13166 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13167 cat >conftest.$ac_ext <<_ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 $ac_includes_default
13174 typedef int ac__type_sizeof_;
13178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13185 rm -f conftest.$ac_objext
13186 if { (ac_try="$ac_compile"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_compile") 2>conftest.er1
13194 grep -v '^ *+' conftest.er1 >conftest.err
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } && {
13199 test -z "$ac_c_werror_flag" ||
13200 test ! -s conftest.err
13201 } && test -s conftest.$ac_objext; then
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 ac_lo=`expr '(' $ac_mid ')' + 1`
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 ?*) ac_cv_sizeof_int=$ac_lo;;
13214 '') if test "$ac_cv_type_int" = yes; then
13215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13216 See \`config.log' for more details." >&5
13217 echo "$as_me: error: cannot compute sizeof (int)
13218 See \`config.log' for more details." >&2;}
13219 { (exit 77); exit 77; }; }
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 $ac_includes_default
13232 typedef int ac__type_sizeof_;
13233 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13234 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13236 #include <stdlib.h>
13241 FILE *f = fopen ("conftest.val", "w");
13244 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13246 long int i = longval ();
13247 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13249 fprintf (f, "%ld\n", i);
13253 unsigned long int i = ulongval ();
13254 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13256 fprintf (f, "%lu\n", i);
13258 return ferror (f) || fclose (f) != 0;
13264 rm -f conftest$ac_exeext
13265 if { (ac_try="$ac_link"
13266 case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_link") 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13275 { (case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_try") 2>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 ac_cv_sizeof_int=`cat conftest.val`
13286 echo "$as_me: program exited with status $ac_status" >&5
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ( exit $ac_status )
13291 if test "$ac_cv_type_int" = yes; then
13292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13293 See \`config.log' for more details." >&5
13294 echo "$as_me: error: cannot compute sizeof (int)
13295 See \`config.log' for more details." >&2;}
13296 { (exit 77); exit 77; }; }
13301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13305 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13306 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13310 cat >>confdefs.h <<_ACEOF
13311 #define SIZEOF_INT $ac_cv_sizeof_int
13315 { echo "$as_me:$LINENO: checking for long" >&5
13316 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13317 if test "${ac_cv_type_long+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13320 cat >conftest.$ac_ext <<_ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13326 $ac_includes_default
13327 typedef long ac__type_new_;
13331 if ((ac__type_new_ *) 0)
13333 if (sizeof (ac__type_new_))
13339 rm -f conftest.$ac_objext
13340 if { (ac_try="$ac_compile"
13341 case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_compile") 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && {
13353 test -z "$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 } && test -s conftest.$ac_objext; then
13356 ac_cv_type_long=yes
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13367 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13369 # The cast to long int works around a bug in the HP C Compiler
13370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13372 # This bug is HP SR number 8606223364.
13373 { echo "$as_me:$LINENO: checking size of long" >&5
13374 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13375 if test "${ac_cv_sizeof_long+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 if test "$cross_compiling" = yes; then
13379 # Depending upon the size, compute the lo and hi bounds.
13380 cat >conftest.$ac_ext <<_ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13386 $ac_includes_default
13387 typedef long ac__type_sizeof_;
13391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13398 rm -f conftest.$ac_objext
13399 if { (ac_try="$ac_compile"
13400 case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
13407 grep -v '^ *+' conftest.er1 >conftest.err
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } && {
13412 test -z "$ac_c_werror_flag" ||
13413 test ! -s conftest.err
13414 } && test -s conftest.$ac_objext; then
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13424 typedef long ac__type_sizeof_;
13428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13435 rm -f conftest.$ac_objext
13436 if { (ac_try="$ac_compile"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_compile") 2>conftest.er1
13444 grep -v '^ *+' conftest.er1 >conftest.err
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } && {
13449 test -z "$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 } && test -s conftest.$ac_objext; then
13452 ac_hi=$ac_mid; break
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_lo=`expr $ac_mid + 1`
13458 if test $ac_lo -le $ac_mid; then
13462 ac_mid=`expr 2 '*' $ac_mid + 1`
13465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 cat >conftest.$ac_ext <<_ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13477 $ac_includes_default
13478 typedef long ac__type_sizeof_;
13482 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_compile") 2>conftest.er1
13498 grep -v '^ *+' conftest.er1 >conftest.err
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } && {
13503 test -z "$ac_c_werror_flag" ||
13504 test ! -s conftest.err
13505 } && test -s conftest.$ac_objext; then
13508 cat >conftest.$ac_ext <<_ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 $ac_includes_default
13515 typedef long ac__type_sizeof_;
13519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13526 rm -f conftest.$ac_objext
13527 if { (ac_try="$ac_compile"
13528 case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_compile") 2>conftest.er1
13535 grep -v '^ *+' conftest.er1 >conftest.err
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } && {
13540 test -z "$ac_c_werror_flag" ||
13541 test ! -s conftest.err
13542 } && test -s conftest.$ac_objext; then
13543 ac_lo=$ac_mid; break
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13548 ac_hi=`expr '(' $ac_mid ')' - 1`
13549 if test $ac_mid -le $ac_hi; then
13553 ac_mid=`expr 2 '*' $ac_mid`
13556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569 # Binary search between lo and hi bounds.
13570 while test "x$ac_lo" != "x$ac_hi"; do
13571 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13572 cat >conftest.$ac_ext <<_ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 $ac_includes_default
13579 typedef long ac__type_sizeof_;
13583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13590 rm -f conftest.$ac_objext
13591 if { (ac_try="$ac_compile"
13592 case "(($ac_try" in
13593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594 *) ac_try_echo=$ac_try;;
13596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13597 (eval "$ac_compile") 2>conftest.er1
13599 grep -v '^ *+' conftest.er1 >conftest.err
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } && {
13604 test -z "$ac_c_werror_flag" ||
13605 test ! -s conftest.err
13606 } && test -s conftest.$ac_objext; then
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13612 ac_lo=`expr '(' $ac_mid ')' + 1`
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 ?*) ac_cv_sizeof_long=$ac_lo;;
13619 '') if test "$ac_cv_type_long" = yes; then
13620 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13621 See \`config.log' for more details." >&5
13622 echo "$as_me: error: cannot compute sizeof (long)
13623 See \`config.log' for more details." >&2;}
13624 { (exit 77); exit 77; }; }
13626 ac_cv_sizeof_long=0
13630 cat >conftest.$ac_ext <<_ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 $ac_includes_default
13637 typedef long ac__type_sizeof_;
13638 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13639 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13641 #include <stdlib.h>
13646 FILE *f = fopen ("conftest.val", "w");
13649 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13651 long int i = longval ();
13652 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13654 fprintf (f, "%ld\n", i);
13658 unsigned long int i = ulongval ();
13659 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13661 fprintf (f, "%lu\n", i);
13663 return ferror (f) || fclose (f) != 0;
13669 rm -f conftest$ac_exeext
13670 if { (ac_try="$ac_link"
13671 case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_link") 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13680 { (case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_try") 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_cv_sizeof_long=`cat conftest.val`
13691 echo "$as_me: program exited with status $ac_status" >&5
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 ( exit $ac_status )
13696 if test "$ac_cv_type_long" = yes; then
13697 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13698 See \`config.log' for more details." >&5
13699 echo "$as_me: error: cannot compute sizeof (long)
13700 See \`config.log' for more details." >&2;}
13701 { (exit 77); exit 77; }; }
13703 ac_cv_sizeof_long=0
13706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13710 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13711 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13715 cat >>confdefs.h <<_ACEOF
13716 #define SIZEOF_LONG $ac_cv_sizeof_long
13720 { echo "$as_me:$LINENO: checking for long long" >&5
13721 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13722 if test "${ac_cv_type_long_long+set}" = set; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 cat >conftest.$ac_ext <<_ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h. */
13731 $ac_includes_default
13732 typedef long long ac__type_new_;
13736 if ((ac__type_new_ *) 0)
13738 if (sizeof (ac__type_new_))
13744 rm -f conftest.$ac_objext
13745 if { (ac_try="$ac_compile"
13746 case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_compile") 2>conftest.er1
13753 grep -v '^ *+' conftest.er1 >conftest.err
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } && {
13758 test -z "$ac_c_werror_flag" ||
13759 test ! -s conftest.err
13760 } && test -s conftest.$ac_objext; then
13761 ac_cv_type_long_long=yes
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13766 ac_cv_type_long_long=no
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13772 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13774 # The cast to long int works around a bug in the HP C Compiler
13775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13777 # This bug is HP SR number 8606223364.
13778 { echo "$as_me:$LINENO: checking size of long long" >&5
13779 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13780 if test "${ac_cv_sizeof_long_long+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 if test "$cross_compiling" = yes; then
13784 # Depending upon the size, compute the lo and hi bounds.
13785 cat >conftest.$ac_ext <<_ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 $ac_includes_default
13792 typedef long long ac__type_sizeof_;
13796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13803 rm -f conftest.$ac_objext
13804 if { (ac_try="$ac_compile"
13805 case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_compile") 2>conftest.er1
13812 grep -v '^ *+' conftest.er1 >conftest.err
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } && {
13817 test -z "$ac_c_werror_flag" ||
13818 test ! -s conftest.err
13819 } && test -s conftest.$ac_objext; then
13822 cat >conftest.$ac_ext <<_ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 $ac_includes_default
13829 typedef long long ac__type_sizeof_;
13833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13840 rm -f conftest.$ac_objext
13841 if { (ac_try="$ac_compile"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_compile") 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } && {
13854 test -z "$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 } && test -s conftest.$ac_objext; then
13857 ac_hi=$ac_mid; break
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 ac_lo=`expr $ac_mid + 1`
13863 if test $ac_lo -le $ac_mid; then
13867 ac_mid=`expr 2 '*' $ac_mid + 1`
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13876 cat >conftest.$ac_ext <<_ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 $ac_includes_default
13883 typedef long long ac__type_sizeof_;
13887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13894 rm -f conftest.$ac_objext
13895 if { (ac_try="$ac_compile"
13896 case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_compile") 2>conftest.er1
13903 grep -v '^ *+' conftest.er1 >conftest.err
13905 cat conftest.err >&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } && {
13908 test -z "$ac_c_werror_flag" ||
13909 test ! -s conftest.err
13910 } && test -s conftest.$ac_objext; then
13913 cat >conftest.$ac_ext <<_ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 $ac_includes_default
13920 typedef long long ac__type_sizeof_;
13924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13931 rm -f conftest.$ac_objext
13932 if { (ac_try="$ac_compile"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_compile") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } && {
13945 test -z "$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 } && test -s conftest.$ac_objext; then
13948 ac_lo=$ac_mid; break
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_hi=`expr '(' $ac_mid ')' - 1`
13954 if test $ac_mid -le $ac_hi; then
13958 ac_mid=`expr 2 '*' $ac_mid`
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13974 # Binary search between lo and hi bounds.
13975 while test "x$ac_lo" != "x$ac_hi"; do
13976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 $ac_includes_default
13984 typedef long long ac__type_sizeof_;
13988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13995 rm -f conftest.$ac_objext
13996 if { (ac_try="$ac_compile"
13997 case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_compile") 2>conftest.er1
14004 grep -v '^ *+' conftest.er1 >conftest.err
14006 cat conftest.err >&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } && {
14009 test -z "$ac_c_werror_flag" ||
14010 test ! -s conftest.err
14011 } && test -s conftest.$ac_objext; then
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 ac_lo=`expr '(' $ac_mid ')' + 1`
14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14024 '') if test "$ac_cv_type_long_long" = yes; then
14025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14026 See \`config.log' for more details." >&5
14027 echo "$as_me: error: cannot compute sizeof (long long)
14028 See \`config.log' for more details." >&2;}
14029 { (exit 77); exit 77; }; }
14031 ac_cv_sizeof_long_long=0
14035 cat >conftest.$ac_ext <<_ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 $ac_includes_default
14042 typedef long long ac__type_sizeof_;
14043 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14044 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14046 #include <stdlib.h>
14051 FILE *f = fopen ("conftest.val", "w");
14054 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14056 long int i = longval ();
14057 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14059 fprintf (f, "%ld\n", i);
14063 unsigned long int i = ulongval ();
14064 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14066 fprintf (f, "%lu\n", i);
14068 return ferror (f) || fclose (f) != 0;
14074 rm -f conftest$ac_exeext
14075 if { (ac_try="$ac_link"
14076 case "(($ac_try" in
14077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078 *) ac_try_echo=$ac_try;;
14080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081 (eval "$ac_link") 2>&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14085 { (case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_try") 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 ac_cv_sizeof_long_long=`cat conftest.val`
14096 echo "$as_me: program exited with status $ac_status" >&5
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 ( exit $ac_status )
14101 if test "$ac_cv_type_long_long" = yes; then
14102 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14103 See \`config.log' for more details." >&5
14104 echo "$as_me: error: cannot compute sizeof (long long)
14105 See \`config.log' for more details." >&2;}
14106 { (exit 77); exit 77; }; }
14108 ac_cv_sizeof_long_long=0
14111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14115 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14116 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14120 cat >>confdefs.h <<_ACEOF
14121 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14125 SIZEOF_SHORT=$ac_cv_sizeof_short
14126 SIZEOF_INT=$ac_cv_sizeof_int
14127 SIZEOF_LONG=$ac_cv_sizeof_long
14128 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14133 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14135 if test "${ac_cv_c_bigendian+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 # See if sys/param.h defines the BYTE_ORDER macro.
14139 cat >conftest.$ac_ext <<_ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 #include <sys/types.h>
14146 #include <sys/param.h>
14151 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14152 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14153 bogus endian macros
14160 rm -f conftest.$ac_objext
14161 if { (ac_try="$ac_compile"
14162 case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_compile") 2>conftest.er1
14169 grep -v '^ *+' conftest.er1 >conftest.err
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } && {
14174 test -z "$ac_c_werror_flag" ||
14175 test ! -s conftest.err
14176 } && test -s conftest.$ac_objext; then
14177 # It does; now see whether it defined to BIG_ENDIAN or not.
14178 cat >conftest.$ac_ext <<_ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 #include <sys/types.h>
14185 #include <sys/param.h>
14190 #if BYTE_ORDER != BIG_ENDIAN
14198 rm -f conftest.$ac_objext
14199 if { (ac_try="$ac_compile"
14200 case "(($ac_try" in
14201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205 (eval "$ac_compile") 2>conftest.er1
14207 grep -v '^ *+' conftest.er1 >conftest.err
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } && {
14212 test -z "$ac_c_werror_flag" ||
14213 test ! -s conftest.err
14214 } && test -s conftest.$ac_objext; then
14215 ac_cv_c_bigendian=yes
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_cv_c_bigendian=no
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 # It does not; compile a test program.
14229 if test "$cross_compiling" = yes; then
14230 # try to guess the endianness by grepping values into an object file
14231 ac_cv_c_bigendian=unknown
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14239 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14240 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14241 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14242 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14243 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14247 _ascii (); _ebcdic ();
14252 rm -f conftest.$ac_objext
14253 if { (ac_try="$ac_compile"
14254 case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_compile") 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } && {
14266 test -z "$ac_c_werror_flag" ||
14267 test ! -s conftest.err
14268 } && test -s conftest.$ac_objext; then
14269 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14270 ac_cv_c_bigendian=yes
14272 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14273 if test "$ac_cv_c_bigendian" = unknown; then
14274 ac_cv_c_bigendian=no
14276 # finding both strings is unlikely to happen, but who knows?
14277 ac_cv_c_bigendian=unknown
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 cat >conftest.$ac_ext <<_ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 $ac_includes_default
14300 /* Are we little or big endian? From Harbison&Steele. */
14304 char c[sizeof (long int)];
14307 return u.c[sizeof (long int) - 1] == 1;
14313 rm -f conftest$ac_exeext
14314 if { (ac_try="$ac_link"
14315 case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_link") 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14324 { (case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329 (eval "$ac_try") 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_cv_c_bigendian=no
14335 echo "$as_me: program exited with status $ac_status" >&5
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ( exit $ac_status )
14340 ac_cv_c_bigendian=yes
14342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14350 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14351 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14352 case $ac_cv_c_bigendian in
14355 cat >>confdefs.h <<\_ACEOF
14356 #define WORDS_BIGENDIAN 1
14362 { { echo "$as_me:$LINENO: error: unknown endianness
14363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14364 echo "$as_me: error: unknown endianness
14365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14366 { (exit 1); exit 1; }; } ;;
14369 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14370 ASM_TYPES_HEADER=./asm_types.h
14373 for ac_header in inttypes.h
14375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 ac_res=`eval echo '${'$as_ac_Header'}'`
14383 { echo "$as_me:$LINENO: result: $ac_res" >&5
14384 echo "${ECHO_T}$ac_res" >&6; }
14386 # Is the header compilable?
14387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14389 cat >conftest.$ac_ext <<_ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395 $ac_includes_default
14396 #include <$ac_header>
14398 rm -f conftest.$ac_objext
14399 if { (ac_try="$ac_compile"
14400 case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_compile") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } && {
14412 test -z "$ac_c_werror_flag" ||
14413 test ! -s conftest.err
14414 } && test -s conftest.$ac_objext; then
14415 ac_header_compiler=yes
14417 echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14420 ac_header_compiler=no
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14425 echo "${ECHO_T}$ac_header_compiler" >&6; }
14427 # Is the header present?
14428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14430 cat >conftest.$ac_ext <<_ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 #include <$ac_header>
14438 if { (ac_try="$ac_cpp conftest.$ac_ext"
14439 case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14446 grep -v '^ *+' conftest.er1 >conftest.err
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } >/dev/null && {
14451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14452 test ! -s conftest.err
14454 ac_header_preproc=yes
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_header_preproc=no
14462 rm -f conftest.err conftest.$ac_ext
14463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14464 echo "${ECHO_T}$ac_header_preproc" >&6; }
14466 # So? What about this header?
14467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14473 ac_header_preproc=yes
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 eval "$as_ac_Header=\$ac_header_preproc"
14498 ac_res=`eval echo '${'$as_ac_Header'}'`
14499 { echo "$as_me:$LINENO: result: $ac_res" >&5
14500 echo "${ECHO_T}$ac_res" >&6; }
14503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14504 cat >>confdefs.h <<_ACEOF
14505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14512 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14513 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14514 if test "${ac_cv_type_intptr_t+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 cat >conftest.$ac_ext <<_ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 $ac_includes_default
14524 typedef intptr_t ac__type_new_;
14528 if ((ac__type_new_ *) 0)
14530 if (sizeof (ac__type_new_))
14536 rm -f conftest.$ac_objext
14537 if { (ac_try="$ac_compile"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_compile") 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } && {
14550 test -z "$ac_c_werror_flag" ||
14551 test ! -s conftest.err
14552 } && test -s conftest.$ac_objext; then
14553 ac_cv_type_intptr_t=yes
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 ac_cv_type_intptr_t=no
14561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14563 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14564 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14565 if test $ac_cv_type_intptr_t = yes; then
14567 cat >>confdefs.h <<_ACEOF
14568 #define HAVE_INTPTR_T 1
14574 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14575 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14576 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 cat >conftest.$ac_ext <<_ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 #include <sys/stat.h>
14589 struct stat stat; stat.st_flags = 0;
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_compile") 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } && {
14608 test -z "$ac_c_werror_flag" ||
14609 test ! -s conftest.err
14610 } && test -s conftest.$ac_objext; then
14611 e2fsprogs_cv_struct_st_flags=yes
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 e2fsprogs_cv_struct_st_flags=no
14619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14623 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14624 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14625 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14626 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14627 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 cat >conftest.$ac_ext <<_ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 #include <sys/stat.h>
14640 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14645 rm -f conftest.$ac_objext
14646 if { (ac_try="$ac_compile"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_compile") 2>conftest.er1
14654 grep -v '^ *+' conftest.er1 >conftest.err
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_c_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest.$ac_objext; then
14662 e2fsprogs_cv_struct_st_flags_immut=yes
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 e2fsprogs_cv_struct_st_flags_immut=no
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14673 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14674 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14675 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14676 cat >>confdefs.h <<\_ACEOF
14677 #define HAVE_STAT_FLAGS 1
14682 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14683 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14684 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 cat >conftest.$ac_ext <<_ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 #include <sys/types.h>
14694 #include <sys/socket.h>
14699 static struct sockaddr ac_aggr;
14700 if (ac_aggr.sa_len)
14706 rm -f conftest.$ac_objext
14707 if { (ac_try="$ac_compile"
14708 case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_compile") 2>conftest.er1
14715 grep -v '^ *+' conftest.er1 >conftest.err
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } && {
14720 test -z "$ac_c_werror_flag" ||
14721 test ! -s conftest.err
14722 } && test -s conftest.$ac_objext; then
14723 ac_cv_member_struct_sockaddr_sa_len=yes
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 cat >conftest.$ac_ext <<_ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <sys/types.h>
14735 #include <sys/socket.h>
14740 static struct sockaddr ac_aggr;
14741 if (sizeof ac_aggr.sa_len)
14747 rm -f conftest.$ac_objext
14748 if { (ac_try="$ac_compile"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_compile") 2>conftest.er1
14756 grep -v '^ *+' conftest.er1 >conftest.err
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_c_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest.$ac_objext; then
14764 ac_cv_member_struct_sockaddr_sa_len=yes
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_cv_member_struct_sockaddr_sa_len=no
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14778 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14779 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14781 cat >>confdefs.h <<_ACEOF
14782 #define HAVE_SA_LEN 1
14816 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
14818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 cat >conftest.$ac_ext <<_ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14832 #define $ac_func innocuous_$ac_func
14834 /* System header to define __stub macros and hopefully few prototypes,
14835 which can conflict with char $ac_func (); below.
14836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14837 <limits.h> exists even on freestanding compilers. */
14840 # include <limits.h>
14842 # include <assert.h>
14847 /* Override any GCC internal prototype to avoid an error.
14848 Use char because int might match the return type of a GCC
14849 builtin and then its argument prototype would still apply. */
14854 /* The GNU C library defines this for functions which it implements
14855 to always fail with ENOSYS. Some functions are actually named
14856 something starting with __ and the normal name is an alias. */
14857 #if defined __stub_$ac_func || defined __stub___$ac_func
14864 return $ac_func ();
14869 rm -f conftest.$ac_objext conftest$ac_exeext
14870 if { (ac_try="$ac_link"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_link") 2>conftest.er1
14878 grep -v '^ *+' conftest.er1 >conftest.err
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest$ac_exeext &&
14886 $as_test_x conftest$ac_exeext; then
14887 eval "$as_ac_var=yes"
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14892 eval "$as_ac_var=no"
14895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14896 conftest$ac_exeext conftest.$ac_ext
14898 ac_res=`eval echo '${'$as_ac_var'}'`
14899 { echo "$as_me:$LINENO: result: $ac_res" >&5
14900 echo "${ECHO_T}$ac_res" >&6; }
14901 if test `eval echo '${'$as_ac_var'}'` = yes; then
14902 cat >>confdefs.h <<_ACEOF
14903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14910 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14911 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14912 if test "${ac_cv_lib_socket_socket+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14915 ac_check_lib_save_LIBS=$LIBS
14916 LIBS="-lsocket $LIBS"
14917 cat >conftest.$ac_ext <<_ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14924 /* Override any GCC internal prototype to avoid an error.
14925 Use char because int might match the return type of a GCC
14926 builtin and then its argument prototype would still apply. */
14939 rm -f conftest.$ac_objext conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_link") 2>conftest.er1
14948 grep -v '^ *+' conftest.er1 >conftest.err
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } && {
14953 test -z "$ac_c_werror_flag" ||
14954 test ! -s conftest.err
14955 } && test -s conftest$ac_exeext &&
14956 $as_test_x conftest$ac_exeext; then
14957 ac_cv_lib_socket_socket=yes
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14962 ac_cv_lib_socket_socket=no
14965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14966 conftest$ac_exeext conftest.$ac_ext
14967 LIBS=$ac_check_lib_save_LIBS
14969 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14970 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14971 if test $ac_cv_lib_socket_socket = yes; then
14972 SOCKET_LIB=-lsocket
14977 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14978 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14982 ac_check_lib_save_LIBS=$LIBS
14984 cat >conftest.$ac_ext <<_ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14991 /* Override any GCC internal prototype to avoid an error.
14992 Use char because int might match the return type of a GCC
14993 builtin and then its argument prototype would still apply. */
15006 rm -f conftest.$ac_objext conftest$ac_exeext
15007 if { (ac_try="$ac_link"
15008 case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_link") 2>conftest.er1
15015 grep -v '^ *+' conftest.er1 >conftest.err
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } && {
15020 test -z "$ac_c_werror_flag" ||
15021 test ! -s conftest.err
15022 } && test -s conftest$ac_exeext &&
15023 $as_test_x conftest$ac_exeext; then
15024 ac_cv_lib_dl_dlopen=yes
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15029 ac_cv_lib_dl_dlopen=no
15032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15033 conftest$ac_exeext conftest.$ac_ext
15034 LIBS=$ac_check_lib_save_LIBS
15036 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15038 if test $ac_cv_lib_dl_dlopen = yes; then
15040 cat >>confdefs.h <<\_ACEOF
15041 #define HAVE_DLOPEN 1
15047 { echo "$as_me:$LINENO: checking for optreset" >&5
15048 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15049 if test "${ac_cv_have_optreset+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 cat >conftest.$ac_ext <<_ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 #include <unistd.h>
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062 $EGREP "optreset" >/dev/null 2>&1; then
15063 ac_cv_have_optreset=yes
15065 ac_cv_have_optreset=no
15070 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15071 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15072 if test $ac_cv_have_optreset = yes; then
15073 cat >>confdefs.h <<\_ACEOF
15074 #define HAVE_OPTRESET 1
15078 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15079 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15080 if diff -u $0 $0 >& /dev/null ; then
15085 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15086 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15090 cat >>confdefs.h <<\_ACEOF
15091 #define HAVE_EXT2_IOCTLS 1
15112 linux* | gnu* | k*bsd*-gnu)
15113 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15115 echo "On $host_os systems, root_prefix defaults to ''"
15120 linux* | gnu* | k*bsd*-gnu)
15121 if test "$prefix" = NONE ; then
15123 echo "On $host_os systems, prefix defaults to /usr"
15124 if test "$mandir" = '${prefix}/man' ; then
15125 echo "...and mandir defaults to /usr/share/man"
15126 mandir=/usr/share/man
15131 if test "$root_prefix" = NONE ; then
15132 if test "$prefix" = NONE ; then
15133 root_prefix="$ac_default_prefix"
15135 root_prefix="$prefix"
15137 root_bindir=$bindir
15138 root_sbindir=$sbindir
15139 root_libdir=$libdir
15140 root_sysconfdir=$sysconfdir
15142 root_bindir='${root_prefix}/bin'
15143 root_sbindir='${root_prefix}/sbin'
15144 root_libdir='${root_prefix}/lib'
15145 root_sysconfdir='${root_prefix}/etc'
15147 if test "$bindir" != '${exec_prefix}/bin'; then
15148 root_bindir=$bindir
15149 echo "Setting root_bindir to $root_bindir"
15151 if test "$sbindir" != '${exec_prefix}/sbin'; then
15152 root_sbindir=$sbindir
15153 echo "Setting root_sbindir to $root_sbindir"
15155 if test "$libdir" != '${exec_prefix}/lib'; then
15156 root_libdir=$libdir
15157 echo "Setting root_libdir to $root_libdir"
15159 if test "$sysconfdir" != '${prefix}/etc'; then
15160 root_sysconfdir=$sysconfdir
15161 echo "Setting root_sysconfdir to $root_sysconfdir"
15168 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15169 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15170 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15174 cat >conftest.$ac_ext <<_ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15189 rm -f conftest.$ac_objext conftest$ac_exeext
15190 if { (ac_try="$ac_link"
15191 case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_link") 2>conftest.er1
15198 grep -v '^ *+' conftest.er1 >conftest.err
15200 cat conftest.err >&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } && {
15203 test -z "$ac_c_werror_flag" ||
15204 test ! -s conftest.err
15205 } && test -s conftest$ac_exeext &&
15206 $as_test_x conftest$ac_exeext; then
15207 ac_cv_e2fsprogs_use_static=yes
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15212 ac_cv_e2fsprogs_use_static=no
15215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15216 conftest$ac_exeext conftest.$ac_ext
15217 LDFLAGS=$SAVE_LDFLAGS
15222 ac_cv_e2fsprogs_use_static=no
15225 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15226 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15228 if test $ac_cv_e2fsprogs_use_static = yes; then
15229 LDFLAG_STATIC=-static
15234 echo "Using Apple Darwin / GNU libintl workaround"
15235 cat >>confdefs.h <<\_ACEOF
15236 #define _INTL_REDIRECT_MACROS 1
15241 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15242 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15245 if test "$cross_compiling" = yes ; then
15248 DO_TEST_SUITE=check
15252 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15253 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15256 if test $cross_compiling = no; then
15257 BUILD_CFLAGS="$CFLAGS"
15258 BUILD_LDFLAGS="$LDFLAGS"
15265 test -d lib || mkdir lib
15266 test -d include || mkdir include
15267 test -d include/linux || mkdir include/linux
15268 test -d include/asm || mkdir include/asm
15269 for i in MCONFIG Makefile e2fsprogs.spec \
15270 util/Makefile util/subst.conf util/gen-tarball \
15271 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15272 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15273 lib/uuid/Makefile lib/uuid/uuid_types.h \
15274 lib/blkid/Makefile lib/blkid/blkid_types.h \
15275 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15276 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15277 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15278 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15279 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15280 if test -d `dirname ${srcdir}/$i` ; then
15281 outlist="$outlist $i"
15284 ac_config_files="$ac_config_files $outlist"
15286 cat >confcache <<\_ACEOF
15287 # This file is a shell script that caches the results of configure
15288 # tests run on this system so they can be shared between configure
15289 # scripts and configure runs, see configure's option --config-cache.
15290 # It is not useful on other systems. If it contains results you don't
15291 # want to keep, you may remove or edit it.
15293 # config.status only pays attention to the cache file if you give it
15294 # the --recheck option to rerun configure.
15296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15298 # following values.
15302 # The following way of writing the cache mishandles newlines in values,
15303 # but we know of no workaround that is simple, portable, and efficient.
15304 # So, we kill variables containing newlines.
15305 # Ultrix sh set writes to stderr and can't be redirected directly,
15306 # and sets the high bit in the cache file unless we assign to the vars.
15308 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15309 eval ac_val=\$$ac_var
15313 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15314 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15317 _ | IFS | as_nl) ;; #(
15318 *) $as_unset $ac_var ;;
15324 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15325 *${as_nl}ac_space=\ *)
15326 # `set' does not quote correctly, so add quotes (double-quote
15327 # substitution turns \\\\ into \\, and sed turns \\ into \).
15330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15333 # `set' quotes correctly as required by POSIX, so do not add quotes.
15334 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15345 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15347 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15348 if test -w "$cache_file"; then
15349 test "x$cache_file" != "x/dev/null" &&
15350 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15351 echo "$as_me: updating cache $cache_file" >&6;}
15352 cat confcache >$cache_file
15354 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15355 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15361 # Let make expand exec_prefix.
15362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15364 # Transform confdefs.h into DEFS.
15365 # Protect against shell expansion while executing Makefile rules.
15366 # Protect against Makefile macro expansion.
15368 # If the first sed substitution is executed (which looks for macros that
15369 # take arguments), then branch to the quote section. Otherwise,
15370 # look for a macro that doesn't take arguments.
15374 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15376 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15380 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15393 DEFS=`sed -n "$ac_script" confdefs.h`
15398 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15399 # 1. Remove the extension, and $U if already installed.
15400 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15401 ac_i=`echo "$ac_i" | sed "$ac_script"`
15402 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15403 # will be set to the directory where LIBOBJS objects are built.
15404 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15405 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15407 LIBOBJS=$ac_libobjs
15409 LTLIBOBJS=$ac_ltlibobjs
15413 : ${CONFIG_STATUS=./config.status}
15414 ac_clean_files_save=$ac_clean_files
15415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15416 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15417 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15418 cat >$CONFIG_STATUS <<_ACEOF
15420 # Generated by $as_me.
15421 # Run this file to recreate the current configuration.
15422 # Compiler output produced by configure, useful for debugging
15423 # configure, is in config.log if it exists.
15426 ac_cs_recheck=false
15428 SHELL=\${CONFIG_SHELL-$SHELL}
15431 cat >>$CONFIG_STATUS <<\_ACEOF
15432 ## --------------------- ##
15433 ## M4sh Initialization. ##
15434 ## --------------------- ##
15436 # Be more Bourne compatible
15437 DUALCASE=1; export DUALCASE # for MKS sh
15438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15441 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15442 # is contrary to our usage. Disable this feature.
15443 alias -g '${1+"$@"}'='"$@"'
15444 setopt NO_GLOB_SUBST
15446 case `(set -o) 2>/dev/null` in
15447 *posix*) set -o posix ;;
15456 # Avoid depending upon Character Ranges.
15457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15460 as_cr_digits='0123456789'
15461 as_cr_alnum=$as_cr_Letters$as_cr_digits
15463 # The user is always right.
15464 if test "${PATH_SEPARATOR+set}" != set; then
15465 echo "#! /bin/sh" >conf$$.sh
15466 echo "exit 0" >>conf$$.sh
15468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15476 # Support unset when possible.
15477 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15485 # We need space, tab and new line, in precisely that order. Quoting is
15486 # there to prevent editors from complaining about space-tab.
15487 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15488 # splitting by setting IFS to empty value.)
15493 # Find who we are. Look in the path if we contain no directory separator.
15495 *[\\/]* ) as_myself=$0 ;;
15496 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15497 for as_dir in $PATH
15500 test -z "$as_dir" && as_dir=.
15501 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15507 # We did not find ourselves, most probably we were run as `sh COMMAND'
15508 # in which case we are not to be found in the path.
15509 if test "x$as_myself" = x; then
15512 if test ! -f "$as_myself"; then
15513 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15514 { (exit 1); exit 1; }
15517 # Work around bugs in pre-3.0 UWIN ksh.
15518 for as_var in ENV MAIL MAILPATH
15519 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15527 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15528 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15529 LC_TELEPHONE LC_TIME
15531 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15532 eval $as_var=C; export $as_var
15534 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15538 # Required to use basename.
15539 if expr a : '\(a\)' >/dev/null 2>&1 &&
15540 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15546 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15547 as_basename=basename
15553 # Name of the executable.
15554 as_me=`$as_basename -- "$0" ||
15555 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15556 X"$0" : 'X\(//\)$' \| \
15557 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15559 sed '/^.*\/\([^/][^/]*\)\/*$/{
15578 as_lineno_1=$LINENO
15579 as_lineno_2=$LINENO
15580 test "x$as_lineno_1" != "x$as_lineno_2" &&
15581 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15583 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15584 # uniformly replaced by the line number. The first 'sed' inserts a
15585 # line-number line after each line using $LINENO; the second 'sed'
15586 # does the real work. The second script uses 'N' to pair each
15587 # line-number line with the line containing $LINENO, and appends
15588 # trailing '-' during substitution so that $LINENO is not a special
15589 # case at line end.
15590 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15591 # scripts with optimization help from Paolo Bonzini. Blame Lee
15592 # E. McMahon (1931-1989) for sed's syntax. :-)
15604 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15607 ' >$as_me.lineno &&
15608 chmod +x "$as_me.lineno" ||
15609 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15610 { (exit 1); exit 1; }; }
15612 # Don't try to exec as it changes $[0], causing all sort of problems
15613 # (the dirname of $[0] is not the place where we might find the
15614 # original and so on. Autoconf is especially sensitive to this).
15615 . "./$as_me.lineno"
15616 # Exit status is that of the last command.
15621 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15627 ECHO_C= ECHO_N= ECHO_T=
15628 case `echo -n x` in
15630 case `echo 'x\c'` in
15631 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15638 if expr a : '\(a\)' >/dev/null 2>&1 &&
15639 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15645 rm -f conf$$ conf$$.exe conf$$.file
15646 if test -d conf$$.dir; then
15647 rm -f conf$$.dir/conf$$.file
15653 if ln -s conf$$.file conf$$ 2>/dev/null; then
15655 # ... but there are two gotchas:
15656 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15657 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15658 # In both cases, we have to default to `cp -p'.
15659 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15661 elif ln conf$$.file conf$$ 2>/dev/null; then
15666 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15667 rmdir conf$$.dir 2>/dev/null
15669 if mkdir -p . 2>/dev/null; then
15672 test -d ./-p && rmdir ./-p
15676 if test -x / >/dev/null 2>&1; then
15677 as_test_x='test -x'
15679 if ls -dL / >/dev/null 2>&1; then
15686 if test -d "$1"; then
15692 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15693 ???[sx]*):;;*)false;;esac;fi
15697 as_executable_p=$as_test_x
15699 # Sed expression to map a string onto a valid CPP name.
15700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15702 # Sed expression to map a string onto a valid variable name.
15703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15708 # Save the log message, to keep $[0] and so on meaningful, and to
15709 # report actual input values of CONFIG_FILES etc. instead of their
15710 # values after options handling.
15712 This file was extended by $as_me, which was
15713 generated by GNU Autoconf 2.61. Invocation command line was
15715 CONFIG_FILES = $CONFIG_FILES
15716 CONFIG_HEADERS = $CONFIG_HEADERS
15717 CONFIG_LINKS = $CONFIG_LINKS
15718 CONFIG_COMMANDS = $CONFIG_COMMANDS
15721 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15726 cat >>$CONFIG_STATUS <<_ACEOF
15727 # Files that config.status was made for.
15728 config_files="$ac_config_files"
15729 config_commands="$ac_config_commands"
15733 cat >>$CONFIG_STATUS <<\_ACEOF
15735 \`$as_me' instantiates files from templates according to the
15736 current configuration.
15738 Usage: $0 [OPTIONS] [FILE]...
15740 -h, --help print this help, then exit
15741 -V, --version print version number and configuration settings, then exit
15742 -q, --quiet do not print progress messages
15743 -d, --debug don't remove temporary files
15744 --recheck update $as_me by reconfiguring in the same conditions
15745 --file=FILE[:TEMPLATE]
15746 instantiate the configuration file FILE
15748 Configuration files:
15751 Configuration commands:
15754 Report bugs to <bug-autoconf@gnu.org>."
15757 cat >>$CONFIG_STATUS <<_ACEOF
15760 configured by $0, generated by GNU Autoconf 2.61,
15761 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15763 Copyright (C) 2006 Free Software Foundation, Inc.
15764 This config.status script is free software; the Free Software Foundation
15765 gives unlimited permission to copy, distribute and modify it."
15772 cat >>$CONFIG_STATUS <<\_ACEOF
15773 # If no file are specified by the user, then we need to provide default
15774 # value. By we need to know if files were specified by the user.
15780 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15781 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15792 # Handling of the options.
15793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15795 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15796 echo "$ac_cs_version"; exit ;;
15797 --debug | --debu | --deb | --de | --d | -d )
15799 --file | --fil | --fi | --f )
15801 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15802 ac_need_defaults=false;;
15803 --he | --h | --help | --hel | -h )
15804 echo "$ac_cs_usage"; exit ;;
15805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15806 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15809 # This is an error.
15810 -*) { echo "$as_me: error: unrecognized option: $1
15811 Try \`$0 --help' for more information." >&2
15812 { (exit 1); exit 1; }; } ;;
15814 *) ac_config_targets="$ac_config_targets $1"
15815 ac_need_defaults=false ;;
15821 ac_configure_extra_args=
15823 if $ac_cs_silent; then
15825 ac_configure_extra_args="$ac_configure_extra_args --silent"
15829 cat >>$CONFIG_STATUS <<_ACEOF
15830 if \$ac_cs_recheck; then
15831 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15832 CONFIG_SHELL=$SHELL
15833 export CONFIG_SHELL
15834 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15838 cat >>$CONFIG_STATUS <<\_ACEOF
15842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15843 ## Running $as_me. ##
15849 cat >>$CONFIG_STATUS <<_ACEOF
15853 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15854 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15856 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15857 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15858 LINGUAS="${LINGUAS-%UNSET%}"
15863 cat >>$CONFIG_STATUS <<\_ACEOF
15865 # Handling of arguments.
15866 for ac_config_target in $ac_config_targets
15868 case $ac_config_target in
15869 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15870 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15872 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15873 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15874 { (exit 1); exit 1; }; };;
15879 # If the user did not use the arguments to specify the items to instantiate,
15880 # then the envvar interface is used. Set only those that are not.
15881 # We use the long form for the default assignment because of an extremely
15882 # bizarre bug on SunOS 4.1.3.
15883 if $ac_need_defaults; then
15884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15885 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15888 # Have a temporary directory for convenience. Make it in the build tree
15889 # simply because there is no reason against having it here, and in addition,
15890 # creating and moving files from /tmp can sometimes cause problems.
15891 # Hook for its removal unless debugging.
15892 # Note that there is a small window in which the directory will not be cleaned:
15893 # after its creation but before its name has been assigned to `$tmp'.
15897 trap 'exit_status=$?
15898 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15900 trap '{ (exit 1); exit 1; }' 1 2 13 15
15902 # Create a (secure) tmp directory for tmp files.
15905 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15906 test -n "$tmp" && test -d "$tmp"
15909 tmp=./conf$$-$RANDOM
15910 (umask 077 && mkdir "$tmp")
15913 echo "$me: cannot create a temporary directory in ." >&2
15914 { (exit 1); exit 1; }
15918 # Set up the sed scripts for CONFIG_FILES section.
15921 # No need to generate the scripts if there are no CONFIG_FILES.
15922 # This happens for instance when ./config.status config.h
15923 if test -n "$CONFIG_FILES"; then
15927 # Create sed commands to just substitute file output variables.
15929 # Remaining file output variables are in a fragment that also has non-file
15935 for ac_last_try in false false false false false :; do
15936 cat >conf$$subs.sed <<_ACEOF
15937 SHELL!$SHELL$ac_delim
15938 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15939 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15940 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15941 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15942 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15943 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15944 exec_prefix!$exec_prefix$ac_delim
15945 prefix!$prefix$ac_delim
15946 program_transform_name!$program_transform_name$ac_delim
15947 bindir!$bindir$ac_delim
15948 sbindir!$sbindir$ac_delim
15949 libexecdir!$libexecdir$ac_delim
15950 datarootdir!$datarootdir$ac_delim
15951 datadir!$datadir$ac_delim
15952 sysconfdir!$sysconfdir$ac_delim
15953 sharedstatedir!$sharedstatedir$ac_delim
15954 localstatedir!$localstatedir$ac_delim
15955 includedir!$includedir$ac_delim
15956 oldincludedir!$oldincludedir$ac_delim
15957 docdir!$docdir$ac_delim
15958 infodir!$infodir$ac_delim
15959 htmldir!$htmldir$ac_delim
15960 dvidir!$dvidir$ac_delim
15961 pdfdir!$pdfdir$ac_delim
15962 psdir!$psdir$ac_delim
15963 libdir!$libdir$ac_delim
15964 localedir!$localedir$ac_delim
15965 mandir!$mandir$ac_delim
15966 DEFS!$DEFS$ac_delim
15967 ECHO_C!$ECHO_C$ac_delim
15968 ECHO_N!$ECHO_N$ac_delim
15969 ECHO_T!$ECHO_T$ac_delim
15970 LIBS!$LIBS$ac_delim
15971 build_alias!$build_alias$ac_delim
15972 host_alias!$host_alias$ac_delim
15973 target_alias!$target_alias$ac_delim
15974 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15975 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15976 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15977 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
15978 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
15979 build!$build$ac_delim
15980 build_cpu!$build_cpu$ac_delim
15981 build_vendor!$build_vendor$ac_delim
15982 build_os!$build_os$ac_delim
15983 host!$host$ac_delim
15984 host_cpu!$host_cpu$ac_delim
15985 host_vendor!$host_vendor$ac_delim
15986 host_os!$host_os$ac_delim
15988 CFLAGS!$CFLAGS$ac_delim
15989 LDFLAGS!$LDFLAGS$ac_delim
15990 CPPFLAGS!$CPPFLAGS$ac_delim
15991 ac_ct_CC!$ac_ct_CC$ac_delim
15992 EXEEXT!$EXEEXT$ac_delim
15993 OBJEXT!$OBJEXT$ac_delim
15996 GREP!$GREP$ac_delim
15997 EGREP!$EGREP$ac_delim
15998 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15999 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16000 HTREE_CMT!$HTREE_CMT$ac_delim
16001 ELF_CMT!$ELF_CMT$ac_delim
16002 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16003 PROFILE_CMT!$PROFILE_CMT$ac_delim
16004 CHECKER_CMT!$CHECKER_CMT$ac_delim
16005 LIB_EXT!$LIB_EXT$ac_delim
16006 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16007 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16008 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16009 IMAGER_CMT!$IMAGER_CMT$ac_delim
16010 RESIZER_CMT!$RESIZER_CMT$ac_delim
16011 FSCK_PROG!$FSCK_PROG$ac_delim
16012 FSCK_MAN!$FSCK_MAN$ac_delim
16015 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16017 elif $ac_last_try; then
16018 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16019 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16020 { (exit 1); exit 1; }; }
16022 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16026 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16027 if test -n "$ac_eof"; then
16028 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16029 ac_eof=`expr $ac_eof + 1`
16032 cat >>$CONFIG_STATUS <<_ACEOF
16033 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16035 /^[ ]*@MCONFIG@[ ]*$/{
16039 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16043 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16047 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16048 r $MAKEFILE_PROFILE
16051 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16052 r $MAKEFILE_CHECKER
16055 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16056 r $MAKEFILE_LIBRARY
16059 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16060 r $ASM_TYPES_HEADER
16065 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16066 s/^/s,@/; s/!/@,|#_!!_#|/
16069 s/'"$ac_delim"'$/,g/; t
16071 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16072 ' >>$CONFIG_STATUS <conf$$subs.sed
16073 rm -f conf$$subs.sed
16074 cat >>$CONFIG_STATUS <<_ACEOF
16080 for ac_last_try in false false false false false :; do
16081 cat >conf$$subs.sed <<_ACEOF
16082 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16083 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16084 PKG_CONFIG!$PKG_CONFIG$ac_delim
16085 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16086 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16087 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16088 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16089 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16090 UUIDD_CMT!$UUIDD_CMT$ac_delim
16091 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16092 PACKAGE!$PACKAGE$ac_delim
16093 VERSION!$VERSION$ac_delim
16094 SET_MAKE!$SET_MAKE$ac_delim
16095 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16096 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16097 INSTALL_DATA!$INSTALL_DATA$ac_delim
16098 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16099 USE_NLS!$USE_NLS$ac_delim
16100 MSGFMT!$MSGFMT$ac_delim
16101 GMSGFMT!$GMSGFMT$ac_delim
16102 XGETTEXT!$XGETTEXT$ac_delim
16103 MSGMERGE!$MSGMERGE$ac_delim
16104 RANLIB!$RANLIB$ac_delim
16105 ALLOCA!$ALLOCA$ac_delim
16106 GLIBC21!$GLIBC21$ac_delim
16107 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16108 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16109 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16110 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16111 LIBICONV!$LIBICONV$ac_delim
16112 LTLIBICONV!$LTLIBICONV$ac_delim
16113 INTLBISON!$INTLBISON$ac_delim
16114 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16115 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16116 CATOBJEXT!$CATOBJEXT$ac_delim
16117 DATADIRNAME!$DATADIRNAME$ac_delim
16118 INSTOBJEXT!$INSTOBJEXT$ac_delim
16119 GENCAT!$GENCAT$ac_delim
16120 INTLOBJS!$INTLOBJS$ac_delim
16121 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16122 INTLLIBS!$INTLLIBS$ac_delim
16123 LIBINTL!$LIBINTL$ac_delim
16124 LTLIBINTL!$LTLIBINTL$ac_delim
16125 POSUB!$POSUB$ac_delim
16126 BINARY_TYPE!$BINARY_TYPE$ac_delim
16128 LN_S!$LN_S$ac_delim
16132 CHMOD!$CHMOD$ac_delim
16135 PERL!$PERL$ac_delim
16136 LDCONFIG!$LDCONFIG$ac_delim
16138 STRIP!$STRIP$ac_delim
16139 BUILD_CC!$BUILD_CC$ac_delim
16140 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16141 SIZEOF_INT!$SIZEOF_INT$ac_delim
16142 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16143 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16144 SOCKET_LIB!$SOCKET_LIB$ac_delim
16145 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16146 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16147 LINUX_CMT!$LINUX_CMT$ac_delim
16148 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16149 UNIX_CMT!$UNIX_CMT$ac_delim
16150 root_prefix!$root_prefix$ac_delim
16151 root_bindir!$root_bindir$ac_delim
16152 root_sbindir!$root_sbindir$ac_delim
16153 root_libdir!$root_libdir$ac_delim
16154 root_sysconfdir!$root_sysconfdir$ac_delim
16155 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16156 SS_DIR!$SS_DIR$ac_delim
16157 ET_DIR!$ET_DIR$ac_delim
16158 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16159 INTL_FLAGS!$INTL_FLAGS$ac_delim
16160 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16161 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16162 LIBOBJS!$LIBOBJS$ac_delim
16163 LTLIBOBJS!$LTLIBOBJS$ac_delim
16166 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
16168 elif $ac_last_try; then
16169 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16170 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16171 { (exit 1); exit 1; }; }
16173 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16177 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16178 if test -n "$ac_eof"; then
16179 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16180 ac_eof=`expr $ac_eof + 1`
16183 cat >>$CONFIG_STATUS <<_ACEOF
16184 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16188 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16189 s/^/s,@/; s/!/@,|#_!!_#|/
16192 s/'"$ac_delim"'$/,g/; t
16194 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16195 ' >>$CONFIG_STATUS <conf$$subs.sed
16196 rm -f conf$$subs.sed
16197 cat >>$CONFIG_STATUS <<_ACEOF
16204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16206 # trailing colons and then remove the whole line if VPATH becomes empty
16207 # (actually we leave an empty line to preserve line numbers).
16208 if test "x$srcdir" = x.; then
16209 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16210 s/:*\$(srcdir):*/:/
16211 s/:*\${srcdir}:*/:/
16213 s/^\([^=]*=[ ]*\):*/\1/
16219 cat >>$CONFIG_STATUS <<\_ACEOF
16220 fi # test -n "$CONFIG_FILES"
16223 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16226 :[FHLC]) ac_mode=$ac_tag; continue;;
16228 case $ac_mode$ac_tag in
16230 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16231 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16232 { (exit 1); exit 1; }; };;
16233 :[FH]-) ac_tag=-:-;;
16234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16251 -) ac_f="$tmp/stdin";;
16252 *) # Look for the file first in the build tree, then in the source tree
16253 # (if the path is not absolute). The absolute path cannot be DOS-style,
16254 # because $ac_f cannot contain `:'.
16258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16260 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16261 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16262 { (exit 1); exit 1; }; };;
16264 ac_file_inputs="$ac_file_inputs $ac_f"
16267 # Let's still pretend it is `configure' which instantiates (i.e., don't
16268 # use $as_me), people would be surprised to read:
16269 # /* config.h. Generated by config.status. */
16270 configure_input="Generated from "`IFS=:
16271 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16272 if test x"$ac_file" != x-; then
16273 configure_input="$ac_file. $configure_input"
16274 { echo "$as_me:$LINENO: creating $ac_file" >&5
16275 echo "$as_me: creating $ac_file" >&6;}
16279 *:-:* | *:-) cat >"$tmp/stdin";;
16284 ac_dir=`$as_dirname -- "$ac_file" ||
16285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16286 X"$ac_file" : 'X\(//\)[^/]' \| \
16287 X"$ac_file" : 'X\(//\)$' \| \
16288 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16294 /^X\(\/\/\)[^/].*/{
16309 -*) as_dir=./$as_dir;;
16311 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16315 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16316 *) as_qdir=$as_dir;;
16318 as_dirs="'$as_qdir' $as_dirs"
16319 as_dir=`$as_dirname -- "$as_dir" ||
16320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16321 X"$as_dir" : 'X\(//\)[^/]' \| \
16322 X"$as_dir" : 'X\(//\)$' \| \
16323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16329 /^X\(\/\/\)[^/].*/{
16342 test -d "$as_dir" && break
16344 test -z "$as_dirs" || eval "mkdir $as_dirs"
16345 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16347 { (exit 1); exit 1; }; }; }
16351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16354 # A ".." for each directory in $ac_dir_suffix.
16355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16356 case $ac_top_builddir_sub in
16357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16361 ac_abs_top_builddir=$ac_pwd
16362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16363 # for backward compatibility:
16364 ac_top_builddir=$ac_top_build_prefix
16367 .) # We are building in place.
16369 ac_top_srcdir=$ac_top_builddir_sub
16370 ac_abs_top_srcdir=$ac_pwd ;;
16371 [\\/]* | ?:[\\/]* ) # Absolute name.
16372 ac_srcdir=$srcdir$ac_dir_suffix;
16373 ac_top_srcdir=$srcdir
16374 ac_abs_top_srcdir=$srcdir ;;
16375 *) # Relative name.
16376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16377 ac_top_srcdir=$ac_top_build_prefix$srcdir
16378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16395 cat >>$CONFIG_STATUS <<\_ACEOF
16396 # If the template does not know about datarootdir, expand it.
16397 # FIXME: This hack should be removed a few years after 2.60.
16398 ac_datarootdir_hack=; ac_datarootdir_seen=
16400 case `sed -n '/datarootdir/ {
16409 ' $ac_file_inputs` in
16410 *datarootdir*) ac_datarootdir_seen=yes;;
16411 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16412 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16413 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16415 cat >>$CONFIG_STATUS <<_ACEOF
16416 ac_datarootdir_hack='
16417 s&@datadir@&$datadir&g
16418 s&@docdir@&$docdir&g
16419 s&@infodir@&$infodir&g
16420 s&@localedir@&$localedir&g
16421 s&@mandir@&$mandir&g
16422 s&\\\${datarootdir}&$datarootdir&g' ;;
16426 # Neutralize VPATH when `$srcdir' = `.'.
16427 # Shell code in configure.ac might set extrasub.
16428 # FIXME: do we really want to maintain this feature?
16429 cat >>$CONFIG_STATUS <<_ACEOF
16433 cat >>$CONFIG_STATUS <<\_ACEOF
16435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16436 s&@configure_input@&$configure_input&;t t
16437 s&@top_builddir@&$ac_top_builddir_sub&;t t
16438 s&@srcdir@&$ac_srcdir&;t t
16439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16440 s&@top_srcdir@&$ac_top_srcdir&;t t
16441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16442 s&@builddir@&$ac_builddir&;t t
16443 s&@abs_builddir@&$ac_abs_builddir&;t t
16444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16445 s&@INSTALL@&$ac_INSTALL&;t t
16446 $ac_datarootdir_hack
16447 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16450 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16452 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16453 which seems to be undefined. Please make sure it is defined." >&5
16454 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16455 which seems to be undefined. Please make sure it is defined." >&2;}
16459 -) cat "$tmp/out"; rm -f "$tmp/out";;
16460 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16465 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16466 echo "$as_me: executing $ac_file commands" >&6;}
16471 case $ac_file$ac_mode in
16473 for ac_file in $CONFIG_FILES; do
16474 # Support "outfile[:infile[:infile...]]"
16476 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16478 # PO directories have a Makefile.in generated from Makefile.in.in.
16479 case "$ac_file" in */Makefile.in)
16480 # Adjust a relative srcdir.
16481 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16482 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16483 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16484 # In autoconf-2.13 it is called $ac_given_srcdir.
16485 # In autoconf-2.50 it is called $srcdir.
16486 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16487 case "$ac_given_srcdir" in
16488 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16489 /*) top_srcdir="$ac_given_srcdir" ;;
16490 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16492 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16493 rm -f "$ac_dir/POTFILES"
16494 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16495 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16496 POMAKEFILEDEPS="POTFILES.in"
16497 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16498 # on $ac_dir but don't depend on user-specified configuration
16500 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16501 # The LINGUAS file contains the set of available languages.
16502 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16503 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16505 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16506 # Hide the ALL_LINGUAS assigment from automake.
16507 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16508 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16510 # The set of available languages was given in configure.in.
16511 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16514 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16515 # Compute UPDATEPOFILES
16516 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16517 # Compute DUMMYPOFILES
16518 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16520 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16521 case "$ac_given_srcdir" in
16523 *) srcdirpre='$(srcdir)/' ;;
16529 for lang in $ALL_LINGUAS; do
16530 POFILES="$POFILES $srcdirpre$lang.po"
16531 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16532 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16533 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16535 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16536 # environment variable.
16538 if test -n "$ALL_LINGUAS"; then
16539 for presentlang in $ALL_LINGUAS; do
16541 if test "%UNSET%" != "$LINGUAS"; then
16542 desiredlanguages="$LINGUAS"
16544 desiredlanguages="$ALL_LINGUAS"
16546 for desiredlang in $desiredlanguages; do
16547 # Use the presentlang catalog if desiredlang is
16548 # a. equal to presentlang, or
16549 # b. a variant of presentlang (because in this case,
16550 # presentlang can be used as a fallback for messages
16551 # which are not translated in the desiredlang catalog).
16552 case "$desiredlang" in
16553 "$presentlang"*) useit=yes;;
16556 if test $useit = yes; then
16557 INST_LINGUAS="$INST_LINGUAS $presentlang"
16562 if test -n "$INST_LINGUAS"; then
16563 for lang in $INST_LINGUAS; do
16564 CATALOGS="$CATALOGS $lang.gmo"
16567 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16568 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"
16569 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16570 if test -f "$f"; then
16572 *.orig | *.bak | *~) ;;
16573 *) cat "$f" >> "$ac_dir/Makefile" ;;
16586 { (exit 0); exit 0; }
16588 chmod +x $CONFIG_STATUS
16589 ac_clean_files=$ac_clean_files_save
16592 # configure is writing to config.log, and then calls config.status.
16593 # config.status does its own redirection, appending to config.log.
16594 # Unfortunately, on DOS this fails, as config.log is still kept open
16595 # by configure, so config.status won't be able to write to it; its
16596 # output is simply discarded. So we exec the FD to /dev/null,
16597 # effectively closing config.log, so it can be properly (re)opened and
16598 # appended to by config.status. When coming back to configure, we
16599 # need to make the FD available again.
16600 if test "$no_create" != yes; then
16602 ac_config_status_args=
16603 test "$silent" = yes &&
16604 ac_config_status_args="$ac_config_status_args --quiet"
16606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16609 # would make configure fail if this is the last instruction.
16610 $ac_cs_success || { (exit 1); exit 1; }
16613 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi