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
775 ac_subst_files='MCONFIG
782 PUBLIC_CONFIG_HEADER'
783 ac_precious_vars='build_alias
795 # Initialize some variables set by options.
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name=s,x,x,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_$ac_feature=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_$ac_feature=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_$ac_package=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1178 # Be sure to have absolute directory names.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures this package to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1358 if test -n "$ac_init_help"; then
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-maintainer-mode enable makefile rules useful for maintainers
1366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
1368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the test I/O manager for debugging
1375 --disable-debugfs disable support of debugfs program
1376 --disable-imager disable support of e2image program
1377 --disable-resizer disable support of e2resize program
1378 --enable-fsck build fsck wrapper program
1379 --enable-e2initrd-helper build e2initrd-helper program
1380 --enable-blkid-devmapper build with device-mapper support
1381 --disable-tls disable use of thread local support
1382 --disable-uuidd disable building the uuid daemon
1383 --disable-nls do not use Native Language Support
1384 --disable-rpath do not hardcode runtime library paths
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1389 --with-diet-libc use diet libc
1390 --with-cc=COMPILER select compiler to use
1391 --with-linker=LINKER select linker to use
1392 --with-ccopts=CCOPTS select compiler command line options
1393 --with-ldopts=LDOPTS select linker command line options
1394 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1395 --with-gnu-ld assume the C compiler uses GNU ld default=no
1396 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1397 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1398 --with-included-gettext use the GNU gettext library included here
1399 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1400 --without-libintl-prefix don't search for libintl in includedir and libdir
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1411 PKG_CONFIG path to pkg-config utility
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" || continue
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1443 .) # We are building in place.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1477 generated by GNU Autoconf 2.61
1479 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1480 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1490 It was created by $as_me, which was
1491 generated by GNU Autoconf 2.61. Invocation command line was
1503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1512 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1515 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1516 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_must_keep_next=false
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580 -* ) ac_must_keep_next=true ;;
1583 ac_configure_args="$ac_configure_args '$ac_arg'"
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log. We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1607 # The following way of writing the cache mishandles newlines in values,
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1644 for ac_var in $ac_subst_vars
1646 eval ac_val=\$$ac_var
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 echo "$ac_var='\''$ac_val'\''"
1654 if test -n "$ac_subst_files"; then
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1661 for ac_var in $ac_subst_files
1663 eval ac_val=\$$ac_var
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 echo "$ac_var='\''$ac_val'\''"
1672 if test -s confdefs.h; then
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690 for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1698 # Predefined preprocessor variables.
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
1738 if test -r "$ac_site_file"; then
1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
1746 if test -r "$cache_file"; then
1747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1763 # Check that the precious variables saved in the cache have kept the same
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
1771 case $ac_old_set,$ac_new_set in
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786 echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788 echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 *) ac_arg=$ac_var=$ac_new_val ;;
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1804 if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1837 for ac_dir in config "$srcdir"/config; do
1838 if test -f "$ac_dir/install-sh"; then
1840 ac_install_sh="$ac_aux_dir/install-sh -c"
1842 elif test -f "$ac_dir/install.sh"; then
1844 ac_install_sh="$ac_aux_dir/install.sh -c"
1846 elif test -f "$ac_dir/shtool"; then
1848 ac_install_sh="$ac_aux_dir/shtool install -c"
1852 if test -z "$ac_aux_dir"; then
1853 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1855 { (exit 1); exit 1; }; }
1858 # These three variables are undocumented and unsupported,
1859 # and are intended to be withdrawn in a future Autoconf release.
1860 # They can cause serious problems if a builder's source tree is in a directory
1861 # whose full name contains unusual characters.
1862 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1863 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1864 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1870 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1871 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1872 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1874 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1875 MONTH=`echo $DATE | awk -F- '{print $2}'`
1876 YEAR=`echo $DATE | awk -F- '{print $3}'`
1878 if expr $YEAR ">" 1900 > /dev/null ; then
1879 E2FSPROGS_YEAR=$YEAR
1880 elif expr $YEAR ">" 90 >/dev/null ; then
1881 E2FSPROGS_YEAR=19$YEAR
1883 E2FSPROGS_YEAR=20$YEAR
1887 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1899 *) echo "Unknown month $MONTH??" ;;
1902 base_ver=`echo $E2FSPROGS_VERSION | \
1903 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1905 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1907 case $E2FSPROGS_VERSION in
1909 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1912 E2FSPROGS_PKGVER="$base_ver"
1916 unset DATE MONTH YEAR base_ver pre_vers date_spec
1917 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1918 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1924 # Make sure we can run config.sub.
1925 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1926 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1927 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1928 { (exit 1); exit 1; }; }
1930 { echo "$as_me:$LINENO: checking build system type" >&5
1931 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1932 if test "${ac_cv_build+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 ac_build_alias=$build_alias
1936 test "x$ac_build_alias" = x &&
1937 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1938 test "x$ac_build_alias" = x &&
1939 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1940 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1941 { (exit 1); exit 1; }; }
1942 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1943 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1944 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1945 { (exit 1); exit 1; }; }
1948 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1949 echo "${ECHO_T}$ac_cv_build" >&6; }
1950 case $ac_cv_build in
1952 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1953 echo "$as_me: error: invalid value of canonical build" >&2;}
1954 { (exit 1); exit 1; }; };;
1957 ac_save_IFS=$IFS; IFS='-'
1963 # Remember, the first character of IFS is used to create $*,
1964 # except with old shells:
1967 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1970 { echo "$as_me:$LINENO: checking host system type" >&5
1971 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1972 if test "${ac_cv_host+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test "x$host_alias" = x; then
1976 ac_cv_host=$ac_cv_build
1978 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1979 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1980 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1981 { (exit 1); exit 1; }; }
1985 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1986 echo "${ECHO_T}$ac_cv_host" >&6; }
1989 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1990 echo "$as_me: error: invalid value of canonical host" >&2;}
1991 { (exit 1); exit 1; }; };;
1994 ac_save_IFS=$IFS; IFS='-'
2000 # Remember, the first character of IFS is used to create $*,
2001 # except with old shells:
2004 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2008 # Check whether --with-diet-libc was given.
2009 if test "${with_diet_libc+set}" = set; then
2010 withval=$with_diet_libc; CC="diet cc -nostdinc"
2011 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2012 echo "${ECHO_T}CC=$CC" >&6; }
2015 # Check whether --with-cc was given.
2016 if test "${with_cc+set}" = set; then
2017 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2018 echo "${ECHO_T}CC=$withval" >&6; }
2021 if test -z "$CC" ; then CC=cc; fi
2022 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2023 echo "${ECHO_T}CC defaults to $CC" >&6; }
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 if test -n "$CC"; then
2062 { echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6; }
2065 { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2071 if test -z "$ac_cv_prog_CC"; then
2073 # Extract the first word of "gcc", so it can be a program name with args.
2074 set dummy gcc; ac_word=$2
2075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090 ac_cv_prog_ac_ct_CC="gcc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6; }
2105 { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2109 if test "x$ac_ct_CC" = x; then
2112 case $cross_compiling:$ac_tool_warned in
2114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2115 whose name does not start with the host triplet. If you think this
2116 configuration is useful to you, please write to autoconf@gnu.org." >&5
2117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet. If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2120 ac_tool_warned=yes ;;
2128 if test -z "$CC"; then
2129 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}cc; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147 ac_cv_prog_CC="${ac_tool_prefix}cc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 if test -n "$CC"; then
2159 { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2162 { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2169 if test -z "$CC"; then
2170 # Extract the first word of "cc", so it can be a program name with args.
2171 set dummy cc; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189 ac_prog_rejected=yes
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 if test $ac_prog_rejected = yes; then
2201 # We found a bogon in the path, so make sure we never use it.
2202 set dummy $ac_cv_prog_CC
2204 if test $# != 0; then
2205 # We chose a different compiler from the bogus one.
2206 # However, it has the same basename, so the bogon will be chosen
2207 # first if we set CC to just the basename; use the full file name.
2209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2215 if test -n "$CC"; then
2216 { echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6; }
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2225 if test -z "$CC"; then
2226 if test -n "$ac_tool_prefix"; then
2227 for ac_prog in cl.exe
2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 if test -n "$CC"; then
2258 { echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6; }
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2266 test -n "$CC" && break
2269 if test -z "$CC"; then
2271 for ac_prog in cl.exe
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 if test -n "$ac_ct_CC"; then
2281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_ac_ct_CC="$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301 if test -n "$ac_ct_CC"; then
2302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303 echo "${ECHO_T}$ac_ct_CC" >&6; }
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2310 test -n "$ac_ct_CC" && break
2313 if test "x$ac_ct_CC" = x; then
2316 case $cross_compiling:$ac_tool_warned in
2318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2319 whose name does not start with the host triplet. If you think this
2320 configuration is useful to you, please write to autoconf@gnu.org." >&5
2321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet. If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2324 ac_tool_warned=yes ;;
2333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: no acceptable C compiler found in \$PATH
2336 See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2339 # Provide some information about the compiler.
2340 echo "$as_me:$LINENO: checking for C compiler version" >&5
2341 ac_compiler=`set X $ac_compile; echo $2`
2342 { (ac_try="$ac_compiler --version >&5"
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348 (eval "$ac_compiler --version >&5") 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2352 { (ac_try="$ac_compiler -v >&5"
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_compiler -v >&5") 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
2362 { (ac_try="$ac_compiler -V >&5"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compiler -V >&5") 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2373 cat >conftest.$ac_ext <<_ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2388 ac_clean_files_save=$ac_clean_files
2389 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2390 # Try to create an executable without -o first, disregard a.out.
2391 # It will help us diagnose broken compilers, and finding out an intuition
2393 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2394 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2395 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2397 # List of possible output files, starting from the most likely.
2398 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2399 # only as a last resort. b.out is created by i960 compilers.
2400 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2402 # The IRIX 6 linker writes into existing files which may not be
2403 # executable, retaining their permissions. Remove them first so a
2404 # subsequent execution test works.
2406 for ac_file in $ac_files
2409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2410 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2415 if { (ac_try="$ac_link_default"
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_link_default") 2>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; then
2425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2427 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2428 # so that the user can short-circuit this test for compilers unknown to
2430 for ac_file in $ac_files ''
2432 test -f "$ac_file" || continue
2434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2437 # We found the default executable, but exeext='' is most
2441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2445 # We set ac_cv_exeext here because the later test for it is not
2446 # safe: cross compilers may not add the suffix if given an `-o'
2447 # argument, so we may need to know it at that point already.
2448 # Even if this section looks crufty: it has the advantage of
2455 test "$ac_cv_exeext" = no && ac_cv_exeext=
2461 { echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6; }
2463 if test -z "$ac_file"; then
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&2;}
2471 { (exit 77); exit 77; }; }
2474 ac_exeext=$ac_cv_exeext
2476 # Check that the compiler produces executables we can run. If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2481 # If not cross compiling, check that we can run a simple program.
2482 if test "$cross_compiling" != yes; then
2483 if { ac_try='./$ac_file'
2484 { (case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_try") 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2495 if test "$cross_compiling" = maybe; then
2498 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2508 { echo "$as_me:$LINENO: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6; }
2511 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2512 ac_clean_files=$ac_clean_files_save
2513 # Check that the compiler produces executables we can run. If not, either
2514 # the compiler is broken, or we cross compile.
2515 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2517 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518 echo "${ECHO_T}$cross_compiling" >&6; }
2520 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2522 if { (ac_try="$ac_link"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link") 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2534 # work properly (i.e., refer to `conftest.exe'), while it won't with
2536 for ac_file in conftest.exe conftest conftest.*; do
2537 test -f "$ac_file" || continue
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2547 See \`config.log' for more details." >&5
2548 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details." >&2;}
2550 { (exit 1); exit 1; }; }
2553 rm -f conftest$ac_cv_exeext
2554 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2555 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2557 rm -f conftest.$ac_ext
2558 EXEEXT=$ac_cv_exeext
2560 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2561 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2562 if test "${ac_cv_objext+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 cat >conftest.$ac_ext <<_ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2580 rm -f conftest.o conftest.obj
2581 if { (ac_try="$ac_compile"
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_compile") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; then
2591 for ac_file in conftest.o conftest.obj conftest.*; do
2592 test -f "$ac_file" || continue;
2594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2612 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613 echo "${ECHO_T}$ac_cv_objext" >&6; }
2614 OBJEXT=$ac_cv_objext
2616 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.$ac_ext <<_ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2639 rm -f conftest.$ac_objext
2640 if { (ac_try="$ac_compile"
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compile") 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } && {
2653 test -z "$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2655 } && test -s conftest.$ac_objext; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2668 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2670 GCC=`test $ac_compiler_gnu = yes && echo yes`
2671 ac_test_CFLAGS=${CFLAGS+set}
2672 ac_save_CFLAGS=$CFLAGS
2673 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_cc_g+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 ac_save_c_werror_flag=$ac_c_werror_flag
2679 ac_c_werror_flag=yes
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest.$ac_objext; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compile") 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } && {
2749 test -z "$ac_c_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest.$ac_objext; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 ac_c_werror_flag=$ac_save_c_werror_flag
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 ac_c_werror_flag=$ac_save_c_werror_flag
2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2810 if test "$ac_test_CFLAGS" = set; then
2811 CFLAGS=$ac_save_CFLAGS
2812 elif test $ac_cv_prog_cc_g = yes; then
2813 if test "$GCC" = yes; then
2819 if test "$GCC" = yes; then
2825 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2826 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_cc_c89+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 ac_cv_prog_cc_c89=no
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2840 #include <sys/types.h>
2841 #include <sys/stat.h>
2842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2843 struct buf { int x; };
2844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845 static char *e (p, i)
2851 static char *f (char * (*g) (char **, int), char **p, ...)
2856 s = g (p, va_arg (v,int));
2861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2862 function prototypes and stuff, but not '\xHH' hex character constants.
2863 These don't provoke an error unfortunately, instead are silently treated
2864 as 'x'. The following induces an error, until -std is added to get
2865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2866 array size at least. It's necessary to write '\x00'==0 to get something
2867 that's true only with -std. */
2868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2871 inside strings and character constants. */
2873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2875 int test (int i, double x);
2876 struct s1 {int (*f) (int a);};
2877 struct s2 {int (*f) (double a);};
2878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2892 CC="$ac_save_CC $ac_arg"
2893 rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } && {
2907 test -z "$ac_c_werror_flag" ||
2908 test ! -s conftest.err
2909 } && test -s conftest.$ac_objext; then
2910 ac_cv_prog_cc_c89=$ac_arg
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2918 rm -f core conftest.err conftest.$ac_objext
2919 test "x$ac_cv_prog_cc_c89" != "xno" && break
2921 rm -f conftest.$ac_ext
2926 case "x$ac_cv_prog_cc_c89" in
2928 { echo "$as_me:$LINENO: result: none needed" >&5
2929 echo "${ECHO_T}none needed" >&6; } ;;
2931 { echo "$as_me:$LINENO: result: unsupported" >&5
2932 echo "${ECHO_T}unsupported" >&6; } ;;
2934 CC="$CC $ac_cv_prog_cc_c89"
2935 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2952 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2953 # On Suns, sometimes $CPP names a directory.
2954 if test -n "$CPP" && test -d "$CPP"; then
2957 if test -z "$CPP"; then
2958 if test "${ac_cv_prog_CPP+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 # Double quotes because CPP needs to be expanded
2962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2965 for ac_c_preproc_warn_flag in '' yes
2967 # Use a header file that comes with gcc, so configuring glibc
2968 # with a fresh cross-compiler works.
2969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2970 # <limits.h> exists even on freestanding compilers.
2971 # On the NeXT, cc -E runs the code through the compiler's parser,
2972 # not just through cpp. "Syntax error" is here to catch this case.
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2980 # include <limits.h>
2982 # include <assert.h>
2986 if { (ac_try="$ac_cpp conftest.$ac_ext"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null && {
2999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 # Broken: fails on valid input.
3011 rm -f conftest.err conftest.$ac_ext
3013 # OK, works on sane cases. Now check whether nonexistent headers
3014 # can be detected and how.
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 #include <ac_nonexistent.h>
3023 if { (ac_try="$ac_cpp conftest.$ac_ext"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } >/dev/null && {
3036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3039 # Broken: success on invalid input.
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Passes both tests.
3050 rm -f conftest.err conftest.$ac_ext
3053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054 rm -f conftest.err conftest.$ac_ext
3055 if $ac_preproc_ok; then
3067 { echo "$as_me:$LINENO: result: $CPP" >&5
3068 echo "${ECHO_T}$CPP" >&6; }
3070 for ac_c_preproc_warn_flag in '' yes
3072 # Use a header file that comes with gcc, so configuring glibc
3073 # with a fresh cross-compiler works.
3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075 # <limits.h> exists even on freestanding compilers.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp. "Syntax error" is here to catch this case.
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3085 # include <limits.h>
3087 # include <assert.h>
3091 if { (ac_try="$ac_cpp conftest.$ac_ext"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } >/dev/null && {
3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 # Broken: fails on valid input.
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether nonexistent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <ac_nonexistent.h>
3128 if { (ac_try="$ac_cpp conftest.$ac_ext"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null && {
3141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3144 # Broken: success on invalid input.
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 # Passes both tests.
3155 rm -f conftest.err conftest.$ac_ext
3158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159 rm -f conftest.err conftest.$ac_ext
3160 if $ac_preproc_ok; then
3163 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3164 See \`config.log' for more details." >&5
3165 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&2;}
3167 { (exit 1); exit 1; }; }
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 # Check whether --with-linker was given.
3178 if test "${with_linker+set}" = set; then
3179 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3180 echo "${ECHO_T}LD=$withval" >&6; }
3183 if test -z "$LD" ; then LD=$CC; fi
3184 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3185 echo "${ECHO_T}LD defaults to $LD" >&6; }
3190 # Check whether --with-ccopts was given.
3191 if test "${with_ccopts+set}" = set; then
3192 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3193 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3198 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3199 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3200 if test "${ac_cv_path_GREP+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 # Extract the first word of "grep ggrep" to use in msg output
3204 if test -z "$GREP"; then
3205 set dummy grep ggrep; ac_prog_name=$2
3206 if test "${ac_cv_path_GREP+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_path_GREP_found=false
3210 # Loop through the user's path and test for each of PROGNAME-LIST
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3215 test -z "$as_dir" && as_dir=.
3216 for ac_prog in grep ggrep; do
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3219 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3220 # Check for GNU ac_path_GREP and select it if it is found.
3221 # Check for GNU $ac_path_GREP
3222 case `"$ac_path_GREP" --version 2>&1` in
3224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3227 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3230 cat "conftest.in" "conftest.in" >"conftest.tmp"
3231 mv "conftest.tmp" "conftest.in"
3232 cp "conftest.in" "conftest.nl"
3233 echo 'GREP' >> "conftest.nl"
3234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3236 ac_count=`expr $ac_count + 1`
3237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3238 # Best one so far, save it but keep looking for a better one
3239 ac_cv_path_GREP="$ac_path_GREP"
3240 ac_path_GREP_max=$ac_count
3242 # 10*(2^10) chars as input seems more than enough
3243 test $ac_count -gt 10 && break
3245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3249 $ac_path_GREP_found && break 3
3259 GREP="$ac_cv_path_GREP"
3260 if test -z "$GREP"; then
3261 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3263 { (exit 1); exit 1; }; }
3267 ac_cv_path_GREP=$GREP
3272 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3273 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3274 GREP="$ac_cv_path_GREP"
3277 { echo "$as_me:$LINENO: checking for egrep" >&5
3278 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3279 if test "${ac_cv_path_EGREP+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3283 then ac_cv_path_EGREP="$GREP -E"
3285 # Extract the first word of "egrep" to use in msg output
3286 if test -z "$EGREP"; then
3287 set dummy egrep; ac_prog_name=$2
3288 if test "${ac_cv_path_EGREP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 ac_path_EGREP_found=false
3292 # Loop through the user's path and test for each of PROGNAME-LIST
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297 test -z "$as_dir" && as_dir=.
3298 for ac_prog in egrep; do
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3302 # Check for GNU ac_path_EGREP and select it if it is found.
3303 # Check for GNU $ac_path_EGREP
3304 case `"$ac_path_EGREP" --version 2>&1` in
3306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3309 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3312 cat "conftest.in" "conftest.in" >"conftest.tmp"
3313 mv "conftest.tmp" "conftest.in"
3314 cp "conftest.in" "conftest.nl"
3315 echo 'EGREP' >> "conftest.nl"
3316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3318 ac_count=`expr $ac_count + 1`
3319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3320 # Best one so far, save it but keep looking for a better one
3321 ac_cv_path_EGREP="$ac_path_EGREP"
3322 ac_path_EGREP_max=$ac_count
3324 # 10*(2^10) chars as input seems more than enough
3325 test $ac_count -gt 10 && break
3327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331 $ac_path_EGREP_found && break 3
3341 EGREP="$ac_cv_path_EGREP"
3342 if test -z "$EGREP"; then
3343 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3344 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3345 { (exit 1); exit 1; }; }
3349 ac_cv_path_EGREP=$EGREP
3355 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3356 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3357 EGREP="$ac_cv_path_EGREP"
3360 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3362 if test "${ac_cv_header_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>conftest.er1
3393 grep -v '^ *+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } && {
3398 test -z "$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 } && test -s conftest.$ac_objext; then
3401 ac_cv_header_stdc=yes
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 ac_cv_header_stdc=no
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 if test $ac_cv_header_stdc = yes; then
3412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3413 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423 $EGREP "memchr" >/dev/null 2>&1; then
3426 ac_cv_header_stdc=no
3432 if test $ac_cv_header_stdc = yes; then
3433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444 $EGREP "free" >/dev/null 2>&1; then
3447 ac_cv_header_stdc=no
3453 if test $ac_cv_header_stdc = yes; then
3454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3455 if test "$cross_compiling" = yes; then
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3466 #if ((' ' & 0x0FF) == 0x020)
3467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3470 # define ISLOWER(c) \
3471 (('a' <= (c) && (c) <= 'i') \
3472 || ('j' <= (c) && (c) <= 'r') \
3473 || ('s' <= (c) && (c) <= 'z'))
3474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3482 for (i = 0; i < 256; i++)
3483 if (XOR (islower (i), ISLOWER (i))
3484 || toupper (i) != TOUPPER (i))
3489 rm -f conftest$ac_exeext
3490 if { (ac_try="$ac_link"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_link") 2>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3500 { (case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_try") 2>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3511 echo "$as_me: program exited with status $ac_status" >&5
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3516 ac_cv_header_stdc=no
3518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3524 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3525 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3526 if test $ac_cv_header_stdc = yes; then
3528 cat >>confdefs.h <<\_ACEOF
3529 #define STDC_HEADERS 1
3534 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3544 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3545 inttypes.h stdint.h unistd.h
3547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 $ac_includes_default
3561 #include <$ac_header>
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 } && test -s conftest.$ac_objext; then
3580 eval "$as_ac_Header=yes"
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 eval "$as_ac_Header=no"
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_res=`eval echo '${'$as_ac_Header'}'`
3591 { echo "$as_me:$LINENO: result: $ac_res" >&5
3592 echo "${ECHO_T}$ac_res" >&6; }
3593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3594 cat >>confdefs.h <<_ACEOF
3595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3603 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3604 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3605 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3606 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3610 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3612 # Is the header compilable?
3613 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3614 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3615 cat >conftest.$ac_ext <<_ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 $ac_includes_default
3622 #include <linux/fs.h>
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
3633 grep -v '^ *+' conftest.er1 >conftest.err
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest.$ac_objext; then
3641 ac_header_compiler=yes
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 ac_header_compiler=no
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3651 echo "${ECHO_T}$ac_header_compiler" >&6; }
3653 # Is the header present?
3654 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3655 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 #include <linux/fs.h>
3664 if { (ac_try="$ac_cpp conftest.$ac_ext"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3672 grep -v '^ *+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } >/dev/null && {
3677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3680 ac_header_preproc=yes
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 ac_header_preproc=no
3688 rm -f conftest.err conftest.$ac_ext
3689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3690 echo "${ECHO_T}$ac_header_preproc" >&6; }
3692 # So? What about this header?
3693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3695 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3696 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3698 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3699 ac_header_preproc=yes
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3703 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3705 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3707 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3709 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3711 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3713 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3717 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3718 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3719 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 ac_cv_header_linux_fs_h=$ac_header_preproc
3724 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3725 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3728 if test $ac_cv_header_linux_fs_h = yes; then
3735 if test "$linux_headers" != yes; then
3736 LINUX_INCLUDE='-I$(top_builddir)/include'
3739 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3740 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3741 if test "$GCC" = yes
3744 alpha) addcflags="-mieee" ;;
3747 if test "x$addcflags" != x
3749 { echo "$as_me:$LINENO: result: $addcflags" >&5
3750 echo "${ECHO_T}$addcflags" >&6; }
3751 CFLAGS="$addcflags $CFLAGS"
3753 { echo "$as_me:$LINENO: result: (none)" >&5
3754 echo "${ECHO_T}(none)" >&6; }
3760 # Check whether --with-ldopts was given.
3761 if test "${with_ldopts+set}" = set; then
3762 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3763 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3770 # Check whether --with-root-prefix was given.
3771 if test "${with_root_prefix+set}" = set; then
3772 withval=$with_root_prefix; root_prefix=$withval
3776 # Check whether --enable-maintainer-mode was given.
3777 if test "${enable_maintainer_mode+set}" = set; then
3778 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3781 echo "Disabling maintainer mode"
3784 echo "Enabling maintainer mode"
3789 echo "Disabling maintainer mode by default"
3794 # Check whether --enable-compression was given.
3795 if test "${enable_compression+set}" = set; then
3796 enableval=$enable_compression; if test "$enableval" = "no"
3798 echo "Disabling compression support"
3800 cat >>confdefs.h <<\_ACEOF
3801 #define ENABLE_COMPRESSION 1
3804 echo "Enabling compression support"
3805 echo "WARNING: Compression support is experimental"
3809 echo "Disabling compression support by default"
3813 # Check whether --enable-htree was given.
3814 if test "${enable_htree+set}" = set; then
3815 enableval=$enable_htree; if test "$enableval" = "no"
3818 echo "Disabling htree directory support"
3821 cat >>confdefs.h <<\_ACEOF
3822 #define ENABLE_HTREE 1
3825 echo "Enabling htree directory support"
3830 cat >>confdefs.h <<\_ACEOF
3831 #define ENABLE_HTREE 1
3834 echo "Enabling htree directory support by default"
3839 E2_PKG_CONFIG_STATIC=--static
3840 # Check whether --enable-elf-shlibs was given.
3841 if test "${enable_elf_shlibs+set}" = set; then
3842 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3845 MAKEFILE_ELF=/dev/null
3846 echo "Disabling ELF shared libraries"
3848 E2_PKG_CONFIG_STATIC=
3850 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3853 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3858 echo "Enabling ELF shared libraries"
3862 MAKEFILE_ELF=/dev/null
3864 echo "Disabling ELF shared libraries by default"
3870 # Check whether --enable-bsd-shlibs was given.
3871 if test "${enable_bsd_shlibs+set}" = set; then
3872 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3875 MAKEFILE_BSDLIB=/dev/null
3876 echo "Disabling BSD shared libraries"
3878 E2_PKG_CONFIG_STATIC=
3880 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3884 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3888 echo "Enabling BSD shared libraries"
3892 MAKEFILE_BSDLIB=/dev/null
3894 echo "Disabling BSD shared libraries by default"
3900 # Check whether --enable-profile was given.
3901 if test "${enable_profile+set}" = set; then
3902 enableval=$enable_profile; if test "$enableval" = "no"
3905 MAKEFILE_PROFILE=/dev/null
3906 echo "Disabling profiling libraries"
3909 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3910 PROFILED_LIB_EXT=_p.a
3911 echo "Building profiling libraries"
3916 MAKEFILE_PROFILE=/dev/null
3917 echo "Disabling profiling libraries by default"
3923 # Check whether --enable-checker was given.
3924 if test "${enable_checker+set}" = set; then
3925 enableval=$enable_checker; if test "$enableval" = "no"
3928 MAKEFILE_CHECKER=/dev/null
3929 echo "Disabling checker libraries"
3932 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3933 echo "Building checker libraries"
3938 MAKEFILE_CHECKER=/dev/null
3939 echo "Disabling checker libraries by default"
3948 # Check whether --enable-jbd-debug was given.
3949 if test "${enable_jbd_debug+set}" = set; then
3950 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3952 echo "Disabling journal debugging"
3954 cat >>confdefs.h <<\_ACEOF
3955 #define CONFIG_JBD_DEBUG 1
3958 echo "Enabling journal debugging"
3962 echo "Disabling journal debugging by default"
3966 # Check whether --enable-blkid-debug was given.
3967 if test "${enable_blkid_debug+set}" = set; then
3968 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3970 echo "Disabling blkid debugging"
3972 cat >>confdefs.h <<\_ACEOF
3973 #define CONFIG_BLKID_DEBUG 1
3976 echo "Enabling blkid debugging"
3980 echo "Disabling blkid debugging by default"
3984 # Check whether --enable-testio-debug was given.
3985 if test "${enable_testio_debug+set}" = set; then
3986 enableval=$enable_testio_debug; if test "$enableval" = "no"
3988 echo "Disabling testio debugging"
3990 cat >>confdefs.h <<\_ACEOF
3991 #define CONFIG_TESTIO_DEBUG 1
3994 echo "Enabling testio debugging"
3998 echo "Disabling testio debugging by default"
4002 # Check whether --enable-debugfs was given.
4003 if test "${enable_debugfs+set}" = set; then
4004 enableval=$enable_debugfs; if test "$enableval" = "no"
4006 echo "Disabling debugfs support"
4010 echo "Enabling debugfs support"
4014 echo "Enabling debugfs support by default"
4020 # Check whether --enable-imager was given.
4021 if test "${enable_imager+set}" = set; then
4022 enableval=$enable_imager; if test "$enableval" = "no"
4024 echo "Disabling e2image support"
4028 echo "Enabling e2image support"
4032 echo "Enabling e2image support by default"
4038 # Check whether --enable-resizer was given.
4039 if test "${enable_resizer+set}" = set; then
4040 enableval=$enable_resizer; if test "$enableval" = "no"
4042 echo "Disabling e2resize support"
4046 echo "Enabling e2resize support"
4050 echo "Enabling e2resize support by default"
4056 # Check whether --enable-fsck was given.
4057 if test "${enable_fsck+set}" = set; then
4058 enableval=$enable_fsck; if test "$enableval" = "no"
4060 FSCK_PROG='' FSCK_MAN=''
4061 echo "Not building fsck wrapper"
4063 FSCK_PROG=fsck FSCK_MAN=fsck.8
4064 echo "Building fsck wrapper"
4070 FSCK_PROG='' FSCK_MAN=''
4071 echo "Not building fsck wrapper by default"
4074 FSCK_PROG=fsck FSCK_MAN=fsck.8
4075 echo "Building fsck wrapper by default"
4082 # Check whether --enable-e2initrd-helper was given.
4083 if test "${enable_e2initrd_helper+set}" = set; then
4084 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4086 E2INITRD_PROG='' E2INITRD_MAN=''
4087 echo "Not building e2initrd helper"
4089 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4090 echo "Building e2initrd helper"
4094 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4095 echo "Building e2initrd helper by default"
4101 STATIC_BLKID_DEVMAPPER_LIBS=''
4102 # Check whether --enable-blkid-devmapper was given.
4103 if test "${enable_blkid_devmapper+set}" = set; then
4104 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4106 echo "Disabling device-mapper support"
4109 STATIC_DEVMAPPER_LIBS=''
4111 cat >>confdefs.h <<\_ACEOF
4112 #define HAVE_DEVMAPPER 1
4115 echo "Enabling device-mapper support"
4119 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4152 if test -n "$PKG_CONFIG"; then
4153 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4154 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4156 { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4162 if test -z "$ac_cv_path_PKG_CONFIG"; then
4163 ac_pt_PKG_CONFIG=$PKG_CONFIG
4164 # Extract the first word of "pkg-config", so it can be a program name with args.
4165 set dummy pkg-config; ac_word=$2
4166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 case $ac_pt_PKG_CONFIG in
4173 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4195 if test -n "$ac_pt_PKG_CONFIG"; then
4196 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4197 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4199 { echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6; }
4203 if test "x$ac_pt_PKG_CONFIG" = x; then
4206 case $cross_compiling:$ac_tool_warned in
4208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4209 whose name does not start with the host triplet. If you think this
4210 configuration is useful to you, please write to autoconf@gnu.org." >&5
4211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4212 whose name does not start with the host triplet. If you think this
4213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4214 ac_tool_warned=yes ;;
4216 PKG_CONFIG=$ac_pt_PKG_CONFIG
4219 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4223 if test -n "$PKG_CONFIG"; then
4224 _pkg_min_version=0.9.0
4225 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4226 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4227 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4228 { echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6; }
4231 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4238 if test -z "$PKG_CONFIG"; then
4239 echo "pkg-config not installed; please install it."
4243 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4244 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4245 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 ac_check_lib_save_LIBS=$LIBS
4249 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4257 /* Override any GCC internal prototype to avoid an error.
4258 Use char because int might match the return type of a GCC
4259 builtin and then its argument prototype would still apply. */
4263 char dm_tree_create ();
4267 return dm_tree_create ();
4272 rm -f conftest.$ac_objext conftest$ac_exeext
4273 if { (ac_try="$ac_link"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_link") 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 } && test -s conftest$ac_exeext &&
4289 $as_test_x conftest$ac_exeext; then
4290 ac_cv_lib_devmapper_dm_tree_create=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_cv_lib_devmapper_dm_tree_create=no
4298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299 conftest$ac_exeext conftest.$ac_ext
4300 LIBS=$ac_check_lib_save_LIBS
4302 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4303 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4304 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4305 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4306 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4307 DEVMAPPER_REQ="devmapper";
4308 DEVMAPPER_PC_LIBS="-ldevmapper"
4310 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4311 echo "$as_me: error: device-mapper library not found" >&2;}
4312 { (exit 1); exit 1; }; }
4315 # work around stupid devmapper.pc bug in Debian
4316 case "$STATIC_DEVMAPPER_LIBS" in
4320 echo "Working around Debian bug #390243..."
4321 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4324 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4325 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4326 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4331 echo "Disabling device-mapper support by default"
4340 # Check whether --enable-tls was given.
4341 if test "${enable_tls+set}" = set; then
4342 enableval=$enable_tls; if test "$enableval" = "no"
4345 echo "Disabling thread local support"
4348 echo "Enabling thread local support"
4353 echo "Try using thread local support by default"
4357 if test "$try_tls" = "yes"
4360 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4361 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4362 if test "${ac_cv_tls+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 ax_tls_keywords="__thread __declspec(thread) none"
4367 for ax_tls_keyword in $ax_tls_keywords; do
4368 case $ax_tls_keyword in
4369 none) ac_cv_tls=none ; break ;;
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4380 static $ax_tls_keyword int bar;
4391 rm -f conftest.$ac_objext
4392 if { (ac_try="$ac_compile"
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_compile") 2>conftest.er1
4400 grep -v '^ *+' conftest.er1 >conftest.err
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && {
4405 test -z "$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 } && test -s conftest.$ac_objext; then
4408 ac_cv_tls=$ax_tls_keyword ; break
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 if test "$ac_cv_tls" != "none"; then
4426 cat >>confdefs.h <<_ACEOF
4427 #define TLS $ac_cv_tls
4431 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4432 echo "${ECHO_T}$ac_cv_tls" >&6; }
4435 # Check whether --enable-uuidd was given.
4436 if test "${enable_uuidd+set}" = set; then
4437 enableval=$enable_uuidd; if test "$enableval" = "no"
4439 echo "Not building uuidd"
4442 cat >>confdefs.h <<\_ACEOF
4447 echo "Building uuidd"
4451 cat >>confdefs.h <<\_ACEOF
4456 echo "Building uuidd by default"
4461 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4463 GETTEXT_PACKAGE=e2fsprogs
4465 VERSION="$E2FSPROGS_VERSION"
4467 cat >>confdefs.h <<_ACEOF
4468 #define PACKAGE "$PACKAGE"
4471 cat >>confdefs.h <<_ACEOF
4472 #define VERSION "$VERSION"
4479 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4480 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4481 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4482 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 cat >conftest.make <<\_ACEOF
4488 @echo '@@@%%%=$(MAKE)=@@@%%%'
4490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4493 eval ac_cv_prog_make_${ac_make}_set=yes;;
4495 eval ac_cv_prog_make_${ac_make}_set=no;;
4499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4500 { echo "$as_me:$LINENO: result: yes" >&5
4501 echo "${ECHO_T}yes" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506 SET_MAKE="MAKE=${MAKE-make}"
4509 # Find a good install program. We prefer a C program (faster),
4510 # so one script is as good as another. But avoid the broken or
4511 # incompatible versions:
4512 # SysV /etc/install, /usr/sbin/install
4513 # SunOS /usr/etc/install
4514 # IRIX /sbin/install
4516 # AmigaOS /C/install, which installs bootblocks on floppy discs
4517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4520 # OS/2's system install, which has a completely different semantic
4521 # ./install, which can be erroneously created by make from ./install.sh.
4522 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4523 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4524 if test -z "$INSTALL"; then
4525 if test "${ac_cv_path_install+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir=.
4533 # Account for people who put trailing slashes in PATH elements.
4535 ./ | .// | /cC/* | \
4536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4537 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4540 # OSF1 and SCO ODT 3.0 have their own names for install.
4541 # Don't use installbsd from OSF since it installs stuff as root
4543 for ac_prog in ginstall scoinst install; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4546 if test $ac_prog = install &&
4547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4548 # AIX install. It has an incompatible calling convention.
4550 elif test $ac_prog = install &&
4551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4552 # program-specific install script used by HP pwplus--don't use.
4555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4568 if test "${ac_cv_path_install+set}" = set; then
4569 INSTALL=$ac_cv_path_install
4571 # As a last resort, use the slow shell script. Don't cache a
4572 # value for INSTALL within a source directory, because that will
4573 # break other packages using the cache if that directory is
4574 # removed, or if the value is a relative name.
4575 INSTALL=$ac_install_sh
4578 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4579 echo "${ECHO_T}$INSTALL" >&6; }
4581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4582 # It thinks the first close brace ends the variable substitution.
4583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4591 if test -n "$ac_aux_dir"; then
4592 case "$ac_aux_dir" in
4593 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4594 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4597 if test -z "$MKINSTALLDIRS"; then
4598 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4603 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4604 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4605 # Check whether --enable-nls was given.
4606 if test "${enable_nls+set}" = set; then
4607 enableval=$enable_nls; USE_NLS=$enableval
4612 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4613 echo "${ECHO_T}$USE_NLS" >&6; }
4620 # Prepare PATH_SEPARATOR.
4621 # The user is always right.
4622 if test "${PATH_SEPARATOR+set}" != set; then
4623 echo "#! /bin/sh" >conf$$.sh
4624 echo "exit 0" >>conf$$.sh
4626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4634 # Find out how to test for executable files. Don't use a zero-byte file,
4635 # as systems may use methods other than mode bits to determine executability.
4636 cat >conf$$.file <<_ASEOF
4640 chmod +x conf$$.file
4641 if test -x conf$$.file >/dev/null 2>&1; then
4642 ac_executable_p="test -x"
4644 ac_executable_p="test -f"
4648 # Extract the first word of "msgfmt", so it can be a program name with args.
4649 set dummy msgfmt; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_MSGFMT+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4660 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4661 for ac_dir in $PATH; do
4663 test -z "$ac_dir" && ac_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4666 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4667 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4668 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4675 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4679 MSGFMT="$ac_cv_path_MSGFMT"
4680 if test "$MSGFMT" != ":"; then
4681 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4682 echo "${ECHO_T}$MSGFMT" >&6; }
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4688 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4689 set dummy gmsgfmt; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4719 GMSGFMT=$ac_cv_path_GMSGFMT
4720 if test -n "$GMSGFMT"; then
4721 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4722 echo "${ECHO_T}$GMSGFMT" >&6; }
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4731 # Prepare PATH_SEPARATOR.
4732 # The user is always right.
4733 if test "${PATH_SEPARATOR+set}" != set; then
4734 echo "#! /bin/sh" >conf$$.sh
4735 echo "exit 0" >>conf$$.sh
4737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4745 # Find out how to test for executable files. Don't use a zero-byte file,
4746 # as systems may use methods other than mode bits to determine executability.
4747 cat >conf$$.file <<_ASEOF
4751 chmod +x conf$$.file
4752 if test -x conf$$.file >/dev/null 2>&1; then
4753 ac_executable_p="test -x"
4755 ac_executable_p="test -f"
4759 # Extract the first word of "xgettext", so it can be a program name with args.
4760 set dummy xgettext; ac_word=$2
4761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4763 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4771 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4772 for ac_dir in $PATH; do
4774 test -z "$ac_dir" && ac_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4777 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4778 (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
4779 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4786 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4790 XGETTEXT="$ac_cv_path_XGETTEXT"
4791 if test "$XGETTEXT" != ":"; then
4792 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4793 echo "${ECHO_T}$XGETTEXT" >&6; }
4795 { echo "$as_me:$LINENO: result: no" >&5
4796 echo "${ECHO_T}no" >&6; }
4802 # Prepare PATH_SEPARATOR.
4803 # The user is always right.
4804 if test "${PATH_SEPARATOR+set}" != set; then
4805 echo "#! /bin/sh" >conf$$.sh
4806 echo "exit 0" >>conf$$.sh
4808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4816 # Find out how to test for executable files. Don't use a zero-byte file,
4817 # as systems may use methods other than mode bits to determine executability.
4818 cat >conf$$.file <<_ASEOF
4822 chmod +x conf$$.file
4823 if test -x conf$$.file >/dev/null 2>&1; then
4824 ac_executable_p="test -x"
4826 ac_executable_p="test -f"
4830 # Extract the first word of "msgmerge", so it can be a program name with args.
4831 set dummy msgmerge; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4842 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4843 for ac_dir in $PATH; do
4845 test -z "$ac_dir" && ac_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4848 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4849 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4856 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4860 MSGMERGE="$ac_cv_path_MSGMERGE"
4861 if test "$MSGMERGE" != ":"; then
4862 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4863 echo "${ECHO_T}$MSGMERGE" >&6; }
4865 { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4870 if test "$GMSGFMT" != ":"; then
4871 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4872 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4875 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4876 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4877 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4882 if test "$XGETTEXT" != ":"; then
4883 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4884 (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
4887 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4888 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4894 ac_config_commands="$ac_config_commands default-1"
4897 if test -n "$ac_tool_prefix"; then
4898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_prog_RANLIB+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 if test -n "$RANLIB"; then
4906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 RANLIB=$ac_cv_prog_RANLIB
4926 if test -n "$RANLIB"; then
4927 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4928 echo "${ECHO_T}$RANLIB" >&6; }
4930 { echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6; }
4936 if test -z "$ac_cv_prog_RANLIB"; then
4937 ac_ct_RANLIB=$RANLIB
4938 # Extract the first word of "ranlib", so it can be a program name with args.
4939 set dummy ranlib; ac_word=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 if test -n "$ac_ct_RANLIB"; then
4946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_prog_ac_ct_RANLIB="ranlib"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4966 if test -n "$ac_ct_RANLIB"; then
4967 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4968 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4974 if test "x$ac_ct_RANLIB" = x; then
4977 case $cross_compiling:$ac_tool_warned in
4979 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4980 whose name does not start with the host triplet. If you think this
4981 configuration is useful to you, please write to autoconf@gnu.org." >&5
4982 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4983 whose name does not start with the host triplet. If you think this
4984 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4985 ac_tool_warned=yes ;;
4987 RANLIB=$ac_ct_RANLIB
4990 RANLIB="$ac_cv_prog_RANLIB"
4994 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4995 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4996 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 ac_check_lib_save_LIBS=$LIBS
5000 LIBS="-lcposix $LIBS"
5001 cat >conftest.$ac_ext <<_ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5008 /* Override any GCC internal prototype to avoid an error.
5009 Use char because int might match the return type of a GCC
5010 builtin and then its argument prototype would still apply. */
5023 rm -f conftest.$ac_objext conftest$ac_exeext
5024 if { (ac_try="$ac_link"
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_link") 2>conftest.er1
5032 grep -v '^ *+' conftest.er1 >conftest.err
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && {
5037 test -z "$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest$ac_exeext &&
5040 $as_test_x conftest$ac_exeext; then
5041 ac_cv_lib_cposix_strerror=yes
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 ac_cv_lib_cposix_strerror=no
5049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5050 conftest$ac_exeext conftest.$ac_ext
5051 LIBS=$ac_check_lib_save_LIBS
5053 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5054 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5055 if test $ac_cv_lib_cposix_strerror = yes; then
5056 LIBS="$LIBS -lcposix"
5061 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5062 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5063 if test "${ac_cv_c_const+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5076 /* FIXME: Include the comments suggested by Paul. */
5078 /* Ultrix mips cc rejects this. */
5079 typedef int charset[2];
5081 /* SunOS 4.1.1 cc rejects this. */
5082 char const *const *pcpcc;
5084 /* NEC SVR4.0.2 mips cc rejects this. */
5085 struct point {int x, y;};
5086 static struct point const zero = {0,0};
5087 /* AIX XL C 1.02.0.0 rejects this.
5088 It does not let you subtract one const X* pointer from another in
5089 an arm of an if-expression whose if-part is not a constant
5091 const char *g = "string";
5092 pcpcc = &g + (g ? g-g : 0);
5093 /* HPUX 7.0 cc rejects these. */
5095 ppc = (char**) pcpcc;
5096 pcpcc = (char const *const *) ppc;
5097 { /* SCO 3.2v4 cc rejects this. */
5099 char const *s = 0 ? (char *) 0 : (char const *) 0;
5104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5106 const int *foo = &x[0];
5109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5110 typedef const int *iptr;
5114 { /* AIX XL C 1.02.0.0 rejects this saying
5115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5116 struct s { int j; const int *ap[3]; };
5117 struct s *b; b->j = 5;
5119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5123 return !cs[0] && !zero.x;
5130 rm -f conftest.$ac_objext
5131 if { (ac_try="$ac_compile"
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_compile") 2>conftest.er1
5139 grep -v '^ *+' conftest.er1 >conftest.err
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } && {
5144 test -z "$ac_c_werror_flag" ||
5145 test ! -s conftest.err
5146 } && test -s conftest.$ac_objext; then
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5158 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5159 if test $ac_cv_c_const = no; then
5161 cat >>confdefs.h <<\_ACEOF
5168 { echo "$as_me:$LINENO: checking for signed" >&5
5169 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5170 if test "${bh_cv_c_signed+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_compile") 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } && {
5202 test -z "$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 } && test -s conftest.$ac_objext; then
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5216 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5217 if test $bh_cv_c_signed = no; then
5219 cat >>confdefs.h <<\_ACEOF
5225 { echo "$as_me:$LINENO: checking for inline" >&5
5226 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5227 if test "${ac_cv_c_inline+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 for ac_kw in inline __inline__ __inline; do
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5240 static $ac_kw foo_t static_foo () {return 0; }
5241 $ac_kw foo_t foo () {return 0; }
5245 rm -f conftest.$ac_objext
5246 if { (ac_try="$ac_compile"
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
5254 grep -v '^ *+' conftest.er1 >conftest.err
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
5262 ac_cv_c_inline=$ac_kw
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 test "$ac_cv_c_inline" != no && break
5275 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5276 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5279 case $ac_cv_c_inline in
5282 case $ac_cv_c_inline in
5284 *) ac_val=$ac_cv_c_inline;;
5286 cat >>confdefs.h <<_ACEOF
5288 #define inline $ac_val
5294 { echo "$as_me:$LINENO: checking for off_t" >&5
5295 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5296 if test "${ac_cv_type_off_t+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 cat >conftest.$ac_ext <<_ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 $ac_includes_default
5306 typedef off_t ac__type_new_;
5310 if ((ac__type_new_ *) 0)
5312 if (sizeof (ac__type_new_))
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compile") 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest.$ac_objext; then
5335 ac_cv_type_off_t=yes
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5346 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5347 if test $ac_cv_type_off_t = yes; then
5351 cat >>confdefs.h <<_ACEOF
5352 #define off_t long int
5357 { echo "$as_me:$LINENO: checking for size_t" >&5
5358 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5359 if test "${ac_cv_type_size_t+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5369 typedef size_t ac__type_new_;
5373 if ((ac__type_new_ *) 0)
5375 if (sizeof (ac__type_new_))
5381 rm -f conftest.$ac_objext
5382 if { (ac_try="$ac_compile"
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compile") 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest.$ac_objext; then
5398 ac_cv_type_size_t=yes
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_type_size_t=no
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5409 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5410 if test $ac_cv_type_size_t = yes; then
5414 cat >>confdefs.h <<_ACEOF
5415 #define size_t unsigned int
5421 { echo "$as_me:$LINENO: checking for long long" >&5
5422 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5423 if test "${ac_cv_type_long_long+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 long long ll = 1LL; int i = 63;
5436 long long llmax = (long long) -1;
5437 return ll << i | ll >> i | llmax / ll | llmax % ll;
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (ac_try="$ac_link"
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_link") 2>conftest.er1
5451 grep -v '^ *+' conftest.er1 >conftest.err
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest$ac_exeext &&
5459 $as_test_x conftest$ac_exeext; then
5460 ac_cv_type_long_long=yes
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_cv_type_long_long=no
5468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5469 conftest$ac_exeext conftest.$ac_ext
5471 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5472 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5473 if test $ac_cv_type_long_long = yes; then
5475 cat >>confdefs.h <<\_ACEOF
5476 #define HAVE_LONG_LONG 1
5482 { echo "$as_me:$LINENO: checking for long double" >&5
5483 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5484 if test "${gt_cv_c_long_double+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 if test "$GCC" = yes; then
5488 gt_cv_c_long_double=yes
5490 cat >conftest.$ac_ext <<_ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5497 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5498 long double foo = 0.0;
5499 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5500 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5510 rm -f conftest.$ac_objext
5511 if { (ac_try="$ac_compile"
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compile") 2>conftest.er1
5519 grep -v '^ *+' conftest.er1 >conftest.err
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest.$ac_objext; then
5527 gt_cv_c_long_double=yes
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 gt_cv_c_long_double=no
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5539 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5540 if test $gt_cv_c_long_double = yes; then
5542 cat >>confdefs.h <<\_ACEOF
5543 #define HAVE_LONG_DOUBLE 1
5549 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5550 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5551 if test "${gt_cv_c_wchar_t+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 cat >conftest.$ac_ext <<_ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5561 wchar_t foo = (wchar_t)'\0';
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5598 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5599 if test $gt_cv_c_wchar_t = yes; then
5601 cat >>confdefs.h <<\_ACEOF
5602 #define HAVE_WCHAR_T 1
5608 { echo "$as_me:$LINENO: checking for wint_t" >&5
5609 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5610 if test "${gt_cv_c_wint_t+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 cat >conftest.$ac_ext <<_ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5620 wint_t foo = (wchar_t)'\0';
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5657 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5658 if test $gt_cv_c_wint_t = yes; then
5660 cat >>confdefs.h <<\_ACEOF
5661 #define HAVE_WINT_T 1
5667 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5668 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5669 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 cat >conftest.$ac_ext <<_ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #include <sys/types.h>
5679 #include <inttypes.h>
5683 uintmax_t i = (uintmax_t) -1;
5688 rm -f conftest.$ac_objext
5689 if { (ac_try="$ac_compile"
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_compile") 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } && {
5702 test -z "$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest.$ac_objext; then
5705 jm_ac_cv_header_inttypes_h=yes
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710 jm_ac_cv_header_inttypes_h=no
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5716 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5717 if test $jm_ac_cv_header_inttypes_h = yes; then
5719 cat >>confdefs.h <<_ACEOF
5720 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5726 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5727 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5728 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 cat >conftest.$ac_ext <<_ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 #include <sys/types.h>
5742 uintmax_t i = (uintmax_t) -1;
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
5756 grep -v '^ *+' conftest.er1 >conftest.err
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } && {
5761 test -z "$ac_c_werror_flag" ||
5762 test ! -s conftest.err
5763 } && test -s conftest.$ac_objext; then
5764 jm_ac_cv_header_stdint_h=yes
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 jm_ac_cv_header_stdint_h=no
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5775 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5776 if test $jm_ac_cv_header_stdint_h = yes; then
5778 cat >>confdefs.h <<_ACEOF
5779 #define HAVE_STDINT_H_WITH_UINTMAX 1
5787 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5788 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5789 if test "${gt_cv_c_intmax_t+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 cat >conftest.$ac_ext <<_ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5801 #if HAVE_STDINT_H_WITH_UINTMAX
5804 #if HAVE_INTTYPES_H_WITH_UINTMAX
5805 #include <inttypes.h>
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5825 grep -v '^ *+' conftest.er1 >conftest.err
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
5833 gt_cv_c_intmax_t=yes
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5844 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5845 if test $gt_cv_c_intmax_t = yes; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_INTMAX_T 1
5855 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5856 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5857 if test "${gt_cv_func_printf_posix+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 if test "$cross_compiling" = yes; then
5863 cat >conftest.$ac_ext <<_ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5870 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5876 $EGREP "notposix" >/dev/null 2>&1; then
5877 gt_cv_func_printf_posix="guessing no"
5879 gt_cv_func_printf_posix="guessing yes"
5885 cat >conftest.$ac_ext <<_ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5894 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5895 dollar expansion (possibly an autoconf bug). */
5896 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5897 static char buf[100];
5900 sprintf (buf, format, 33, 55);
5901 return (strcmp (buf, "55 33") != 0);
5904 rm -f conftest$ac_exeext
5905 if { (ac_try="$ac_link"
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_link") 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5915 { (case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_try") 2>&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 gt_cv_func_printf_posix=yes
5926 echo "$as_me: program exited with status $ac_status" >&5
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5931 gt_cv_func_printf_posix=no
5933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5939 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5940 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5941 case $gt_cv_func_printf_posix in
5944 cat >>confdefs.h <<\_ACEOF
5945 #define HAVE_POSIX_PRINTF 1
5951 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5952 # for constant arguments. Useless!
5953 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5954 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5955 if test "${ac_cv_working_alloca_h+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 cat >conftest.$ac_ext <<_ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5968 char *p = (char *) alloca (2 * sizeof (int));
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_link") 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && {
5988 test -z "$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest$ac_exeext &&
5991 $as_test_x conftest$ac_exeext; then
5992 ac_cv_working_alloca_h=yes
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_working_alloca_h=no
6000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6001 conftest$ac_exeext conftest.$ac_ext
6003 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6004 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6005 if test $ac_cv_working_alloca_h = yes; then
6007 cat >>confdefs.h <<\_ACEOF
6008 #define HAVE_ALLOCA_H 1
6013 { echo "$as_me:$LINENO: checking for alloca" >&5
6014 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6015 if test "${ac_cv_func_alloca_works+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 cat >conftest.$ac_ext <<_ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6025 # define alloca __builtin_alloca
6028 # include <malloc.h>
6029 # define alloca _alloca
6031 # ifdef HAVE_ALLOCA_H
6032 # include <alloca.h>
6037 # ifndef alloca /* predefined by HP cc +Olibcalls */
6048 char *p = (char *) alloca (1);
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (ac_try="$ac_link"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_link") 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest$ac_exeext &&
6071 $as_test_x conftest$ac_exeext; then
6072 ac_cv_func_alloca_works=yes
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 ac_cv_func_alloca_works=no
6080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6081 conftest$ac_exeext conftest.$ac_ext
6083 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6084 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6086 if test $ac_cv_func_alloca_works = yes; then
6088 cat >>confdefs.h <<\_ACEOF
6089 #define HAVE_ALLOCA 1
6093 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6094 # that cause trouble. Some versions do not even contain alloca or
6095 # contain a buggy version. If you still want to use their alloca,
6096 # use ar to extract alloca.o from them instead of compiling alloca.c.
6098 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6100 cat >>confdefs.h <<\_ACEOF
6105 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6106 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6107 if test "${ac_cv_os_cray+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #if defined CRAY && ! defined CRAY2
6123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124 $EGREP "webecray" >/dev/null 2>&1; then
6132 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6133 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6134 if test $ac_cv_os_cray = yes; then
6135 for ac_func in _getb67 GETB67 getb67; do
6136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 cat >conftest.$ac_ext <<_ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6150 #define $ac_func innocuous_$ac_func
6152 /* System header to define __stub macros and hopefully few prototypes,
6153 which can conflict with char $ac_func (); below.
6154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155 <limits.h> exists even on freestanding compilers. */
6158 # include <limits.h>
6160 # include <assert.h>
6165 /* Override any GCC internal prototype to avoid an error.
6166 Use char because int might match the return type of a GCC
6167 builtin and then its argument prototype would still apply. */
6172 /* The GNU C library defines this for functions which it implements
6173 to always fail with ENOSYS. Some functions are actually named
6174 something starting with __ and the normal name is an alias. */
6175 #if defined __stub_$ac_func || defined __stub___$ac_func
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (ac_try="$ac_link"
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194 (eval "$ac_link") 2>conftest.er1
6196 grep -v '^ *+' conftest.er1 >conftest.err
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } && {
6201 test -z "$ac_c_werror_flag" ||
6202 test ! -s conftest.err
6203 } && test -s conftest$ac_exeext &&
6204 $as_test_x conftest$ac_exeext; then
6205 eval "$as_ac_var=yes"
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 eval "$as_ac_var=no"
6213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6214 conftest$ac_exeext conftest.$ac_ext
6216 ac_res=`eval echo '${'$as_ac_var'}'`
6217 { echo "$as_me:$LINENO: result: $ac_res" >&5
6218 echo "${ECHO_T}$ac_res" >&6; }
6219 if test `eval echo '${'$as_ac_var'}'` = yes; then
6221 cat >>confdefs.h <<_ACEOF
6222 #define CRAY_STACKSEG_END $ac_func
6231 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6232 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6233 if test "${ac_cv_c_stack_direction+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 if test "$cross_compiling" = yes; then
6237 ac_cv_c_stack_direction=0
6239 cat >conftest.$ac_ext <<_ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6247 find_stack_direction ()
6249 static char *addr = 0;
6254 return find_stack_direction ();
6257 return (&dummy > addr) ? 1 : -1;
6263 return find_stack_direction () < 0;
6266 rm -f conftest$ac_exeext
6267 if { (ac_try="$ac_link"
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_link") 2>&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6277 { (case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_try") 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_c_stack_direction=1
6288 echo "$as_me: program exited with status $ac_status" >&5
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6293 ac_cv_c_stack_direction=-1
6295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6300 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6301 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6303 cat >>confdefs.h <<_ACEOF
6304 #define STACK_DIRECTION $ac_cv_c_stack_direction
6312 for ac_header in stdlib.h unistd.h
6314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_res=`eval echo '${'$as_ac_Header'}'`
6322 { echo "$as_me:$LINENO: result: $ac_res" >&5
6323 echo "${ECHO_T}$ac_res" >&6; }
6325 # Is the header compilable?
6326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6335 #include <$ac_header>
6337 rm -f conftest.$ac_objext
6338 if { (ac_try="$ac_compile"
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compile") 2>conftest.er1
6346 grep -v '^ *+' conftest.er1 >conftest.err
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest.$ac_objext; then
6354 ac_header_compiler=yes
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 ac_header_compiler=no
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6; }
6366 # Is the header present?
6367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6369 cat >conftest.$ac_ext <<_ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 #include <$ac_header>
6377 if { (ac_try="$ac_cpp conftest.$ac_ext"
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6385 grep -v '^ *+' conftest.er1 >conftest.err
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } >/dev/null && {
6390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6393 ac_header_preproc=yes
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6398 ac_header_preproc=no
6401 rm -f conftest.err conftest.$ac_ext
6402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403 echo "${ECHO_T}$ac_header_preproc" >&6; }
6405 # So? What about this header?
6406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6412 ac_header_preproc=yes
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 eval "$as_ac_Header=\$ac_header_preproc"
6437 ac_res=`eval echo '${'$as_ac_Header'}'`
6438 { echo "$as_me:$LINENO: result: $ac_res" >&5
6439 echo "${ECHO_T}$ac_res" >&6; }
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6452 for ac_func in getpagesize
6454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6468 #define $ac_func innocuous_$ac_func
6470 /* System header to define __stub macros and hopefully few prototypes,
6471 which can conflict with char $ac_func (); below.
6472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473 <limits.h> exists even on freestanding compilers. */
6476 # include <limits.h>
6478 # include <assert.h>
6483 /* Override any GCC internal prototype to avoid an error.
6484 Use char because int might match the return type of a GCC
6485 builtin and then its argument prototype would still apply. */
6490 /* The GNU C library defines this for functions which it implements
6491 to always fail with ENOSYS. Some functions are actually named
6492 something starting with __ and the normal name is an alias. */
6493 #if defined __stub_$ac_func || defined __stub___$ac_func
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (ac_try="$ac_link"
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_link") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest$ac_exeext &&
6522 $as_test_x conftest$ac_exeext; then
6523 eval "$as_ac_var=yes"
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 eval "$as_ac_var=no"
6531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6532 conftest$ac_exeext conftest.$ac_ext
6534 ac_res=`eval echo '${'$as_ac_var'}'`
6535 { echo "$as_me:$LINENO: result: $ac_res" >&5
6536 echo "${ECHO_T}$ac_res" >&6; }
6537 if test `eval echo '${'$as_ac_var'}'` = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6545 { echo "$as_me:$LINENO: checking for working mmap" >&5
6546 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6547 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 if test "$cross_compiling" = yes; then
6551 ac_cv_func_mmap_fixed_mapped=no
6553 cat >conftest.$ac_ext <<_ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 $ac_includes_default
6560 /* malloc might have been renamed as rpl_malloc. */
6563 /* Thanks to Mike Haertel and Jim Avera for this test.
6564 Here is a matrix of mmap possibilities:
6565 mmap private not fixed
6566 mmap private fixed at somewhere currently unmapped
6567 mmap private fixed at somewhere already mapped
6568 mmap shared not fixed
6569 mmap shared fixed at somewhere currently unmapped
6570 mmap shared fixed at somewhere already mapped
6571 For private mappings, we should verify that changes cannot be read()
6572 back from the file, nor mmap's back from the file at a different
6573 address. (There have been systems where private was not correctly
6574 implemented like the infamous i386 svr4.0, and systems where the
6575 VM page cache was not coherent with the file system buffer cache
6576 like early versions of FreeBSD and possibly contemporary NetBSD.)
6577 For shared mappings, we should conversely verify that changes get
6578 propagated back to all the places they're supposed to be.
6580 Grep wants private fixed already mapped.
6581 The main things grep needs to know about mmap are:
6582 * does it exist and is it safe to write into the mmap'd area
6583 * how to use it (BSD variants) */
6586 #include <sys/mman.h>
6588 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6592 /* This mess was copied from the GNU getpagesize.h. */
6593 #ifndef HAVE_GETPAGESIZE
6594 /* Assume that all systems that can run configure have sys/param.h. */
6595 # ifndef HAVE_SYS_PARAM_H
6596 # define HAVE_SYS_PARAM_H 1
6599 # ifdef _SC_PAGESIZE
6600 # define getpagesize() sysconf(_SC_PAGESIZE)
6601 # else /* no _SC_PAGESIZE */
6602 # ifdef HAVE_SYS_PARAM_H
6603 # include <sys/param.h>
6604 # ifdef EXEC_PAGESIZE
6605 # define getpagesize() EXEC_PAGESIZE
6606 # else /* no EXEC_PAGESIZE */
6608 # define getpagesize() NBPG * CLSIZE
6611 # endif /* no CLSIZE */
6612 # else /* no NBPG */
6614 # define getpagesize() NBPC
6615 # else /* no NBPC */
6617 # define getpagesize() PAGESIZE
6618 # endif /* PAGESIZE */
6619 # endif /* no NBPC */
6620 # endif /* no NBPG */
6621 # endif /* no EXEC_PAGESIZE */
6622 # else /* no HAVE_SYS_PARAM_H */
6623 # define getpagesize() 8192 /* punt totally */
6624 # endif /* no HAVE_SYS_PARAM_H */
6625 # endif /* no _SC_PAGESIZE */
6627 #endif /* no HAVE_GETPAGESIZE */
6632 char *data, *data2, *data3;
6636 pagesize = getpagesize ();
6638 /* First, make a file with some known garbage in it. */
6639 data = (char *) malloc (pagesize);
6642 for (i = 0; i < pagesize; ++i)
6643 *(data + i) = rand ();
6645 fd = creat ("conftest.mmap", 0600);
6648 if (write (fd, data, pagesize) != pagesize)
6652 /* Next, try to mmap the file at a fixed address which already has
6653 something else allocated at it. If we can, also make sure that
6654 we see the same garbage. */
6655 fd = open ("conftest.mmap", O_RDWR);
6658 data2 = (char *) malloc (2 * pagesize);
6661 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6662 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6663 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6665 for (i = 0; i < pagesize; ++i)
6666 if (*(data + i) != *(data2 + i))
6669 /* Finally, make sure that changes to the mapped area do not
6670 percolate back to the file as seen by read(). (This is a bug on
6671 some variants of i386 svr4.0.) */
6672 for (i = 0; i < pagesize; ++i)
6673 *(data2 + i) = *(data2 + i) + 1;
6674 data3 = (char *) malloc (pagesize);
6677 if (read (fd, data3, pagesize) != pagesize)
6679 for (i = 0; i < pagesize; ++i)
6680 if (*(data + i) != *(data3 + i))
6686 rm -f conftest$ac_exeext
6687 if { (ac_try="$ac_link"
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_link") 2>&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6697 { (case "(($ac_try" in
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702 (eval "$ac_try") 2>&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 ac_cv_func_mmap_fixed_mapped=yes
6708 echo "$as_me: program exited with status $ac_status" >&5
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6713 ac_cv_func_mmap_fixed_mapped=no
6715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6720 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6721 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6722 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6724 cat >>confdefs.h <<\_ACEOF
6732 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6733 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6734 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 cat >conftest.$ac_ext <<_ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6744 #include <features.h>
6745 #ifdef __GNU_LIBRARY__
6746 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6754 ac_cv_gnu_library_2_1=yes
6756 ac_cv_gnu_library_2_1=no
6763 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6764 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6766 GLIBC21="$ac_cv_gnu_library_2_1"
6771 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6772 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6773 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 if test "$cross_compiling" = yes; then
6779 # Guess based on the CPU.
6781 alpha* | i3456786 | m68k | s390*)
6782 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6784 gt_cv_int_divbyzero_sigfpe="guessing no";;
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6800 sigfpe_handler (int sig)
6802 sigfpe_handler (sig) int sig;
6805 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6806 exit (sig != SIGFPE);
6816 signal (SIGFPE, sigfpe_handler);
6817 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6818 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6819 signal (SIGTRAP, sigfpe_handler);
6821 /* Linux/SPARC yields signal SIGILL. */
6822 #if defined (__sparc__) && defined (__linux__)
6823 signal (SIGILL, sigfpe_handler);
6832 rm -f conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_link") 2>&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6843 { (case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_try") 2>&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 gt_cv_int_divbyzero_sigfpe=yes
6854 echo "$as_me: program exited with status $ac_status" >&5
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6859 gt_cv_int_divbyzero_sigfpe=no
6861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6867 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6868 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6869 case "$gt_cv_int_divbyzero_sigfpe" in
6874 cat >>confdefs.h <<_ACEOF
6875 #define INTDIV0_RAISES_SIGFPE $value
6880 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6881 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6882 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 cat >conftest.$ac_ext <<_ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 unsigned long long ull = 1ULL; int i = 63;
6895 unsigned long long ullmax = (unsigned long long) -1;
6896 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_link") 2>conftest.er1
6910 grep -v '^ *+' conftest.er1 >conftest.err
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest$ac_exeext &&
6918 $as_test_x conftest$ac_exeext; then
6919 ac_cv_type_unsigned_long_long=yes
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6924 ac_cv_type_unsigned_long_long=no
6927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928 conftest$ac_exeext conftest.$ac_ext
6930 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6931 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6932 if test $ac_cv_type_unsigned_long_long = yes; then
6934 cat >>confdefs.h <<\_ACEOF
6935 #define HAVE_UNSIGNED_LONG_LONG 1
6943 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6945 test $ac_cv_type_unsigned_long_long = yes \
6946 && ac_type='unsigned long long' \
6947 || ac_type='unsigned long'
6949 cat >>confdefs.h <<_ACEOF
6950 #define uintmax_t $ac_type
6955 cat >>confdefs.h <<\_ACEOF
6956 #define HAVE_UINTMAX_T 1
6962 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6963 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6964 if test "${gt_cv_header_inttypes_h+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6975 #include <inttypes.h>
6984 rm -f conftest.$ac_objext
6985 if { (ac_try="$ac_compile"
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991 (eval "$ac_compile") 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && {
6998 test -z "$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7000 } && test -s conftest.$ac_objext; then
7001 gt_cv_header_inttypes_h=yes
7003 echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7006 gt_cv_header_inttypes_h=no
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7013 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7014 if test $gt_cv_header_inttypes_h = yes; then
7016 cat >>confdefs.h <<_ACEOF
7017 #define HAVE_INTTYPES_H 1
7024 if test $gt_cv_header_inttypes_h = yes; then
7025 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7026 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7027 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <inttypes.h>
7050 rm -f conftest.$ac_objext
7051 if { (ac_try="$ac_compile"
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_compile") 2>conftest.er1
7059 grep -v '^ *+' conftest.er1 >conftest.err
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && {
7064 test -z "$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7066 } && test -s conftest.$ac_objext; then
7067 gt_cv_inttypes_pri_broken=no
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7072 gt_cv_inttypes_pri_broken=yes
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7079 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7081 if test "$gt_cv_inttypes_pri_broken" = yes; then
7083 cat >>confdefs.h <<_ACEOF
7084 #define PRI_MACROS_BROKEN 1
7091 for ac_header in stdint.h
7093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 ac_res=`eval echo '${'$as_ac_Header'}'`
7101 { echo "$as_me:$LINENO: result: $ac_res" >&5
7102 echo "${ECHO_T}$ac_res" >&6; }
7104 # Is the header compilable?
7105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 $ac_includes_default
7114 #include <$ac_header>
7116 rm -f conftest.$ac_objext
7117 if { (ac_try="$ac_compile"
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7123 (eval "$ac_compile") 2>conftest.er1
7125 grep -v '^ *+' conftest.er1 >conftest.err
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest.$ac_objext; then
7133 ac_header_compiler=yes
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_header_compiler=no
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7143 echo "${ECHO_T}$ac_header_compiler" >&6; }
7145 # Is the header present?
7146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 #include <$ac_header>
7156 if { (ac_try="$ac_cpp conftest.$ac_ext"
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7164 grep -v '^ *+' conftest.er1 >conftest.err
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } >/dev/null && {
7169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7172 ac_header_preproc=yes
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7177 ac_header_preproc=no
7180 rm -f conftest.err conftest.$ac_ext
7181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182 echo "${ECHO_T}$ac_header_preproc" >&6; }
7184 # So? What about this header?
7185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7191 ac_header_preproc=yes
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 eval "$as_ac_Header=\$ac_header_preproc"
7216 ac_res=`eval echo '${'$as_ac_Header'}'`
7217 { echo "$as_me:$LINENO: result: $ac_res" >&5
7218 echo "${ECHO_T}$ac_res" >&6; }
7221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222 cat >>confdefs.h <<_ACEOF
7223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7230 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7231 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7233 cat >conftest.$ac_ext <<_ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250 $EGREP "Found it" >/dev/null 2>&1; then
7255 if test -z "$result"; then
7256 if test "$cross_compiling" = yes; then
7257 # Depending upon the size, compute the lo and hi bounds.
7258 cat >conftest.$ac_ext <<_ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7268 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7275 rm -f conftest.$ac_objext
7276 if { (ac_try="$ac_compile"
7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282 (eval "$ac_compile") 2>conftest.er1
7284 grep -v '^ *+' conftest.er1 >conftest.err
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } && {
7289 test -z "$ac_c_werror_flag" ||
7290 test ! -s conftest.err
7291 } && test -s conftest.$ac_objext; then
7294 cat >conftest.$ac_ext <<_ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7304 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7311 rm -f conftest.$ac_objext
7312 if { (ac_try="$ac_compile"
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_hi=$ac_mid; break
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_lo=`expr $ac_mid + 1`
7334 if test $ac_lo -le $ac_mid; then
7338 ac_mid=`expr 2 '*' $ac_mid + 1`
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 cat >conftest.$ac_ext <<_ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7357 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7364 rm -f conftest.$ac_objext
7365 if { (ac_try="$ac_compile"
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371 (eval "$ac_compile") 2>conftest.er1
7373 grep -v '^ *+' conftest.er1 >conftest.err
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest.$ac_objext; then
7383 cat >conftest.$ac_ext <<_ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7393 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7400 rm -f conftest.$ac_objext
7401 if { (ac_try="$ac_compile"
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_compile") 2>conftest.er1
7409 grep -v '^ *+' conftest.er1 >conftest.err
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
7417 ac_lo=$ac_mid; break
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_hi=`expr '(' $ac_mid ')' - 1`
7423 if test $ac_mid -le $ac_hi; then
7427 ac_mid=`expr 2 '*' $ac_mid`
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 # Binary search between lo and hi bounds.
7444 while test "x$ac_lo" != "x$ac_hi"; do
7445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7446 cat >conftest.$ac_ext <<_ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7456 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7463 rm -f conftest.$ac_objext
7464 if { (ac_try="$ac_compile"
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470 (eval "$ac_compile") 2>conftest.er1
7472 grep -v '^ *+' conftest.er1 >conftest.err
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } && {
7477 test -z "$ac_c_werror_flag" ||
7478 test ! -s conftest.err
7479 } && test -s conftest.$ac_objext; then
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 ac_lo=`expr '(' $ac_mid ')' + 1`
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 cat >conftest.$ac_ext <<_ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7502 static long int longval () { return ~(size_t)0 / 10; }
7503 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7510 FILE *f = fopen ("conftest.val", "w");
7513 if ((~(size_t)0 / 10) < 0)
7515 long int i = longval ();
7516 if (i != (~(size_t)0 / 10))
7518 fprintf (f, "%ld\n", i);
7522 unsigned long int i = ulongval ();
7523 if (i != (~(size_t)0 / 10))
7525 fprintf (f, "%lu\n", i);
7527 return ferror (f) || fclose (f) != 0;
7533 rm -f conftest$ac_exeext
7534 if { (ac_try="$ac_link"
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_link") 2>&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7544 { (case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_try") 2>&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 res_hi=`cat conftest.val`
7555 echo "$as_me: program exited with status $ac_status" >&5
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7566 if test "$cross_compiling" = yes; then
7567 # Depending upon the size, compute the lo and hi bounds.
7568 cat >conftest.$ac_ext <<_ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7578 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_compile") 2>conftest.er1
7594 grep -v '^ *+' conftest.er1 >conftest.err
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest.$ac_objext; then
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7614 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 (eval "$ac_compile") 2>conftest.er1
7630 grep -v '^ *+' conftest.er1 >conftest.err
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest.$ac_objext; then
7638 ac_hi=$ac_mid; break
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_lo=`expr $ac_mid + 1`
7644 if test $ac_lo -le $ac_mid; then
7648 ac_mid=`expr 2 '*' $ac_mid + 1`
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 cat >conftest.$ac_ext <<_ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7667 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7674 rm -f conftest.$ac_objext
7675 if { (ac_try="$ac_compile"
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_compile") 2>conftest.er1
7683 grep -v '^ *+' conftest.er1 >conftest.err
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && {
7688 test -z "$ac_c_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest.$ac_objext; then
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7703 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7719 grep -v '^ *+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 ac_lo=$ac_mid; break
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 ac_hi=`expr '(' $ac_mid ')' - 1`
7733 if test $ac_mid -le $ac_hi; then
7737 ac_mid=`expr 2 '*' $ac_mid`
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 # Binary search between lo and hi bounds.
7754 while test "x$ac_lo" != "x$ac_hi"; do
7755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7756 cat >conftest.$ac_ext <<_ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7766 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7773 rm -f conftest.$ac_objext
7774 if { (ac_try="$ac_compile"
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_compile") 2>conftest.er1
7782 grep -v '^ *+' conftest.er1 >conftest.err
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 ac_lo=`expr '(' $ac_mid ')' + 1`
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7812 static long int longval () { return ~(size_t)0 % 10; }
7813 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7820 FILE *f = fopen ("conftest.val", "w");
7823 if ((~(size_t)0 % 10) < 0)
7825 long int i = longval ();
7826 if (i != (~(size_t)0 % 10))
7828 fprintf (f, "%ld\n", i);
7832 unsigned long int i = ulongval ();
7833 if (i != (~(size_t)0 % 10))
7835 fprintf (f, "%lu\n", i);
7837 return ferror (f) || fclose (f) != 0;
7843 rm -f conftest$ac_exeext
7844 if { (ac_try="$ac_link"
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_link") 2>&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 res_lo=`cat conftest.val`
7865 echo "$as_me: program exited with status $ac_status" >&5
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7876 if test "$cross_compiling" = yes; then
7877 # Depending upon the size, compute the lo and hi bounds.
7878 cat >conftest.$ac_ext <<_ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7888 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_compile") 2>conftest.er1
7904 grep -v '^ *+' conftest.er1 >conftest.err
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } && {
7909 test -z "$ac_c_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest.$ac_objext; then
7914 cat >conftest.$ac_ext <<_ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7924 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7940 grep -v '^ *+' conftest.er1 >conftest.err
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_hi=$ac_mid; break
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_lo=`expr $ac_mid + 1`
7954 if test $ac_lo -le $ac_mid; then
7958 ac_mid=`expr 2 '*' $ac_mid + 1`
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7977 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_compile") 2>conftest.er1
7993 grep -v '^ *+' conftest.er1 >conftest.err
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } && {
7998 test -z "$ac_c_werror_flag" ||
7999 test ! -s conftest.err
8000 } && test -s conftest.$ac_objext; then
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8013 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
8037 ac_lo=$ac_mid; break
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_hi=`expr '(' $ac_mid ')' - 1`
8043 if test $ac_mid -le $ac_hi; then
8047 ac_mid=`expr 2 '*' $ac_mid`
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 # Binary search between lo and hi bounds.
8064 while test "x$ac_lo" != "x$ac_hi"; do
8065 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8066 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8076 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8083 rm -f conftest.$ac_objext
8084 if { (ac_try="$ac_compile"
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_compile") 2>conftest.er1
8092 grep -v '^ *+' conftest.er1 >conftest.err
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_lo=`expr '(' $ac_mid ')' + 1`
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 ?*) fits_in_uint=$ac_lo;;
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8122 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8123 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8130 FILE *f = fopen ("conftest.val", "w");
8133 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8135 long int i = longval ();
8136 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8138 fprintf (f, "%ld\n", i);
8142 unsigned long int i = ulongval ();
8143 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8145 fprintf (f, "%lu\n", i);
8147 return ferror (f) || fclose (f) != 0;
8153 rm -f conftest$ac_exeext
8154 if { (ac_try="$ac_link"
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_link") 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8164 { (case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_try") 2>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 fits_in_uint=`cat conftest.val`
8175 echo "$as_me: program exited with status $ac_status" >&5
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8186 if test "$fits_in_uint" = 1; then
8187 cat >conftest.$ac_ext <<_ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8195 extern unsigned long foo;
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8214 grep -v '^ *+' conftest.er1 >conftest.err
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.$ac_objext; then
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 if test -z "$result"; then
8233 if test "$fits_in_uint" = 1; then
8234 result="$res_hi$res_lo"U
8236 result="$res_hi$res_lo"UL
8242 { echo "$as_me:$LINENO: result: $result" >&5
8243 echo "${ECHO_T}$result" >&6; }
8244 if test "$result" != yes; then
8246 cat >>confdefs.h <<_ACEOF
8247 #define SIZE_MAX $result
8255 for ac_header in stdint.h
8257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 ac_res=`eval echo '${'$as_ac_Header'}'`
8265 { echo "$as_me:$LINENO: result: $ac_res" >&5
8266 echo "${ECHO_T}$ac_res" >&6; }
8268 # Is the header compilable?
8269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 $ac_includes_default
8278 #include <$ac_header>
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
8297 ac_header_compiler=yes
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 ac_header_compiler=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307 echo "${ECHO_T}$ac_header_compiler" >&6; }
8309 # Is the header present?
8310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 #include <$ac_header>
8320 if { (ac_try="$ac_cpp conftest.$ac_ext"
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8328 grep -v '^ *+' conftest.er1 >conftest.err
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } >/dev/null && {
8333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8336 ac_header_preproc=yes
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8341 ac_header_preproc=no
8344 rm -f conftest.err conftest.$ac_ext
8345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8346 echo "${ECHO_T}$ac_header_preproc" >&6; }
8348 # So? What about this header?
8349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8355 ac_header_preproc=yes
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 eval "$as_ac_Header=\$ac_header_preproc"
8380 ac_res=`eval echo '${'$as_ac_Header'}'`
8381 { echo "$as_me:$LINENO: result: $ac_res" >&5
8382 echo "${ECHO_T}$ac_res" >&6; }
8385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8386 cat >>confdefs.h <<_ACEOF
8387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8396 if test "X$prefix" = "XNONE"; then
8397 acl_final_prefix="$ac_default_prefix"
8399 acl_final_prefix="$prefix"
8401 if test "X$exec_prefix" = "XNONE"; then
8402 acl_final_exec_prefix='${prefix}'
8404 acl_final_exec_prefix="$exec_prefix"
8406 acl_save_prefix="$prefix"
8407 prefix="$acl_final_prefix"
8408 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8409 prefix="$acl_save_prefix"
8412 # Check whether --with-gnu-ld was given.
8413 if test "${with_gnu_ld+set}" = set; then
8414 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8419 # Prepare PATH_SEPARATOR.
8420 # The user is always right.
8421 if test "${PATH_SEPARATOR+set}" != set; then
8422 echo "#! /bin/sh" >conf$$.sh
8423 echo "exit 0" >>conf$$.sh
8425 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8433 if test "$GCC" = yes; then
8434 # Check if gcc -print-prog-name=ld gives a path.
8435 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8436 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8439 # gcc leaves a trailing carriage return which upsets mingw
8440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8445 # Accept absolute paths.
8446 [\\/]* | [A-Za-z]:[\\/]*)
8447 re_direlt='/[^/][^/]*/\.\./'
8448 # Canonicalize the path of ld
8449 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8451 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8453 test -z "$LD" && LD="$ac_prog"
8456 # If it fails, then pretend we aren't using GCC.
8460 # If it is relative, then search for the first ld in PATH.
8464 elif test "$with_gnu_ld" = yes; then
8465 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8466 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8468 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8469 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8471 if test "${acl_cv_path_LD+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 if test -z "$LD"; then
8475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8476 for ac_dir in $PATH; do
8477 test -z "$ac_dir" && ac_dir=.
8478 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8479 acl_cv_path_LD="$ac_dir/$ac_prog"
8480 # Check to see if the program is GNU ld. I'd rather use --version,
8481 # but apparently some GNU ld's only accept -v.
8482 # Break only if it was the GNU/non-GNU ld that we prefer.
8483 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8484 *GNU* | *'with BFD'*)
8485 test "$with_gnu_ld" != no && break ;;
8487 test "$with_gnu_ld" != yes && break ;;
8493 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8497 LD="$acl_cv_path_LD"
8498 if test -n "$LD"; then
8499 { echo "$as_me:$LINENO: result: $LD" >&5
8500 echo "${ECHO_T}$LD" >&6; }
8502 { echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6; }
8505 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8506 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8507 { (exit 1); exit 1; }; }
8508 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8509 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8510 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8514 case `$LD -v 2>&1 </dev/null` in
8515 *GNU* | *'with BFD'*)
8516 acl_cv_prog_gnu_ld=yes ;;
8518 acl_cv_prog_gnu_ld=no ;;
8521 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8523 with_gnu_ld=$acl_cv_prog_gnu_ld
8527 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8529 if test "${acl_cv_rpath+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8540 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8541 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8543 libext="$acl_cv_libext"
8544 shlibext="$acl_cv_shlibext"
8545 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8546 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8547 hardcode_direct="$acl_cv_hardcode_direct"
8548 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8549 # Check whether --enable-rpath was given.
8550 if test "${enable_rpath+set}" = set; then
8551 enableval=$enable_rpath; :
8565 acl_save_prefix="$prefix"
8566 prefix="$acl_final_prefix"
8567 acl_save_exec_prefix="$exec_prefix"
8568 exec_prefix="$acl_final_exec_prefix"
8570 eval additional_includedir=\"$includedir\"
8571 eval additional_libdir=\"$libdir\"
8573 exec_prefix="$acl_save_exec_prefix"
8574 prefix="$acl_save_prefix"
8577 # Check whether --with-libiconv-prefix was given.
8578 if test "${with_libiconv_prefix+set}" = set; then
8579 withval=$with_libiconv_prefix;
8580 if test "X$withval" = "Xno"; then
8583 if test "X$withval" = "X"; then
8585 acl_save_prefix="$prefix"
8586 prefix="$acl_final_prefix"
8587 acl_save_exec_prefix="$exec_prefix"
8588 exec_prefix="$acl_final_exec_prefix"
8590 eval additional_includedir=\"$includedir\"
8591 eval additional_libdir=\"$libdir\"
8593 exec_prefix="$acl_save_exec_prefix"
8594 prefix="$acl_save_prefix"
8597 additional_includedir="$withval/include"
8598 additional_libdir="$withval/lib"
8609 names_already_handled=
8610 names_next_round='iconv '
8611 while test -n "$names_next_round"; do
8612 names_this_round="$names_next_round"
8614 for name in $names_this_round; do
8616 for n in $names_already_handled; do
8617 if test "$n" = "$name"; then
8622 if test -z "$already_handled"; then
8623 names_already_handled="$names_already_handled $name"
8624 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8625 eval value=\"\$HAVE_LIB$uppername\"
8626 if test -n "$value"; then
8627 if test "$value" = yes; then
8628 eval value=\"\$LIB$uppername\"
8629 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8630 eval value=\"\$LTLIB$uppername\"
8631 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8640 if test $use_additional = yes; then
8641 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8642 found_dir="$additional_libdir"
8643 found_so="$additional_libdir/lib$name.$shlibext"
8644 if test -f "$additional_libdir/lib$name.la"; then
8645 found_la="$additional_libdir/lib$name.la"
8648 if test -f "$additional_libdir/lib$name.$libext"; then
8649 found_dir="$additional_libdir"
8650 found_a="$additional_libdir/lib$name.$libext"
8651 if test -f "$additional_libdir/lib$name.la"; then
8652 found_la="$additional_libdir/lib$name.la"
8657 if test "X$found_dir" = "X"; then
8658 for x in $LDFLAGS $LTLIBICONV; do
8660 acl_save_prefix="$prefix"
8661 prefix="$acl_final_prefix"
8662 acl_save_exec_prefix="$exec_prefix"
8663 exec_prefix="$acl_final_exec_prefix"
8665 exec_prefix="$acl_save_exec_prefix"
8666 prefix="$acl_save_prefix"
8670 dir=`echo "X$x" | sed -e 's/^X-L//'`
8671 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8673 found_so="$dir/lib$name.$shlibext"
8674 if test -f "$dir/lib$name.la"; then
8675 found_la="$dir/lib$name.la"
8678 if test -f "$dir/lib$name.$libext"; then
8680 found_a="$dir/lib$name.$libext"
8681 if test -f "$dir/lib$name.la"; then
8682 found_la="$dir/lib$name.la"
8688 if test "X$found_dir" != "X"; then
8693 if test "X$found_dir" != "X"; then
8694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8695 if test "X$found_so" != "X"; then
8696 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8700 for x in $ltrpathdirs; do
8701 if test "X$x" = "X$found_dir"; then
8706 if test -z "$haveit"; then
8707 ltrpathdirs="$ltrpathdirs $found_dir"
8709 if test "$hardcode_direct" = yes; then
8710 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8712 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8713 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8715 for x in $rpathdirs; do
8716 if test "X$x" = "X$found_dir"; then
8721 if test -z "$haveit"; then
8722 rpathdirs="$rpathdirs $found_dir"
8726 for x in $LDFLAGS $LIBICONV; do
8728 acl_save_prefix="$prefix"
8729 prefix="$acl_final_prefix"
8730 acl_save_exec_prefix="$exec_prefix"
8731 exec_prefix="$acl_final_exec_prefix"
8733 exec_prefix="$acl_save_exec_prefix"
8734 prefix="$acl_save_prefix"
8736 if test "X$x" = "X-L$found_dir"; then
8741 if test -z "$haveit"; then
8742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8744 if test "$hardcode_minus_L" != no; then
8745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8747 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8753 if test "X$found_a" != "X"; then
8754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8756 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8759 additional_includedir=
8760 case "$found_dir" in
8762 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8763 additional_includedir="$basedir/include"
8766 if test "X$additional_includedir" != "X"; then
8767 if test "X$additional_includedir" != "X/usr/include"; then
8769 if test "X$additional_includedir" = "X/usr/local/include"; then
8770 if test -n "$GCC"; then
8772 linux*) haveit=yes;;
8776 if test -z "$haveit"; then
8777 for x in $CPPFLAGS $INCICONV; do
8779 acl_save_prefix="$prefix"
8780 prefix="$acl_final_prefix"
8781 acl_save_exec_prefix="$exec_prefix"
8782 exec_prefix="$acl_final_exec_prefix"
8784 exec_prefix="$acl_save_exec_prefix"
8785 prefix="$acl_save_prefix"
8787 if test "X$x" = "X-I$additional_includedir"; then
8792 if test -z "$haveit"; then
8793 if test -d "$additional_includedir"; then
8794 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8800 if test -n "$found_la"; then
8801 save_libdir="$libdir"
8803 */* | *\\*) . "$found_la" ;;
8804 *) . "./$found_la" ;;
8806 libdir="$save_libdir"
8807 for dep in $dependency_libs; do
8810 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8811 if test "X$additional_libdir" != "X/usr/lib"; then
8813 if test "X$additional_libdir" = "X/usr/local/lib"; then
8814 if test -n "$GCC"; then
8816 linux*) haveit=yes;;
8820 if test -z "$haveit"; then
8822 for x in $LDFLAGS $LIBICONV; do
8824 acl_save_prefix="$prefix"
8825 prefix="$acl_final_prefix"
8826 acl_save_exec_prefix="$exec_prefix"
8827 exec_prefix="$acl_final_exec_prefix"
8829 exec_prefix="$acl_save_exec_prefix"
8830 prefix="$acl_save_prefix"
8832 if test "X$x" = "X-L$additional_libdir"; then
8837 if test -z "$haveit"; then
8838 if test -d "$additional_libdir"; then
8839 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8843 for x in $LDFLAGS $LTLIBICONV; do
8845 acl_save_prefix="$prefix"
8846 prefix="$acl_final_prefix"
8847 acl_save_exec_prefix="$exec_prefix"
8848 exec_prefix="$acl_final_exec_prefix"
8850 exec_prefix="$acl_save_exec_prefix"
8851 prefix="$acl_save_prefix"
8853 if test "X$x" = "X-L$additional_libdir"; then
8858 if test -z "$haveit"; then
8859 if test -d "$additional_libdir"; then
8860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8867 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8868 if test "$enable_rpath" != no; then
8870 for x in $rpathdirs; do
8871 if test "X$x" = "X$dir"; then
8876 if test -z "$haveit"; then
8877 rpathdirs="$rpathdirs $dir"
8880 for x in $ltrpathdirs; do
8881 if test "X$x" = "X$dir"; then
8886 if test -z "$haveit"; then
8887 ltrpathdirs="$ltrpathdirs $dir"
8892 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8898 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8905 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8912 if test "X$rpathdirs" != "X"; then
8913 if test -n "$hardcode_libdir_separator"; then
8915 for found_dir in $rpathdirs; do
8916 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8918 acl_save_libdir="$libdir"
8920 eval flag=\"$hardcode_libdir_flag_spec\"
8921 libdir="$acl_save_libdir"
8922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8924 for found_dir in $rpathdirs; do
8925 acl_save_libdir="$libdir"
8927 eval flag=\"$hardcode_libdir_flag_spec\"
8928 libdir="$acl_save_libdir"
8929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8933 if test "X$ltrpathdirs" != "X"; then
8934 for found_dir in $ltrpathdirs; do
8935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8946 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8947 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8948 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 typedef ptrdiff_t ac__type_new_;
8962 if ((ac__type_new_ *) 0)
8964 if (sizeof (ac__type_new_))
8970 rm -f conftest.$ac_objext
8971 if { (ac_try="$ac_compile"
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_compile") 2>conftest.er1
8979 grep -v '^ *+' conftest.er1 >conftest.err
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest.$ac_objext; then
8987 ac_cv_type_ptrdiff_t=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_cv_type_ptrdiff_t=no
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8998 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8999 if test $ac_cv_type_ptrdiff_t = yes; then
9003 cat >>confdefs.h <<\_ACEOF
9004 #define ptrdiff_t long
9020 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9021 stdlib.h string.h unistd.h sys/param.h
9023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 ac_res=`eval echo '${'$as_ac_Header'}'`
9031 { echo "$as_me:$LINENO: result: $ac_res" >&5
9032 echo "${ECHO_T}$ac_res" >&6; }
9034 # Is the header compilable?
9035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9037 cat >conftest.$ac_ext <<_ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 $ac_includes_default
9044 #include <$ac_header>
9046 rm -f conftest.$ac_objext
9047 if { (ac_try="$ac_compile"
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_compile") 2>conftest.er1
9055 grep -v '^ *+' conftest.er1 >conftest.err
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest.$ac_objext; then
9063 ac_header_compiler=yes
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_header_compiler=no
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9073 echo "${ECHO_T}$ac_header_compiler" >&6; }
9075 # Is the header present?
9076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9078 cat >conftest.$ac_ext <<_ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 #include <$ac_header>
9086 if { (ac_try="$ac_cpp conftest.$ac_ext"
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9094 grep -v '^ *+' conftest.er1 >conftest.err
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } >/dev/null && {
9099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9102 ac_header_preproc=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_header_preproc=no
9110 rm -f conftest.err conftest.$ac_ext
9111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9112 echo "${ECHO_T}$ac_header_preproc" >&6; }
9114 # So? What about this header?
9115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9121 ac_header_preproc=yes
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 eval "$as_ac_Header=\$ac_header_preproc"
9146 ac_res=`eval echo '${'$as_ac_Header'}'`
9147 { echo "$as_me:$LINENO: result: $ac_res" >&5
9148 echo "${ECHO_T}$ac_res" >&6; }
9151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9152 cat >>confdefs.h <<_ACEOF
9153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9184 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9185 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 cat >conftest.$ac_ext <<_ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9202 #define $ac_func innocuous_$ac_func
9204 /* System header to define __stub macros and hopefully few prototypes,
9205 which can conflict with char $ac_func (); below.
9206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9207 <limits.h> exists even on freestanding compilers. */
9210 # include <limits.h>
9212 # include <assert.h>
9217 /* Override any GCC internal prototype to avoid an error.
9218 Use char because int might match the return type of a GCC
9219 builtin and then its argument prototype would still apply. */
9224 /* The GNU C library defines this for functions which it implements
9225 to always fail with ENOSYS. Some functions are actually named
9226 something starting with __ and the normal name is an alias. */
9227 #if defined __stub_$ac_func || defined __stub___$ac_func
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (ac_try="$ac_link"
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_link") 2>conftest.er1
9248 grep -v '^ *+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest$ac_exeext &&
9256 $as_test_x conftest$ac_exeext; then
9257 eval "$as_ac_var=yes"
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9262 eval "$as_ac_var=no"
9265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9266 conftest$ac_exeext conftest.$ac_ext
9268 ac_res=`eval echo '${'$as_ac_var'}'`
9269 { echo "$as_me:$LINENO: result: $ac_res" >&5
9270 echo "${ECHO_T}$ac_res" >&6; }
9271 if test `eval echo '${'$as_ac_var'}'` = yes; then
9272 cat >>confdefs.h <<_ACEOF
9273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9281 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9282 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9283 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 cat >conftest.$ac_ext <<_ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9298 char *p = (char *) _snprintf;
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9314 grep -v '^ *+' conftest.er1 >conftest.err
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
9322 ac_cv_have_decl__snprintf=yes
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_cv_have_decl__snprintf=no
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9333 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9334 if test $ac_cv_have_decl__snprintf = yes; then
9340 cat >>confdefs.h <<_ACEOF
9341 #define HAVE_DECL__SNPRINTF $gt_value
9346 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9347 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9348 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 cat >conftest.$ac_ext <<_ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9363 char *p = (char *) _snwprintf;
9370 rm -f conftest.$ac_objext
9371 if { (ac_try="$ac_compile"
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_compile") 2>conftest.er1
9379 grep -v '^ *+' conftest.er1 >conftest.err
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest.$ac_objext; then
9387 ac_cv_have_decl__snwprintf=yes
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9392 ac_cv_have_decl__snwprintf=no
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9398 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9399 if test $ac_cv_have_decl__snwprintf = yes; then
9405 cat >>confdefs.h <<_ACEOF
9406 #define HAVE_DECL__SNWPRINTF $gt_value
9412 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9413 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9414 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 cat >conftest.$ac_ext <<_ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9428 #ifndef feof_unlocked
9429 char *p = (char *) feof_unlocked;
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9453 ac_cv_have_decl_feof_unlocked=yes
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_have_decl_feof_unlocked=no
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9464 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9465 if test $ac_cv_have_decl_feof_unlocked = yes; then
9471 cat >>confdefs.h <<_ACEOF
9472 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9477 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9478 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9479 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 cat >conftest.$ac_ext <<_ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9493 #ifndef fgets_unlocked
9494 char *p = (char *) fgets_unlocked;
9501 rm -f conftest.$ac_objext
9502 if { (ac_try="$ac_compile"
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_compile") 2>conftest.er1
9510 grep -v '^ *+' conftest.er1 >conftest.err
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest.$ac_objext; then
9518 ac_cv_have_decl_fgets_unlocked=yes
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_cv_have_decl_fgets_unlocked=no
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9529 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9530 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9536 cat >>confdefs.h <<_ACEOF
9537 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9542 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9543 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9544 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 cat >conftest.$ac_ext <<_ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9558 #ifndef getc_unlocked
9559 char *p = (char *) getc_unlocked;
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_compile") 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.$ac_objext; then
9583 ac_cv_have_decl_getc_unlocked=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_cv_have_decl_getc_unlocked=no
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9594 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9595 if test $ac_cv_have_decl_getc_unlocked = yes; then
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9607 case $gt_cv_func_printf_posix in
9608 *yes) HAVE_POSIX_PRINTF=1 ;;
9609 *) HAVE_POSIX_PRINTF=0 ;;
9612 if test "$ac_cv_func_asprintf" = yes; then
9618 if test "$ac_cv_func_snprintf" = yes; then
9624 if test "$ac_cv_func_wprintf" = yes; then
9636 am_save_CPPFLAGS="$CPPFLAGS"
9638 for element in $INCICONV; do
9640 for x in $CPPFLAGS; do
9642 acl_save_prefix="$prefix"
9643 prefix="$acl_final_prefix"
9644 acl_save_exec_prefix="$exec_prefix"
9645 exec_prefix="$acl_final_exec_prefix"
9647 exec_prefix="$acl_save_exec_prefix"
9648 prefix="$acl_save_prefix"
9650 if test "X$x" = "X$element"; then
9655 if test -z "$haveit"; then
9656 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9661 { echo "$as_me:$LINENO: checking for iconv" >&5
9662 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9663 if test "${am_cv_func_iconv+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 am_cv_func_iconv="no, consider installing GNU libiconv"
9669 cat >conftest.$ac_ext <<_ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9680 iconv_t cd = iconv_open("","");
9681 iconv(cd,NULL,NULL,NULL,NULL);
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest$ac_exeext &&
9704 $as_test_x conftest$ac_exeext; then
9705 am_cv_func_iconv=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714 conftest$ac_exeext conftest.$ac_ext
9715 if test "$am_cv_func_iconv" != yes; then
9716 am_save_LIBS="$LIBS"
9717 LIBS="$LIBS $LIBICONV"
9718 cat >conftest.$ac_ext <<_ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9729 iconv_t cd = iconv_open("","");
9730 iconv(cd,NULL,NULL,NULL,NULL);
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (ac_try="$ac_link"
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_link") 2>conftest.er1
9745 grep -v '^ *+' conftest.er1 >conftest.err
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } && {
9750 test -z "$ac_c_werror_flag" ||
9751 test ! -s conftest.err
9752 } && test -s conftest$ac_exeext &&
9753 $as_test_x conftest$ac_exeext; then
9755 am_cv_func_iconv=yes
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS="$am_save_LIBS"
9769 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9770 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9771 if test "$am_cv_func_iconv" = yes; then
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_ICONV 1
9778 if test "$am_cv_lib_iconv" = yes; then
9779 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9780 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9781 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9782 echo "${ECHO_T}$LIBICONV" >&6; }
9784 CPPFLAGS="$am_save_CPPFLAGS"
9791 if test "$am_cv_func_iconv" = yes; then
9792 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9793 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9794 if test "${am_cv_proto_iconv+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9811 #if defined(__STDC__) || defined(__cplusplus)
9812 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 am_cv_proto_iconv_arg1=""
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 am_cv_proto_iconv_arg1="const"
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 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);"
9854 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9855 { echo "$as_me:$LINENO: result: ${ac_t:-
9856 }$am_cv_proto_iconv" >&5
9857 echo "${ECHO_T}${ac_t:-
9858 }$am_cv_proto_iconv" >&6; }
9860 cat >>confdefs.h <<_ACEOF
9861 #define ICONV_CONST $am_cv_proto_iconv_arg1
9867 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9868 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9869 if test "${am_cv_langinfo_codeset+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #include <langinfo.h>
9882 char* cs = nl_langinfo(CODESET);
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9896 grep -v '^ *+' conftest.er1 >conftest.err
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
9905 am_cv_langinfo_codeset=yes
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 am_cv_langinfo_codeset=no
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914 conftest$ac_exeext conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9918 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9919 if test $am_cv_langinfo_codeset = yes; then
9921 cat >>confdefs.h <<\_ACEOF
9922 #define HAVE_LANGINFO_CODESET 1
9927 if test $ac_cv_header_locale_h = yes; then
9929 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9930 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9931 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 cat >conftest.$ac_ext <<_ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } && {
9963 test -z "$ac_c_werror_flag" ||
9964 test ! -s conftest.err
9965 } && test -s conftest$ac_exeext &&
9966 $as_test_x conftest$ac_exeext; then
9967 am_cv_val_LC_MESSAGES=yes
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 am_cv_val_LC_MESSAGES=no
9975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9976 conftest$ac_exeext conftest.$ac_ext
9978 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9979 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9980 if test $am_cv_val_LC_MESSAGES = yes; then
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_LC_MESSAGES 1
9990 for ac_prog in bison
9992 # Extract the first word of "$ac_prog", so it can be a program name with args.
9993 set dummy $ac_prog; ac_word=$2
9994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9996 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 if test -n "$INTLBISON"; then
10000 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_prog_INTLBISON="$ac_prog"
10010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 INTLBISON=$ac_cv_prog_INTLBISON
10020 if test -n "$INTLBISON"; then
10021 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10022 echo "${ECHO_T}$INTLBISON" >&6; }
10024 { echo "$as_me:$LINENO: result: no" >&5
10025 echo "${ECHO_T}no" >&6; }
10029 test -n "$INTLBISON" && break
10032 if test -z "$INTLBISON"; then
10035 { echo "$as_me:$LINENO: checking version of bison" >&5
10036 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10037 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10038 case $ac_prog_version in
10039 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10040 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10041 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10042 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10044 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10045 echo "${ECHO_T}$ac_prog_version" >&6; }
10047 if test $ac_verc_fail = yes; then
10066 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10067 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10068 # Check whether --enable-nls was given.
10069 if test "${enable_nls+set}" = set; then
10070 enableval=$enable_nls; USE_NLS=$enableval
10075 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10076 echo "${ECHO_T}$USE_NLS" >&6; }
10081 BUILD_INCLUDED_LIBINTL=no
10082 USE_INCLUDED_LIBINTL=no
10088 if test "$USE_NLS" = "yes"; then
10089 gt_use_preinstalled_gnugettext=no
10091 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10092 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10094 # Check whether --with-included-gettext was given.
10095 if test "${with_included_gettext+set}" = set; then
10096 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10098 nls_cv_force_use_gnu_gettext=no
10101 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10102 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10104 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10105 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10112 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10113 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10114 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <libintl.h>
10124 extern int _nl_msg_cat_cntr;
10125 extern int *_nl_domain_bindings;
10129 bindtextdomain ("", "");
10130 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_link") 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest$ac_exeext &&
10152 $as_test_x conftest$ac_exeext; then
10153 gt_cv_func_gnugettext1_libc=yes
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 gt_cv_func_gnugettext1_libc=no
10161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10162 conftest$ac_exeext conftest.$ac_ext
10164 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10165 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10167 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10173 acl_save_prefix="$prefix"
10174 prefix="$acl_final_prefix"
10175 acl_save_exec_prefix="$exec_prefix"
10176 exec_prefix="$acl_final_exec_prefix"
10178 eval additional_includedir=\"$includedir\"
10179 eval additional_libdir=\"$libdir\"
10181 exec_prefix="$acl_save_exec_prefix"
10182 prefix="$acl_save_prefix"
10185 # Check whether --with-libintl-prefix was given.
10186 if test "${with_libintl_prefix+set}" = set; then
10187 withval=$with_libintl_prefix;
10188 if test "X$withval" = "Xno"; then
10191 if test "X$withval" = "X"; then
10193 acl_save_prefix="$prefix"
10194 prefix="$acl_final_prefix"
10195 acl_save_exec_prefix="$exec_prefix"
10196 exec_prefix="$acl_final_exec_prefix"
10198 eval additional_includedir=\"$includedir\"
10199 eval additional_libdir=\"$libdir\"
10201 exec_prefix="$acl_save_exec_prefix"
10202 prefix="$acl_save_prefix"
10205 additional_includedir="$withval/include"
10206 additional_libdir="$withval/lib"
10217 names_already_handled=
10218 names_next_round='intl '
10219 while test -n "$names_next_round"; do
10220 names_this_round="$names_next_round"
10222 for name in $names_this_round; do
10224 for n in $names_already_handled; do
10225 if test "$n" = "$name"; then
10226 already_handled=yes
10230 if test -z "$already_handled"; then
10231 names_already_handled="$names_already_handled $name"
10232 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10233 eval value=\"\$HAVE_LIB$uppername\"
10234 if test -n "$value"; then
10235 if test "$value" = yes; then
10236 eval value=\"\$LIB$uppername\"
10237 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10238 eval value=\"\$LTLIB$uppername\"
10239 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10248 if test $use_additional = yes; then
10249 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10250 found_dir="$additional_libdir"
10251 found_so="$additional_libdir/lib$name.$shlibext"
10252 if test -f "$additional_libdir/lib$name.la"; then
10253 found_la="$additional_libdir/lib$name.la"
10256 if test -f "$additional_libdir/lib$name.$libext"; then
10257 found_dir="$additional_libdir"
10258 found_a="$additional_libdir/lib$name.$libext"
10259 if test -f "$additional_libdir/lib$name.la"; then
10260 found_la="$additional_libdir/lib$name.la"
10265 if test "X$found_dir" = "X"; then
10266 for x in $LDFLAGS $LTLIBINTL; do
10268 acl_save_prefix="$prefix"
10269 prefix="$acl_final_prefix"
10270 acl_save_exec_prefix="$exec_prefix"
10271 exec_prefix="$acl_final_exec_prefix"
10273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
10278 dir=`echo "X$x" | sed -e 's/^X-L//'`
10279 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10281 found_so="$dir/lib$name.$shlibext"
10282 if test -f "$dir/lib$name.la"; then
10283 found_la="$dir/lib$name.la"
10286 if test -f "$dir/lib$name.$libext"; then
10288 found_a="$dir/lib$name.$libext"
10289 if test -f "$dir/lib$name.la"; then
10290 found_la="$dir/lib$name.la"
10296 if test "X$found_dir" != "X"; then
10301 if test "X$found_dir" != "X"; then
10302 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10303 if test "X$found_so" != "X"; then
10304 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10305 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10308 for x in $ltrpathdirs; do
10309 if test "X$x" = "X$found_dir"; then
10314 if test -z "$haveit"; then
10315 ltrpathdirs="$ltrpathdirs $found_dir"
10317 if test "$hardcode_direct" = yes; then
10318 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10320 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10321 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10323 for x in $rpathdirs; do
10324 if test "X$x" = "X$found_dir"; then
10329 if test -z "$haveit"; then
10330 rpathdirs="$rpathdirs $found_dir"
10334 for x in $LDFLAGS $LIBINTL; do
10336 acl_save_prefix="$prefix"
10337 prefix="$acl_final_prefix"
10338 acl_save_exec_prefix="$exec_prefix"
10339 exec_prefix="$acl_final_exec_prefix"
10341 exec_prefix="$acl_save_exec_prefix"
10342 prefix="$acl_save_prefix"
10344 if test "X$x" = "X-L$found_dir"; then
10349 if test -z "$haveit"; then
10350 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10352 if test "$hardcode_minus_L" != no; then
10353 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10355 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10361 if test "X$found_a" != "X"; then
10362 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10364 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10367 additional_includedir=
10368 case "$found_dir" in
10370 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10371 additional_includedir="$basedir/include"
10374 if test "X$additional_includedir" != "X"; then
10375 if test "X$additional_includedir" != "X/usr/include"; then
10377 if test "X$additional_includedir" = "X/usr/local/include"; then
10378 if test -n "$GCC"; then
10380 linux*) haveit=yes;;
10384 if test -z "$haveit"; then
10385 for x in $CPPFLAGS $INCINTL; do
10387 acl_save_prefix="$prefix"
10388 prefix="$acl_final_prefix"
10389 acl_save_exec_prefix="$exec_prefix"
10390 exec_prefix="$acl_final_exec_prefix"
10392 exec_prefix="$acl_save_exec_prefix"
10393 prefix="$acl_save_prefix"
10395 if test "X$x" = "X-I$additional_includedir"; then
10400 if test -z "$haveit"; then
10401 if test -d "$additional_includedir"; then
10402 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10408 if test -n "$found_la"; then
10409 save_libdir="$libdir"
10410 case "$found_la" in
10411 */* | *\\*) . "$found_la" ;;
10412 *) . "./$found_la" ;;
10414 libdir="$save_libdir"
10415 for dep in $dependency_libs; do
10418 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10419 if test "X$additional_libdir" != "X/usr/lib"; then
10421 if test "X$additional_libdir" = "X/usr/local/lib"; then
10422 if test -n "$GCC"; then
10424 linux*) haveit=yes;;
10428 if test -z "$haveit"; then
10430 for x in $LDFLAGS $LIBINTL; do
10432 acl_save_prefix="$prefix"
10433 prefix="$acl_final_prefix"
10434 acl_save_exec_prefix="$exec_prefix"
10435 exec_prefix="$acl_final_exec_prefix"
10437 exec_prefix="$acl_save_exec_prefix"
10438 prefix="$acl_save_prefix"
10440 if test "X$x" = "X-L$additional_libdir"; then
10445 if test -z "$haveit"; then
10446 if test -d "$additional_libdir"; then
10447 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10451 for x in $LDFLAGS $LTLIBINTL; do
10453 acl_save_prefix="$prefix"
10454 prefix="$acl_final_prefix"
10455 acl_save_exec_prefix="$exec_prefix"
10456 exec_prefix="$acl_final_exec_prefix"
10458 exec_prefix="$acl_save_exec_prefix"
10459 prefix="$acl_save_prefix"
10461 if test "X$x" = "X-L$additional_libdir"; then
10466 if test -z "$haveit"; then
10467 if test -d "$additional_libdir"; then
10468 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10475 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10476 if test "$enable_rpath" != no; then
10478 for x in $rpathdirs; do
10479 if test "X$x" = "X$dir"; then
10484 if test -z "$haveit"; then
10485 rpathdirs="$rpathdirs $dir"
10488 for x in $ltrpathdirs; do
10489 if test "X$x" = "X$dir"; then
10494 if test -z "$haveit"; then
10495 ltrpathdirs="$ltrpathdirs $dir"
10500 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10503 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10506 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10513 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10520 if test "X$rpathdirs" != "X"; then
10521 if test -n "$hardcode_libdir_separator"; then
10523 for found_dir in $rpathdirs; do
10524 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10526 acl_save_libdir="$libdir"
10528 eval flag=\"$hardcode_libdir_flag_spec\"
10529 libdir="$acl_save_libdir"
10530 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10532 for found_dir in $rpathdirs; do
10533 acl_save_libdir="$libdir"
10534 libdir="$found_dir"
10535 eval flag=\"$hardcode_libdir_flag_spec\"
10536 libdir="$acl_save_libdir"
10537 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10541 if test "X$ltrpathdirs" != "X"; then
10542 for found_dir in $ltrpathdirs; do
10543 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10547 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10548 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10549 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 gt_save_CPPFLAGS="$CPPFLAGS"
10553 CPPFLAGS="$CPPFLAGS $INCINTL"
10554 gt_save_LIBS="$LIBS"
10555 LIBS="$LIBS $LIBINTL"
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 #include <libintl.h>
10563 extern int _nl_msg_cat_cntr;
10568 const char *_nl_expand_alias ();
10572 bindtextdomain ("", "");
10573 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
10587 grep -v '^ *+' conftest.er1 >conftest.err
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } && {
10592 test -z "$ac_c_werror_flag" ||
10593 test ! -s conftest.err
10594 } && test -s conftest$ac_exeext &&
10595 $as_test_x conftest$ac_exeext; then
10596 gt_cv_func_gnugettext1_libintl=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 gt_cv_func_gnugettext1_libintl=no
10604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10605 conftest$ac_exeext conftest.$ac_ext
10606 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10607 LIBS="$LIBS $LIBICONV"
10608 cat >conftest.$ac_ext <<_ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <libintl.h>
10615 extern int _nl_msg_cat_cntr;
10620 const char *_nl_expand_alias ();
10624 bindtextdomain ("", "");
10625 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10639 grep -v '^ *+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext &&
10647 $as_test_x conftest$ac_exeext; then
10648 LIBINTL="$LIBINTL $LIBICONV"
10649 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10650 gt_cv_func_gnugettext1_libintl=yes
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10660 conftest$ac_exeext conftest.$ac_ext
10662 CPPFLAGS="$gt_save_CPPFLAGS"
10663 LIBS="$gt_save_LIBS"
10665 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10666 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10669 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10670 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10671 && test "$PACKAGE" != gettext-runtime \
10672 && test "$PACKAGE" != gettext-tools; }; then
10673 gt_use_preinstalled_gnugettext=yes
10681 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10682 nls_cv_use_gnu_gettext=yes
10686 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10687 BUILD_INCLUDED_LIBINTL=yes
10688 USE_INCLUDED_LIBINTL=yes
10689 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10690 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10691 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10694 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10695 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10700 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10701 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10703 cat >>confdefs.h <<\_ACEOF
10704 #define ENABLE_NLS 1
10712 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10713 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10714 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10715 echo "${ECHO_T}$USE_NLS" >&6; }
10716 if test "$USE_NLS" = "yes"; then
10717 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10718 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10719 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10720 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10721 gt_source="external libintl"
10726 gt_source="included intl directory"
10728 { echo "$as_me:$LINENO: result: $gt_source" >&5
10729 echo "${ECHO_T}$gt_source" >&6; }
10732 if test "$USE_NLS" = "yes"; then
10734 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10735 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10736 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10737 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10738 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10739 echo "${ECHO_T}$LIBINTL" >&6; }
10741 for element in $INCINTL; do
10743 for x in $CPPFLAGS; do
10745 acl_save_prefix="$prefix"
10746 prefix="$acl_final_prefix"
10747 acl_save_exec_prefix="$exec_prefix"
10748 exec_prefix="$acl_final_exec_prefix"
10750 exec_prefix="$acl_save_exec_prefix"
10751 prefix="$acl_save_prefix"
10753 if test "X$x" = "X$element"; then
10758 if test -z "$haveit"; then
10759 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10766 cat >>confdefs.h <<\_ACEOF
10767 #define HAVE_GETTEXT 1
10771 cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_DCGETTEXT 1
10781 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10782 BUILD_INCLUDED_LIBINTL=yes
10789 nls_cv_header_intl=
10790 nls_cv_header_libgt=
10801 if test "$USE_INCLUDED_LIBINTL" = yes; then
10802 INTLOBJS="\$(GETTOBJS)"
10806 INTL_LIBTOOL_SUFFIX_PREFIX=
10810 INTLLIBS="$LIBINTL"
10818 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10819 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10820 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10821 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 cat >conftest.make <<\_ACEOF
10827 @echo '@@@%%%=$(MAKE)=@@@%%%'
10829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10830 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10831 *@@@%%%=?*=@@@%%%*)
10832 eval ac_cv_prog_make_${ac_make}_set=yes;;
10834 eval ac_cv_prog_make_${ac_make}_set=no;;
10836 rm -f conftest.make
10838 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10839 { echo "$as_me:$LINENO: result: yes" >&5
10840 echo "${ECHO_T}yes" >&6; }
10843 { echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6; }
10845 SET_MAKE="MAKE=${MAKE-make}"
10848 # Extract the first word of "ln", so it can be a program name with args.
10849 set dummy ln; ac_word=$2
10850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10852 if test "${ac_cv_path_LN+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10867 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10875 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10880 if test -n "$LN"; then
10881 { echo "$as_me:$LINENO: result: $LN" >&5
10882 echo "${ECHO_T}$LN" >&6; }
10884 { echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6; }
10889 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10890 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10892 if test "$LN_S" = "ln -s"; then
10893 { echo "$as_me:$LINENO: result: yes" >&5
10894 echo "${ECHO_T}yes" >&6; }
10896 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10897 echo "${ECHO_T}no, using $LN_S" >&6; }
10900 # Extract the first word of "mv", so it can be a program name with args.
10901 set dummy mv; ac_word=$2
10902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10904 if test "${ac_cv_path_MV+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10919 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10932 if test -n "$MV"; then
10933 { echo "$as_me:$LINENO: result: $MV" >&5
10934 echo "${ECHO_T}$MV" >&6; }
10936 { echo "$as_me:$LINENO: result: no" >&5
10937 echo "${ECHO_T}no" >&6; }
10941 # Extract the first word of "cp", so it can be a program name with args.
10942 set dummy cp; ac_word=$2
10943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10945 if test "${ac_cv_path_CP+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954 for as_dir in $PATH
10957 test -z "$as_dir" && as_dir=.
10958 for ac_exec_ext in '' $ac_executable_extensions; do
10959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10960 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10973 if test -n "$CP"; then
10974 { echo "$as_me:$LINENO: result: $CP" >&5
10975 echo "${ECHO_T}$CP" >&6; }
10977 { echo "$as_me:$LINENO: result: no" >&5
10978 echo "${ECHO_T}no" >&6; }
10982 # Extract the first word of "rm", so it can be a program name with args.
10983 set dummy rm; ac_word=$2
10984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10986 if test "${ac_cv_path_RM+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995 for as_dir in $PATH
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11001 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11014 if test -n "$RM"; then
11015 { echo "$as_me:$LINENO: result: $RM" >&5
11016 echo "${ECHO_T}$RM" >&6; }
11018 { echo "$as_me:$LINENO: result: no" >&5
11019 echo "${ECHO_T}no" >&6; }
11023 # Extract the first word of "chmod", so it can be a program name with args.
11024 set dummy chmod; ac_word=$2
11025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11027 if test "${ac_cv_path_CHMOD+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11054 CHMOD=$ac_cv_path_CHMOD
11055 if test -n "$CHMOD"; then
11056 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11057 echo "${ECHO_T}$CHMOD" >&6; }
11059 { echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6; }
11064 for ac_prog in gawk mawk nawk awk
11066 # Extract the first word of "$ac_prog", so it can be a program name with args.
11067 set dummy $ac_prog; ac_word=$2
11068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11070 if test "${ac_cv_prog_AWK+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 if test -n "$AWK"; then
11074 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083 ac_cv_prog_AWK="$ac_prog"
11084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11093 AWK=$ac_cv_prog_AWK
11094 if test -n "$AWK"; then
11095 { echo "$as_me:$LINENO: result: $AWK" >&5
11096 echo "${ECHO_T}$AWK" >&6; }
11098 { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11103 test -n "$AWK" && break
11106 { echo "$as_me:$LINENO: checking for egrep" >&5
11107 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11108 if test "${ac_cv_path_EGREP+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11112 then ac_cv_path_EGREP="$GREP -E"
11114 # Extract the first word of "egrep" to use in msg output
11115 if test -z "$EGREP"; then
11116 set dummy egrep; ac_prog_name=$2
11117 if test "${ac_cv_path_EGREP+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 ac_path_EGREP_found=false
11121 # Loop through the user's path and test for each of PROGNAME-LIST
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11126 test -z "$as_dir" && as_dir=.
11127 for ac_prog in egrep; do
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11130 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11131 # Check for GNU ac_path_EGREP and select it if it is found.
11132 # Check for GNU $ac_path_EGREP
11133 case `"$ac_path_EGREP" --version 2>&1` in
11135 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11138 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11141 cat "conftest.in" "conftest.in" >"conftest.tmp"
11142 mv "conftest.tmp" "conftest.in"
11143 cp "conftest.in" "conftest.nl"
11144 echo 'EGREP' >> "conftest.nl"
11145 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11147 ac_count=`expr $ac_count + 1`
11148 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11149 # Best one so far, save it but keep looking for a better one
11150 ac_cv_path_EGREP="$ac_path_EGREP"
11151 ac_path_EGREP_max=$ac_count
11153 # 10*(2^10) chars as input seems more than enough
11154 test $ac_count -gt 10 && break
11156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11160 $ac_path_EGREP_found && break 3
11170 EGREP="$ac_cv_path_EGREP"
11171 if test -z "$EGREP"; then
11172 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11173 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11174 { (exit 1); exit 1; }; }
11178 ac_cv_path_EGREP=$EGREP
11184 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11185 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11186 EGREP="$ac_cv_path_EGREP"
11189 # Extract the first word of "sed", so it can be a program name with args.
11190 set dummy sed; ac_word=$2
11191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11193 if test "${ac_cv_path_SED+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11220 SED=$ac_cv_path_SED
11221 if test -n "$SED"; then
11222 { echo "$as_me:$LINENO: result: $SED" >&5
11223 echo "${ECHO_T}$SED" >&6; }
11225 { echo "$as_me:$LINENO: result: no" >&5
11226 echo "${ECHO_T}no" >&6; }
11230 # Extract the first word of "perl", so it can be a program name with args.
11231 set dummy perl; ac_word=$2
11232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11234 if test "${ac_cv_path_PERL+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11257 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11261 PERL=$ac_cv_path_PERL
11262 if test -n "$PERL"; then
11263 { echo "$as_me:$LINENO: result: $PERL" >&5
11264 echo "${ECHO_T}$PERL" >&6; }
11266 { echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6; }
11271 # Extract the first word of "ldconfig", so it can be a program name with args.
11272 set dummy ldconfig; ac_word=$2
11273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11275 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11290 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11302 LDCONFIG=$ac_cv_path_LDCONFIG
11303 if test -n "$LDCONFIG"; then
11304 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11305 echo "${ECHO_T}$LDCONFIG" >&6; }
11307 { echo "$as_me:$LINENO: result: no" >&5
11308 echo "${ECHO_T}no" >&6; }
11312 if test -n "$ac_tool_prefix"; then
11313 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11314 set dummy ${ac_tool_prefix}ar; ac_word=$2
11315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11317 if test "${ac_cv_prog_AR+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 if test -n "$AR"; then
11321 ac_cv_prog_AR="$AR" # Let the user override the test.
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11330 ac_cv_prog_AR="${ac_tool_prefix}ar"
11331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 if test -n "$AR"; then
11342 { echo "$as_me:$LINENO: result: $AR" >&5
11343 echo "${ECHO_T}$AR" >&6; }
11345 { echo "$as_me:$LINENO: result: no" >&5
11346 echo "${ECHO_T}no" >&6; }
11351 if test -z "$ac_cv_prog_AR"; then
11353 # Extract the first word of "ar", so it can be a program name with args.
11354 set dummy ar; ac_word=$2
11355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11357 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 if test -n "$ac_ct_AR"; then
11361 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11370 ac_cv_prog_ac_ct_AR="ar"
11371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11381 if test -n "$ac_ct_AR"; then
11382 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11383 echo "${ECHO_T}$ac_ct_AR" >&6; }
11385 { echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6; }
11389 if test "x$ac_ct_AR" = x; then
11392 case $cross_compiling:$ac_tool_warned in
11394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11395 whose name does not start with the host triplet. If you think this
11396 configuration is useful to you, please write to autoconf@gnu.org." >&5
11397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11398 whose name does not start with the host triplet. If you think this
11399 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11400 ac_tool_warned=yes ;;
11405 AR="$ac_cv_prog_AR"
11408 if test -n "$ac_tool_prefix"; then
11409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11413 if test "${ac_cv_prog_RANLIB+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 if test -n "$RANLIB"; then
11417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 RANLIB=$ac_cv_prog_RANLIB
11437 if test -n "$RANLIB"; then
11438 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11439 echo "${ECHO_T}$RANLIB" >&6; }
11441 { echo "$as_me:$LINENO: result: no" >&5
11442 echo "${ECHO_T}no" >&6; }
11447 if test -z "$ac_cv_prog_RANLIB"; then
11448 ac_ct_RANLIB=$RANLIB
11449 # Extract the first word of "ranlib", so it can be a program name with args.
11450 set dummy ranlib; ac_word=$2
11451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 if test -n "$ac_ct_RANLIB"; then
11457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11466 ac_cv_prog_ac_ct_RANLIB="ranlib"
11467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11477 if test -n "$ac_ct_RANLIB"; then
11478 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11479 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11481 { echo "$as_me:$LINENO: result: no" >&5
11482 echo "${ECHO_T}no" >&6; }
11485 if test "x$ac_ct_RANLIB" = x; then
11488 case $cross_compiling:$ac_tool_warned in
11490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11491 whose name does not start with the host triplet. If you think this
11492 configuration is useful to you, please write to autoconf@gnu.org." >&5
11493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11494 whose name does not start with the host triplet. If you think this
11495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11496 ac_tool_warned=yes ;;
11498 RANLIB=$ac_ct_RANLIB
11501 RANLIB="$ac_cv_prog_RANLIB"
11504 if test -n "$ac_tool_prefix"; then
11505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11506 set dummy ${ac_tool_prefix}strip; ac_word=$2
11507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11509 if test "${ac_cv_prog_STRIP+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 if test -n "$STRIP"; then
11513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 STRIP=$ac_cv_prog_STRIP
11533 if test -n "$STRIP"; then
11534 { echo "$as_me:$LINENO: result: $STRIP" >&5
11535 echo "${ECHO_T}$STRIP" >&6; }
11537 { echo "$as_me:$LINENO: result: no" >&5
11538 echo "${ECHO_T}no" >&6; }
11543 if test -z "$ac_cv_prog_STRIP"; then
11545 # Extract the first word of "strip", so it can be a program name with args.
11546 set dummy strip; ac_word=$2
11547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 if test -n "$ac_ct_STRIP"; then
11553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_prog_ac_ct_STRIP="strip"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11573 if test -n "$ac_ct_STRIP"; then
11574 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11575 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11577 { echo "$as_me:$LINENO: result: no" >&5
11578 echo "${ECHO_T}no" >&6; }
11581 if test "x$ac_ct_STRIP" = x; then
11584 case $cross_compiling:$ac_tool_warned in
11586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11587 whose name does not start with the host triplet. If you think this
11588 configuration is useful to you, please write to autoconf@gnu.org." >&5
11589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11590 whose name does not start with the host triplet. If you think this
11591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11592 ac_tool_warned=yes ;;
11597 STRIP="$ac_cv_prog_STRIP"
11600 # Extract the first word of "makeinfo", so it can be a program name with args.
11601 set dummy makeinfo; ac_word=$2
11602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11604 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 if test -n "$MAKEINFO"; then
11608 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11617 ac_cv_prog_MAKEINFO="makeinfo"
11618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 MAKEINFO=$ac_cv_prog_MAKEINFO
11628 if test -n "$MAKEINFO"; then
11629 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11630 echo "${ECHO_T}$MAKEINFO" >&6; }
11632 { echo "$as_me:$LINENO: result: no" >&5
11633 echo "${ECHO_T}no" >&6; }
11637 if test "_$MAKEINFO" = "_"; then
11638 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11640 case "$MAKEINFO" in
11642 { echo "$as_me:$LINENO: WARNING:
11643 *** Makeinfo is missing. Info documentation will not be built." >&5
11644 echo "$as_me: WARNING:
11645 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11652 # Find a good install program. We prefer a C program (faster),
11653 # so one script is as good as another. But avoid the broken or
11654 # incompatible versions:
11655 # SysV /etc/install, /usr/sbin/install
11656 # SunOS /usr/etc/install
11657 # IRIX /sbin/install
11659 # AmigaOS /C/install, which installs bootblocks on floppy discs
11660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11663 # OS/2's system install, which has a completely different semantic
11664 # ./install, which can be erroneously created by make from ./install.sh.
11665 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11667 if test -z "$INSTALL"; then
11668 if test "${ac_cv_path_install+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11675 test -z "$as_dir" && as_dir=.
11676 # Account for people who put trailing slashes in PATH elements.
11678 ./ | .// | /cC/* | \
11679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11683 # OSF1 and SCO ODT 3.0 have their own names for install.
11684 # Don't use installbsd from OSF since it installs stuff as root
11686 for ac_prog in ginstall scoinst install; do
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11689 if test $ac_prog = install &&
11690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11691 # AIX install. It has an incompatible calling convention.
11693 elif test $ac_prog = install &&
11694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11695 # program-specific install script used by HP pwplus--don't use.
11698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11711 if test "${ac_cv_path_install+set}" = set; then
11712 INSTALL=$ac_cv_path_install
11714 # As a last resort, use the slow shell script. Don't cache a
11715 # value for INSTALL within a source directory, because that will
11716 # break other packages using the cache if that directory is
11717 # removed, or if the value is a relative name.
11718 INSTALL=$ac_install_sh
11721 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11722 echo "${ECHO_T}$INSTALL" >&6; }
11724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11725 # It thinks the first close brace ends the variable substitution.
11726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11732 # See if we need a separate native compiler.
11733 if test $cross_compiling = no; then
11737 for ac_prog in gcc cc
11739 # Extract the first word of "$ac_prog", so it can be a program name with args.
11740 set dummy $ac_prog; ac_word=$2
11741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11743 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 if test -n "$BUILD_CC"; then
11747 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_prog_BUILD_CC="$ac_prog"
11757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 BUILD_CC=$ac_cv_prog_BUILD_CC
11767 if test -n "$BUILD_CC"; then
11768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11769 echo "${ECHO_T}$BUILD_CC" >&6; }
11771 { echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6; }
11776 test -n "$BUILD_CC" && break
11815 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 ac_res=`eval echo '${'$as_ac_Header'}'`
11825 { echo "$as_me:$LINENO: result: $ac_res" >&5
11826 echo "${ECHO_T}$ac_res" >&6; }
11828 # Is the header compilable?
11829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11831 cat >conftest.$ac_ext <<_ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 $ac_includes_default
11838 #include <$ac_header>
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_compile") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest.$ac_objext; then
11857 ac_header_compiler=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_header_compiler=no
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 #include <$ac_header>
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } >/dev/null && {
11893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11896 ac_header_preproc=yes
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11901 ac_header_preproc=no
11904 rm -f conftest.err conftest.$ac_ext
11905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906 echo "${ECHO_T}$ac_header_preproc" >&6; }
11908 # So? What about this header?
11909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915 ac_header_preproc=yes
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 eval "$as_ac_Header=\$ac_header_preproc"
11940 ac_res=`eval echo '${'$as_ac_Header'}'`
11941 { echo "$as_me:$LINENO: result: $ac_res" >&5
11942 echo "${ECHO_T}$ac_res" >&6; }
11945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 for ac_header in sys/disk.h sys/mount.h
11958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11971 #if HAVE_SYS_QUEUE_H
11972 #include <sys/queue.h>
11976 #include <$ac_header>
11978 rm -f conftest.$ac_objext
11979 if { (ac_try="$ac_compile"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest.$ac_objext; then
11995 eval "$as_ac_Header=yes"
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 eval "$as_ac_Header=no"
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 ac_res=`eval echo '${'$as_ac_Header'}'`
12006 { echo "$as_me:$LINENO: result: $ac_res" >&5
12007 echo "${ECHO_T}$ac_res" >&6; }
12008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12018 for ac_header in net/if.h
12020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12033 #if HAVE_SYS_TYPES_H
12034 #include <sys/types.h>
12036 #if HAVE_SYS_SOCKET
12037 #include <sys/socket.h>
12041 #include <$ac_header>
12043 rm -f conftest.$ac_objext
12044 if { (ac_try="$ac_compile"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
12052 grep -v '^ *+' conftest.er1 >conftest.err
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
12060 eval "$as_ac_Header=yes"
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 eval "$as_ac_Header=no"
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 ac_res=`eval echo '${'$as_ac_Header'}'`
12071 { echo "$as_me:$LINENO: result: $ac_res" >&5
12072 echo "${ECHO_T}$ac_res" >&6; }
12073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12074 cat >>confdefs.h <<_ACEOF
12075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12083 for ac_func in vprintf
12085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 cat >conftest.$ac_ext <<_ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12099 #define $ac_func innocuous_$ac_func
12101 /* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char $ac_func (); below.
12103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 <limits.h> exists even on freestanding compilers. */
12107 # include <limits.h>
12109 # include <assert.h>
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12121 /* The GNU C library defines this for functions which it implements
12122 to always fail with ENOSYS. Some functions are actually named
12123 something starting with __ and the normal name is an alias. */
12124 #if defined __stub_$ac_func || defined __stub___$ac_func
12131 return $ac_func ();
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1 >conftest.err
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
12154 eval "$as_ac_var=yes"
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 eval "$as_ac_var=no"
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163 conftest$ac_exeext conftest.$ac_ext
12165 ac_res=`eval echo '${'$as_ac_var'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12168 if test `eval echo '${'$as_ac_var'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12173 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12174 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12175 if test "${ac_cv_func__doprnt+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 cat >conftest.$ac_ext <<_ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12186 #define _doprnt innocuous__doprnt
12188 /* System header to define __stub macros and hopefully few prototypes,
12189 which can conflict with char _doprnt (); below.
12190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12191 <limits.h> exists even on freestanding compilers. */
12194 # include <limits.h>
12196 # include <assert.h>
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12208 /* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
12211 #if defined __stub__doprnt || defined __stub____doprnt
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_link") 2>conftest.er1
12232 grep -v '^ *+' conftest.er1 >conftest.err
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } && {
12237 test -z "$ac_c_werror_flag" ||
12238 test ! -s conftest.err
12239 } && test -s conftest$ac_exeext &&
12240 $as_test_x conftest$ac_exeext; then
12241 ac_cv_func__doprnt=yes
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_cv_func__doprnt=no
12249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12250 conftest$ac_exeext conftest.$ac_ext
12252 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12253 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12254 if test $ac_cv_func__doprnt = yes; then
12256 cat >>confdefs.h <<\_ACEOF
12257 #define HAVE_DOPRNT 1
12266 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12267 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12268 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 #include <dirent.h>
12282 static struct dirent ac_aggr;
12283 if (ac_aggr.d_reclen)
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 ac_cv_member_struct_dirent_d_reclen=yes
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <dirent.h>
12322 static struct dirent ac_aggr;
12323 if (sizeof ac_aggr.d_reclen)
12329 rm -f conftest.$ac_objext
12330 if { (ac_try="$ac_compile"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_compile") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest.$ac_objext; then
12346 ac_cv_member_struct_dirent_d_reclen=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_cv_member_struct_dirent_d_reclen=no
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12360 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12361 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12362 cat >>confdefs.h <<\_ACEOF
12363 #define HAVE_RECLEN_DIRENT 1
12368 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12369 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12370 if test "${ac_cv_type_ssize_t+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 #include <sys/types.h>
12381 typedef ssize_t ac__type_new_;
12385 if ((ac__type_new_ *) 0)
12387 if (sizeof (ac__type_new_))
12393 rm -f conftest.$ac_objext
12394 if { (ac_try="$ac_compile"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_compile") 2>conftest.er1
12402 grep -v '^ *+' conftest.er1 >conftest.err
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } && {
12407 test -z "$ac_c_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest.$ac_objext; then
12410 ac_cv_type_ssize_t=yes
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12415 ac_cv_type_ssize_t=no
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12421 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12422 if test $ac_cv_type_ssize_t = yes; then
12423 cat >>confdefs.h <<\_ACEOF
12424 #define HAVE_TYPE_SSIZE_T 1
12429 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12430 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12431 if test "${ac_cv_have_decl_llseek+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 cat >conftest.$ac_ext <<_ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 #include <unistd.h>
12453 rm -f conftest.$ac_objext
12454 if { (ac_try="$ac_compile"
12455 case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_compile") 2>conftest.er1
12462 grep -v '^ *+' conftest.er1 >conftest.err
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest.$ac_objext; then
12470 ac_cv_have_decl_llseek=yes
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12475 ac_cv_have_decl_llseek=no
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12481 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12482 if test $ac_cv_have_decl_llseek = yes; then
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_LLSEEK_PROTOTYPE 1
12489 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12490 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12491 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 cat >conftest.$ac_ext <<_ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12500 #define _LARGEFILE_SOURCE
12501 #define _LARGEFILE64_SOURCE
12502 #include <unistd.h>
12515 rm -f conftest.$ac_objext
12516 if { (ac_try="$ac_compile"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_compile") 2>conftest.er1
12524 grep -v '^ *+' conftest.er1 >conftest.err
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } && {
12529 test -z "$ac_c_werror_flag" ||
12530 test ! -s conftest.err
12531 } && test -s conftest.$ac_objext; then
12532 ac_cv_have_decl_lseek64=yes
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12537 ac_cv_have_decl_lseek64=no
12540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12542 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12543 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12544 if test $ac_cv_have_decl_lseek64 = yes; then
12545 cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_LSEEK64_PROTOTYPE 1
12551 { echo "$as_me:$LINENO: checking for short" >&5
12552 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12553 if test "${ac_cv_type_short+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12562 $ac_includes_default
12563 typedef short ac__type_new_;
12567 if ((ac__type_new_ *) 0)
12569 if (sizeof (ac__type_new_))
12575 rm -f conftest.$ac_objext
12576 if { (ac_try="$ac_compile"
12577 case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_compile") 2>conftest.er1
12584 grep -v '^ *+' conftest.er1 >conftest.err
12586 cat conftest.err >&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } && {
12589 test -z "$ac_c_werror_flag" ||
12590 test ! -s conftest.err
12591 } && test -s conftest.$ac_objext; then
12592 ac_cv_type_short=yes
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 ac_cv_type_short=no
12600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12602 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12603 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12605 # The cast to long int works around a bug in the HP C Compiler
12606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12608 # This bug is HP SR number 8606223364.
12609 { echo "$as_me:$LINENO: checking size of short" >&5
12610 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12611 if test "${ac_cv_sizeof_short+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 if test "$cross_compiling" = yes; then
12615 # Depending upon the size, compute the lo and hi bounds.
12616 cat >conftest.$ac_ext <<_ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12622 $ac_includes_default
12623 typedef short ac__type_sizeof_;
12627 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12634 rm -f conftest.$ac_objext
12635 if { (ac_try="$ac_compile"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_compile") 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
12653 cat >conftest.$ac_ext <<_ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12660 typedef short ac__type_sizeof_;
12664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12671 rm -f conftest.$ac_objext
12672 if { (ac_try="$ac_compile"
12673 case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_compile") 2>conftest.er1
12680 grep -v '^ *+' conftest.er1 >conftest.err
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } && {
12685 test -z "$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12687 } && test -s conftest.$ac_objext; then
12688 ac_hi=$ac_mid; break
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_lo=`expr $ac_mid + 1`
12694 if test $ac_lo -le $ac_mid; then
12698 ac_mid=`expr 2 '*' $ac_mid + 1`
12701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12707 cat >conftest.$ac_ext <<_ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 $ac_includes_default
12714 typedef short ac__type_sizeof_;
12718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12725 rm -f conftest.$ac_objext
12726 if { (ac_try="$ac_compile"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_compile") 2>conftest.er1
12734 grep -v '^ *+' conftest.er1 >conftest.err
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } && {
12739 test -z "$ac_c_werror_flag" ||
12740 test ! -s conftest.err
12741 } && test -s conftest.$ac_objext; then
12744 cat >conftest.$ac_ext <<_ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 $ac_includes_default
12751 typedef short ac__type_sizeof_;
12755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12762 rm -f conftest.$ac_objext
12763 if { (ac_try="$ac_compile"
12764 case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_compile") 2>conftest.er1
12771 grep -v '^ *+' conftest.er1 >conftest.err
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest.$ac_objext; then
12779 ac_lo=$ac_mid; break
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12784 ac_hi=`expr '(' $ac_mid ')' - 1`
12785 if test $ac_mid -le $ac_hi; then
12789 ac_mid=`expr 2 '*' $ac_mid`
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 # Binary search between lo and hi bounds.
12806 while test "x$ac_lo" != "x$ac_hi"; do
12807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12808 cat >conftest.$ac_ext <<_ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 $ac_includes_default
12815 typedef short ac__type_sizeof_;
12819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12826 rm -f conftest.$ac_objext
12827 if { (ac_try="$ac_compile"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_compile") 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest.$ac_objext; then
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ac_lo=`expr '(' $ac_mid ')' + 1`
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854 ?*) ac_cv_sizeof_short=$ac_lo;;
12855 '') if test "$ac_cv_type_short" = yes; then
12856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12857 See \`config.log' for more details." >&5
12858 echo "$as_me: error: cannot compute sizeof (short)
12859 See \`config.log' for more details." >&2;}
12860 { (exit 77); exit 77; }; }
12862 ac_cv_sizeof_short=0
12866 cat >conftest.$ac_ext <<_ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 $ac_includes_default
12873 typedef short ac__type_sizeof_;
12874 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12875 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12877 #include <stdlib.h>
12882 FILE *f = fopen ("conftest.val", "w");
12885 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12887 long int i = longval ();
12888 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12890 fprintf (f, "%ld\n", i);
12894 unsigned long int i = ulongval ();
12895 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12897 fprintf (f, "%lu\n", i);
12899 return ferror (f) || fclose (f) != 0;
12905 rm -f conftest$ac_exeext
12906 if { (ac_try="$ac_link"
12907 case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_link") 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12916 { (case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_try") 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_sizeof_short=`cat conftest.val`
12927 echo "$as_me: program exited with status $ac_status" >&5
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12931 ( exit $ac_status )
12932 if test "$ac_cv_type_short" = yes; then
12933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12934 See \`config.log' for more details." >&5
12935 echo "$as_me: error: cannot compute sizeof (short)
12936 See \`config.log' for more details." >&2;}
12937 { (exit 77); exit 77; }; }
12939 ac_cv_sizeof_short=0
12942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12946 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12947 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12951 cat >>confdefs.h <<_ACEOF
12952 #define SIZEOF_SHORT $ac_cv_sizeof_short
12956 { echo "$as_me:$LINENO: checking for int" >&5
12957 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12958 if test "${ac_cv_type_int+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 cat >conftest.$ac_ext <<_ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 $ac_includes_default
12968 typedef int ac__type_new_;
12972 if ((ac__type_new_ *) 0)
12974 if (sizeof (ac__type_new_))
12980 rm -f conftest.$ac_objext
12981 if { (ac_try="$ac_compile"
12982 case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_compile") 2>conftest.er1
12989 grep -v '^ *+' conftest.er1 >conftest.err
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } && {
12994 test -z "$ac_c_werror_flag" ||
12995 test ! -s conftest.err
12996 } && test -s conftest.$ac_objext; then
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13007 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13008 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13010 # The cast to long int works around a bug in the HP C Compiler
13011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13013 # This bug is HP SR number 8606223364.
13014 { echo "$as_me:$LINENO: checking size of int" >&5
13015 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13016 if test "${ac_cv_sizeof_int+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 if test "$cross_compiling" = yes; then
13020 # Depending upon the size, compute the lo and hi bounds.
13021 cat >conftest.$ac_ext <<_ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027 $ac_includes_default
13028 typedef int ac__type_sizeof_;
13032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13039 rm -f conftest.$ac_objext
13040 if { (ac_try="$ac_compile"
13041 case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_compile") 2>conftest.er1
13048 grep -v '^ *+' conftest.er1 >conftest.err
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } && {
13053 test -z "$ac_c_werror_flag" ||
13054 test ! -s conftest.err
13055 } && test -s conftest.$ac_objext; then
13058 cat >conftest.$ac_ext <<_ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 $ac_includes_default
13065 typedef int ac__type_sizeof_;
13069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_compile") 2>conftest.er1
13085 grep -v '^ *+' conftest.er1 >conftest.err
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest.$ac_objext; then
13093 ac_hi=$ac_mid; break
13095 echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13098 ac_lo=`expr $ac_mid + 1`
13099 if test $ac_lo -le $ac_mid; then
13103 ac_mid=`expr 2 '*' $ac_mid + 1`
13106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13112 cat >conftest.$ac_ext <<_ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 $ac_includes_default
13119 typedef int ac__type_sizeof_;
13123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13130 rm -f conftest.$ac_objext
13131 if { (ac_try="$ac_compile"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_compile") 2>conftest.er1
13139 grep -v '^ *+' conftest.er1 >conftest.err
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } && {
13144 test -z "$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13146 } && test -s conftest.$ac_objext; then
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 $ac_includes_default
13156 typedef int ac__type_sizeof_;
13160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13167 rm -f conftest.$ac_objext
13168 if { (ac_try="$ac_compile"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_compile") 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } && {
13181 test -z "$ac_c_werror_flag" ||
13182 test ! -s conftest.err
13183 } && test -s conftest.$ac_objext; then
13184 ac_lo=$ac_mid; break
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ac_hi=`expr '(' $ac_mid ')' - 1`
13190 if test $ac_mid -le $ac_hi; then
13194 ac_mid=`expr 2 '*' $ac_mid`
13197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13200 echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 # Binary search between lo and hi bounds.
13211 while test "x$ac_lo" != "x$ac_hi"; do
13212 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13213 cat >conftest.$ac_ext <<_ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 $ac_includes_default
13220 typedef int ac__type_sizeof_;
13224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13231 rm -f conftest.$ac_objext
13232 if { (ac_try="$ac_compile"
13233 case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_compile") 2>conftest.er1
13240 grep -v '^ *+' conftest.er1 >conftest.err
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && {
13245 test -z "$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 } && test -s conftest.$ac_objext; then
13250 echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13253 ac_lo=`expr '(' $ac_mid ')' + 1`
13256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259 ?*) ac_cv_sizeof_int=$ac_lo;;
13260 '') if test "$ac_cv_type_int" = yes; then
13261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13262 See \`config.log' for more details." >&5
13263 echo "$as_me: error: cannot compute sizeof (int)
13264 See \`config.log' for more details." >&2;}
13265 { (exit 77); exit 77; }; }
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 $ac_includes_default
13278 typedef int ac__type_sizeof_;
13279 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13280 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13282 #include <stdlib.h>
13287 FILE *f = fopen ("conftest.val", "w");
13290 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13292 long int i = longval ();
13293 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13295 fprintf (f, "%ld\n", i);
13299 unsigned long int i = ulongval ();
13300 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13302 fprintf (f, "%lu\n", i);
13304 return ferror (f) || fclose (f) != 0;
13310 rm -f conftest$ac_exeext
13311 if { (ac_try="$ac_link"
13312 case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_link") 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13321 { (case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_try") 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_cv_sizeof_int=`cat conftest.val`
13332 echo "$as_me: program exited with status $ac_status" >&5
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 ( exit $ac_status )
13337 if test "$ac_cv_type_int" = yes; then
13338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13339 See \`config.log' for more details." >&5
13340 echo "$as_me: error: cannot compute sizeof (int)
13341 See \`config.log' for more details." >&2;}
13342 { (exit 77); exit 77; }; }
13347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13351 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13352 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13356 cat >>confdefs.h <<_ACEOF
13357 #define SIZEOF_INT $ac_cv_sizeof_int
13361 { echo "$as_me:$LINENO: checking for long" >&5
13362 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13363 if test "${ac_cv_type_long+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 cat >conftest.$ac_ext <<_ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13372 $ac_includes_default
13373 typedef long ac__type_new_;
13377 if ((ac__type_new_ *) 0)
13379 if (sizeof (ac__type_new_))
13385 rm -f conftest.$ac_objext
13386 if { (ac_try="$ac_compile"
13387 case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392 (eval "$ac_compile") 2>conftest.er1
13394 grep -v '^ *+' conftest.er1 >conftest.err
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } && {
13399 test -z "$ac_c_werror_flag" ||
13400 test ! -s conftest.err
13401 } && test -s conftest.$ac_objext; then
13402 ac_cv_type_long=yes
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13412 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13413 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13415 # The cast to long int works around a bug in the HP C Compiler
13416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13418 # This bug is HP SR number 8606223364.
13419 { echo "$as_me:$LINENO: checking size of long" >&5
13420 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13421 if test "${ac_cv_sizeof_long+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13424 if test "$cross_compiling" = yes; then
13425 # Depending upon the size, compute the lo and hi bounds.
13426 cat >conftest.$ac_ext <<_ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 $ac_includes_default
13433 typedef long ac__type_sizeof_;
13437 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13444 rm -f conftest.$ac_objext
13445 if { (ac_try="$ac_compile"
13446 case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_compile") 2>conftest.er1
13453 grep -v '^ *+' conftest.er1 >conftest.err
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } && {
13458 test -z "$ac_c_werror_flag" ||
13459 test ! -s conftest.err
13460 } && test -s conftest.$ac_objext; then
13463 cat >conftest.$ac_ext <<_ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 $ac_includes_default
13470 typedef long ac__type_sizeof_;
13474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
13490 grep -v '^ *+' conftest.er1 >conftest.err
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
13498 ac_hi=$ac_mid; break
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_lo=`expr $ac_mid + 1`
13504 if test $ac_lo -le $ac_mid; then
13508 ac_mid=`expr 2 '*' $ac_mid + 1`
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13517 cat >conftest.$ac_ext <<_ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 $ac_includes_default
13524 typedef long ac__type_sizeof_;
13528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13535 rm -f conftest.$ac_objext
13536 if { (ac_try="$ac_compile"
13537 case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_compile") 2>conftest.er1
13544 grep -v '^ *+' conftest.er1 >conftest.err
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest.$ac_objext; then
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13561 typedef long ac__type_sizeof_;
13565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13572 rm -f conftest.$ac_objext
13573 if { (ac_try="$ac_compile"
13574 case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13581 grep -v '^ *+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.$ac_objext; then
13589 ac_lo=$ac_mid; break
13591 echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_hi=`expr '(' $ac_mid ')' - 1`
13595 if test $ac_mid -le $ac_hi; then
13599 ac_mid=`expr 2 '*' $ac_mid`
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13615 # Binary search between lo and hi bounds.
13616 while test "x$ac_lo" != "x$ac_hi"; do
13617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 $ac_includes_default
13625 typedef long ac__type_sizeof_;
13629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13636 rm -f conftest.$ac_objext
13637 if { (ac_try="$ac_compile"
13638 case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_compile") 2>conftest.er1
13645 grep -v '^ *+' conftest.er1 >conftest.err
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } && {
13650 test -z "$ac_c_werror_flag" ||
13651 test ! -s conftest.err
13652 } && test -s conftest.$ac_objext; then
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13658 ac_lo=`expr '(' $ac_mid ')' + 1`
13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 ?*) ac_cv_sizeof_long=$ac_lo;;
13665 '') if test "$ac_cv_type_long" = yes; then
13666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13667 See \`config.log' for more details." >&5
13668 echo "$as_me: error: cannot compute sizeof (long)
13669 See \`config.log' for more details." >&2;}
13670 { (exit 77); exit 77; }; }
13672 ac_cv_sizeof_long=0
13676 cat >conftest.$ac_ext <<_ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13682 $ac_includes_default
13683 typedef long ac__type_sizeof_;
13684 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13685 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13687 #include <stdlib.h>
13692 FILE *f = fopen ("conftest.val", "w");
13695 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13697 long int i = longval ();
13698 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13700 fprintf (f, "%ld\n", i);
13704 unsigned long int i = ulongval ();
13705 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13707 fprintf (f, "%lu\n", i);
13709 return ferror (f) || fclose (f) != 0;
13715 rm -f conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_link") 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_cv_sizeof_long=`cat conftest.val`
13737 echo "$as_me: program exited with status $ac_status" >&5
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 ( exit $ac_status )
13742 if test "$ac_cv_type_long" = yes; then
13743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13744 See \`config.log' for more details." >&5
13745 echo "$as_me: error: cannot compute sizeof (long)
13746 See \`config.log' for more details." >&2;}
13747 { (exit 77); exit 77; }; }
13749 ac_cv_sizeof_long=0
13752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13756 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13757 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13761 cat >>confdefs.h <<_ACEOF
13762 #define SIZEOF_LONG $ac_cv_sizeof_long
13766 { echo "$as_me:$LINENO: checking for long long" >&5
13767 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13768 if test "${ac_cv_type_long_long+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 cat >conftest.$ac_ext <<_ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777 $ac_includes_default
13778 typedef long long ac__type_new_;
13782 if ((ac__type_new_ *) 0)
13784 if (sizeof (ac__type_new_))
13790 rm -f conftest.$ac_objext
13791 if { (ac_try="$ac_compile"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_compile") 2>conftest.er1
13799 grep -v '^ *+' conftest.er1 >conftest.err
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } && {
13804 test -z "$ac_c_werror_flag" ||
13805 test ! -s conftest.err
13806 } && test -s conftest.$ac_objext; then
13807 ac_cv_type_long_long=yes
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13812 ac_cv_type_long_long=no
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13817 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13818 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13820 # The cast to long int works around a bug in the HP C Compiler
13821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13823 # This bug is HP SR number 8606223364.
13824 { echo "$as_me:$LINENO: checking size of long long" >&5
13825 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13826 if test "${ac_cv_sizeof_long_long+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 if test "$cross_compiling" = yes; then
13830 # Depending upon the size, compute the lo and hi bounds.
13831 cat >conftest.$ac_ext <<_ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 $ac_includes_default
13838 typedef long long ac__type_sizeof_;
13842 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13849 rm -f conftest.$ac_objext
13850 if { (ac_try="$ac_compile"
13851 case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_compile") 2>conftest.er1
13858 grep -v '^ *+' conftest.er1 >conftest.err
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } && {
13863 test -z "$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13865 } && test -s conftest.$ac_objext; then
13868 cat >conftest.$ac_ext <<_ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 $ac_includes_default
13875 typedef long long ac__type_sizeof_;
13879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13886 rm -f conftest.$ac_objext
13887 if { (ac_try="$ac_compile"
13888 case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_compile") 2>conftest.er1
13895 grep -v '^ *+' conftest.er1 >conftest.err
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest.$ac_objext; then
13903 ac_hi=$ac_mid; break
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 ac_lo=`expr $ac_mid + 1`
13909 if test $ac_lo -le $ac_mid; then
13913 ac_mid=`expr 2 '*' $ac_mid + 1`
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919 echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13922 cat >conftest.$ac_ext <<_ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 $ac_includes_default
13929 typedef long long ac__type_sizeof_;
13933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13940 rm -f conftest.$ac_objext
13941 if { (ac_try="$ac_compile"
13942 case "(($ac_try" in
13943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944 *) ac_try_echo=$ac_try;;
13946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947 (eval "$ac_compile") 2>conftest.er1
13949 grep -v '^ *+' conftest.er1 >conftest.err
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } && {
13954 test -z "$ac_c_werror_flag" ||
13955 test ! -s conftest.err
13956 } && test -s conftest.$ac_objext; then
13959 cat >conftest.$ac_ext <<_ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 $ac_includes_default
13966 typedef long long ac__type_sizeof_;
13970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13977 rm -f conftest.$ac_objext
13978 if { (ac_try="$ac_compile"
13979 case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_compile") 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } && {
13991 test -z "$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13993 } && test -s conftest.$ac_objext; then
13994 ac_lo=$ac_mid; break
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 ac_hi=`expr '(' $ac_mid ')' - 1`
14000 if test $ac_mid -le $ac_hi; then
14004 ac_mid=`expr 2 '*' $ac_mid`
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14020 # Binary search between lo and hi bounds.
14021 while test "x$ac_lo" != "x$ac_hi"; do
14022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 $ac_includes_default
14030 typedef long long ac__type_sizeof_;
14034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14041 rm -f conftest.$ac_objext
14042 if { (ac_try="$ac_compile"
14043 case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_compile") 2>conftest.er1
14050 grep -v '^ *+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } && {
14055 test -z "$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14057 } && test -s conftest.$ac_objext; then
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14063 ac_lo=`expr '(' $ac_mid ')' + 1`
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14070 '') if test "$ac_cv_type_long_long" = yes; then
14071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14072 See \`config.log' for more details." >&5
14073 echo "$as_me: error: cannot compute sizeof (long long)
14074 See \`config.log' for more details." >&2;}
14075 { (exit 77); exit 77; }; }
14077 ac_cv_sizeof_long_long=0
14081 cat >conftest.$ac_ext <<_ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 $ac_includes_default
14088 typedef long long ac__type_sizeof_;
14089 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14090 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14092 #include <stdlib.h>
14097 FILE *f = fopen ("conftest.val", "w");
14100 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14102 long int i = longval ();
14103 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14105 fprintf (f, "%ld\n", i);
14109 unsigned long int i = ulongval ();
14110 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14112 fprintf (f, "%lu\n", i);
14114 return ferror (f) || fclose (f) != 0;
14120 rm -f conftest$ac_exeext
14121 if { (ac_try="$ac_link"
14122 case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_link") 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14131 { (case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_try") 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 ac_cv_sizeof_long_long=`cat conftest.val`
14142 echo "$as_me: program exited with status $ac_status" >&5
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 ( exit $ac_status )
14147 if test "$ac_cv_type_long_long" = yes; then
14148 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14149 See \`config.log' for more details." >&5
14150 echo "$as_me: error: cannot compute sizeof (long long)
14151 See \`config.log' for more details." >&2;}
14152 { (exit 77); exit 77; }; }
14154 ac_cv_sizeof_long_long=0
14157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14161 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14162 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14166 cat >>confdefs.h <<_ACEOF
14167 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14171 SIZEOF_SHORT=$ac_cv_sizeof_short
14172 SIZEOF_INT=$ac_cv_sizeof_int
14173 SIZEOF_LONG=$ac_cv_sizeof_long
14174 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14179 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14180 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14181 if test "${ac_cv_c_bigendian+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 # See if sys/param.h defines the BYTE_ORDER macro.
14185 cat >conftest.$ac_ext <<_ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14191 #include <sys/types.h>
14192 #include <sys/param.h>
14197 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14198 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14199 bogus endian macros
14206 rm -f conftest.$ac_objext
14207 if { (ac_try="$ac_compile"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_compile") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } && {
14220 test -z "$ac_c_werror_flag" ||
14221 test ! -s conftest.err
14222 } && test -s conftest.$ac_objext; then
14223 # It does; now see whether it defined to BIG_ENDIAN or not.
14224 cat >conftest.$ac_ext <<_ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14230 #include <sys/types.h>
14231 #include <sys/param.h>
14236 #if BYTE_ORDER != BIG_ENDIAN
14244 rm -f conftest.$ac_objext
14245 if { (ac_try="$ac_compile"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_compile") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.$ac_objext; then
14261 ac_cv_c_bigendian=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_cv_c_bigendian=no
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 # It does not; compile a test program.
14275 if test "$cross_compiling" = yes; then
14276 # try to guess the endianness by grepping values into an object file
14277 ac_cv_c_bigendian=unknown
14278 cat >conftest.$ac_ext <<_ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14285 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14286 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14287 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14288 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14289 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14293 _ascii (); _ebcdic ();
14298 rm -f conftest.$ac_objext
14299 if { (ac_try="$ac_compile"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_compile") 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } && {
14312 test -z "$ac_c_werror_flag" ||
14313 test ! -s conftest.err
14314 } && test -s conftest.$ac_objext; then
14315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14316 ac_cv_c_bigendian=yes
14318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14319 if test "$ac_cv_c_bigendian" = unknown; then
14320 ac_cv_c_bigendian=no
14322 # finding both strings is unlikely to happen, but who knows?
14323 ac_cv_c_bigendian=unknown
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 cat >conftest.$ac_ext <<_ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14341 $ac_includes_default
14346 /* Are we little or big endian? From Harbison&Steele. */
14350 char c[sizeof (long int)];
14353 return u.c[sizeof (long int) - 1] == 1;
14359 rm -f conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_link") 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14370 { (case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_try") 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14379 ac_cv_c_bigendian=no
14381 echo "$as_me: program exited with status $ac_status" >&5
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14385 ( exit $ac_status )
14386 ac_cv_c_bigendian=yes
14388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14398 case $ac_cv_c_bigendian in
14401 cat >>confdefs.h <<\_ACEOF
14402 #define WORDS_BIGENDIAN 1
14408 { { echo "$as_me:$LINENO: error: unknown endianness
14409 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14410 echo "$as_me: error: unknown endianness
14411 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14412 { (exit 1); exit 1; }; } ;;
14415 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14416 ASM_TYPES_HEADER=./asm_types.h
14418 echo "/* These defines are needed for the public ext2fs.h header file */" \
14420 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14421 uniq tmp_config.$$ >> public_config.h
14423 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14425 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14426 uniq tmp_config.$$ >> public_config.h
14428 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14430 rm -f tmp_config.$$
14431 PUBLIC_CONFIG_HEADER=./public_config.h
14434 for ac_header in inttypes.h
14436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14443 ac_res=`eval echo '${'$as_ac_Header'}'`
14444 { echo "$as_me:$LINENO: result: $ac_res" >&5
14445 echo "${ECHO_T}$ac_res" >&6; }
14447 # Is the header compilable?
14448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 $ac_includes_default
14457 #include <$ac_header>
14459 rm -f conftest.$ac_objext
14460 if { (ac_try="$ac_compile"
14461 case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_compile") 2>conftest.er1
14468 grep -v '^ *+' conftest.er1 >conftest.err
14470 cat conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } && {
14473 test -z "$ac_c_werror_flag" ||
14474 test ! -s conftest.err
14475 } && test -s conftest.$ac_objext; then
14476 ac_header_compiler=yes
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_header_compiler=no
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14486 echo "${ECHO_T}$ac_header_compiler" >&6; }
14488 # Is the header present?
14489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <$ac_header>
14499 if { (ac_try="$ac_cpp conftest.$ac_ext"
14500 case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14507 grep -v '^ *+' conftest.er1 >conftest.err
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } >/dev/null && {
14512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14513 test ! -s conftest.err
14515 ac_header_preproc=yes
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14520 ac_header_preproc=no
14523 rm -f conftest.err conftest.$ac_ext
14524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14525 echo "${ECHO_T}$ac_header_preproc" >&6; }
14527 # So? What about this header?
14528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14534 ac_header_preproc=yes
14537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 eval "$as_ac_Header=\$ac_header_preproc"
14559 ac_res=`eval echo '${'$as_ac_Header'}'`
14560 { echo "$as_me:$LINENO: result: $ac_res" >&5
14561 echo "${ECHO_T}$ac_res" >&6; }
14564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14565 cat >>confdefs.h <<_ACEOF
14566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14573 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14574 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14575 if test "${ac_cv_type_intptr_t+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 cat >conftest.$ac_ext <<_ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14584 $ac_includes_default
14585 typedef intptr_t ac__type_new_;
14589 if ((ac__type_new_ *) 0)
14591 if (sizeof (ac__type_new_))
14597 rm -f conftest.$ac_objext
14598 if { (ac_try="$ac_compile"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_compile") 2>conftest.er1
14606 grep -v '^ *+' conftest.er1 >conftest.err
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && {
14611 test -z "$ac_c_werror_flag" ||
14612 test ! -s conftest.err
14613 } && test -s conftest.$ac_objext; then
14614 ac_cv_type_intptr_t=yes
14616 echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14619 ac_cv_type_intptr_t=no
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14625 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14626 if test $ac_cv_type_intptr_t = yes; then
14628 cat >>confdefs.h <<_ACEOF
14629 #define HAVE_INTPTR_T 1
14635 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14636 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14637 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >conftest.$ac_ext <<_ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 #include <sys/stat.h>
14650 struct stat stat; stat.st_flags = 0;
14655 rm -f conftest.$ac_objext
14656 if { (ac_try="$ac_compile"
14657 case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_compile") 2>conftest.er1
14664 grep -v '^ *+' conftest.er1 >conftest.err
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } && {
14669 test -z "$ac_c_werror_flag" ||
14670 test ! -s conftest.err
14671 } && test -s conftest.$ac_objext; then
14672 e2fsprogs_cv_struct_st_flags=yes
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14677 e2fsprogs_cv_struct_st_flags=no
14680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14684 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14685 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14686 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14687 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14688 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 #include <sys/stat.h>
14701 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
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 e2fsprogs_cv_struct_st_flags_immut=yes
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 e2fsprogs_cv_struct_st_flags_immut=no
14731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14734 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14735 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14736 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14737 cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_STAT_FLAGS 1
14743 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14744 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14745 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 cat >conftest.$ac_ext <<_ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 #include <sys/types.h>
14755 #include <sys/socket.h>
14760 static struct sockaddr ac_aggr;
14761 if (ac_aggr.sa_len)
14767 rm -f conftest.$ac_objext
14768 if { (ac_try="$ac_compile"
14769 case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_compile") 2>conftest.er1
14776 grep -v '^ *+' conftest.er1 >conftest.err
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest.$ac_objext; then
14784 ac_cv_member_struct_sockaddr_sa_len=yes
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 #include <sys/types.h>
14796 #include <sys/socket.h>
14801 static struct sockaddr ac_aggr;
14802 if (sizeof ac_aggr.sa_len)
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14817 grep -v '^ *+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } && {
14822 test -z "$ac_c_werror_flag" ||
14823 test ! -s conftest.err
14824 } && test -s conftest.$ac_objext; then
14825 ac_cv_member_struct_sockaddr_sa_len=yes
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 ac_cv_member_struct_sockaddr_sa_len=no
14833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14839 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14840 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14842 cat >>confdefs.h <<_ACEOF
14843 #define HAVE_SA_LEN 1
14877 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
14879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14893 #define $ac_func innocuous_$ac_func
14895 /* System header to define __stub macros and hopefully few prototypes,
14896 which can conflict with char $ac_func (); below.
14897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14898 <limits.h> exists even on freestanding compilers. */
14901 # include <limits.h>
14903 # include <assert.h>
14908 /* Override any GCC internal prototype to avoid an error.
14909 Use char because int might match the return type of a GCC
14910 builtin and then its argument prototype would still apply. */
14915 /* The GNU C library defines this for functions which it implements
14916 to always fail with ENOSYS. Some functions are actually named
14917 something starting with __ and the normal name is an alias. */
14918 #if defined __stub_$ac_func || defined __stub___$ac_func
14925 return $ac_func ();
14930 rm -f conftest.$ac_objext conftest$ac_exeext
14931 if { (ac_try="$ac_link"
14932 case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_link") 2>conftest.er1
14939 grep -v '^ *+' conftest.er1 >conftest.err
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } && {
14944 test -z "$ac_c_werror_flag" ||
14945 test ! -s conftest.err
14946 } && test -s conftest$ac_exeext &&
14947 $as_test_x conftest$ac_exeext; then
14948 eval "$as_ac_var=yes"
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14953 eval "$as_ac_var=no"
14956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14957 conftest$ac_exeext conftest.$ac_ext
14959 ac_res=`eval echo '${'$as_ac_var'}'`
14960 { echo "$as_me:$LINENO: result: $ac_res" >&5
14961 echo "${ECHO_T}$ac_res" >&6; }
14962 if test `eval echo '${'$as_ac_var'}'` = yes; then
14963 cat >>confdefs.h <<_ACEOF
14964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14971 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14972 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14973 if test "${ac_cv_lib_socket_socket+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 ac_check_lib_save_LIBS=$LIBS
14977 LIBS="-lsocket $LIBS"
14978 cat >conftest.$ac_ext <<_ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14985 /* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (ac_try="$ac_link"
15002 case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_link") 2>conftest.er1
15009 grep -v '^ *+' conftest.er1 >conftest.err
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } && {
15014 test -z "$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 } && test -s conftest$ac_exeext &&
15017 $as_test_x conftest$ac_exeext; then
15018 ac_cv_lib_socket_socket=yes
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_cv_lib_socket_socket=no
15026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15027 conftest$ac_exeext conftest.$ac_ext
15028 LIBS=$ac_check_lib_save_LIBS
15030 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15031 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15032 if test $ac_cv_lib_socket_socket = yes; then
15033 SOCKET_LIB=-lsocket
15038 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15039 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 ac_check_lib_save_LIBS=$LIBS
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15052 /* Override any GCC internal prototype to avoid an error.
15053 Use char because int might match the return type of a GCC
15054 builtin and then its argument prototype would still apply. */
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest$ac_exeext &&
15084 $as_test_x conftest$ac_exeext; then
15085 ac_cv_lib_dl_dlopen=yes
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_cv_lib_dl_dlopen=no
15093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15094 conftest$ac_exeext conftest.$ac_ext
15095 LIBS=$ac_check_lib_save_LIBS
15097 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15098 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15099 if test $ac_cv_lib_dl_dlopen = yes; then
15101 cat >>confdefs.h <<\_ACEOF
15102 #define HAVE_DLOPEN 1
15108 { echo "$as_me:$LINENO: checking for optreset" >&5
15109 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15110 if test "${ac_cv_have_optreset+set}" = set; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 cat >conftest.$ac_ext <<_ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15119 #include <unistd.h>
15122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15123 $EGREP "optreset" >/dev/null 2>&1; then
15124 ac_cv_have_optreset=yes
15126 ac_cv_have_optreset=no
15131 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15132 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15133 if test $ac_cv_have_optreset = yes; then
15134 cat >>confdefs.h <<\_ACEOF
15135 #define HAVE_OPTRESET 1
15139 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15140 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15141 if diff -u $0 $0 > /dev/null 2>&1 ; then
15146 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15147 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15151 cat >>confdefs.h <<\_ACEOF
15152 #define HAVE_EXT2_IOCTLS 1
15173 linux* | gnu* | k*bsd*-gnu)
15174 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15176 echo "On $host_os systems, root_prefix defaults to ''"
15181 linux* | gnu* | k*bsd*-gnu)
15182 if test "$prefix" = NONE ; then
15184 echo "On $host_os systems, prefix defaults to /usr"
15185 if test "$mandir" = '${prefix}/man' ; then
15186 echo "...and mandir defaults to /usr/share/man"
15187 mandir=/usr/share/man
15192 if test "$root_prefix" = NONE ; then
15193 if test "$prefix" = NONE ; then
15194 root_prefix="$ac_default_prefix"
15196 root_prefix="$prefix"
15198 root_bindir=$bindir
15199 root_sbindir=$sbindir
15200 root_libdir=$libdir
15201 root_sysconfdir=$sysconfdir
15203 root_bindir='${root_prefix}/bin'
15204 root_sbindir='${root_prefix}/sbin'
15205 root_libdir='${root_prefix}/lib'
15206 root_sysconfdir='${root_prefix}/etc'
15208 if test "$bindir" != '${exec_prefix}/bin'; then
15209 root_bindir=$bindir
15210 echo "Setting root_bindir to $root_bindir"
15212 if test "$sbindir" != '${exec_prefix}/sbin'; then
15213 root_sbindir=$sbindir
15214 echo "Setting root_sbindir to $root_sbindir"
15216 if test "$libdir" != '${exec_prefix}/lib'; then
15217 root_libdir=$libdir
15218 echo "Setting root_libdir to $root_libdir"
15220 if test "$sysconfdir" != '${prefix}/etc'; then
15221 root_sysconfdir=$sysconfdir
15222 echo "Setting root_sysconfdir to $root_sysconfdir"
15229 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15230 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15231 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (ac_try="$ac_link"
15252 case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_link") 2>conftest.er1
15259 grep -v '^ *+' conftest.er1 >conftest.err
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } && {
15264 test -z "$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15266 } && test -s conftest$ac_exeext &&
15267 $as_test_x conftest$ac_exeext; then
15268 ac_cv_e2fsprogs_use_static=yes
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 ac_cv_e2fsprogs_use_static=no
15276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15277 conftest$ac_exeext conftest.$ac_ext
15278 LDFLAGS=$SAVE_LDFLAGS
15283 ac_cv_e2fsprogs_use_static=no
15286 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15287 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15289 if test $ac_cv_e2fsprogs_use_static = yes; then
15290 LDFLAG_STATIC=-static
15295 echo "Using Apple Darwin / GNU libintl workaround"
15296 cat >>confdefs.h <<\_ACEOF
15297 #define _INTL_REDIRECT_MACROS 1
15302 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15303 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15306 if test "$cross_compiling" = yes ; then
15309 DO_TEST_SUITE=check
15313 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15314 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15317 if test $cross_compiling = no; then
15318 BUILD_CFLAGS="$CFLAGS"
15319 BUILD_LDFLAGS="$LDFLAGS"
15326 test -d lib || mkdir lib
15327 test -d include || mkdir include
15328 test -d include/linux || mkdir include/linux
15329 test -d include/asm || mkdir include/asm
15330 for i in MCONFIG Makefile e2fsprogs.spec \
15331 util/Makefile util/subst.conf util/gen-tarball \
15332 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15333 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15334 lib/uuid/Makefile lib/uuid/uuid_types.h \
15335 lib/blkid/Makefile lib/blkid/blkid_types.h \
15336 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15337 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15338 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15339 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15340 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15341 if test -d `dirname ${srcdir}/$i` ; then
15342 outlist="$outlist $i"
15345 ac_config_files="$ac_config_files $outlist"
15347 cat >confcache <<\_ACEOF
15348 # This file is a shell script that caches the results of configure
15349 # tests run on this system so they can be shared between configure
15350 # scripts and configure runs, see configure's option --config-cache.
15351 # It is not useful on other systems. If it contains results you don't
15352 # want to keep, you may remove or edit it.
15354 # config.status only pays attention to the cache file if you give it
15355 # the --recheck option to rerun configure.
15357 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15358 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15359 # following values.
15363 # The following way of writing the cache mishandles newlines in values,
15364 # but we know of no workaround that is simple, portable, and efficient.
15365 # So, we kill variables containing newlines.
15366 # Ultrix sh set writes to stderr and can't be redirected directly,
15367 # and sets the high bit in the cache file unless we assign to the vars.
15369 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15370 eval ac_val=\$$ac_var
15374 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15375 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15378 _ | IFS | as_nl) ;; #(
15379 *) $as_unset $ac_var ;;
15385 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15386 *${as_nl}ac_space=\ *)
15387 # `set' does not quote correctly, so add quotes (double-quote
15388 # substitution turns \\\\ into \\, and sed turns \\ into \).
15391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15394 # `set' quotes correctly as required by POSIX, so do not add quotes.
15395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15406 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15408 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15409 if test -w "$cache_file"; then
15410 test "x$cache_file" != "x/dev/null" &&
15411 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15412 echo "$as_me: updating cache $cache_file" >&6;}
15413 cat confcache >$cache_file
15415 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15416 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15422 # Let make expand exec_prefix.
15423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15425 # Transform confdefs.h into DEFS.
15426 # Protect against shell expansion while executing Makefile rules.
15427 # Protect against Makefile macro expansion.
15429 # If the first sed substitution is executed (which looks for macros that
15430 # take arguments), then branch to the quote section. Otherwise,
15431 # look for a macro that doesn't take arguments.
15435 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15437 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15441 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15454 DEFS=`sed -n "$ac_script" confdefs.h`
15459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15460 # 1. Remove the extension, and $U if already installed.
15461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15462 ac_i=`echo "$ac_i" | sed "$ac_script"`
15463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15464 # will be set to the directory where LIBOBJS objects are built.
15465 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15466 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15468 LIBOBJS=$ac_libobjs
15470 LTLIBOBJS=$ac_ltlibobjs
15474 : ${CONFIG_STATUS=./config.status}
15475 ac_clean_files_save=$ac_clean_files
15476 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15477 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15478 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15479 cat >$CONFIG_STATUS <<_ACEOF
15481 # Generated by $as_me.
15482 # Run this file to recreate the current configuration.
15483 # Compiler output produced by configure, useful for debugging
15484 # configure, is in config.log if it exists.
15487 ac_cs_recheck=false
15489 SHELL=\${CONFIG_SHELL-$SHELL}
15492 cat >>$CONFIG_STATUS <<\_ACEOF
15493 ## --------------------- ##
15494 ## M4sh Initialization. ##
15495 ## --------------------- ##
15497 # Be more Bourne compatible
15498 DUALCASE=1; export DUALCASE # for MKS sh
15499 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15502 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15503 # is contrary to our usage. Disable this feature.
15504 alias -g '${1+"$@"}'='"$@"'
15505 setopt NO_GLOB_SUBST
15507 case `(set -o) 2>/dev/null` in
15508 *posix*) set -o posix ;;
15517 # Avoid depending upon Character Ranges.
15518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15521 as_cr_digits='0123456789'
15522 as_cr_alnum=$as_cr_Letters$as_cr_digits
15524 # The user is always right.
15525 if test "${PATH_SEPARATOR+set}" != set; then
15526 echo "#! /bin/sh" >conf$$.sh
15527 echo "exit 0" >>conf$$.sh
15529 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15537 # Support unset when possible.
15538 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15546 # We need space, tab and new line, in precisely that order. Quoting is
15547 # there to prevent editors from complaining about space-tab.
15548 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15549 # splitting by setting IFS to empty value.)
15554 # Find who we are. Look in the path if we contain no directory separator.
15556 *[\\/]* ) as_myself=$0 ;;
15557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15558 for as_dir in $PATH
15561 test -z "$as_dir" && as_dir=.
15562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15568 # We did not find ourselves, most probably we were run as `sh COMMAND'
15569 # in which case we are not to be found in the path.
15570 if test "x$as_myself" = x; then
15573 if test ! -f "$as_myself"; then
15574 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15575 { (exit 1); exit 1; }
15578 # Work around bugs in pre-3.0 UWIN ksh.
15579 for as_var in ENV MAIL MAILPATH
15580 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15588 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15589 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15590 LC_TELEPHONE LC_TIME
15592 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15593 eval $as_var=C; export $as_var
15595 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15599 # Required to use basename.
15600 if expr a : '\(a\)' >/dev/null 2>&1 &&
15601 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15607 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15608 as_basename=basename
15614 # Name of the executable.
15615 as_me=`$as_basename -- "$0" ||
15616 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15617 X"$0" : 'X\(//\)$' \| \
15618 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15620 sed '/^.*\/\([^/][^/]*\)\/*$/{
15639 as_lineno_1=$LINENO
15640 as_lineno_2=$LINENO
15641 test "x$as_lineno_1" != "x$as_lineno_2" &&
15642 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15644 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15645 # uniformly replaced by the line number. The first 'sed' inserts a
15646 # line-number line after each line using $LINENO; the second 'sed'
15647 # does the real work. The second script uses 'N' to pair each
15648 # line-number line with the line containing $LINENO, and appends
15649 # trailing '-' during substitution so that $LINENO is not a special
15650 # case at line end.
15651 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15652 # scripts with optimization help from Paolo Bonzini. Blame Lee
15653 # E. McMahon (1931-1989) for sed's syntax. :-)
15665 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15668 ' >$as_me.lineno &&
15669 chmod +x "$as_me.lineno" ||
15670 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15671 { (exit 1); exit 1; }; }
15673 # Don't try to exec as it changes $[0], causing all sort of problems
15674 # (the dirname of $[0] is not the place where we might find the
15675 # original and so on. Autoconf is especially sensitive to this).
15676 . "./$as_me.lineno"
15677 # Exit status is that of the last command.
15682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15688 ECHO_C= ECHO_N= ECHO_T=
15689 case `echo -n x` in
15691 case `echo 'x\c'` in
15692 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15699 if expr a : '\(a\)' >/dev/null 2>&1 &&
15700 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15706 rm -f conf$$ conf$$.exe conf$$.file
15707 if test -d conf$$.dir; then
15708 rm -f conf$$.dir/conf$$.file
15714 if ln -s conf$$.file conf$$ 2>/dev/null; then
15716 # ... but there are two gotchas:
15717 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15718 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15719 # In both cases, we have to default to `cp -p'.
15720 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15722 elif ln conf$$.file conf$$ 2>/dev/null; then
15727 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15728 rmdir conf$$.dir 2>/dev/null
15730 if mkdir -p . 2>/dev/null; then
15733 test -d ./-p && rmdir ./-p
15737 if test -x / >/dev/null 2>&1; then
15738 as_test_x='test -x'
15740 if ls -dL / >/dev/null 2>&1; then
15747 if test -d "$1"; then
15753 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15754 ???[sx]*):;;*)false;;esac;fi
15758 as_executable_p=$as_test_x
15760 # Sed expression to map a string onto a valid CPP name.
15761 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15763 # Sed expression to map a string onto a valid variable name.
15764 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15769 # Save the log message, to keep $[0] and so on meaningful, and to
15770 # report actual input values of CONFIG_FILES etc. instead of their
15771 # values after options handling.
15773 This file was extended by $as_me, which was
15774 generated by GNU Autoconf 2.61. Invocation command line was
15776 CONFIG_FILES = $CONFIG_FILES
15777 CONFIG_HEADERS = $CONFIG_HEADERS
15778 CONFIG_LINKS = $CONFIG_LINKS
15779 CONFIG_COMMANDS = $CONFIG_COMMANDS
15782 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15787 cat >>$CONFIG_STATUS <<_ACEOF
15788 # Files that config.status was made for.
15789 config_files="$ac_config_files"
15790 config_commands="$ac_config_commands"
15794 cat >>$CONFIG_STATUS <<\_ACEOF
15796 \`$as_me' instantiates files from templates according to the
15797 current configuration.
15799 Usage: $0 [OPTIONS] [FILE]...
15801 -h, --help print this help, then exit
15802 -V, --version print version number and configuration settings, then exit
15803 -q, --quiet do not print progress messages
15804 -d, --debug don't remove temporary files
15805 --recheck update $as_me by reconfiguring in the same conditions
15806 --file=FILE[:TEMPLATE]
15807 instantiate the configuration file FILE
15809 Configuration files:
15812 Configuration commands:
15815 Report bugs to <bug-autoconf@gnu.org>."
15818 cat >>$CONFIG_STATUS <<_ACEOF
15821 configured by $0, generated by GNU Autoconf 2.61,
15822 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15824 Copyright (C) 2006 Free Software Foundation, Inc.
15825 This config.status script is free software; the Free Software Foundation
15826 gives unlimited permission to copy, distribute and modify it."
15833 cat >>$CONFIG_STATUS <<\_ACEOF
15834 # If no file are specified by the user, then we need to provide default
15835 # value. By we need to know if files were specified by the user.
15841 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15842 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15853 # Handling of the options.
15854 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15856 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15857 echo "$ac_cs_version"; exit ;;
15858 --debug | --debu | --deb | --de | --d | -d )
15860 --file | --fil | --fi | --f )
15862 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15863 ac_need_defaults=false;;
15864 --he | --h | --help | --hel | -h )
15865 echo "$ac_cs_usage"; exit ;;
15866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15870 # This is an error.
15871 -*) { echo "$as_me: error: unrecognized option: $1
15872 Try \`$0 --help' for more information." >&2
15873 { (exit 1); exit 1; }; } ;;
15875 *) ac_config_targets="$ac_config_targets $1"
15876 ac_need_defaults=false ;;
15882 ac_configure_extra_args=
15884 if $ac_cs_silent; then
15886 ac_configure_extra_args="$ac_configure_extra_args --silent"
15890 cat >>$CONFIG_STATUS <<_ACEOF
15891 if \$ac_cs_recheck; then
15892 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15893 CONFIG_SHELL=$SHELL
15894 export CONFIG_SHELL
15895 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15899 cat >>$CONFIG_STATUS <<\_ACEOF
15903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15904 ## Running $as_me. ##
15910 cat >>$CONFIG_STATUS <<_ACEOF
15914 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15915 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15917 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15918 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15919 LINGUAS="${LINGUAS-%UNSET%}"
15924 cat >>$CONFIG_STATUS <<\_ACEOF
15926 # Handling of arguments.
15927 for ac_config_target in $ac_config_targets
15929 case $ac_config_target in
15930 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15931 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15933 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15934 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15935 { (exit 1); exit 1; }; };;
15940 # If the user did not use the arguments to specify the items to instantiate,
15941 # then the envvar interface is used. Set only those that are not.
15942 # We use the long form for the default assignment because of an extremely
15943 # bizarre bug on SunOS 4.1.3.
15944 if $ac_need_defaults; then
15945 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15949 # Have a temporary directory for convenience. Make it in the build tree
15950 # simply because there is no reason against having it here, and in addition,
15951 # creating and moving files from /tmp can sometimes cause problems.
15952 # Hook for its removal unless debugging.
15953 # Note that there is a small window in which the directory will not be cleaned:
15954 # after its creation but before its name has been assigned to `$tmp'.
15958 trap 'exit_status=$?
15959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15961 trap '{ (exit 1); exit 1; }' 1 2 13 15
15963 # Create a (secure) tmp directory for tmp files.
15966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15967 test -n "$tmp" && test -d "$tmp"
15970 tmp=./conf$$-$RANDOM
15971 (umask 077 && mkdir "$tmp")
15974 echo "$me: cannot create a temporary directory in ." >&2
15975 { (exit 1); exit 1; }
15979 # Set up the sed scripts for CONFIG_FILES section.
15982 # No need to generate the scripts if there are no CONFIG_FILES.
15983 # This happens for instance when ./config.status config.h
15984 if test -n "$CONFIG_FILES"; then
15988 # Create sed commands to just substitute file output variables.
15990 # Remaining file output variables are in a fragment that also has non-file
15996 for ac_last_try in false false false false false :; do
15997 cat >conf$$subs.sed <<_ACEOF
15998 SHELL!$SHELL$ac_delim
15999 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16000 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16001 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16002 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16003 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16004 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16005 exec_prefix!$exec_prefix$ac_delim
16006 prefix!$prefix$ac_delim
16007 program_transform_name!$program_transform_name$ac_delim
16008 bindir!$bindir$ac_delim
16009 sbindir!$sbindir$ac_delim
16010 libexecdir!$libexecdir$ac_delim
16011 datarootdir!$datarootdir$ac_delim
16012 datadir!$datadir$ac_delim
16013 sysconfdir!$sysconfdir$ac_delim
16014 sharedstatedir!$sharedstatedir$ac_delim
16015 localstatedir!$localstatedir$ac_delim
16016 includedir!$includedir$ac_delim
16017 oldincludedir!$oldincludedir$ac_delim
16018 docdir!$docdir$ac_delim
16019 infodir!$infodir$ac_delim
16020 htmldir!$htmldir$ac_delim
16021 dvidir!$dvidir$ac_delim
16022 pdfdir!$pdfdir$ac_delim
16023 psdir!$psdir$ac_delim
16024 libdir!$libdir$ac_delim
16025 localedir!$localedir$ac_delim
16026 mandir!$mandir$ac_delim
16027 DEFS!$DEFS$ac_delim
16028 ECHO_C!$ECHO_C$ac_delim
16029 ECHO_N!$ECHO_N$ac_delim
16030 ECHO_T!$ECHO_T$ac_delim
16031 LIBS!$LIBS$ac_delim
16032 build_alias!$build_alias$ac_delim
16033 host_alias!$host_alias$ac_delim
16034 target_alias!$target_alias$ac_delim
16035 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16036 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16037 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16038 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16039 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16040 build!$build$ac_delim
16041 build_cpu!$build_cpu$ac_delim
16042 build_vendor!$build_vendor$ac_delim
16043 build_os!$build_os$ac_delim
16044 host!$host$ac_delim
16045 host_cpu!$host_cpu$ac_delim
16046 host_vendor!$host_vendor$ac_delim
16047 host_os!$host_os$ac_delim
16049 CFLAGS!$CFLAGS$ac_delim
16050 LDFLAGS!$LDFLAGS$ac_delim
16051 CPPFLAGS!$CPPFLAGS$ac_delim
16052 ac_ct_CC!$ac_ct_CC$ac_delim
16053 EXEEXT!$EXEEXT$ac_delim
16054 OBJEXT!$OBJEXT$ac_delim
16057 GREP!$GREP$ac_delim
16058 EGREP!$EGREP$ac_delim
16059 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16060 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16061 HTREE_CMT!$HTREE_CMT$ac_delim
16062 ELF_CMT!$ELF_CMT$ac_delim
16063 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16064 PROFILE_CMT!$PROFILE_CMT$ac_delim
16065 CHECKER_CMT!$CHECKER_CMT$ac_delim
16066 LIB_EXT!$LIB_EXT$ac_delim
16067 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16068 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16069 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16070 IMAGER_CMT!$IMAGER_CMT$ac_delim
16073 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16075 elif $ac_last_try; then
16076 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16078 { (exit 1); exit 1; }; }
16080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16085 if test -n "$ac_eof"; then
16086 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16087 ac_eof=`expr $ac_eof + 1`
16090 cat >>$CONFIG_STATUS <<_ACEOF
16091 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16093 /^[ ]*@MCONFIG@[ ]*$/{
16097 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16101 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16105 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16106 r $MAKEFILE_PROFILE
16109 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16110 r $MAKEFILE_CHECKER
16113 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16114 r $MAKEFILE_LIBRARY
16117 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16118 r $ASM_TYPES_HEADER
16121 /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16122 r $PUBLIC_CONFIG_HEADER
16127 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16128 s/^/s,@/; s/!/@,|#_!!_#|/
16131 s/'"$ac_delim"'$/,g/; t
16133 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16134 ' >>$CONFIG_STATUS <conf$$subs.sed
16135 rm -f conf$$subs.sed
16136 cat >>$CONFIG_STATUS <<_ACEOF
16142 for ac_last_try in false false false false false :; do
16143 cat >conf$$subs.sed <<_ACEOF
16144 RESIZER_CMT!$RESIZER_CMT$ac_delim
16145 FSCK_PROG!$FSCK_PROG$ac_delim
16146 FSCK_MAN!$FSCK_MAN$ac_delim
16147 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16148 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16149 PKG_CONFIG!$PKG_CONFIG$ac_delim
16150 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16151 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16152 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16153 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16154 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16155 UUIDD_CMT!$UUIDD_CMT$ac_delim
16156 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16157 PACKAGE!$PACKAGE$ac_delim
16158 VERSION!$VERSION$ac_delim
16159 SET_MAKE!$SET_MAKE$ac_delim
16160 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16161 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16162 INSTALL_DATA!$INSTALL_DATA$ac_delim
16163 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16164 USE_NLS!$USE_NLS$ac_delim
16165 MSGFMT!$MSGFMT$ac_delim
16166 GMSGFMT!$GMSGFMT$ac_delim
16167 XGETTEXT!$XGETTEXT$ac_delim
16168 MSGMERGE!$MSGMERGE$ac_delim
16169 RANLIB!$RANLIB$ac_delim
16170 ALLOCA!$ALLOCA$ac_delim
16171 GLIBC21!$GLIBC21$ac_delim
16172 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16173 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16174 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16175 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16176 LIBICONV!$LIBICONV$ac_delim
16177 LTLIBICONV!$LTLIBICONV$ac_delim
16178 INTLBISON!$INTLBISON$ac_delim
16179 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16180 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16181 CATOBJEXT!$CATOBJEXT$ac_delim
16182 DATADIRNAME!$DATADIRNAME$ac_delim
16183 INSTOBJEXT!$INSTOBJEXT$ac_delim
16184 GENCAT!$GENCAT$ac_delim
16185 INTLOBJS!$INTLOBJS$ac_delim
16186 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16187 INTLLIBS!$INTLLIBS$ac_delim
16188 LIBINTL!$LIBINTL$ac_delim
16189 LTLIBINTL!$LTLIBINTL$ac_delim
16190 POSUB!$POSUB$ac_delim
16191 BINARY_TYPE!$BINARY_TYPE$ac_delim
16193 LN_S!$LN_S$ac_delim
16197 CHMOD!$CHMOD$ac_delim
16200 PERL!$PERL$ac_delim
16201 LDCONFIG!$LDCONFIG$ac_delim
16203 STRIP!$STRIP$ac_delim
16204 MAKEINFO!$MAKEINFO$ac_delim
16205 BUILD_CC!$BUILD_CC$ac_delim
16206 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16207 SIZEOF_INT!$SIZEOF_INT$ac_delim
16208 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16209 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16210 SOCKET_LIB!$SOCKET_LIB$ac_delim
16211 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16212 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16213 LINUX_CMT!$LINUX_CMT$ac_delim
16214 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16215 UNIX_CMT!$UNIX_CMT$ac_delim
16216 root_prefix!$root_prefix$ac_delim
16217 root_bindir!$root_bindir$ac_delim
16218 root_sbindir!$root_sbindir$ac_delim
16219 root_libdir!$root_libdir$ac_delim
16220 root_sysconfdir!$root_sysconfdir$ac_delim
16221 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16222 SS_DIR!$SS_DIR$ac_delim
16223 ET_DIR!$ET_DIR$ac_delim
16224 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16225 INTL_FLAGS!$INTL_FLAGS$ac_delim
16226 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16227 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16228 LIBOBJS!$LIBOBJS$ac_delim
16229 LTLIBOBJS!$LTLIBOBJS$ac_delim
16232 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
16234 elif $ac_last_try; then
16235 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16236 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16237 { (exit 1); exit 1; }; }
16239 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16243 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16244 if test -n "$ac_eof"; then
16245 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16246 ac_eof=`expr $ac_eof + 1`
16249 cat >>$CONFIG_STATUS <<_ACEOF
16250 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16254 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16255 s/^/s,@/; s/!/@,|#_!!_#|/
16258 s/'"$ac_delim"'$/,g/; t
16260 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16261 ' >>$CONFIG_STATUS <conf$$subs.sed
16262 rm -f conf$$subs.sed
16263 cat >>$CONFIG_STATUS <<_ACEOF
16270 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16271 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16272 # trailing colons and then remove the whole line if VPATH becomes empty
16273 # (actually we leave an empty line to preserve line numbers).
16274 if test "x$srcdir" = x.; then
16275 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16276 s/:*\$(srcdir):*/:/
16277 s/:*\${srcdir}:*/:/
16279 s/^\([^=]*=[ ]*\):*/\1/
16285 cat >>$CONFIG_STATUS <<\_ACEOF
16286 fi # test -n "$CONFIG_FILES"
16289 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16292 :[FHLC]) ac_mode=$ac_tag; continue;;
16294 case $ac_mode$ac_tag in
16296 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16297 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16298 { (exit 1); exit 1; }; };;
16299 :[FH]-) ac_tag=-:-;;
16300 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16317 -) ac_f="$tmp/stdin";;
16318 *) # Look for the file first in the build tree, then in the source tree
16319 # (if the path is not absolute). The absolute path cannot be DOS-style,
16320 # because $ac_f cannot contain `:'.
16324 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16326 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16327 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16328 { (exit 1); exit 1; }; };;
16330 ac_file_inputs="$ac_file_inputs $ac_f"
16333 # Let's still pretend it is `configure' which instantiates (i.e., don't
16334 # use $as_me), people would be surprised to read:
16335 # /* config.h. Generated by config.status. */
16336 configure_input="Generated from "`IFS=:
16337 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16338 if test x"$ac_file" != x-; then
16339 configure_input="$ac_file. $configure_input"
16340 { echo "$as_me:$LINENO: creating $ac_file" >&5
16341 echo "$as_me: creating $ac_file" >&6;}
16345 *:-:* | *:-) cat >"$tmp/stdin";;
16350 ac_dir=`$as_dirname -- "$ac_file" ||
16351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352 X"$ac_file" : 'X\(//\)[^/]' \| \
16353 X"$ac_file" : 'X\(//\)$' \| \
16354 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16360 /^X\(\/\/\)[^/].*/{
16375 -*) as_dir=./$as_dir;;
16377 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16381 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16382 *) as_qdir=$as_dir;;
16384 as_dirs="'$as_qdir' $as_dirs"
16385 as_dir=`$as_dirname -- "$as_dir" ||
16386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16387 X"$as_dir" : 'X\(//\)[^/]' \| \
16388 X"$as_dir" : 'X\(//\)$' \| \
16389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16395 /^X\(\/\/\)[^/].*/{
16408 test -d "$as_dir" && break
16410 test -z "$as_dirs" || eval "mkdir $as_dirs"
16411 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16412 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16413 { (exit 1); exit 1; }; }; }
16417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16419 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16420 # A ".." for each directory in $ac_dir_suffix.
16421 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16422 case $ac_top_builddir_sub in
16423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16427 ac_abs_top_builddir=$ac_pwd
16428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16429 # for backward compatibility:
16430 ac_top_builddir=$ac_top_build_prefix
16433 .) # We are building in place.
16435 ac_top_srcdir=$ac_top_builddir_sub
16436 ac_abs_top_srcdir=$ac_pwd ;;
16437 [\\/]* | ?:[\\/]* ) # Absolute name.
16438 ac_srcdir=$srcdir$ac_dir_suffix;
16439 ac_top_srcdir=$srcdir
16440 ac_abs_top_srcdir=$srcdir ;;
16441 *) # Relative name.
16442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16443 ac_top_srcdir=$ac_top_build_prefix$srcdir
16444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16456 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16457 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16461 cat >>$CONFIG_STATUS <<\_ACEOF
16462 # If the template does not know about datarootdir, expand it.
16463 # FIXME: This hack should be removed a few years after 2.60.
16464 ac_datarootdir_hack=; ac_datarootdir_seen=
16466 case `sed -n '/datarootdir/ {
16475 ' $ac_file_inputs` in
16476 *datarootdir*) ac_datarootdir_seen=yes;;
16477 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16478 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16479 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16481 cat >>$CONFIG_STATUS <<_ACEOF
16482 ac_datarootdir_hack='
16483 s&@datadir@&$datadir&g
16484 s&@docdir@&$docdir&g
16485 s&@infodir@&$infodir&g
16486 s&@localedir@&$localedir&g
16487 s&@mandir@&$mandir&g
16488 s&\\\${datarootdir}&$datarootdir&g' ;;
16492 # Neutralize VPATH when `$srcdir' = `.'.
16493 # Shell code in configure.ac might set extrasub.
16494 # FIXME: do we really want to maintain this feature?
16495 cat >>$CONFIG_STATUS <<_ACEOF
16499 cat >>$CONFIG_STATUS <<\_ACEOF
16501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16502 s&@configure_input@&$configure_input&;t t
16503 s&@top_builddir@&$ac_top_builddir_sub&;t t
16504 s&@srcdir@&$ac_srcdir&;t t
16505 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16506 s&@top_srcdir@&$ac_top_srcdir&;t t
16507 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16508 s&@builddir@&$ac_builddir&;t t
16509 s&@abs_builddir@&$ac_abs_builddir&;t t
16510 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16511 s&@INSTALL@&$ac_INSTALL&;t t
16512 $ac_datarootdir_hack
16513 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16515 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16516 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16517 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16518 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16519 which seems to be undefined. Please make sure it is defined." >&5
16520 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16521 which seems to be undefined. Please make sure it is defined." >&2;}
16525 -) cat "$tmp/out"; rm -f "$tmp/out";;
16526 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16531 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16532 echo "$as_me: executing $ac_file commands" >&6;}
16537 case $ac_file$ac_mode in
16539 for ac_file in $CONFIG_FILES; do
16540 # Support "outfile[:infile[:infile...]]"
16542 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16544 # PO directories have a Makefile.in generated from Makefile.in.in.
16545 case "$ac_file" in */Makefile.in)
16546 # Adjust a relative srcdir.
16547 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16548 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16549 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16550 # In autoconf-2.13 it is called $ac_given_srcdir.
16551 # In autoconf-2.50 it is called $srcdir.
16552 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16553 case "$ac_given_srcdir" in
16554 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16555 /*) top_srcdir="$ac_given_srcdir" ;;
16556 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16558 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16559 rm -f "$ac_dir/POTFILES"
16560 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16561 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16562 POMAKEFILEDEPS="POTFILES.in"
16563 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16564 # on $ac_dir but don't depend on user-specified configuration
16566 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16567 # The LINGUAS file contains the set of available languages.
16568 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16569 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16571 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16572 # Hide the ALL_LINGUAS assigment from automake.
16573 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16574 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16576 # The set of available languages was given in configure.in.
16577 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16580 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16581 # Compute UPDATEPOFILES
16582 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16583 # Compute DUMMYPOFILES
16584 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16586 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16587 case "$ac_given_srcdir" in
16589 *) srcdirpre='$(srcdir)/' ;;
16595 for lang in $ALL_LINGUAS; do
16596 POFILES="$POFILES $srcdirpre$lang.po"
16597 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16598 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16599 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16601 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16602 # environment variable.
16604 if test -n "$ALL_LINGUAS"; then
16605 for presentlang in $ALL_LINGUAS; do
16607 if test "%UNSET%" != "$LINGUAS"; then
16608 desiredlanguages="$LINGUAS"
16610 desiredlanguages="$ALL_LINGUAS"
16612 for desiredlang in $desiredlanguages; do
16613 # Use the presentlang catalog if desiredlang is
16614 # a. equal to presentlang, or
16615 # b. a variant of presentlang (because in this case,
16616 # presentlang can be used as a fallback for messages
16617 # which are not translated in the desiredlang catalog).
16618 case "$desiredlang" in
16619 "$presentlang"*) useit=yes;;
16622 if test $useit = yes; then
16623 INST_LINGUAS="$INST_LINGUAS $presentlang"
16628 if test -n "$INST_LINGUAS"; then
16629 for lang in $INST_LINGUAS; do
16630 CATALOGS="$CATALOGS $lang.gmo"
16633 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16634 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"
16635 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16636 if test -f "$f"; then
16638 *.orig | *.bak | *~) ;;
16639 *) cat "$f" >> "$ac_dir/Makefile" ;;
16652 { (exit 0); exit 0; }
16654 chmod +x $CONFIG_STATUS
16655 ac_clean_files=$ac_clean_files_save
16658 # configure is writing to config.log, and then calls config.status.
16659 # config.status does its own redirection, appending to config.log.
16660 # Unfortunately, on DOS this fails, as config.log is still kept open
16661 # by configure, so config.status won't be able to write to it; its
16662 # output is simply discarded. So we exec the FD to /dev/null,
16663 # effectively closing config.log, so it can be properly (re)opened and
16664 # appended to by config.status. When coming back to configure, we
16665 # need to make the FD available again.
16666 if test "$no_create" != yes; then
16668 ac_config_status_args=
16669 test "$silent" = yes &&
16670 ac_config_status_args="$ac_config_status_args --quiet"
16672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16675 # would make configure fail if this is the last instruction.
16676 $ac_cs_success || { (exit 1); exit 1; }
16679 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi